Skip to content
Snippets Groups Projects
John Graham's avatar
John Graham authored
Upload New File

See merge request !1
24191ebb
History

mvectest -- motion vector estimation

The mvectest.py program is based on optical flow code by Chuan-en Lin (chuanenlin, Hong Kong) which can be found at https://github.com/chuanenlin/optical-flow.

An initial adaptation was done at https://gitlab.nautilus.optiputer.net/byungheon-jeong/optical-flow_farneback-method by Joseph (Byungheon) Jeong (Calit2 PRP-REU) to output the optical flow imagery alongside the original video.

Jim Davidson (Valley Center Deputy Fire Marshal, HPWREN collaborator) and Hans-Werner Braun (HPWREN) provided more modifications to make it applicable to HPWREN needs. Specifically it outputs angles, velocity and delta velocities into separate raw images files, which can then be processed further.

mvect2video.pl takes the four raw images (color, angles, velocities and delta-velocties) and turns them into an mp4 video. pnmdir2jpg.pl is a support script.

The scripts may use specific directory pointers that should be updated beore using them.

This code is experimental, not guaranteed to produce anything useful, and may fail or require significant changes to work. You may use is at your own risk.