API to tell the what is most color of what Wyze cam see's

Wyze cam’s are great, small and cheap.
There is a cool feature that could solved by them. Right now there are apps to change the color of hue lights/strips (Also other smart color lights) based on what a phone camera pointed at a TV see’s.
This enhances Movies and TV shows that you are watching and adds a cool home theater effect.
The issue is its a pain to have to setup your phone to point at the TV. Also you cant use your phone while using these apps. If Wyze could add something to its API that would tell what color its mostly seeing, these apps could use it to change smart light colors. Then you can just buy the cheap $20 wyze cam and point to the TV and keep it there.

I don’t know how this works, but sounds like a cool thing.