Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ AI Hand Gesture Control System - ENHANCED WITH MIND-BLOWING FEATURES

An advanced hand gesture recognition system that transforms hand movements into computer commands and visual effects. Now with AI-powered gesture-to-command conversion, shape recognition, particle effects, and more!

๐ŸŒŸ NEW MIND-BLOWING FEATURES

โœจ Visual Effect Modes

  • ๐ŸŒˆ Rainbow Cursor: Multi-colored concentric circles following your hand
  • ๐Ÿ’Ž Hologram Cursor: 3D holographic cursor with scan lines
  • ๐Ÿงฒ Magnetic Field: Cursor with interactive magnetic field visualization
  • ๐ŸŽจ Motion Trail: Smooth motion trails following your gestures
  • โœจ Particle Effects: Physics-based particle system with gravity and velocity

๐Ÿ”ท Advanced Gesture Recognition

  • Shape Detection: Detect circles, squares, triangles, and polygons drawn with your hand
  • Speed Analysis: Real-time gesture speed tracking with visual indicators
  • Gesture Recording: Record custom gestures and replay them
  • Multi-gesture Sequences: Combine multiple gestures for complex commands

๐ŸŽ™๏ธ Gesture Recording & Playback

  • Record Custom Gestures: Capture your unique hand movements
  • Replay Gestures: Playback recorded gestures
  • Save to File: Export recorded gestures to JSON
  • Gesture Library: Build your own gesture command library

๐Ÿค– AI-Powered Features

  • Gesture Prediction: AI learns from your gesture patterns
  • Smart Window Arrangement: Automatically arrange windows based on gestures
  • Gesture-Based App Launcher: Launch apps with custom gestures
  • Emergency Screenshot: Smart screenshot with blur detection

๐ŸŽจ AR & Visual Effects

  • Hand Skeleton Visualization: See detected hand joints in real-time
  • Hand Tracking Glow: Visual glow effect on hand tracking
  • Motion Blur: Real-time motion blur effect
  • Gesture Heatmap: Visualize frequently used gesture areas
  • Particle Trails: Leave particle trails as you gesture

๐ŸŽฎ Control Modes

AI Mode (Gesture-to-Command)

Press A to enter AI mode and make gesture sequences that execute commands:

  • 3-Gesture Combos: Combine any 3 gestures to trigger commands
  • 4+ Gesture Power Moves: Longer sequences unlock advanced features
  • Visual Feedback: See your gestures in real-time with emoji indicators

Cursor Mode

Press C for traditional mouse control:

  • Index + Thumb = Click
  • Middle + Thumb = Scroll
  • Ring + Thumb = Right-click

โŒจ๏ธ Keyboard Shortcuts

Key Action
A Activate AI Mode
C Activate Cursor Mode
1 Rainbow Cursor Effect
2 Particle Trail Effect
3 Hologram Cursor Effect
4 Magnetic Field Cursor
5 Motion Trail Effect
6 Normal Cursor
S Toggle Shape Detection Mode
R Toggle Gesture Recording
H Toggle Hand Skeleton Visualization
D Toggle Debug Info
Space Toggle App Enabled/Disabled
ESC Exit Application

๐ŸŽฏ Gesture Command Examples

Power Gestures (4-5 Gestures)

โœŠ โœŒ๏ธ โœ‹ โœ‹ = Activate rainbow cursor mode
โ˜๏ธ โ˜๏ธ โ˜๏ธ โ˜๏ธ โ˜๏ธ = Enable particle trail effect
๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ = Toggle hologram cursor mode
โœŒ๏ธ โœŒ๏ธ โœŒ๏ธ โœŒ๏ธ = Enable magnetic field cursor
โœ‹ โœ‹ โœ‹ โœ‹ = Enable trail effect

Shape Recognition

Drawing a Circle = Shape detection activates
Drawing a Square = Polygon gesture recognized
Drawing a Line = Line gesture detected

Recording Gestures

โœŠ โœŒ๏ธ โœŒ๏ธ โœŒ๏ธ = Start gesture recording
โœŒ๏ธ โœŒ๏ธ โœŠ โœŠ = Stop gesture recording
๐Ÿ‘ ๐Ÿ‘ โœŒ๏ธ = Playback last recorded gesture

Standard Commands (3 Gestures)

