Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you need the opencv_contrib modules, it is in:

cv2.optflow.DualTVL1OpticalFlow_create()

see https://docs.opencv.org/master/dc/d4d/classcv_1_1optflow_1_1DualTVL1OpticalFlow.html#a6a86c0b4c94c589ebc55d28da803fa60

as of current opencv 4, you need the opencv_contrib modules, it is in:

cv2.optflow.DualTVL1OpticalFlow_create()

see https://docs.opencv.org/master/dc/d4d/classcv_1_1optflow_1_1DualTVL1OpticalFlow.html#a6a86c0b4c94c589ebc55d28da803fa60

(3.3 does not seem to have python bindings for this at all)