Package com.appliedrec.verid.core2
Class VerIDImageNV21
- java.lang.Object
-
- com.appliedrec.verid.core2.VerIDImage<Image>
-
- com.appliedrec.verid.core2.VerIDImageNV21
-
- All Implemented Interfaces:
IImageProvider
public class VerIDImageNV21 extends VerIDImage<Image>
Image created from bytes in NV21 format
-
-
Constructor Summary
Constructors Constructor Description VerIDImageNV21(IImage<?> source, java.util.function.Function<VerIDImage<Image>,android.graphics.Bitmap> bitmapCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()intgetExifOrientation()java.lang.Class<Image>getFaceDetectionImageType()intgetHeight()intgetWidth()android.graphics.BitmapprovideBitmap()ImageprovideVerIDImage()-
Methods inherited from class com.appliedrec.verid.core2.VerIDImage
getData, getRotation, getUprightHeight, getUprightWidth, isMirrored, setIsMirrored
-
-
-
-
Constructor Detail
-
VerIDImageNV21
public VerIDImageNV21(IImage<?> source, java.util.function.Function<VerIDImage<Image>,android.graphics.Bitmap> bitmapCreator) throws VerIDCoreException
- Throws:
VerIDCoreException
-
-
Method Detail
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin classVerIDImage<Image>- Returns:
- Byte array representation of the image
-
getWidth
public int getWidth()
- Specified by:
getWidthin classVerIDImage<Image>- Returns:
- Raw image width (before orientation adjustment)
-
getHeight
public int getHeight()
- Specified by:
getHeightin classVerIDImage<Image>- Returns:
- Raw image height (before orientation adjustment)
-
getExifOrientation
public int getExifOrientation()
- Specified by:
getExifOrientationin classVerIDImage<Image>- Returns:
- Image EXIF orientation
-
getFaceDetectionImageType
public java.lang.Class<Image> getFaceDetectionImageType()
- Specified by:
getFaceDetectionImageTypein classVerIDImage<Image>- Returns:
- Face detection image type
-
provideVerIDImage
public Image provideVerIDImage() throws VerIDCoreException
- Throws:
VerIDCoreException
-
provideBitmap
public android.graphics.Bitmap provideBitmap() throws VerIDCoreException- Throws:
VerIDCoreException
-
-