From 696676350aaf9b288b7a06a8b0caf46e8a7c7a9b Mon Sep 17 00:00:00 2001 From: Dmitry Gryaznov <53191191+millcake666@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:45:41 +0500 Subject: [PATCH] wip --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e658326..336595d 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ webcam = cv2.VideoCapture(0) time_to_show = 10 # sec +pos_calib = 0.6 dir_path = r'logo_new_scaled' filenames = list(walk(dir_path))[0][2] @@ -64,11 +65,11 @@ if pos is None: # "Blinking" pass - elif pos <= 0.6: + elif pos <= pos_calib: # "Looking right" logos_time[r2] += perf_counter() - time_old time_old = perf_counter() - elif pos > 0.6: + elif pos > pos_calib: # "Looking left" logos_time[r1] += perf_counter() - time_old time_old = perf_counter()