File tree Expand file tree Collapse file tree
ch02-安装OpenCV/最简单-使用pip安装opencv-python和opencv-contrib-python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55- source .cv2/bin/activate
66- pip install opencv-python
77- 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__ )"
910
1011
1112## 安装 opencv-contrib-python
1213强烈建议先卸载opencv-python
1314- pip uninstall opencv-python
1415- 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))"
1719
1820##
1921软件包包含预编译的OpenCV二进制文件和Python绑定。
You can’t perform that action at this time.
0 commit comments