Finger Counter With Python
Hand Finger Counter
This Python script uses OpenCV and the cvzone library to count the number of fingers shown in a webcam feed.
Requirements
- Python 3.x
- OpenCV (
pip install opencv-python
) - cvzone (
pip install cvzone
)
Usage
Clone the repository:
1
git clone https://github.com/AhmetBeratKocyigit/python-finger-counter
Navigate to the project directory:
1
cd python-finger-counter
Run the script:
1
python finger_counter.py
Enjoy counting your fingers!
How it Works
- The script captures frames from the webcam.
- It detects hands using the HandTrackingModule from cvzone.
- For each detected hand, it counts the number of fingers.
- The finger count is displayed on the webcam feed in real-time.
This post is licensed under CC BY 4.0 by the author.