flytocc / pyqt5-cv2-multithreaded

基于pyqt5和opencv的多线程图像(视频)处理
74 stars 24 forks source link

pause / resume #3

Open haviduck opened 3 years ago

haviduck commented 3 years ago

hey were you ever able to solve thread pause and resume?

haviduck commented 3 years ago

solved by doing a while self.ispaused: time.sleep(0) in capturethread and updating a class variable from cameraviews pause/start.

wlzxzq commented 3 years ago

solved by doing a while self.ispaused: time.sleep(0) in capturethread and updating a class variable from cameraviews pause/start.

Hey the gui will die while the video file ends. How you deal

haviduck commented 3 years ago

solved by doing a while self.ispaused: time.sleep(0) in capturethread and updating a class variable from cameraviews pause/start.

Hey the gui will die while the video file ends. How you deal

if you use a file, you can check amount of frames and make a "reset". i can write some pseudo for you if you want?

wlzxzq commented 3 years ago

通过 while self.ispaused: time.sleep(0) 在捕获线程中执行并从相机视图暂停/开始更新类变量来解决。

嘿 ,当视频文件结束时,gui 会死。你如何处理

如果您使用文件,则可以检查帧数并进行“重置”。如果你愿意,我可以为你写一些伪代码吗?

OK! Also tell me your code so that I can know what you have done about the code!

haviduck commented 3 years ago

sure, been a bit since ive played with it but i think i stored the repo. i added quite a few other features, allowing you to click on a detected objects roi and study it via that pyqtgraph lib and superres, grabcut, tracking etc. should i just share the whole thing?

wlzxzq commented 3 years ago

当然,自从我玩过它以来有点,但我想我存储了回购。我添加了很多其他功能,允许您点击检测到的对象 roi 并通过 pyqtgraph lib 和 superres、grabcut、tracking 等研究它。我应该分享整个事情吗?

As you have seen the code, its function is not full, Maybe the auther forget it. i will appreciate If you share me, you can tell me by the email(3220195118@bit.edu.cn).

haviduck commented 3 years ago

当然,自从我玩过它以来有点,但我想我存储了回购。我添加了很多其他功能,允许您点击检测到的对象 roi 并通过 pyqtgraph lib 和 superres、grabcut、tracking 等研究它。我应该分享整个事情吗?

As you have seen the code, its function is not full, Maybe the auther forget it. i will appreciate If you share me, you can tell me by the email(3220195118@bit.edu.cn).

sure, gonna finish a sprint then get right on it

haviduck commented 3 years ago

i thiiiink this should be enough. https://gist.github.com/haviduck/1f3834a8129385d7cb8bcf8af1e3588d