Class FaceDetectionUtilities


  • public class FaceDetectionUtilities
    extends BaseVerIDUtility
    Face detection utilities
    Since:
    2.6.0
    • Method Detail

      • detectRecognizableFacesInImage

        public void detectRecognizableFacesInImage​(IImageProvider image,
                                                   int limit,
                                                   java.util.Set<VerIDFaceTemplateVersion> faceTemplateVersions,
                                                   ResultCallback<RecognizableFace[],​VerIDCoreException> callback)
        Detect faces and create face recognition templates
        Parameters:
        image - Image in which to detect faces
        limit - Maximum number of faces to detect
        faceTemplateVersions - Versions of face templates to extract
        callback - Callback
        Since:
        2.6.0
      • detectRecognizableFacesInImage

        @WorkerThread
        public RecognizableFace[] detectRecognizableFacesInImage​(IImageProvider image,
                                                                 int limit,
                                                                 java.util.Set<VerIDFaceTemplateVersion> faceTemplateVersions)
                                                          throws VerIDCoreException
        Detect faces and create face recognition templates

        Warning: This method must be called on a worker thread

        Parameters:
        image - Image in which to detect faces
        limit - Maximum number of faces to detect
        faceTemplateVersions - Versions of face templates to extract
        Returns:
        Faces that can be used for face recognition
        Throws:
        VerIDCoreException
        Since:
        2.6.0
      • detectRecognizableFacesInImage

        @WorkerThread
        public RecognizableFace[] detectRecognizableFacesInImage​(IImageProvider image,
                                                                 int limit)
                                                          throws VerIDCoreException
        Detect faces and create face recognition templates

        Note: All available face template versions will be extracted. If you require a subset please use detectRecognizableFacesInImage(IImageProvider, int, Set)

        Warning: This method must be called on a worker thread

        Parameters:
        image - Image in which to detect faces
        limit - Maximum number of faces to detect
        Returns:
        Faces that can be used for face recognition
        Throws:
        VerIDCoreException
        Since:
        2.6.0