提交查詢
https://api.ihuyi.com/ocr/dl/Submit.json
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必填 |
| Content-Type | 內(nèi)容類型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必填 |
| account | APIID(用戶中心【認(rèn)證核驗(yàn)】-【OCR識(shí)別】-【產(chǎn)品總覽】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用戶中心【認(rèn)證核驗(yàn)】-【OCR識(shí)別】-【產(chǎn)品總覽】查看) 2、動(dòng)態(tài)密碼(生成動(dòng)態(tài)密碼方式請(qǐng)看該文檔末尾的說(shuō)明) |
xxxxxxxxx | string | 是 |
| img_file | 圖片文件(img_file、img_url二選一傳遞,小于1MB,支持jpg、png、bmp) | file | 否 | |
| img_url | 圖片url(img_file、img_url二選一傳遞,小于1MB,支持jpg、png、bmp) | string | 否 | |
| time | Unix時(shí)間戳(10位整型數(shù)字,當(dāng)使用動(dòng)態(tài)密碼方式時(shí)為必填) | 1623643787 | string | 否 |
| 參數(shù)名稱 | 參數(shù)值描述 | 示例 | 類型 | 必返 |
| code | 返回值為2時(shí),表示提交成功 | 2|1 | int | 是 |
| msg | 提交結(jié)果描述 | 提交成功|提交失敗 | string | 是 |
| idcardid | 當(dāng)提交成功后,此字段為流水號(hào),否則為0或空 | 16236437872836|0 | string | |
| result | 識(shí)別結(jié)果 | object | ||
| info | 數(shù)據(jù) | object | ||
| idcard | 駕駛證號(hào) | 412*****8378 | string | |
| name | 姓名 | 張三 | string | |
| sex | 性別 | 男 | string | |
| nationality | 國(guó)籍 | 中國(guó) | string | |
| address | 住址 | 河南省***縣88村 | string | |
| birthday | 生日 | 1983-08-13 | string | |
| firstGetDocDate | 初次領(lǐng)證日期 | 2010-05-05 | string | |
| type | 準(zhǔn)駕車型 | B2 | string | |
| begin_date | 有效起始日期 | 2010-05-05 | string | |
| end_date | 有效截止日期 | 6年 | string |
| code | msg |
| 0 | 未知錯(cuò)誤 |
| 1 | 提交失敗 |
| 2 | 提交成功 |
| 400 | 非法ip訪問(wèn) |
| 401 | 帳號(hào)不能為空 |
| 402 | 密碼不能為空 |
| 403 | 應(yīng)用不存在 |
| 405 | API ID 或 API KEY 不正確 |
| 4050 | 賬號(hào)被凍結(jié) |
| 40501 | 動(dòng)態(tài)密碼已過(guò)期 |
| 40502 | 動(dòng)態(tài)密碼校驗(yàn)失敗 |
| 40505 | 沒(méi)有簽定合同 |
| 4051 | 剩余條數(shù)不足 |
| 4052 | 訪問(wèn) ip 與備案 ip 不符 |
| 4086 | 通道無(wú)效 |
| 4010 | 通道錯(cuò)誤 |
| 4201 | 查詢失敗 |
| 4202 | 圖片識(shí)別失敗 |
| 4203 | 參數(shù)錯(cuò)誤 |
| 4204 | 系統(tǒng)異常 |
| 4301 | img_file、img_url不能同時(shí)為空 |
| 4302 | 上傳圖片大小必須控制在5KB-1MB之間 |
| 4303 | 上傳圖片格式不正確,只支持bmp,jpg,jpeg,png |
| 4304 | 上傳圖片失敗 |
https://api.ihuyi.com/ocr/dl/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&img_file=&img_url=&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>提交成功</msg><idcardid>16236437872836</idcardid><result><info><idcard>412*****8378</idcard><name>張三</name><sex>男</sex><nationality>中國(guó)</nationality><address>河南省***縣88村</address><birthday>1983-08-13</birthday><firstGetDocDate>2010-05-05</firstGetDocDate><type>B2</type><begin_date>2010-05-05</begin_date><end_date>6年</end_date></info></result></SubmitResult> {"code":2,"msg":"提交成功","idcardid":"16236437872836","result":{"info":{"idcard":"412*****8378","name":"張三","sex":"男","nationality":"中國(guó)","address":"河南省***縣88村","birthday":"1983-08-13","firstGetDocDate":"2010-05-05","type":"B2","begin_date":"2010-05-05","end_date":"6年"}}}
示例(失?。?/p>
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>提交失敗</msg></SubmitResult> {"code":1,"msg":"提交失敗"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'dl'; //固定值
$time = '1623643787';
$password=md5($account.$password.$app.$time);
$password=md5('xxxxxxxxxxxxxxxxxdl1623643787');
//注意:所有字符編碼統(tǒng)一為UTF-8
國(guó)內(nèi)專業(yè)互聯(lián)網(wǎng)團(tuán)隊(duì)
21年行業(yè)經(jīng)驗(yàn)
7x24小時(shí)售后支持
豐富的行業(yè)經(jīng)驗(yàn)
互 億 無(wú) 線 官 方 微 信 號(hào)
Copyright ? 2004-2025 上海思銳信息技術(shù)有限公司 All rights reserved. 滬ICP備07035915號(hào)-15 電信增值業(yè)務(wù)許可證:B2-20160082
服務(wù)熱線:
4008 808 898
服務(wù)熱線(工作時(shí)間):
4008 808 898
業(yè)務(wù)咨詢(非工作時(shí)間):
售后咨詢(非工作時(shí)間):