From 44d97a967c701ecedc34b52532cd6e5eb2e82a07 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Sat, 11 Sep 2021 15:56:25 +0200 Subject: [PATCH] Adjusted eye landmark display threshold. --- facetracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facetracker.py b/facetracker.py index 96c4ad3..803359b 100644 --- a/facetracker.py +++ b/facetracker.py @@ -305,9 +305,9 @@ try: packet.extend(bytearray(struct.pack("f", x))) if not log is None: log.write(f",{y},{x},{c}") - if pt_num == 66 and (f.eye_blink[0] < 0.30 or c < 0.30): + if pt_num == 66 and (f.eye_blink[0] < 0.30 or c < 0.20): continue - if pt_num == 67 and (f.eye_blink[1] < 0.30 or c < 0.30): + if pt_num == 67 and (f.eye_blink[1] < 0.30 or c < 0.20): continue x = int(x + 0.5) y = int(y + 0.5)