Exposure Time, Gain and Motion Blur
Triggering decides when the shutter opens; exposure decides how long it stays open. Both errors end up in the same place — a smeared edge that the algorithm then reports with full confidence. Motion blur is the easiest of the two to reason about, because it is pure arithmetic and the numbers are all known before anything is bought. The usual mistake is not miscalculating it but never calculating it at all, and then discovering it at the acceptance run when the line is finally running at speed.
Key takeaways
- Smear in pixels equals object speed times exposure time divided by object pixel size.
- Fix the exposure time from the speed and the required accuracy; brightness is what remains to be solved.
- Gain amplifies the signal and the noise together. It is the last lever, not the first.
- Auto-exposure retunes itself as the scene changes, so identical parts stop producing identical images.
Exposure time and trigger timing produce the same class of failure — an edge that is not where the algorithm assumes it is — but exposure is the easier one to reason about, because it is arithmetic with numbers you already know. The length of the smear is decided entirely by how far the part travels while the sensor is collecting light. Nothing about the algorithm, the lighting or the resolution changes it. Which means it can be calculated at selection time, from the line speed, and never has to be discovered on site.
The blur formula
Smear in pixels equals the object speed in millimetres per second, multiplied by the exposure time in seconds, divided by the object-space pixel size in millimetres per pixel. All three quantities come from the specification: the speed from the conveyor or the indexing table, the exposure from the camera setting, and the pixel size from the field of view divided by the sensor width. Take a line running at 300 mm per second with an exposure of 500 microseconds. The part travels 0.15 mm during the exposure. If the object-space pixel size is 0.05 mm per pixel, that 0.15 mm covers three pixels — the edge is no longer an edge but a gradient three pixels wide.
That number has to be compared against what the inspection actually needs, and this is where the conversation usually goes wrong. Sub-pixel edge detection can locate an edge to a quarter of a pixel or better on a sharp transition. Three pixels of smear does not merely add error to that, it removes the sharp transition that sub-pixel estimation depends on. The requirement is therefore not "blur smaller than a pixel" but "blur negligible compared with the sub-pixel accuracy claimed", which in practice means keeping the smear below about a quarter of a pixel for dimensional work.
| Object speed | 100 µs | 500 µs | 2 ms |
|---|---|---|---|
| 50 mm/s | 0.10 mm = 2 px | 0.50 mm = 10 px | 2.0 mm = 40 px |
| 300 mm/s | 0.03 mm = 0.6 px | 0.15 mm = 3 px | 0.6 mm = 12 px |
| 1000 mm/s | 0.10 mm = 2 px | 0.50 mm = 10 px | 2.0 mm = 40 px |
| 3000 mm/s | 0.30 mm = 6 px | 1.50 mm = 30 px | 6.0 mm = 120 px |
Solve exposure first, then brightness
The right order is the opposite of the intuitive one. Work out from the speed and the required accuracy the longest exposure the task can tolerate, set that as a fixed ceiling, and only then ask how to get enough light within it. Brightness has several levers and they are not equivalent. Opening the aperture gathers more light without any cost in time, but it reduces depth of field, which matters when the part height varies. Increasing the source output is usually the cheapest and most reversible. Extending the exposure is not available, because the ceiling was set by the physics of the moving part.
Gain sits last in that list and it is routinely used first. Gain multiplies the signal and the noise equally, so it brightens the image without improving the signal-to-noise ratio at all; it moves the histogram to the right while making every grey level less certain. A station running at high gain will pass acceptance on a clean sample and then produce unstable grey levels on a slightly different surface. If a design needs significant gain to reach a usable brightness, the real problem is the light, and adding light is almost always cheaper than the consequences of the gain.
Sequential readout inverts the intuition
A sensor with sequential readout exposes and reads its rows one after another rather than all at once. The consequence is counter-intuitive: shortening the exposure does not eliminate distortion on a moving part, because while the rows are being read the part keeps moving, so the top and bottom of the image are captured at different positions. The part is sheared even though no individual row is blurred. For a part moving across the field of view this appears as an apparent skew; for a rotating part it appears as a warp. A sensor with simultaneous exposure avoids this entirely. Whether that matters depends on the part, but the test is decisive: image a part while the line is moving and look at a feature that should be a right angle.
Common questions about exposure
Can the smear be removed in software?
Deconvolution can partly reverse a known, uniform blur, and it amplifies noise in the process. It is not a reliable fix for a production verdict, because the blur depends on the speed at the moment of capture, which varies. Remove the smear physically by shortening the exposure or slowing the part, and treat software correction as an emergency measure rather than a design choice.
Is there a rule of thumb for the exposure ceiling?
A useful starting point is that the part should travel less than a quarter of an object-space pixel during the exposure. It is a rule of thumb, not a standard, and it should be tightened for dimensional measurement and can be relaxed for presence and absence checks where a full-pixel smear is still harmless.
Which is better, a brighter light or a more sensitive sensor?
For a moving part, a brighter light, because the sensor sensitivity does not shorten the exposure requirement — it only means less light is needed to fill the same exposure. The exposure time is set by the speed, and only the light and the aperture change how much signal arrives within it.
How fast does your part move?
Give us the line speed and the accuracy you need, and we will work out the exposure ceiling and whether the lighting is sufficient inside it.
Related articles
-
Alarm Fatigue: Why the Floor Turns the System Off
Many visual SOP systems are not beaten by technical problems — they are muted by…
Read more → -
Visual SOP Camera Selection and Mounting
Camera selection for visual SOP is not the same as for product inspection. The s…
Read more → -
Vision Monitoring at the Semiconductor Die Bonder
Semiconductor packaging stations are characterised by high precision, fast cycle…
Read more → -
Wrong-Assembly Alarms Without the False Alarms
The most common reason a visual SOP project fails is not poor recognition — it i…
Read more →
Need specific advice for your production line?
Our engineers can share practical approaches to process error prevention and SOP compliance inspection for your scenario.
Request a free trial plan