py-denseflow
py-denseflow copied to clipboard
No attribute error.
First of all, that code is very useful. Thanks a lot for that. Secondly, I had a look over your code. I am implementing Video Classification task over a data set named UCF101. I was able to store the frames successfully. However, it throws error while creating an instance of DualOpticalFlow_TVL1 module.
Module 'cv2.cv2' has no attribute 'createOptFlow_DualTVL1'
I have all the packages installed and updated. Did you face this error before? If yes, how did you resolve it?
i have same error~
Hi. Any update on this issue? I'm having the same error.
I haven't met this error. I have googled, seems like a version problem. You can have a try.
i have same error~
Hello, everyone !
As the qijiezhao said, the problem is accossiated with the version of opencv-python , your version must be 3.x , try again!
If you (like me) are using cv2 version '4.1.0', then do the following
Replace dtvl1=cv2.createOptFlow_DualTVL1()
with dtvl1=cv2.optflow.DualTVL1OpticalFlow_create()
If you (like me) are using cv2 version '4.1.0', then do the following
Replace dtvl1=cv2.createOptFlow_DualTVL1()
with dtvl1=cv2.optflow.DualTVL1OpticalFlow_create()
This worked for me. Thank you