作者: 浏览量:156 更新时间: 2018.01.31
本页面主要介绍服务对应的接口和返回结果中的关键字段的含义,请在阅读本页面之前,了解请求数据格式介绍,了解输入输出的通用数据格式。 此外,在本页最后,附上了名片识别服务调用的程序示例,以供参考。
印刷文字识别-名片识别
,在API接口
中找到调用地址
{
"inputs": [
{
"image": {
"dataType": 50,
"dataValue": "Base64编码的字符"
}
}
]
}
{
"outputs": [
{
"outputLabel": "ocr_businesscard",
"outputMulti": {},
"outputValue": {
"dataType": 50,
"dataValue": "{
\"name\": \"张三\", #姓名
\"company\": [\"阿里巴巴\", \"阿里巴巴有限公司\" ], #公司结果数组,数组可能为空
\"department\": [\"市场部\" ], #部门结果数组,数组可能为空
\"title\" : [ \"经理\" ], #职位结果数组,数组可能为空
\"tel_cell\" : [\"15234563443\"], #手机结果数组,数组可能为空
\"tel_work\": [\"057185212345\"], #座机结果数组,数组可能为空
\"addr\": [\"浙江省杭州市西湖区文一西路969号\"], #地址结果数组,数组可能为空
\"email\": [], #邮箱结果数组 ,数组可能为空
\"request_id\" : 20160822_32423dfsa23432f #请求对应的唯一表示
\"success\": true #识别成功与否 true/false
}"
}
}]
}
调用方法分为使用APPCODE调用, 使用app_key, app_secret调用。 在git中我们针对多种语言,均提供了两种调用方式的示例代码,详情请见:https://github.com/ALIBABAOCR/OCR_EXAMPLE
工作时间5-10分钟将由1对1顾问为您提供尊享服务