DIY Bias Lighting - HerbFargus/Wikis GitHub Wiki

The idea of bias Lighting is to have an array of LED's behind your display to reflect the content of the tv.

There are a few implementations eg ambilight, hyperion, Phillips hue but I wanted to try and make one myself.

I dont have a full LED array yet but I did buy a blinkt module for my raspberry pi to first see if it would even be possible.

My blinkt module has an array of 8 RGB LEDs and it's mounted on the right side of my television. So if I can get each LED to reflect a section of the right side of my screen it might scale up to more.

Ideas of how to implement it:

  • find a way to get raw real time rgb values of each pixel
  • use something like raspi2png and constantly take new screenshots and poll 8 pixels at even intervals
  • something ai related, computer vision. Idk.

Some things to also consider is the processing overhead on something underpowered like a pi.

Ideally I want to use python.

Look into pillow https://pillow.readthedocs.io/en/stable/

Also could utilise numpy and opencv

Another idea is to have the cursor drive the rgb values for where the mouse is.

https://stackoverflow.com/questions/1605350/how-can-i-grab-the-color-of-a-pixel-on-my-desktop-linux

Or https://stackoverflow.com/questions/22099801/shell-command-to-get-color-under-mouse-cursor-xorg