Skip to content

出生证明识别


接口描述

通过光学字符识别技术,从出生证明图像中识别出各项信息.

进行接口调用前,需要获取必要的token信息,可查看登录鉴权。 该接口为加密接口,可查看签名与加密方式配置加密秘钥,并对接口内容进行加密。

请求说明

HTTP 方法:

POST

请求 URL:

/ai-cloud-face/ocr/v2/birthCertificate

Header如下:

参数名称
Content-Typeapplication/json;charset=UTF-8

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

请求参数:

参数名称必填数据类型长度参数描述
imgString1-3000k待处理图片(base64 编码),原始图片大小需要小于 3M;
busFlowIdString0-64业务流水号,业务系统唯一序列号(对账用,建议传入)

请求示例:

{
    "img":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQ......",
    "busFlowId":"uRVJfd594lRwz7m3"
}

返回说明

返回参数:

返回值名称数据类型长度描述
codeString1-8返回结果,00000000表示成功
messageString1-255返回码描述
dataObject-返回的数据
-flowIdString1-64交易流水ID(建议保存)
-busFlowIdString0-64业务流水号,业务系统唯一序列号
-babyBirthdayString1-32出生日期
-birthProvinceString1-32出生地点_省
-birthCityString1-32出生地点_市
-birthCountyString1-32出生地点_县(区)
-birthWeightString1-32出生体重
-birthLengthString1-32出生身长
-gestationalAgeString1-32出生孕周
-babyNameString1-32幼儿姓名
-babySexString1-32幼儿性别
-codeString1-64出生证编号
-hospitalString1-64出生医院/医疗机构名称
-fatherNameString1-64父亲姓名
-fatherIDString1-32父亲身份证号
-fatherNationalityString1-32父亲国籍
-fatherEthnicString1-32父亲民族
-fatherAddressString1-64父亲住址
-fatherAgeString1-32父亲年龄
-motherNameString1-64母亲姓名
-motherIDString1-32母亲身份证号
-motherNationalityString1-32母亲国籍
-motherEthnicString1-32母亲民族
-motherAddressString1-64母亲住址
-motherAgeString1-32母亲年龄

返回示例:

{
  "code": "00000000",
  "message": "请求成功",
  "data": {
    "flowId": "1234567890abcdef1234567890abcdef",
    "busFlowId": "BUS1234567890",
    "babyBirthday": "2026-01-01",
    "birthProvince": "浙江省",
    "birthCity": "杭州市",
    "birthCounty": "西湖区",
    "birthWeight": "3.2",
    "birthLength": "50",
    "gestationalAge": "40",
    "babyName": "小明",
    "babySex": "男",
    "code": "出生证1234567890",
    "hospital": "杭州市第一人民医院",
    "fatherName": "张三",
    "fatherID": "500234************",
    "fatherNationality": "中国",
    "fatherEthnic": "汉族",
    "fatherAddress": "杭州市西湖区文三路123号",
    "fatherAge": "28",
    "motherName": "李四",
    "motherID": "500234************",
    "motherNationality": "中国",
    "motherEthnic": "汉族",
    "motherAddress": "杭州市西湖区文三路123号",
    "motherAge": "26"
  }
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共CODE码表

码值是否成功是否计费描述
00000000成功
50028100图片不能为空
50028103图片大小不能超过3M
50028104图片Base64编码错误或图片原始数据错误
50028205出生证明识别异常