How can i detect car using tail light color and shape of the car?

I m working on car detection from a given image. I m thinking about using tail light color and shape of the rear side of car as my feature. I used color segmentation and edge detection. now i m stuck with classification. I can't use SVM as my supervisor won't allow SVM. What can i do? I attached my color segmentation and edge detection code. Also an image of car.

 Accepted Answer

Out of curiosity, is there any reason your supervisor does not let you use SVM?
You can try using the trainCascadeObjectDetector function in the Computer Vision System Toolbox to train a boosted cascade detector. It is not an SVM, and it does not use color information at all. Since you only need to detect the rear side of cars, it may be feasible.

3 Comments

Some other student working on same project. She is using SVM. that's why i can't use SVM. I also heard about cascade classifier. But is it usuable in matlab 2013a?
I don't know of anyway to figure out what release a feature was first introduced other than manually going through the release notes looking for it. See http://www.mathworks.com/help/relnotes/index.html
Yes, trainCascadeObjectDetector is available in 2013a. There is also a GUI tool for labeling ground truth on the File Exchange. If you get a more recent version, then you can use the Training Image Labeler app.

Sign in to comment.

More Answers (2)

That's a very challenging problem. You should look up CBIR since the tools used in that will help you. Warning though - it's not trivial. You'll use things like SURF and SIFT and HOG and lots of other things.
As far as color goes, that will probably be a fruitless attempt. There are so many ways the color in your digital image could change and the change from one lighting condition to the next will most likely be way more than the color change between two different cars under the same lighting. In other words, if your mean RGB of a tail light is [160, 60, 70], there's no way to know what model of car it is from just that color. It could be a Toyota in daylight, or a BMW at dusk, or a Ford in the morning.

1 Comment

I am just willing to find car only.. Don't care which brand it is...I m taking light because no matter which is the brand all tail light will be red color. and i m using HSV color model.

Sign in to comment.

further i am also working on car make and model recognition system. for that i used these feature as well out of others ....

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!