美文网首页
Python图像识别-opencv安装

Python图像识别-opencv安装

作者: ssttIsme | 来源:发表于2022-12-08 16:15 被阅读0次

先自行安装好python3及其以上版本
命令行运行

pip3 install opencv-python -i

D:\pythonwork>pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-python
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cf/09/b24c266cd61ddeed101b90c92a26f54d060b06f4a1b102eb891576d6e9e2/opencv_python-4.6.0.66-cp36-abi3-win_amd64.whl (35.6 MB)
     ---------------------------------------- 35.6/35.6 MB 262.9 kB/s eta 0:00:00
Requirement already satisfied: numpy>=1.19.3 in c:\users\ggq\appdata\roaming\python\python39\site-packages (from opencv-python) (1.22.3)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.6.0.66
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the 'c:\program files\python39\python.exe -m pip install --upgrade pip' command.

安装本地opencv
官网
https://opencv.org/


下载
https://opencv.org/releases/

等5s自动下载

双击图标安装

直接点击Extract即可,会自动生成opencv文件夹,无需手动创建

安装完成后如图

相关文章

网友评论

      本文标题:Python图像识别-opencv安装

      本文链接:https://www.haomeiwen.com/subject/xedafdtx.html