InputImage.ImageFormat
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
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 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eInputImage.ImageFormat\u003c/code\u003e is an annotation that specifies the accepted image format for ML Kit Vision APIs.\u003c/p\u003e\n"],["\u003cp\u003eSupported formats include NV21, YV12, and YUV_420_888, corresponding to their respective Android \u003ccode\u003eImageFormat\u003c/code\u003e constants.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation inherits methods from the \u003ccode\u003eAnnotation\u003c/code\u003e interface, such as \u003ccode\u003eannotationType()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],["`InputImage.ImageFormat` defines acceptable image formats for vision APIs. It supports three specific formats: `IMAGE_FORMAT_NV21`, `IMAGE_FORMAT_YV12`, and `IMAGE_FORMAT_YUV_420_888`. Each of these corresponds to standard Android `ImageFormat` types like `NV21`, `YV12`, and `YUV_420_888`, respectively. This annotation interface inherits methods from `java.lang.annotation.Annotation`, including `annotationType()`, `equals()`, `hashCode()`, and `toString()`, for use in class method.\n"],null,["public static abstract @interface **InputImage.ImageFormat** implements [Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html) \nAccepted image format of vision APIs.\n\nSupported values include:\n\n1. [InputImage.IMAGE_FORMAT_NV21](/android/reference/com/google/mlkit/vision/common/InputImage#IMAGE_FORMAT_NV21) which corresponds to [ImageFormat.NV21](https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21)\n2. [InputImage.IMAGE_FORMAT_YV12](/android/reference/com/google/mlkit/vision/common/InputImage#IMAGE_FORMAT_YV12) which corresponds to [ImageFormat.YV12](https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12)\n3. [InputImage.IMAGE_FORMAT_YUV_420_888](/android/reference/com/google/mlkit/vision/common/InputImage#IMAGE_FORMAT_YUV_420_888) which corresponds to [ImageFormat.YUV_420_888](https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888) \n\nInherited Method Summary \nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| abstract [Class](https://developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](https://developer.android.com/reference/java/lang/String.html) | toString() |"]]