文档
测试

识别身份证ocr

POST
https://djsh.meiliancheng.cn/index.php?s=/api/ocr/idcardOcr

请求参数

参数名
类型
描述
必填
wxapp_id
int
示例:10001
必填
file_id
int
示例:111111
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:识别成功
必填
data
object
数据字典
必填
result
object
数据字典
必填
log_id
int
示例:8382782884937404000
必填
words_result_num
int
示例:6
必填
image_status
string
示例:normal
必填
words_result
object
数据字典
必填
住址
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:409
必填
top
int
示例:946
必填
left
int
示例:255
必填
height
int
示例:162
必填
words
string
示例:安徽省合肥市瑶海区长江东路688号紫云府1幢2008室
必填
出生
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:321
必填
top
int
示例:867
必填
left
int
示例:255
必填
height
int
示例:49
必填
words
string
示例:19830916
必填
姓名
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:100
必填
top
int
示例:704
必填
left
int
示例:259
必填
height
int
示例:47
必填
words
string
示例:王琳
必填
公民身份号码
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:549
必填
top
int
示例:1148
必填
left
int
示例:415
必填
height
int
示例:70
必填
words
string
示例:342426198309160849
必填
性别
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:29
必填
top
int
示例:795
必填
left
int
示例:254
必填
height
int
示例:37
必填
words
string
示例:女
必填
民族
object
数据字典
必填
location
object
数据字典
必填
width
int
示例:27
必填
top
int
示例:798
必填
left
int
示例:456
必填
height
int
示例:33
必填
words
string
示例:汉
必填
idcard_number_type
int
示例:1
必填