Ask Your Question

Andrew1108's profile - activity

2016-03-10 03:57:19 -0600 received badge  Notable Question (source)
2015-08-27 09:30:56 -0600 received badge  Popular Question (source)
2014-09-03 07:32:12 -0600 commented answer How to count person in video?

my video contain people walking.. I already done the bounding box, what I want how to count people when people cross the line.. like this picture http://picpaste.com/hqdefault-6g0Hqttu.jpg

2014-09-02 08:19:23 -0600 commented answer How to count person in video?

I know there's haar cascade, but I got project using background subtraction, other team got count people with haar cascade.. Your code just multiplying the counter from cy>=75 until the cy leave the frame...

2014-09-02 00:45:38 -0600 asked a question How to count person in video?

I am use opencv 2.4.9 and python 2.7.6, I need to count people in video. What I already did is:

  1. Background subtraction
  2. Find contour and put the bounding box
  3. Find the centroid (cx,cy)
  4. Draw a virtual line at (20,75) to (320,75)

I am trying to count people, when they cross the line. I try this code to count it

if 75 <= cy <=77:
   counter=counter+1

no error, but the counter count it double, Is there other way to count it?