运之盟开放平台


车牌识别(未开放)

<p><strong>简要描述:</strong> </p> <ul> <li>OCR-车牌识别</li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>API地址: <a href="https://open-beta.56yzm.com:8443">https://open-beta.56yzm.com:8443</a> (不同的环境,不同的API地址)</li> <li>请求地址:<del>/open-api/ocr/ocrScanPlateLicense</del></li> </ul> <p><strong>请求头数据 </strong></p> <ul> <li>Content-Type : application/json;charset=UTF-8 </li> <li>Authorization: Bearer {your_access_token} </li> </ul> <p><strong>入参参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">imageBase64</td> <td style="text-align: left;">否</td> <td style="text-align: left;">String</td> <td>图片的Base64编码,要求Base64编码后大小不超过10MB。图片最短边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。&lt;br&gt;图片Base64编码示例如:&quot;/9j/4AAQSkZJRgABAg...&quot;,带有多余前缀会产生The image format is not supported报错。&lt;br&gt;该参数与url二选一。</td> <td>-</td> </tr> <tr> <td style="text-align: left;">imageUrl</td> <td style="text-align: left;">否</td> <td style="text-align: left;">String</td> <td>图片的url路径,目前支持:- 公网http/https url&lt;br&gt;- OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见配置OBS访问权限。&lt;br&gt;说明:&lt;br&gt;接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。&lt;br&gt;请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。&lt;br&gt;url中不能存在中文字符,若存在,中文需要进行utf8编码。&lt;br&gt;该参数与image二选一。</td> <td>-</td> </tr> </tbody> </table> <p><strong>入参示例</strong></p> <pre><code>{ &amp;quot;imageBase64&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;imageUrl&amp;quot;: &amp;quot;string&amp;quot; }</code></pre> <p><strong>返回参数说明</strong> </p> <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;">plateNumber</td> <td style="text-align: left;">string</td> <td>车牌内容。</td> </tr> <tr> <td style="text-align: left;">plateColor</td> <td style="text-align: left;">string</td> <td>当前版本支持的车牌底色类型:- blue:蓝色&lt;br&gt;- green:绿色(小型新能源车牌)&lt;br&gt;- black:黑色&lt;br&gt;- white:白色&lt;br&gt;- yellow:黄色&lt;br&gt;- yellowGreen: 黄绿(大型新能源车牌)</td> </tr> <tr> <td style="text-align: left;">plateLocation</td> <td style="text-align: left;">array</td> <td>车牌的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);采用图像坐标系,坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。</td> </tr> <tr> <td style="text-align: left;">confidence</td> <td style="text-align: left;">float</td> <td>字段的置信度,取值范围0~1。置信度越大,本次识别的字段的可靠性越高,在统计意义上,置信度越大,准确率越高。&lt;br&gt;置信度由算法给出,不直接等价于字段的准确率。</td> </tr> </tbody> </table> <p><strong>出参示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;plateNumber&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;plateColor&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;plateLocation&amp;quot;: [ { &amp;quot;&amp;quot;: &amp;quot;&amp;quot; } ], &amp;quot;confidence&amp;quot;: 0 } }</code></pre>

页面列表

ITEM_HTML