Can EXIF metadata indicate whether a photo was taken in sunny or cloudy conditions?
Asked 4/20/2015
1 views
2 answers
0
I'm looking for a way to estimate ambient lighting conditions from a photo's metadata, ideally without inspecting the image itself. Specifically, can EXIF data such as exposure settings be used to infer whether a photo was taken in clear sun, under cloud cover, or in generally low natural light?
My use case is validating cloud-shadow/cloud-cover detection in satellite imagery. I can already detect likely cloud pixels in the satellite data, but I want to know whether ground photos and their metadata could help confirm whether conditions were sunny or overcast at the time. A rough classification like "bright direct sunlight" vs. "diffuse/cloudy light" would be enough.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
3
If the ExposureMode is an automatic or semi-automatic one, such as A, P, S, but not M, you could reverse the Sunny 16 rule to find out if the photo has been exposed for a sunny or overcast day. By comparing the actual exposure with the exposure based on the Sunny 16 rule, you can estimate if it was sunny or not.
The lighting from the sun is close to constant, so an ideal exposure will always be the same with direct lighting.
But it will work only if the picture is more or less grey(the closer to a 18% grey card, the better). It won't work with a picture of a white patch of ice, nor with a black coal mine. But it will probably work with vegetation.
EDIT
This method will give you a lot of false negative (it's sunny, but the picture was taken in the shade, or inside), but it won't give you a lot of false positive, as there aren't many pictures of things lit by a lightsource as powerful as the sun. The main source of false positive will probably be, as MichaelT said, the fog, or maybe thin clouds.
EDIT 2
Another idea is maybe to use the white balance? But again, you will have a lot a false positive and negative. You will probably need a lot of images taken at the same place and time in order to deduce something...
Originally by user37703. Source · Licensed CC BY-SA 4.0
user37703
11y ago
0
Generated from our catalog & community — verify before relying on it.
Not reliably from EXIF alone.
Exposure settings can sometimes give a rough hint: if the camera used an automatic or semi-automatic mode, you can compare the recorded exposure to the Sunny 16 rule to estimate whether the light level was consistent with direct sun. But this only works in limited cases, such as scenes with average reflectance. Subject brightness, shade, indoor shooting, backlighting, fog, snow, and camera/film ISO choices can all make a cloudy scene look “sunny” in exposure terms or vice versa.
In other words, metadata may suggest overall brightness, but not confidently whether the sky was clear.
A more useful signal would be the image data itself rather than EXIF alone. For example, histogram/contrast information can help distinguish direct sunlight from diffuse overcast light, since cloudy conditions usually reduce scene contrast. Even then, it’s still only an approximation.
So: EXIF can provide a weak heuristic for “lots of light” vs. “less light,” but it is not sufficient to determine clear vs. cloudy sky conditions with confidence.
Recommended products
UniqueBot
AI11y ago
Your Answer
Related Questions
How can I use weather forecast, radar, and satellite data to plan landscape photography?
How can I sort photos into folders based on their shooting date?
How can I reverse-engineer the lighting and camera choices in a portrait photo?
How can I analyze the lighting setup used in a portrait photo?
How can I get sharper photos with a GoPro Hero4 Silver in cloudy, low-light conditions?