Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adityaghode92/hand-tracking
https://github.com/adityaghode92/hand-tracking
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adityaghode92/hand-tracking
- Owner: adityaghode92
- Created: 2024-11-03T19:17:51.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T19:22:13.000Z (2 months ago)
- Last Synced: 2024-11-03T20:21:49.695Z (2 months ago)
- Language: C#
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hand Tracking in Virtual Environment
## Overview
This project demonstrates hand tracking in a virtual environment using OpenCV, Mediapipe, Unity, and Sockets. The goal is to create an interactive 3D model that allows real-time hand tracking and virtual object interaction.![Hand Tracking Example](Assets/hand_track.png)
## Technologies Used
- **OpenCV**: For computer vision tasks.
- **Mediapipe**: For hand detection and tracking.
- **Unity**: For creating the 3D environment and interactions.
- **Sockets (UDP)**: For communication between the Python hand tracking script and Unity.## Features
- Real-time hand tracking using a webcam.
- Interactive 3D hand model in Unity.
- Basic cube objects for touch and manipulation in the virtual space.
- Lines connecting hand points to visualize hand structure.## Installation
1. Clone the repository:
```bash
git clone https://github.com/adityaghode92/Hand-Tracking.git
cd Hand-Tracking
```2. **Python Dependencies**:
Make sure you have the following libraries installed:
```bash
pip install opencv-python cvzone
```3. **Unity Setup**:
- Open the Unity project.
- Ensure the `UDPReceive` and `HandTracking` scripts are properly attached to the GameObjects.
- Set the `port` in the `UDPReceive` script to match the one used in the Python script (default: 5052).4. **Run the Project**:
- Start the Python script to begin hand tracking.
- Then, run the Unity project to visualize the hand tracking in the virtual environment.## Usage
- Point your webcam at your hand to start tracking.
- Interact with the cubes in the Unity environment using hand gestures.## Acknowledgments
- [OpenCV](https://opencv.org/)
- [Mediapipe](https://google.github.io/mediapipe/)
- [Unity](https://unity.com/)