Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

License Plate Recognition - Determining Color Range For Pixel Comparison

Well after much work regarding vehicle plate detection, I've decided that simply finding a 'pattern' of yellow pixels within an image would be a sufficient method of finding the location of a license plate within an image. Currently I use various graphic filters and detect white pixel patterns, however this is proving to be more and more problematic.

Now for the question, I'm aware that the 'yellow' are a license plate is based on numerous factors such as brightness, environment. alt textalt text

Insight of this I would need a range to compare to, for example:

if(FindIfYellow(GetPixel(x, y)))

However I don't know if to use RGB values, specifically individual RGB values to determine if the color is a shade of yellow. Finally is there a website or information of some sort defining these ranges? I know

R: 255 G: 255 B: 0

Is the purest of yellow, but in terms of range I have no idea. Anyway hopefully it's a resonable idea, and the reason I post is to ensure I haven't overlook something, as I have been doing frequently :).

like image 974
Ash Avatar asked Jan 24 '11 00:01

Ash


People also ask

How many pixels do you need to read a license plate?

North American license plates: it is highly recommended to setup the camera so there are at least 100 horizontal and 80 vertical pixels on the plate. The minimum setting is 75 horizontal pixels on a standard 1-foot license plate.

Can Computer Vision models be used to identify license plates?

In the same way that Neural Networks try to process data like the human brain, Computer Vision attempts to see, identify, and process images in the way that human vision does. In this article we're going to detect one of the most used cases of Computer Vision, detecting license plates.


2 Answers

Using CMYK channel separation - Let's OCR the Plate!

enter image description here

Repeating the process with the other image

enter image description here

like image 90
Dr. belisarius Avatar answered Sep 21 '22 03:09

Dr. belisarius


Is gold yellow? Is yellowish-orange yellow? How about yellow-green?

(My point being that this is a fuzzy definition for a human, let alone for a computer... just decide on a range that looks yellow to you and stick with it.)

like image 23
user541686 Avatar answered Sep 18 '22 03:09

user541686