车牌识别API

更新时间: 2025-04-17 19:37:59

基本信息

接口地址:https://api-cn.faceplusplus.com/imagepp/v1/licenseplate
返回格式:json
请求方式:post
请求示例:https://api-cn.faceplusplus.com/imagepp/v1/licenseplate?api_key=key&api_secret=secret&image_url=url


参数信息

名称类型必填说明
api_keystring必填调用此 API 的 API Key
api_secretstring必填调用此 API 的 API Secret
image_urlstring必填

图片的 URL

注:在下载图片时可能由于网络等原因导致下载图片时间过长

建议使用 image_file 或 image_base64 参数直接上传图片

image_fileFile必填

图片二进制文件,需要用 post multipart/form-data 的方式上传

image_base64string必填

base64 编码的二进制图片数据

如果同时传入了 image_url、image_file 和 image_base64 参数,

本API使用顺序为 image_file 优先,image_url 最低


返回示例

{
    "image_id": "ZZX0dA3yA+75FnXZ3lpDug==",
    "request_id": "1524109138,f262f388-8562-4da1-9a9b-5de2cb05e50f",
    "results": [
        {
            "bound": {
                "left_bottom": {
                    "x": 372,
                    "y": 654
                },
                "left_top": {
                    "x": 404,
                    "y": 424
                },
                "right_bottom": {
                    "x": 1302,
                    "y": 645
                },
                "right_top": {
                    "x": 1334,
                    "y": 416
                }
            },
            "color": 0,
            "license_plate_number": "黑AF6655"
        }
    ],
    "time_used": 1048
}