- LibZip:
to install on ubuntu
apt-get install libzip-dev
on macbrew install libzip
Please see the opencv-3.1 branch. Many thanks to @victorhcm for the contributions!
$ git clone --recursive http://github.com/yjxiong/dense_flow
$ mkdir build
$ cd build
$ cmake ..
$ make -j
$ ./extract_gpu -f test.avi -x tmp/flow_x -y tmp/flow_y -i tmp/image -b 20 -t 1 -d 0 -s 1 -o dir
- `test.avi`: input video
- `tmp`: folder containing RGB images and optical flow images
- `dir`: output generated images to folder. if set to `zip`, will write images to zip files instead.
The warp optical flow is used in the tsn model
To extract warp flow, use the command
$ ./extract_warp_gpu -f test.avi -x tmp/flow_x -y tmp/flow_y -i tmp/image -b 20 -t 1 -d 0 -s 1 -o dir