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()
int
getExifOrientation()
java.lang.Class<Image>
getFaceDetectionImageType()
int
getHeight()
int
getWidth()
android.graphics.Bitmap
provideBitmap()
Image
provideVerIDImage()
-
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:
getBytes
in classVerIDImage<Image>
- Returns:
- Byte array representation of the image
-
getWidth
public int getWidth()
- Specified by:
getWidth
in classVerIDImage<Image>
- Returns:
- Raw image width (before orientation adjustment)
-
getHeight
public int getHeight()
- Specified by:
getHeight
in classVerIDImage<Image>
- Returns:
- Raw image height (before orientation adjustment)
-
getExifOrientation
public int getExifOrientation()
- Specified by:
getExifOrientation
in classVerIDImage<Image>
- Returns:
- Image EXIF orientation
-
getFaceDetectionImageType
public java.lang.Class<Image> getFaceDetectionImageType()
- Specified by:
getFaceDetectionImageType
in 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
-
-