Ask Your Question

wisnu rizky's profile - activity

2018-01-23 04:16:43 -0600 received badge  Notable Question (source)
2017-04-08 15:09:53 -0600 received badge  Popular Question (source)
2015-05-06 21:21:20 -0600 asked a question How I upgrade open cv that has BackgroundSubtractorGMG module?

Hello everyone, I have project in open cv that need eliminated shadow of the object, I decide to use BackgroundSubtractorGMG, but in my opencv-2.4.9 there's no module name that. what version it needed? how I upgrade to that version in ubuntu 14.04 LTS with python 2.7 interface? thank you for the help :-)

2015-04-23 02:57:27 -0600 commented answer Counting a point that intersect a line in opencv python

@FooBar: thank you for your comment, actually I only want if the detected crossed over the line than it count as one. So, I used if cy==170. Sorry, if I am wrong to use that algoritm, for more detail please open this https://drive.google.com/file/d/0B-6V... for the screenshoot. Thank you for your help.

2015-04-22 23:26:25 -0600 asked a question Counting a point that intersect a line in opencv python

Hello everyone, I am working in vehicle counting with opencv and python programming. I already complete step: 1. Detect moving vehicle with BackgroundSubtractorMOG2 2. Draw rectangle on it, then poin a centroid of that 3. Draw a line (to indicate of the counting)

if that centroid accros/intercept with the line I want count that 1. but in my code sometime it add sometime no. Here the line code:

cv2.line(frame,(0,170),(300,170),(200,200,0),2)

and there the centroid:

if w > 20 and h > 25: 
            cv2.rectangle(frame, (x,y), (x+w,y+h), (180, 1, 0), 1)

            x1=w/2      
            y1=h/2
            cx=x+x1
            cy=y+y1
            centroid=(cx,cy)

            cv2.circle(frame,(int(cx),int(cy)),4,(0,255,0),-1)

my counting code:

if cy==170:   
 counter=counter+1

Can anyone help me. please. for your advice thankyou!