Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use DualTLV1Optical Flow in python ?

I have OpenCV installed but can't seem to import the DualTLV1OpticalFlow https://docs.opencv.org/3.3.0/dc/d47/classcv_1_1DualTVL1OpticalFlow.html

import cv2
optical_flow = cv2.DualTVL1OpticalFlow_create()

Gives me the error message

AttributeError: module 'cv2' has no attribute 'DualTVL1OpticalFlow_create'

How to use DualTLV1Optical Flow in python ?

I have OpenCV installed but can't seem to import the DualTLV1OpticalFlow https://docs.opencv.org/3.3.0/dc/d47/classcv_1_1DualTVL1OpticalFlow.html

import cv2
optical_flow = cv2.DualTVL1OpticalFlow_create()

Gives me the error message

AttributeError: module 'cv2' has no attribute 'DualTVL1OpticalFlow_create'

Is there a way to install it if i already have OpenCV installed ? I got an error message

conda install -c michael_wild opencv-contrib

Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict: - opencv-contrib -> python[version='>=3.6,<3.7.0a0'] - python=3.5 Use "conda info <package>" to see the dependencies for each package.