Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error error: template argument 1 is invalid Ptr<FarnebackOpticalFlow> cv::cuda::FarnebackOpticalFlow::create #3768

Open
nwpuclydewang opened this issue Jul 14, 2024 · 1 comment

Comments

@nwpuclydewang
Copy link

nwpuclydewang commented Jul 14, 2024

System information (version)
  • OpenCV => 4.8
  • Operating System / Platform => ubuntu 20.04
Detailed description

compile error

/home/sharedata/opencv_contrib-4.8.0/modules/cudaoptflow/src/farneback.cpp:50:25: error: template argument 1 is invalid
50 | Ptr cv::cuda::FarnebackOpticalFlow::create(int, double, bool, int, int, int, double, int) { throw_no_cuda(); return Ptr(); }
| ^
/home/sharedata/opencv_contrib-4.8.0/modules/cudaoptflow/src/farneback.cpp:50:27: error: no declaration matches 'int cv::cuda::FarnebackOpticalFlow::create(int, double, bool, int, int, int, double, int)'
50 | Ptr cv::cuda::FarnebackOpticalFlow::create(int, double, bool, int, int, int, double, int) { throw_no_cuda(); return Ptr(); }

@cudawarped
Copy link
Contributor

  • OpenCV => 4.8

Update to the latest version of OpenCV and try again. If you still have issues post your CMake arguments and configuration output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants