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

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

    For me (Arch Linux, Anaconda with Python 3.6), installing from the suggested channels menpo or loopbio did not change anything. My solution (see related question) was to

    1. install pkg-config (sudo pacman -Syu pkg-config),
    2. remove opencv from the environment (conda remove opencv) and
    3. re-install opencv from the conda-forge channel (conda install -c conda-forge opencv)

    conda list now returns opencv 3.3.0 py36_blas_openblas_203 [blas_openblas] conda-forgeand all windows launched using cv2 are working fine.

提交回复
热议问题