VerIDImage

Ver-ID image abstracts different inputs that can be used to create an image for face detection

Package com.appliedrec.verid.core2

public class VerIDImage

Constructors

VerIDImage

Introduced in version 1.0.0

public VerIDImage(byte[], int)

Construct an image with JPEG data and EXIF orientation

Parameters

jpeg byte[]
JPEG data
exifOrientation int
EXIF orientation

VerIDImage

Introduced in version 1.0.0

public VerIDImage(byte[], int, int)

Construct an image with grayscale buffer oriented upright

Parameters

grayscale byte[]
Grayscale pixel values
width int
Width of the image
height int
Height of the image

VerIDImage

Introduced in version 1.15.0

public VerIDImage(byte[], int, int, int)

Construct an image with grayscale buffer oriented upright

Parameters

grayscale byte[]
Grayscale pixel values
width int
Width of the image
height int
Height of the image
exifOrientation int
Exif orientation

VerIDImage

Introduced in version 1.0.0

public VerIDImage(YuvImage, int)

Construct an image with a YUV image and EXIF orientation

Parameters

image android.graphics.YuvImage
YUV image
exifOrientation int
EXIF orientation

VerIDImage

Introduced in version 1.0.0

public VerIDImage(Bitmap)

Construct an image with a bitmap

Parameters

bitmap android.graphics.Bitmap
Bitmap

VerIDImage

Introduced in version 1.9.0

public VerIDImage(Bitmap, int)

Construct an image with a bitmap

Parameters

bitmap android.graphics.Bitmap
Bitmap
exifOrientation int
Exif orientation of the bitmap

Methods

setGrayscale

Introduced in version 1.9.0

public setGrayscale(byte[])

Parameters

grayscale byte[]
Grayscale representation of the image

Throws

java.lang.IllegalArgumentException
If the length of the grayscale buffer doesn't equal the {@link #getWidth()} * {@link #getHeight()} of the image

getGrayscale

Introduced in version 1.9.0

public getGrayscale()

Returns

byte[]
Grayscale representation of the image

setGrayscaleProcessorName

Introduced in version 1.9.0

public setGrayscaleProcessorName(String)

Parameters

name java.lang.String
Name of the image processor used to generate the grayscale representation of the image

getGrayscaleProcessorName

Introduced in version 1.9.0

public getGrayscaleProcessorName()

Returns

java.lang.String
The name of the image processor that was used to generate the grayscale image or null if no grayscale is available

getImageProcessorName

Introduced in version 1.14.0

public getImageProcessorName()

Returns

java.lang.String
Name of the image processor used to generate the image for face detection and recognition

setImageProcessorName

Introduced in version 1.14.0

public setImageProcessorName(String)

Parameters

imageProcessorName java.lang.String
Name of the image processor used to generate the image for face detection and recognition

getFaceDetectionImage

Introduced in version 1.14.0

public getFaceDetectionImage()

Returns

com.appliedrec.verid.core2.FaceDetectionImage
Image processed for face detection

setFaceDetectionImage

Introduced in version 1.14.0

public setFaceDetectionImage(FaceDetectionImage)

Parameters

faceDetectionImage com.appliedrec.verid.core2.FaceDetectionImage
Image processed for face detection