InputImage.ImageFormat

  • InputImage.ImageFormat is an abstract annotation representing the accepted image format for vision APIs.

  • Supported image formats include IMAGE_FORMAT_NV21, IMAGE_FORMAT_YV12, and IMAGE_FORMAT_YUV_420_888, which correspond to standard Android ImageFormats.

  • InputImage.ImageFormat inherits methods like annotationType, equals, hashCode, and toString from the java.lang.annotation.Annotation interface.

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