Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
umar07 committed Mar 19, 2021
1 parent ec98698 commit 13b11b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Air-Piano/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ Air Piano is a computer vision based project that allows you to play a virtual p
* First, the hand is detected using the the black color mask we created using the HSV scale. For this purpose, I chose to wear a pair of black gloves because detecting the skin color was comparitively tougher and would have deprived the project from generalisation.

* After the hand is detected, we draw a convex hull, to find the surrounding convex polygon. From this polygon we extract the finger-tips using the convexity defects function. The convexity defect function returns three points out of which our interest is only in the first set of points.(Read more through the links)

There is also a filter applied to get just the fingertips using the distance between the points, while you may also chose to use the angle between the fingers to achieve the same.

* The last part includes the PyAutoGUI library which allows you to do the keyboard operations depending on the co-ordintates of you hand movements(fingertips to be precise).

![Demonstration](Air-Piano/airpiano.png?raw=true "Demonstration picture")
![Demonstration](https://github.com/umar07/OpenCV-Projects/blob/main/Air-Piano/airpiano.png?raw=true "Demonstration picture")


The following are the sources I used to learn and that helped me build this project successfully-
1. [Finger-tip detection](https://docs.opencv.org/master/dc/da5/tutorial_py_drawing_functions.html)
1. [Finger-tip detection](https://abnerrjo.github.io/blog/2015/11/15/fingertip-detection-on-opencv/)
2. [Convex Hull](https://docs.opencv.org/3.4/d7/d1d/tutorial_hull.html)
3. [convexity Defects](https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_contours/py_contours_more_functions/py_contours_more_functions.html)
3. [Convexity Defects](https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_contours/py_contours_more_functions/py_contours_more_functions.html)
4. [Hand Detection](https://medium.com/analytics-vidhya/hand-detection-and-finger-counting-using-opencv-python-5b594704eb08)

0 comments on commit 13b11b4

Please sign in to comment.