Class FaceTemplateDiagnostics


  • public class FaceTemplateDiagnostics
    extends java.lang.Object
    Face template diagnostic utility
    Since:
    2.3.0
    • Constructor Detail

      • FaceTemplateDiagnostics

        public FaceTemplateDiagnostics​(VerID verID)
        Constructor
        Parameters:
        verID - Ver-ID instance used for face comparisons and user management
    • Method Detail

      • compareRegisteredFaceTemplates

        public void compareRegisteredFaceTemplates​(boolean hashUserNames,
                                                   ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,​UserFaceComparison[]>,​VerIDCoreException> callback)
        Compare all registered face templates to each other
        Parameters:
        hashUserNames - If true the user names in the result will be hashes using SHA 256 algorithm to preserve privacy
        callback - Completion callback
        Since:
        2.3.0
      • findMostDifferentUsers

        public void findMostDifferentUsers​(boolean hashUserNames,
                                           ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,​UserFaceComparison>,​VerIDCoreException> callback)
        Find registered users with the most different faces
        Parameters:
        hashUserNames - If true the user names in the result will be hashes using SHA 256 algorithm to preserve privacy
        callback - Completion callback
        Since:
        2.3.0
      • findMostSimilarUsers

        public void findMostSimilarUsers​(boolean hashUserNames,
                                         ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,​UserFaceComparison>,​VerIDCoreException> callback)
        Find registered users with the most similar faces
        Parameters:
        hashUserNames - If true the user names in the result will be hashes using SHA 256 algorithm to preserve privacy
        callback - Completion callback
        Since:
        2.3.0
      • findMostDifferentUsers

        public UserFaceComparison findMostDifferentUsers​(UserFaceComparison[] comparisons)
        Find most different users among the given comparison pairs
        Parameters:
        comparisons - Comparison pairs
        Returns:
        The most different user pair
        Since:
        2.3.0
      • findMostSimilarUsers

        public UserFaceComparison findMostSimilarUsers​(UserFaceComparison[] comparisons)
        Find most similar users among the given comparison pairs
        Parameters:
        comparisons - Comparison pairs
        Returns:
        The most similar user pair
        Since:
        2.3.0
      • compareFaceTemplates

        public void compareFaceTemplates​(IRecognizable[] faceTemplates,
                                         ResultCallback<java.util.HashMap<IRecognizable,​java.util.HashMap<IRecognizable,​java.lang.Float>>,​VerIDCoreException> callback)
        Compare all face templates in a given array to each other

        Note: All supplied templates must have the same version

        Parameters:
        faceTemplates - Face templates to compare
        callback - Completion callback
        Since:
        2.3.0
      • getCallbackHandler

        @NonNull
        public android.os.Handler getCallbackHandler()
        Returns:
        Handler on which method callbacks will be dispatched
        Since:
        2.3.0
      • setCallbackHandler

        public void setCallbackHandler​(@Nullable
                                       android.os.Handler callbackHandler)
        Set the handler on which to dispatch callbacks
        Parameters:
        callbackHandler - Handler or null to use the handler on which the method was invoked
        Since:
        2.3.0