Line Scan Camera Lens Commissioning Guide: How to Set Focus, Aperture and Full-Width Sharpness Before Production Starts

Commissioning a line scan camera lens is the stage where theoretical optical design is converted into dependable production performance. A lens may have the correct focal length, sensor compatibility and nominal working distance, yet the inspection system can still underperform if focus is established only at the centre, aperture is chosen only for brightness, the camera is slightly tilted, or the smallest production defect is never tested near the outer edges of the scan. For OEMs building web inspection machines, textile inspection systems, printing inspection equipment, flexible packaging lines, metal strip inspection machines, battery electrode systems and other continuous inspection equipment, commissioning should therefore be treated as a structured optical qualification process rather than a final manual adjustment.

The purpose of commissioning is not simply to produce a sharp-looking image. The objective is to verify that the chosen line scan camera lens maintains sufficient defect resolution, field coverage, focus consistency and geometric stability across the complete inspection width under actual production conditions. The current Kyptec Automation® Line Scan Camera Lens collection contains dedicated 25 mm, 35 mm and 50 mm focal-length options. Their live specifications show support for 4K 7 μm and 8K 3.5 μm line-scan cameras, M42 mounting and manually adjustable aperture, while Kyptec Automation® describes the lenses as designed for uniform imaging, minimal distortion and consistent sharpness across the entire field of view. These characteristics make proper full-width commissioning especially important because the optical design is intended to serve continuous high-resolution industrial inspection rather than only central-field imaging.

Why Line Scan Lens Commissioning Should Begin Before Production Qualification

A line scan system captures one line repeatedly while the material moves, which means a small optical error can be reproduced continuously over every metre of inspected product. A centre focus error, sensor tilt, incorrect aperture or inadequate edge sharpness may therefore affect an entire production run. Kyptec Automation®'s existing line-scan guidance identifies consistent focus, high resolution, low distortion and uniformity across the scan width as important characteristics of line-scan imaging. Commissioning should verify those characteristics in the actual machine rather than assuming that correct component selection guarantees final performance.

The best time to perform this work is after the camera and lens are mounted in their intended mechanical positions but before the optical assembly is permanently locked and before the inspection algorithm is tuned around an imperfect image. Correct optics should come first; software settings should be optimized only after the image delivered to the sensor is stable and repeatable.

Step One: Confirm the Required Inspection FOV Before Adjusting Focus

Focus should not be the first adjustment if the field of view has not yet been confirmed. The complete maximum product width, including expected lateral movement tolerance, should fit inside the usable field. If the camera is moved later simply to correct FOV, the working distance and magnification will change and the focus procedure may need to be repeated.

A useful commissioning sequence is therefore to position the camera and lens approximately at the calculated working distance, place a representative product or dimensional reference at the inspection plane, and confirm that both product edges remain inside the usable field with appropriate margin.

The goal is not excessive empty space. An unnecessarily wide FOV spreads the sensor pixels over more object width and lowers available pixels per millimetre. The final field should be only as wide as necessary to cover the production requirement reliably.

Step Two: Establish Mechanical Alignment Before Fine Focus

Before rotating the focus ring for maximum centre sharpness, verify that the camera, lens and inspected surface are mechanically square according to the intended optical geometry. A tilted assembly can create an image where the centre is sharp but one edge reaches focus at a different setting from the opposite edge.

This problem is particularly important with long line-scan sensors because the full inspection line extends significantly away from the optical centre. If the camera bracket is not square, repeatedly refocusing the lens may simply move the sharp region from one side to the other.

A practical commissioning method is to place comparable fine reference features near the centre, left edge and right edge of the inspection field. If one side remains consistently softer while the opposite side improves, mechanical alignment should be checked before blaming the lens or camera resolution.

Step Three: Set Initial Focus at the Actual Production Plane

The lens should be focused on the surface where the real production feature exists, not necessarily on the conveyor bed, machine base or a temporary calibration plate located at a different height.

For flexible materials, the nominal material plane should be established under normal web tension. For rigid boards, panels or sheets, the actual upper surface height should be reproduced. For products with thickness variation, focus should be selected with the expected operating range in mind.

