Skip to content

rameezimdad/AirGesture-with-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Control your laptop with hand gestures using your webcam! A touchless interface built with MediaPipe and OpenCV that lets you adjust brightness, volume, take screenshots, and even perform calculationsโ€”all with simple hand movements.

Features

Brightness Control - Close fist for dark, open palm for bright Volume Control - Move hand up/down to adjust volume Gesture Calculator - Perform math operations with hand gestures Screenshot Capture - Peace sign to capture screen Quick Jumps - Show 1-5 fingers to jump to 20%, 40%, 60%, 80%, 100% Web Interface - Beautiful real-time dashboard with live graphs Real-time Monitoring - FPS counter, hand tracking visualization

๐ŸŽฎ Control Modes

  1. Brightness Only - Hand openness controls screen brightness
  2. Volume Only - Hand vertical position controls volume
  3. Both - Combined brightness + volume control
  4. Calculator - Math operations using hand gestures

๐Ÿ› ๏ธ Technologies

  • Python 3.x
  • MediaPipe - Hand tracking and landmark detection
  • OpenCV - Computer vision and camera processing
  • Flask - Web interface and streaming
  • PyAutoGUI - Screenshot functionality
  • Screen Brightness Control - Cross-platform brightness adjustment

Desktop Version:

python hand_brightness_controller.py

Web Version:
python web_server.py
# Open http://localhost:5000 in your browser

๐Ÿ“‹ Requirements

Auto-installer included! The app will automatically install missing dependencies on first run.

 Gesture Guide

- 0-9 Fingers = Numbers (Calculator mode)
- ๐Ÿ‘ Thumbs Up = Plus (+)
- ๐Ÿ‘Ž Thumbs Down = Minus (-)
- โœŒ๏ธ Peace Sign = Screenshot
- โœŠ Closed Fist = Equals (=) / Low brightness
- ๐Ÿ–๏ธ Open Palm = High brightness

๐Ÿ“ฑ Access from Any Device

The web version can be accessed from phones/tablets on your local network:
http://YOUR_COMPUTER_IP:5000



Mohammad Rameez Imdad

Copyright (c) 2025 Mohammad Rameez Imdad

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction

About

๐Ÿ–๏ธ Control your computer with hand gestures in the air. Touchless brightness, volume, and calculator using MediaPipe & OpenCV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors