Machine Vision Lens Focus Breathing Explained: Why FOV and Measurement Scale Change When You Refocus the Lens

A machine vision system can appear perfectly stable until someone adjusts the focus. The image becomes sharper again, but the object may suddenly occupy a slightly different number of pixels, the field of view may shift, or a previously calibrated measurement scale may no longer match exactly. This effect is commonly associated with focus breathing, where refocusing changes the effective optical geometry enough to alter image magnification and field of view.

For industrial inspection, focus breathing matters because machine vision is rarely concerned only with whether an image looks sharp. Many systems use the relationship between physical object size and sensor pixels for dimensional measurement, position detection, defect sizing, alignment or pass/fail decisions. If refocusing changes this relationship, an inspection that was originally calibrated at one focus condition may not behave identically after the lens is adjusted.

Buyers searching for a machine vision lens for measurement, industrial lens with stable magnification, or answers to why machine vision FOV changes after focusing should therefore understand that focus position, working distance, magnification and calibration are connected. Kyptec Automation® provides a broad Machine Vision Lens portfolio covering multiple focal lengths, 2/3", 1" and 1.1" formats, and several optical resolution classes, giving OEMs and system integrators flexibility to choose the optical geometry around the actual inspection requirement.

What Is Focus Breathing in a Machine Vision Lens?

Focus breathing describes a change in apparent field of view or image magnification as the lens focus position is adjusted. Although the nominal focal length printed on the lens remains the same, internal movement used to bring objects at different distances into focus can change the effective imaging geometry.

In practical terms, an object may become slightly larger or smaller on the sensor after the lens is refocused. A feature that originally occupied 500 pixels could occupy a somewhat different number of pixels after the focusing mechanism is moved, even if the physical object itself has not changed.

This effect is particularly important in machine vision measurement systems, where a fixed relationship between pixels and millimetres is often assumed after calibration.

Why Refocusing Can Change Field of View

Field of view depends on several parameters, including sensor dimensions, focal length, working distance and the effective optical state of the lens.

When the lens is refocused for a different object distance, internal optical spacing can change. That change can alter effective magnification, which in turn changes how much of the real-world scene fits across the sensor.

A small FOV change may be unimportant in a simple presence-detection application, but it can matter in a precision system. If a 100 mm reference object occupied 2,000 pixels before refocusing and 2,050 pixels afterward, the original pixel-to-millimetre calibration is no longer exactly equivalent.

This is why machine vision FOV after refocusing should be checked whenever measurement accuracy depends on stable object scale.

Focus Breathing Is Different From Changing Working Distance

Focus breathing and working-distance change can both alter magnification, but they are not the same phenomenon.

Changing working distance physically moves the object or camera. Focus breathing occurs when the focus adjustment itself changes the effective image scale.

In a real industrial system, both can occur together. A product may change height, forcing the operator to refocus the lens. The new object distance already changes geometry, and the focus adjustment can introduce an additional change in effective magnification.

For this reason, systems with variable product height should not assume that simply refocusing will preserve the original measurement scale.

Why Focus Breathing Matters for Dimensional Measurement

Dimensional machine vision depends on converting image measurements into physical dimensions. If 100 pixels represent 1 mm during calibration, the system assumes that relationship remains valid under the same optical geometry.

When refocusing changes magnification, the conversion can change.

A part may physically remain 10 mm wide, but its image could occupy a different number of pixels after focus adjustment. Unless calibration is updated, the software can report a dimensional shift that did not actually occur.

This makes focus breathing in industrial measurement lenses particularly important for applications such as width measurement, gap inspection, edge position, component spacing and dimensional verification.

Why Position Detection Can Also Be Affected

Position-detection systems often use feature coordinates to determine where an object is located relative to a reference.

A change in image magnification can alter how far a feature appears from the image centre in pixel terms. Even if the real-world feature has not moved, the image coordinate can shift slightly because the optical scale has changed.

This becomes important in high-precision positioning applications where small coordinate differences matter.

The safest approach is to establish focus first, mechanically secure the optical configuration, and then complete the final calibration or position reference.

Why Defect Size Thresholds Can Change After Refocusing

Defect detection often uses pixel area, width or diameter thresholds. A scratch may need to be at least a certain number of pixels long before it is classified as a reject.

If refocusing changes magnification, the same physical defect can occupy a slightly different number of pixels.

This can create inconsistent defect classification between machines or after maintenance, even though the product itself has not changed.

A machine vision lens for defect measurement should therefore be used in a stable optical configuration whenever defect thresholds are tied to physical size.

Focal Length Influences How the System Is Designed Around Focus

Focus breathing is not determined simply by whether a lens is 16 mm, 25 mm or 35 mm, but focal length still affects the field of view and working distance at which the system operates.

For a compatible 2/3" camera requiring a moderate field, the Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a 16 mm, 10 MP machine vision lens configuration for industrial imaging.

If this focal length produces the required FOV at the intended working distance, the optical setup should be focused and calibrated in its final production position rather than repeatedly adjusted during operation.

Why 25 MM Can Be Useful for a More Localized Measurement Field

A 25 mm machine vision lens provides tighter viewing geometry than a 16 mm lens when sensor size and distance are comparable. This allows a smaller inspection region to occupy more of the sensor.

For compatible 2/3" cameras, the Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens is part of Kyptec Automation®'s 10 MP machine vision lens range.

A tighter field can improve object sampling, but measurement calibration still assumes that the focus and working-distance configuration remain stable after qualification.

Sensor Format Must Remain Part of the Calculation

Focus breathing should not be evaluated separately from sensor size because the sensor determines how much of the projected image is actually recorded.

A 25 mm lens intended for a 2/3" sensor and a 25 mm lens intended for a 1" sensor do not represent the same complete optical configuration. Kyptec Automation® offers separate 25 mm machine vision lens models for these sensor formats, including a dedicated 25 MM Machine Vision Lens With 10 MegaPixel & 1" Format Lens.

For measurement systems, sensor format, focal length, working distance and focus should therefore be documented together.

High-Resolution Systems Can Reveal Small Scale Changes More Clearly

When a system uses a high-resolution camera, relatively small changes in object scale may be easier to detect because the measurement contains more pixels.

This can be beneficial for precision inspection, but it also means that seemingly minor optical changes can become relevant.

Kyptec Automation® provides high-resolution machine vision lens configurations such as the Kyptec Automation® KL-1242 35 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens, which forms part of the 25 MP larger-format machine vision lens family.

Where a system uses this type of high-resolution optical configuration for dimensional inspection, the focus condition should be treated as part of the calibration state rather than as a freely adjustable setting.

Does Aperture Cause Focus Breathing?

Aperture adjustment and focus adjustment are different mechanisms.

Changing aperture primarily affects light transmission, depth of field and fine-detail performance. It does not normally create focus breathing in the same way that changing focus can.

However, aperture can affect whether small focus differences remain noticeable. A smaller aperture can increase depth of field, allowing a greater range of object positions to remain sufficiently sharp without refocusing.

This can be useful in systems where product height varies slightly and repeated focus changes would otherwise create unnecessary scale variation.

Use Depth of Field to Reduce the Need for Refocusing

One practical way to reduce focus-breathing problems is to design enough depth of field into the system that normal product-position variation does not require the lens to be refocused.

If the highest and lowest expected object surfaces remain within the acceptable focus range, the optical configuration can stay fixed.

This is often preferable for production measurement because fixed focus preserves a more stable image scale and calibration relationship.

The aperture should still be chosen carefully because excessive stopping down can reduce fine-detail performance through diffraction.

Why Refocusing During Product Changeovers Can Create Measurement Variation

Many factories run several product variants on the same machine. Different product heights can lead operators to refocus the camera during changeovers.

If the inspection program continues using the same calibration after focus has changed, measurement scale may no longer be identical.

A better strategy is to determine whether all product variants can remain within one acceptable depth-of-field range. If that is not possible, each approved optical configuration should have its own verified calibration condition.

This makes focus-breathing awareness particularly useful in machine vision systems for multiple product sizes and heights.

Focus Breathing Can Affect FOV Margin at the Image Edge

Even when dimensional measurement is not required, a change in FOV can affect whether all required features remain visible.

Suppose an inspection system has only a small margin around the product. Refocusing may tighten the field slightly, causing an edge or feature near the image boundary to move outside the usable FOV.

This is another reason machine vision systems should not be designed with zero framing tolerance.

The required FOV should include reasonable product-position and optical setup margin.

Why Refocusing After Maintenance Should Trigger Verification

A technician may clean the lens, replace the camera, adjust a mounting bracket or simply refocus the system during maintenance.

The image may look better afterward, but if the focus position changed significantly, measurement scale and FOV should be checked before the machine returns to production.

The correct maintenance procedure should therefore include a calibrated reference target or known physical dimension that can confirm whether the original optical scale has been restored.

For OEM machines, this verification step can prevent unexplained differences between pre-maintenance and post-maintenance inspection results.

