Skip to content

Commit

Permalink
Increase display window size
Browse files Browse the repository at this point in the history
  • Loading branch information
prouast committed Nov 16, 2024
1 parent ce1d34f commit 7cdbf5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7cdbf5d

Please sign in to comment.