TIP
# 营业执照识别
接口说明:支持识别营业执照信息,包括社会信用代码、组成形式、经营范围、成立日期、企业法人、注册资本、证件编号、地址、单位名称、有效期、核准日期、类型等。
请求方式: POST(HTTPS)
 请求地址: https://openapi.qince.com/api/openai/ocr/businessLicense/{clientid}/{timestamp}/{digest}/{msg_id} 在线调试
 请求示例:
参数说明:
| 参数 | 类型 | 必填 | 说明 | 
|---|---|---|---|
| transfer_id | uint64 | 是 | 业务调用id,不允许重复由调用方给出,不能超过32位,提交图片后可根据该id查询识明别结果 | 
| image | STRING | 和url二选一 | 图像数据,base64编码后进行urlencode,要求base64编码和urlencode后大小不超过8M,最短边至少15px,最长边最大8192px,支持jpg/jpeg/png/bmp格式,优先级:image > url ,当image字段存在时,url字段失效 | 
| url | STRING | 和image二选一 | 图片完整url,url长度不超过1024字节,url对应的图片base64编码后大小不超过8M,最短边至少15px,最长边最大8192px,支持jpg/jpeg/png/bmp格式 优先级:image > url ,当image字段存在时,url字段失效,请注意关闭URL防盗链 | 
| risk_detection | STRING | 否 | 是否开启营业执照风险检测功能(复印件、翻拍、扫描),默认false。 true:开启,返回参数risk_type; false:不开启 | 
响应示例:
{
    "return_code": "0", 
    "return_msg": "响应信息",
    "msg_id": "{ msg_id }",
    "response_data": "<<DATA>>"
}
数据DATA示例:
{
    "transfer_id": "3453434212",
    "recognition_id": 1310106134421438464,
    "direction": 0,
    "word_results": {
        "社会信用代码": {
            "words": "10440119MA06M8503",
            "location": {
                "top": 296,
                "left": 237,
                "width": 178,
                "height": 18
            }
        },
        "组成形式": {
            "words": "无",
            "location": {
                "top": -1,
                "left": -1,
                "width": 0,
                "height": 0
            }
        },
        "经营范围": {
            "words": "商务服务业",
            "location": {
                "top": 587,
                "left": 378,
                "width": 91,
                "height": 18
            }
        },
        "成立日期": {
            "words": "2019年01月01日",
            "location": {
                "top": 482,
                "left": 1045,
                "width": 119,
                "height": 19
            }
        },
        "法人": {
            "words": "方平",
            "location": {
                "top": 534,
                "left": 377,
                "width": 39,
                "height": 19
            }
        },
        "注册资本": {
            "words": "200万元",
            "location": {
                "top": 429,
                "left": 1043,
                "width": 150,
                "height": 19
            }
        },
        "证件编号": {
            "words": "921MA190538210301",
            "location": {
                "top": 216,
                "left": 298,
                "width": 146,
                "height": 16
            }
        },
        "地址": {
            "words": "广州市",
            "location": {
                "top": 585,
                "left": 1041,
                "width": 55,
                "height": 19
            }
        },
        "单位名称": {
            "words": "有限公司",
            "location": {
                "top": 429,
                "left": 382,
                "width": 72,
                "height": 19
            }
        },
        "有效期": {
            "words": "长期",
            "location": {
                "top": 534,
                "left": 1045,
                "width": 0,
                "height": 0
            }
        },
        "核准日期": {
            "words": "2018年12月20日",
            "location": {
                "top": 534,
                "left": 1045,
                "width": 0,
                "height": 0
            }
        },
        "类型": {
            "words": "有限责任公司(自然人投资或控股)",
            "location": {
                "top": 482,
                "left": 382,
                "width": 260,
                "height": 18
            }
        }
    },
    "result_num": 12
}
参数说明:
| 参数 | 类型 | 说明 | 
|---|---|---|
| transfer_id | uint64 | 业务调用id,不允许重复由调用方给出,不能超过32位,提交图片后可根据该id查询识明别结果 | 
| recognition_id | uint64 | 算法识别id,用于问题定位 | 
| direction | int32 | 图像方向。-1:未定义; 0:正向; 1:逆时针90度; 2:逆时针180度; 3:逆时针270度 | 
| risk_type | string | 当输入参数 risk_detection = true 时,则返回该字段识别营业执照类型:normal-正常营业执照; copy-复印件; screen-翻拍; scan-扫描 | 
| word_results | object | 定位和识别结果数组 | 
| result_num | uint32 | 识别结果数 | 
| words | string | 识别结果字符串 | 
| location | object | 位置数组(坐标0点为左上角) | 
| top | uint32 | 表示定位位置的长方形左上顶点的垂直坐标 | 
| left | uint32 | 表示定位位置的长方形左上顶点的水平坐标 | 
| height | uint32 | 表示定位位置的长方形的高度 | 
| width | uint32 | 表示定位位置的长方形的宽度 | 
