twozero88 / SunteHo

Detects Distance of the person from the screen and adjustes the volume accordingly
1 stars 1 forks source link

Use pyautogui instead of pynput #2

Open varishtsg opened 4 years ago

varishtsg commented 4 years ago

pynput is kinda broken on linux. on the two systems I tried I am not able to use the media_key_up functions. pyautogui seems to work fine.

varishtsg commented 4 years ago

Have added the code for eye distance based change. #1 For more references check here: https://answers.opencv.org/question/179039/find-distance-between-two-eyes/ https://docs.opencv.org/master/db/d28/tutorial_cascade_classifier.html https://docs.opencv.org/3.4/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498

Max Size may have to be tweaked a bit as per your preference. Have calibrated as per the distance between my camera and my usual seat which is about 2ft or 60 cms.

twozero88 commented 4 years ago

Getting errors in program. Unable to run pupil.py Please make the corrections