错误信息 error: (-2:unspecified error) the function is not implemented 通常表示你尝试调用的某个函数在当前的环境中未实现或不可用。这个错误常见于OpenCV库中,尤其是当你尝试使用图形显示功能(如cv2.imshow)时,但相应的库没有正确配置以支持这些功能。 可能的原因 使用了不支持图形界面的OpenCV版本:如果你安装...
早上为了insightface安装了一些依赖,包括VisualStudio 晚上运行,imshow函数报错 解决: 按照网上方法,安装opencv-contrib-python,发现已安装,无效(opencv报错The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support-CSDN博客) 尝试重装opencv,卸载过程pip报错PermissionError: [WinEr...
在python中调用cv2.imshow,出现这个一个报错: cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1268: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on U...
今天在折腾mediapipe的时候,一直遇见一个报错,怎么调整都是cv2.imshow这一句报错, 报错内容: The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. 以前曾经用过这个第三方包,并没有出现这种情况。我思考了很久,发现唯一不同的就是我的OpenCV版本变了,之前使用的是Ope...
OpenCV Error: Unspecified error (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) ...
cv2.imshow('input',img)cv2.error:/io/opencv/modules/highgui/src/window.cpp:545:error:(-2)The functionisnot implemented.Rebuild thelibrarywithWindows,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 scriptinfunctio...
File"x01export_FasterRCNN_onnx.py", line 30,in<module>cv2.imshow("win", image) cv2.error: OpenCV(4.6.0) /io/opencv/modules/highgui/src/window.cpp:1267: error: (-2:Unspecified error) The functionisnotimplemented. Rebuild the library with Windows, GTK+ 2.xorCocoa support. If you are...
Thefunction is not implemented. Rebuild the library with Windows, GTK+ 2.x orCarbon support. If you are on Ubuntu or Debian, install libgtk2.0‑dev and pkg‑config, then re‑runcmake or configure script 这就是网上编译好的opencv包在编译的过程中设置的选项可能和你当前需求不一样,解决方法...
cv2.imshow("win", image) cv2.error: OpenCV(4.6.0) /io/opencv/modules/highgui/src/window.cpp:1267: 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 ...
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...