Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zmhcasmy opened this issue Mar 18, 2023 · 5 comments
Open

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

zmhcasmy opened this issue Mar 18, 2023 · 5 comments

Comments

@zmhcasmy
Copy link

当我尝试在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
Copy link
Author

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

@Qizong-Lu
Copy link

i got the same problem, what should i do?

@wanxinqq
Copy link

蹲一个解决结果

@Qizong-Lu
Copy link

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

@RyanLai1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants