1. Download the Dense_flow-master code
Https://github.com/wanglimin/dense_flow
2. You have to install Vs013+opencv (mine is opencv2.4 version)
3. I have no GPU so look for the cpudenseflow version of the Great God
It's the denseflow. If it's a GPU version, that's the GPU with the suffix.
4. Compiling!!!!!!
(Denseimage) is the. avi video to get a frame of RGB color picture (seemingly denseflow directly include this feature)
(Denseflow) flow_x and flow_y are the optical flow images
Just open vs2013. Create a new empty project, and then right-click Add--New project copy the DenseImage.cpp code to the inside then right-click on the build solution, another denseflow, as well as a new empty project
"It is important to note that I just right-clicked to add an existing item so that it can be compiled successfully, but when using the. exe, there will be debug error what r6010 (or perhaps I have come back again this error is not)"
5. Then open cmd, enter d:/ucf/dense_flow-windows/denseflow_cpu/df_cpu/x64/debug/df_cpu.exe-f d:/ucf/dense_flow-windows/ Test.avi-x d:/ucf/denflow/bb/tmp/flow_x-y d:/ucf/denflow/bb/tmp/flow_y-i d:/ucf/denflow/bb/tmp/image-b 20-t 1-d 0-s 1
All I'm using is the absolute path.
Specific look at Denseimage and Denseflow look at the inside of the-f-x-y-i what is the meaning of
- 1 0 1
6. Result diagram
Dense_flow-master+windows