《LearnPython-Python学习笔记》-opencv使用nonfree模块

admin 2025-11-07 01:10:59 编程 来源:ZONE.CI 全球网 0 阅读模式

    方法有2:

    1. 使用源代码CMake编译
    2. 使用低版本opencv模块

    本文主要记录方法2。3.4.2.16是最后一个支持nonfree模块的opencv库

    1. 卸载旧版本opencv

      1. pip uninstall opencv-python
      2. pip uninstall opencv-contrib-python
    2. opencv 3.4.2.16版本最多支持到python 3.6版本,需要创建虚拟环境

      1. conda install nb_conda
      2. conda create -n opencvnonfree python=3.6
      3. conda activate opencvnonfree
    3. 安装所需的库 ```powershell pip install numpy pip install pandas pip install setuptools pip install —ignore-installed six pip install python-dateutil pip install jupyter

    conda install imutils conda install scikit-image conda install —upgrade jupyterthemes

    ref: https://blog.csdn.net/qq_26870933/article/details/88211711 https://blog.csdn.net/qq_30565883/article/details/79444750 https://www.zhihu.com/question/40012144

    1. 4. 安装opencv库
    2. ```powershell
    3. pip install opencv-python==3.4.2.16
    4. pip install opencv-contrib-python==3.4.2.16
    5. ref:
    6. https://blog.csdn.net/cliukai/article/details/102525486
    1. 打开jupyter notebook

    opencv使用nonfree模块 - 图1

    附上方法1的链接:https://opencv.org/releases/#https://sourceforge.net/projects/opencvlibrary/https://pypi.org/project/opencv-contrib-python/#fileshttps://xugaoxiang.com/2019/12/18/windows-10-cuda-cudnn/

    以太坊cppgolang区别 编程

    以太坊cppgolang区别

    以太坊是一种去中心化的开源平台,它采用智能合约技术,旨在构建和运行不受干扰的分布式应用程序。作为目前最受欢迎的区块链平台之一,以太坊提供了多种编程语言的支持,其
    progolang 编程

    progolang

    Go语言(Golang)是由Google开发的一门静态类型编程语言。作为一名专业的Golang开发者,我深知这门语言的优势和特点。在本文中,我将介绍Golang
    golangn个发送者 编程

    golangn个发送者

    Golang是一种开源的编程语言,由Google团队开发,旨在提高程序的并发性和简化软件开发过程。在Go语言中,有时需要向多个接收者发送信息。本文将介绍如何在G
    golang技能图谱 编程

    golang技能图谱

    从互联网行业的快速发展到人工智能技术的日益成熟,各种编程语言也应运而生。而在这众多的编程语言中,Golang(即Go)作为一门强大且高效的开发语言备受关注。Go
    评论:0   参与:  0