py-denseflow icon indicating copy to clipboard operation
py-denseflow copied to clipboard

No attribute error.

Open rvsingh31 opened this issue 5 years ago • 7 comments

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?

rvsingh31 avatar Feb 27 '19 03:02 rvsingh31

i have same error~

samsara1995 avatar Mar 08 '19 09:03 samsara1995

Hi. Any update on this issue? I'm having the same error.

agapiR avatar May 07 '19 22:05 agapiR

I haven't met this error. I have googled, seems like a version problem. You can have a try.

qijiezhao avatar May 15 '19 15:05 qijiezhao

i have same error~

ZWJ-here avatar May 16 '19 09:05 ZWJ-here

Hello, everyone ! As the qijiezhao said, the problem is accossiated with the version of opencv-python , your version must be 3.x , try again! 图片

MrCuiHao avatar Jun 05 '19 08:06 MrCuiHao

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()

holmdk avatar Jul 30 '19 09:07 holmdk

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

reubencmoyo avatar Dec 11 '19 08:12 reubencmoyo