Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
hi,
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
Comments
agent_kruger 8-Feb-14 7:32am    
if you are able to share the code we can do it for you.

 
Share this answer
 
Comments
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.
thanx
Suvabrata Roy 10-Jan-13 5:44am    
welcome
Maybe you should use Histogram of Oriented Gradients (HOG) http://lear.inrialpes.fr/people/triggs/pubs/Dalal-cvpr05.pdf[^] for that purpose of people detection.

I found this C++ code from https://gist.github.com/1470956[^]


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.

http://www.emgu.com/wiki/index.php/Pedestrian_Detection_in_CSharp[^]
 
Share this answer
 
v3
Comments
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 :-)
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.
regards.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900