Skip to content

umerfar123/Finger_Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finger Counting Application Using OpenCV

Coding

Introduction

This application uses OpenCV and MediaPipe to see your hand and count how many fingers are up. It draws lines to show where your fingers are and uses the position of your fingertips to figure out the count. For explained working of the system see explanation file.

Usage

  1. Open downloaded folder in vscode or any IDE.

  2. Install the required libraries using following python command on IDE terminal:

      pip install -r requirements.txt
  3. If you are using external video capture device rather than default video capture device then you should change a parameter value in main.py file in ${\color{red}line 18}$.

     cap=cv2.VideoCapture(param)
    • If you are using default webcam set param=0.
    • Set param = 1, 2, 3, ... These numbers represent additional video capture devices connected to your system. If you have multiple cameras, you can use these values to select a specific one.
  4. Run the main.py file.

      python main.py

Note

According to your system it will take time to load a window where you can see the feed from your video capture device.

About

This Python application uses opencv, mediapipe, to accurately count the number of fingers in a human hand.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages