Python 无法加载Qt平台插件(在对接应用程序时)
我使用opencv和迁移学习模型(resnetSSD)构建了一个人脸检测应用程序。 应用程序输出:视频将打开,模型将能够识别人脸 应用程序在我的本地系统中运行良好。。也可以构建docker,但在运行下面的docker容器时,我会得到以下错误:Python 无法加载Qt平台插件(在对接应用程序时),python,docker,qt,opencv,face-recognition,Python,Docker,Qt,Opencv,Face Recognition,我使用opencv和迁移学习模型(resnetSSD)构建了一个人脸检测应用程序。 应用程序输出:视频将打开,模型将能够识别人脸 应用程序在我的本地系统中运行良好。。也可以构建docker,但在运行下面的docker容器时,我会得到以下错误: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.6/dist-packages/cv2/qt/plug
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.6/dist-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
请建议我如何解决这个问题???没有docker我也有同样的问题-但我不记得我做了什么来解决它。我不确定是重新安装了
cv2
还是安装了更新的PyQt5
还是帮助安装了PyQt6