Package com.appliedrec.verid.core2
Class UserIdentification
- java.lang.Object
-
- com.appliedrec.verid.core2.UserIdentification
-
public class UserIdentification extends java.lang.Object
Identify users in faces- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description UserIdentification(VerID environment)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiedFace[]
findFacesSimilarTo(IRecognizable face, IRecognizable[] faces, java.lang.Float threshold)
void
findFacesSimilarTo(IRecognizable face, IRecognizable[] faces, java.lang.Float threshold, UserIdentificationCallbacks callbacks)
Find faces similar to another facejava.util.Map<java.lang.String,java.lang.Float>
identifyUsersInFace(RecognizableFace face)
Identify one or more registered users in the face.java.util.Map<java.lang.String,java.lang.Float>
identifyUsersInFace(RecognizableFace face, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier)
Identify one or more registered users in the face.
-
-
-
Constructor Detail
-
UserIdentification
public UserIdentification(VerID environment)
Constructor- Parameters:
environment
- Ver-ID instance- Since:
- 1.0.0
-
-
Method Detail
-
identifyUsersInFace
public java.util.Map<java.lang.String,java.lang.Float> identifyUsersInFace(RecognizableFace face) throws VerIDCoreException
Identify one or more registered users in the face.The function returns users whose faces compared to the given face yield a similarity score above the
authentication threshold
.- Parameters:
face
- The face in which to identify the users- Returns:
- Map of user IDs and similarity scores – higher score = better match
- Throws:
VerIDCoreException
- if the identification fails- Since:
- 1.0.0
-
identifyUsersInFace
public java.util.Map<java.lang.String,java.lang.Float> identifyUsersInFace(RecognizableFace face, java.util.function.Function<VerIDFaceTemplateVersion,java.lang.Float> thresholdSupplier) throws VerIDCoreException
Identify one or more registered users in the face.The function returns users whose faces compared to the given face yield a similarity score above the threshold obtained from the threshold supplier function.
- Parameters:
face
- The face in which to identify the usersthresholdSupplier
- Function that supplies the threshold for comparisons using the given face template version- Returns:
- Map of user IDs and similarity scores – higher score = better match
- Throws:
VerIDCoreException
- if the identification fails
-
findFacesSimilarTo
public void findFacesSimilarTo(@NonNull IRecognizable face, @NonNull @Size(min=1L) IRecognizable[] faces, @Nullable java.lang.Float threshold, @NonNull UserIdentificationCallbacks callbacks)
Find faces similar to another face- Parameters:
face
- Face to compare other faces tofaces
- Other faces to compare to the facethreshold
- Similarity score threshold or null to use the environment's default thresholdcallbacks
- Callbacks that consume the result
-
findFacesSimilarTo
@WorkerThread public IdentifiedFace[] findFacesSimilarTo(@NonNull IRecognizable face, @NonNull @Size(min=1L) IRecognizable[] faces, @Nullable java.lang.Float threshold) throws VerIDCoreException
- Throws:
VerIDCoreException
-
-