It is not uncommon in machine vision projects that the image is clearly focused and razor-sharp in the lab, yet becomes blurry once installed on site. Many people immediately suspect a broken lens or a low-quality camera, but in reality, the more common cause lies in the differences between the prototype and the field installation—especially the fit tolerances between the lens and the structural components.
First, it is important to understand that lab prototypes are usually tuned repeatedly, with the focal plane, clips, and shims all in an ideal state. During field installation, however, structural parts may experience tiny deformations or displacements caused by machining errors, assembly stresses, thermal expansion or contraction, or even differences in screw tightening torque. These seemingly insignificant tolerances can stack up and shift the lens image plane, resulting in defocus.
When troubleshooting, it is recommended to first distinguish between an optical problem and a structural problem. The simplest approach is to remove the entire blurry camera from the field and test it on the same reference bench used in the lab. If the image becomes sharp again, the lens itself is fine and the issue lies in the structural installation on site. In that case, focus on inspecting the mating surfaces between the lens mount and the camera body: check for gaps, tilt, or whether the screw holes are properly aligned.
Another common situation is stress transfer between the lens and the structural parts. For example, if the lens is secured by a retaining ring or flange, over-tightening the retaining ring can create uneven radial forces on the lens barrel, changing the spacing of internal lens elements and directly shifting the focal plane. In such cases, try adjusting the tightening torque, or add an elastic washer between the retaining ring and the lens barrel to cushion the stress.
If images are sometimes sharp and sometimes blurry after swapping in lenses from a different batch, the mechanical interface tolerance of the lens should be questioned. Use a feeler gauge to check the parallelism between the lens end face and the mounting surface, or perform a dial indicator rotation test to see whether the end-face runout is excessive. Normally, a lens mechanical back focal length tolerance within ±0.05 mm is acceptable; if it exceeds this range, contact the supplier for confirmation.
Lastly, do not overlook field environmental factors. Vibrations during transport or an uneven mounting base can cause relative displacement between the structure and the lens. It is recommended to reserve fine-adjustment mechanisms during the structural design phase, such as adjustable lens mounts or eccentric adjustment rings, so that even if tolerance fluctuations occur in the field, sharpness can be quickly restored via fine tuning. In short: first verify the lens performance independently, then check the installation path, and finally examine the structural fit. By peeling away layers in this order, most problems can be pinpointed to a specific stage.
