Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hand Gesture Control

Description

Control your computer mouse using hand gestures detected from your webcam in real-time.

Features

  • Real-time hand detection using MediaPipe
  • Mouse cursor control with index finger
  • Click gesture by bringing thumb and index finger together
  • Works with any webcam

Requirements

  • Python 3.10 or earlier (MediaPipe compatibility)
  • opencv-python
  • mediapipe
  • pyautogui
  • numpy

Installation

py -m pip install opencv-python mediapipe pyautogui numpy

Usage

py hand_control.py

Press 'Q' to quit the application.

How It Works

  • The index finger (landmark 8) controls mouse movement
  • Bringing thumb (landmark 4) close to index finger triggers a click
  • Uses 21 hand landmarks detected by MediaPipe

Project Structure

Hand-Gesture-Control/

├── hand_control.py

├── hand_landmarker.task

└── README.md

Author

Renad Eng

License

MIT

About

Controlling computer functions through hand gestures using Python and computer vision.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages