Skip to main content

A library for recognizing hand gestures using MediaPipe

Project description

MediaPipe Hand Gesture Recognizer

Overview

A powerful Python package for real-time hand gesture recognition using MediaPipe and OpenCV. Detect various hand gestures and swipes with easy customization.

Features

  • Real-time hand gesture detection
  • Supports multiple gestures:
    • Fist
    • Open Palm
    • Two Fingers
    • Three Fingers
    • Four Fingers
  • Swipe detection (left and right)
  • Custom gesture function registration
  • Gesture state tracking (appear/disappear)

Installation

pip install mediapipe-gesture-recognizer

Dependencies

  • OpenCV
  • MediaPipe
  • NumPy

Quick Start

from gesture_recognizer import GestureRecognizer

# Create recognizer instance
recognizer = GestureRecognizer()

# Register custom functions for gestures
def on_fist_appear(state):
    print("Fist detected!")

recognizer.register_gesture('fist', on_fist_appear)

# Run gesture recognition
recognizer.run()

Gesture Detection Methods

  • detect_gesture(): Identifies hand gesture based on finger extensions
  • detect_swipe(): Detects left and right hand swipes
  • handle_gesture_states(): Manages gesture state changes

Configuration

Customize detection confidence and tracking parameters in the run() method.

License

MIT License

Contributors

  • Umesh Singh Verma
  • Ankit Yadav
  • Sukrit malpani
  • Manan Patel
  • Siddhant Mukund

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hand_gesture_recognizer-1.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hand_gesture_recognizer-1.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file hand_gesture_recognizer-1.2.0.tar.gz.

File metadata

  • Download URL: hand_gesture_recognizer-1.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for hand_gesture_recognizer-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ced0a9951e37510f932690fbde9be9b45d9fdcd4b7376e0cbd28e58ffc8b816b
MD5 a18795655a6f24c18cc974537bff94cc
BLAKE2b-256 7826a54aed0106175011eda15ffe167968c6b968d45a491429c42e5673e228b7

See more details on using hashes here.

File details

Details for the file hand_gesture_recognizer-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hand_gesture_recognizer-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 554d1822ddeb68794036b092c235b2b96bd9cb763a0e7c5c18cf67e4a06001e6
MD5 79ee718a0fe82f96b42c6812019ef803
BLAKE2b-256 061a42cbe26dc340a0afb8690d35c2d87fd67de9163994c82c42168739affd7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page