Face Search
Input requirements
-
Image format must be jpg or jpeg
-
Size of the input image must not surpass 5 MB with minimum resolution around 640x480 to ensure accuracy rate
-
Face must take up at least ¼ of the total image area.
API Information
1. Create user on the system (to add index images)
Request Url
POST https://api.fpt.ai/vision/ekyc/facesearch/v4/create
Request Headers
| Parameter | Requirement | Default | Description |
|---|---|---|---|
| api_key | Yes | your api_key (from console.fpt.ai) |
Request Body
FormData contains the collection name and user information (id, name)
| Parameter | Requirement | Default | Description |
|---|---|---|---|
| collection | yes | (empty) | each collection will be indexed and searched separately. |
| id | yes | user id must be unique | |
| name | yes | user display name |
Sample Request
curl --location --request POST 'https://api.fpt.ai/vision/ekyc/facesearch/v4/create' \\
\--header 'api_key: xxxxxxxxxxxxxxxx' \\
\--form 'collection=test2' \\
\--form 'id=1234' \\
\--form 'name=Nam'