Face Search
Search for the same face photos that have been added by face photos
1. Add face image
Code example:
Response for add face success with one face in the image
Response for add face success with two faces in the image
Response for detecting face failed
Response for server error
Response for invalid image format
Response for image size larger than 2M
HTTP request
POST http://api.ekycpro.com/v1/addface
Request parameters
parameter | description |
---|---|
img | string , use base64 to encode the face image |
name | string , information attached to the added face, less than 128 characters, combination of numbers and letters |
facedb | optional , string , facedb ID. if you need open facedb, please contact business people to provide additional facedb info |
Response format
fields | description |
---|---|
status | status code, if status is OK , successfully add face image |
message | some message of the addition result person_id : this is the unique personal id which you have added name : the input personal name |
Status code
status | description |
---|---|
OK | charge , successfully add face image, add face is free |
FACE_DETECT_FAILED | charge , detect face failed |
IMAGE_INVALID_SIZE | free , image larger than 2M |
IMAGE_INVALID_FORMAT | free , invalid image format, image format should be one of jpeg/jpg/png/bmp |
INVALID_REQUEST | free , invalid request parameters |
FAIL | free , other errors |
2. Search the same face
Code example:
Response for get similar faces
Response for get no similar faces
Response for detecting face failed
Response for invalid image format
Response for image size larger than 2M
Response for server error
HTTP request
POST http://api.ekycpro.com/v1/searchface
Request parameters
parameter | description |
---|---|
img | string , the base64 encode of the face image |
facedb | optional , string , facedb ID. if you need open facedb, please contact business people to provide additional facedb info |
Response format
fields | description |
---|---|
status | status code |
message | some message of the face search result confidence : this is the confidence level of the searched face, the range is [0, 100]. Confidence greater than 80 will be listed, and maximum of 50 similar items will be listed. In actual situations, Confidence need set at around 95 points to ensure sufficient accuracy. person_id : this is the unique personal id which you have added name : the input personal info |
Status code
status | description |
---|---|
OK | charge , success search the face image |
NO_SIMILAR_FACE | charge , no similar face in db |
FACE_DETECT_FAILED | charge , detect face failed |
IMAGE_INVALID_SIZE | free , image larger than 2M |
IMAGE_INVALID_FORMAT | free , invalid image format, image format should be one of jpeg/jpg/png/bmp |
INVALID_REQUEST | free , invalid request parameters |
FAIL | free , other errors |
3. Delete face
Code example:
Response for delete face success
Response for input person id not exist
Response for server error
HTTP request
POST http://api.ekycpro.com/v1/delface
Request parameters
parameter | description |
---|---|
person_id | string , person id |
facedb | optional , string , facedb ID. if you need open facedb, please contact business people to provide additional facedb info |
Response format
fields | description |
---|---|
status | status code |
message | err description |
Status code
status | description |
---|---|
OK | free , success delete face |
PERSON_ID_NOT_EXIST | free , input person id not exist |
INVALID_REQUEST | free , invalid request parameters |
FAIL | free , other errors |