Package com.appliedrec.verid.core2.util
Class FaceTemplateDiagnostics
- java.lang.Object
-
- com.appliedrec.verid.core2.util.FaceTemplateDiagnostics
-
public class FaceTemplateDiagnostics extends java.lang.Object
Face template diagnostic utility- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description FaceTemplateDiagnostics(VerID verID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 othervoid
compareRegisteredFaceTemplates(boolean hashUserNames, ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserFaceComparison[]>,VerIDCoreException> callback)
Compare all registered face templates to each othervoid
compareUserFaceTemplates(java.util.Map<java.lang.String,IRecognizable[]> userFaceTemplates, ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserFaceComparison[]>,VerIDCoreException> callback)
Compare all user face templates to each othervoid
findMostDifferentUsers(boolean hashUserNames, ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserFaceComparison>,VerIDCoreException> callback)
Find registered users with the most different facesUserFaceComparison
findMostDifferentUsers(UserFaceComparison[] comparisons)
Find most different users among the given comparison pairsvoid
findMostSimilarUsers(boolean hashUserNames, ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserFaceComparison>,VerIDCoreException> callback)
Find registered users with the most similar facesUserFaceComparison
findMostSimilarUsers(UserFaceComparison[] comparisons)
Find most similar users among the given comparison pairsandroid.os.Handler
getCallbackHandler()
void
setCallbackHandler(android.os.Handler callbackHandler)
Set the handler on which to dispatch callbacks
-
-
-
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 privacycallback
- Completion callback- Since:
- 2.3.0
-
compareUserFaceTemplates
public void compareUserFaceTemplates(java.util.Map<java.lang.String,IRecognizable[]> userFaceTemplates, ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserFaceComparison[]>,VerIDCoreException> callback)
Compare all user face templates to each other- Parameters:
userFaceTemplates
- Map of user IDs and face template arrayscallback
- Completion callback- Since:
- 2.4.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 privacycallback
- 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 privacycallback
- 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 otherNote: All supplied templates must have the same version
- Parameters:
faceTemplates
- Face templates to comparecallback
- 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
-
-