O'Reilly logo

Emgu CV Essentials by Shin Shi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code for License Plate Recognition

As we introduced previously, the main idea to do license plate recognition has two stages. First, we detect and locate the position of the plate in the given image. After this, the program normalizes the image and uses an OCR engine to translate the text.

There are two ways to do the detection related to the previous chapters. One is to train a Haar cascade (see Chapter 8, Face Detection) to distinguish plate and non plate image areas. Another way of thinking is that characters can be seen as regular geometric figures, and we can find the contours (see Chapter 7, Shape Detection) to get the license plate.

Here, we recommend the second way to be the first choice because contours can also help with image normalization ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required