Openalpr: detect the background color of the plate

Created on 27 Oct 2016  路  4Comments  路  Source: openalpr/openalpr

Is it posible to detect the background color of the lincese plate?
in my country there is a meaning of each color, for example:
blue - diplomat
yellow - taxi
green - zerro emission
white - regular

So would be great to detect the type of the plate by background color as well

All 4 comments

OpenALPR doesn't do that out of the box, but it's possible. The simplest way to do this would be to convert the plate area to HSV and use the hue (within a range) to determine what type of color the plate is. Here's an example (used to detect flesh color from an image):
http://shervinemami.info/blobs.html

This won't work very well at night.

Ok so I am newbie in image recognition - but perhaps if I have the area stored in AlprPlateResult then I need to convert that image and set the right hue, saturation and value to able to detect one of the plate color..

Showing a histogram of hue values for different types of plates may help you determine the range of hue that should be used for each kind of plate.

Yes, you could do this after the plate has been recognized by OpenALPR. We provide coordinates for the 4 corners of the plate. So, you could grab the plate coordinates, crop out your plate from that, and run a hue analysis to get the color.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elementzonline picture elementzonline  路  6Comments

kevinjpetersen picture kevinjpetersen  路  6Comments

FSBalbuena picture FSBalbuena  路  10Comments

tmscer picture tmscer  路  8Comments

guyingqiong picture guyingqiong  路  10Comments