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

后端 未结 14 750
佛祖请我去吃肉
佛祖请我去吃肉 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:45

    For my system (Ubuntu 18.04) the following was working.
    First:

    sudo apt-get update -y

    sudo apt-get install -y libgtk2.0-dev

    conda create -n py35 python=3.5

    conda activate py35

    Then configure the environment

    pip install Cython

    pip install scikit-build

    conda install -c anaconda cmake

    pip install dlib

    pip install face_recognition

    pip install imutils

    And finally:

    pip install opencv-contrib-python

提交回复
热议问题