-
Notifications
You must be signed in to change notification settings - Fork 137
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
yolo预测和视频播放是两个线程吗? #16
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,大佬您的代码写的很好,我有几个问题想问您。我看Mainwindow只开了一个线程,相当于视频播放和yolo预测放在一个线程去做吗,如果用cpu预测的话不能满足实时性要求,播放会很卡(我用的cv2读的视频),那我目前的思路是两个:就是分两个线程去做,一个用于播放,一个用于预测,但是信号emit的图片我不太确定怎么写,因为2张图片要叠一起,我的展示框只有1个。还有一个思路就是yolo1秒钟预测几帧就行,这样预测和播放写一个线程就行了。是不是可以用第二种哈哈哈。
我看大佬yolo线程中的run是这么写的
batch = next(self.dataset) # next data
print(batch)
self.batch = batch
请问这个batch是干嘛的呢,不是cv2读了cap 就可以model预测了吗
The text was updated successfully, but these errors were encountered: