FirebaseVisionImageMetadata
Stay organized with collections
Save and categorize content based on your preferences.
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
From class java.lang.Object
Object
|
clone()
|
boolean |
|
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
Constant Value: 842094169
public static final int
ROTATION_0
0 degree rotation (natural orientation).
Constant Value: 0
public static final int
ROTATION_180
public static final int
ROTATION_270
public static final int
ROTATION_90
Public Methods
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-08-08 UTC.
[null,null,["Last updated 2020-08-08 UTC."],[],[],null,["# FirebaseVisionImageMetadata\n\npublic class **FirebaseVisionImageMetadata** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nImage metadata used by [FirebaseVision](/docs/reference/android/com/google/firebase/ml/vision/FirebaseVision)\ndetectors. \n\n### Nested Class Summary\n\n|------------|---|---|-------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [FirebaseVisionImageMetadata.Builder](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata.Builder) || Builder class of [FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata). |\n| @interface | [FirebaseVisionImageMetadata.ImageFormat](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata.ImageFormat) || Accepted image format of vision APIs. |\n| @interface | [FirebaseVisionImageMetadata.Rotation](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata.Rotation) || Indicates the image rotation. |\n\n### Constant Summary\n\n|-----|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| int | [IMAGE_FORMAT_NV21](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#IMAGE_FORMAT_NV21) | See [NV21](//developer.android.com/reference/android/graphics/ImageFormat.html#NV21) |\n| int | [IMAGE_FORMAT_YV12](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#IMAGE_FORMAT_YV12) | See [YV12](//developer.android.com/reference/android/graphics/ImageFormat.html#YV12) |\n| int | [ROTATION_0](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#ROTATION_0) | 0 degree rotation (natural orientation). |\n| int | [ROTATION_180](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#ROTATION_180) | 180 degree rotation. |\n| int | [ROTATION_270](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#ROTATION_270) | 270 degree rotation. |\n| int | [ROTATION_90](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#ROTATION_90) | 90 degree rotation. |\n\n### Public Constructor Summary\n\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#FirebaseVisionImageMetadata(com.google.firebase.ml.vision.common.FirebaseVisionImageMetadata))([FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata) metadata) Copies the content of another [FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata). |\n\n### Public Method Summary\n\n|-----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getFormat](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#getFormat())() Gets the specified format of the image. |\n| int | [getHeight](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#getHeight())() Gets the specified height of the image. |\n| int | [getRotation](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#getRotation())() Gets the specified rotation of the image. |\n| int | [getWidth](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata#getWidth())() Gets the specified width of the image. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**IMAGE_FORMAT_NV21**\n\nSee [NV21](//developer.android.com/reference/android/graphics/ImageFormat.html#NV21) \nConstant Value: 17 \n\n#### public static final int\n**IMAGE_FORMAT_YV12**\n\nSee [YV12](//developer.android.com/reference/android/graphics/ImageFormat.html#YV12) \nConstant Value: 842094169 \n\n#### public static final int\n**ROTATION_0**\n\n0 degree rotation (natural orientation). \nConstant Value: 0 \n\n#### public static final int\n**ROTATION_180**\n\n180 degree rotation. \nConstant Value: 2 \n\n#### public static final int\n**ROTATION_270**\n\n270 degree rotation. \nConstant Value: 3 \n\n#### public static final int\n**ROTATION_90**\n\n90 degree rotation. \nConstant Value: 1\n\nPublic Constructors\n-------------------\n\n#### public **FirebaseVisionImageMetadata** ([FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata) metadata)\n\nCopies the content of another [FirebaseVisionImageMetadata](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImageMetadata).\n\nPublic Methods\n--------------\n\n#### public int **getFormat** ()\n\nGets the specified format of the image. \n\n#### public int **getHeight** ()\n\nGets the specified height of the image. \n\n#### public int **getRotation** ()\n\nGets the specified rotation of the image. \n\n#### public int **getWidth** ()\n\nGets the specified width of the image."]]