Searches for UserIDs within a collection based on a FaceId or UserId¶
Description¶
Searches for UserIDs within a collection based on a FaceId or UserId. This API can be used to find the closest UserID (with a highest similarity) to associate a face. The request must be provided with either FaceId or UserId. The operation returns an array of UserID that match the FaceId or UserId, ordered by similarity score with the highest similarity first.
Usage¶
Arguments¶
-
CollectionId[required] The ID of an existing collection containing the UserID, used with a UserId or FaceId. If a FaceId is provided, UserId isn’t required to be present in the Collection.
-
UserIdID for the existing User.
-
FaceIdID for the existing face.
-
UserMatchThresholdOptional value that specifies the minimum confidence in the matched UserID to return. Default value of 80.
-
MaxUsersMaximum number of identities to return.
Value¶
A list with the following syntax:
list(
UserMatches = list(
list(
Similarity = 123.0,
User = list(
UserId = "string",
UserStatus = "ACTIVE"|"UPDATING"|"CREATING"|"CREATED"
)
)
),
FaceModelVersion = "string",
SearchedFace = list(
FaceId = "string"
),
SearchedUser = list(
UserId = "string"
)
)