Real-time-Hand-gesture-recognition-system-using-OpenCV-and-mediapipeon-

πŸ–οΈ Hand Gesture Recognition with MediaPipe

Python OpenCV MediaPipe Colab

An interactive Computer Vision pipeline that transforms your webcam into a gesture-controlled interface using Google’s MediaPipe and Python.


πŸ”΄ Live Preview


πŸ”‘ Key Features


πŸ› οΈ How It Works

The Pipeline

  1. Capture: JavaScript initiates a webcam stream and captures a frame.
  2. Processing: OpenCV converts images to RGB; MediaPipe maps 21 3D landmarks.
  3. Inference: * Fingers: Compares TIP vs PIP y-coordinates to determine β€œExtended” vs β€œCurled”.
    • Thumb: Analyzes horizontal orientation relative to the palm base.
  4. Feedback: The system annotates the image and renders it instantly.

πŸš€ Getting Started

1. Launch Environment

Open this project in Google Colab to ensure the webcam JavaScript bridge executes correctly.

2. Install Dependencies

```bash pip install mediapipe opencv-python numpy