Skip to content

master-gamer360/mediapipe-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libaries:

opencv-python

Open Computer Vision

A computer vision library used for all sorts of things I use it to read the camera frame-by-frame

download command

pip install opencv-python
mediapipe

mediapipe

Mediapipe provides pre-trained models for human posture estimation and when used with opencv it can be used for live estimation.

download command

pip install mediapipe
numpy

numpy

I don't know much about it but I used it to create empty windows I can put my mediapipe things in without the real stuff.

download command (but its one of the default libraries.)

pip install numpy
pynput

Pynput

A python library used to simulate things like mouse and keyboard clicks

i used this for the hand_wasd.py file to simulate the WASD keys when a certain gesture is applied

download command

pip install pynput
keyboard

Pynput

similar to pynput.

i used this for the volume.py program to simulate the volume up and down.

download command

pip install keyboard

files:

normal_count.py

normal_count.py:

it counts the ammount of fingers raised, works with both hands

binary_count.py

binary_count.py:

counts the binary of fingers, if thumb and ring is up, the decimal value is 9.

If you do not know how to count binary on your fingers, here's a video.

hand_wasd.py

hand_wasd.py

It uses hand gestures to play games that incorporate the WASD control scheme

the hand gestures of the left hand will appear right from the camera's prespective, so, keep that in mind.

volume.py

volume.py:

it allows you to control the volume by moving your thumb and index finger.

move them close to decrease, and move them further to increase.

I used the keyboard library for simulating the volume controls.

test files

face_hands_test.py

face_hands_test.py

a test for face mesh with hand estimation