Ask Your Question
1

Search digits in the license plate of the car

asked 2014-06-28 10:11:38 -0600

KostyaKulakov gravatar image

updated 2015-11-10 13:52:17 -0600

I am developing the Russian system ANPR (full open sourse) .

The system already knows how to find the license plate.

But I am having difficulty with the division of numbers and letters in the license plate.

I know the method Haar. Do I need to use it to achieve this goal or are there other methods?

Image number 1 shows that I have. Image number 2 shows that I need. image description

edit retag flag offensive close merge delete

Comments

You can use opencv scene text detection functions: http://docs.opencv.org/trunk/modules/objdetect/doc/erfilter.html

GilLevi gravatar imageGilLevi ( 2014-06-29 01:56:41 -0600 )edit

btw there is a haarcascade for russian license plates in the opencv repo. just give it a try.

berak gravatar imageberak ( 2014-06-29 03:15:52 -0600 )edit

berak, thanks for answer. This haarcascade finding License plate. I know how finding it. My question is how find digits and char in license plates

KostyaKulakov gravatar imageKostyaKulakov ( 2014-06-29 04:08:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
4

answered 2014-06-28 19:58:08 -0600

Witek gravatar image

The following approach will work only for relatively big and clear license plates:

  1. Use adaptive thresholding to get the binary image of your license plate
  2. Smooth them with median filter or morphology
  3. Find contours
  4. Filter them according to their area, perimeter, bounding box etc.
  5. Calculate some features of your contours (or even just use raw pixel values as features, but normalize first)
  6. Use some classifier (SVM, NN, RandomTrees, whatever) to classify your characters, alternatively use Tesseract

If your plate is not big enough or not thresholded well or dirty etc, some characters will merge and you will not be able to recognize them this way.

edit flag offensive delete link more

Comments

Thanks for answer. Maybe use cascades Haar? Train(Training cascades Haar) for each letter and digit?

KostyaKulakov gravatar imageKostyaKulakov ( 2014-06-28 23:24:37 -0600 )edit

I do not think that using haar classifiers for characters will work. Some letters and digits are very similar to each other.

Witek gravatar imageWitek ( 2014-06-29 03:03:20 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-06-28 10:11:38 -0600

Seen: 3,447 times

Last updated: Jun 28 '14