This matters because a technically sharp calibration target is meaningless if the production surface sits several millimetres away from that plane. High-resolution 8K systems can be particularly sensitive to small focus errors because their 3.5 μm-class pixel sampling is intended to capture finer optical detail. The Kyptec Automation® product pages explicitly specify both 4K 7 μm and 8K 3.5 μm capability across the current line-scan range.

Step Four: Do Not Optimize Focus Only at the Centre

A common commissioning mistake is to zoom into the centre of the image, adjust until it looks extremely sharp and then lock the lens. For a line scan camera lens, that test is incomplete.

The smallest defect should be checked at several positions across the complete scan line. A suitable commissioning target should contain repeated high-detail features or representative defects near both edges as well as the centre.

The final focus position may not always correspond to the mathematically sharpest possible centre if a slightly different setting produces more uniform useful resolution across the entire width. In industrial inspection, consistent full-width defect visibility is more valuable than exceptional centre sharpness combined with weak edges.

Kyptec Automation® specifically describes its dedicated line scan camera lenses as providing consistent sharpness across the field, making full-width verification the appropriate way to qualify that capability in the installed machine.

Step Five: Set Aperture From the Inspection Requirement, Not Maximum Brightness

Aperture controls more than image brightness. Opening the lens admits more light, which can support shorter exposure times, but it can reduce depth tolerance and may not provide the best full-field optical performance. Closing the aperture increases depth of field, but excessive stopping down can reduce available light and eventually reduce fine-detail resolution through diffraction.

The correct commissioning aperture is therefore a compromise among brightness, exposure time, depth tolerance and smallest-defect contrast.

The current product pages list Kyptec Automation® KL-1402 with F2.8–22, Kyptec Automation® KL-1404 with F2.8–16 and Kyptec Automation® KL-1406 with F2.0–16 aperture ranges. These adjustable ranges allow OEMs to optimize the installed line scan camera lens around actual machine conditions rather than operating at one fixed aperture by default.

Step Six: Recheck Focus After Changing Aperture

Aperture and focus should not be commissioned as completely independent settings. After the production F-number has been selected, full-width sharpness should be checked again.

The important test is whether the smallest required production defect remains visible at the centre, intermediate positions and edges under the final aperture and final exposure conditions.

If the aperture is changed significantly after commissioning, especially on an 8K system, the optical qualification should be repeated rather than assuming the original focus result is unchanged in practical terms.

Step Seven: Use the Smallest Production Defect as the Real Focus Target

A generic high-contrast target can help establish preliminary focus, but final acceptance should use the smallest real defect or a representative calibrated feature with comparable size and contrast.

If a web inspection machine must detect a 0.3 mm scratch, the commissioning test should include a feature around that scale. If a printing inspection system must detect small registration errors, fine printed edges should be evaluated. If a textile machine must resolve narrow yarn defects, representative fabric structure should be included.

A machine can produce an image that looks visually impressive while failing the actual inspection requirement. The smallest production feature provides a much more meaningful commissioning criterion.

Step Eight: Check Image Quality at the Left, Centre and Right of the Scan

At minimum, the commissioning record should compare defect visibility at three cross-field positions: left, centre and right. More positions are preferable for very wide sensors or precision measurement applications.

The same reference feature should ideally be used at each position so differences in sharpness can be attributed to the optical system rather than to the sample.

If the edge results differ significantly from the centre, the engineer should investigate camera alignment, lens seating, sensor position, aperture and working distance before accepting the system.

Kyptec Automation® KL-1402 in Compact Machine Commissioning

The Kyptec Automation® KL-1402 25 MM Line Scan Camera Lens provides a 25 mm focal length, F2.8–22 aperture range, M42 mount and published compatibility with 4K 7 μm and 8K 3.5 μm cameras. It can be evaluated in compact web inspection machines, narrow-to-medium-width printing inspection systems, textile machines and flexible packaging equipment where comparatively wide coverage must be achieved within limited stand-off.

During commissioning, the shorter focal-length geometry should still be verified for full-width detail rather than simply accepted because the product fits inside the field. Wide coverage is useful only when the smallest required defect remains visible at both field extremes.

Step Nine: Check Focus With the Machine in Its Real Operating State

A production machine may behave differently after motors, rollers and mechanical structures are running. Vibration can alter alignment slightly, materials can move vertically, and thermal stabilization can change mechanical positions.

After static commissioning is complete, the system should therefore be checked again in its real operating state. The inspection material should move at normal production speed, and the smallest defect should be verified under the same exposure and aperture used during actual operation.

This does not duplicate long-term focus-stability testing; it is an immediate commissioning requirement to prove that the static optical setup survives the transition to running machinery.

Step Ten: Verify That Production Speed Does Not Hide Optical Detail

A line scan camera lens can be perfectly focused while a moving product still produces insufficient defect detail because acquisition conditions are not appropriate for production speed. The lens cannot recover motion-direction information that is not sampled correctly.

During commissioning, cross-web optical sharpness should therefore be checked together with actual moving-material images. If defects visible while stationary disappear at normal line speed, the engineer should distinguish whether the cause is optical focus, exposure, signal level or motion-direction sampling rather than automatically refocusing the lens.

Kyptec Automation® positions its line scan camera lenses for high-speed scanning and continuous production environments, so production-speed validation is an important part of obtaining the intended industrial performance.

Step Eleven: Confirm Brightness Uniformity Without Sacrificing Sharpness

Brightness should be sufficiently consistent across the scan width that the inspection algorithm is not forced to compensate for major optical variation. However, commissioning should not improve brightness at the expense of focus.

If one edge appears darker, first determine whether the cause is illumination geometry, optical alignment or sensor coverage rather than opening the aperture until the complete image becomes bright enough.

The existing Kyptec Automation® line-scan guidance highlights uniformity as an important line-scan characteristic because brightness and sharpness consistency across the scan width support reliable inspection.

Kyptec Automation® KL-1404 for Intermediate Inspection Geometry

The Kyptec Automation® KL-1404 35 MM Line Scan Camera Lens provides 35 mm focal length, F2.8–16 aperture, M42 mounting and published 4K 7 μm / 8K 3.5 μm compatibility. This intermediate focal length can be evaluated for printing inspection machines, battery electrode inspection systems and medium-width continuous inspection equipment where the available working distance sits between compact and longer-stand-off layouts.

Commissioning should follow exactly the same principle regardless of focal length: confirm FOV first, align the optical plane, optimize focus across the complete scan and then establish the production aperture.

Step Twelve: Verify Dimensional Calibration Only After Optical Setup Is Stable

If the machine uses the line scan image for width measurement, edge location or defect coordinates, dimensional calibration should be performed only after focus, camera position and aperture have been finalized.

Changing the camera working distance or optical alignment after calibration can change the relationship between sensor pixels and real object dimensions.

For measurement-capable machines, a suitable dimensional reference should be evaluated at multiple cross-field positions rather than only at the centre. Kyptec Automation® product descriptions emphasize minimal distortion in addition to high resolution and full-field imaging, which is useful when an inspection system also depends on stable spatial mapping.

Step Thirteen: Lock the Optical Settings Only After Final Validation

Manual focus and aperture controls should remain adjustable during commissioning, but once the final production configuration is established, the system should be secured according to the machine's mechanical design so ordinary vibration or service activity does not alter the approved setting.

Before locking, record the nominal working distance, focus reference, aperture, camera position, product plane and acceptance images. These records make future maintenance and replacement much easier.

For OEMs producing multiple identical machines, the commissioning record can become part of the repeatable assembly procedure instead of relying on the experience of one technician.

Kyptec Automation® KL-1406 for Larger Inspection Frames

The Kyptec Automation® KL-1406 50 MM Line Scan Camera Lens provides the longest focal-length option in the current Kyptec Automation® line scan range, with 50 mm focal length, F2.0–16 aperture, M42 mounting and support for 4K 7 μm / 8K 3.5 μm configurations.

This geometry can be evaluated in metal strip inspection machines, large sheet inspection systems, board inspection equipment and other industrial frames where greater camera stand-off is practical. Its wider F2.0 maximum aperture can provide useful light-gathering flexibility, but the production aperture should still be chosen from actual full-width image quality rather than maximum brightness alone.

Practical Commissioning Example: Wide-Web Inspection Machine

Consider an 8K web inspection system covering a wide material field. The initial centre image looks excellent, but fine defects near the far edge are weaker. Simply refocusing toward that edge makes the opposite side worse.

This behaviour should trigger an alignment check rather than endless focus adjustment. The camera mounting plane, lens seating and web plane should be inspected. Once the geometry is square, the engineer can refocus for the best balanced sharpness across the field, select an aperture that provides enough tolerance for web movement and then retest the smallest defect at production speed.

This structured process prevents an optical alignment problem from being incorrectly treated as a lens-resolution problem.

Practical Commissioning Example: Printing Inspection Machine

A printing inspection system may require small text, fine registration marks and print defects to remain sharp across several lanes. The commissioning target should therefore include fine print elements at several positions across the sensor.

If the machine uses Kyptec Automation® KL-1404, the focus should be optimized with the final working distance established first. After the production aperture is chosen, the same reference print should be rechecked at each lane and then run at normal speed.

The system should be accepted only when the minimum print feature remains consistently usable throughout the complete width.

Practical Commissioning Example: Metal Strip Inspection

A metal strip machine may have a larger mechanical frame and use Kyptec Automation® KL-1406 because the 50 mm geometry better fits the required stand-off. The commissioning engineer should verify not only central scratches but also fine reference marks close to both strip edges.

If dimensional edge measurement is part of the inspection, geometric calibration should be performed only after the final focus, camera position and aperture are fixed.

This sequence allows optical performance and measurement accuracy to be qualified from one stable production configuration.

Frequently Asked Questions About Line Scan Camera Lens Commissioning

1. What should I adjust first when commissioning a line scan camera lens?

Confirm the required FOV and approximate working distance before performing fine focus. If the camera position is changed after focusing to correct field coverage, the optical setup may need to be repeated. The most efficient sequence is geometry first, alignment second, focus third and aperture optimization after a usable focus baseline has been established.

2. Should I focus a line scan lens at the centre or at the edge?

Initial focus can be established near the centre, but final acceptance must consider the complete field. The production setting should provide the best useful defect visibility across the full scan rather than maximizing one central location while sacrificing the edges.

3. How can I tell whether poor edge sharpness is caused by focus or camera tilt?

Place comparable fine features at both field edges. If adjusting focus makes one edge improve while the opposite edge becomes worse, inspect mechanical alignment and camera squareness. A simple uniform focus error normally affects the field more consistently than a tilted imaging plane.

4. Should aperture be set before or after focus?

Establish approximate focus first, then select the production aperture according to brightness, exposure and depth tolerance, and finally recheck focus and full-width sharpness. Aperture and focus should be validated together rather than treated as completely separate settings.

5. What is the best aperture for an 8K line scan camera lens?

There is no universal best F-number. The correct setting depends on available light, exposure time, required depth tolerance and fine-detail performance. The optimum aperture is the one that preserves the smallest required defect under actual production conditions without unnecessarily sacrificing light or resolution.

6. Why does my line scan image look sharp but small defects are still missed?

General image appearance is not a reliable measure of inspection resolution. Fine defects can lose contrast even when larger edges look sharp. Commissioning should therefore use the actual smallest production defect or a representative feature of similar size and contrast.

7. Should I commission a line scan lens using a stationary product?

Static testing is useful for initial optical adjustment, but final commissioning must include the material moving at production speed. A lens can be properly focused while exposure or motion sampling causes defects to disappear during operation.

8. How many positions across the scan width should I check?

At minimum, test the left side, centre and right side. For very wide inspection systems or precision measurement applications, additional intermediate locations provide a better map of full-field performance.

9. Do I need to refocus after changing the aperture?

A full recheck is recommended whenever the production aperture changes materially. Even when the mechanical focus ring remains untouched, the useful fine-detail performance and depth tolerance can change, so the smallest defect should be retested across the complete field.

10. Can software sharpening replace accurate line scan lens focus?

No. Image processing cannot recreate optical detail that never reached the sensor because the lens was out of focus. The optical image should first be made as sharp and consistent as practical; software should operate on a properly commissioned optical signal.

11. Why does one side of the scan become soft after mounting the camera?

Possible causes include camera tilt, lens seating error, sensor-plane misalignment or a product plane that is not square to the imaging system. The mechanical geometry should be checked before assuming the lens itself lacks edge resolution.

12. Which Kyptec Automation® line scan lens is suitable for commissioning compact inspection machines?

Kyptec Automation® KL-1402 25 MM is worth evaluating where comparatively wide coverage must be achieved in limited machine height. Its current specification includes 25 mm focal length, F2.8–22 aperture, M42 mounting and 4K 7 μm / 8K 3.5 μm compatibility. Final suitability should still be confirmed from actual FOV and working-distance requirements.

13. Which Kyptec Automation® model can be considered for intermediate stand-off systems?

Kyptec Automation® KL-1404 35 MM provides the intermediate focal-length option in the current line scan portfolio, with F2.8–16 aperture and published 4K/8K support. It can be evaluated where the machine geometry falls between compact and longer-stand-off configurations.

14. When should Kyptec Automation® KL-1406 be considered during machine design?

Kyptec Automation® KL-1406 50 MM is useful to evaluate where greater camera-to-object stand-off is available or required. Its current product specification lists F2.0–16 aperture, M42 mounting and 4K 7 μm / 8K 3.5 μm compatibility.

15. Should calibration be done before or after final lens focus?

After. Dimensional or coordinate calibration should be performed only once the working distance, camera alignment, focus and aperture are stable. Changing the optical geometry afterward can alter the pixel-to-object relationship and invalidate calibration.

16. How do I know when line scan lens commissioning is complete?

Commissioning is complete when the required FOV is confirmed, the smallest defect remains visible across the full field, focus and aperture are stable, the image remains acceptable at production speed, and any measurement calibration has been verified using the final optical configuration.

17. Should the final line scan lens settings be documented?

Yes. Record lens model, camera configuration, working distance, aperture, focus reference, product plane, FOV and representative acceptance images. For OEM production, this turns optical setup into a repeatable manufacturing procedure rather than a technician-dependent adjustment.

18. What information should an OEM define before commissioning a line scan lens?

Define sensor pixel count, pixel pitch, required inspection width, working distance, smallest defect, expected product-height variation, production speed and any dimensional measurement requirement. These values allow the Kyptec Automation® Line Scan Camera Lens collection to be commissioned against measurable production targets rather than subjective image appearance. The current collection provides dedicated 25 mm, 35 mm and 50 mm options for high-resolution 4K and 8K systems.

Conclusion

Line scan camera lens commissioning should be treated as a structured production-qualification process, not as a final focus-ring adjustment. The correct sequence begins with confirmed field of view and working distance, followed by mechanical alignment, centre and edge focus checks, production aperture selection, full-width defect validation and testing at actual operating speed. Where dimensional measurement is involved, calibration should be performed only after the complete optical geometry is stable.

The most important acceptance criterion is not whether the image looks sharp at the centre. It is whether the smallest commercially important defect remains consistently detectable across the entire required scan width under final production conditions. This is particularly important in 4K and 8K line-scan systems, where the benefit of high sensor sampling can be lost if focus, aperture or alignment is not optimized properly.

The Kyptec Automation® Line Scan Camera Lens portfolio provides three focused geometries for this process: Kyptec Automation® KL-1402 25 MM for comparatively compact wide-field layouts, Kyptec Automation® KL-1404 35 MM for intermediate machine geometries and Kyptec Automation® KL-1406 50 MM where greater stand-off is required. Their live specifications confirm M42 mounting, adjustable aperture and support for high-resolution 4K 7 μm and 8K 3.5 μm line-scan configurations.

For web inspection machines, printing inspection systems, textile equipment, flexible packaging inspection lines, battery electrode machines, metal strip inspection systems and other continuous industrial applications, careful commissioning allows the optical performance designed into a Kyptec Automation® line scan camera lens to be translated into repeatable production results. A properly commissioned system should provide not simply a clear image, but a stable, measurable and full-width optical foundation for reliable defect detection throughout continuous operation.