From 7cdbf5de911f890f2de037f2aeb8f66058112857 Mon Sep 17 00:00:00 2001 From: Philipp Rouast Date: Sun, 17 Nov 2024 10:15:56 +1100 Subject: [PATCH] Increase display window size --- examples/live.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/live.py b/examples/live.py index 36d4ce8..1d637bb 100644 --- a/examples/live.py +++ b/examples/live.py @@ -31,7 +31,7 @@ def _draw(frame, vals, display_height, display_width, min_val, max_val, color, t p1 = p2 # Derive dims from roi display_height = (roi[3] - roi[1]) / 2.0 - display_width = (roi[2] - roi[0]) * 0.8 + display_width = (roi[2] - roi[0]) * 1.2 # Draw signal if sig_name in sig: vals = np.asarray(sig[sig_name]) @@ -77,8 +77,8 @@ def run(args): cap = cv2.VideoCapture(0) executor = concurrent.futures.ThreadPoolExecutor(max_workers=1) vl = VitalLensRunnable(method=args.method, api_key=args.api_key) - signal_buffer = MultiSignalBuffer(size=120, ndim=1, ignore_k=['face']) - fps_buffer = SignalBuffer(size=120, ndim=1, pad_val=np.nan) + signal_buffer = MultiSignalBuffer(size=240, ndim=1, ignore_k=['face']) + fps_buffer = SignalBuffer(size=240, ndim=1, pad_val=np.nan) frame_buffer = [] # Sample frames from cv2 video stream attempting to achieve this framerate target_fps = 30.