https://github.com/alvinwan/hand-tracking-pong
Real-time Hand-Tracking Pong Game
https://github.com/alvinwan/hand-tracking-pong
computer-vision game hand-tracking interactive object-detection pong python
Last synced: over 1 year ago
JSON representation
Real-time Hand-Tracking Pong Game
- Host: GitHub
- URL: https://github.com/alvinwan/hand-tracking-pong
- Owner: alvinwan
- License: mit
- Created: 2017-12-29T05:30:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T01:35:25.000Z (over 5 years ago)
- Last Synced: 2025-03-18T20:39:56.993Z (over 1 year ago)
- Topics: computer-vision, game, hand-tracking, interactive, object-detection, pong, python
- Language: Python
- Homepage:
- Size: 19.3 MB
- Stars: 18
- Watchers: 0
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hand-Tracking Pong
"Real-time" Hand-Tracking Pong. As of the moment, object detection inference time is the bottleneck, at 1-2 FPS on a Macbook Pro (i5, 2.5GHz, 8GB) with detections on 160x90 images.

The original hand tracker utilities and model are taken from Victor Dibia's [Hand Tracking repository](https://github.com/victordibia/handtracking).
## Installation
1. [Setup a Python virtual environment](https://www.digitalocean.com/community/tutorials/common-python-tools-using-virtualenv-installing-with-pip-and-managing-packages#a-thorough-virtualenv-how-to) with Python 3.5.
2. Install all Python dependencies.
```
pip install -r requirements.txt
```
> For Ubuntu users, install `libsm6` for OpenCV to work:
> ```
> apt install libsm6
> ```
Installation is complete. To get started, launch the demo. I recommend running the multi-threaded version.
```
python main_multi.py
```