Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aneeshdurg/airpaint
A paint application that uses openCV and blob detection as the paint brush - see AirBrush
https://github.com/aneeshdurg/airpaint
Last synced: about 1 month ago
JSON representation
A paint application that uses openCV and blob detection as the paint brush - see AirBrush
- Host: GitHub
- URL: https://github.com/aneeshdurg/airpaint
- Owner: aneeshdurg
- Created: 2015-11-23T23:22:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T16:11:26.000Z (about 9 years ago)
- Last Synced: 2023-03-07T17:37:32.682Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 3.75 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AirPaint
Requires openCV, pygame, numpy and a working webcam (quality is not important).
It is reccomended that you are in a well illuminated environment while you use
AirPaint.A paint application that uses openCV and blob detection to replace the paint brush.
The frames captured from the webcam are first filtered for the color yellow and then
scanned for dark blobs. To change the color being filtered, run main.py with the
argument '-c' and enter the BGR values for the new color.To view the keypoints being detected, run main.py with the argument '-v'
By running main.py with the argument '-p', viewing the console while main.py is running
will show the coordinate of the brush with respect to your webcam
(as opposed to the pygame screen to which it is mapped).To view the keypoints being picked up and the coordinates of the keypoints, use the
argument '-a'To change the dimensions of the output window, use the argument '-s'
Controls:
Brush - your "brush" (*)
Lift/place brush - Return
Increase brush size - Up
Decrease brush size - Down
Reset brush size - Left or RightClear Screen - Backspace
Cycle through colors - Space
Disco mode - TabDraw Line - Hold brush still for 3s to start drawing a line, 3s to stop
Draw Shape - Hold brush still for 6s to draw a shape, move to another point to set the boundry for the shape and hold still for 3s.
Change shape - Press / to toggle between square and circle
Change to color:
Black - d
Red - r
Green - g
Blue - b
Yellow - y
Purple - p
Turquoise - tEraser - e
Save image - s (saves to Picture.bmp)Exit - Escape
*You need to make the brush. Mine is a yellow pen, with a black piece of paper attached to it.
![Brush](http://i.imgur.com/K6bKWJx.jpg "Brush")