保单识别

接口描述

【此接口需要您在申请页面中提交合作咨询开通权限】对各类保单中投保人、受益人的各项信息、保费、保险名称等字段进行结构化识别

请求说明

请求示例

HTTP 方法:POST

请求URL: https://aip.baidubce.com/rest/2.0/ocr/v1/insurance_documents

URL参数:

参数
access_token 通过API Key和Secret Key获取的access_token,参考“Access Token获取

Header如下:

参数
Content-Type application/x-www-form-urlencoded

Body中放置请求参数,参数详情如下:

请求参数

参数 是否必选 类型 可选值范围 说明
image string - 图像数据,base64编码后进行urlencode,要求base64编码和urlencode后大小不超过4M,最短边至少15px,最长边最大4096px,支持jpg/jpeg/png/bmp格式
rkv_business string true/false 是否进行商业逻辑处理,rue:进行商业逻辑处理,false:不进行商业逻辑处理,默认true

请求代码示例

参考通用文字识别(含位置信息版)

返回说明

返回参数

字段 是否必选 类型 说明
log_id uint64 唯一的log id,用于问题定位
words_result_num uint32 识别结果数,表示words_result的元素个数
words_result object 定位和识别结果数组
BenPerLst object 受益人信息
BenCltNa string 受益人姓名
BenPerPro string 受益比例
BenPerOrd string 受益顺序
BenPerTyp string 受益人类型
InsBilCom string 公司名称
InsBilNo string 保险单号码
InsBilTim string 保单生效日期
InsCltGd1 string 投保人性别
InsCltNa1 string 投保人
InsIdcNb1 string 投保人证件号码
InsIdcTy1 string 投保人证件类型
InsPerLst object 被保人信息
InsCltGd2 string 被保人性别
InsCltNa2 string 被保险人
InsBthDa2 string 被保险人出生日期
InsIdcNb2 string 被保险人证件号码
InsIdcTy2 string 被保险人证件类型
InsPrdList object 保险信息
InsCovDur string 保险期限
InsIcvAmt string 基本保险金额
InsPayDur string 交费期间
InsPayFeq string 缴费频率
InsPerAmt string 每期交费金额
InsPrdNam string 产品名称

返回示例

{
    "log_id": 673571462,
    "words_result_num": 10,
    "words_result": {
        "BenPerLst": [{
            "BenPerTyp": {
                "words": "身故受益人"
            }
        }],
        "InsBilCom": {
            "location": {
                "left": 168,
                "top": 73,
                "width": 330,
                "height": 41
            },
            "words": "和谐健康保险股份有限公司"
        },
        "InsBilNo": {
            "location": {
                "left": 250,
                "top": 232,
                "width": 248,
                "height": 30
            },
            "words": "2110010000100"
        },
        "InsBilTim": {
            "location": {
                "left": 1047,
                "top": 1349,
                "width": 146,
                "height": 26
            },
            "words": "2014-09-18"
        },
        "InsCltGd1": {
            "location": {
                "left": 184,
                "top": 415,
                "width": 50,
                "height": 29
            },
            "words": "男"
        },
        "InsCltNa1": {
            "location": {
                "left": 257,
                "top": 284,
                "width": 36,
                "height": 29
            },
            "words": "过"
        },
        "InsIdcNb1": {
            "location": {
                "left": 1006,
                "top": 336,
                "width": 189,
                "height": 28
            },
            "words": "31011019880215"
        },
        "InsIdcTy1": {
            "location": {
                "left": 632,
                "top": 422,
                "width": 91,
                "height": 28
            },
            "words": "身份证"
        },
        "InsPerLst": [{
            "InsCltGd2": {
                "location": {
                    "left": 184,
                    "top": 415,
                    "width": 50,
                    "height": 29
                },
                "words": "男"
            },
            "InsCltNa2": {
                "location": {
                    "left": 278,
                    "top": 371,
                    "width": 105,
                    "height": 31
                },
                "words": "过海敏"
            },
            "InsIdcNb2": {
                "location": {
                    "left": 1008,
                    "top": 422,
                    "width": 189,
                    "height": 25
                },
                "words": "31011019880215"
            },
            "InsIdcTy2": {
                "location": {
                    "left": 632,
                    "top": 422,
                    "width": 91,
                    "height": 28
                },
                "words": "身份证"
            }
        }, {
            "InsIdcTy2": {
                "location": {
                    "left": 636,
                    "top": 340,
                    "width": 87,
                    "height": 27
                },
                "words": "身份证"
            }
        }, {
            "InsIdcTy2": {
                "location": {
                    "left": 1006,
                    "top": 336,
                    "width": 189,
                    "height": 28
                },
                "words": "身份证"
            }
        }],
        "InsPrdList": [{
            "InsCovDur": {
                "location": {
                    "left": 737,
                    "top": 808,
                    "width": 72,
                    "height": 25
                },
                "words": "至70岁"
            },
            "InsIcvAmt": {
                "location": {
                    "left": 531,
                    "top": 802,
                    "width": 114,
                    "height": 31
                },
                "words": "20000.00"
            },
            "InsPayDur": {
                "location": {
                    "left": 1081,
                    "top": 804,
                    "width": 48,
                    "height": 24
                },
                "words": "20年"
            },
            "InsPayFeq": {
                "location": {
                    "left": 1246,
                    "top": 800,
                    "width": 51,
                    "height": 26
                },
                "words": "年交"
            },
            "InsPerAmt": {
                "location": {
                    "left": 888,
                    "top": 811,
                    "width": 88,
                    "height": 19
                },
                "words": "952.00"
            },
            "InsPrdNam": {
                "location": {
                    "left": 131,
                    "top": 802,
                    "width": 351,
                    "height": 31
                },
                "words": "和谐健康之尊定期防癌疾病保险"
            }
        }]
    }
}