Skip to content

Draw on screen with RGB colors using Hand Detection by MediaPipe & OpenCV libraries for Python

Notifications You must be signed in to change notification settings

Paritosh-J/virtual-painter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Painter

What it does

An AI-based virtual painter that can be used to draw on screen with RGB colors.

How it works

  • Detects the Index & Middle fingers
  • Detects which finger pointing up
  • If Index Finger Up (☝) => Draw Operation : Draw on screen w.r.t finger's positon
  • If Index & Middle Finger Up (✌) => Select Operation : Select another color from the pallete

How to install

  • Install Python 3 in you system from https://www.python.org/.
  • Install the following libraries / packages using the command : pip install packageName
    1. cv2
    2. mediapipe
    3. math
    4. numpy
    5. os
  • Keep both the files along with the pallet folder in same directory.
  • Execute the main.py to run the program.

How is it built

  • Hand Detection Module : Class containing the methods to detect hands & hand's postion.
  • Python's cv2 and mediapipe libraries : Provide the modules and methods to get hand landmarks and draw shapes to mark them.

About

Draw on screen with RGB colors using Hand Detection by MediaPipe & OpenCV libraries for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages