[英]OpenCV cv2.imshow is not working because of the qt
I am having a problem that I can not use cv2.imshow()
because of following error message由于以下错误消息,我遇到了无法使用cv2.imshow()
的问题
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in "" qt.qpa.plugin:在“”中找不到Qt平台插件“cocoa”
This application failed to start because no Qt platform plugin could be initialized.此应用程序无法启动,因为无法初始化 Qt 平台插件。 Reinstalling the application may fix this problem.重新安装应用程序可能会解决此问题。
Last Macbook I was using initially did not have QT so I have no idea how should I deal with it.我最初使用的最后一台 Macbook 没有 QT,所以我不知道我应该如何处理它。
Any ideas?有任何想法吗?
I had the same issue after updating opencv - python to 4.2.0.32
.将opencv - python to 4.2.0.32
更新opencv - python to 4.2.0.32
后,我遇到了同样的问题。
Uninstall opencv-python
and install the lower version (eg pip install opencv-python==4.1.0.25
) solves this issue.卸载opencv-python
并安装较低版本(例如pip install opencv-python==4.1.0.25
)解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.