首先安装好了opencv后,运行以后跳出来: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'
这样子的错误。一查资料发现好像得先安装两个库
https://blog.csdn.net/hy13684802853/article/details/83343093
https://blog.csdn.net/weixin_44684139/article/details/104837210
当然了,我把能安装的库全装上了,不过在这之前要先卸载opencv
https://blog.csdn.net/haoqimao_hard/article/details/82049565
然后按照第二条连接:
https://blog.csdn.net/weixin_44684139/article/details/104837210
再安装一遍就好了(这里要注意的是按照第二条连接安装后