https://github.com/grand-27-master/fingers-tap
A real-time multi-finger tap detection system
https://github.com/grand-27-master/fingers-tap
mediapipe numpy opencv python3
Last synced: 3 months ago
JSON representation
A real-time multi-finger tap detection system
- Host: GitHub
- URL: https://github.com/grand-27-master/fingers-tap
- Owner: grand-27-master
- Created: 2024-12-24T05:40:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T05:47:47.000Z (over 1 year ago)
- Last Synced: 2025-05-18T11:08:44.874Z (about 1 year ago)
- Topics: mediapipe, numpy, opencv, python3
- Language: Python
- Homepage:
- Size: 5.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi-Finger Tap Detection with OpenCV and MediaPipe
This project demonstrates a **real-time multi-finger tap detection system** using OpenCV and MediaPipe Hands. The system tracks finger movements and detects taps when fingers touch the thumb within a specified threshold distance. It also provides visual feedback with color-coded finger markers and a dynamic tap count display.
---
## Features
- **Real-Time Finger Tracking**: Detects finger positions in real-time using a webcam.
- **Multi-Finger Detection**: Tracks taps for the index, middle, ring, and pinky fingers.
- **Visual Display**: Shows connections, distances, and tap counts directly on the video feed.
- **Customizable**: Adjustable thresholds and cooldown periods for tailored detection.
---
## Requirements
- Python 3.7+
- OpenCV
- MediaPipe
- NumPy
### Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/multi-finger-tap-detection.git
cd multi-finger-tap-detection
```
2. Install the required packages:
```bash
pip install opencv-python mediapipe numpy
```
---
## Usage
1. Run the `multi_finger_tap_detection.py` script:
```bash
python multi_finger_tap_detection.py
```
2. Adjust the `THRESHOLD` and `COOLDOWN` values in the script for optimal detection.
---