Can anybody give some guidance on how to create a mood light based on the input from a camera.
For example: I set up a small camera facing my tv and get the most prominent color of the screen, then I transfer that color to an LED strip, like an ambilight but simpler version.
Probably that he needs magic dust code for it to work.
But really, that's more a task for a computer. You can use a RPi but I would not expect a to high of a rate. Think you would need something more powerful. Although, parse it to a single color might be possible. BUT, different lighting condition will make it a pain
A camera is probably the hardest way to detect color and it's going to require some "special hardware" depending on what kind of connection your camera has.
[u]Google Ambilight[/u]. (When I did that, I see that Adafruit has a kit, but I don't know how they detect the colors.)
My research told me that a lot of people are doing the ambilight thing with the pi, converting the video signal from 1080 to RCA and then passing it to the pi, but the cost of doing it with a 4k source is a lot more.
I don't have problems with the code, I can do it for sure; but don't know almost anything about electronics. For sure different light conditions will affect but I should be able to compensate. It doesn't need to be very accurate, just able to take the image from the camera, divide it on lets say 10x10 matrix, get an average color and set the LEDs with a single color.
Anyway I'm not planning to sell ambilights clones or anything like that, its just to illuminate the cabinet under my tv with a light related to what's on the screen.