I want a mtalab code to detect a person from an image, peopleDetector is not working for me.

1 view (last 30 days)
I want to detect a person from an image and draw a bounding box around that person, i tried peopleDetector but unfortunately it is not detecting any person. Actually there is only one person person in my image but peopleDtector is unable to detect that. Please help me.

Answers (1)

Dima Lisin
Dima Lisin on 26 Jul 2014
Can you post a link to this image?
Have you tried tweaking the parameters of the people detector? You can try using a different 'ClassificationModel', you can try reducing 'ClassificationThreshold', or you can try reducing 'WindowStride'.
Alternatively, you can tru using vision.CascadeObjectDetector to detect the face or the upper body of the person.

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!