I have a project where I have to recognize the color of a dashboard light. For that, all different possibilities (not lit up, red, orange, blue, …) have been taken . Is also created the mask which is white on the interesting pixels and black on the background. All these images are saved on the SD card.
I need now to get the mean color in the mask so I have a reference value for each possibility and then calculate this on live to determine in wich state is the ligth.
How can I do that ?
Thanks to anyone who will take some time to help me.