Camera Exposure and Computer Vision

What is Camera Exposure?

Exposure is the amount of light accumulated at the image plane during a single capture, set by the lens aperture, the exposure time, and the scene's luminance.

Exposure Value (EV) is a related but distinct quantity: a logarithmic camera-setting scale, not the accumulated light itself. In the APEX system, EV = log2(N²/t), where N is the F-number and t is the exposure time in seconds. The same EV yields different image-plane exposures as scene luminance changes. Sensitivity is not part of EV either: ISO enters the APEX equation separately, as the speed value Sv.

A series of gray patches is a common way to assess how an exposure rendered in a captured image. Exposure is not the "brightest bright" relative to the "darkest dark" of an image: that's dynamic range.

What is Exposure?

Correct exposure is important to all computer vision tasks as any over-exposure or under-exposure results in degradation of contrast and in extreme cases, a complete loss of information. Here is a picture of a simulated vehicle under various exposure values.

Even to the human observer, it is difficult to see details in over or under-exposed images.

What is Camera Exposure Value
Different Camera Exposures

Blasinski & Farrell, "Optimizing Image Acquisition Systems for Autonomous Driving"

Gain and ISO

Machine vision cameras usually have no ISO setting at all. They expose gain: analog gain applied to the pixel signal before the ADC, and digital gain applied to the digitized value afterward. The two are not equivalent, because where the gain acts relative to each noise source matters.

Analog gain amplifies the signal and its photon shot noise together, and because it acts before the ADC it shrinks the relative contribution of the noise added after the gain stage: ADC and quantization noise. Read noise accumulates across the reset, source-follower, column-amplifier, and ADC stages, so only the post-gain portion is suppressed; in a dim scene where those downstream terms dominate, a stop of analog gain can buy real SNR. Digital gain only rescales values that are already digitized, noise included, so it brightens the image without improving it.

Where a camera does offer ISO, treat it as a system-level rating rather than a raw gain knob: ISO 12232 defines digital-camera speed and exposure index from the processed output response, so two cameras at the same ISO number can apply different analog gains. ISO is what the APEX equation carries as the speed value Sv. Set the exposure time and the aperture first, add light to the scene if you can, and raise gain last, once a shorter integration time is the only way left to stop motion.

Exposure Has a Major Impact on Computer Vision and Machine Vision

Blasinski and Farrell demonstrated how the mean average precision of an SSD-MobileNet detector drops significantly with incorrect exposure. ResNet, the other network named in that work, is a classification backbone rather than a detector: it supplies features, and a detection head is built on top of it. Even after training with multiple exposure values, mean average precision dropped by 25 percentage points when over-exposed by four stops (four EV).

Computer Vision Degradation due to Exposure
Exposure and Machine Vision
References and Related Links Blasinski & Farrell, "Optimizing Image Acquisition Systems for Autonomous Driving"

Trying to Determine Your Camera Requirements?

Use our free web-based AoV Calculator to determine your system's Field of View Requirements. Then, use the M12 Lens calculator to match your requirements with the available lenses. Our Depth of Field Calculator also provides the hyperfocal distance and depth of field for every sensor and lens combination.

We also have a couple of other calculators that many engineers find interesting.

Start With These M12 Lenses. Filter All 80+ Optical Designs With the M12 Lens Calculator.

High resolution M12 Fisheye lens

CIL281-F1.8-M12A650

191°@6.4mm Fisheye Lens

$70.00

View details
DSL210 DSL224 2mm S-Mount Lens IMX335 Framos

CIL282-F1.8-M12B660

190°@6.8mm Fisheye M12 Lens

$49.00

View details
Basler Dart Camera IP67 M12 Lens

CIL034-F2.3-M12A660

Low Distortion 3.2mm M12 Lens

$39.00

View details
Wide-Angle 4mm M12 Lens

CIL339-F1.6-M12BNIR

Wide-Angle 4mm M12 Lens

$99.00

View details
6mm M12 Lenses S Mount Lens

CIL059-F1.7-M12B650

Low Distortion 6mm M12 Lens

$49.00

View details

We Also Have Cost-Effective 12MP+ C-Mount Lenses for Machine Vision and Factory Automation.

8mm C Mount Lens Kowa Computar 2/3"

CIL531-F2.8-CMANIR

8mm C-Mount Lens 2/3" 12MP

$149.00

View details
12mm C Mount Lens Kowa Lucid Vision

CIL532-F2.0-CMANIR

12mm C-Mount Lens 2/3" 12MP

$149.00

View details
16mm C-Mount Lens Kowa Computar Lucid Vision Edmund Optics

CIL533-F2.0-CMANIR

16mm C-Mount Lens 2/3" 12MP

$149.00

View details
25mm C Mount Lens Amazon

CIL534-F2.0-CMANIR

25mm C-Mount Lens 2/3" 12MP

$149.00

View details
35mm C-Mount lens Computar

CIL535-F2.0-CMANIR

35mm C-Mount Lens 2/3" 12MP

$149.00

View details
Lucid Vision Basler C Mount Lens IMX566

CIL536-F2.8-CMANIR

50mm C-Mount Lens 2/3" 12MP

$149.00

View details