0
A
回答
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
相關問題
- 1. 與Open層3
- 2. anaconda dlib和X11
- 3. Continuum Anaconda和matplotlib
- 4. Anaconda和VirtualEnv
- 5. Keep-bootstrap-3-dropdown-open-when-Click
- 6. anaconda和點雲庫
- 7. anaconda mkl/openplas和IPOPT
- 8. 如何在Spyder(Anaconda 3)上安裝PIL?
- 9. 用於Linux的Anaconda 3沒有surepip?
- 10. SublimeText 3 Anaconda自動完成bug
- 11. 切換到Anaconda和Python後的Python縮進3
- 12. 在Anaconda爲python 3和python 2內核安裝TensorFlow
- 13. Anaconda的環境與Python 3(MacOS的)安裝Pydot和Graphviz的
- 14. Anaconda加速check_cuda()
- 15. Perl open()和grep
- 16. OPEN XML和Powertools
- 17. ACE_SOCK_Dgram :: open()和errno
- 18. LinkedIn和Open Graph
- 19. Wrt。 Anaconda Python 3.4和Cython
- 20. Anaconda和Opencv不打開mp4
- 21. Jupyter筆記本和anaconda
- 22. 使用Mod_wsgi和Anaconda python庫
- 23. pyenv和anaconda問題'export PATH'
- 24. 導入錯誤:Anaconda numpy(numpy和Anaconda已經安裝,virtualenv)
- 25. 解構一個Open Layer 3地圖
- 26. Short Open Tag和<?=
- 27. RStudio和Microsoft R-Open
- 28. 應用open()和fopen()
- 29. 安裝anaconda - 「創建anaconda菜單失敗」
- 30. sublime text + python's anaconda
哪個平臺? – Bull
如果您使用的是Anaconda 3,爲什麼需要構建而不是'conda install' OpenCV3? – thewaywewere