MP-Gesture-Lib
A plug-and-play hand gesture recognition module built on MediaPipe and OpenCV.
Detect gesture names + confidence from a webcam frame in one function call.
Install
pip install mp-gesture-lib
Requires Python >= 3.8 Bundled model included — no external files needed. (check
mediapipesupport for your python version)
Quick Start
import cv2
from mp_gesture_lib import GestureDetector
detector = GestureDetector() # zero-config
cap = cv2.VideoCapture(0)
while cap.isOpened():
ok, frame = cap.read()
result = detector.detect(frame)
print(result.gesture) # "plus", "3", "minus", "unknown" …
print(result.confidence) # 0.0 – 1.0
cv2.imshow("Gestures", result.annotated_frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
Supported Gestures
| Gesture | Returns |
|---|---|
| Numbers 1 – 10 | "1" – "10" |
| Arithmetic ops | "plus" "minus" "multiply" "divide" |
| Calculator | "equal" "clear" "0" |
| Nothing / unrecognised | "unknown" |
Custom Model
# Your model checked first — bundled used as fallback
detector = GestureDetector(model_path="my_gestures.task")
Acknowledgements
License
MIT © Debabrata Saha
See LICENSE for details.
Metadata
Release files for mp-gesture-lib 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mp_gesture_lib-1.0.2.tar.gz | 6.4 MB | Without provenance | Details for mp_gesture_lib-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mp_gesture_lib-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for mp_gesture_lib-1.0.2-py3-none-any.whl |
Total release size: 12.9 MB
Release files / mp_gesture_lib-1.0.2.tar.gz
| Download URL | mp_gesture_lib-1.0.2.tar.gz |
|---|---|
| Size | 6.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
228b0c12ec41991433030a69325b72d32675bd7971932c4676b8c613ad1bf14e
|
|
BLAKE2b-256 checksum How to use checksums |
987f61174bf834a3da23a34fa222dc7b2ff0de9b77fcc10d4205d9ad3abed9c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / mp_gesture_lib-1.0.2-py3-none-any.whl
| Download URL | mp_gesture_lib-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
363b7b97e7a8bb17cbd2f526ae43f17d8fd3f5db9b1b436b17eb1a9f52b1c88e
|
|
BLAKE2b-256 checksum How to use checksums |
eddaf46555925d2d78f9225ba1e06e3dcf58018365e87dfc55663ca71f5bd461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for mp-gesture-lib 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.