Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 2.97 KB

Readme.md

File metadata and controls

75 lines (60 loc) · 2.97 KB

HeadMouse

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.

Requirements:

  • Source codes
  • Data (Calibration, class report, shape_predictor_68_face_landmarks ,pictures)

Hardware Elements

  • Web Camera

Software Requirements

How to use:

  • 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 

Create your own data base

  • 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.

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]

Mouse instruction

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.

Authors:

Universidad de Ibagué - Ingeniería Electrónica Inteligencia Artificial - Curso:2019/A