Line Scan Camera Lens Aperture and Depth of Field: How to Balance Sharpness, Light and Web Height Variation

Aperture and depth of field are critical line scan camera lens parameters whenever the inspected material does not remain at one perfectly fixed height. Flexible film can flutter, fabric can rise and fall, paper can develop waves, coated web material can move vertically between rollers, and metal strip can show slight shape variation as it travels through a production line. In each case, the optical system must maintain enough usable sharpness even when the material moves slightly closer to or farther from the lens. The usual response is to close the aperture to increase depth of field, but excessive stopping down reduces the light reaching the sensor and can eventually lower fine-detail sharpness through diffraction. A good inspection system therefore requires a deliberate balance among line scan lens aperture, depth of field, exposure, resolution and permitted web height variation.

For OEMs designing web inspection machines, textile inspection systems, printing inspection machines, flexible packaging lines, battery electrode inspection equipment or metal strip inspection systems, aperture should not be treated as a brightness control alone. It directly influences how much object-height variation the inspection can tolerate before defects lose focus. The Kyptec Automation® Line Scan Camera Lens collection currently includes 25 mm, 35 mm and 50 mm models for 4K 7 μm and 8K 3.5 μm line-scan configurations. The current products provide manually adjustable iris settings, allowing OEM engineers to optimize aperture according to real production geometry rather than operating at one fixed F-number.

What Aperture Means in a Line Scan Camera Lens

The aperture controls the effective opening through which light passes inside the lens. It is commonly expressed as an F-number such as F2.8, F4, F5.6, F8 or F16. A lower F-number represents a wider aperture, which allows more light to reach the sensor. A higher F-number represents a smaller opening, reducing the available light but generally increasing depth of field.

This relationship makes aperture especially important in high-speed line scan inspection. Because a line-scan system captures extremely narrow image lines while the material is moving, available exposure time can be limited. A very small aperture may provide attractive depth tolerance but require more illumination or longer exposure. If the exposure becomes too long relative to the material movement, practical inspection quality can deteriorate for reasons unrelated to focus.

Kyptec Automation® line scan lenses are designed for continuous industrial imaging and emphasize uniform illumination and consistent sharpness across the field, which are particularly important when aperture is being optimized for demanding inspection conditions.

What Is Depth of Field in Line Scan Inspection?

Depth of field is the range of object distances over which the image remains acceptably sharp. It should not be confused with working distance. Working distance describes the nominal distance between the optical system and the inspection plane, while depth of field describes how far the object can move around that nominal plane before image quality becomes unacceptable.

For example, if an inspection system is focused at a nominal web position and the material can fluctuate several millimetres vertically, the required depth of field must be large enough to keep the smallest relevant defect sufficiently sharp throughout that movement.

Existing Kyptec Automation® guidance already identifies depth of field as important where objects vary in height or position. The dedicated line-scan problem is more specific: moving materials can repeatedly leave the ideal focus plane during production, so the selected aperture must provide enough tolerance without sacrificing too much light or fine optical detail.

Why Web Height Variation Creates Focus Problems

A moving web rarely behaves like a perfectly rigid optical target. Flexible packaging film can flutter between rollers, textile can oscillate because of tension changes, paper can develop curl or waves, and thin metal sheet can exhibit vertical movement. Even a mechanically well-designed machine can have a finite height tolerance.

When the material moves away from the exact focus plane, the image becomes progressively defocused. Large defects may remain visible, while small scratches, pinholes, coating irregularities or print features lose contrast first. This means the machine can continue producing apparently acceptable images while its smallest-defect capability has already deteriorated.

The correct design target is therefore not simply “the image must stay in focus.” It is more precise: the smallest production defect must remain detectable throughout the expected object-height range.

Why Closing the Aperture Increases Depth of Field

Reducing the aperture diameter increases the range of object positions that appear acceptably sharp. This is one of the most useful tools for line-scan systems affected by moderate height variation.

If a fabric inspection machine is perfectly focused only at one plane but the fabric moves above and below that position, operating at a smaller aperture can make the system more tolerant. The same principle applies to film, foil, paper and other continuously moving materials.

However, the engineer should not automatically select the highest available F-number. Depth of field is only one performance requirement. The system must also maintain sufficient light, exposure margin and optical resolution.

Why Maximum Aperture Is Not Always the Sharpest Setting

Opening the lens fully maximizes light transmission, which is useful for high-speed inspection, but optical aberrations are generally more difficult to control when the lens is used at its widest aperture. Depending on the optical design, moderate stopping down can improve image consistency and sharpness, particularly away from the centre of the field.

This is why a lens should be tested at several practical F-numbers rather than assuming that the lowest F-number automatically produces the best inspection image. A setting that is one or two stops smaller may provide a more useful compromise among light, edge sharpness and depth tolerance.

The correct production aperture is therefore the setting that provides the required defect visibility across the complete web width and full expected height variation.

Why Excessive Stopping Down Can Reduce Resolution

The opposite extreme also creates problems. When the aperture becomes very small, diffraction spreads light from fine image details over a larger region at the sensor. Fine contrast therefore decreases even when the system appears to have more depth of field.

This matters particularly with an 8K line scan camera lens for 3.5 μm pixels, because smaller pixels are intended to sample fine image detail. If the aperture is stopped down excessively, some of the theoretical advantage of the small pixel pitch can be lost.

The practical lesson is that depth of field should not be increased without limit. OEMs should choose the minimum F-number that provides sufficient height tolerance rather than automatically operating at the smallest aperture available.

Aperture, Pixel Pitch and 4K versus 8K Systems

A 4K 7 μm line-scan system generally has larger pixels than an 8K 3.5 μm system. Smaller pixels can reveal finer detail, but they also make optical blur more significant relative to pixel size.

This means aperture optimization becomes increasingly important as pixel pitch decreases. An 8K inspection system may require more careful balancing of diffraction, focus tolerance and available light than a lower sampling-density system.

The Kyptec Automation® portfolio is specifically published for both 4K 7 μm and 8K 3.5 μm configurations, making aperture selection especially relevant for OEMs using the same optical family across different camera-resolution platforms.

How Line Speed Changes the Aperture Decision

Aperture cannot be selected independently of production speed. As material speed increases, the available exposure time may need to become shorter in order to maintain correct spatial sampling along the motion direction. A smaller aperture passes less light, which can make it more difficult to achieve adequate exposure within the available time.

This creates a common engineering conflict: increasing the F-number improves depth of field, but the system then requires more illumination to maintain signal level at high speed.

For high-speed line scan inspection, the best aperture is therefore not simply the one that produces the deepest focus range in a static test. It is the setting that still works at actual line speed, actual illumination intensity and actual defect contrast.

Depth of Field Should Be Designed Around the Smallest Defect

The acceptable focus range depends strongly on what the machine must detect. A large tear in paper may remain visible under substantial defocus, while a 0.2 mm scratch or subtle coating defect can become difficult to detect with much smaller focus error.

OEMs should therefore use the smallest important production defect as the validation reference. Place representative defects at the nearest expected web position, nominal position and farthest expected position, then compare detection performance.

This approach is far more meaningful than evaluating focus by looking at general image appearance.

Practical Example: Flexible Packaging Inspection

A flexible packaging inspection machine may be focused on a film travelling between rollers. During production, the film can flutter because of air movement, changing tension or machine vibration. A very wide aperture may deliver excellent brightness but insufficient depth tolerance, causing small surface defects to appear and disappear as the film moves vertically.

Moderately stopping down the line scan camera lens can increase the usable focus range, provided enough illumination is available to maintain the required exposure. The aperture should then be verified using representative defects at production speed.

The Kyptec Automation® KL-1402 25 MM Line Scan Camera Lens provides an F2.8–22 manual aperture range and is designed for 4K 7 μm / 8K 3.5 μm continuous imaging. Its relatively short focal length makes it relevant to compact wide-field inspection machines where both limited working distance and moving-web tolerance must be considered.

Practical Example: Textile Inspection With Uneven Fabric Height

Fabric can show more vertical variation than a rigid sheet because of texture, tension and surface structure. An inspection system focused precisely on one yarn plane may lose fine detail when the fabric rises or falls.

The solution should not be to close the iris completely. Instead, the machine designer should estimate the maximum fabric-height envelope, choose a nominal focus plane near the middle of that range, and determine the aperture that keeps required defects detectable throughout the envelope.

A line scan lens for textile inspection should therefore be evaluated for practical depth tolerance, not simply centre sharpness under static laboratory conditions.

The Kyptec Automation® KL-1404 for Balanced Inspection Geometry

The Kyptec Automation® KL-1404 35 MM Line Scan Camera Lens provides a 35 mm focal length, F2.8–16 manual aperture range and compatibility with 4K 7 μm and 8K 3.5 μm line-scan configurations.

Its intermediate focal length can be useful in printing inspection machines, electrode inspection systems and medium working-distance web inspection platforms where neither an especially short nor long focal length is required. Because the aperture is adjustable, the OEM can tune depth tolerance to the actual machine rather than relying on one generic setting.

This is particularly useful when identical machine platforms may run materials with different thickness, stiffness or vertical stability.

Depth of Field and Working Distance Are Related but Different

Increasing working distance can influence focus sensitivity and magnification, but it should not be confused with deliberately increasing depth of field through aperture selection. Two machines can use the same focal length at different object distances yet have different magnification and focus-tolerance requirements.

If an OEM simply moves the camera farther away to obtain more apparent tolerance, the field of view also changes unless the optical geometry is redesigned. The correct approach is to calculate the required FOV and working distance first, then optimize aperture and acceptable focus range within that geometry.

This prevents depth-of-field requirements from unintentionally changing the inspection width or object resolution.

The Kyptec Automation® KL-1406 for Longer Stand-Off Machines

The Kyptec Automation® KL-1406 50 MM Line Scan Camera Lens provides a 50 mm focal length with an F2.0–16 aperture range and is designed for high-precision continuous imaging. Kyptec Automation® emphasizes uniform illumination, minimal distortion and consistent sharpness across the field for its line scan lenses.

The wider F2.0 maximum aperture can provide useful light-gathering flexibility in longer-working-distance machines where illumination reaching the sensor is limited. OEMs can then stop the lens down according to required depth of field while retaining aperture adjustment margin for high-speed inspection.

Where to Place the Nominal Focus Plane

When a web is expected to move through a known height range, the nominal focus plane should usually be chosen so that the available focus tolerance is distributed sensibly across that range. Focusing at one extreme wastes much of the usable depth on one side while leaving insufficient margin on the other.

A practical approach is to determine the nearest and farthest expected material positions and focus around the operating region that maximizes acceptable sharpness across both extremes. Final validation should then be performed at production temperature, speed and tension because real machine conditions can change the web position compared with a static setup.

Why More Light Is Often Better Than Excessive Aperture Opening

When an inspection system lacks signal, one temptation is to open the lens fully. This may solve exposure but can reduce depth tolerance and sometimes degrade full-field optical performance.

If the application requires both high speed and significant web-height tolerance, increasing usable illumination can be a better system-level solution because it allows the lens to operate at a more favorable intermediate aperture.

For OEM design, the optical target should therefore be to create enough illumination headroom that aperture can be selected for image quality and depth requirements rather than being forced fully open simply because the system is light-starved.

Frequently Asked Questions About Line Scan Lens Aperture and Depth of Field

1. What aperture is best for a line scan camera lens?

There is no single best F-number for every line-scan application. The correct aperture depends on pixel pitch, required depth of field, available illumination, line speed and smallest defect size. A practical OEM approach is to begin with a moderate aperture, evaluate defect sharpness across the expected height range, and then open or close the iris only as required.

2. How can I increase depth of field in a line scan inspection system?

Stopping down the aperture is the most direct optical method, but it should be done gradually because less light reaches the sensor and excessive stopping down can reduce fine-detail resolution through diffraction. Improving mechanical web control and positioning the nominal focus plane correctly can reduce how much additional depth of field is required.

3. Why does my web inspection system keep going in and out of focus?

The material may be moving vertically outside the usable depth of field. Web flutter, tension variation, roller runout, material curl and machine vibration can all move the inspection surface relative to the focus plane. The solution may involve both mechanical stabilization and aperture optimization.

4. Does a higher F-number always give better depth of field?

Generally, increasing the F-number increases depth of field, but that does not mean image quality continues improving indefinitely. Very high F-numbers reduce the available light and increase diffraction, so the smallest defects may become less distinct even though the nominal focus range becomes larger.

5. Why does an 8K line scan system need more careful aperture selection?

An 8K system using 3.5 μm pixels samples finer optical detail than a 4K 7 μm system. Fine-pitch sensors are therefore more sensitive to optical blur and diffraction. The aperture should be selected to preserve the detail that the smaller pixels are intended to capture while still providing enough depth tolerance.

6. Should I use F16 or F22 to maximize line scan depth of field?

Not automatically. F16 or F22 may provide more focus tolerance, but diffraction can become increasingly important at small apertures, particularly with high-resolution sensors. Production testing should determine whether the extra depth is worth the loss in light and fine-detail contrast.

7. Can aperture compensate for severe web flutter?

Only to a limited extent. Increasing depth of field can tolerate moderate height variation, but if the material repeatedly moves far outside the optical focus range, mechanical web stabilization is normally required. Aperture should not be used as a substitute for controlling excessive material movement.

8. Does opening the aperture improve line scan image brightness?

Yes. A lower F-number allows more light to reach the sensor, which can be useful at high line speeds or short exposure times. The trade-off is reduced depth of field and potentially greater sensitivity to focus position, so brightness improvement should be balanced against inspection tolerance.

9. Why are small defects lost before large defects when the web moves out of focus?

Fine defects contain higher spatial-frequency image information and depend on sharp edge contrast. Defocus removes this fine contrast before it seriously affects large structures. A production image can therefore look visually acceptable while the machine has already lost sensitivity to its smallest specified defect.

10. How should I test depth of field on a line scan inspection machine?

Use a representative smallest defect or high-detail reference and move it through the expected minimum, nominal and maximum object heights. Repeat the test at the actual production aperture, line speed and illumination. This directly shows whether the inspection remains reliable throughout the required depth range.

11. Does focal length affect depth of field in line scan imaging?

Yes, but focal length cannot be considered independently because magnification, working distance and FOV change with system geometry. A 25 mm, 35 mm and 50 mm line scan camera lens can each produce different practical depth behaviour depending on how they are installed.

12. Is depth of field more important for flexible materials than rigid parts?

It is often more demanding for flexible continuous materials because their surface position can change during movement. Film, paper and fabric can flutter or wave, while rigid material may remain much closer to one defined optical plane. The required DOF should therefore be based on real mechanical behaviour.

13. Can I solve low-light problems by choosing a wider-aperture line scan lens?

A wider maximum aperture provides more exposure flexibility, but operating fully open should still be validated for full-field sharpness and depth tolerance. For example, Kyptec Automation® KL-1406 offers an F2.0–16 range, allowing OEMs to balance available light against the depth of field needed in longer-working-distance systems.

14. Should the lens be focused at the highest or lowest position of a moving web?

Usually neither extreme is ideal unless the system has an asymmetric tolerance requirement. It is generally better to place the nominal focus near the most useful central region of the expected height variation so that usable sharpness extends on both sides.

15. Which Kyptec Automation® line scan camera lenses allow aperture adjustment?

The current Kyptec Automation® Line Scan Camera Lens collection includes Kyptec Automation® KL-1402 25 MM, Kyptec Automation® KL-1404 35 MM and Kyptec Automation® KL-1406 50 MM models with manual iris control. Their respective aperture ranges give OEMs flexibility to optimize light and focus tolerance according to machine geometry.

16. What information should I provide when buying a line scan lens for a web with height variation?

Provide sensor resolution, pixel pitch, scan width, nominal working distance, smallest defect, expected minimum and maximum web height, production speed and available optical space. These parameters help determine whether the 25 mm, 35 mm or 50 mm option in the Kyptec Automation® Line Scan Camera Lens portfolio offers the appropriate geometry and aperture flexibility for the machine.

Conclusion

Aperture and depth of field should be treated as core engineering specifications when selecting a line scan camera lens for moving web inspection. A wide aperture provides more light and can support short exposure times, but it reduces focus tolerance. Closing the aperture increases usable depth of field, yet excessive stopping down reduces sensor illumination and can weaken fine-detail resolution through diffraction. The correct operating point is therefore the aperture that keeps the smallest required defect sufficiently sharp throughout the real web-height variation while still providing adequate exposure at production speed.

For OEMs, the strongest design process is to define the nominal working distance, measure or estimate maximum vertical web movement, establish the smallest defect requirement, select the focal length for the required field of view, and then validate multiple aperture settings under actual production conditions. Kyptec Automation® provides a focused Line Scan Camera Lens portfolio with 25 mm, 35 mm and 50 mm options for 4K 7 μm and 8K 3.5 μm line-scan imaging, together with adjustable aperture ranges that allow these trade-offs to be optimized for individual OEM machine designs. A well-balanced aperture strategy can improve inspection consistency, reduce intermittent out-of-focus defects and make continuous web inspection substantially more reliable than simply choosing the smallest or largest available F-number.