Builder class of
FirebaseVisionImageMetadata
.
Public Constructor Summary
FirebaseVisionImageMetadata.Builder()
Creates a new builder to build
FirebaseVisionImageMetadata .
|
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
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.