Cameras & sensorsHow-to

Set an auto exposure brightness target for inspection

Set an auto exposure brightness target using supported controls, then check exposure limits, gain, clipping and settling under production lighting.

LumaSpec Vision10 min read Share on LinkedIn

On this page 9 sections
  1. 011. Define what needs to become brighter
  2. 022. Discover the supported target control
  3. 033. Check the limits before raising the target
  4. 044. Raise the target in controlled increments
  5. 055. Verify settling under representative lighting
  6. 066. Check the acquisition architecture before choosing parts
  7. 077. Recognize when a higher target is the wrong answer
  8. 088. Acceptance checklist and next step
  9. 09Questions

A camera can hold image brightness steady and still produce an inspection image that looks too dark. The automatic controller may be working correctly against a target that does not suit your part, lighting or measurement region. Restarting the camera does not change that target reliably.

For inspection integrators, the useful approach is to find the supported brightness setpoint, adjust it in a controlled test, and verify what happens to exposure time, gain and highlight detail. The procedure below separates a low target from an exposure limit, a metering problem and a display-only difference. It also shows when fixed exposure is the better choice.

1. Define what needs to become brighter

  1. Save a representative image and identify the inspection region before changing any automatic controls.

Use an image containing the actual part and background, not an empty scene. Record the pixel format, exposure time, gain and automatic-control states. Keep the lens aperture and illumination unchanged during the initial comparison.

Distinguish the region used to calculate brightness from the region used to inspect the part. A small dark feature against a large bright background can remain dark even when the controller reaches its target. Raising the target may then saturate the background without improving the feature enough.

Measure at least these quantities:

  • Mean or median intensity within a fixed inspection region.
  • The fraction of pixels at the maximum output value.
  • Contrast between the feature and its immediate background.
  • Exposure time and gain associated with each saved frame.

A brighter preview is not necessarily a better inspection image. Display gamma, automatic contrast and color processing can alter appearance without providing more useful sensor information. The guide to industrial camera image quality settings explains how exposure, gain and image processing affect that distinction.

For a color image, also check individual channels. A highlight can lose useful color information before the displayed image appears completely white. Read which pixels automatic exposure and gain evaluate on color cameras when channel weighting or the measurement statistic is unclear.

2. Discover the supported target control

  1. Open the manufacturer's supported configuration application and inspect the selected sensor's automatic exposure controls.

Look for a documented control described as target brightness, target intensity, mean intensity setpoint or an equivalent term. These are descriptions to search for, not universal API identifiers. Some devices expose no adjustable target, and others provide different controls for different image streams.

Before changing anything, establish:

  • Whether the setting belongs to the intended sensor or stream.
  • Whether automatic exposure must be enabled before the setting becomes writable.
  • The allowed range, increment and units or normalization.
  • Whether automatic gain shares the same brightness target.
  • Whether acquisition must stop before changing the setting.
  • Whether changes persist through a restart or require a documented save operation.

Do not interpret a target value as a pixel level unless the documentation explicitly defines it that way. A normalized target, percentage and output-image code value are not interchangeable.

When implementing the change through an API, discover the feature through the documented feature map or option enumeration. Check availability and writability, query its range, write an allowed value, then read it back. Avoid copying a feature name from another camera family.

Readback proves that a setting was accepted; it does not prove that a particular frame used the new setting. Configuration timing is a separate issue, covered in applying camera settings while streaming without stalling capture.

3. Check the limits before raising the target

  1. Record the automatic exposure and gain limits, then compare them with the values reached in the dark scene.

If exposure time is already at its upper limit, increasing the target may accomplish nothing. If automatic gain is also enabled, the controller may increase gain instead, changing noise and measurement repeatability. The control priorities depend on the implementation; do not assume exposure always changes first.

Choose the exposure ceiling from motion and timing requirements, rather than from desired brightness alone. A useful estimate for motion blur is:

image scale = horizontal field of view / horizontal pixel count blur in pixels = object speed × exposure time / image scale maximum exposure time = allowed blur × image scale / object speed

For example, suppose an application covers 200 mm across 2000 pixels. The image scale is 200 / 2000 = 0.10 mm per pixel. At an object speed of 500 mm/s, a one-pixel blur allowance gives:

maximum exposure time = 1 × 0.10 / 500 = 0.00020 s = 0.20 ms

