1、人脸识别
| 接口地址 | |
|---|---|
| 图片为base64流 | https://netocr.com/verapi/verFaceImage.do | 
| 接口调用方法 | post | 
接口接收参数:
| 序号 | 名称 | 类型 | 必填 | 说明 | 
|---|---|---|---|---|
| 1 | img1 | String | 是 | 上传的文件(图片的base64流) 支持的图片格式:BMP/JPG/TIF/PNG/WSQ/JP2/JPC/J2K/TFF 大小在200KB左右 | 
| 2 | img2 | String | 是 | 上传的文件(图片的base64流) 支持的图片格式:BMP/JPG/TIF/PNG/WSQ/JP2/JPC/J2K/TFF 大小在200KB左右 | 
| 3 | key | String | 是 | 用户ocrKey | 
| 4 | secret | String | 是 | 用户ocrSecrert | 
| 5 | typeId | Integer | 是 | 识别类型:21 | 
| 6 | format | String | 是 | 返回格式(xml或者json),如果format为空,则默认返回xml | 
结果示例:
{
    "infoList": [
        {
            "veritem": [
                {"desc": "判定结果:是","name": null,"content": ""},
                {"desc": "判定值:100.0","name": null,"content": ""} //(判定值得分范围 0-100,阈值为50,得分越高表示同一人可能性越大)
            ]
        }
    ],
    "messageString": {
        "status": "2000",
        "value": "成功"
    }
}
2、静默活体
| 接口地址 | |
|---|---|
| 图片为base64流 | https://netocr.com/verapi/verLivenessImage.do | 
| 接口调用方法 | post | 
接口接收参数:
| 序号 | 名称 | 类型 | 必填 | 说明 | 
|---|---|---|---|---|
| 1 | img | String | 是 | 上传的文件(图片的base64流) 支持的图片格式:BMP/JPG/TIF/PNG/WSQ/JP2/JPC/J2K/TFF 大小在200KB左右 | 
| 2 | key | String | 是 | 用户ocrKey | 
| 3 | secret | String | 是 | 用户ocrSecrert | 
| 4 | typeId | Integer | 是 | 识别类型:3035 | 
| 5 | format | String | 是 | 返回格式(xml或者json),如果format为空,则默认返回xml | 
结果示例:
{
    "infoList": [
        {
            "veritem": [
                {
                    "desc": "判定结果",
                    "content": "是"
                },
                {
                    "desc": "判定值",
                    "content": "0.001"
                }
            ]
        }
     ],
     "messageString": {
        "status": "2000",
        "value": "成功"
     }
}
3、视频活体
| 接口地址 | |
|---|---|
| 视频为base64流 | https://netocr.com/verapi/verLivenessVideo.do | 
| 接口调用方法 | post | 
接口接收参数:
| 序号 | 名称 | 类型 | 必填 | 说明 | 
|---|---|---|---|---|
| 1 | videoContent | String | 是 | 上传的文件(视频的base64流),支持视频格式:avi/mp4/mpg/wmv/mkv/rm/rmvb/mov/flv,视频建议不超过 1M,视频时间 3-5 秒 | 
| 2 | key | String | 是 | 用户ocrKey | 
| 3 | secret | String | 是 | 用户ocrSecrert | 
| 4 | typeId | Integer | 是 | 识别类型:3036 | 
| 5 | format | String | 是 | 返回格式(xml或者json),如果format为空,则默认返回xml | 
结果示例:
{
    "infoList": [
        {
            "veritem": [
                {"desc": "判定值", "name": null, "content": "100.0"},
(判定值得分范围 0-100,阈值为50,得分越低表示活体可能性越大)
                {"desc": "是否为活体", "name": null, "content": "非活体"},
                {"desc": "是否有换人", "name": null, "content": "否"},
                {"desc": "是否有眨眼", "name": null, "content": "否"},
                {"desc": "是否有张嘴", "name": null, "content": "否"}
            ]
        }
    ],
    "messageString": {
        "status": "2000",
        "value": "成功"
    }
}
4、人证合一
| 接口地址 | |
|---|---|
| 图片为base64流 | https://netocr.com/api/faceliu.do | 
| 图片为file格式 | https://netocr.com/api/facerecog.do | 
| 接口调用方法 | post | 
(注:调用图片为base64流接口时传参数img1,img2;调用图片为file格式接口传参数file1,file2)
请求参数:
| 序号 | 名称 | 类型 | 必填 | 说明 | 
|---|---|---|---|---|
| 1 | img1 | String | 是 | 上传的文件(图片的base64流,该图为证件图片) | 
| 2 | img2 | String | 是 | 上传的文件(图片的base64流) | 
| 3 | file1 | MultipartFile | 是 | 上传的文件(上传文件的字段名必须是“file1”,该图为证件图片) | 
| 4 | file2 | MultipartFile | 是 | 上传的文件(上传文件的字段名必须是“file2”) | 
| 5 | key | String | 是 | 用户ocrKey | 
| 6 | secret | String | 是 | 用户ocrSecrert | 
| 7 | typeId | Integer | 是 | 识别类型:9999 | 
| 8 | format | String | 是 | 返回格式(xml或者json),如果format为空,则默认返回xml | 
结果示例:
{
    "message": {
        "status": 0,
        "value": "比对完成"
    },
    "cardsinfo": [
        {
            "type": "9999",
            "items": [
                {"nID": null, "index": null, "desc": "判定值", "content": "0.54066247"}, //(判定值得分范围 0-100,阈值为50,得分越高表示同一人可能性越大)
                {"nID": null, "index": null, "desc": "判定结果", "content": "否"},
                {"nID": null, "index": null, "desc": "保留", "content": ""},
                {"nID": null, "index": null, "desc": "姓名", "content": "***"},
                {"nID": null, "index": null, "desc": "性别", "content": "女"},
                {"nID": null, "index": null, "desc": "民族", "content": "汉"},
                {"nID": null, "index": null, "desc": "出生", "content": "***"},
                {"nID": null, "index": null, "desc": "住址", "content": "***"},
                {"nID": null, "index": null, "desc": "公民身份号码", "content": "***"}
            ]
        }
    ]
}