- 快速入手
- 帮助文档
- 开发前必读
- 认证授权
- 合同签署
- 审批管理
- 企业管理
- 印章管理
- 回调通知
- 开放接口
身份证OCR识别
POST
/api/open/idCardOcr
V1.6.1
请求参数
Body 参数application/json
imageBase64
string
身份证图片base64
imageUrl
string
身份证图片url
cardSide
string
正反面
示例
{
"imageBase64": "voluptate",
"imageUrl": "minim Lorem dolor",
"cardSide": "magna quis dolore occaecat"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'api.pre-qiandun365.com/api/open/idCardOcr' \
--header 'Content-Type: application/json' \
--data-raw '{
"imageBase64": "voluptate",
"imageUrl": "minim Lorem dolor",
"cardSide": "magna quis dolore occaecat"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
result
object
必需
name
string
姓名
sex
string
性别
nation
string
民族
birth
string
出生日期
address
string
地址
psnIdCardNum
string
身份证号
authority
string
发证机关
validDate
string
证件有效期
logKey
string
必需
ts
string
必需
示例
{
"result": {
"name": "胡图图",
"sex": "男",
"nation": "汉",
"birth": "2000/6/21",
"address": "翻斗大街翻斗花园2号楼1001室",
"psnIdCardNum": "62***********57",
"authority": "",
"validDate": ""
},
"code": "200",
"msg": "成功",
"logKey": "42d32141",
"ts": "1716435133757",
"success": true
}
修改于 2024-06-11 08:07:41