Class VerIDImage<T>

  • All Implemented Interfaces:
    IImageProvider
    Direct Known Subclasses:
    VerIDImageBitmap, VerIDImageNV21

    public abstract class VerIDImage<T>
    extends java.lang.Object
    implements IImageProvider
    Ver-ID image abstracts different inputs that can be used to create an image for face detection
    Since:
    1.0.0
    • Constructor Detail

      • VerIDImage

        public VerIDImage()
    • Method Detail

      • isMirrored

        public boolean isMirrored()
        Returns:
        true if the image is mirrored, e.g., images captured by the front camera
      • setIsMirrored

        public void setIsMirrored​(boolean mirrored)
      • getBytes

        public abstract byte[] getBytes()
        Returns:
        Byte array representation of the image
      • getData

        public byte[] getData()
      • getWidth

        public abstract int getWidth()
        Returns:
        Raw image width (before orientation adjustment)
      • getHeight

        public abstract int getHeight()
        Returns:
        Raw image height (before orientation adjustment)
      • getUprightWidth

        public int getUprightWidth()
        Returns:
        Image width after applying EXIF orientation
      • getUprightHeight

        public int getUprightHeight()
        Returns:
        Image height after applying EXIF orientation
      • getExifOrientation

        public abstract int getExifOrientation()
        Returns:
        Image EXIF orientation
      • getFaceDetectionImageType

        public abstract java.lang.Class<T> getFaceDetectionImageType()
        Returns:
        Face detection image type
      • getRotation

        public int getRotation()
        Returns:
        Rotation of the image in degrees