Skip to content

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.

Notifications You must be signed in to change notification settings

KunalMehra075/Finger-Counter-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✋ 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

🎯 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:

    pip install -r requirements.txt
  2. Run the application:

    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! 🤩

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages