Image selection & processing for drawing.

A key feature of our drawing machine is that it draws an image of the user that stands in front of it. To draw that image we need to use a webcam that captures the image and processes it to provide instructions for the machine to draw with.

The starting point of this capturing code is the OpenCV library with the face_detection code, with the example shown below.

Screen shot 2013-10-04 at 12.38.02 PM

Having the face detection working I wanted to capture the entire face of the user, thus enlarging the rectangle shown around the face. And have the result printed full screen in the sketch area. Because the code opens the camera through the OpenCV library it isn’t possible to directly read the pixels and modify them. To get the same result I saved the image object the OpenCV library presented, and then loaded it into the sketch to be modified to what I want. (See image below for development images).

Screen shot 2013-09-27 at 2.36.48 PM

The result is now that, whenever you click, the sketch searches for your face, saves it and displays it full screen. It always centers around the face of the user.

Screen shot 2013-10-04 at 3.25.29 PM

Now the image selection is completed the next step is to do the image processing to create patterns the drawing machine will actually draw.  How I process the image, like the example below, will define what and how the machine will draw. Being (contrast) lines, or black spots that form the image.












Screen shot 2013-09-13 at 4.45.22 PM

Screen shot 2013-09-13 at 3.11.55 PM


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s