Skip to content

Calculate OpticalFlow using opencv with multiple GPU/CPU from image/video

Notifications You must be signed in to change notification settings

lshiwjx/OpticalFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculate OpticalFlow with (multi)CPU/GPU based on image/video

/cflow is the C++ realization of the algorithm.
/pyflow is a python warper
Directly decoding from video can save much IO time.

Requirement

Opencv >= 3.0 with GPU Support and Contrib installed

Usage

mkdir build
cd build
cmake ..
make

Their will be three executable files in bin/
./calOpticalFlowFromVideo -i=../data/v_ApplyEyeMakeup_g01_c01.avi -f=../out/ -s=1 -d=0 -t=1

Or use python warper showed in pyflow/

Comparison

Original images:
alt text alt text

Results of different methods:
alt text

Results using gpu/cpu mehtods:
alt text

About

Calculate OpticalFlow using opencv with multiple GPU/CPU from image/video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published