InputImage.ImageFormat

  • InputImage.ImageFormat is an annotation that specifies the accepted image format for ML Kit Vision APIs.

  • Supported formats include NV21, YV12, and YUV_420_888, corresponding to their respective Android ImageFormat constants.

  • This annotation inherits methods from the Annotation interface, such as annotationType(), equals(), hashCode(), and toString().

public static abstract @interface InputImage.ImageFormat implements Annotation

Accepted image format of vision APIs.

Supported values include:

  1. InputImage.IMAGE_FORMAT_NV21 which corresponds to ImageFormat.NV21
  2. InputImage.IMAGE_FORMAT_YV12 which corresponds to ImageFormat.YV12
  3. InputImage.IMAGE_FORMAT_YUV_420_888 which corresponds to ImageFormat.YUV_420_888

Inherited Method Summary