The following step-by-step instructions will help you: (a) install and run Docker; (b) install the Plate Recognizer SDK; (c) test the Plate Recognizer SDK on a Windows PC.
Have questions? Check out our FAQ on SDK via Docker on Windows
Step 6. Now open your web browser and go to hub.docker.com
Click on “Sign up for Docker Hub”.
Step 8. Go to hub.docker.com. again and click on “Sign In”.
Step 10. Now, go to hub.docker.co,/editions/community/docker-ce-desktop-windows. Click on “Get Docker” to start downloading Docker.
To start the installation process, please double click to execute the Docker Installer.
You will be prompted with this message: “Do you want to allow this app to make changes to your device?” Go ahead and click “Yes” to continue.
Step 12. Docker will start downloading additional packages. When it’s finished make sure “Add shortcut to desktop” is checked and click “OK” to continue.
Stuck? Check out our FAQ on SDK via Docker on Windows.
Step 18. In the Command Line, type in the following command:
docker pull platerecognizer/alpr
Please note that you will need to sign up to get an API Key. To sign up, go to app.platerecognizer.com/accounts/signup and complete the process.
Docker will start pulling the image from our repository.
Step 19. Once logged in, go to app.platerecognizer.com/dashboard/ and copy the API Token.
Step 20. Go to the Command Line and type the following command:
docker run – -rm -t -p 8080:8080 -v license:/license -e TOKEN=YOUR_API_TOKEN -e LICENSE_KEY=MY_KEY platerecognizer/alpr
Please note that it is 2 dashes without a space in front of “rm”.
Get your API and License Key. Make sure to replace YOUR_API_TOKEN and MY_KEY with yours. You will get a message like this if everything works OK:
Stuck? Check out our FAQ on SDK via Docker on Windows.
Step 21. In order to test that the SDK actually works please run the following command:
For Linux: curl -o /tmp/car.jpg platerecognizer.com/static/demo.jpg
For Windows: curl -o car.jpg platerecognizer.com/static/demo.jpg
This command gets a demo plate image.
For Linux: curl -F ‘file=@/tmp/car.jpg’ localhost:8080/alpr
For Windows: curl -F “[email protected]” localhost:8080/alpr
You should receive a JSON response with details like above.
Stuck? Check out our FAQ on SDK via Docker on Windows.
If you need to move your installation to another machine, you need to first uninstall the current installation, since each license can only be used on a single machine.
Step 23. Stop running the containers using the image. Run the following command to get Container ID:
docker ps -q –filter ancestor=platerecognizer/alpr
Now we have the CONTAINER ID eb5a5faa25e5
You’re done! If you successfully installed, tested and/or uninstalled the SDK, then give yourself a pat on the back!
Let us know and we’d be happy to assist.
© 2023 Plate Recognizer, a subsidiary of ParkPow, Inc. All rights reserved.
Made with ❤ from Silicon Valley & Budapest.