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 extensionsdetect_swipe(): Detects left and right hand swipeshandle_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ced0a9951e37510f932690fbde9be9b45d9fdcd4b7376e0cbd28e58ffc8b816b
|
|
| MD5 |
a18795655a6f24c18cc974537bff94cc
|
|
| BLAKE2b-256 |
7826a54aed0106175011eda15ffe167968c6b968d45a491429c42e5673e228b7
|
File details
Details for the file hand_gesture_recognizer-1.2.0-py3-none-any.whl.
File metadata
- Download URL: hand_gesture_recognizer-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554d1822ddeb68794036b092c235b2b96bd9cb763a0e7c5c18cf67e4a06001e6
|
|
| MD5 |
79ee718a0fe82f96b42c6812019ef803
|
|
| BLAKE2b-256 |
061a42cbe26dc340a0afb8690d35c2d87fd67de9163994c82c42168739affd7d
|