Package com.appliedrec.verid.core2
Class VerIDImage<T>
- java.lang.Object
-
- com.appliedrec.verid.core2.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 Summary
Constructors Constructor Description VerIDImage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]
getBytes()
byte[]
getData()
abstract int
getExifOrientation()
abstract java.lang.Class<T>
getFaceDetectionImageType()
abstract int
getHeight()
int
getRotation()
int
getUprightHeight()
int
getUprightWidth()
abstract int
getWidth()
boolean
isMirrored()
void
setIsMirrored(boolean mirrored)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.appliedrec.verid.core2.IImageProvider
provideBitmap, provideVerIDImage
-
-
-
-
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
-
-