九州通


OCR识别接口(1)百度和合合都有

<h5>简要描述</h5> <ul> <li>OCR识别接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:10003/api/v1/ocr</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">file</td> <td style="text-align: left;">是</td> <td style="text-align: left;">file</td> <td>需要识别的文件</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>文件类型 pdf png等</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "words_result": [{ "result": { "AmountInWords": [{ "word": "伍佰圆整" }], "InvoiceNumConfirm": [], "CommodityEndDate": [], "CommodityVehicleType": [], "CommodityStartDate": [], "CommodityPrice": [{ "row": "1", "word": "500.00" }], "NoteDrawer": [{ "word": "马海平" }], "SellerAddress": [], "CommodityNum": [{ "row": "1", "word": "1" }], "SellerRegisterNum": [{ "word": "9133010832821714XP" }], "MachineCode": [{ "word": "661933497061" }], "Remarks": [{ "word": "施剑豪" }], "SellerBank": [{ "word": "中国建设银行杭州览新支行33001616683053001931" }], "CommodityTaxRate": [{ "row": "1", "word": "免税" }], "TotalTax": [{ "word": "***" }], "InvoiceCodeConfirm": [{ "word": "033002100411" }], "CheckCode": [{ "word": "81101472500637099084" }], "InvoiceCode": [{ "word": "033002100411" }], "InvoiceDate": [{ "word": "2021年10月16日" }], "PurchaserRegisterNum": [{ "word": "9133010569459018XB" }], "InvoiceTypeOrg": [{ "word": "浙江增值税电子普通发票" }], "OnlinePay": [], "Password": [{ "word": "*1*&lt;1+3251*6181&lt;4&gt;4498117837/80189903&lt;+3-/93-2-568*+61/750/1*77&gt;+7-&lt;*-389/*&gt;4*59006856&gt;+15*&gt;/22++++/-353/*2+" }], "Agent": [{ "word": "否" }], "AmountInFiguers": [{ "word": "500.00" }], "PurchaserBank": [], "Checker": [{ "word": "易聪" }], "City": [], "TotalAmount": [{ "word": "500.00" }], "CommodityAmount": [{ "row": "1", "word": "500.00" }], "PurchaserName": [{ "word": "杭州九州方园科技有限公司" }], "CommodityType": [], "Province": [{ "word": "浙江" }], "InvoiceType": [{ "word": "电子普通发票" }], "SheetNum": [], "PurchaserAddress": [], "CommodityTax": [{ "row": "1", "word": "***" }], "CommodityPlateNum": [], "CommodityUnit": [], "Payee": [{ "word": "冯巧月" }], "CommodityName": [{ "row": "1", "word": "*医疗服务*体检费" }], "SellerName": [{ "word": "杭州慈铭友好综合门诊部有限公司" }], "InvoiceNum": [{ "word": "65545006" }] }, "top": 1, "left": 3, "probability": 0.9992353916, "width": 822, "type": "vat_invoice", "height": 548 }], "words_result_num": 1, "pdf_file_size": 1, "log_id": 1457968412685877488 }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">string</td> <td>识别出的字符串</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML