POST api/Biometric/Baidu/FaceRecognition/Compare
判断再次录入的照片人脸是否与已存在的为同一人
Request Information
URI Parameters
None.
Body Parameters
FaceMatchParmName | Description | Type | Additional information |
---|---|---|---|
oldimage |
已存在的人脸图片 |
string |
None. |
newimage |
新录入的人脸图片 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "oldimage": "sample string 1", "newimage": "sample string 2" }
application/xml, text/xml
Sample:
<FaceMatchParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <newimage>sample string 2</newimage> <oldimage>sample string 1</oldimage> </FaceMatchParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
判断再次录入的照片人脸是否与已存在的为同一人
BaiDuFaceMatchBaseResultName | Description | Type | Additional information |
---|---|---|---|
error_code |
错误代码 |
string |
None. |
error_msg |
错误信息 |
string |
None. |
log_id | string |
None. |
|
timestamp | string |
None. |
|
cached | string |
None. |
|
result |
返回参数的集合 |
BaiDuFaceMatchResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "error_code": "sample string 1", "error_msg": "sample string 2", "log_id": "sample string 3", "timestamp": "sample string 4", "cached": "sample string 5", "result": { "score": 1.1, "face_list": [ { "face_token": "sample string 1" }, { "face_token": "sample string 1" } ] } }
application/xml, text/xml
Sample:
<BaiDuFaceMatchBaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result"> <cached>sample string 5</cached> <error_code>sample string 1</error_code> <error_msg>sample string 2</error_msg> <log_id>sample string 3</log_id> <result> <face_list> <BaiDuFaceMatchResult_FaceList> <face_token>sample string 1</face_token> </BaiDuFaceMatchResult_FaceList> <BaiDuFaceMatchResult_FaceList> <face_token>sample string 1</face_token> </BaiDuFaceMatchResult_FaceList> </face_list> <score>1.1</score> </result> <timestamp>sample string 4</timestamp> </BaiDuFaceMatchBaseResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.