Advertisement

解决'cvShowImage'及'cv2'问题

阅读量:

问题描述

系统环境为Ubuntu18.04,所使用的集成开发环境为pycharm-professional-2019.2。当在代码中调用cv2.imshow()函数时,程序运行过程中出现了错误提示。

复制代码
 error: -------src-dir-------/opencv-2.4.10/modules/highgui/src/window.cpp:501: error: (-2) The function is not implemented.

    
 Rebuild the library with Windows, GTK+ 2.x or Carbon 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.
    
    
    
    

尽管错误提示中明确指出需要安装libgtk2.0-dev与pkg-config这两个软件包,并声称通过cmake即可解决问题,但实际上操作过程远比描述的更为复杂。

解决方法概述

通过查阅Github[讨论区](https://github

全部评论 (0)

还没有任何评论哟~