How can I measure the level of ambient light from an image?

后端 未结 3 1925
隐瞒了意图╮
隐瞒了意图╮ 2021-01-20 20:01

I am looking at making an app that uses a camera to measure the amount of light present when an image is taken. Some conditional behavior would take place based on how much

3条回答
  •  -上瘾入骨i
    2021-01-20 20:39

    First random thought, something like a threshold filter to remove "objects" take whats left from the source image and threshold it again, count white vs black pixels, should give you a VERY rough idea of light vs dark. Thresholding

提交回复
热议问题