DISOptical flow in 4.1?
Hi Everyone, I'm converting some python code from opencv version 3.4 to 4.1. The code uses the DISOpticalFlow algorithm (https://docs.opencv.org/4.1.0/de/d4f/...) but the interface to this class seems to have changed. If anyone has used the DIS optical flow in V4.1 in a python code I would appreciate an example snippet.
Thanks, Dave
can you be a bit more specific ? which errors do you get ? show your code ?
Yes sorry, here is a minimal example that works in 3.4.4.19:
When running this with V4.1 I get:
Traceback (most recent call last): File "dis_minimal.py", line 13, in <module> inst = cv2.optflow.createOptFlow_DIS(cv2.optflow.DISOPTICAL_FLOW_PRESET_MEDIUM) AttributeError: module 'cv2.optflow' has no attribute 'createOptFlow_DIS'
strike the
.optflow
, it was moved into main opencv repo recently.