I built both OpenCV and OpenCV-contrib from source using CMake-GUI to use the NVIDIA OpticalFlow SDK for Python through OpenCV.
I’m using a Windows 10 machine with an RTX 2070 GPU.
Cuda Toolkit version 10.1.243
CuDNN - 10.2
Python version - 3.8
nvof = cv.cuda_NvidiaOpticalFlow_1_0.create(256, 256, 5, False, False, False, 0)
throws the following error -
AttributeError: module ‘cv2’ has no attribute ‘cuda_NvidiaOpticalFlow_1_0’
This is my first time posting a question here, so kindly forgive me for my mistakes. Thanks in Advance.