热门搜索 : 电子合同   签署   产品
首页 > 文档中心 > 人脸对比 > API接口文档

1)请求地址

https://v.1dq.com/api/ocr/facethan

2)示范URL

https://v.1dq.com/api/ocr/facethan?key=您的key&face1=&face2=

3)请求参数

字段名称 类型 必填 字段说明 示范 备注
key string Y AppKey在我的数据页面 xxxxxx -
face1 string Y 图片地址,如http://www.gotoway.com/xxx.jpg -
face2 string Y 图片地址,如http://www.gotoway.com/xxx.jpg -

4)选填参数

字段名称 类型 必填 字段说明 示范 备注
trans_id string N 用户订单号,24 字符以内 2017201230 -
trans_date string N 用户订单时间,格式为YYmmddHHiiss 20160112122233 -
trans_remark string N 用户备注,原路返回 xxx -
account string N 是否返回账户信息,
如需返回剩余可用次数,请传递auto
如果账户是按次数扣除,则返回剩余次数
如账户是按金额扣除,则返回账户剩余金额
auto -
output string N 输出格式,默认JSON;可选项JSON/XML JSON -

5)返回参数

字段名称 类型 必填 字段说明 示范 备注
error_code int Y 状态码 - -
reason string Y 状态说明 - -
ordersign string Y 订单号 - -
result string Y 结果集 - -
----confidence string - 范围 [0,100],数字越大表示两个人脸越可能是同一个人 - -

6)返回JSON结果示例

{
  "error_code": 0,
  "reason": "OK",
  "result": {
    "confidence": 94
  },
  "ordersign": "2017061423474231710155525"
}

现在注册,免费试用所有产品

免费体验