Get feature data by photo

https://api.sciener.com/v3/face/getFeatureDataByPhoto

Upload face photo via this API to get face feature data

Note:

1.Only locks that

2.The frontend also has file format and size restrictions for facial photos. Large files must be compressed by the frontend.

Basic Photo Requirements:

1 Request example

POST, ContentType:multipart/form-data

Image files are placed on the body and uploaded as form-data

image

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
imageFile/ImageYFace photo, size limit: 300KB~2MB, format: jpg、png、bmp
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
featureDataStringHuman face feature data, Hexadecimal string