Here were the steps we took to extract the average brightness of an image.

  1. Convert the image to HSV color space (the Value channel is an approximation for brightness)
  2. Sum up all the values of the pixels in the Value channel
  3. Divide that brightness sum by the area of the image, which is just the width times the height.

results matching ""

    No results matching ""