Skip to content

Commit

Permalink
Adjusted eye landmark display threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianavt committed Sep 11, 2021
1 parent 84c81f6 commit 44d97a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions facetracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ def flush(self):
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)
Expand Down

0 comments on commit 44d97a9

Please sign in to comment.