MouseHead its a project that control the mouse with the facial gestures, these are Whistling, Eyesbrow ,open mouth, smile, Frowns and normal face. MouseHead implement a predictor algorithm with the tools how RandomForest.
- Source codes
- Data (Calibration, class report, shape_predictor_68_face_landmarks ,pictures)
- Web Camera
- To use the repository with the predeterminate data base (The algoritm can have fails, we suggest to calibrate with your own data). -- Execute mousehead by using:
$ python final_bien.py
- To use with your own data base (first follow "Create your own data base" instructions). -- To calibrate use:
$ python main.py
- Renamed the "file.txt" document on the data folder.
- Create a new document called "file.txt" on the data folder.
- Execute main.py code to create the data base whit your owns data and follow the calibration instructions.
To calibrate the data base with your owns data, you have to execute the main.py after that you must to asigment a class to each gesture with the next steps:
REMEMBER: Is important do the gesture before assigment the class and stay doing the gesture all the calibration time, if you change your face expression in the calibration time this going to take miss data.
- Gesture assigment on each class -- Whistling gesture, class [0] -- Eyesbrow up gesture, class [1] -- Open mouth gesture, class [2] -- Smile gesture, class [3] -- Frowns gesture, class [4] -- Normal face, class [6]
Each action have an activation by gesture, have in mind if you want to do the mouse action you must to keep the gesture for a few seconds.
- Whistling gesture is the enable to scroll mouse.
- Eyesbrow up gesture is the left click.
- Open mouth gesture is the enable to move mouse.
- Smile gesture is the activation or desactivation of the all sistem.
- Frowns gestureis the rigth click.
Universidad de Ibagué - Ingeniería Electrónica Inteligencia Artificial - Curso:2019/A