Manual Installation Steps
You can go through the steps below to manually install USDOT OCR On Premise with Docker.
For the commands below, make sure to replace XXXXX with the License Key and YYYYY with your API Token. Get your token and license key. Please use On-Premise Licenses.
List of Docker Images​
There are Docker images for various architectures. The image structure is
platerecognizer/<architecture>:<version>
<architecture>
- x86
usdot
- x86
<version>
: leave blank for latest.- To see the list of tags, select an image from Docker Hub and then click "Tags".
Here are a couple of examples:
- Image for x86 with a specific version:
platerecognizer/usdot:1.0.0
- Image for x86 with the latest version:
platerecognizer/usdot
Installation​
Installation on an Intel CPU​
Abbreviated installation steps below. For a detailed, step-by-step guide, see the Install Docker and SDK on Windows and the associated FAQ for help.
- Sign up and log in.
- Subscribe to a USDOT OCR On Premise plan.
- Install Docker on your local machine. See requirements.
- Get our On Premise image. In a terminal run
docker pull platerecognizer/usdot
- Install and run the docker container:
docker run --restart="unless-stopped" -t -p 8001:8001 -v license:/license \
-e TOKEN=YYYYY -e LICENSE_KEY=XXXXX \
platerecognizer/usdot
Calling the API​
The docker container exposes a REST interface. To verify that the installation was successful, run those commands in a new terminal. Replace localhost
with the IP address of the machine running the docker container, if not the same one.
- Windows
- Linux
# Get a picture
curl -o usdot.jpg https://app.platerecognizer.com/static/usdot_demo.jpg
# And read the usdot information
curl -F "[email protected]" http://localhost:8001/predict/
# Get a picture
curl -o /tmp/usdot.jpg https://app.platerecognizer.com/static/usdot_demo.jpg
# And read the usdot information
curl -F 'image=@/tmp/usdot.jpg' http://localhost:8001/predict/
View the output format documentation and read about parameters to learn how to customize the output.