Code Monkey home page Code Monkey logo

face-aimer's Introduction

Face Aimer

Overview

A Python program (Windows only, Python 3.8+) for controlling your mouse using your face. Uses your webcam and tracks your face's orientation using a trained model from dlib. There are two modes of control, absolute mouse position, and joystick.

Installation

  1. Download and extract, or clone this repo to a location of your choice.
  2. Install Prerequisites (recommend using virtualenv):
    1. pip install opencv-python
    2. pip install dlib
    3. pip install imutils
    4. pip install pynput
    5. pip install pywin32
  3. Download this trained model from dlib and place it into the resources folder.

Execution

  1. Run the program: python <install_path>\face_aimer.py
  2. Calibrate the camera by following the prompts in the Face Aimer window that appears.
  3. The program will now begin controlling the mouse. While the Face Aimer window is in focus:
    • Press the ESC key to quit the program
    • Press the TAB key to switch between mouse and stick control modes
    • Press the SPACEBAR to pause and unpause the program's control of your mouse

To-Do

  • Add text to indicate the currently selected control mode
  • Improve facial tracking by utilizing more tracked points from the model
  • Add re-calibrate option
  • Implement offsets based on head translation so you don't need to keep your head locked in place
  • Create better installation process

Acknowledgements

face-aimer's People

Contributors

jaredb1011 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.