Why Software Scaling Is Not the Best First Solution

It is technically possible to compensate for different image scales in software once the new scale is known.

However, allowing the optical geometry to change freely and then compensating every time increases system complexity. It also makes maintenance and cross-machine standardization more difficult.

A stronger production design keeps the machine vision lens, working distance and focus condition fixed wherever possible, then performs calibration on that stable geometry.

Software compensation should solve necessary system variation, not become a substitute for repeatable optics.

Focus Breathing Matters More When the FOV Is Small

A system inspecting a very small field often operates at higher object-side magnification. Small scale changes can therefore have a proportionally larger impact on feature dimensions in pixels.

This is especially relevant in close-range inspection, small-component measurement and fine-defect sizing.

For these applications, engineers should verify whether refocusing across the expected object-distance range creates a meaningful change in FOV.

If it does, either the optical setup should remain fixed or each focus state should be calibrated appropriately.

Focus Breathing and Calibration Consistency Across Multiple Machines

OEMs building multiple copies of the same inspection machine should also consider focus consistency from machine to machine.

If one technician focuses Machine A slightly differently from Machine B, their effective image scales may not be perfectly identical even when the same camera and lens model are used.

Standardizing the exact Kyptec Automation® machine vision lens model, working distance, focus procedure and calibration target helps reduce this variation.

The Kyptec Automation® Machine Vision Lens portfolio provides multiple focal lengths and resolution classes that can be documented as exact optical configurations for repeat OEM production.

How to Test a Machine Vision Lens for Focus Breathing

A practical test begins with a calibrated flat target containing known dimensions.

Mount the camera and lens rigidly and record the field of view and pixel width of a known feature at the initial focus setting. Then change the object distance within the application's required range and refocus the lens.

Measure the same target again.

If the physical target size remains unchanged but its image size in pixels changes, the optical system has experienced a change in magnification. The full FOV should also be compared.

The important question is not whether some change exists, but whether the amount of change is significant for the inspection tolerance.

Set Focus Before Final Measurement Calibration

The correct commissioning sequence is straightforward: finalize camera position, working distance, focal length, aperture and focus first, and only then perform final measurement calibration.

If focus is adjusted afterward, the calibrated relationship should be verified again.

This process is especially important when measurement uncertainty is small compared with the expected scale change from refocusing.

Treating focus as part of the calibration state is a stronger engineering practice than regarding it simply as an image-sharpness control.

Why Kyptec Automation® Is a Practical Choice for Stable Machine Vision Lens Selection

Different applications require different focal lengths and image formats, but measurement stability begins with choosing an optical configuration that can remain fixed during production. Kyptec Automation® offers a broad Machine Vision Lens range across multiple sensor formats, focal lengths and resolution classes, making it easier for OEMs and system integrators to select a lens around the actual field and working-distance requirement.

For compatible 2/3" 10 MP cameras, Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a moderate focal-length option, while Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a tighter field.

For higher-resolution larger-format applications, Kyptec Automation® KL-1242 35 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provides another optical configuration for compatible industrial imaging systems.

The practical advantage is not that any lens can eliminate every scale change under every focusing condition. It is that Kyptec Automation® provides multiple optical choices that allow engineers to design the correct FOV and working distance from the beginning, reducing the need for unnecessary refocusing during production.

Frequently Asked Questions About Machine Vision Lens Focus Breathing

1. What is focus breathing in a machine vision lens?

Focus breathing is a change in apparent field of view or magnification that occurs when the lens focus position is adjusted. The object can become slightly larger or smaller on the sensor even though its physical dimensions have not changed. This matters in industrial measurement because the pixel-to-millimetre relationship may change after refocusing.

2. Why does my machine vision field of view change after I refocus the lens?

Refocusing changes internal optical geometry in many conventional lenses. This can alter effective magnification and therefore the amount of real-world area captured by the sensor. The change may be small, but it should be measured if the application relies on a tightly controlled FOV or calibrated dimensions.

3. Does refocusing a machine vision lens change magnification?

It can. A change in focus position can change effective object magnification, causing a known feature to occupy a different number of pixels. The practical importance depends on how much the scale changes relative to the application's measurement tolerance.

4. Should I recalibrate after changing machine vision lens focus?

For precision measurement, position detection or defect sizing, calibration should at least be verified after a meaningful focus adjustment. If the measured object scale has changed, recalibration is appropriate because the original pixel-to-world relationship no longer represents the new optical state.

5. Is focus breathing the same as zoom?

