-
Notifications
You must be signed in to change notification settings - Fork 235
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
fatal error: opencv2/xfeatures2d.hpp: No such file or directory #3
Comments
see this issue opencv/opencv_contrib#1301 |
Hi, The same issue has occurred to me. But i dont the xfeaures2d module as my application is not on that. How could i disable this? Please suggest me with a solution Thanks and regards! |
@AmbatiHemasree -DBUILD_opencv_xfeatures2d=OFF |
The xfeatures2d.hpp file is in the OpenCV contrib repository, so I guess you need to install the OpenCV library with the modules in the OpenCV contrib repository. Check this link for installation guidance: |
You need to download the opencv_contrib package and reinstall opencv Note: if you already have OpenCV installed, then do from step 2. In step 3, your build directory might already have files, you can delete them
|
On Ubuntu 20.10 the |
Intentionally keeping this thread open to help new students. Though we encourage such user-specific issues to be raised on the Knowledge hub so that our experienced mentors can chime-in and new students can also learn from the discussion thread. Thanks, @jeffreyantony, and @Nuri-benbarka for pointing out the missing step |
Thanks for sharing. It works for me at Ubuntu 18.04 <3 |
I installed opencv4.1.0 but when I ran the project, I couldn't find xfeatures2d.hpp.
the error is
What should I do?
The text was updated successfully, but these errors were encountered: