FirebaseVisionImageMetadata.Builder

public static class FirebaseVisionImageMetadata.Builder extends Object

Builder class of FirebaseVisionImageMetadata.

Public Constructor Summary

Public Method Summary

FirebaseVisionImageMetadata
build()
Builds an instance of FirebaseVisionImageMetadata.
FirebaseVisionImageMetadata.Builder
setFormat(int format)
Sets the format of the image stored in ByteBuffer.
FirebaseVisionImageMetadata.Builder
setHeight(int height)
Sets height of the image, which must be a positive integer.
FirebaseVisionImageMetadata.Builder
setRotation(int rotation)
Sets rotation of the image, indicating the rotation from the upright orientation.
FirebaseVisionImageMetadata.Builder
setWidth(int width)
Sets width of the image, which must be a positive integer.

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()

Public Constructors

public FirebaseVisionImageMetadata.Builder ()

Creates a new builder to build FirebaseVisionImageMetadata.

Public Methods

public FirebaseVisionImageMetadata build ()

Builds an instance of FirebaseVisionImageMetadata.

public FirebaseVisionImageMetadata.Builder setFormat (int format)

Sets the format of the image stored in ByteBuffer. It must be one of FirebaseVisionImageMetadata.ImageFormat.

public FirebaseVisionImageMetadata.Builder setHeight (int height)

Sets height of the image, which must be a positive integer.

public FirebaseVisionImageMetadata.Builder setRotation (int rotation)

Sets rotation of the image, indicating the rotation from the upright orientation.

Since the camera may deliver images that are rotated (e.g., if the user holds the device upside down), specifying the rotation with the image indicates how to make the image upright.

Currently, only ROTATION_0, ROTATION_90, ROTATION_180 and ROTATION_270 are supported.

public FirebaseVisionImageMetadata.Builder setWidth (int width)

Sets width of the image, which must be a positive integer.

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

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