图像识别
POST
{{host}}/wechat/weapp/ocr
接口描述
调用小程序提供的ocr接口进行图像识别
请求参数
参数名
类型
描述
必填
action
string
示例:idcard
必填
imgUrl
string
示例:https://img.ecdata.cn/images/20231116/73dd557373a449ad8ec7682ddfb0dfc4.jpg
必填
响应参数
参数名
类型
描述
必填
code
int
示例:200
必填
addr
string
示例:成都市天府新区华阳华府大道一段7号1栋2单元25楼2501号
必填
birth
string
示例:1983-11-30
必填
card_property
int
示例:4
必填
errcode
int
示例:0
必填
errmsg
string
示例:ok
必填
gender
string
示例:女
必填
id
string
示例:513701198311307063
必填
name
string
示例:肖艳
必填
nationality
string
示例:汉
必填
type
string
示例:Front
必填
message
string
示例:
必填