Skip to content

xpharry/optical-flow-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optical flow

This work is one part of replicating of the LRCN paper, following the guide in https://people.eecs.berkeley.edu/~lisa_anne/LRCN_video.

In the original paper, the optical flows is generated using Brox's Algorithm as shown in the folder "eccv2004Matlab".

We implement the optical flow algorithm in python with Farnback's Algorithm and hopefully it would be faster than in Matlab.

eccv2004Matlab

This folder contains Matlab Mex-Function for running optical flow as presented at ECCV 2004 by Thomas Brox. Download Source Code here.

Also, the according C++ Library and Executables can be found in Classical Variational Optical Flow.

The guide for using can be found in its own "readme" file.

Our Python Implementation

The code under the folder "py" are our python version and has been tested in Python 3.5 and OpenCV 3.2.

Example Use

  • For single test, run

    create_optical_flow.py

    which only accepts two frames for testing.

  • For massive optical flow generating, run

    create_flow_images_LRCN.py

    which processes with RGB input specified the path in "base" and save the generated optical flow images into the folder specified in "save_base".

About

Compared two main Optical Flow algorithms in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published