How to handle occlusion?
Afficher commentaires plus anciens
Can anyone guide me regarding occlusion handling for tracking as well as in stereovision
2 commentaires
Dima Lisin
le 28 Nov 2014
Can you please be a bit more specific?
Himanshu
le 8 Déc 2014
Réponses (1)
Dima Lisin
le 8 Déc 2014
0 votes
Hi Himanshu,
First of all, it is very rare in computer vision to see a 100% accuracy rate. Even the best detection or tracking algorithms still make some mistakes.
As far as your situation, more information would help. What algorithm do you use for object detection? What algorithm do you use for tracking? Is your camera stationary? Are there other objects in the scene besides cars?
For example, if your camera is stationary, you can use background subtraction to detect moving objects (e. g. vision.ForegroundDetector). Then you can use vision.KalmanFilter to track those objects using their motion. If the only moving objects in your scene are cars, then you should be able to track a car even if it is partially occluded, and even it is fully occluded for a short time.
6 commentaires
Himanshu
le 8 Déc 2014
Dima Lisin
le 8 Déc 2014
Well, you should have a training set of images of cars and non-cars. Then you compute the feature vector for each image, and you train a classifier to distinguish between cars and non-cars. See this example. Then you write a detector, which slides a window across the image and uses the classifier to see if it contains a car.
The problem is that there will always be cases for which your classifier will be wrong. The case with a car occluded by bicycles is very difficult.
Himanshu
le 9 Déc 2014
Dima Lisin
le 9 Déc 2014
If the car takes up 80 of the image, that is actually a good situation. Typically, this is what a car-vs.-non-car classifier should be able to handle. However, occlusion is another matter.
Here's a thought. Bag-of-features approach is generally more robust to occlusion and clutter than a HOG-based classifier. That may be worth a try for you. See this example.
Himanshu
le 12 Déc 2014
Catégories
En savoir plus sur Image Processing and Computer Vision dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!