{
    "openapi": "3.0.0",
    "info": {
        "title": "车辆VIN识别 - API文档",
        "version": "1.0.0",
        "description": "支持识别图片内车辆挡风玻璃处和行驶证上的车架号码VIN，图片大小不超过6M。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/ocrvin\/index": {
            "post": {
                "summary": "车辆VIN识别",
                "tags": [
                    "车辆VIN识别"
                ],
                "description": "OCR车辆VIN码识别，解析速度快",
                "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\/vincode.jpg",
                                        "description": "图片URL地址（支持jpg\/png\/bmp格式）"
                                    }
                                },
                                "required": [
                                    "img",
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "vincode": {
                                            "type": "string",
                                            "example": "LSGPC53R19F070456",
                                            "description": "车辆识别码"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "vincode": "LSGPC53R19F070456"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}