调用opencv发现The function is not implemented错误

2,084 阅读1分钟

今天在调用opencv的时候发现了一个错误,如下图 显示如下:

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'

image.png 解决的方法是安装opencv-contrib-python库

pip install opencv-contrib-python