opendetection
opendetection copied to clipboard
Compilation for only CPU mode
I want to compile the library for a plain CPU . Installation asks for Opencv_contrib with CUDA support.
Scanning dependencies of target od_common [ 30%] [ 32%] [ 34%] Building CXX object common/CMakeFiles/od_common.dir/pipeline/ObjectDetector.cpp.o [ 36%] Building CXX object common/CMakeFiles/od_common.dir/pipeline/ODScene.cpp.o Building CXX object common/CMakeFiles/od_common.dir/utils/utils.cpp.o Building CXX object common/CMakeFiles/od_common.dir/utils/ODFeatureDetector2D.cpp.o In file included from open_detection/opendetection/common/utils/ODFeatureDetector2D.cpp:6:0: open_detection/opendetection/common/utils/ODFeatureDetector2D.h:16:38: fatal error: opencv2/cudafeatures2d.hpp: No such file or directory #include <opencv2/cudafeatures2d.hpp> ^ compilation terminated. make[2]: *** [common/CMakeFiles/od_common.dir/utils/ODFeatureDetector2D.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [common/CMakeFiles/od_common.dir/all] Error 2 make: *** [all] Error 2
Any hack around this ?
Hi kushal, If go through the code base of OD many of the functions require cuda support and moreover you also need to install opencv along with cudafeatures2d .
Since CUDA is one of the dependancy, so you will be needing:
-
A CUDA-capable GPU
-
A supported version of Microsoft Windows
-
A supported version of Microsoft Visual Studio
-
the NVIDIA CUDA Toolkit (available at http://developer.nvidia.com/cuda-downloads)
You can get more information here: http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#ixzz4cVj6ykqx