Skip to content

Dense optical flow detection using OpenCV's Gunnar Farneback’s algorithm. An example is included: taking a video showing a crowd in movement, the people movement can be described with a set of vectors.

License

Notifications You must be signed in to change notification settings

rodolfoap/dense_optical_flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dense Optical Flow

Dense optical flow matrix using OpenCV's Gunnar Farneback’s algorithm.

Compilation

cd src
mkdir build && pushd !!
cmake ..
make
popd

Usage

./main VIDEO_FILE.mp4

Output sample

  • ACCELERATION=0.1

  • ACCELERATION=0.9

Tools

ffmpeg -y -i KTH-Final-0TbZXdhqvA.mp4 -ss 50 -vf eq=brightness=-0.3:contrast=-0.5:saturation=0.5,scale=800:-1 -an KTH-Final-0TbZXdhqvA-640.mp4
ffmpeg -y -i 2020-05-12_08-14-26.mp4 -filter:v "crop=760:420:0:0" out.mp4; mplayer out.mp4

Credits

About

Dense optical flow detection using OpenCV's Gunnar Farneback’s algorithm. An example is included: taking a video showing a crowd in movement, the people movement can be described with a set of vectors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published