Webcam and matrix output + LED
I'm trying to use the matrix data of a webcam feed to control a matrix of LEDs via Maxuino and an Arduino Mega. I've managed to config the Arduino environment and have Maxuino properly and test it.
My though is that i'd pixelate the webcam feed down to 8x8 blocks - i'm working with an 8x8 LED matrix [see my screenshot of where i'm up to].
Then, and this is where i'm totally lost, somehow evaluate the luminance of each individual 'pixel' and adjust the values being past to the LED matrix [via Maxuino].
What i guess i'm asking at the moment is is this the right approach for is there a better way of doing it. If it is the right way to go about it, how do i read the luminance of each of the pixels in the updated webcam feed.
Any help is greatly appreciated.
You can grab these values as a list using [jit.spill].
lh
Cheers Luke,
That worked a treat! below is a shot of what I've currently got. Now to figure out how to use the outputed matrix to control control the LEDs which are wired in colums and rows - via Maxunio. Any tips that might help would be great! :P
I'll post up the patch once/if i get it completed.
Does anyone know how i get this matrix [if that's the right way] to talk to Maxuino?
Also is there any way to just measure difference instead of luminosity? I think that might be a better approach.
Try checking out this monome patch.
I think it might help out with some ideas on how to do it.
cheers
This patch I built for a college project might help you in some way.