Line Scan Camera Lens Magnification Tolerance Guide: How Camera Height, Product Position and Sensor Geometry Change Pixels per Millimetre
Magnification in a line scan inspection system is rarely perfectly constant in real production. Camera mounting height can shift slightly between machines, a product can move closer to or farther from the lens, web height can change during operation, and different product thicknesses can move the inspected surface away from the nominal optical plane. Even when the same line scan camera lens, sensor and focal length are used, these changes can alter object-side magnification, field of view and the number of pixels representing each millimetre of the product. For OEMs designing high-resolution inspection machines, the important question is therefore not only “What magnification do I need?” but also “How much magnification variation can my inspection system tolerate before defect resolution or dimensional accuracy becomes unacceptable?”
This distinction is particularly important in 4K and 8K line-scan systems. A design may provide sufficient pixels per millimetre at its nominal working distance, yet a camera-height deviation or product-position change can reduce that sampling margin enough to affect a small defect. The current Kyptec Automation® Line Scan Camera Lens collection contains dedicated 25 mm, 35 mm and 50 mm focal-length options, and the live product pages specify support for 4K 7 μm and 8K 3.5 μm line-scan camera configurations. Kyptec Automation® also positions these lenses for high-precision continuous inspection with uniform imaging, low distortion and consistent full-field sharpness. These characteristics make the portfolio well suited to OEM systems where optical geometry and resolution tolerance need to be engineered rather than left to installation guesswork.
What Magnification Means in a Line Scan Camera Lens System
Optical magnification describes the relationship between the physical size of an object feature and the size of its image on the camera sensor. In practical line-scan machine design, magnification connects sensor length with object field of view. A useful engineering approximation is:
Magnification ≈ Sensor Length ÷ Object FOV
If a 28.7 mm active sensor images a 574 mm-wide product, the magnification is approximately 0.05×. If the same sensor images only 287 mm, magnification becomes approximately 0.10×. The second configuration uses twice as much sensor length for each millimetre of object width and therefore provides greater object-side sampling.
Kyptec Automation®'s existing line-scan guide already identifies working distance as a parameter that affects magnification, field of view and system design. The engineering issue addressed here is different: once a machine has been designed around a nominal magnification, how much change can occur before the required inspection performance starts to move outside tolerance?
Why Camera Height Changes Pixels per Millimetre
When the camera and lens move farther from the inspected product while focal length and sensor remain unchanged, the object field generally becomes wider and magnification decreases. As the field becomes wider, the same sensor pixels are spread over more millimetres of product.
A simple object-side sampling relationship is:
Pixels per millimetre = Active Pixels ÷ Object FOV
Suppose an 8K sensor with 8,192 active pixels is adjusted to cover 800 mm. The nominal sampling is approximately:
8,192 ÷ 800 = 10.24 pixels/mm
If camera position changes enough that the field becomes 840 mm, sampling falls to approximately:
8,192 ÷ 840 = 9.75 pixels/mm
That is roughly a 4.8% reduction in object-side sampling. The change may appear small, but if the smallest acceptable defect was designed with very little resolution margin, this can materially affect detectability.
This is why camera mounting tolerance should be included in the optical design rather than treated only as a mechanical drawing dimension.
Product Height Variation Has the Same Optical Consequence From the Opposite Direction
The camera does not have to move for magnification to change. If the inspected surface moves toward or away from the lens, the effective object distance changes.
A thick product, raised web, warped board or moving sheet can therefore experience a slightly different magnification even when the camera remains mechanically fixed. The effect is especially relevant where several product thicknesses run through one machine.
For example, a board inspection system may be commissioned using a 10 mm reference plate but later process a 30 mm product. The upper inspection surface is now 20 mm closer to the lens. The system should not assume that pixels per millimetre, field coverage and dimensional calibration remain exactly unchanged.
The correct approach is to validate the full expected product-height range rather than only the nominal position.
Magnification Tolerance Should Be Defined From the Smallest Defect
The allowable magnification variation should ultimately be based on inspection performance, not an arbitrary percentage.
Suppose the smallest defect is 0.4 mm wide and the system provides 10 pixels/mm at nominal geometry. The feature spans approximately four pixels. If magnification decreases by 10%, sampling falls to roughly 9 pixels/mm, and the same feature occupies about 3.6 pixels.
That may still be acceptable if the defect has high contrast and the system was designed with margin. If the original feature was already represented by only two or three useful pixels, the same percentage change becomes far more critical.
OEMs should therefore define a minimum acceptable pixels-per-defect value and then determine how much camera-height or product-position variation can occur before that threshold is crossed.
Resolution Margin Is More Important Than Nominal Resolution
A machine that just meets its defect requirement at perfect nominal geometry is fragile. A stronger design includes enough optical margin to accommodate normal assembly tolerance, product movement and future maintenance.
If a defect requires at least four useful pixels for reliable classification, designing the nominal configuration so that it occupies exactly four pixels leaves essentially no allowance for optical variation. Designing for five or six pixels provides more robustness.
This principle is particularly important when high-resolution 8K cameras are used. The smaller 3.5 μm pixel class published for the Kyptec Automation® line scan portfolio allows finer spatial sampling than the 4K 7 μm class, but that additional sensor resolution is valuable only when the optical system maintains suitable magnification and sharpness.
Sensor Geometry Determines How Magnification Converts Into Inspection Width
Sensor length is determined by active pixel count and pixel pitch. A camera with more pixels does not automatically have a physically longer sensor if the pixels are smaller.
For example, 4K at approximately 7 μm and 8K at approximately 3.5 μm can result in comparable physical line lengths even though the 8K sensor contains roughly twice as many sampling positions. This means the same lens geometry can potentially cover a similar object FOV while the 8K configuration provides more pixels per millimetre.
That makes sensor geometry central to magnification tolerance. An OEM should record actual active sensor length, pixel count and pixel pitch instead of documenting only “4K” or “8K.”
Camera Height Tolerance Should Be Specified During Mechanical Design
A line scan camera bracket should not simply include a nominal mounting height. It should also define how accurately that height must be reproduced across machines and after service.
If changing camera height by ±5 mm causes negligible change in pixels per millimetre for the application, the bracket can have a relatively relaxed tolerance. If the same movement pushes the system close to the minimum defect-resolution threshold, the mechanical requirement needs to be tighter.
This is where optical and mechanical engineering should meet. Camera height tolerance is not only a packaging decision; it can directly influence inspection capability.
Kyptec Automation® KL-1402 for Compact High-Magnification Geometry
The Kyptec Automation® KL-1402 25 MM Line Scan Camera Lens provides a 25 mm focal length, F2.8–22 aperture range and M42 mount, with the current product page specifying 4K 7 μm and 8K 3.5 μm compatibility.
In compact printing inspection machines, narrow-web systems, textile equipment or flexible packaging machines, this shorter focal-length geometry can be useful where relatively wide FOV is required within limited machine height. However, the OEM should still calculate how much a small height change alters the field and sampling density.
The shorter focal length does not eliminate magnification tolerance; it simply provides another geometry for balancing width, stand-off and resolution.
How Product Position Tolerance Changes Dimensional Calibration
Magnification variation affects more than defect detection. It can also influence dimensional measurement.
If a machine converts sensor pixels directly into millimetres using one calibration factor, that conversion assumes the optical scale remains sufficiently stable. A change in object distance can alter magnification and therefore alter the relationship between pixels and physical dimensions.
For example, if the machine was calibrated at 10 pixels/mm but actual geometry changes to 9.8 pixels/mm, a feature measured using the original scale can acquire systematic error.
This is particularly important in applications that measure web width, coating edges, strip position or dimensional features.
The system should therefore validate measurement scale across the expected product-position range rather than assuming one calibration remains exact under all vertical movement.
Magnification Tolerance and Depth of Field Are Different
It is possible for an object to remain visually sharp while the magnification has changed enough to affect dimensional scale or pixels per millimetre.
Depth of field tells the engineer whether an object remains acceptably focused as its distance changes. Magnification tolerance tells the engineer whether the image scale remains sufficiently close to the design value.
A product can therefore remain inside acceptable focus tolerance but still create meaningful measurement or sampling variation.
This distinction is important when inspecting moving webs, boards or products with height variation. Focus stability alone does not guarantee constant object-side scale.
Magnification Tolerance and Working-Distance Tolerance Are Also Different
Working-distance tolerance describes how much object distance is expected to change. Magnification tolerance describes the optical consequence of that change.
Two machine designs may both allow ±10 mm of product movement, but one may experience negligible magnification change while the other is highly sensitive because of its optical geometry.
The engineer should therefore convert mechanical movement into an optical performance impact rather than specifying a generic working-distance tolerance with no reference to pixels per millimetre.
Why Higher Magnification Can Increase Sensitivity to Position Changes
When the system operates at higher magnification, small changes in object distance can have greater practical significance for field coverage and sampling. A close-range inspection station may therefore require tighter product-position control than a lower-magnification wide-field system.
This is especially relevant in narrow-product inspection, electronics inspection and other systems where the object occupies a large proportion of the sensor and small features need high sampling density.
The lesson is not to avoid higher magnification. It is to ensure the mechanical system can hold the object within the optical tolerance required by that magnification.
Kyptec Automation® KL-1404 for Intermediate Magnification Requirements
The Kyptec Automation® KL-1404 35 MM Line Scan Camera Lens provides an intermediate 35 mm focal length with F2.8–16 aperture and M42 mounting and is published for 4K 7 μm / 8K 3.5 μm line-scan cameras.
This geometry can be evaluated for medium-width printing systems, battery electrode inspection machines or continuous web equipment where neither a compact 25 mm nor longer 50 mm stand-off is the best mechanical fit.
For OEM tolerance analysis, the important step is to model or measure how the selected working distance changes FOV and pixels/mm around the nominal setup rather than treating the nominal value as perfectly fixed.
Machine-to-Machine Build Variation Should Be Included in Magnification Qualification
An OEM may build ten nominally identical machines and still see small differences in camera mounting height, product-plane position or bracket assembly. If the optical system is highly sensitive to these deviations, each machine can produce slightly different pixels-per-millimetre values.
This is why volume OEM production benefits from a defined optical acceptance procedure. The actual FOV or scale should be measured on each machine using a known dimensional reference.
If measured scale falls outside the approved range, the camera position can be corrected before the machine leaves production.
This turns magnification tolerance into a controlled manufacturing parameter rather than a hidden source of variation.
Product Thickness Changeover Should Have a Magnification Check
A machine handling several product thicknesses should not assume that changing thickness affects only focus.
For each product recipe, the OEM should confirm that the new upper surface position does not materially change FOV, pixels per millimetre or measurement calibration.
Where thickness differences are small relative to working distance, one optical setup may remain acceptable. Where differences are larger or the system uses high magnification, the machine may require separate calibration or controlled camera-position adjustment.
This is especially useful in board inspection, electronics inspection and rigid sheet inspection machines.
Kyptec Automation® KL-1406 for Longer-Stand-Off Geometry
The Kyptec Automation® KL-1406 50 MM Line Scan Camera Lens provides a 50 mm focal length, F2.0–16 aperture range and M42 mounting and is published for high-resolution 4K and 8K line-scan cameras.
This longer focal-length geometry can be evaluated in metal strip inspection machines, large sheet inspection systems, board inspection equipment and other larger machine frames where greater camera-to-product stand-off is available.
A longer stand-off can sometimes make a given absolute height variation represent a smaller percentage of the total object distance, but final magnification tolerance should still be verified from actual geometry rather than assumed from focal length alone.
Practical Example: Web Height Changes During Production
Consider an 8K web inspection machine nominally operating at 10 pixels/mm. If web flutter or roller geometry causes the material to rise enough that magnification increases by 3%, sampling may become approximately 10.3 pixels/mm. If the web moves farther away, sampling may drop instead.
For simple defect detection, that variation may be acceptable if the system has adequate resolution margin. For dimensional measurement, the scale change may require correction or tighter material-position control.
The correct acceptance criterion depends on what the machine is expected to do.
Practical Example: Different Board Thicknesses on One Inspection Machine
Suppose one board inspection machine handles several products whose upper surfaces differ by 20 mm. The camera remains fixed.
The OEM should place dimensional targets or representative defect samples at the highest and lowest product planes and measure whether the FOV and pixels/mm remain inside the allowed range.
If both positions satisfy the minimum defect requirement, one optical setup can be retained. If the thinner product provides insufficient sampling or the thicker product pushes the field outside the required geometry, a controlled camera-height recipe may be required.
Practical Example: Repeat OEM Machine Production
An OEM produces 50 identical printing inspection machines using the same camera and line scan camera lens. Instead of accepting nominal drawing dimensions alone, the production test uses a known reference width.
Each machine must produce a measured scale within the approved pixels-per-millimetre tolerance. A machine outside that range is mechanically adjusted before final optical commissioning.
This method improves consistency across volume production and makes future replacement or service more predictable.
Frequently Asked Questions About Line Scan Lens Magnification Tolerance
1. What is magnification tolerance in a line scan camera system?
Magnification tolerance is the allowable variation in image scale before the system no longer meets its defect-resolution or dimensional-accuracy requirement. It should be defined from pixels per millimetre, smallest defect and measurement accuracy rather than from an arbitrary percentage alone.
2. Does changing camera height change pixels per millimetre?
Yes. Moving the camera changes working distance and therefore changes magnification and FOV. A wider FOV spreads the same sensor pixels over more object width, reducing pixels per millimetre, while a narrower field increases sampling density.
3. Can product height change resolution even if the camera stays fixed?
Yes. If the inspected surface moves closer to or farther from the lens, magnification changes. The resulting pixels-per-millimetre value can therefore change even though camera hardware and focal length remain identical.
4. How do I calculate pixels per millimetre in a line scan system?
Divide the number of active sensor pixels by the object FOV in millimetres. For example, 8,192 pixels over an 800 mm field gives approximately 10.24 pixels/mm. This provides a useful starting point for defect-resolution calculations.
5. How much magnification change is acceptable?
There is no universal percentage. The acceptable amount depends on how much resolution margin the smallest required defect has and whether the system also performs dimensional measurement. A design with generous sampling margin can tolerate more variation than one operating close to its minimum requirement.
6. Does depth of field guarantee constant magnification?
No. Depth of field only indicates whether the object remains acceptably sharp over a range of positions. The object can stay in focus while image scale and pixels per millimetre still change enough to affect measurement or defect sampling.
7. Why does my dimensional measurement change when product height changes?
Because changing object distance can change optical magnification. If the system uses a fixed pixel-to-millimetre calibration factor, the measurement can shift when the product surface moves away from the calibration plane.
8. Is 8K more sensitive to magnification variation than 4K?
An 8K 3.5 μm system can reveal finer spatial changes because it samples the image more densely. Whether that makes the application more sensitive depends on the smallest defect and measurement requirement. Kyptec Automation® publishes its current line scan lens range for both 4K 7 μm and 8K 3.5 μm configurations.
9. Should camera mounting height have a mechanical tolerance?
Yes. The allowed height tolerance should be derived from how much FOV, pixels/mm and measurement scale can change without violating the inspection requirement. Optical sensitivity should therefore influence mechanical bracket design.
10. Can the same line scan lens be used for products with different thicknesses?
Potentially yes, provided all resulting product-surface positions remain inside the required focus and magnification tolerances. Each thickness should be validated for FOV, smallest-defect sampling and dimensional scale if measurement is involved.
11. How can I test magnification tolerance before production starts?
Move a calibrated reference target through the expected minimum and maximum object positions and measure FOV or pixels per millimetre at each position. Then verify the smallest required production defect at those same positions.
12. Which Kyptec Automation® line scan lens can be evaluated for compact machine geometry?
Kyptec Automation® KL-1402 25 MM is the shorter focal-length option in the current portfolio and is published with 25 mm focal length, F2.8–22 aperture, M42 mounting and 4K 7 μm / 8K 3.5 μm compatibility. It can be evaluated where comparatively wide coverage is required from limited machine height.
13. Which Kyptec Automation® line scan lens suits intermediate stand-off?
Kyptec Automation® KL-1404 35 MM provides an intermediate geometry with F2.8–16 aperture, M42 mounting and published support for 4K and 8K line-scan systems. Its suitability should be determined from actual FOV, working distance and tolerance requirements.
14. When should Kyptec Automation® KL-1406 be considered?
Kyptec Automation® KL-1406 50 MM can be evaluated where greater camera-to-product stand-off is available or preferred. It provides 50 mm focal length, F2.0–16 aperture and M42 mounting for 4K and 8K line-scan systems.
15. Can a machine remain in focus but still lose defect resolution?
Yes. The image can remain acceptably focused while the FOV becomes wider and object-side sampling decreases. This is why focus validation and magnification validation should be treated as separate checks.
16. Should pixels-per-millimetre be measured on every OEM machine?
For machines with demanding dimensional or small-defect requirements, this is a strong production-control method. Measuring a known reference width confirms that the actual optical geometry matches the approved machine specification rather than relying only on nominal bracket dimensions.
17. Can software calibration compensate for magnification changes?
Calibration can compensate for predictable scale changes in some measurement applications, but it cannot restore defect sampling that has been lost because the optical FOV became too wide. The physical optical system must still provide enough pixels per defect.
18. What information should I provide before selecting a line scan lens when magnification tolerance is important?
Provide active pixel count, pixel pitch, physical sensor length, nominal FOV, available working distance, maximum camera-height tolerance, expected product-height variation, smallest defect and any dimensional-measurement requirement. These values allow the Kyptec Automation® Line Scan Camera Lens collection to be evaluated around both nominal performance and real production tolerance. The live collection currently contains dedicated 25 mm, 35 mm and 50 mm line scan camera lens options.
Conclusion
Line scan camera lens magnification should not be treated as a fixed value that exists only in the original optical calculation. In a real inspection machine, camera-height variation, product-position change, material thickness and mechanical build tolerance can all alter object distance. Those changes can modify FOV, pixels per millimetre and dimensional scale even when the lens, sensor and focal length remain unchanged.
The strongest design method is therefore to establish a nominal magnification and then define an allowable tolerance around it. The OEM should calculate pixels per millimetre at the nominal condition, determine how many pixels represent the smallest important defect, and then test the nearest and farthest expected object positions. If dimensional measurement is involved, the pixel-to-millimetre scale should also be verified across the same tolerance range. This creates a production-ready optical specification rather than a single ideal laboratory geometry.
The Kyptec Automation® Line Scan Camera Lens portfolio provides a focused set of Kyptec Automation® KL-1402 25 MM, Kyptec Automation® KL-1404 35 MM and Kyptec Automation® KL-1406 50 MM focal-length geometries for high-resolution 4K and 8K line-scan applications. Their current product pages specify M42 mounting, adjustable aperture ranges and compatibility with 4K 7 μm / 8K 3.5 μm systems, while emphasizing consistent sharpness, minimal distortion and continuous industrial imaging.
For web inspection machines, printing inspection systems, textile equipment, battery electrode machines, metal strip lines, board inspection systems and other continuous production equipment, defining magnification tolerance before the machine is released to production can prevent a subtle but important source of performance variation. The best optical design is not simply one that produces enough resolution at one perfect working distance; it is one that preserves the required FOV, pixels per millimetre and defect-detection capability throughout the realistic mechanical and product-position variation that the machine will experience in service.

Share:
Line Scan Camera Lens Commissioning Guide: How to Set Focus, Aperture and Full-Width Sharpness Before Production Starts
Protective Glass in Front of a Line Scan Camera Lens: How Cover Windows Affect Focus, Resolution, Reflections and Image Quality