View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Virtual Painting

4.8 | 9 ratings Rate this file 22 Downloads (last 30 days) File Size: 3.1 KB File ID: #41014 Version: 1.0
image thumbnail

Virtual Painting


Arindam Bose (view profile)


Paint only using your finger tips to the computer screen and do many things with user friendly GUI.

| Watch this File

File Information

This program detects user's finger's position by red color recognition and paint in a white space. The default color is blue. Color can be changed to any color. A basic GUI is made to save the picture in JPG, PNG and BMP format.


41 Complete Gui Examples and Tracking Red Color Objects Using Matlab inspired this file.

Required Products Image Acquisition Toolbox
Computer Vision System Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (15)
20 Dec 2016 Linh Nguyen

I can't play, it don't display camera, how I draw by finger ??
Plz support, email :

Comment only
24 Feb 2016 ibrahim ATLI

wonderful program
wonderful programer

16 Jan 2016 Zach JIANG

09 Apr 2015 Zihang Wei

23 Jun 2014 Suhas Yelluru

Can someone help me understand how this works? I'm trying to use the intermediate output and map it onto something else, so finding and tracking the finger and the position of the finger is what I'm interested in.
I'm not a veteran in MATLAB, as a result this naive question.

29 Mar 2014 Deepak

Deepak (view profile)

08 Jan 2014 jaya

jaya (view profile)

18 Sep 2013 Brenita

Hi, awesome code,
but I'm getting this error..

??? The class "imaq" is undefined.
Perhaps Java is not running.

Error in ==> DrawMe at 49
vidDevice = imaq.VideoDevice('winvideo', 1, 'YUY2_640x480', ...

how do I solve this?
Please help, I'm new to MATLAB

19 May 2013 Ale Marco

you got idea how to do it?

Comment only
08 May 2013 Ale Marco

yes, I saw the video, but I want to paint on the video window "Final Video" and then erase it as video:

Comment only
05 May 2013 Arindam Bose

Arindam Bose (view profile)

@ Ale Marco: watch this video:

Comment only
05 May 2013 Ale Marco

Hi! How i can create a virtual painting based on your code? Please help me.
Looks like this:


22 Apr 2013 Arindam Bose

Arindam Bose (view profile)

Guys, who are downloading the submission, if you like it, please comment or star it.

Comment only
30 Mar 2013 Arindam Bose

Arindam Bose (view profile)

Watch Video Tutorial here:

Comment only
30 Mar 2013 Fiem

Fiem (view profile)

Ohhh, Thanks a ton...

Contact us