http://blog.csdn.net/nbadwde/article/details/72898396
前面没啥说的
cmake -DOPENCV_EXTRA_MODULES_PATH=~/opencv-3.2.0/opencv_contrib-3.2.0/modules/ ~/opencv-3.2.0/
or
sudo cmake -DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv-3.2.0/opencv_contrib-3.2.0/modules/ ..
sudo make -j6
sudo make install
在make出现 nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). 这个警告。则可以使用-DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets 来消除警告。
运行测试。
我是用python+opencv的,我这里直接运行opencv自带的python的例子程序
cd <opencv3.1.0_dir>/samples/python/
python asift.py
前面没啥说的
cmake -DOPENCV_EXTRA_MODULES_PATH=~/opencv-3.2.0/opencv_contrib-3.2.0/modules/ ~/opencv-3.2.0/
or
sudo cmake -DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv-3.2.0/opencv_contrib-3.2.0/modules/ ..
sudo make -j6
sudo make install
在make出现 nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). 这个警告。则可以使用-DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets 来消除警告。
运行测试。
我是用python+opencv的,我这里直接运行opencv自带的python的例子程序
cd <opencv3.1.0_dir>/samples/python/
python asift.py