How To Find If An Image Is Bright Or Dark Save

Input image is resized to 10x10 pixel, to reduce the computation, Convert it to LAB color space to access the luminous channel which is independent of colors, Normalize pixel values to be in range of 0 - 1. Compare the mean value of pixels with a threshold value.

Open Source Agenda Badge

Open Source Agenda Rating