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.