An open API service indexing awesome lists of open source software.

https://github.com/kunalmehra075/finger-counter-opencv

A simple yet powerful AI-powered tool that counts how many fingers you're holding up using your webcam in real time! Built with Python, OpenCV, and MediaPipe, this project is a great starting point for learning gesture recognition.
https://github.com/kunalmehra075/finger-counter-opencv

computer-vision cv2 finger-counter fingercounter fingers handtracking linkedin mediapipe opencv python pythonprojects webcam

Last synced: 4 months ago
JSON representation

A simple yet powerful AI-powered tool that counts how many fingers you're holding up using your webcam in real time! Built with Python, OpenCV, and MediaPipe, this project is a great starting point for learning gesture recognition.

Awesome Lists containing this project

README

          

# βœ‹ Finger Counter β€” OpenCV + MediaPipe Project

A simple yet powerful AI-powered tool that counts how many fingers you're holding up using your webcam in real time!
Built with **Python**, **OpenCV**, and **MediaPipe**, this project is a great starting point for learning gesture recognition.

## πŸ–Ό Demo

![Demo](assets/Demo.gif)

## 🎯 What It Does

This project detects your hand and counts the number of fingers you're showing (from 0 to 5) using real-time webcam input.
It then displays the finger count on the screen with a live overlay.

## πŸš€ Features

βœ… Real-time finger counting with **MediaPipe**
βœ… Displays the current number of fingers held up (0–5)
βœ… Detects both left and right hands
βœ… Easy to use β€” no setup beyond your webcam
βœ… Great for learning computer vision basics!

---

## 🧠 What You'll Learn

- How to use **MediaPipe Hands** to detect hand landmarks
- How to identify which fingers are up based on joint positions
- Drawing UI overlays with OpenCV
- Real-time computer vision interaction with Python

## πŸ”§ Getting Started

### How to run:

1. **Install the required dependencies, globlally or by creating a virtual environment:**

```bash
pip install -r requirements.txt
```

2. **Run the application:**

```bash
python virtualMouse.py
```

## πŸ“Dependencies

- OpenCV
- MediaPipe
- Numpy

#### Buy me a coffee πŸ₯Ή:


Buy Me A Coffee

Contributions are welcome! πŸ™ If you have any ideas for improvements, feel free to submit a pull request.\
Follow me for more exciting projects like this! 🀩