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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Aug 8, 2020

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Aug 8, 2020

Hawkin Dynamics levels up their product in 2 weeks instead of months

Updated Oct 3, 2024