Ask Your Question
0

how can I detect human bodies in opencv

asked 2015-03-31 05:33:54 -0600

Omar Osama gravatar image

I am new with opencv. I tried some tutorial I found it flexible. My assignment is to count humans in a video stream using c++. so I have to detect human bodies (or upper human bodies) in this video. Any one have any suggestions?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2015-03-31 06:50:35 -0600

There are several solutions to this problem, but lets start by telling you that this forum has a search option, which will lead you to 1000 of topics doing exactly the same. Techniques you could try:

  1. If your camera is stable than you could start with background/foreground segmentation and could the amount of segmented areas/blobs to count people. Adding trackers will make sure you count each blob only once.
  2. More advanced techniques try to model humans. Examples are HOG+SVM descriptor/detector approaches.
  3. You could also try out the pedestrian detector for full bodys trained with the Viola and Jones approach inside OpenCV.
  4. Or you could go even further and try more less documented techniques like LatentSVM or ICF detector, which are also inside the OpenCV repository.

I guess, start googling on this topics and start reading!

edit flag offensive delete link more

Comments

thank you for your interest. I started in this problem last Friday, 4 days of googling and I didn't find what I need. I found cascadecalssifier method for face detection and eye detection. I found cascadecalassifier method was really good. but i didn't find it for human detection. the problem is that the dead line for this assignment is next Saturday. I will keep searching. thanx

Omar Osama gravatar imageOmar Osama ( 2015-03-31 07:40:05 -0600 )edit
1

If you look at the official repository, you can see that there is also a full body model for that face detector, right here. The HOG+SVM approach can be seen here, the latentSVM approach here and the ICF approach here. As you can see, the last methods need some implementation work, no ready to serve demos there.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-31 07:57:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-03-31 05:33:54 -0600

Seen: 3,300 times

Last updated: Mar 31 '15