
RGB lighting is cool, but choosing a color can be challenging. Why not let AI decide if you’re having trouble settling on a color? That’s precisely what maker and developer Mohammad Reza Sharifi has done with his latest Raspberry Pi project. In this case, Sharifi is using AI to detect emotions and change the color of an RGB light based on the detected emotion.
The processing starts on a separate PC running Microsoft VS Code and handles the AI processing using OpenCV and Deepface library. Sharifi uses a video slideshow with pictures of different emotions to demonstrate the project. The PC determines what emotion is likely being conveyed and then sends a command to the Pico to change the color of the light.