FaceDetection

Ver-ID SDK's default implementation of the com.appliedrec.verid.core2.IFaceDetection.html interface

Package com.appliedrec.verid.core2

public class FaceDetection

Implements

Methods

detectFacesInImage

Introduced in version 1.0.0

public detectFacesInImage(VerIDImage, int, int)

Detect faces in image

Parameters

image com.appliedrec.verid.core2.VerIDImage
Image in which to detect faces
limit int
Limit the number of detected faces to this value
options int
Flags

Returns

com.appliedrec.verid.core2.Face[]
Array of detected faces

Throws

java.lang.Exception
Error if detection fails

startFaceTracking

Introduced in version 1.0.0

public startFaceTracking()

Start face tracking

Returns

com.appliedrec.verid.core2.IFaceTracking
Face tracking session

Throws

java.lang.Exception
Exception

close

Introduced in version 1.0.0

public close()

Close the face detection and cleanup resources

setFaceExtractQualityThreshold

Introduced in version 1.8.0

public setFaceExtractQualityThreshold(float)

Set face extract quality threshold

Face template extraction (for face recognition) will only be run if the detected face's quality meets this threshold.

Parameters

faceExtractQualityThreshold float
New threshold value

Throws

java.lang.Exception
Exception

getFaceExtractQualityThreshold

Introduced in version 1.8.0

public getFaceExtractQualityThreshold()

Get face extract quality threshold

Face template extraction (for face recognition) will only be run if the detected face's quality meets this threshold.

Returns

float
threshold value

Throws

java.lang.Exception
Exception

setLandmarkTrackingQualityThreshold

Introduced in version 1.8.0

public setLandmarkTrackingQualityThreshold(float)

Set landmark tracking quality threshold

Full face detection (slower) will be run if the detected face quality falls below this threshold when tracking a face in a sequence of images

Parameters

landmarkTrackingQualityThreshold float
New threshold value

Throws

java.lang.Exception
Exception

getLandmarkTrackingQualityThreshold

Introduced in version 1.8.0

public getLandmarkTrackingQualityThreshold()

Get landmark tracking quality threshold

Full face detection (slower) will be run if the detected face quality falls below this threshold when tracking a face in a sequence of images

Returns

float
threshold value

Throws

java.lang.Exception
Exception

getImageProcessors

Introduced in version 1.9.0

public getImageProcessors()

Returns

com.appliedrec.verid.core2.IImageProcessorService[]
Image processors used to prepare images for face detection

setImageProcessors

Introduced in version 1.9.0

public setImageProcessors(IImageProcessorService[])

Parameters

imageProcessors com.appliedrec.verid.core2.IImageProcessorService[]
Image processors that will be used to prepare images for face detection

Throws

java.lang.IllegalArgumentException
If the image processors array is null or empty

Properties

detRecLib

Introduced in version 1.0.0

public final DetRecLib detRecLib

Core C++ library wrapper