google-deepmind / kinetics-i3d

Convolutional neural network model for video classification trained on the Kinetics dataset.
Apache License 2.0
1.74k stars 461 forks source link

Calculation of TV L1 flow #120

Open elpabos opened 2 years ago

elpabos commented 2 years ago

I tried to use the DualTVL1OpticalFlow_create from opencv but it is not available at the latest version of cv2. Then, I tried to import cv2.optflow.DualTVL1OpticalFlow and, despite I can do it, I got an error when I calculated the flow.

cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv_contrib\modules\optflow\src\tvl1flow.cpp:415: error: (-215:Assertion failed) I0.type() == CV_8UC1 || I0.type() == CV_32FC1 in function 'cv::optflow::OpticalFlowDual_TVL1::calc'

Can someone help me, please?

leenas233 commented 2 years ago

hello ,I am a beginner. I wonder how to get the optical flow datasets. are there any websites to download the dataset or should I process the raw video to get the optical flow data? Thanks a lot!