Builder class of
FirebaseVisionImageMetadata.
|
FirebaseVisionImageMetadata.Builder()
Creates a new builder to build
FirebaseVisionImageMetadata.
|
| 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.
|
Creates a new builder to build
FirebaseVisionImageMetadata.
Builds an instance of
FirebaseVisionImageMetadata.
Sets the format of the image stored in ByteBuffer. It
must be one of
FirebaseVisionImageMetadata.ImageFormat.
Sets height of the image, which must be a positive integer.
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.
Sets width of the image, which must be a positive integer.