Adjusted eye landmark display threshold.
This commit is contained in:
parent
84c81f6938
commit
44d97a967c
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue