How to determine the position of a car inside an image?
algorithm, c++, image-processing, java, php
Solution
You could try OpenCV which has an object detection API. But you would need to "train" it...by supplying it with a large set of images that contained "cars".
- http://docs.opencv.org/modules/objdetect/doc/objdetect.html
- http://robocv.blogspot.co.uk/2012/02/real-time-object-detection-in-opencv.html
- http://blog.davidjbarnes.com/2010/04/opencv-haartraining-object-detection.html
Look at the 2nd link above and it shows an example of detecting and creating a bounding box around the object....you could use that as a basis for what you want to do.
- http://www.behance.net/gallery/Vehicle-Detection-Tracking-and-Counting/4057777
Various papers:
- http://cbcl.mit.edu/publications/theses/thesis-masters-leung.pdf
- http://cseweb.ucsd.edu/classes/wi08/cse190-a/reports/scheung.pdf
Various image databases:
- http://cogcomp.cs.illinois.edu/Data/Car/
- http://homepages.inf.ed.ac.uk/rbf/CVonline/Imagedbase.htm
- http://cbcl.mit.edu/software-datasets/CarData.html
Problem
Is it possible to analyse an image and determine the position of a car inside it? If so, how would you approach this problem? I'm working with a relatively small data-set (50-100) and most images will look similar to the following examples: I'm mostly interested in only detecting vertical coordinates, not the actual shape of the car. For example, this is the area I want to highlight as my final output: