Skip to content

itsbaraa/Hand-Tracking-Servo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Hand Tracking Controlled Servo

Control a servo motor in real time using hand tracking with MediaPipe and OpenCV. The servo angle follows the horizontal position of your index finger.

Overview

  • Uses your webcam to detect a hand.
  • Tracks the X-position of your index finger.
  • Converts the position into a servo angle (0°–180°).
  • Sends the angle to an Arduino via serial communication.

Components

  • Arduino Uno
  • Servo Motor

Prerequisites

Python (3.9 - 3.12)

Install the following Python libraries:

pip install opencv-python mediapipe pyserial

Showcase

1000157200.mp4

About

Hand Gesture Tracking Using MediaPipe and OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published