draw_with_everyday_object

Click on Image to start the Video
(I may add that we clearly don't add radish to the picture but a reddish color ;-) )

Drawing with everyday objects

This patch enables you to use any kind of object to draw onto the screen. With a pippetfunction you can set the colors that are to be tracked. After that, just move the object in front of the camera to draw. Notice how the drawing style changes depending on the size of the object that you use. A right click on the screen serves as rubber function deleting everything that has been drawn so far.

Download: Patch

Simply calibrate your Camera as explained here (link to be added). Enable the camera and you are ready to go. For an easy use, try a white background and easily distinguishable colors.
Otherwise you have to carefully calibrate the TC Tolerance of the ColorTracker node as shown here (link to be added).
To select different colors just hold any color into the camera view and use your mouse to move the white circle onto the camera. Press then either c+1, c+2, c+3 to save the colors to the respective ColorSelector Output.

There were some tweaks made in the subpatches WidthHeight and ChangeColor.

WidthHeight calculates the surface area of all objects that are tracked and returns the largest surface area as well as the respective object number (0,1,2). Objects that are not tracked have a surface are of 1(minimum).
This is done to ensure that minor background trackings (e.g. red spot on a picture in the background) don't change the color that is supposed to be drawn.

ChangeColor returns 0 if no color is tracked. Otherwise it returns 1. This is needed because of some difficulties that one gets with using the WidthHeight subpatch:
It ensures that the color doesn't change if no object at all is tracked. This could happen in the WidthHeight patch if all objects have the same surface area (eg. no object is tracked, all have a surface area of 1).


The DrawSmooth Patch that has been used for making these drawings can be downloaded here.

Have fun!

draw_with_everyday_object.txt · Zuletzt geändert: 2018/12/03 09:43 (Externe Bearbeitung)