An exposure of 2 ms would produce approximately 10 pixels of blur under the same assumptions. Increasing the brightness target cannot make that exposure acceptable for a sharp edge measurement.

This estimate assumes constant motion perpendicular to the viewing direction and does not account for rolling-shutter distortion. It is a starting limit, not a complete imaging model.

Frame timing creates another restriction. At 50 frames per second, the frame period is 1 / 50 = 0.020 s, or 20 ms. The supported exposure ceiling may be lower depending on readout and trigger configuration. Check actual acquisition timing rather than assuming exposure can occupy the entire period.

If the configured limit and observed limit disagree, use the checks in automatic exposure upper limits and startup settings. For unfamiliar exposure or gain scales, consult camera exposure and gain units before converting values.

4. Raise the target in controlled increments

  1. Increase the supported target gradually while holding the scene, lighting and metering region fixed.

Use increments appropriate to the documented range. Do not prescribe the same numerical step across cameras with different target scales. After each change, allow the controller to settle and capture a short sequence rather than judging a single preview frame.

The table below uses hypothetical measurements from an 8-bit output image. The labels describe successive target adjustments, not actual camera setting values.

Trial Inspection-region mean Pixels at maximum output value Interpretation
Starting target 70 0.0% Dark appearance, with highlight headroom
Moderate increase 105 0.1% Candidate setting if feature contrast improves
Large increase 145 5.0% Examine lost highlight detail before accepting

For the first increase, the measured mean ratio is 105 / 70 = 1.5. Under fixed illumination, fixed gain, negligible offset and linear unsaturated response, this would suggest roughly 1.5 times the exposure time. It is only an estimate: an automatic controller may change gain, use a different region, or evaluate a different brightness statistic.

Do not require a universal mean intensity or clipping percentage. A deliberately bright background may tolerate clipping, while a reflective feature used for measurement may tolerate none. Inspect where clipped pixels occur, not only their total count.

Stop increasing the target when task performance stops improving. For an edge measurement, compare edge location and repeatability. For a defect test, compare feature-to-background separation on representative good and defective samples.

If each target increase produces more glare instead of better feature contrast, change illumination geometry before raising the target again.

5. Verify settling under representative lighting

  1. Test transitions between representative lighting conditions and record the recovery sequence.

Include the darkest expected condition, the brightest expected condition, and a change between them. Where applicable, repeat with different part finishes, background coverage and part positions. Keep the metering region fixed during this test so that the target adjustment remains the variable under evaluation.

Define a settling criterion before collecting data. For example, an application might require the inspection-region mean to remain within 5% of its settled value for 10 consecutive frames. Those figures are example acceptance criteria, not camera specifications; tighten or relax them according to the measurement's sensitivity.

Record exposure, gain, brightness and clipping together. A stable mean with alternating gain and exposure can still produce inconsistent noise or motion blur. Use per-frame exposure and gain metadata where supported, and correlate it with frame identifiers rather than assuming the most recent setting applies immediately.

Measure settling from acquired images, not from a fixed delay guessed during development. Then budget acquisition, transport and processing time around the measured behavior. Reject or mark frames captured during a transition if they do not meet the inspection criteria.

A dark first frame can be a separate synchronization or initialization problem. Follow first-frame exposure settling and light timing checks instead of compensating for that symptom with a permanently higher target.

6. Check the acquisition architecture before choosing parts

The target-setting procedure applies only when the selected device exposes the necessary controls. Category membership, interface and resolution do not establish automatic exposure feature support.

For host-based acquisition, compare area scan cameras through the camera finder. For inspection performed on the device, consider smart cameras, while checking how each device handles target brightness, saved jobs and runtime changes.

The LS-CMR-0053 is a GigE area scan camera. It is a starting point for discussing host-based acquisition requirements, not confirmation that it exposes a particular target control.

Area scan cameras12 MP GigE area scan camera, IMX226, 1/1.7" rolling shutter, 9 fps (LS-CMR-0053)LS-CMR-0053
Sensor format
1/1.7"
Lens mount
C-mount
Interface
GigE
Resolution
12 MP
$560.00View partBuild a system with it

The LS-SMC-0063 is a GigE smart camera. Confirm the documented inspection and brightness-control workflow before selecting it for this task.

