美文网首页
Rebuild the library with Windows

Rebuild the library with Windows

作者: 每天必吃香菜 | 来源:发表于2019-12-27 11:19 被阅读0次

    python的报错如下:

    Traceback (most recent call last):

      File "main.py", line 26, in <module>

        cv2.imshow('chip_'+str(i), chip)

    cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:651: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'

    解决方法:

    pip install opencv-contrib-python

    相关文章

      网友评论

          本文标题:Rebuild the library with Windows

          本文链接:https://www.haomeiwen.com/subject/uiaroctx.html