Commit b31d8fd7 authored by Fernando P.I.S.P's avatar Fernando P.I.S.P

Update main.py

parent bad697fa
......@@ -5,7 +5,7 @@ import time
# Variables
COUNTER = 0
TOTAL_BLINKS = 0
TOTAL_count = 0
CLOSED_EYES_FRAME = 3
TOTAL_COUNTS=0
cameraID = 0
......@@ -73,13 +73,13 @@ while True:
# print("blink")
else:
TOTAL_BLINKS += 1
TOTAL_count += 1
COUNTER = 0
TOTAL_COUNTS+=1
cv.putText(image, f'Total Time in screen: {SECONDS}', (175, 17),m.fonts, 0.5, m.ORANGE, 2)
cv.putText(image, f'Total Time out of screen: {TOTAL_BLINKS}', (175, 37),m.fonts, 0.5, m.ORANGE, 2)
cv.putText(image, f'Total Time out of screen: {TOTAL_count}', (175, 37),m.fonts, 0.5, m.ORANGE, 2)
#cv.putText(image, f'Total count of out of screen: {18}', (170, 67),m.fonts, 0.5, m.ORANGE, 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment