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?
Asked
Active
Viewed 4,059 times
2 Answers
1
You should read about optical flow analysis.

JonasVautherin
- 7,297
- 6
- 49
- 95
-
Using goodFeaturesToTrack() gives a very low frame rate. Neither does FAST do much better. Any suggestions? – timemanx Sep 13 '13 at 19:52
-
FAST is very, very fast. The next steps of your processing depend on the number of features you select, though. That might be your problem. Try to change the threshold for FAST (use 60 for its parameter, for instance), or select less features. ORB allows you to choose the number of features that will be selected. – JonasVautherin Sep 15 '13 at 09:44
-
Yes, FAST is really fast. The slowness was because of something else. – timemanx Sep 15 '13 at 09:47
-
No keypoints are detected when the camera is in fast movement. – timemanx Sep 15 '13 at 18:11