Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Human full body detection: contour rather than rectangle

Tags:

opencv

I have to implement a contour detection of full human body (from feet to head, in several poses such as raising hands etc.) using opencv. I managed to compile and run code I found here https://gist.github.com/yoggy/1470956, but it only draws a rectangle around the body, and not the exact contour. Can one help me with identifying and displaying the contour itself?

Thanks!!

like image 838
Troy McClure Avatar asked Aug 20 '13 13:08

Troy McClure


2 Answers

I'm afraid the answer to this question is:

There's no algorithm that can do this perfectly.

Computer vision has not developed to that extent yet. Take a look at recent papers in CVPR, PAMI, and you will find that most algorithms are "rectangle", or more specifically, bounding-box based, in terms of human labeling and algorithmic detecting.

It is true that you can find the contours within the bounding-box. However the computer just doesn't know which contour belongs to the specified object.

I suggest you search for "human pose estimation" for further information.

like image 109
SolessChong Avatar answered Oct 19 '22 05:10

SolessChong


One approach that might work is background subtraction:

http://docs.opencv.org/3.1.0/db/d5c/tutorial_py_bg_subtraction.html

This would work for video but perhaps also for single images in a scenario where you were in a controlled (fixed camera) environment where you had an image of the pose and also and image of the background, with no one present.

like image 34
j2abro Avatar answered Oct 19 '22 03:10

j2abro