Face Search
We support both 1:N and N:N face search.
Last updated
We support both 1:N and N:N face search.
Last updated
Within a collection, Face Search API allows you to search for previously registered persons using an image with a single that is obtained at a later time. The search is performed using a deep learning model trained on millions of face images. The search results are ranked by the similarity score, which is a number between 0 and 1, where 1 is a perfect match and 0 is a perfect mismatch. The max_results parameter is optional and allows you to control the maximum number of returned results. By default, it is set to 1, but you can customize this number for your specific use case.
If multiple faces are been searched, the search results are returned in order of decreasing similarity score, as long the specified min_score threshold (default is 0.7) is met.
POST
/face-search
This endpoint is for 1:N search of one face in an image within a collection
Headers
Body
check_liveness
Required: yes
Type: boolean Default value: false Accepted values: false, true
Example:
collection_name
Required: Yes
Type: string Example:
Face search is performed within a specified collection. If the person is not enrolled in that collection, the result will be empty.
face_base_64
Required: Yes
Type: string Example:
Use a Base64-encoded string to perform a 1:N face search. Each image should contain only one face. For N:N face search, use POST /multi-face-search
min_similarity_score
Required: Yes
Type: float Default value: 0.7 Example:
The default value is a good indicator to confirm the match. You can also use a score of 0.67 or higher if the images are of the same person but taken at different times (years apart).
max_results
Required: Yes
Type: integer Example:
The max_results parameter allows you to control the maximum number of returned results. By default, it is set to 1, but you can customize this number for your specific use case.
POST
/multi-face-search
<This endpoint is for N:N search multiple faces in an image within a collection>
Body
collection_name
Required: Yes
Type: string Example:
Face search is performed within a specified collection. If the person is not enrolled in that collection, the result will be empty.
multi_face_img_base_64
Required: Yes
Type: string Example:
This enables searching for multiple faces within an image and retrieving results for all detected faces. If a face is not enrolled in the specified collection, its thumbnail will be returned without a similarity_score.
min_similarity_score
Required: Yes
Type: float Default value: 0.7 Example:
The default value is a good indicator to confirm the match. You can also use a score of 0.67 or higher if the images are of the same person but taken at different times (years apart).
Response
If set to true, the liveness check is performed during 1:N face search if the face is found. If no face is found, liveness is not checked. Check
1:N Face Search
N:N Face Search
Content-Type
application/json
x-api-key
<your-api-key>