From e8f7eea929de4637f5a4b854fff32719a5bfd0f8 Mon Sep 17 00:00:00 2001 From: Yuichiro Tsuchiya Date: Thu, 8 Apr 2021 23:22:42 +0900 Subject: [PATCH] Fix app.py to avoid infinate loops --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index cf2be37c..37edc9ab 100644 --- a/app.py +++ b/app.py @@ -320,7 +320,7 @@ def transform(self, frame: av.VideoFrame) -> np.ndarray: # are not strictly synchronized. while True: if webrtc_ctx.video_transformer: - result = webrtc_ctx.video_transformer.result_queue.get() + result = webrtc_ctx.video_transformer.result_queue.get(timeout=1.0) labels_placeholder.table(result) else: break