Hand tracking system for robot teleoperation using MediaPipe
Project description
Hand Tracking Teleop
Real-time hand tracking for robot teleoperation using MediaPipe.
Features
- 21 hand landmarks per hand at 30fps
- Calibrated metric-space normalization
- Multiple visualization modes (2D, 3D, Rerun)
- Finger articulation tracking with curl detection
- Temporal smoothing for stable tracking
Installation
pip install handex
With visualization support:
pip install handex[vis]
Quick Start
CLI
handex # 2D view (default)
handex -m 3d # 3D visualization
handex -m rerun # Rerun viewer
handex-calibrate # Run calibration
Python API
from hand_tracking import HandDetector
import cv2
detector = HandDetector()
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
if not ret:
break
hands = detector.detect_hands(frame)
for hand in hands:
# Pixel coordinates
pixels = hand.landmarks # (21, 3) in pixels
# 3D metric coordinates
meters = hand.landmarks_3d # (21, 3) in meters
print(f"{hand.handedness}: wrist at {meters[0]}")
Controls
- q: Quit (2D view)
- Mouse drag: Rotate 3D view
- Scroll: Zoom
- Right-click drag: Pan
License
Apache 2.0
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
handex-0.1.1.tar.gz
(32.8 kB
view details)
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
handex-0.1.1-py3-none-any.whl
(32.2 kB
view details)
File details
Details for the file handex-0.1.1.tar.gz.
File metadata
- Download URL: handex-0.1.1.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d14786ad3c9354440bba42e3a199de3267de62cf14c79851e2b18234ee65bf0
|
|
| MD5 |
f08652aebf6c324f301804c5bbd6d3f3
|
|
| BLAKE2b-256 |
83f3a6180df984f2c499b9268e1cb1f9a87fedd75b77aece10f64aaffbfd68e9
|
File details
Details for the file handex-0.1.1-py3-none-any.whl.
File metadata
- Download URL: handex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
422ed75f0130678b141b58f543528007e51db18e3aee66efad734d4403a538b8
|
|
| MD5 |
7267ed970411031fe2840851cc0a8e33
|
|
| BLAKE2b-256 |
6f3315dba35dfc5155eb009152b0da9884677004e606c6d3dac11ee990c7067a
|