A simple application of computer vision using OpenCV library in ubuntu 14.04 LTS. Also works in Ubuntu 16.04.
- OS: Ubuntu 14.04 or 16.04 (Tested for these two)
- OpenCV Library: https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
$ g++ -ggdb vdp.cpp -o obj `pkg-config --cflags --libs opencv`
$ ./obj
The program uses thresholding function to detect marker in its environment.Then centroid is determined using moments of image. The value corresponding to pixel is changed giving desired color.
- Marker size can be increased to give strokes of different width.
- Any color can be chosen for the stroke.
- Eraser can be used with variable radius.
- Marker start drawing only when it is within certain distance from camera.
- You can easily save the drawing.
Enjoy Drawing!