2017-06-02 56 views
0

我想用Anaconda 3從頭構建Open CV3。我試圖在網上找到說明,但無法找到它。如果有人能指出我正確的方向,將不勝感激。Anaconda 3和Open CV3

感謝

+0

哪個平臺? – Bull

+0

如果您使用的是Anaconda 3,爲什麼需要構建而不是'conda install' OpenCV3? – thewaywewere

回答

0

假設它是Linux,要安裝在/富/ OpenCV的OpenCV的,即anaconda3安裝在/富/ anaconda3。這應該做到這一點。

mkdir -p /foo/opencv/src 
cd /foo/opencv/src 
wget https://github.com/opencv/opencv/archive/3.2.0.zip 
unzip 3.2.0.zip 
mkdir build 
cd build 
cmake -DCMAKE_INSTALL_PREFIX:PATH=/foo/opencv \ 
    -DCMAKE_BUILD_TYPE=Release \ 
    -DBuild_opencv_python2=OFF \ 
    -DBuild_opencv_python3=ON \ 
    -DPYTHON3_EXECUTABLE=/foo/anaconda3/bin/python \ 
    -DPYTHON3_INCLUDE_DIR=/foo/anaconda3/include/python3.6m \ 
    -DWITH_1394=OFF -DWITH_VTK=OFF -DWITH_CUDA=OFF -DWITH_OPENMP=ON \ 
    -DWITH_OPENCL=OFF -DWITH_MATLAB=OFF -DBUILD_SHARED_LIBS=ON \ 
    -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF \ 
    ../opencv-3.2.0 
make 
make install