How to extract traffic signs from a photograph?
I am working on a project which involves detecting north american speed signs (black/white) using a 720p HD camera. My problem is that I cannot seem to figure out how to classify the rectangular profile of the speed signs in order to pass it on to the text detection stage. My current segmentation approach detects differing levels of white in an image and thresholds the image based on those values (determined from color of road signs). The problem is that I need to segment it further as threshold-ed shape doesn't contain the complete road sign, but bits and pieces of it. I wanted to know what would be the best way to classify the road sign?
These are some pre-segmented images and the corresponding segmented images:
As you can see the road sign has holes in it but its distinct rectangular profile is in-tact in most cases. I am currently looking into using kurtosis shape profile to determine if it is rectangle however the approach seems complicated and computationally expensive, I wanted to know if anyone knows a faster simpler method to determine the rectangular profile of the road sign from the segmented image?
I did this in Matlab using the image processing toolbox.
EDIT: Use Local OTSU thresholding it will allow for segmentation and further morph operations allow to speed sign detection.
Whoever marked this similar to the link below as a duplicate, its not... there is fundamental difference between chromatic and achromatic colors (This question deals with achromatic) whereas the link suggested below deals with chromatic.