安装opencv并测试安装成功

参考链接: 从https://pypi.org 网站安装 opencv-python 4.4.0.46
参考链接: Install OpenCV-Python in Windows

使用pip安装: pip install opencv-python

验证安装成功:

Microsoft Windows [版本 10.0.18363.1256]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\chenxuqi>conda activate ssd4pytorch1_2_0

(ssd4pytorch1_2_0) C:\Users\chenxuqi>pip install opencv-python
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: opencv-python in d:\anaconda3\envs\ssd4pytorch1_2_0\lib\site-packages (4.4.0.46)
Requirement already satisfied: numpy>=1.14.5 in d:\anaconda3\envs\ssd4pytorch1_2_0\lib\site-packages (from opencv-python) (1.18.5)

(ssd4pytorch1_2_0) C:\Users\chenxuqi>python
Python 3.7.7 (default, May  6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> print(cv.__version__)
4.4.0
>>>
>>>

你可能感兴趣的:(opencv-python,4.4.0.46,学习笔记)