支持包括發(fā)票代碼、發(fā)票號碼、開票日期、發(fā)票金額、購買方名稱、購買方身份證號等關鍵字段結構化識別輸出。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
下表是API對應的授權信息,可以在RAM權限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:
- 操作:是指具體的權限點。
- 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權的資源類型。具體說明如下:
- 對于必選的資源類型,用背景高亮的方式表示。
- 對于不支持資源級授權的操作,用
全部資源
表示。
- 條件關鍵字:是指云產品自身定義的條件關鍵字。
- 關聯(lián)操作:是指成功執(zhí)行操作所需要的其他權限。操作者必須同時具備關聯(lián)操作的權限,操作才能成功。
操作 | 訪問級別 | 資源類型 | 條件關鍵字 | 關聯(lián)操作 |
---|---|---|---|---|
ocr:RecognizeUsedCarInvoice | get | *全部資源 * |
| 無 |
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Url | string | 否 | 圖片鏈接(長度不超 2048 字節(jié),不支持 base64) | https://img.alicdn.com/imgextra/i4/O1CN01NiY6e220zrtvT6dFJ_!!6000000006921-0-tps-3468-4624.jpg |
body | byte | 否 | 圖片二進制字節(jié)流,最大 10MB | 圖片二進制 |
返回參數
返回數據說明
title 標題
formType 聯(lián)次
invoiceDate 開票日期
invoiceCode 發(fā)票代碼
invoiceNumber 發(fā)票號碼
printedInvoiceCode 機打代碼
printedInvoiceNumber 機打號碼
taxCode 稅控碼
purchaserName 買方單位/個人
purchaserCode 買方單位代碼/身份證號碼
purchaserAddress 買方單位/個人地址
purchaserPhoneNumber 買方電話
sellerName 賣方單位/個人
sellerCode 賣方單位代碼/身份證號碼
sellerAddress 賣方單位/個人住址
sellerPhoneNumber 賣方電話
licensePlateNumber 車牌照號
certificateNumber 登記證號
vehicleType 車輛類型
vinCode 車架號/車輛識別代碼
brandMode 廠牌型號
vehicleAdministrationName 轉入地車輛管理所名稱
totalAmountInWords 車價合計(大寫)
totalAmount 車價合計(小寫)
marketName 二手車市場名稱
marketTaxNumber 二手車市場納稅人識別號
marketAddress 二手車市場地址
marketBankAccountInfo 二手車市場開戶銀行及賬戶
marketPhoneNumber 二手車市場電話
remarks 備注
drawer 開票人
angle 角度:0-360,0 表示向上,90 表示向右,180 表示向下,270 度表示向左</br>
height 算法矯正圖片后的高度
width 算法矯正圖片后的寬度
orgHeight 原圖的高度
orgWidth 原圖的寬度
----------------------------------------prism_keyValueInfo 文字塊數組內的字段說明---------------------------------------
valuePos 外矩形四個點的坐標按順時針排列,左上、右上、右下、左下
示例
正常返回示例
JSON
格式
{
"RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655",
"Data": "{\"angle\":270,\"data\":{\"title\":\"二手車銷售統(tǒng)一發(fā)票\",\"formType\":\"發(fā)票聯(lián)\",\"invoiceDate\":\"2021-03-19\",\"invoiceCode\":\"021002000117\",\"invoiceNumber\":\"00713899\",\"printedInvoiceCode\":\"021002000117\",\"printedInvoiceNumber\":\"00713899\",\"taxCode\":\"03300173880207579449\",\"purchaserName\":\"李壯\",\"purchaserCode\":\"210105198712104354\",\"purchaserAddress\":\"沈陽市皇姑區(qū)泰山路69-50號3-1-3\",\"purchaserPhoneNumber\":\"18947857689\",\"sellerName\":\"張鵬\",\"sellerCode\":\"210105197807263716\",\"sellerAddress\":\"沈陽市皇姑區(qū)寧山東路甲2號3-5-2\",\"sellerPhoneNumber\":\"17641587456\",\"licensePlateNumber\":\"遼A6L136\",\"certificateNumber\":\"210008639051\",\"vehicleType\":\"小型轎車\",\"vinCode\":\"WAUYGB4H3FN031973\",\"brandMode\":\"奧迪WAUYGB4H\",\"vehicleAdministrationName\":\"沈陽市車管所\",\"totalAmountInWords\":\"壹萬圓整\",\"totalAmount\":\"10000.00\",\"marketName\":\"沈陽車頂尚二手車交易市場有限公司\",\"marketTaxNumber\":\"91210106MA0TURHE35\",\"marketAddress\":\"沈陽市鐵西區(qū)北二西路29甲4號(9門)\",\"marketBankAccountInfo\":\"葫蘆島銀行股份有限公司沈陽分行20008411159000000025\",\"marketPhoneNumber\":\"15940287043\",\"remarks\":\"\",\"drawer\":\"張麗\"},\"ftype\":0,\"height\":4624,\"orgHeight\":4624,\"orgWidth\":3468,\"prism_keyValueInfo\":[{\"key\":\"title\",\"keyProb\":100,\"value\":\"二手車銷售統(tǒng)一發(fā)票\",\"valuePos\":[{\"x\":2715,\"y\":228},{\"x\":2715,\"y\":347},{\"x\":1283,\"y\":352},{\"x\":1282,\"y\":233}],\"valueProb\":100},{\"key\":\"formType\",\"keyProb\":85,\"value\":\"發(fā)票聯(lián)\",\"valuePos\":[{\"x\":2289,\"y\":401},{\"x\":2290,\"y\":510},{\"x\":1701,\"y\":512},{\"x\":1701,\"y\":403}],\"valueProb\":85},{\"key\":\"invoiceDate\",\"keyProb\":100,\"value\":\"2021-03-19\",\"valuePos\":[{\"x\":728,\"y\":568},{\"x\":729,\"y\":504},{\"x\":1142,\"y\":509},{\"x\":1141,\"y\":573}],\"valueProb\":100},{\"key\":\"invoiceCode\",\"keyProb\":100,\"value\":\"021002000117\",\"valuePos\":[{\"x\":3090,\"y\":376},{\"x\":3676,\"y\":359},{\"x\":3678,\"y\":432},{\"x\":3093,\"y\":450}],\"valueProb\":100},{\"key\":\"invoiceNumber\",\"keyProb\":100,\"value\":\"00713899\",\"valuePos\":[{\"x\":3099,\"y\":457},{\"x\":3470,\"y\":449},{\"x\":3472,\"y\":523},{\"x\":3100,\"y\":530}],\"valueProb\":100},{\"key\":\"printedInvoiceCode\",\"keyProb\":100,\"value\":\"021002000117\",\"valuePos\":[{\"x\":1307,\"y\":621},{\"x\":1308,\"y\":683},{\"x\":812,\"y\":688},{\"x\":812,\"y\":626}],\"valueProb\":100},{\"key\":\"printedInvoiceNumber\",\"keyProb\":100,\"value\":\"00713899\",\"valuePos\":[{\"x\":811,\"y\":797},{\"x\":812,\"y\":731},{\"x\":1155,\"y\":738},{\"x\":1153,\"y\":803}],\"valueProb\":100},{\"key\":\"taxCode\",\"keyProb\":100,\"value\":\"03300173880207579449\",\"valuePos\":[{\"x\":3005,\"y\":755},{\"x\":3005,\"y\":818},{\"x\":2184,\"y\":825},{\"x\":2183,\"y\":761}],\"valueProb\":100},{\"key\":\"purchaserName\",\"keyProb\":100,\"value\":\"李壯\",\"valuePos\":[{\"x\":1139,\"y\":977},{\"x\":1260,\"y\":977},{\"x\":1260,\"y\":1044},{\"x\":1139,\"y\":1044}],\"valueProb\":100},{\"key\":\"purchaserCode\",\"keyProb\":100,\"value\":\"210105198712104354\",\"valuePos\":[{\"x\":3502,\"y\":992},{\"x\":3502,\"y\":1054},{\"x\":2802,\"y\":1054},{\"x\":2802,\"y\":992}],\"valueProb\":100},{\"key\":\"purchaserAddress\",\"keyProb\":100,\"value\":\"沈陽市皇姑區(qū)泰山路69-50號3-1-3\",\"valuePos\":[{\"x\":1138,\"y\":1105},{\"x\":1988,\"y\":1105},{\"x\":1988,\"y\":1176},{\"x\":1138,\"y\":1176}],\"valueProb\":100},{\"key\":\"purchaserPhoneNumber\",\"keyProb\":100,\"value\":\"18947857689\",\"valuePos\":[{\"x\":2996,\"y\":1115},{\"x\":3466,\"y\":1115},{\"x\":3466,\"y\":1181},{\"x\":2996,\"y\":1181}],\"valueProb\":100},{\"key\":\"sellerName\",\"keyProb\":100,\"value\":\"張鵬\",\"valuePos\":[{\"x\":1137,\"y\":1227},{\"x\":1259,\"y\":1227},{\"x\":1259,\"y\":1296},{\"x\":1137,\"y\":1296}],\"valueProb\":100},{\"key\":\"sellerCode\",\"keyProb\":100,\"value\":\"210105197807263716\",\"valuePos\":[{\"x\":3501,\"y\":1245},{\"x\":3501,\"y\":1305},{\"x\":2807,\"y\":1307},{\"x\":2806,\"y\":1247}],\"valueProb\":100},{\"key\":\"sellerAddress\",\"keyProb\":100,\"value\":\"沈陽市皇姑區(qū)寧山東路甲2號3-5-2\",\"valuePos\":[{\"x\":1991,\"y\":1353},{\"x\":1991,\"y\":1422},{\"x\":1137,\"y\":1426},{\"x\":1136,\"y\":1356}],\"valueProb\":100},{\"key\":\"sellerPhoneNumber\",\"keyProb\":100,\"value\":\"17641587456\",\"valuePos\":[{\"x\":3460,\"y\":1372},{\"x\":3461,\"y\":1433},{\"x\":2996,\"y\":1435},{\"x\":2996,\"y\":1373}],\"valueProb\":100},{\"key\":\"licensePlateNumber\",\"keyProb\":100,\"value\":\"遼A6L136\",\"valuePos\":[{\"x\":1470,\"y\":1471},{\"x\":1471,\"y\":1541},{\"x\":1140,\"y\":1544},{\"x\":1139,\"y\":1474}],\"valueProb\":100},{\"key\":\"certificateNumber\",\"keyProb\":100,\"value\":\"210008639051\",\"valuePos\":[{\"x\":2433,\"y\":1489},{\"x\":2433,\"y\":1549},{\"x\":1981,\"y\":1553},{\"x\":1981,\"y\":1493}],\"valueProb\":100},{\"key\":\"vehicleType\",\"keyProb\":100,\"value\":\"小型轎車\",\"valuePos\":[{\"x\":2994,\"y\":1498},{\"x\":3229,\"y\":1498},{\"x\":3229,\"y\":1562},{\"x\":2994,\"y\":1562}],\"valueProb\":100},{\"key\":\"vinCode\",\"keyProb\":100,\"value\":\"WAUYGB4H3FN031973\",\"valuePos\":[{\"x\":1601,\"y\":1587},{\"x\":1601,\"y\":1633},{\"x\":1138,\"y\":1638},{\"x\":1137,\"y\":1591}],\"valueProb\":100},{\"key\":\"brandMode\",\"keyProb\":100,\"value\":\"奧迪WAUYGB4H\",\"valuePos\":[{\"x\":2330,\"y\":1616},{\"x\":2330,\"y\":1677},{\"x\":1986,\"y\":1677},{\"x\":1986,\"y\":1616}],\"valueProb\":100},{\"key\":\"vehicleAdministrationName\",\"keyProb\":100,\"value\":\"沈陽市車管所\",\"valuePos\":[{\"x\":3347,\"y\":1621},{\"x\":3347,\"y\":1690},{\"x\":2989,\"y\":1693},{\"x\":2989,\"y\":1624}],\"valueProb\":100},{\"key\":\"totalAmountInWords\",\"keyProb\":100,\"value\":\"壹萬圓整\",\"valuePos\":[{\"x\":1528,\"y\":1730},{\"x\":1529,\"y\":1799},{\"x\":1292,\"y\":1801},{\"x\":1291,\"y\":1732}],\"valueProb\":100},{\"key\":\"totalAmount\",\"keyProb\":100,\"value\":\"10000.00\",\"valuePos\":[{\"x\":3479,\"y\":1746},{\"x\":3479,\"y\":1816},{\"x\":3048,\"y\":1820},{\"x\":3047,\"y\":1749}],\"valueProb\":100},{\"key\":\"marketName\",\"keyProb\":100,\"value\":\"沈陽車頂尚二手車交易市場有限公司\",\"valuePos\":[{\"x\":2037,\"y\":2282},{\"x\":2037,\"y\":2354},{\"x\":1124,\"y\":2362},{\"x\":1124,\"y\":2290}],\"valueProb\":100},{\"key\":\"marketTaxNumber\",\"keyProb\":96,\"value\":\"91210106MA0TURHE35\",\"valuePos\":[{\"x\":3079,\"y\":2255},{\"x\":3079,\"y\":2314},{\"x\":2397,\"y\":2321},{\"x\":2396,\"y\":2261}],\"valueProb\":96},{\"key\":\"marketAddress\",\"keyProb\":100,\"value\":\"沈陽市鐵西區(qū)北二西路29甲4號(9門)\",\"valuePos\":[{\"x\":3306,\"y\":2378},{\"x\":3307,\"y\":2445},{\"x\":2399,\"y\":2453},{\"x\":2399,\"y\":2387}],\"valueProb\":100},{\"key\":\"marketBankAccountInfo\",\"keyProb\":100,\"value\":\"葫蘆島銀行股份有限公司沈陽分行20008411159000000025\",\"valuePos\":[{\"x\":2522,\"y\":2480},{\"x\":2523,\"y\":2554},{\"x\":1109,\"y\":2567},{\"x\":1109,\"y\":2494}],\"valueProb\":100},{\"key\":\"marketPhoneNumber\",\"keyProb\":100,\"value\":\"15940287043\",\"valuePos\":[{\"x\":3172,\"y\":2579},{\"x\":3173,\"y\":2518},{\"x\":3603,\"y\":2530},{\"x\":3601,\"y\":2590}],\"valueProb\":100},{\"key\":\"remarks\",\"keyProb\":100,\"value\":\"\",\"valueProb\":100},{\"key\":\"drawer\",\"keyProb\":100,\"value\":\"張麗\",\"valuePos\":[{\"x\":2787,\"y\":2819},{\"x\":2789,\"y\":2756},{\"x\":2914,\"y\":2761},{\"x\":2911,\"y\":2823}],\"valueProb\":100}],\"sliceRect\":{\"x0\":103,\"y0\":372,\"x1\":3174,\"y1\":428,\"x2\":3041,\"y2\":4364,\"x3\":161,\"y3\":4360},\"width\":3468}",
"Code": "noPermission",
"Message": "You are not authorized to perform this operation."
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史