It’s been a while since I last coded in Python. Gotta give Python the love it deserves!
Here’s a quick demo of automatic number plate recognition of vehicle plates from a video stream using OpenALPR in Python
I’m surprised at the speed difference I obtained using OpenALPR in Python vs VB.NET, maybe I need to review my VB.NET code 😐 Silly me! I forgot that I had intentionally used timers to slow down the results in VB.NET
Also I feel adding motion detection might be a nice feature and would prevent the results from flooding at the output.
I wanted to design something capable of Automatic Number Plate Recognition, but soon realised it’s quite a tedious task, so began searching for an SDK or API. I found a bunch of commercial ones, but all I wanted was something to play with. Thank goodness for open source software, I found a neat library called OpenALPR. So, decided to give it a shot.
OpenALPR provides bindings in C#, Python, Node.js, Go, and Java. I’m mostly familiar with VB.NET, so I sat down to convert their C# example and designed something simple as a test. In the initial version, I allowed the user to browse for an image file which is fed to OpenALPR. If OpenALPR successfully finds a plate, the results are then displayed in a listbox. It also gives the regions in the image where the plate is detected. What’s cool is, it could even detect multiple plates in an image, even in dark images. Continue reading