Recently I stumbled upon an interesting open source framework called OpenALPR (Automated License Plate Recognition). This seemed very interesting for trying out on the Raspberry PI. The OpenALPR framework has a couple of dependencies that you have to download and compile first.
Check out the instructions on the OpenALPR framework GitHub repository: https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux)
You need these libraries:
After compiling everything, which took quite a while, I created a simple Python script that takes a photo from a webcam and processes it using the OpenALPR. The Python script processes and presents the license plate recognition results.
You can check the script at my GitHub repository: https://github.com/lukagabric/PyALPR
Video of the Python script in use:
The webcam takes images of size 640×480. This is the image that was taken and used for automated license plate recognition in this video:
Recognition takes quite a while, about 10-13 seconds. I’ve been testing this with 7 plates and the recognition results are very good. All plates have successfully been recognized.
If you liked this blog post I’d appreciate if you followed me on Twitter