Closed chcore closed 1 year ago
I have used such dominant color extraction in the past and found that many implementations are based on a javascript implementation called Color Thief. They also have a live web demo.
Sadly I don't currently have the time to try and implement this but I thought I'd at least contribute a possible starting point.
Feature request
Let's say I have set up my smart bulb to display a color based on the content in the lower-right corner of the screen. The corner contains some red pixels and some blue pixels. My bulb lights up with a purple color, but this color is not in the picture at all. It should display either red or blue, based on which is more prominent or perhaps which is more prominent in the pixels closer to the edge of the screen.
What problem does this feature solve?
More accurate colors for light bulbs.
What does the proposed API look like?
Probably a toggle in the web interface when setting up LEDs
How should this be implemented in your opinion?
I don't know enough C++ to understand how Hyperion currently works, but I would imagine a simple implementation like:
Are you willing to work on this yourself?
Unfortunately I don't know enough C++, nor am I confident in my ability to code this with an acceptable hit to performance