VIN ID On-premises
The VIN ID Docker image reads the Vehicle Identification Number (VIN) from a picture, on your own machine. Images are processed locally and are not sent to our servers.
To use it, get a VIN ID On-premises license or request a free trial. An internet connection is required during installation and for an occasional usage check.
The cloud VIN ID API is deprecated. For cloud processing, use the OCR API with type=vin.
Install
For the commands below, replace YOUR_LICENSE_KEY with your License Key and YOUR_API_TOKEN with your API Token. Get your token and license key. Use On Premise Licenses.
- Install Docker on your machine. See the system requirements.
- Docker Windows install instructions. Stuck? Check our FAQ for help.
- Docker Linux install instructions
- Get the image:
docker pull platerecognizer/vin - Run the container:
docker run --restart="unless-stopped" \
-t \
-p 8001:8001 \
-v license:/license \
-e TOKEN=YOUR_API_TOKEN \
-e LICENSE_KEY=YOUR_LICENSE_KEY \
platerecognizer/vin
The image is available for the linux/amd64 architecture.
Testing the API
Once the container is running, send it a picture of a VIN.
- cURL
- Python
curl -F 'image=@/tmp/vin.jpg' -F 'regions=us' http://localhost:8001/predict/
import requests
with open("/tmp/vin.jpg", "rb") as image:
response = requests.post(
"http://localhost:8001/predict/",
files={"image": image},
data={"regions": "us"},
)
print(response.json())
See the parameters and the response format.
Docker Options
- You may use a different port if 8001 is already used. For example, to use port 8888 do
-p 8888:8001. - Add
--detachto run the container in the background. - Add
--network=hostto use the host's networking directly. - Add
-e WORKERS=2to start 2 worker processes. When this is enabled, call the API in a multi-threaded fashion.
Upgrade
- Stop the running container. Run
docker ps -q --filter ancestor=platerecognizer/vinto get the container id, thendocker stop CONTAINER_ID. - Update the image:
docker pull platerecognizer/vin. - Run the container again (see the last step of Install).
Uninstall
Each license can only be used on a single machine. To move your installation to a new machine, uninstall it from the first machine.
- On the machine running VIN ID, check that the container is running. If it is not, start it.
- Update the restart policy of the container.
- Find the
CONTAINER_IDwithdocker ps. docker update --restart no CONTAINER_ID
- Find the
- Uninstall the license. Replace
HOST-IPwith the IP address of the machine running the container (localhostfor the same machine).curl http://HOST-IP:8001/uninstall/
If the machine is no longer available, use Reset License in the Manage menu of the license page.
System Requirements
- An OS that supports Docker. See the installation guide.
- Intel CPU 3rd gen or higher (must support AVX instructions).
- If you are using VMware, disable EVC (Enhanced vMotion Compatibility) so that AVX instructions are available to the container.
If you are behind a firewall, whitelist the required IP addresses.