Package com.appliedrec.verid.core2.util
Class FaceRecognitionUtilities
- java.lang.Object
-
- com.appliedrec.verid.core2.util.BaseVerIDUtility
-
- com.appliedrec.verid.core2.util.FaceRecognitionUtilities
-
public class FaceRecognitionUtilities extends BaseVerIDUtility
Face recognition utilities- Since:
- 2.6.0
-
-
Method Summary
-
Methods inherited from class com.appliedrec.verid.core2.util.BaseVerIDUtility
runInBackground
-
-
-
-
Method Detail
-
createRecognizableFacesFromFaces
public void createRecognizableFacesFromFaces(Face[] faces, IImageProvider image, java.util.EnumSet<VerIDFaceTemplateVersion> faceTemplateVersions, ResultCallback<RecognizableFace[],VerIDCoreException> callback)
Extract face templates from faces in the given image- Parameters:
faces
- Faces for which to extract face templatesimage
- Image in which the faces were detectedfaceTemplateVersions
- Face template versions to extractcallback
- Callback- Since:
- 2.6.0
-
createRecognizableFacesFromFaces
@WorkerThread public RecognizableFace[] createRecognizableFacesFromFaces(Face[] faces, IImageProvider image, java.util.EnumSet<VerIDFaceTemplateVersion> faceTemplateVersions) throws VerIDCoreException
Extract face templates from faces in the given image- Parameters:
faces
- Faces for which to extract face templatesimage
- Image in which the faces were detectedfaceTemplateVersions
- Face template versions to extract- Returns:
- Faces that can be used for face recognition
- Throws:
VerIDCoreException
- Since:
- 2.6.0
-
compareFacesInImages
public void compareFacesInImages(IImageProvider image1, IImageProvider image2, VerIDFaceTemplateVersion faceTemplateVersion, ResultCallback<FaceComparison,VerIDCoreException> callback)
Compare faces in images- Parameters:
image1
- First imageimage2
- Second imagefaceTemplateVersion
- Face template version to use for the comparisoncallback
- Callback- Since:
- 2.6.0
-
compareFacesInImages
public void compareFacesInImages(IImageProvider image1, IImageProvider image2, ResultCallback<FaceComparison,VerIDCoreException> callback)
Compare faces in images- Parameters:
image1
- First imageimage2
- Second imagecallback
- Callback- Since:
- 2.6.0
-
compareFacesInImages
@WorkerThread public FaceComparison compareFacesInImages(IImageProvider image1, IImageProvider image2, VerIDFaceTemplateVersion faceTemplateVersion) throws VerIDCoreException
Compare faces in imagesWarning: This method must be called on a worker thread
- Parameters:
image1
- First imageimage2
- Second imagefaceTemplateVersion
- Face template version to use for the comparison- Returns:
- Face comparison
- Throws:
VerIDCoreException
- Since:
- 2.6.0
-
compareFacesInImages
@WorkerThread public FaceComparison compareFacesInImages(IImageProvider image1, IImageProvider image2) throws VerIDCoreException
Compare faces in imagesWarning: This method must be called on a worker thread
- Parameters:
image1
- First imageimage2
- Second image- Returns:
- Face comparison
- Throws:
VerIDCoreException
- Since:
- 2.6.0
-
identifyUsersInImage
public void identifyUsersInImage(IImageProvider image, int limit, ResultCallback<UserIdentificationResult[],VerIDCoreException> callback)
Identify users in image- Parameters:
image
- Image in which to identify userslimit
- Maximum number of faces to detectcallback
-- Since:
- 2.6.0
-
identifyUsersInImage
@WorkerThread public UserIdentificationResult[] identifyUsersInImage(IImageProvider image, int limit) throws VerIDCoreException
Identify users in imageWarning: This method must be called on a worker thread
- Parameters:
image
- Image in which to identify userslimit
- Maximum number of faces to detect- Returns:
- Array of user identification results
- Throws:
VerIDCoreException
- Since:
- 2.6.0
-
-