kinetics-i3d icon indicating copy to clipboard operation
kinetics-i3d copied to clipboard

could you release the code to extract optical flow?

Open hjeun opened this issue 6 years ago • 2 comments

do I need to normalize RGB images to [0,1] from [0,255] before calculate optical flow? I will follow the code here. https://github.com/opencv/opencv/blob/master/samples/gpu/optical_flow.cpp And 'd_flow' is only output of TVL1. how to split dx_flow and dy_flow?

hjeun avatar Jun 22 '18 12:06 hjeun

Hi,

from the person who wrapped TVL-1 at google: (...) "we truncate large motions at +/- 20 pixels along each dimension and then quantize values to 256 buckets using a linear map from [-20, 20] to [0, 255]."

joaoluiscarreira avatar Jun 25 '18 15:06 joaoluiscarreira

convert_to_flow.ipynb.zip Hi, this is the .ipynb file to extract the flows from the images. This file extract images from videos and then convert frames to optical flow files.

jahab avatar Nov 22 '19 12:11 jahab