Class UserManagementUtilities
- java.lang.Object
-
- com.appliedrec.verid.core2.util.BaseVerIDUtility
-
- com.appliedrec.verid.core2.util.UserManagementUtilities
-
public class UserManagementUtilities extends BaseVerIDUtility
User management utilities- Since:
- 2.6.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.HashMap<VerIDFaceTemplateVersion,UserManagementAnalysis>analyzeUserManagement()Run an analysis on user managementvoidanalyzeUserManagement(ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserManagementAnalysis>,VerIDCoreException> callback)Run an analysis on user managementjava.util.Set<VerIDFaceTemplateVersion>findAvailableFaceTemplateVersions()VerIDFaceTemplateVersionfindBestAvailableFaceTemplateVersion()voidsafeAssignFacesToUser(IRecognizable[] faces, java.lang.String user)Safely assign faces to uservoidsafeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, ResultCallback<java.lang.Void,VerIDCoreException> callback)Safely assign faces to uservoidsafeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier)Safely assign faces to uservoidsafeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier, ResultCallback<java.lang.Void,VerIDCoreException> callback)Safely assign faces to user-
Methods inherited from class com.appliedrec.verid.core2.util.BaseVerIDUtility
runInBackground
-
-
-
-
Method Detail
-
safeAssignFacesToUser
@WorkerThread public void safeAssignFacesToUser(IRecognizable[] faces, java.lang.String user) throws VerIDCoreException
Safely assign faces to userThis function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.
Warning: This method must be called on a worker thread
- Parameters:
faces- Faces to assignuser- User to whom the faces should be assigned- Throws:
VerIDCoreException- Since:
- 2.6.0
-
safeAssignFacesToUser
@WorkerThread public void safeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier) throws VerIDCoreException
Safely assign faces to userThis function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.
- Parameters:
faces- Faces to assignuser- User to whom the faces should be assignedthresholdSupplier- Function that supplies the threshold for comparisons using the given face template version- Throws:
VerIDCoreException
-
safeAssignFacesToUser
public void safeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, ResultCallback<java.lang.Void,VerIDCoreException> callback)
Safely assign faces to userThis function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.
- Parameters:
faces- Faces to assignuser- User to whom the faces should be assignedcallback- Callback- Since:
- 2.6.0
-
safeAssignFacesToUser
public void safeAssignFacesToUser(IRecognizable[] faces, java.lang.String user, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier, ResultCallback<java.lang.Void,VerIDCoreException> callback)
Safely assign faces to userThis function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.
- Parameters:
faces- Faces to assignuser- User to whom the faces should be assignedthresholdSupplier- Function that supplies the threshold for comparisons using the given face template versioncallback- Callback
-
analyzeUserManagement
@WorkerThread public java.util.HashMap<VerIDFaceTemplateVersion,UserManagementAnalysis> analyzeUserManagement() throws VerIDCoreException, java.lang.InterruptedException
Run an analysis on user managementWarning: This method must be called on a worker thread
- Returns:
- Map with analysis for each face template version
- Throws:
VerIDCoreExceptionjava.lang.InterruptedException- Since:
- 2.6.0
-
analyzeUserManagement
public void analyzeUserManagement(ResultCallback<java.util.HashMap<VerIDFaceTemplateVersion,UserManagementAnalysis>,VerIDCoreException> callback)
Run an analysis on user management- Parameters:
callback- Callback- Since:
- 2.6.0
-
findAvailableFaceTemplateVersions
public java.util.Set<VerIDFaceTemplateVersion> findAvailableFaceTemplateVersions() throws VerIDCoreException
- Throws:
VerIDCoreException
-
findBestAvailableFaceTemplateVersion
public VerIDFaceTemplateVersion findBestAvailableFaceTemplateVersion() throws VerIDCoreException
- Throws:
VerIDCoreException
-
-