CUDAOPTFLOW fatal error in OPENCV4

Installed opencv4 in linux properly… but on including cudaoptflow.hpp , it gives fatal error: no cudaoptflow found

这说明在安装opencv的时候,你没有启动cuda包的安装,重新安装编译opencv就可以了。
cmake … -DWITH_CUDA=ON