Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
millcake666 committed Nov 6, 2023
1 parent 80960d9 commit 6966763
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6966763

Please sign in to comment.