Improve accuracy in drowsy,active and sleeping conditions.
Deep-ghosty opened this issue · 0 comments
Deep-ghosty commented
if(left_blink==0 or right_blink==0):
sleep+=1
drowsy=0
active=0
if(sleep>6):
status="SLEEPING !!!"
color = (255,0,0)
sound_sleep.play()
elif(left_blink==1 or right_blink==1):
sleep=0
active=0
drowsy+=1
if(drowsy>6):
status="Drowsy!"
color = (0,0,255)
# Play the sound file
sound.play()
else:
drowsy=0
sleep=0
active+=1
if(active>6):
status="Active :)"
color = (0,255,0)
##MAKE CHANGES IN THESE CONDITION WITH RESPECT TO CODE TO MAKE THE RECOGNITION MMORE ACCURATE.