Skip to content

OpenCV Implementation of different optical flow algorithms

Notifications You must be signed in to change notification settings

weimanzhou/dense_flow

 
 

Repository files navigation

This is a sample code for extrating dense flow field given a video.

Dependences:

  • opencv3.1.0

只使用 i_dense_flow.cpp 即可

Usage:

git clone https://github.com/weimanzhou/dense_flow.git
cd dense_flow
g++ i_dense_flow.cpp -o i_dense_flow `pkg-config --cflags --libs opencv`
# 创建 source 文件夹,存放 avi 格式视频的位置
mkdir source
# 创建 target 文件夹,存放输出的默认位置
mkdir target
./i_dense_flow
# 执行后的 target 目录结构
# target
#   |- avi_file_name
#       |- image
#       |- x_flow
#       |- y_flow
#   |- avi_file_name
#       |- image
#       |- x_flow
#       |- y_flow

Exmaple:

$ tree source
source/
├── fil_cat2.avi
└── fil_cat.avi

0 directories, 2 files

$ ./i_dense_flow
$ tree target -L 2
target/
├── fil_cat
│   ├── image
│   ├── x_flow
│   └── y_flow
└── fil_cat2
    ├── image
    ├── x_flow
    └── y_flow

8 directories, 0 files

About

OpenCV Implementation of different optical flow algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.0%
  • MATLAB 23.9%
  • CMake 1.1%