A gesture-controlled sliding puzzle game using real-time hand tracking.
Project description
AeroPuzzle
A real-time, gesture-controlled sliding puzzle game powered by computer vision and hand tracking. Create puzzles from your webcam feed and solve them using air gestures — no mouse or touch input required.
Features
- Gesture-Controlled Gameplay — Use hand gestures to grab, drag, and swap puzzle tiles in real time.
- Live Webcam Integration — Capture a snapshot from your webcam to create the puzzle.
- Adaptive Hand Tracking — Powered by MediaPipe Hand Landmarker with dual-threshold hysteresis filtering.
- Velocity-Adaptive Smoothing — 1€ filter eliminates jitter while keeping the cursor responsive.
- Premium HUD Overlay — Sleek header, status indicators, timer, and victory card rendered directly on the video feed.
- Auto-Termination — Automatically closes 5 seconds after puzzle completion.
Screenshots
Installation
From PyPI
pip install aeropuzzle
From Source
git clone https://github.com/Aarthirt14/AeroPuzzle.git
cd AeroPuzzle
pip install .
Usage
Launch the game
aeropuzzle
Or using the Python module syntax:
python -m aeropuzzle
Command-line options
aeropuzzle --help # Show usage information
aeropuzzle --version # Show version number
How to Play
- Webcam Active — Ensure your webcam is connected and allowed.
- Frame Your Photo — Position both hands in front of the camera and spread your index fingers to define the crop area.
- Capture Snapshot — Pinch your index finger and thumb together to capture the snapshot and start the puzzle.
- Solve the Puzzle:
- Move your hand to control the pointer cursor.
- Pinch to grab a tile.
- Drag the tile to its correct position.
- Release the pinch to swap it with another tile.
- Win — Solve the puzzle to see your completion time. The application automatically closes 5 seconds after solving.
Requirements
- Python 3.10+
- A working webcam
- Dependencies (installed automatically via pip):
opencv-pythonmediapipenumpypillow
Tech Stack
| Component | Technology |
|---|---|
| Language | Python 3.10+ |
| Computer Vision | OpenCV |
| Hand Tracking | MediaPipe (Tasks-Vision API) |
| Typography | Pillow (PIL) |
| Numerical Computing | NumPy |
Development
git clone https://github.com/Aarthirt14/AeroPuzzle.git
cd AeroPuzzle
pip install -e .
Build the package
pip install build
python -m build
Publish to PyPI
pip install twine
twine upload dist/*
License
This project is licensed under the MIT License.
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 aeropuzzle-0.1.0.tar.gz.
File metadata
- Download URL: aeropuzzle-0.1.0.tar.gz
- Upload date:
- Size: 5.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d898b6127307645b92d1348324679e715178851e7285b162208e4cf4afd2cda6
|
|
| MD5 |
e3639089714e67e00cb8a1a0031e9e38
|
|
| BLAKE2b-256 |
91aed7c6874ced9e1f5c2e30a3490178dcdec2f4f96180263246246215f07985
|
File details
Details for the file aeropuzzle-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aeropuzzle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27c611878b6436c8c861131946d5e9fa46a6a47ec8863db95d2baf12ab9a1116
|
|
| MD5 |
80b7da47c657576ea2863a193748db61
|
|
| BLAKE2b-256 |
d24ec9e49b04749d88fe49f524d80d117aa2cc9c20ee97d3d4772f4fd3fb873b
|