OpenCV not working properly with python on Linux with anaconda. Getting error that cv2.imshow() is not implemented

后端 未结 14 737
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 09:24

This is the exact error that I am getting. My OS is Ubuntu 16.10.

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with

相关标签:
14条回答
  • 2020-12-02 09:57

    0 讨论(0)
  • 2020-12-02 09:58

    If you are running inside docker then you may get this error.Solution uninstall current and install the headless one

    pip install opencv-python==3.4.5.20

    pip install opencv-contrib-python==3.4.5.20

    If you are writing to the image and displaying it, you may need the following

    apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender1

    And if you are wondering how to get the display from Docker, it is possible via X11 in your host

    0 讨论(0)
提交回复
热议问题