The scripts contained herein are meant to process the videos and images from public cameras (or cameras in public transport) to find A-lane or other statically identifiable violators.
Tested on Ubuntu 14.04
vagrant up
vagrant ssh
# inside vagrant
cd /vagrant
# install Ubuntu's ffmpeg fork - libav
sudo apt-get install libav-tools
# install openalpr (https://github.com/openalpr/openalpr#binaries)
wget -O - http://deb.openalpr.com/openalpr.gpg.key | sudo apt-key add -
echo "deb http://deb.openalpr.com/master/ openalpr main" | sudo tee /etc/apt/sources.list.d/openalpr.list
sudo apt-get update
sudo apt-get install openalpr openalpr-daemon openalpr-utils libopenalpr-dev
# install openalpr python2 bindings
sudo apt-get install -y python-openalpr
wget http://plates.openalpr.com/ea7the.jpg
alpr -c us ea7the.jpg
wget http://plates.openalpr.com/h786poj.jpg
alpr -c eu h786poj.jpg
# if you've installed libav-tools, ffmpeg == avconv
ffmpeg -i /path/to/video.avi -vf fps=1 out/%d.png