Effacer les filtres
Effacer les filtres

remove extra objects detect

3 vues (au cours des 30 derniers jours)
mary khaliji
mary khaliji le 5 Juin 2015
Hi every body. How I can remove extra objects detect by vision.ForegroundDetector . for example in original image (attached here) we have a cord that also detected (attached here) in my program, But I just want detect people. How I can remove that.

Réponses (2)

Image Analyst
Image Analyst le 5 Juin 2015
So some kind of filtering like based on size or shape. See my Image Segmentation Tutorial for a demo on how to use filtering on detected regions. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Dima Lisin
Dima Lisin le 5 Juin 2015
You can use morphological operations for that. imopen will remove smaller blobs. imclose will fill in small gaps. If there are still noisy blobs left after that, you can use regionprops to determine the area of all the objects, and exclude the ones that are too big or too small.

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by