MATLAB Answers

How to detect people from top view

2 views (last 30 days)
Florian Wagner
Florian Wagner on 19 Oct 2020
Commented: Image Analyst on 19 Oct 2020
Hello,
I would like to detect people from a top view like in the image. I am relatively new to image processing and don't know the best approach on how to takle this. (The image is just one from a bigger dataset I have and I can't shoot a clean plate for these)
I would need to detect people in a scenario like this.
Thanks in advance!

  0 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 19 Oct 2020
I'd try snapping a photo with no people in there first, and then subtract your people photo from it. Then threshold it.
backgroundImage = imread('background.png');
peopleImage = imread('people.png');
diffImage = imabsdiff(backgroundImage, peopleImage);

  4 Comments

Show 1 older comment
Image Analyst
Image Analyst on 19 Oct 2020
If it's a video, the Computer Vision Toolbox has examples/demos for tracking people. Look it up.
You can get a background image by taking the mode of a whole bunch of frames.
Florian Wagner
Florian Wagner on 19 Oct 2020
I only have a set of images, different scenes/places altogether
Image Analyst
Image Analyst on 19 Oct 2020
So how is your algorithm supposed to know that a dark round spot in the image is the top view of a person and not a stain on the floor? If you have no reference image, and the blob is not moving, I don't think there is any reliable way.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!