【发布时间】:2021-08-10 11:24:42
【问题描述】:
我使用 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/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
标签: python docker qt opencv face-recognition