Click here to Skip to main content
13,596,086 members
Rate this:
Please Sign up or sign in to vote.
See more:
i am a C# developer.
i am developing a security system based on camera.
i have developed a system to detect and recognize faces to some extent using open cv libraries.

now i want to develop a s/w that can count the number of people entering in a room or a hall.the camera is supposed to be put on the center line of the door at around 1ft distance.

please help me with some code.i not able to detect and track the human body.
Posted 7-Jan-13 22:51pm
agent_kruger 8-Feb-14 7:32am
if you are able to share the code we can do it for you.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

tushar gupta 10-Jan-13 5:22am
the first link is nice and useful too.its helping me learn about opencv programming with c# e1 better,i'm gonna work on with it lets see where does it take me.
Suvabrata Roy 10-Jan-13 5:44am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Maybe you should use Histogram of Oriented Gradients (HOG)[^] for that purpose of people detection.

I found this C++ code from[^]

Hope this will help you with your C sharp project.

Okay got this code, if you are using Emgu then it's supposed to work. But you also need the theory for you to appreciate the code.[^]
tushar gupta 9-Jan-13 2:29am
i need a c# code,not c++ or any other language.
and to be precise i need a code may it be a demo code,not the pdf books describing the algos. please help me out here asap
BupeChombaDerrick 10-Jan-13 4:25am
Check the other link in the answer for Emgu Csharp pedestrian detection code, you still need that pdf book though :-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 6

i'll suggest another logic,,

Do not go for human detection, instead of this , Draw a virtual line (on camera video image frame) in front of door, just detect large object which cross the line, you can use motion detection concept. its easy.

hope, it will useful to you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02-2016 | 2.8.180621.3 | Last Updated 8 Feb 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100