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

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

    I followed this tutorial (OpenCV GTK+2.x error) and did the following. It worked for me :

    1. install the packages : libgtk2.0-dev and pkg-config
    2. cd to your opencv directory
    3. mkdir Release
    4. cd Release
    5. Run the command : cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_GTK=ON -D WITH_OPENGL=ON ..
    6. make
    7. sudo make install

提交回复
热议问题