3002.VIN OCR
Brief Summary:Photos containing VIN codes captured from locations such as the vehicle nameplate, driver’s license, or front windshield can be processed through an OCR recognition program to convert them into a 17-character vehicle identification number (VIN). Notes:
- Ensure the photo is free of glare during photography.
- Compress the image before uploading to prevent upload failures due to large file sizes.
http://api.17vin.com:8080/?action=vin_ocr&base64_urlencode_imagestring={base64_urlencode_imagestring}&user={username}&token={token}
- POST
【Note】: In actual implementation, please use the POST method. The parameters action, base64_urlencode_imagestring, user, and token must not be included in the URL; they should only be sent in the POST request body.
【Example】: The following is a C# code example; for other programming languages, please use AI to translate accordingly.
Parameters:| Parameter | Required | Type | Description |
|---|---|---|---|
| action | Yes | string | vin_ocr |
| base64_urlencode_imagestring | Yes | string | Image data that has been base64 encoded (excluding the data:image/png;base64, prefix) and then URL-encoded. The final size of the base64 encoded and URL-encoded string must not exceed 4MB. The shortest side of the image must be at least 15px, and the longest side must not exceed 4096px. Supported formats: jpg/jpeg, png, bmp.Example image URL: http://www.17vin.com/images/vin_test.png |
| user | Yes | string | user name |
| token | Yes | string | MD5(concat(MD5('myusername'),MD5('mypassword'),'/?action=vin_ocr&base64_urlencode_imagestring=xxxxxx')) |
{
"code":1,
"msg":"success",
"data":"LFMGJE720DS070251"
}
Response description
| Parameter | Type | Description |
|---|---|---|
| vin | string | OCR-recognized VIN (Vehicle Identification Number extracted via Optical Character Recognition) |
- mage size must not exceed 4 MB. For international users, it is recommended to compress images to under 500 KB while maintaining VIN readability. Smaller image sizes are preferred whenever possible.