Javacr / PyQt5-YOLOv5

PyQt5 implementation of YOLOv5 GUI
GNU General Public License v3.0
1.3k stars 220 forks source link

ubuntu下运行窗口时,摄像头开启错误 #35

Open zmhcasmy opened 1 year ago

zmhcasmy commented 1 year ago

当我尝试在ubuntu下使用v6.1界面,图片检测能够正常进行,但是在我使用摄像头时,程序自动弹出一个界面,并出现错误,请问我该如何解决这个问题 。

错误: bucmjetson@ubuntu:~/PyQt5-YOLOv5$ python3 main.py /usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (3.0.4) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported " YOLOv5 🚀 ea2477d torch 1.11.0 CUDA:0 (Xavier, 6855MiB)

Fusing layers... Model Summary: 213 layers, 7042489 parameters, 0 gradients, 15.9 GFLOPs

(python3:350354): GLib-CRITICAL **: 11:36:26.231: g_main_context_push_thread_default: assertion 'acquired_context' failed QObject::killTimer: Timers cannot be stopped from another thread QObject::startTimer: Timers cannot be started from another thread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QBasicTimer::start: QBasicTimer can only be used with threads started with QThread QObject::killTimer: Timers cannot be stopped from another thread QObject::startTimer: Timers cannot be started from another thread QObject::killTimer: Timers cannot be stopped from another thread QObject::startTimer: Timers cannot be started from another thread

错误截图:

zmhcasmy commented 1 year ago

Screenshot from 2023-03-18 11-55-33

Qizong-Lu commented 1 year ago

i got the same problem, what should i do?

wanxinqq commented 1 year ago

蹲一个解决结果

Qizong-Lu commented 1 year ago

实在不行,换一个吧 https://github.com/xugaoxiang/yolov5-pyqt5.git

RyanLai1 commented 1 year ago

蹲,请问有解决方案了吗,我也是在win下跑起来了,到arm的Ubuntu下就这样了