{
    "openapi": "3.0.0",
    "info": {
        "title": "车牌识别 - API文档",
        "version": "1.0.0",
        "description": "该接口可以快速识别中国大陆各类机动车车牌信息，例如蓝牌、黄牌、绿牌、大型新能源、政府类车牌如领使馆车牌、警牌、军牌（单双行）、港澳出入境车牌等。支持识别图像中的多张车牌信息，图片大小不超过5M。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/licenseplate\/index": {
            "post": {
                "summary": "车牌识别",
                "tags": [
                    "车牌识别"
                ],
                "description": "OCR车牌识别，效率高速度快",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "img": {
                                        "type": "string",
                                        "example": "base64",
                                        "description": "图片base64编码（与imgurl参数二选一）"
                                    },
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "imgurl": {
                                        "type": "string",
                                        "example": "https:\/\/www.tianapi.com\/static\/img\/ocr\/licenseplate.jpg",
                                        "description": "图片URL地址（支持jpg\/png\/bmp格式）"
                                    }
                                },
                                "required": [
                                    "img",
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "color": {
                                            "type": "string",
                                            "example": "black",
                                            "description": "车牌颜色（black、blue、green、yellow、white）"
                                        },
                                        "number": {
                                            "type": "string",
                                            "example": "沪A0762学",
                                            "description": "车牌号"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "color": "black",
                                        "number": "沪A0762学"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}