DEV Community

Sripadh Sujith
Sripadh Sujith

Posted on

HandCount: Real-Time Finger Counting with MediaPipe and OpenCV

I built HandCount, a neat little Python project that uses MediaPipe and OpenCV to count raised fingers in real-time via webcam. Itโ€™s a fun way to play with computer vision, and Iโ€™m excited to share it with you!

What It Does

Point your hand at the camera, and HandCount detects it, tracks landmarks (like fingertips), and displays how many fingers youโ€™re holding up. Itโ€™s simple but opens the door to cool stuff like gesture controls or interactive apps.

How It Works

MediaPipe: Spots 21 hand landmarks in each frame.
OpenCV: Captures the video and shows the results.
Logic: Compares fingertip positions to count raised fingers.

Try it out

Github(Source code):-https://github.com/Sripadh-Sujith/Realtime_handcount

Follow for more innovative project ideas

Top comments (0)