Configure Raspberry for License Plate Recognition


Quick howto for installing and compiling the OpenAlpr project on a Raspberry Pi. Raspberry needs to have atleast 64bit Ubuntu Trusty for this to work.

First, install the prerequisites.

sudo apt-get install libopencv-dev libtesseract-dev git cmake build-essential libleptonica-dev
sudo apt-get install liblog4cplus-dev libcurl3-dev
sudo apt-get install beanstalkd

Next, head to your home folder and grab the latest openalpr code.

cd ~
git clone https://github.com/openalpr/openalpr.git

Setup a build directory and the compile environment

cd openalpr/src
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc ..

Compile the library (this can take a while)

make

Then install the libraries and binaries to the system.

sudo make install

And TEST!!

wget http://plates.openalpr.com/ea7the.jpg
alpr -c us ea7the.jpg

wget http://plates.openalpr.com/h786poj.jpg
alpr -c eu h786poj.jpg