Would you like to learn how to do the Openalpr installation on Ubuntu Linux? In this tutorial, we are going to show you how to install, configure and access the Openalpr plate recognition software on a computer running Ubuntu Linux version 18.
Hardware List:
The following section presents the list of equipment used to create this Ubuntu Linux tutorial.
Every piece of hardware listed above can be found at Amazon website.
Openalpr Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Openalpr.
Tutorial – Openalpr Installation on Ubuntu Linux
On the Linux console, use the following commands to install the required services.
# apt-get update
# apt-get install libopencv-dev libtesseract-dev git cmake
# apt-get install build-essential libleptonica-dev
# apt-get install iblog4cplus-dev libcurl3-dev beanstalkd
# apt-get install curl
Now, you need to download the Openalpr application source code.
# mkdir /downloads
# cd /downloads
# git clone https://github.com/openalpr/openalpr.git
Use the following commands to compile and install the Openalpr software.
# cd openalpr/src
# mkdir build
# cd build
# cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc ..
# make
# make install
Tutorial – Openalpr Plate Recognition on Images
Use the following commands, in order to test Openalpr recognition of European Cars plates.
# cd /tmp
# wget https://techexpert.tips/wp-content/uploads/2018/07/european-car.jpg
# alpr -c eu european-car.jpg
Here is the European car plate image that we used.
You should get a result similar to the following.
plate0: 10 results
– IH786P0J confidence: 89.0221
– H786P0J confidence: 87.4842
– HH786P0J confidence: 85.2194
– UH786P0J confidence: 84.6511
– HC786P0J confidence: 84.0763
– H3786P0J confidence: 83.7559
– HG786P0J confidence: 83.7166
– IH786PDJ confidence: 82.7574
– IH786POJ confidence: 82.6691
– IH786PQJ confidence: 82.2509
Use the following commands, in order to test Openalpr recognition of American Cars plates.
# cd /tmp
# wget https://techexpert.tips/wp-content/uploads/2018/07/american-car.jpg
# alpr -c us american-car.jpg
Here is the American car plate image that we used.
You should get a result similar to the following.
plate0: 10 results
– EA7THE confidence: 91.0578
– EA7TBE confidence: 84.133
– EA7T8E confidence: 83.0083
– EA7TRE confidence: 82.7869
– EA7TE confidence: 82.5961
– EA7TME confidence: 80.2908
– EA7TH6 confidence: 77.0045
– EA7THB confidence: 75.5779
– EA7TH confidence: 74.6576
– EA7TB6 confidence: 70.0797
Use the following commands, in order to test Openalpr recognition of Brazilian Cars plates.
# cd /tmp
# wget https://techexpert.tips/wp-content/uploads/2018/07/bmw.jpg
# alpr -c br bmw.jpg
Here is the Brazilian car plate image that we used.
You should get a result similar to the following.
plate0: 10 results
– FMW3777 confidence: 87.8497
– FMH3777 confidence: 84.0561
– FMN3777 confidence: 81.1466
– FMU3777 confidence: 80.2783
– FMM3777 confidence: 80.0906
– FNW3777 confidence: 74.1054
– FHW3777 confidence: 74.0035
– FNH3777 confidence: 70.3118
– FHH3777 confidence: 70.2099
– FNN3777 confidence: 67.4024
Tutorial – Openalpr Plate Recognition on Video
I used a random video from youtube to test the Openalpr plate recognition from video.
Here is the video that I used: LINK
Video format: MP4
Filename: videoplayback.mp4
This video has a really bad resolution.
I used the following commands, in order to test Openalpr recognition of Brazilian cars on video.
# cd /tmp
# alpr -c br videoplayback.mp4
You should get a result similar to the following.
Frame: 662
Frame: 663
plate0: 10 results
– PUN5155 confidence: 90.4135
– PUN51S5 confidence: 83.5173
– PUN515S confidence: 83.4617
– PUNS155 confidence: 83.1519
– PUN5I55 confidence: 82.4393
– PON5155 confidence: 79.4586
– PUN51SS confidence: 76.5655
– PUNS1S5 confidence: 76.2557
– PUNS15S confidence: 76.2
– PUN5IS5 confidence: 75.5431
Congratulations, you are now able to do car plate recognition using the command line on Ubuntu Linux.