Ask Your Question
0

tracking movement in a

asked 2016-12-26 05:13:41 -0600

PeteUK gravatar image

Hello Forum. Need some help (well a lot really please). I am trying to track movement in an area. Imagine a cat walking across a lawn, it starts at one side and walks across to the other, how do I count the number of times this is done ? Thanks in advance. PeteUK

edit retag flag offensive close merge delete

Comments

What have you try ? Which opencv version do you use ? Which langage?

Please read faq

LBerger gravatar imageLBerger ( 2016-12-26 05:17:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-29 01:54:11 -0600

You could use background subtraction to detect the cat(blob detection) and use a tracking algorithm like Kalman filter to keep track of the detection.

As for counting, I guess you could try something like what's done in this video. He's drawn a line at the center of the screen and keeps count of the number of times a blob crosses that line(in your case it would be a vertical line near the side of the screen).

Actually, he uses background subtraction and a different algorithm for keeping track of the blob so you could check those out as well.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-26 05:13:41 -0600

Seen: 270 times

Last updated: Dec 29 '16