Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Detect a human figure in a live video

Asked by Milindu on 27 May 2012

I am new to matalb,I want to detect a moving human figure in live video feed, this human figure can be in different poses. Can anyone give me some advice on how to detect the human figure after detecting its(human figure) motion.



Milindu on 29 May 2012
Seems too complex

Milindu on 29 May 2012

Gait recognition is based on most of the human detection system, still it seems that it has many flows, I'm still searching. If anyone has more info on gait recognition.

Image Analyst on 29 May 2012

There is information on gait analysis in the Iris USC bibliography I gave you below. See section " Walking, Gait Recognition, Gait Analysis". But you're going to have to do a LOT of work on that complicated subject. It's nothing where we can give you a hundred lines of code and you're all set.



No products are associated with this question.

5 Answers

Answer by Stephen on 29 May 2012

if the camera is static, take a blank image and subtract it from the live feed to get a rough idea of what pixel values have changed. maybe division would handle different daylight conditions better. anyway, once you have something moving or different about the picture, you can do a medial transform of the shape to see how 'stick figure'-like it is. good luck


Answer by Image Analyst on 27 May 2012


Image Analyst on 29 May 2012

Then you need to look up algorithms listed in section 16 or 18 here:

Image Analyst on 25 Jul 2012

There is a conference next month with sessions on gait analysis if you're interested:

Image Analyst
Answer by Walter Roberson on 29 May 2012

Gait recognition is not sufficient for your purpose. Consider people on crutches, people in wheelchairs, people on unicycles, bicycles, or tricycles. Some of the robots being built in Japan apparently have quite good bipedal motion and look quite realistic, but those are not human.

Recognizing leg length accurately in order to calculate proportions in order to distinguish humans from other primates (e.g., gorillas) is difficult when one considers skirts, dresses, and long winter coats. The proportions in humans vary considerably -- consider for example dwarfism. Even without disorders such as that, if you take a male human and a female human of the same height, the female will statistically have longer legs. And I know that my proportions are at least two standard deviations from the mean.

For the purpose of this project, are you restricting "human" to Homo sapiens sapiens, or are you including Homo neanderthalensis, Homo habilis, and so on?


Walter Roberson
Answer by Milindu on 28 May 2012


There are many information on tracking in there but i can not find any information on how to detect a human figure, Actually human figure can have different posses, but if i take a walking human the legs are always changing in a certain way can i take this action into consideration and deduce because of the motion part it is a human.


Image Analyst on 29 May 2012

See my comment I added to my answer. By the way, this post of yours is not an "Answer" to your question - it should have been added as a comment on my Answer, so that's why I answered this up there instead of here.

Milindu on 29 May 2012

my bad

Answer by Geoff on 29 May 2012

Employ a 2 year-old child to sit in front of the screen and "point at the person".

This solution is 100% accurate with absolutely no mathematics required. It works with occlusion, non-static background, non-static camera, image noise, poor lighting, and multiple targets.

That's how frustrating Computer Vision is!!!


Walter Roberson on 31 May 2012

So you are designing your security system to fail at comic book and science fiction conventions?

Geoff on 31 May 2012

If this is for a 24/7 system, be aware that 2 year-old humans don't have reliable up-time.

Walter Roberson on 31 May 2012

And if you have a 2-year old human riding a cow, such as are shown in this security snapshot provided by "nomad nomad" ?


Contact us