Smart cameras & vision sensors1.6 MP smart camera, 60 fps, 16 mm lens, white light (polarized, transparent light) (LS-SMC-0063)LS-SMC-0063
Interface
GigE
Resolution
Up to 3 MP
$1,110.00View part
Code readers & vision sensorsSmart cameras & vision sensors

Inspection on the device, no PC

350 models · from $169.00

When evaluating 3D sensors, identify which image or measurement stream the setting actually controls. A brighter texture image does not demonstrate better depth data. Evaluate depth validity and measurement repeatability separately, and change active illumination only through documented controls.

Before ordering, request confirmation of target availability, writable conditions, exposure limits, gain behavior and parameter persistence for the exact device. A successful demonstration should use your representative parts and lighting transitions, not merely a static bright scene.

7. Recognize when a higher target is the wrong answer

  1. Compare automatic control with controlled lighting and fixed exposure before committing the inspection recipe.

Automatic exposure is useful when illumination genuinely varies and the inspection tolerates changing exposure or gain. It is less suitable when motion blur, edge position or intensity thresholds must remain tightly repeatable.

Choose another intervention when the evidence points elsewhere:

  • Exposure is at the motion limit: increase useful illumination or reconsider the optical setup rather than extending exposure.
  • Bright background dominates metering: use a supported fixed measurement region or revise the scene geometry.
  • Target changes cause clipping: reduce glare or dynamic range before increasing brightness further.
  • Gain changes destabilize detection: constrain gain where supported and compare noise across the allowed range.
  • Lighting is stable but measurements wander: test fixed exposure, fixed gain and fixed image processing.
  • The target is not adjustable: use documented automatic modes or a manual exposure workflow rather than an undocumented control.

If a detected object continually changes the metering region, the brightness controller and detector can influence each other. The article on automatic exposure ROI instability from detection feedback addresses that separate control-loop problem.

For fixed exposure, disable the relevant automatic controls as documented, write the settings, and verify readback and acquired images. Follow the GenICam exposure-time workflow for the programming sequence. An automatic iris, where present, also needs consideration; the guide to iris, exposure and gain control explains their different effects.

8. Acceptance checklist and next step

Before releasing the recipe, confirm each item:

  • Correct control: the setting belongs to the intended sensor and stream, with documented units and range.
  • Accepted value: readback agrees with the requested target, and restart behavior is understood.
  • Safe exposure ceiling: the allowed exposure meets motion and acquisition-timing requirements.
  • Controlled gain: noise remains acceptable throughout the permitted gain range.
  • Preserved detail: critical feature pixels remain usable under the brightest expected condition.
  • Measured settling: transition frames are identified and excluded when necessary.
  • Inspection evidence: representative samples pass repeatability and defect-detection checks.
  • Saved configuration: the application records target, limits, metering region and automatic-control states together.

Start a camera configuration with your field of view, object speed and required exposure ceiling. If target-control support is uncertain, use application support to confirm the documented feature set before choosing hardware.

Build the whole station

The configurator matches a camera, lens, light, light controller and cables to each other, step by step, and lists only parts that fit what you already picked.

Start with the camera

Questions

How do you make automatic exposure produce a brighter image?

Increase the documented target-intensity setting if the selected sensor exposes one. Confirm its range and writable conditions, make a controlled adjustment, and check the acquired images after settling. If exposure or gain has already reached its allowed limit, a higher target may not increase brightness.

Is the brightness target the same as exposure time?

No. A brightness target is the controller's desired measurement, while exposure time is one variable it may adjust to reach that measurement. Depending on the device and enabled controls, gain or other settings may also change. Always evaluate the resulting exposure, noise and highlight detail.

Should you reset the camera when automatic exposure looks too dark?

A restart may reinitialize the controller, but it does not necessarily change the saved target, metering region or exposure limits. Check those settings first. Use a restart only when the manufacturer's documented procedure calls for it, then verify configuration and recovery on acquired frames.

When is manual exposure better for inspection?

Use fixed exposure when lighting can be controlled and the inspection needs repeatable blur, noise or pixel intensities. Validate the setting against expected part variation and illumination drift. If the scene changes substantially, automatic exposure may remain useful, provided its limits and settling behavior meet the inspection requirements.

Does a brighter image improve a 3D sensor's depth measurements?

Not necessarily. Texture brightness and depth quality can depend on different sensors, streams and controls. Verify which stream the target affects, then evaluate depth validity and dimensional repeatability independently. A brighter visible image alone is not evidence that the depth measurement improved.