https://github.com/dnlbb/hand-gesture-recognition
https://github.com/dnlbb/hand-gesture-recognition
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnlbb/hand-gesture-recognition
- Owner: Dnlbb
- Created: 2024-04-18T13:49:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-18T14:04:39.000Z (about 1 year ago)
- Last Synced: 2025-01-19T20:23:08.781Z (4 months ago)
- Language: Jupyter Notebook
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hand Gesture Recognition System
This project demonstrates a hand gesture recognition system that uses a Random Forest classifier to detect and classify hand gestures as "like" or "not like". The system employs the MediaPipe framework to detect hand landmarks from live video feed, and these landmarks are used as features for machine learning.
## Features
- Hand landmark detection using MediaPipe.
- Hand gesture classification using a trained Random Forest model.
- Real-time gesture recognition from webcam video stream.## Requirements
- Python 3.6+
- OpenCV
- MediaPipe
- NumPy
- scikit-learn## Installation
To run this project, you need to install the required Python libraries. You can install these packages using pip:
```bash
pip install opencv-python-headless mediapipe numpy scikit-learn
```## Project Structure
- **hand_gesture_recognition.py**: The main script that initializes the hand landmark detection and gesture recognition.
## Dataset
The dataset consists of JSON formatted files containing hand landmarks and corresponding labels. Each entry includes:
- `landmarks`: Hand landmarks captured as x, y coordinates.
- `labels`: Gesture labels corresponding to the landmarks.
- `leading_hand`: Indicates the primary hand (left or right).## Model Training
The Random Forest model is trained on a subset of pre-processed hand landmark data. The model is serialized and can be loaded to make predictions in real-time.