Files
doc-exports/docs/ocr/api-ref/ocr_03_0161.html
Su, Xiaomeng c38525b39b ocr_api_20250818
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2025-10-28 13:10:41 +00:00

885 lines
68 KiB
HTML

<a name="ocr_03_0161"></a><a name="ocr_03_0161"></a>
<h1 class="topictitle1">Smart Document Recognizer</h1>
<div id="body0000002192610722"><div class="section" id="ocr_03_0161__section1398991611108"><h4 class="sectiontitle">Function</h4><p id="ocr_03_0161__p499031612105">This API recognizes text, analyzes layout, extracts key-value pairs, identifies tables in various formatted documents such as certificates, receipts, and forms, and converts the results into a structured JSON format.</p>
</div>
<div class="section" id="ocr_03_0161__section13589195215430"><h4 class="sectiontitle">Notes and Constraints</h4><ul id="ocr_03_0161__ul7622153124420"><li id="ocr_03_0161__li86221318446">English and Chinese are both supported, but the support for traditional Chinese characters is limited.</li><li id="ocr_03_0161__li136239319446">Only images in PNG, JPG, JPEG, BMP, GIF, TIFF, WebP, PCX, ICO or PSD format and PDF files can be recognized. PDF files can only be recognized one page at a time, but you can use the <strong id="ocr_03_0161__b11604813142613">pdf_page_number</strong> parameter to specify which page you want to recognize.</li><li id="ocr_03_0161__li11623193134410">No side of the image can be smaller than 15 or larger than 8,192 pixels.</li><li id="ocr_03_0161__li1362313104411">The area to be recognized must occupy more than 80% of the image. When scanning a table, ensure that all text and its surrounding area are included in the image.</li><li id="ocr_03_0161__li15623133117442">An image can be rotated to any angle.</li><li id="ocr_03_0161__li1862313316443">For more accurate recognition results, the number of characters on a single page must be limited to 1,800 or less.</li><li id="ocr_03_0161__li46238319446">Text in images with complex backgrounds (such as outdoor scenery or anti-counterfeit watermarks) or distorted text cannot be analyzed.</li></ul>
</div>
<div class="section" id="ocr_03_0161__section12992201612103"><h4 class="sectiontitle">URI</h4><p id="ocr_03_0161__p17907208172315">POST /v2/{project_id}/ocr/smart-document-recognizer</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table1490811892319" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="ocr_03_0161__row59084816239"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.4.1.1"><p id="ocr_03_0161__p159081989232">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.4.1.2"><p id="ocr_03_0161__p2908118132316">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.3.3.2.4.1.3"><p id="ocr_03_0161__p2909118112316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row9141516121519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.4.1.1 "><p id="ocr_03_0161__p28594508345">endpoint</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.4.1.2 "><p id="ocr_03_0161__p1985955011348">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.3.3.2.4.1.3 "><p id="ocr_03_0161__p5859135043411">Endpoint, which is the request address for calling an API.</p>
<p id="ocr_03_0161__p1385945020348">The endpoint varies depending on services in different regions. For more details, see <a href="ocr_03_0062.html">Endpoint</a>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row490828172315"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.4.1.1 "><p id="ocr_03_0161__p18909386238">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.4.1.2 "><p id="ocr_03_0161__p2909168152316">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.3.3.2.4.1.3 "><p id="ocr_03_0161__p58601550163419">Project ID, which can be obtained by referring to <a href="ocr_03_0130.html">Obtaining the Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ocr_03_0161__section39987161109"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table20919432122218" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="ocr_03_0161__row159109842317"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="ocr_03_0161__p49111382237">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="ocr_03_0161__p291178122315">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="ocr_03_0161__p79111680238">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="ocr_03_0161__p1191198172310">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row189101784232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="ocr_03_0161__p59115872311">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="ocr_03_0161__p18911387234">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="ocr_03_0161__p891116814236">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="ocr_03_0161__p791220814239">User token. During API authentication using a token, the token is added to requests to obtain permissions for calling the API. The token is the value of <strong id="ocr_03_0161__b11189104122714">X-Subject-Token</strong> in the response header.</p>
</td>
</tr>
<tr id="ocr_03_0161__row3201133217164"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="ocr_03_0161__p6311011151619">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="ocr_03_0161__p63111151616">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="ocr_03_0161__p10313116169">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="ocr_03_0161__p103131118168">MIME type of the request body. The value is <strong id="ocr_03_0161__b1731512226294">application/json</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table17921113292214" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="ocr_03_0161__row2091317819235"><th align="left" class="cellrowborder" valign="top" width="15.310000000000002%" id="mcps1.3.4.3.2.5.1.1"><p id="ocr_03_0161__p19149814235">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.33%" id="mcps1.3.4.3.2.5.1.2"><p id="ocr_03_0161__p1091414832313">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.270000000000001%" id="mcps1.3.4.3.2.5.1.3"><p id="ocr_03_0161__p199145882318">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.089999999999996%" id="mcps1.3.4.3.2.5.1.4"><p id="ocr_03_0161__p10914487239">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row89131381233"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p99151687233">data</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p1291513816239">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p591558112315">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p7915148122311">Set either this parameter or <strong id="ocr_03_0161__b18901429295">url</strong>. Base64 encoded string of the image or PDF. The file has a size limit of 10 MB. No side of the image can be smaller than 15 or larger than 8,192 pixels. Only images in JPG, PNG, BMP, or TIFF format can be recognized. PDFs are converted to images with a resolution of 144 dpi for document analysis, and they must meet the image size requirements mentioned above. If a PDF has multiple pages, only the first page will be recognized.</p>
</td>
</tr>
<tr id="ocr_03_0161__row89145818234"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p1191518872318">url</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p39151988231">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p391528112312">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p109153815238">Set either this parameter or <strong id="ocr_03_0161__b111775833018">image</strong>. The image file has a size limit of 10 MB. The following image URLs are currently supported:</p>
<ul id="ocr_03_0161__ul1832111114162"><li id="ocr_03_0161__li193210115162">URL provided by OBS.</li></ul>
<div class="note" id="ocr_03_0161__note356121013169"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="ocr_03_0161__ul933141171616"><li id="ocr_03_0161__li83381110163">The API response time depends on the image download time. If the image download takes a long time, the API call will fail.</li><li id="ocr_03_0161__li1733211131613">Ensure that the storage service where the images to be detected reside is stable and reliable. OBS is recommended for storing image data.</li><li id="ocr_03_0161__li1331411101616">The URL cannot contain Chinese characters. If Chinese characters exist, they must be encoded using UTF-8.</li></ul>
</div></div>
</td>
</tr>
<tr id="ocr_03_0161__row139073154117"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p17911394112">single_orientation_mode</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p79113313418">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p199116384110">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p995235265616">Whether to enable the single direction mode. The options are:</p>
<ul id="ocr_03_0161__ul139520529569"><li id="ocr_03_0161__li695214528565"><strong id="ocr_03_0161__b7453217113111">true</strong>: Enables the single direction mode.</li><li id="ocr_03_0161__li2953145211561"><strong id="ocr_03_0161__b1628753118313">false</strong>: Disables the single direction mode.</li></ul>
<p id="ocr_03_0161__p795355235618">Enabling this function when text in the image is oriented uniformly improves recognition accuracy. Disabling it when text in the image varies in direction allows for multi-direction text recognition. If not specified, <strong id="ocr_03_0161__b17857554183112">true</strong> is used by default. In this case, the fields in the image are recognized as in a single direction by default.</p>
</td>
</tr>
<tr id="ocr_03_0161__row645891123311"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p1249441243214">language</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p8494101214321">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p549421218321">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p649591215327">Chinese and English recognition. The value is <strong id="ocr_03_0161__b126019279166">zh</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row391428192316"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p9915178142310">kv</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p169161783236">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p1191616842319">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p691688152311">Whether to extract key-value pairs. If you choose to extract key-value pairs, the results will be returned with the keyword <strong id="ocr_03_0161__b102954407337">kv_result</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row491438182314"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p591678102316">table</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p19168842313">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p2091620815236">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p8916188122320">Whether to recognize tables. Here, tables refer to logical tables that typically have an M x N format and have a header in the first row or column. If you choose to recognize tables, the results will be returned with the keyword <strong id="ocr_03_0161__b271917816340">table_result</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row7914198142310"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p59161383238">layout</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p11916138142317">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p17917128192316">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p1391719813237">Whether to analyze the layout. If you choose to analyze the layout, the results will be returned with the keyword <strong id="ocr_03_0161__b515020145341">layout_result</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row691417814238"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p19172811235">return_excel</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p1991712832320">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p1917882234">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p17917198152318">This parameter is available only when <strong id="ocr_03_0161__b19281216183419">table</strong> is set to <strong id="ocr_03_0161__b15928191613411">True</strong>. Whether to return the Base64-encoded field for converting a table into a Microsoft Excel file.</p>
</td>
</tr>
<tr id="ocr_03_0161__row1085855114209"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p1964104510192">form</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p99670457198">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p696713454192">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p096813456193">Whether to recognize wired forms. A wired form displays crucial information in wired cells, like household registers and motor vehicle sales invoices. If you choose to recognize wired forms, the results will be returned with the keyword <strong id="ocr_03_0161__b16592052193413">form_result</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row2767152842619"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p58887144252">formula</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p188871482517">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p6888161402514">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p5955195213568">Whether to recognize formulas. The results are returned as a LaTeX sequence. If you choose to recognize formulas, the results will be returned with the keyword <strong id="ocr_03_0161__b16719105753420">formula_result</strong>.</p>
<ul id="ocr_03_0161__ul695518527563"><li id="ocr_03_0161__li195525245613">Enabling formula recognition may slow down the response speed.</li><li id="ocr_03_0161__li09551952115611">Recognition of formulas is currently limited to a maximum of three lines. Formulas longer than this limit will not be recognized.</li></ul>
</td>
</tr>
<tr id="ocr_03_0161__row118593513201"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p1296810457194">kv_map</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p18968104561919">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p9969194571913">String</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p296954515195">JSON-serialized string of a dictionary that needs to be passed in, which is used to normalize and map specific key values in <strong id="ocr_03_0161__b178651019193817">kv_result</strong>. For example, if <strong id="ocr_03_0161__b923213235381">kv_result</strong> contains the key-value pair {"Name": "Xiaoming"}, passing in the <strong id="ocr_03_0161__b1523211232387">kv_map</strong> {"Name": "Full name"} would result in {"Full Name": "Xiaoming"}.</p>
<div class="note" id="ocr_03_0161__note209701745121913"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="ocr_03_0161__p8970845121915">Example:</p>
<ul id="ocr_03_0161__ul16970124512191"><li id="ocr_03_0161__li8970134591910">"kv_map":"{"Name":"Full name"}"</li></ul>
</div></div>
</td>
</tr>
<tr id="ocr_03_0161__row20284133936"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p124227411928">erase_seal</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p6422641224">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p642254110219">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p642214411527">Whether to erase the seal. Enabling it can enhance the character recognition accuracy in the area blocked by the seal.</p>
</td>
</tr>
<tr id="ocr_03_0161__row86270587215"><td class="cellrowborder" valign="top" width="15.310000000000002%" headers="mcps1.3.4.3.2.5.1.1 "><p id="ocr_03_0161__p146770135219">pdf_page_number</p>
</td>
<td class="cellrowborder" valign="top" width="16.33%" headers="mcps1.3.4.3.2.5.1.2 "><p id="ocr_03_0161__p16677181372113">No</p>
</td>
<td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="ocr_03_0161__p2677913152113">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="55.089999999999996%" headers="mcps1.3.4.3.2.5.1.4 "><p id="ocr_03_0161__p11678513172117">Specify which page of the PDF to recognize. If this parameter is specified, the content on the specified page is identified. If not specified, the default is to recognize the first page.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ocr_03_0161__section1628141711014"><h4 class="sectiontitle">Response Parameters</h4><p id="ocr_03_0161__p9917118152312"><strong id="ocr_03_0161__b16582202123914">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table1866102982314" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameter</caption><thead align="left"><tr id="ocr_03_0161__row39185818234"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="ocr_03_0161__p392012842319">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="ocr_03_0161__p992013882318">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="ocr_03_0161__p592058112316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row5918784237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="ocr_03_0161__p1092148102316">result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="ocr_03_0161__p4921188142311">Array of <a href="#ocr_03_0161__table1786622902318">SmartDocumentRecognizerResult</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="ocr_03_0161__p1692120811231">List of results returned in the order of the pages, with the first item in the list being the recognition result of the first page, and so on. This parameter is not included for a failed call.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table1786622902318"></a><a name="table1786622902318"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table1786622902318" frame="border" border="1" rules="all"><caption><b>Table 5 </b>SmartDocumentRecognizerResult</caption><thead align="left"><tr id="ocr_03_0161__row159211781237"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="ocr_03_0161__p29227852312">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="ocr_03_0161__p11922158142310">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="ocr_03_0161__p49228819237">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row16921198182318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p149221183236">ocr_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p11923198142318"><a href="#ocr_03_0161__table4867182911232">SmartDocumentRecognizerOcrResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p10923986238">Character recognition results</p>
</td>
</tr>
<tr id="ocr_03_0161__row199223882311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p179231085234">kv_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p492310852313"><a href="#ocr_03_0161__table1887062962312">SmartDocumentRecognizerKvResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p1292312817238">Key-value pair extraction results. This parameter is returned only when <strong id="ocr_03_0161__b118049119403">kv</strong> is set to <strong id="ocr_03_0161__b10804181119402">true</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row29222822313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p19923486232">table_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p1392418816235"><a href="#ocr_03_0161__table3873029172312">SmartDocumentRecognizerTableResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p09248811233">Table recognition results. This parameter is returned only when <strong id="ocr_03_0161__b219616213404">table</strong> is set to <strong id="ocr_03_0161__b519632114403">true</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row1792218812317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p1092412882316">layout_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p39241842313"><a href="#ocr_03_0161__response_SmartDocumentRecognizerLayoutResult">SmartDocumentRecognizerLayoutResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p79241288231">Layout analysis results. This parameter is returned only when <strong id="ocr_03_0161__b1290552644014">layout</strong> is set to <strong id="ocr_03_0161__b18905102613409">true</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row1976171015227"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p697984513195">form_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p2980194541918"><a href="#ocr_03_0161__response_SmartDocumentRecognizerFormResult">SmartDocumentRecognizerFormResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p1980145141916">Wired form recognition results. This parameter is returned only when <strong id="ocr_03_0161__b1275416324401">form</strong> is set to <strong id="ocr_03_0161__b575419324409">true</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row8350182492810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="ocr_03_0161__p6898714142518">formula_result</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="ocr_03_0161__p208981514162517"><a href="#ocr_03_0161__response_SmartDocumentRecognizerFormulaResult">SmartDocumentRecognizerFormulaResult</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="ocr_03_0161__p4899181420252">Formula recognition result</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table4867182911232"></a><a name="table4867182911232"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table4867182911232" frame="border" border="1" rules="all"><caption><b>Table 6 </b>SmartDocumentRecognizerOcrResult</caption><thead align="left"><tr id="ocr_03_0161__row1592517818231"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="ocr_03_0161__p109258816232">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="ocr_03_0161__p14925287231">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="ocr_03_0161__p4925481236">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row792517819237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ocr_03_0161__p7925128182315">direction</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ocr_03_0161__p1792613812317">Float</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ocr_03_0161__p8926285231">Image direction</p>
</td>
</tr>
<tr id="ocr_03_0161__row13925981237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ocr_03_0161__p69261581239">words_block_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ocr_03_0161__p139261180234">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ocr_03_0161__p1292618810230">Number of text blocks that have been recognized</p>
</td>
</tr>
<tr id="ocr_03_0161__row159256814238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="ocr_03_0161__p5926198172319">words_block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="ocr_03_0161__p992614810235">Array of <a href="#ocr_03_0161__table58691029172319">SmartDocumentRecognizerWordsBlockList</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="ocr_03_0161__p69272818232">List of text blocks that have been recognized. The output sequence is from left to right and from top to bottom.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table58691029172319"></a><a name="table58691029172319"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table58691029172319" frame="border" border="1" rules="all"><caption><b>Table 7 </b>SmartDocumentRecognizerWordsBlockList</caption><thead align="left"><tr id="ocr_03_0161__row14927158192315"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="ocr_03_0161__p179275820238">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.2"><p id="ocr_03_0161__p1892718872319">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.6.2.4.1.3"><p id="ocr_03_0161__p99281889239">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row592714842312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="ocr_03_0161__p492878152314">words</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="ocr_03_0161__p9928781235">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="ocr_03_0161__p1992878122319">Recognition result of a text block</p>
</td>
</tr>
<tr id="ocr_03_0161__row1792718102318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="ocr_03_0161__p592812816238">location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="ocr_03_0161__p4928198172310">Array&lt;Array&lt;Integer&gt;&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="ocr_03_0161__p129295842314">List of location information about a text block, including the 2D coordinates (x, y) of four vertexes in the text area, where the coordinate origin is the upper-left corner of the image, the X axis is horizontal, and the Y axis is vertical.</p>
</td>
</tr>
<tr id="ocr_03_0161__row18927281231"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="ocr_03_0161__p69292832320">confidence</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="ocr_03_0161__p39295872314">Float</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="ocr_03_0161__p19293810234">Confidence of a recognized text block</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table1887062962312"></a><a name="table1887062962312"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table1887062962312" frame="border" border="1" rules="all"><caption><b>Table 8 </b>SmartDocumentRecognizerKvResult</caption><thead align="left"><tr id="ocr_03_0161__row169297812314"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="ocr_03_0161__p1693018122317">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="ocr_03_0161__p1293008182314">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="ocr_03_0161__p1193112802318">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row393098182314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="ocr_03_0161__p17931168162318">kv_block_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="ocr_03_0161__p1293111820238">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="ocr_03_0161__p139313818233">Number of key-value pairs recognized by the model</p>
</td>
</tr>
<tr id="ocr_03_0161__row9930128172314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="ocr_03_0161__p6931128202320">kv_block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="ocr_03_0161__p193213816233">Array of <a href="#ocr_03_0161__table168711429142317">SmartDocumentRecognizerKVBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="ocr_03_0161__p8932983232">List of key-value pair recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table168711429142317"></a><a name="table168711429142317"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table168711429142317" frame="border" border="1" rules="all"><caption><b>Table 9 </b>SmartDocumentRecognizerKVBlock</caption><thead align="left"><tr id="ocr_03_0161__row4933585236"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.8.2.4.1.1"><p id="ocr_03_0161__p14934188112314">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.8.2.4.1.2"><p id="ocr_03_0161__p8934178132310">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.8.2.4.1.3"><p id="ocr_03_0161__p129351985238">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row2933683238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="ocr_03_0161__p1493558132318">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="ocr_03_0161__p1593514814234">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="ocr_03_0161__p493648102315">Key in a key-value pair, for example, Name in Name: Xiaoming.</p>
</td>
</tr>
<tr id="ocr_03_0161__row6933781232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="ocr_03_0161__p093638142314">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="ocr_03_0161__p1993668102316">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="ocr_03_0161__p189361786239">Value in a key-value pair, for example, Xiaoming in Name: Xiaoming.</p>
</td>
</tr>
<tr id="ocr_03_0161__row129332814230"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="ocr_03_0161__p193748162318">words_block_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="ocr_03_0161__p1593715802311">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="ocr_03_0161__p59378822316">Number of text boxes contained in the key-value pair</p>
</td>
</tr>
<tr id="ocr_03_0161__row139331842312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="ocr_03_0161__p793711820230">words_block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="ocr_03_0161__p19371484230">Array of <a href="#ocr_03_0161__table128729290231">SmartDocumentRecognizerKVWordsBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="ocr_03_0161__p79384811236">List of text box recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table128729290231"></a><a name="table128729290231"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table128729290231" frame="border" border="1" rules="all"><caption><b>Table 10 </b>SmartDocumentRecognizerKVWordsBlock</caption><thead align="left"><tr id="ocr_03_0161__row39381286236"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="ocr_03_0161__p3939158162313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.2"><p id="ocr_03_0161__p199397814239">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.9.2.4.1.3"><p id="ocr_03_0161__p594018822312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row149385842312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="ocr_03_0161__p89406817232">words</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="ocr_03_0161__p20940688238">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="ocr_03_0161__p79406822317">Recognition result of a text block</p>
</td>
</tr>
<tr id="ocr_03_0161__row79386817237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="ocr_03_0161__p494015814236">location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="ocr_03_0161__p169406812239">Array&lt;Array&lt;Integer&gt;&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="ocr_03_0161__p11941188132318">List of location information about a text block, including the 2D coordinates (x, y) of four vertexes in the text area, where the coordinate origin is the upper-left corner of the image, the X axis is horizontal, and the Y axis is vertical.</p>
</td>
</tr>
<tr id="ocr_03_0161__row29396817238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="ocr_03_0161__p13941580232">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="ocr_03_0161__p39416816237">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="ocr_03_0161__p49411984238">Type</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table3873029172312"></a><a name="table3873029172312"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table3873029172312" frame="border" border="1" rules="all"><caption><b>Table 11 </b>SmartDocumentRecognizerTableResult</caption><thead align="left"><tr id="ocr_03_0161__row89420882317"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.10.2.4.1.1"><p id="ocr_03_0161__p16942383232">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.10.2.4.1.2"><p id="ocr_03_0161__p1894210810231">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.10.2.4.1.3"><p id="ocr_03_0161__p10943148122316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row194220817236"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.10.2.4.1.1 "><p id="ocr_03_0161__p10943158102312">table_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.10.2.4.1.2 "><p id="ocr_03_0161__p79431588233">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.10.2.4.1.3 "><p id="ocr_03_0161__p1394310802313">Number of tables recognized by the model</p>
</td>
</tr>
<tr id="ocr_03_0161__row1494215813237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.10.2.4.1.1 "><p id="ocr_03_0161__p119431784238">table_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.10.2.4.1.2 "><p id="ocr_03_0161__p29448815238">Array of <a href="#ocr_03_0161__table188754293239">SmartDocumentRecognizerTableBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.10.2.4.1.3 "><p id="ocr_03_0161__p189441084234">List of table recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__response_SmartDocumentRecognizerLayoutResult"></a><a name="response_SmartDocumentRecognizerLayoutResult"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__response_SmartDocumentRecognizerLayoutResult" frame="border" border="1" rules="all"><caption><b>Table 12 </b>SmartDocumentRecognizerLayoutResult</caption><thead align="left"><tr id="ocr_03_0161__row5264610198"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="ocr_03_0161__p14314463191">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.2"><p id="ocr_03_0161__p113146161920">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.11.2.4.1.3"><p id="ocr_03_0161__p43114651916">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row152104691911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="ocr_03_0161__p1744461195">layout_block_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="ocr_03_0161__p1911784616199">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="ocr_03_0161__p15117104618198">Number of document layout areas recognized by the model</p>
</td>
</tr>
<tr id="ocr_03_0161__row192154691914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="ocr_03_0161__p13118646191915">layout_block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="ocr_03_0161__p6118104619191">Array of <a href="#ocr_03_0161__response_SmartDocumentRecognizerLayoutBlock">SmartDocumentRecognizerLayoutBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="ocr_03_0161__p21181846141917">List of document layout area recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__response_SmartDocumentRecognizerLayoutBlock"></a><a name="response_SmartDocumentRecognizerLayoutBlock"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__response_SmartDocumentRecognizerLayoutBlock" frame="border" border="1" rules="all"><caption><b>Table 13 </b>SmartDocumentRecognizerLayoutBlock</caption><thead align="left"><tr id="ocr_03_0161__row15194671918"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.12.2.4.1.1"><p id="ocr_03_0161__p201182463198">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.12.2.4.1.2"><p id="ocr_03_0161__p7118184661915">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.12.2.4.1.3"><p id="ocr_03_0161__p711811466193">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row2061846181911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p20118194691916">location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p8118046171912">Array&lt;Array&lt;Integer&gt;&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p10118104601915">List of location information about a text block, including the 2D coordinates (x, y) of four vertexes in the text area, where the coordinate origin is the upper-left corner of the image, the X axis is horizontal, and the Y axis is vertical.</p>
</td>
</tr>
<tr id="ocr_03_0161__row1966467194"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p131181546151918">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p011813462192">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p280091332517">Document area type. The options are <strong id="ocr_03_0161__b846612446425">text</strong>, <strong id="ocr_03_0161__b146614414214">title</strong>, <strong id="ocr_03_0161__b7466544144213">sub_title</strong>, <strong id="ocr_03_0161__b946694418423">image</strong>, <strong id="ocr_03_0161__b7466194418424">image_caption</strong>, <strong id="ocr_03_0161__b34661444194220">form</strong>, <strong id="ocr_03_0161__b20466144144213">table</strong>, <strong id="ocr_03_0161__b10467104444218">table_caption</strong>, <strong id="ocr_03_0161__b20467194434213">header</strong>, <strong id="ocr_03_0161__b104671244194211">footer</strong>, <strong id="ocr_03_0161__b3467184410428">page_number</strong>, <strong id="ocr_03_0161__b1846744412423">reference</strong>, <strong id="ocr_03_0161__b946715443428">formula</strong>, <strong id="ocr_03_0161__b846764418428">stamp</strong>, and <strong id="ocr_03_0161__b846720444428">directory</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row66746141915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p0119546131911">text</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p2011914462193">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p14119546131915">Text in the document area. For tables and images, the text content is not returned.</p>
</td>
</tr>
<tr id="ocr_03_0161__row156446121916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p10119346171913">words_ids</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p18119114641910">Array of integers</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p1611914617190">Index list of character recognition results, indicating which text blocks in <strong id="ocr_03_0161__b54461207438">words_block_list</strong> of <strong id="ocr_03_0161__b1446162064319">ocr_result</strong> are located within the document area.</p>
</td>
</tr>
<tr id="ocr_03_0161__row15654651911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p111944619198">table_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p01191346131919">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p121192466199">This parameter is returned only when <strong id="ocr_03_0161__b797412212434">type</strong> is <strong id="ocr_03_0161__b59751822164319">table</strong> and the input parameter <strong id="ocr_03_0161__b397592215431">table</strong> is <strong id="ocr_03_0161__b11975152294310">True</strong>, indicating which recognition result corresponds to the current logical table area in <strong id="ocr_03_0161__b1197592216433">table_result</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row146946121914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.1 "><p id="ocr_03_0161__p3119346101916">form_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.12.2.4.1.2 "><p id="ocr_03_0161__p311974618192">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.12.2.4.1.3 "><p id="ocr_03_0161__p1011944614196">This parameter is returned only when <strong id="ocr_03_0161__b49536258437">type</strong> is <strong id="ocr_03_0161__b2953102534318">form</strong> and the input parameter <strong id="ocr_03_0161__b895322510439">table</strong> is <strong id="ocr_03_0161__b10953192511431">True</strong>, indicating which recognition result corresponds to the current wired form area in <strong id="ocr_03_0161__b895332513431">form_result</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__response_SmartDocumentRecognizerFormResult"></a><a name="response_SmartDocumentRecognizerFormResult"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__response_SmartDocumentRecognizerFormResult" frame="border" border="1" rules="all"><caption><b>Table 14 </b>SmartDocumentRecognizerFormResult</caption><thead align="left"><tr id="ocr_03_0161__row15127468190"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.1"><p id="ocr_03_0161__p61201146161919">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.2"><p id="ocr_03_0161__p131202465199">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.13.2.4.1.3"><p id="ocr_03_0161__p212024621918">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row1912164610197"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="ocr_03_0161__p181201446131917">form_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="ocr_03_0161__p1212094681910">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="ocr_03_0161__p5120204611915">Number of wired forms recognized by the model</p>
</td>
</tr>
<tr id="ocr_03_0161__row4122046111911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="ocr_03_0161__p1112044612190">form_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="ocr_03_0161__p5120144610199">Array of <a href="#ocr_03_0161__table188754293239">SmartDocumentRecognizerTableBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="ocr_03_0161__p181205462190">List of wired form recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table188754293239"></a><a name="table188754293239"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table188754293239" frame="border" border="1" rules="all"><caption><b>Table 15 </b>SmartDocumentRecognizerTableBlock</caption><thead align="left"><tr id="ocr_03_0161__row294412872312"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.14.2.4.1.1"><p id="ocr_03_0161__p1694515852315">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.14.2.4.1.2"><p id="ocr_03_0161__p139451832314">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.14.2.4.1.3"><p id="ocr_03_0161__p1094611812316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row14944783239"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.1 "><p id="ocr_03_0161__p8946128142311">location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.2 "><p id="ocr_03_0161__p29461789236">Array&lt;Array&lt;Integer&gt;&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.14.2.4.1.3 "><p id="ocr_03_0161__p119461188230">Location information of the current table, in list format, indicating the X and Y coordinates of the four vertices in a text block. The coordinate origin is the upper left corner of the image, the X axis is horizontal, and the Y axis is vertical.</p>
</td>
</tr>
<tr id="ocr_03_0161__row994438192311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.1 "><p id="ocr_03_0161__p1494620862314">words_block_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.2 "><p id="ocr_03_0161__p5947138112310">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.14.2.4.1.3 "><p id="ocr_03_0161__p394719817232">Number of cells in a table</p>
</td>
</tr>
<tr id="ocr_03_0161__row1494519813232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.1 "><p id="ocr_03_0161__p1394714818238">words_block_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.2 "><p id="ocr_03_0161__p394710816234">Array of <a href="#ocr_03_0161__table18876152942313">SmartDocumentRecognizerTableWordsBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.14.2.4.1.3 "><p id="ocr_03_0161__p1294811819230">List of cell recognition results</p>
</td>
</tr>
<tr id="ocr_03_0161__row129459822317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.1 "><p id="ocr_03_0161__p99486862310">excel</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.14.2.4.1.2 "><p id="ocr_03_0161__p29490811231">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.14.2.4.1.3 "><p id="ocr_03_0161__p119495816230">Base64 encoded string of the table recognition results. This parameter is returned only when <strong id="ocr_03_0161__b67851143114318">return_excel</strong> is set to <strong id="ocr_03_0161__b15785843114319">true</strong>. You can use <strong id="ocr_03_0161__b1569254711437">base64.b64decode</strong> to decode the returned Excel code and save it as an .xlsx file.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__table18876152942313"></a><a name="table18876152942313"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table18876152942313" frame="border" border="1" rules="all"><caption><b>Table 16 </b>SmartDocumentRecognizerTableWordsBlock</caption><thead align="left"><tr id="ocr_03_0161__row794948152310"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.15.2.4.1.1"><p id="ocr_03_0161__p39501384231">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.15.2.4.1.2"><p id="ocr_03_0161__p49500872312">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.15.2.4.1.3"><p id="ocr_03_0161__p20951138102315">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row1894948182316"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.1 "><p id="ocr_03_0161__p6951788231">words</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.2 "><p id="ocr_03_0161__p29517862319">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.15.2.4.1.3 "><p id="ocr_03_0161__p2951148192320">Character recognition results in a cell</p>
</td>
</tr>
<tr id="ocr_03_0161__row14950128142312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.1 "><p id="ocr_03_0161__p125401399230">rows</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.2 "><p id="ocr_03_0161__p10541193238">Array of integers</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.15.2.4.1.3 "><p id="ocr_03_0161__p195411390239">Rows occupied by text. The values start from 0 and are displayed in a list. The data type is <strong id="ocr_03_0161__b191175914317">Integer</strong>.</p>
</td>
</tr>
<tr id="ocr_03_0161__row139509832317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.1 "><p id="ocr_03_0161__p16541294234">columns</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.15.2.4.1.2 "><p id="ocr_03_0161__p3541590238">Array of integers</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.15.2.4.1.3 "><p id="ocr_03_0161__p754117910235">Columns occupied by text. The values start from 0 and are displayed in a list. The data type is <strong id="ocr_03_0161__b15540172217446">Integer</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__response_SmartDocumentRecognizerFormulaResult"></a><a name="response_SmartDocumentRecognizerFormulaResult"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__response_SmartDocumentRecognizerFormulaResult" frame="border" border="1" rules="all"><caption><b>Table 17 </b>SmartDocumentRecognizerFormulaResult</caption><thead align="left"><tr id="ocr_03_0161__row15483101317256"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.16.2.4.1.1"><p id="ocr_03_0161__p1080341342519">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.16.2.4.1.2"><p id="ocr_03_0161__p11803111302510">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.16.2.4.1.3"><p id="ocr_03_0161__p12803201319255">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row1248371362518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.16.2.4.1.1 "><p id="ocr_03_0161__p4803171372517">formula_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.16.2.4.1.2 "><p id="ocr_03_0161__p58031613152516">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.16.2.4.1.3 "><p id="ocr_03_0161__p1480371310251">Number of mathematical formulas</p>
</td>
</tr>
<tr id="ocr_03_0161__row13483111362516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.16.2.4.1.1 "><p id="ocr_03_0161__p680341372518">formula_list</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.16.2.4.1.2 "><p id="ocr_03_0161__p208031313132512">Array of <a href="#ocr_03_0161__response_SmartDocumentRecognizerFormulaBlock">SmartDocumentRecognizerFormulaBlock</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.16.2.4.1.3 "><p id="ocr_03_0161__p148031136259">List of mathematical formula recognition results</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ocr_03_0161__response_SmartDocumentRecognizerFormulaBlock"></a><a name="response_SmartDocumentRecognizerFormulaBlock"></a><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__response_SmartDocumentRecognizerFormulaBlock" frame="border" border="1" rules="all"><caption><b>Table 18 </b>SmartDocumentRecognizerFormulaBlock</caption><thead align="left"><tr id="ocr_03_0161__row1485113112517"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.17.2.4.1.1"><p id="ocr_03_0161__p108036131255">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.17.2.4.1.2"><p id="ocr_03_0161__p1880321317251">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.17.2.4.1.3"><p id="ocr_03_0161__p128044139258">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row648541318255"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.17.2.4.1.1 "><p id="ocr_03_0161__p680411133252">formula</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.17.2.4.1.2 "><p id="ocr_03_0161__p7804413102513">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.17.2.4.1.3 "><p id="ocr_03_0161__p13804121382512">Mathematical formula recognition results, which are represented as LaTeX strings</p>
</td>
</tr>
<tr id="ocr_03_0161__row1048510135252"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.17.2.4.1.1 "><p id="ocr_03_0161__p208043135256">location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.17.2.4.1.2 "><p id="ocr_03_0161__p0804191318252">Array&lt;Array&lt;Integer&gt;&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.17.2.4.1.3 "><p id="ocr_03_0161__p8804131332513">Mathematical formula location information, in list format, indicating the X and Y coordinates of the four vertices. The coordinate origin is the upper left corner of the image and has a horizontal X axis and vertical Y axis.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ocr_03_0161__p13542495230"><strong id="ocr_03_0161__b1253914414440">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__table4878829182317" frame="border" border="1" rules="all"><caption><b>Table 19 </b>Response body parameters</caption><thead align="left"><tr id="ocr_03_0161__row15961148132312"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.19.2.4.1.1"><p id="ocr_03_0161__p1954359142310">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.19.2.4.1.2"><p id="ocr_03_0161__p5543199152315">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.19.2.4.1.3"><p id="ocr_03_0161__p1254314982317">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row596215872319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.19.2.4.1.1 "><p id="ocr_03_0161__p115432091234">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.19.2.4.1.2 "><p id="ocr_03_0161__p115434962310">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.19.2.4.1.3 "><p id="ocr_03_0161__p14531211191618">Error code returned when the API fails to be called</p>
<p id="ocr_03_0161__p2053911191613">This parameter is not returned when the API is successfully called.</p>
</td>
</tr>
<tr id="ocr_03_0161__row1396216818239"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.19.2.4.1.1 "><p id="ocr_03_0161__p954313913239">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.19.2.4.1.2 "><p id="ocr_03_0161__p354309102318">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.19.2.4.1.3 "><p id="ocr_03_0161__p243341116494">Error message returned when the API fails to be called</p>
<p id="ocr_03_0161__p05621141615">This parameter is not included when the API is successfully called.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ocr_03_0161__section548511177101"><h4 class="sectiontitle">Example Request</h4><ul id="ocr_03_0161__ul13143401838"><li id="ocr_03_0161__li1014350333">Transfer the Base64 encoded string of the document image for recognition.<pre class="screen" id="ocr_03_0161__screen18143709312">POST https://{endpoint}/v2/{project_id}/ocr/smart-document-recognizer
{
"data" : "/9j/4AAQSkZJRgABAgEASABIAAD/4RFZRXhpZgAATU0AKgAAAA..."
}</pre>
</li><li id="ocr_03_0161__li114330638">Transfer the URL of the document image for recognition.<pre class="screen" id="ocr_03_0161__screen414413012313">POST https://{endpoint}/v2/{project_id}/ocr/smart-document-recognizer
{
"url" : "https://BucketName.obs.xxxcloud.com/ObjectName"
}</pre>
</li></ul>
</div>
<div class="section" id="ocr_03_0161__section1548611712109"><h4 class="sectiontitle">Example Response</h4><p id="ocr_03_0161__p1854449102315"><strong id="ocr_03_0161__b1502142293919">Status code: 200</strong></p>
<p id="ocr_03_0161__p135442932316">Example response for a successful request</p>
<pre class="screen" id="ocr_03_0161__screen1399176193414">{
"result" : [ {
"formula_result" : {
"formula_count" : 1,
"formula_list" : [ {
"formula" : "\\\\int _ { L } \\\\left ( 2 x y ^ { 3 } - y ^ { 2 } \\\\cos x \\\\right ) \\\\mathrm { d } x + \\\\left ( 1 - 2 y \\\\sin x + 3 x ^ { 2 } y ^ { 2 } \\\\right ) \\\\mathrm { d } y",
"location" : [ [ 171, 919 ], [ 950, 919 ], [ 950, 967 ], [ 171, 967 ] ]
} ]
}
}, {
"layout_result" : {
"layout_block_count" : 19,
"layout_block_list" : [ {
"location" : [ [ 1165, 368 ], [ 2031, 368 ], [ 2031, 465 ], [ 1165, 465 ] ],
"type" : "title",
"text": "VAT Special Invoice",
"words_ids" : [ 0 ]
}, {
"location" : [ [ 15, 19 ], [ 1078, 19 ], [ 1078, 637 ], [ 15, 637 ] ],
"type" : "form",
"text" : "xxxx",
"words_ids" : [ 2, 3, 4 ],
"form_id" : 0
}, {
"location" : [ [ 18, 180 ], [ 1077, 180 ], [ 1077, 636 ], [ 18, 636 ] ],
"type" : "table",
"text" : "xxxx",
"words_ids" : [ 0, 1, 2 ],
"table_id" : 0
} ]
}
}, {
"form_result" : {
"form_count" : 1,
"form_list" : [ {
"location" : [ [ 15, 19 ], [ 1074, 19 ], [ 1074, 636 ], [ 15, 636 ] ],
"words_block_count" : 24,
"words_block_list" : [ {
"words" : "xxx",
"rows" : [ 0 ],
"columns" : [ 0, 1, 2 ]
}, {
"words" : "xxxx",
"rows" : [ 1 ],
"columns" : [ 0, 1, 2 ]
} ],
"excel" : "UEsDBBQAAAAIAAAAIQBhXUk6TwEAAI8EAAATAAAAW0NvbnRlbnRfVHlwZX..."
} ]
}
}, {
"table_result" : {
"table_count" : 1,
"table_list" : [ {
"words_block_count" : 24,
"words_block_list" : [ {
"words": "Name of goods or taxable labor services",
"rows" : [ 0 ],
"columns" : [ 0 ]
}, {
"words": "Specifications and model",
"rows" : [ 0 ],
"columns" : [ 1 ]
} ],
"excel" : "xxxx",
"location" : [ [ 275, 967 ], [ 2919, 967 ], [ 2919, 1177 ], [ 275, 1177 ] ]
} ]
}
}, {
"kv_result" : {
"kv_block_count" : 25,
"kv_block_list" : [ {
"key": "Invoice issuance date",
"value": "August 31, 2017",
"words_block_count" : 2,
"words_block_list" : [ {
"words": "Invoice issuance date",
"location" : [ [ 2241, 589 ], [ 2480, 592 ], [ 2480, 646 ], [ 2241, 643 ] ],
"type" : "key"
}, {
"words": "August 31, 2017",
"location" : [ [ 2479, 591 ], [ 2850, 595 ], [ 2850, 649 ], [ 2479, 645 ] ],
"type" : "value"
} ]
} ]
}
}, {
"ocr_result" : {
"direction" : 0.4767,
"words_block_count" : 67,
"words_block_list" : [ {
"words": "Heilongjiang VAT Special Invoice",
"location" : [ [ 430, 100 ], [ 874, 99 ], [ 874, 139 ], [ 430, 141 ] ],
"confidence" : 0.9552
} ]
}
} ]
}</pre>
<p id="ocr_03_0161__p11545395233"><strong id="ocr_03_0161__b2360174216448">Status code: 400</strong></p>
<p id="ocr_03_0161__p05451993237">Example response for a failed request</p>
<pre class="screen" id="ocr_03_0161__screen1554510910231">{
"error_code" : "AIS.0103",
"error_msg" : "The image size does not meet the requirements."
}</pre>
</div>
<div class="section" id="ocr_03_0161__section195031717131018"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ocr_03_0161__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ocr_03_0161__row21509172106"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="ocr_03_0161__p1250381714107">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="ocr_03_0161__p15503181761013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ocr_03_0161__row1715117172101"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ocr_03_0161__p55031317151013">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ocr_03_0161__p1450412178100">Response for a successful request</p>
</td>
</tr>
<tr id="ocr_03_0161__row14151141716102"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="ocr_03_0161__p1150411172102">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="ocr_03_0161__p13504131712107">Response for a failed request</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ocr_03_0161__p17678114169">See <a href="ocr_03_0090.html">Status Codes</a>.</p>
</div>
<div class="section" id="ocr_03_0161__section254611932310"><h4 class="sectiontitle">Error Codes</h4><p id="ocr_03_0161__p054699162310">See <a href="ocr_03_0028.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ocr_03_0014.html">API</a></div>
</div>
</div>