Skip to main content

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.

note

The cloud VIN ID API is deprecated. For cloud processing, use the OCR API with type=vin.


Install​

danger

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.

  1. Install Docker on your machine. See the system requirements.
  2. Get the image:
    docker pull platerecognizer/vin
  3. 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 -F 'image=@/tmp/vin.jpg' -F 'regions=us' http://localhost:8001/predict/

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 --detach to run the container in the background.
  • Add --network=host to use the host's networking directly.
  • Add -e WORKERS=2 to start 2 worker processes. When this is enabled, call the API in a multi-threaded fashion.

Upgrade​

  1. Stop the running container. Run docker ps -q --filter ancestor=platerecognizer/vin to get the container id, then docker stop CONTAINER_ID.
  2. Update the image: docker pull platerecognizer/vin.
  3. 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.

  1. On the machine running VIN ID, check that the container is running. If it is not, start it.
  2. Update the restart policy of the container.
    • Find the CONTAINER_ID with docker ps.
    • docker update --restart no CONTAINER_ID
  3. Uninstall the license. Replace HOST-IP with the IP address of the machine running the container (localhost for 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.
tip

If you are behind a firewall, whitelist the required IP addresses.