This commit is contained in:
light
2018-07-05 13:35:20 +08:00
parent aa85a9e03e
commit 795ad3e9c8
7 changed files with 139 additions and 21 deletions
+4 -2
View File
@@ -8,7 +8,7 @@
## ubuntu
``` bash
unzip opencv-3.4.0.zip
unzip opencv-3.3.0.zip
cd opencv
sudo apt install cmake
@@ -19,7 +19,7 @@ cd my_build
## cmake 中会下载安装一个大文件,网速会很慢
cmake -D CMAKE_BUILD_TYPE=Release \
-D OPENCV_EXTRA_MODULES_PATH=/home/lab_01/program/opencv_contrib-3.3.0/modules \
-D OPENCV_EXTRA_MODULES_PATH=/home/lab/program/opencv_contrib-3.3.0/modules \
-D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make
@@ -55,6 +55,8 @@ make
# and you will see yourself
# compete
# sudo pip install numpy opencv-python
```