No. A zoom lens intentionally changes focal length to alter field of view. Focus breathing is an unintended or secondary FOV change associated with refocusing. A fixed-focal-length machine vision lens can therefore exhibit scale change even though it is not a zoom lens.

6. Does every machine vision lens show the same amount of focus breathing?

No. The amount depends on optical design, focus mechanism, object distance and the range over which the lens is refocused. The correct approach is to test the chosen lens across the application's real object-distance range rather than assuming a universal value.

7. Can depth of field reduce problems caused by focus breathing?

Yes. If sufficient depth of field keeps all expected product heights acceptably sharp, the lens can remain at one fixed focus setting. Avoiding repeated refocusing preserves a more consistent optical scale and can simplify measurement calibration.

8. Does focus breathing matter for simple presence detection?

Usually less than for precision measurement, but it can still matter if a required feature sits near the image edge or if size thresholds are used. If refocusing tightens the FOV enough to crop the product, even a simple presence system can be affected.

9. Why does a measured dimension change after refocusing even though the part is identical?

The optical magnification may have changed. If the software continues to use calibration data from the previous focus condition, the same physical dimension can convert to a different reported measurement. Verify object size in pixels before assuming the part itself has changed.

10. Can aperture adjustment prevent focus breathing?

Aperture does not directly eliminate focus breathing, but increasing depth of field can reduce the need to refocus as product distance varies. The aperture should still be chosen to preserve enough illumination and optical resolution for the inspection requirement.

11. Which Kyptec Automation® lens can be considered for a 2/3-inch measurement camera?

The required focal length depends on FOV and working distance. For a compatible 2/3" camera requiring a 10 MP optical class, Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens is one option, while Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a tighter field.

12. Does a higher-resolution lens reduce focus breathing?

Not necessarily. Optical resolution and focus breathing describe different characteristics. A high-resolution lens can transfer finer detail while still showing some change in magnification when focus is adjusted. High-resolution systems may actually make small scale changes easier to detect.

13. Is focus breathing important when inspecting products of different heights?

Yes. If each product height requires a different focus position, image scale may change between product variants. The better approach is to determine whether one fixed-focus, adequate-depth-of-field configuration can cover all variants. If not, each approved focus condition should have its own verified calibration.

14. How do I measure focus breathing in an industrial lens?

Use a reference target with known dimensions, record its pixel size and complete FOV at one focus condition, then change object distance, refocus and repeat the measurement. The percentage change in image size or FOV provides a practical measure of the scale variation relevant to your application.

15. Can software correct focus-breathing scale changes?

Yes, if the new image scale is accurately calibrated, but allowing the optical state to change unnecessarily makes the system harder to maintain. Fixed focus and stable working distance are generally preferable for repeatable industrial measurement.

16. Why is focus breathing important for OEM machine standardization?

If equivalent machines are focused differently, they can produce slightly different FOV and object scale even with identical lens models. OEMs should therefore standardize lens model, camera sensor, working distance, focus procedure and calibration reference so each machine reproduces the approved optical geometry as closely as practical.

17. Where can I compare machine vision lenses for different FOV and measurement requirements?

The Kyptec Automation® Machine Vision Lens portfolio includes multiple focal lengths across 5 MP, 10 MP and 25 MP classes and different sensor formats. Buyers should define their required FOV, working distance, sensor format and measurement tolerance first, then shortlist the Kyptec Automation® machine vision lens that allows the production system to operate with the most stable practical focus condition.

Keep Focus, FOV and Calibration as One Controlled Optical Configuration

Focus breathing becomes important in machine vision because focus is not always an isolated sharpness adjustment. Refocusing can alter effective magnification, which changes the number of pixels representing a physical feature and may also change the overall field of view. In a calibrated measurement or position-detection system, those changes can directly affect the relationship between image coordinates and real-world dimensions.

The strongest design strategy is therefore to select the focal length and working distance so the complete product range can be inspected with as little focus adjustment as possible. Adequate depth of field should be designed into the system, focus should be finalized before calibration, and any significant refocusing during maintenance or product changeover should trigger an FOV and measurement-scale verification.

Kyptec Automation® offers a comprehensive Machine Vision Lens portfolio covering multiple focal lengths, image formats and resolution classes for industrial imaging. By selecting the appropriate Kyptec Automation® machine vision lens for the required sensor, FOV and working distance—and then treating focus as part of the controlled calibration state—OEM machine builders and system integrators can maintain more consistent measurement scale, image framing and inspection repeatability throughout production.