โœŠ โœŒ๏ธ โœ‹ = Open Chrome browser
โœŒ๏ธ โ˜๏ธ ๐Ÿ‘ = Search Google in new tab
โœ‹ โœŠ โœ‹ = Take a screenshot
๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ = Increase volume
โœŠ โœŠ โœŠ = Decrease volume

๐ŸŽจ Feature Highlights

Shape Detection Engine

Automatically recognizes hand-drawn shapes:

  • Circles: Low variance in radial distance
  • Lines: Collinear point detection
  • Polygons: Corner detection algorithm

Particle System

Physics-based particles with:

  • Gravity simulation
  • Velocity and acceleration
  • Lifetime management
  • Color gradients

Speed Analysis

Real-time gesture velocity tracking:

  • Normalized speed levels (0-1)
  • Acceleration measurement
  • Visual speed indicators

Gesture Recorder

Professional gesture recording:

  • Frame-by-frame hand tracking data
  • Timestamp information
  • JSON serialization
  • Playback capability

๐Ÿš€ Getting Started

  1. Install Dependencies:

    pip install -r requirements.txt
  2. Run the Application:

    python app.py
  3. Try AI Mode:

    • Press A to activate AI mode
    • Make a gesture sequence (e.g., fist โ†’ peace โ†’ open hand)
    • Watch the command execute!
  4. Try Visual Effects:

    • Press 1-6 to cycle through different cursor effects
    • Press S to enable shape detection
    • Press R to record custom gestures

๐Ÿ“‹ Supported Commands

System Commands

  • Open Chrome, Firefox, Edge, Safari
  • Open Gmail, Notepad, Terminal, Calculator
  • Take screenshots with AI enhancement
  • Control volume, brightness, notifications
  • Lock screen, restart, shutdown
  • Task Manager, Settings, Control Panel

Window Management

  • Maximize, minimize, restore windows
  • Window snapping (left, right, top, bottom)
  • Alt+Tab window switching
  • Smart window arrangement

Media Control

  • Play/Pause music
  • Next/Previous track
  • Volume up/down
  • Mute/Unmute

Text Editing

  • Copy, Cut, Paste
  • Select All, Undo, Redo
  • Find and Replace
  • Zoom in/out

Browser Control

  • New tab, close tab
  • Scroll up/down/left/right
  • Zoom in/out/reset
  • Back/Forward navigation

๐ŸŽฏ Tips for Best Results

  1. Good Lighting: Ensure adequate lighting for hand detection
  2. Clear Gestures: Make distinct hand shapes for accurate recognition
  3. Steady Hand: Keep hand relatively steady for shape detection
  4. Proper Distance: Stay about 1-2 feet from camera
  5. Clean Background: Plain background helps with hand isolation

๐Ÿ”ง Troubleshooting

Hand Not Detected

  • Ensure good lighting on hand
  • Move hand closer to camera
  • Adjust camera position

Commands Not Executing

  • Check that required applications are installed
  • Verify gesture sequence is complete (3+ gestures)
  • Look for console output for error details

Performance Issues

  • Reduce video resolution
  • Close other applications
  • Check CPU usage in Task Manager

๐Ÿ“ Advanced Customization

Add Custom Gesture Commands

Edit the GESTURE_COMMANDS dictionary in app.py:

('custom', 'gesture', 'sequence'): 'Your custom command',

Adjust Detection Sensitivity

Modify these parameters:

touch_threshold = 0.19  # Lower = more sensitive
scroll_sensitivity = 0.05  # Higher = faster scrolling
min_detection_confidence = 0.7  # Lower = less strict

Create Custom Effects

Add new effect modes in AdvancedGestureFeatures class:

elif self.effect_mode == 'custom':
    return self._draw_custom_effect(frame, x, y)

๐Ÿค Contributing

Feel free to extend this project with:

  • New visual effects
  • Additional gesture types
  • Machine learning improvements
  • Voice command integration
  • Multi-hand support

๐Ÿ“„ License

Open source - Use and modify as needed!

๐ŸŽ‰ Have Fun!

This is your playground! Experiment with:

  • Different gesture combinations
  • Visual effect combinations
  • Custom recorded gestures
  • Unique command mappings
  • Creative applications

Remember: The faster and more dramatic your gestures, the more impressive the effects! ๐Ÿš€โœจ

About

SketelCursor is an AI-powered virtual cursor that uses hand skeleton tracking, MediaPipe, OpenCV, and Generative AI for touchless computer interaction.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages