Skip to content

Commit 53c9303

Browse files
Create README.md
1 parent 320a4bf commit 53c9303

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

GAMES/VirtualHandPainter/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# HandPainter
2+
![Virtual_Hand_Painter](https://user-images.githubusercontent.com/59937191/170613993-6a08904e-e1cc-4032-9f52-6b9b5e4e662f.png)
3+
4+
## Installation
5+
There are a few things to install when using this program!
6+
````bash
7+
pip install opencv-python
8+
pip install pygame
9+
pip install pyautogui
10+
pip install mediapipe
11+
````
12+
13+
## Imports
14+
````Python
15+
import cv2 as cv
16+
import mediapipe as mp
17+
import pygame
18+
import math
19+
import pyautogui
20+
import os
21+
````
22+
23+
## What is this?
24+
Use your thumb and index finger to draw onto your computer screen. By bringing your index and thumb finger together, it will allow you to draw onto a whiteboard, displayed on screen. Users can take screen shots of their work by moving their index finger together beside their middle finger tip. Within a certain distance screen shots will be taken aswell as drawing.
25+
26+
27+
![visual](https://user-images.githubusercontent.com/59937191/170798233-c10752d2-6df0-4349-a9b5-fd96902c3489.png)
28+
29+
30+
## Inspiration
31+
This project was made integrating computer vision and pygame!
32+
I first got this idea, after I worked on a similar project called "Catch me if you can". The goal of catch me if you can was to mov a 2d square around your screen, by controlling it through your hand. This was a very interesting project I developed with my cousin, that eventually lead me to take on this new one. After learning open CV, I decided to create an application, where users could draw onto their computer screen, if they didn't have a mouse. This would finally allow users to have precise drawings all without having to spend money on a stylus or mouse!
33+
34+
## What I learned
35+
Through this project I learned more details about Pygame, and open CV. Aswell as enhancing my experience with Python, I was able to learn how to use generators effectively. This project taught me many applications of mathematical equations learned in school, such as the distance formula. Lastly, I was able to learn how to create screen shots through Python, through the windows machine. This project allowed me to become more comfortable using the "OS" module in Python, as I was able to experiment through grabbing the users directory, and allowing images to be saved on that pathway, if they want to take a screen shot.

0 commit comments

Comments
 (0)