Compare consecutive frames to determine direction of motion using OpenCV

4.1k Views Asked by At

I need to compare every frame with the previous and determine in which direction the movement has occurred. Is this possible by just getting the difference between the two frames? Will it work with slow motion of about 2 m/s? Also, how could I calculate direction of motion using the same?

2

There are 2 best solutions below

4
On BEST ANSWER

You should read about optical flow analysis.

1
On

You should read about SLAM as well.