Why am I encountering this error while running YOLOv5 in Docker, and how can I resolve it? please bb
root@1eedc933a7f6:~/catkin_ws/src/yolov5_ros/launch# roslaunch yolov5_ros yolov5.launch
... logging to /root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/roslaunch-1eedc933a7f6-1525.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
process[detect-1]: started with pid [1550]
No protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/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.
[detect-1] process has died [pid 1550, exit code -6, cmd /root/catkin_ws/devel/lib/yolov5_ros/detect.py name:=detect log:=/root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/detect-1.log].
log file: /root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/detect-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
Why am I encountering this error while running YOLOv5 in Docker, and how can I resolve it? please bb
root@1eedc933a7f6:~/catkin_ws/src/yolov5_ros/launch# roslaunch yolov5_ros yolov5.launch ... logging to /root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/roslaunch-1eedc933a7f6-1525.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://1eedc933a7f6:39731/
SUMMARY
PARAMETERS
NODES / detect (yolov5_ros/detect.py)
ROS_MASTER_URI=http://localhost:11311
process[detect-1]: started with pid [1550] No protocol specified qt.qpa.xcb: could not connect to display :1 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/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.
[detect-1] process has died [pid 1550, exit code -6, cmd /root/catkin_ws/devel/lib/yolov5_ros/detect.py name:=detect log:=/root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/detect-1.log]. log file: /root/.ros/log/0fdf95f6-7a15-11ee-8153-0242ac110002/detect-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done