Skip to content

KMaitreya/FingerDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

FingerDetector

This program is created to detect and count the number of upright fingers. It consists of two stages:-

a)Palm detection

In this stage the palm is detected using Google's mediapipe. It uses machine learning to track the movements of your palm using 21 reference points. It is made with the help of mediapipe(https://google.github.io/mediapipe/solutions/hands) a library built by google.

Download mediapipe with the following command-

pip install mediapipe

The palm is tracked using 21 reference points. These reference points are predefined. The reference points are as follows-

image

b)Finger detection

We will use the coordinates of the reference points of the plam to determine whihc finger is upright and which is not. This will be achieved by taking the distances between the hand landmarks on each finger.

Example output:-

All fingers-

allFingers

Thumb, index finger and pinky-

threeFingers

After executing the program a camera window will open up, you will be able to see your palm being tracked in this camera window. The top right corner will show you the number of upright fingers and the names of the upright fingers.

Libraries used-> opencv(cv2), mediapipe, math.

About

Program to count the number of upright finger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published