How to extract License Plate?
9 views (last 30 days)
Show older comments
I want to extract license plate area but couldn't figure out how to remove extra region or directly extract the license plate area.
10 Comments
Cedric
on 9 Aug 2015
Edited: Cedric
on 9 Aug 2015
Walter, we can obviously not provide a full solution (stable, solid, etc). I was asking because if the OP is stuck not being able to extract the area where the license plate is before submitting to OCR, it may be possible to find a simple trick (without guaranteeing performance/stability, a bit like what I proposed here), for example based on a simple convolution, which succeeds in e.g. 60% of cases and is able to flag the 40% remaining as failures that must be processed by hand.
Answers (3)
Walter Roberson
on 7 Aug 2015
12 Comments
Walter Roberson
on 9 Aug 2015
If you can't restrict yourself to certain type of license plates then you are back to the problem that anything can be a license plate, since "license plate" is an intention. It would, for example, be perfectly valid for a jurisdiction to use the 143000+ different paintings of Morris Katz as license plates.
Image Analyst
on 8 Aug 2015
4 Comments
Walter Roberson
on 9 Aug 2015
The right technique is to define the problem to one that can be solved. Like only having to recognize 1910 license plates from the US state of Maryland.
muayad bakhtan
on 5 Oct 2015
there are an efficient algorithm that had ability to extract the region such as Edge detection and histogram and color map .. you can back to one of this algorithm .
1 Comment
Walter Roberson
on 5 Oct 2015
Refer to the original image that the user is working with.
You can see that this has numerous edges, but it does not have a clear edge around the license plate. You also cannot use color of the plate background to tell, as the background of the plate is the nearly the same black as the car itself. Color histogram would probably tend to suggest that the color to look at would be silver rather than white, under the assumption that the most prominent color would be the car body and that the second most prominent color would be the car lights and that the plate letters would be the third most prominent color. On the other hand you have to take into account that lights are usually two colors together... now is the white of the lights more prominent than the silver or the white of the license plate? Don't forget to account for the fact that in many cars the bumper is a different color than the car body.
Could we arbitrarily focus on white? Sure, but the poster said specifically that the algorithm must work on a variety of plates of different shapes and colors and colors of letters.
You should have another look at some sample license plates I posted earlier in http://uk.mathworks.com/matlabcentral/answers/232793#comment_303089
There are no efficient algorithms that can handle all license plates. There are no inefficient algorithms that can handle all license plates. As I wrote earlier, "license plate" is an intention, not a particular size or shape or color or font.
See Also
Categories
Find more on Language Support in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!