GitHunt
IM

imneonizer/How-to-find-if-an-image-is-bright-or-dark

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.

No README found.

Contributors

Created June 26, 2019
Updated September 11, 2025