Skip to content

amitch747/Blinker

Repository files navigation

Blinker - Your face is the mouse

Tests

Controls

  • Face center translation applies movement commands to the cursor
  • Left blink - Left click
  • Right blink - Right click
  • 'm' - Toggle cursor
  • 't' - Toggle left click
  • 'c' - Calibrate cursor and EAR thresholds
  • 'q' - Quit

Troubleshooting

  • False positive blinks - Close both eyes and press 'c' to recalibrate blink detection
  • Bad mouse speed - Play with the variables in settings.py
  • Camera problems - If you have multiple devices, change CAMERA_INDEX in settings.py
  • CMake problems - Go to chatgpt.com

Quick Start Tutorial

Requirements

Setup

  1. Create python environment

    py 3.11 -m venv BlinkerEnv
    BlinkerEnv\Scripts\activate
    pip install -r requirements.txt
  2. Build C++ server

    1. Install Visual Studio Community Edition
    2. Under Workloads check 'Desktop development with C++'
    3. Under Individual components check 'MSVC V143', 'Windows 10/11 SDK', and 'C++ CMake tools'
    mkdir build
    cmake -S . -B build
    cmake --build build --config Release
  3. Run Blinker

    python blinker.py

Demos

Version 1

alt text

Version 3

alt text

Trig based cursor inspired by Jason Orlosky: https://www.youtube.com/watch?v=hImmJDTgXjw

About

Mouse controller built with MediaPipe and OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published