Skip to content

A python app that utilizes mediapipe and opencv for controlling mouse and keyboard 🤖

Notifications You must be signed in to change notification settings

OmarMDiab/PC_Controller-Virtual-Mouse-and-Keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PC Controller

This Python script utilizes the MediaPipe library for hand tracking and the NirCmd utility to create a virtual mouse and keyboard interface. The program enables users to control their computer by detecting hand gestures through the camera.

Prerequisites

Usage

In My project there are 2 modes

  • Mode 1: Volume and Brightness Controls (Keyboard)
  • Mode 2: (Mouse Control)
  • Switch Gestures
    • mode 1 <==> mode 2

Mode 1

Volume Control

  • 1 finger raises volume
  • 2 fingers lowers volume

Brightness Control

  • 3 fingers raises brightness

  • 4 fingers lowers brightness

Volume and Brightness Control GIF

Mode 2

In this mode, the script enables virtual mouse control, The following mouse actions are supported:

  • Move Cursor

  • Left Click

  • Right Click

  • Double Click

  • Scroll Up

  • Scroll Down

  • Drag And Drop

See the video to know the required Gestures: -

Drag and Drop

Drag and Drop GIF

Mouse Controls

Please wait for loading.......

Mouse Controls GIF

About

A python app that utilizes mediapipe and opencv for controlling mouse and keyboard 🤖

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages