A Soft Corner on a 5 MP M12 Module: Lens, Holder Tilt, or Sensor Tilt?
Start with the pattern, not the parts. If all four corners are soft and each one sharpens when you refocus it, the lens is...
read more…
Two cameras can share a trigger cable and still disagree about where a moving part is. A rolling-shutter sensor does not expose the whole frame at one instant; it exposes row by row, and while the rows are read the part keeps moving. The top of the image is captured earlier than the bottom, so a vertical edge on a moving part becomes a slanted edge, and a stereo pair records the slant in two different ways. The disparity map then carries a depth error that looks like a calibration problem but is really a timing problem. A lens cannot remove it, and changing the baseline does not remove it either. The decision is a sensor decision, made before the lens is chosen.
A hardware trigger starts the exposure at the same moment in both cameras, within the trigger jitter. That is the limit of what the trigger can guarantee. With a global shutter, every pixel integrates over the same interval, so the trigger time is also the exposure time. With a rolling shutter, the trigger starts a sequence of row exposures that runs across the frame, and each row starts and ends at a different moment.
The result is a time gradient down the image. A part that moves during that gradient is imaged at slightly different positions on different rows. The effect is small on a slow line and obvious on a fast one, which is why a stereo cell can pass a static calibration and fail on the first moving part.
The image sensor families used in industrial cameras include both shutter types, often in the same resolution and pixel size. The shutter type is a line in the datasheet, and it belongs in the selection record next to the resolution and the frame rate.
Take a vertical edge on a part that moves horizontally across the field. With a rolling shutter that reads rows from top to bottom, the top row is exposed first and the bottom row later. By the time the bottom row is read, the edge has moved further across the field. The edge appears slanted in the image, and the amount of slant is the part displacement during the readout divided by the row height.
The direction of the slant depends on the readout direction and the travel direction. A sensor that reads bottom to top on a part that moves left to right produces the opposite slant from one that reads top to bottom. That is why two cameras of different models can produce skews that do not cancel, even when both are labelled as rolling shutter.
A second effect is local distortion. A rotating part or a part with a curved surface moves at different speeds in different parts of the image, so the rows sample different phases of the motion. The result is not a simple slant but a shape error that cannot be corrected by a single affine transform. The depth-map tilt case shows how a pair mismatch can imitate a rig problem; the shutter is a second source of the same symptom.
Stereo depth comes from the horizontal difference between the same feature in the left and right images. Anything that shifts the feature in one image relative to the other changes the disparity and therefore the depth. A rolling shutter shifts features vertically as well as horizontally, and the two cameras in a pair are usually mounted with a horizontal baseline and the same sensor orientation, so their row timelines run in the same direction but start at slightly different times.
The timing difference between the two cameras is small, but the depth error is proportional to the disparity error at the working distance. On a part that moves at a constant speed, the pair sees two slightly different skews, and the matching algorithm may lock onto a feature that has moved vertically by a fraction of a row. The result is a depth bias that changes with belt speed, which is the signature to look for: a static target calibrates perfectly and a moving target reads deeper or shallower as the line speeds up.
The bin-picking optics case covers baseline and depth accuracy for a static scene. This guide covers the moving scene, where the sensor timing joins the geometry.
If the cell must measure depth on a part that moves during the readout, a global shutter removes the problem at the source. The cost is usually resolution, frame rate or price at a given sensor size, and the lens may need to cover a different format. That cost is easier to accept before the fixture is built than after the first speed increase.
A global shutter also simplifies the acceptance test. The lean measurement on a moving target should return zero within the pixel noise, and any residual is a trigger or calibration issue rather than a shutter issue. That separation is worth the sensor premium on a line that runs continuously.
| Decision | Rolling shutter | Global shutter |
|---|---|---|
| Static or slowly moving part | Acceptable | Acceptable |
| Part moves during readout | Skew and depth bias | No skew from readout |
| Stereo depth on a conveyor | Speed-dependent bias | Stable with speed |
| Short exposure at high light | Reduced but not removed | Removed |
| Cost and resolution choice | Often wider choice | Narrower at a given size |
| Acceptance test | Measure lean against speed | Lean should be flat |
A rolling shutter is not automatically wrong. On a slow line, the displacement during readout may be smaller than the pixel and lost in noise. A strobe that is much shorter than the readout freezes the part for each row, so the skew becomes the difference between row start times rather than the motion during exposure; the geometry still shifts, but the blur is gone. A cell that inspects stationary parts at a stop station has no skew at all.
The engineering question is whether the residual error is inside the measurement tolerance at the maximum speed. If the tolerance is loose and the line is slow, a rolling shutter can be the economical choice. If the tolerance is tight or the line speed varies, the speed-dependent bias is a defect generator.
Line-scan is the third option for a part that moves continuously in one direction. A line-scan camera builds the image from consecutive lines, so the geometry is defined by the encoder rather than by a readout window. It is the natural choice for a web or a belt that never stops, and it moves the timing problem to the encoder chain rather than the sensor.
The lens changes how much light reaches the sensor, and therefore how short the exposure can be. A faster lens allows a shorter exposure, which reduces motion blur and reduces the displacement during each row’s exposure, but it does not change when the rows start. The skew is set by the readout time, not by the exposure time.
The lens also sets the magnification and the field of view. A wider field maps the same displacement to fewer pixels, which hides the skew in the image but also reduces the resolution available for the measurement. A narrower field shows the skew more clearly and gives more pixels per millimetre, which is usually the opposite of what a marginal rolling-shutter cell needs. The optical inputs themselves are collected in the machine vision lens selection guide; the shutter decision sits upstream of them.

Working distance and depth of field interact with the choice as well. A longer working distance reduces perspective change across the field but demands more light for the same exposure. The 3D stereo vision lens options are matched to the baseline and the working distance, and the shutter decision should be made before that match is fixed.
Mount a target with a vertical edge and a known depth feature on the conveyor. Run it at the minimum and maximum speed. Measure the lean of the edge in pixels, and convert it to millimetres at the working distance. Measure the depth of the feature and compare it with the static value. Plot both against speed.
A global-shutter pair should show a flat line within the noise. A rolling-shutter pair will show a slope, and the slope is the evidence needed to justify a sensor change or a speed limit. Record the exposure, the aperture, the working distance and the readout setting with the result so the test can be repeated after a hardware change.
The test is also the acceptance record for the lens. If the lean and the depth bias are inside tolerance at the maximum speed, the optics and the sensor are compatible with the application. If they are not, no amount of calibration will make the cell stable across a speed change.
Choosing optics for a stereo cell that sees moving parts? Fix the shutter and the baseline first, then match the lens to the working distance and the field. Review the 3D stereo vision lens options against the measured skew.
Only if the skew is constant. On a conveyor the skew changes with speed, so a single calibration cannot cover the range.
It reduces motion blur and the displacement during each row’s exposure, but the rows still start at different times. The geometric skew remains.
Yes, if the displacement during readout is below the measurement tolerance at the maximum speed and the speed does not vary much.
For continuous motion in one direction, often yes. It moves the timing problem to the encoder and the line rate, which can be specified and tested.
A longer baseline increases depth sensitivity, so the same disparity error from skew produces a larger depth error. It does not create the skew.
The lens is the last decision in this chain, not the first. Once the shutter, the baseline and the working distance are fixed by the application, the lens can be chosen to deliver the light and the field the timing allows.