optical flow help?

asked 2019-01-21 06:17:35 -0600

Savta gravatar image

updated 2019-01-21 07:52:56 -0600

So I have a big project in college and I couldn't run the optical flow example from the opencv source files... So I need a running code that does optical flow to an input from a camera. I also need help understanding the functions calcOpticalFlowPyrLK and goodFeaturesToTrack.

and if you could, please tell me what need to be changed in the optical flow exaple to make it run.

The code: https://docs.opencv.org/3.3.0/d2/d0a/...

edit retag flag offensive close merge delete

Comments

and I couldn't run the optical flow example

why couldn't you ?

(we can only help you, if you explain your problems)

berak gravatar imageberak ( 2019-01-21 06:39:48 -0600 )edit

Error:Unable to start program D:\visualstudio2015\projects\lk_demo\x64\Debug\lk_demo.exe The system cannot find the file specified

(This .exe file does not exist) I linked in the projet properties as so: C/C++>general>additional include directories> opencv's include folder Linker>general>additional library directories> openCV's lib folred Linker>input>additional dependencies> opencv_world400d.lib

Savta gravatar imageSavta ( 2019-01-21 07:46:56 -0600 )edit

the goodFeaturesToTrack error is that apparently opencv has 2 features by that are very similar and I can't know which one is needed and how to resolve it

Savta gravatar imageSavta ( 2019-01-21 07:50:10 -0600 )edit

addaed the code to the post

Savta gravatar imageSavta ( 2019-01-21 07:53:12 -0600 )edit

sample compiles & runs fine.

berak gravatar imageberak ( 2019-01-21 07:54:14 -0600 )edit