color
Colour tracking with the webcam in Flash
Something I wanted to do for a while. Track a colour using your webcam in Flash. I draw the webcam into Bitmapadata so I can play around with it. If you take the getColorBoundsRect straight from the raw bitmapdata it will be very hard to get something useful as you just have to many single pixels and colours to analise. So I implement a little trick that makes it better to analise. First I blur the video so it smooths the colours. Then I turn it into a 8 channel image.
After that I just layer a fresh video feed that isnt distorted on top and start drawing based on the colour and position.
Enjoy! You can grab the source here if you want.
Tag Cloud
3d
25 lines
alice in wonderland
Arduino
as3
blog
ByteArray
challenge
code
color
colour
conference
conway
corn pops
crash
Digital Outlook
experiment
eye
face
fast
Flash
flash on the beach
flex
fotb
fun
game
game of life
hello world
image export
kaleidoscope
keith peters
microphone
miniclip
pan flute
papervision
rebuild
ring
sauron
theFactor.e
threshold
Tim Burton
tracking
tunnel
webcam
wordpress
Blogroll
- Bram Perry Fun with generative art
- Dino Burbidge My inspirational creative director from Digital Outlook
- James Alliban Guy that does cool webcam stuff with Flash
- Nic in Friesland Blog Blurbs and Recipes from the Middle of Nowhere
