美文网首页
python 安装 opencv

python 安装 opencv

作者: VaultHunter | 来源:发表于2017-08-21 17:40 被阅读0次

    安装后遇到问题:ImportError: numpy.core.multiarray failed to import
    解决方法:Numpy与opencv 的版本不匹配,管理员方式启动CMD 并输入pip install -U numpy

    opencv中安装中要注意opencv版本与python的匹配,在用pip解压的过程中,要先用cmd打开Anaconda中lib中site-packages,在使用pip 进行安装。

    读取图片的两种格式
    imread("C:/Users/XYZ/Documents/CodeBlocks/Projekte/Test/test.png")
    imread(C:\Users\XYZ\Documents\CodeBlocks\Projekte\Test\test.png)

    相关文章

      网友评论

          本文标题:python 安装 opencv

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