inicio email me sindicaci;ón

AS3 Webcam Drawing

AS3 Webcam Drawing, originally uploaded by NymphoBrainiac.

Expounding on my AS3 webcam motion detection experiments I’ve designed and built a prototype for an installation that allows a person to draw on a wall using their limbs.

The concept is to allow human interaction to affect physical space, freeing oneself from all traditional user interface. The application works by constantly monitoring a webcam, taking snapshots of each frame. Those frames are then constantly drawn to a bitmap data object. Then each pixel in each frame is monitored by comparing the pixels in the current frame to the pixels in the previous one. The difference in brightness within each section determines whether or not motion had occurred in this area of the screen. If motion is detected the coordinates of a rectangular grid around said motion is recorded and the drawing begins. To slow down the drawing I draw at the x and y coordinates of the white ball which is tweened with easing rather than drawing directly where there are points of motion.

Thanks to steve for filming and editing this video, asluv for the laser drawing class and NORTH for being forward thinking enough to encourage digital experimentation.

You can try the experiment small scale and online here: AS3 webcam drawing

grrmoose said,

October 6, 2008 @ 4:02 am

Great work! Would you by any chance going to share the trick ? Currently, following soulwire’s example, it seems to take the whole area of motion. But your drawing application seem to following to the last piont of motion. It seems ‘more’ accurate. If u can share that’ll be great! :) Thx for the inspiration!

tebor said,

October 16, 2008 @ 5:55 pm

Thanks for the comment. Since my work is being done for North I’m not at liberty to share the complete code. I can say that I follow Soulwire’s work closely and we dont differ that much from our approach right down to code.

RSS feed for comments on this post · TrackBack URI

Leave a Comment