zoukankan      html  css  js  c++  java
  • cv2.videocapture()失败,无法读取视频

    原因:缺少ffmpeg的支持

    解决:一般opencv3.3版本及以上支持ffmpeg,实验4.1.0成功

    pip install opencv-python
    pip install opencv-contrib-python

     如果出现以下问题,则是由于libsm包为安装

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib64/python2.7/site-packages/cv2/__init__.py", line 9, in <module>
        from .cv2 import *
    ImportError: libSM.so.6: cannot open shared object file: No such file or directory
  • 相关阅读:
    POJ 2136
    POJ 2121
    POJ 2127
    POJ 2126
    POJ 2109
    POJ 2105
    POJ 2101
    POJ 2075
    Uboot — 配置过程
    Uboot — 编译体验
  • 原文地址:https://www.cnblogs.com/haiyang21/p/11225060.html
Copyright © 2011-2022 走看看