【发布时间】:2023-02-18 19:56:39
【问题描述】:
我正在尝试从 Docker 容器中的 Nvidia Jetson Nano 对网络摄像头流上的 yolov5 模型进行推理。在我的 Windows PC 和 Jetson 上,我都收到错误:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.10/site-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.
Aborted
Dockerfile 看起来像这样:
FROM python:latest
WORKDIR /yolov5_aiss
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY ./app ./app
RUN apt-get update -y
RUN apt-get install -y ffmpeg libsm6 libxext6 -y
RUN apt install -y libxkbcommon-x11-0
CMD ["python", "./app/detect.py", "--weights","./app/weights/best.pt", "--source", "0"]
【问题讨论】:
标签: python docker yolov5 xcb nvidia-jetson-nano