车牌识别

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String RecognizeCarNumber

系统规定参数。取值:RecognizeCarNumber

Url String https://img.alicdn.com/tfs/TB1Wo7eXAvoK1RjSZFDXXXY3pXa-2512-3509.jpg

图片链接(长度不超 2048,不支持 base64)

String 图片二进制文件

图片二进制文件,最大10MB,与URL二选一。 使用HTTP方式调用,把图片二进制文件放到HTTP body 中上传即可。 使用SDK的方式调用,把图片放到SDK的body中即可。

返回数据

名称 类型 示例值 描述
RequestId String 请求唯一 ID

请求唯一 ID

Data String "{"data":{"secondary_cls":{"type_str":"小型汽车","prob":0.955191},"data":{"车牌":"黑AF6655"},"score":1.050000,"info":[{"value":"黑AF6655","key":"车牌","key_prob":0.999260,"value_prob":0.999260,"key_loc":"","value_loc":"469,450,1220,419,1227,588,476,620"}]},"height":1200,"orgHeight":1200,"orgWidth":1600,"prism_keyValueInfo":[{"key":"车牌","keyProb":99,"value":"黑AF6655","valuePos":[{"x":469,"y":450},{"x":1220,"y":419},{"x":1227,"y":588},{"x":476,"y":620}],"valueProb":99}],"structure_list":[{"$ref":"$.data"}],"width":1600}"

返回数据

Code String 200

状态码

Message String message

详细信息

示例

请求示例

http(s)://[Endpoint]/?Action=RecognizeCarNumber
&Url=https://img.alicdn.com/tfs/TB1Wo7eXAvoK1RjSZFDXXXY3pXa-2512-3509.jpg
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<RecognizeCarNumberResponse>
    <RequestId>999E5207-A363-4018-8772-4FF5BEBA6929</RequestId>
    <Data>{"data":{"secondary_cls":{"type_str":"小型汽车","prob":0.955191},"data":{"车牌":"黑AF6655"},"score":1.050000,"info":[{"value":"黑AF6655","key":"车牌","key_prob":0.999260,"value_prob":0.999260,"key_loc":"","value_loc":"469,450,1220,419,1227,588,476,620"}]},"height":1200,"orgHeight":1200,"orgWidth":1600,"prism_keyValueInfo":[{"key":"车牌","keyProb":99,"value":"黑AF6655","valuePos":[{"x":469,"y":450},{"x":1220,"y":419},{"x":1227,"y":588},{"x":476,"y":620}],"valueProb":99}],"structure_list":[{"$ref":"$.data"}],"width":1600}</Data>
</RecognizeCarNumberResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "999E5207-A363-4018-8772-4FF5BEBA6929",
  "Data" : "{\"data\":{\"secondary_cls\":{\"type_str\":\"小型汽车\",\"prob\":0.955191},\"data\":{\"车牌\":\"黑AF6655\"},\"score\":1.050000,\"info\":[{\"value\":\"黑AF6655\",\"key\":\"车牌\",\"key_prob\":0.999260,\"value_prob\":0.999260,\"key_loc\":\"\",\"value_loc\":\"469,450,1220,419,1227,588,476,620\"}]},\"height\":1200,\"orgHeight\":1200,\"orgWidth\":1600,\"prism_keyValueInfo\":[{\"key\":\"车牌\",\"keyProb\":99,\"value\":\"黑AF6655\",\"valuePos\":[{\"x\":469,\"y\":450},{\"x\":1220,\"y\":419},{\"x\":1227,\"y\":588},{\"x\":476,\"y\":620}],\"valueProb\":99}],\"structure_list\":[{\"$ref\":\"$.data\"}],\"width\":1600}"
}

错误码

访问错误中心查看更多错误码。