Installation Error reported by opencv-3.4.0:
fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
Solution:
1. Find the file and path:
$: find . -name “cuda.hpp”
File found: ./ opencv-3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp
2. Find the full path of the above file and replace the location code referencing cuda.hpp in the error file
Note: the test is successful
1. Two files refer to the cuda.hpp file, so it needs to be modified twice. You can back up the wrong file before changing it
2. Install opencv and the corresponding OpenCV_When creating a contrib file, you can directly open cv_All files in contrib are copied to the opencv folder, and there will be no overwrite problem
Similar Posts:
- AttributeError: module ‘cv2’ has no attribute ‘SIFT’ [How to Solve]
- Consider using the `–user` option or check the permissions.
- [Solved] Lego-loam Error: opencv fatal error: cv.h: No such file or directory
- Opencv learning notes 05 face detection and recognition attributeerror: module ‘CV2’ has no attribute ‘face’
- [record a problem] Linux + opencv + cuvid decodes 1080p video. When using CUDA kernel function, it will crash
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’
- Ubuntu 18.04: How to Install & Configure Opencv 4.2.0
- [Solved] ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
- Makefile:160: recipe for target ‘all’ failed (Ubuntu 16.06 + Opencv3.2) [Solved]
- How to Solve Opencv error: assertion failed + error: (- 215)