FirebaseVisionImageMetadata

public class FirebaseVisionImageMetadata extends Object

Image metadata used by FirebaseVision detectors.

Nested Class Summary

class FirebaseVisionImageMetadata.Builder Builder class of FirebaseVisionImageMetadata
@interface FirebaseVisionImageMetadata.ImageFormat Accepted image format of vision APIs. 
@interface FirebaseVisionImageMetadata.Rotation Indicates the image rotation. 

Constant Summary

int IMAGE_FORMAT_NV21 See NV21
int IMAGE_FORMAT_YV12 See YV12
int ROTATION_0 0 degree rotation (natural orientation).
int ROTATION_180 180 degree rotation.
int ROTATION_270 270 degree rotation.
int ROTATION_90 90 degree rotation.

Public Constructor Summary

Public Method Summary

int
getFormat()
Gets the specified format of the image.
int
getHeight()
Gets the specified height of the image.
int
getRotation()
Gets the specified rotation of the image.
int
getWidth()
Gets the specified width of the image.

Inherited Method Summary

Constants

public static final int IMAGE_FORMAT_NV21

See NV21

Constant Value: 17

public static final int IMAGE_FORMAT_YV12

See YV12

Constant Value: 842094169

public static final int ROTATION_0

0 degree rotation (natural orientation).

Constant Value: 0

public static final int ROTATION_180

180 degree rotation.

Constant Value: 2

public static final int ROTATION_270

270 degree rotation.

Constant Value: 3

public static final int ROTATION_90

90 degree rotation.

Constant Value: 1

Public Constructors

public FirebaseVisionImageMetadata (FirebaseVisionImageMetadata metadata)

Copies the content of another FirebaseVisionImageMetadata.

Public Methods

public int getFormat ()

Gets the specified format of the image.

public int getHeight ()

Gets the specified height of the image.

public int getRotation ()

Gets the specified rotation of the image.

public int getWidth ()

Gets the specified width of the image.