File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
ch02-安装OpenCV/最简单-使用pip安装opencv-python和opencv-contrib-python Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
- source .cv2/bin/activate
6
6
- pip install opencv-python
7
7
- pip install matplotlib
8
- - 验证 python -c "import cv2;print(cv2.__ version__ ,cv2.__ doc__ ,cv2.__ file__ )"
8
+ - 验证
9
+ - python -c "import cv2;print(cv2.__ version__ ,cv2.__ doc__ ,cv2.__ file__ )"
9
10
10
11
11
12
## 安装 opencv-contrib-python
12
13
强烈建议先卸载opencv-python
13
14
- pip uninstall opencv-python
14
15
- pip install opencv-contrib-python
15
- - 验证 python -c "import cv2;print(cv2.__ version__ ,cv2.__ doc__ ,cv2.__ file__ )"
16
- - 验证 python -c "import cv2;print(print(help(cv2.CascadeClassifier))"
16
+ - 验证
17
+ - python -c "import cv2;print(cv2.__ version__ ,cv2.__ doc__ ,cv2.__ file__ )"
18
+ - python -c "import cv2;print(help(cv2.CascadeClassifier))"
17
19
18
20
##
19
21
软件包包含预编译的OpenCV二进制文件和Python绑定。
You can’t perform that action at this time.
0 commit comments