Precision lens manufacturer for machine vision, medical, and industrial imaging applications.

A Soft Corner on a 5 MP M12 Module: Lens, Holder Tilt, or Sensor Tilt?

Home - Comparisons - A Soft Corner on a 5 MP M12 Module: Lens, Holder Tilt, or Sensor Tilt?
Reading Time: 8 min ( Word Count: 2,025 )

Start with the pattern, not the parts. If all four corners are soft and each one sharpens when you refocus it, the lens is showing field curvature, which is normal optical behaviour for a compact M12 design. If one side is soft and the soft side rotates with the lens when you turn it, the fault is inside the lens: a decentred element or a tilted cell. If the soft side stays on the same sensor corner when the lens turns, the tilt is mechanical, in the holder, the screws or the sensor package. A 5 MP module at a wide aperture resolves that difference in about twenty minutes on a bench, and it decides whether you replace a lens or a holder.

Key Takeaways

  • Corner softness has three common causes: field curvature, lens decentring, and mechanical tilt.
  • Refocus each corner first; curvature moves the best-focus plane, tilt changes which corner is worst.
  • Rotate the lens 180 degrees and note whether the soft corner follows the glass or stays on the sensor.
  • Swap the holder before you condemn the sensor; M12 thread play and uneven screw torque are common.
  • A slanted-edge chart and a through-focus series turn the argument into numbers you can sign.
  • Record the cause, the part changed and the re-test result, or the next batch repeats the problem.

A target you can repeat

Corner softness is easy to see and hard to compare. Before you change anything, fix the scene. Use a flat, high-contrast target with fine detail across the whole field: a printed slanted-edge chart, a resolution target, or a textured surface with known features. Mount the module so the sensor plane is parallel to the target within the tolerance you can measure, not by eye. Lock exposure, gain and white balance, and disable any sharpening in the camera pipeline. Sharpening hides the first loss of contrast and makes two bad modules look different.

Light the target evenly. A corner that is darker because the illuminator falls off will look softer than it is once noise and contrast are considered. If you cannot light the field evenly, capture a flat-field reference first and compare corners at equal signal level. The test is about focus and alignment, not about illumination, and mixing the two is how a lighting problem becomes a lens return.

Record the working distance, the aperture and the lens model with the images. A 5 MP module at f/2.0 and one metre is a different test from the same module at f/4 and 300 mm, and the corner behaviour changes with both. The M12 lens selection guide covers how format, focal length and aperture set the corner budget before any sample arrives.

Reading the corner pattern

Look at the four corners at the same focus position and write down what you see. Symmetric softness, where all four corners are similar and the centre is clearly better, is the signature of field curvature or of a lens that is being asked for more resolution than its design gives at that aperture. Asymmetric softness, where one corner or one side is distinctly worse, is the signature of tilt or decentring. The distinction matters because one is a design property you can budget for and the other is a build fault you can reject.

Then refocus each corner in turn, without moving the module. If a corner comes sharp at a different focus position, the lens has a curved field and the corner is not defective. If the corner never comes sharp at any focus position, the lens is not resolving that part of the field, or the image circle does not cover the sensor. A 1/4-inch lens on a 1/2.5-inch sensor shows exactly this pattern: the centre is usable and the corners never clean up.

Two corners sharp at one focus setting and the opposite pair sharp at another is a strong tilt signature. It means the lens and sensor planes cross, and the best-focus plane runs diagonally across the image. That is mechanical until proven otherwise. The field curvature datasheet test describes how to separate the optical curve from a mounting error with a through-focus series.

The focus sweep

Focus the centre to peak sharpness and capture. Then move focus in small steps in both directions and capture the centre and all four corners at each step. Plot the sharpness of each region against focus position. The result is a set of curves: the centre peaks at one position, and each corner peaks at another. Corner peaks on one side of the centre mean curvature; a two-and-two split means tilt.

Use the same chart and the same crop for every step. A slanted-edge measurement gives a repeatable number per region; a visual score of one to five does not. Keep the step small enough that you do not step over the peak, and take the whole series in one session so the light and the temperature do not drift.

The rotation test

Mark the top of the lens barrel and the top of the holder with a pen. Capture the four corners, then rotate the lens by 180 degrees in its thread and capture again. If the soft corner moves with the lens, the fault is in the lens: a decentred element, a tilted element, or a cell that is not square to the thread. If the soft corner stays on the same image corner, the fault is on the camera side: holder, screws, PCB or sensor package.

M12 industrial lens with a thread that can be rotated half a turn to test whether a soft corner follows the glass

The rotation test has two traps. First, an M12 thread has a finite start, and some barrels cannot be rotated by exactly half a turn without changing the focus. Re-focus after rotation, or rotate the whole module relative to the target instead, so the comparison is fair. Second, a lens with a keyed or asymmetric mount may not seat the same way after rotation. If the pattern changes unpredictably after removal and refit, suspect the seating rather than the optics.

A cleaner version of the test is a holder swap: same lens, same camera, two holders. If the softness follows the lens into both holders, the lens is at fault. If it stays with one holder whatever lens you fit, the holder is at fault. The swap takes longer than a rotation but it removes the thread-seating ambiguity, and it is the test to run when a supplier disputes the finding.

Holder tilt versus sensor tilt

If the rotation test points to the camera side, separate the holder from the sensor. M12 holders are often fixed with two small screws, and uneven torque, a burr under a screw head or a compressed O-ring can tilt the holder by a fraction of a millimetre. At a wide aperture that fraction is enough to cost a corner. Loosen both screws, let the holder settle flat on the PCB, and tighten evenly in two passes. Re-test before you do anything else.

Thread play is the second common cause. A moulded holder with loose threads lets the lens sit at a slight angle, and tightening the focus lock ring can cock the barrel further. If the corner pattern changes when you tighten or loosen the lock ring, the thread fit is part of the problem. A metal holder with a better thread fit, or a lens with a longer thread engagement, may fix it without touching the sensor.

True sensor package tilt is less common on a modern SMT line, but board warp, uneven paste deposition and reflow can produce it. The test is a known-flat metal holder: fit it, refocus, and compare. If the same corner is soft with a holder you trust, the sensor or the board is tilted. The sensor tilt and decenter limits article gives the lens-side data to request when you specify the housing.

Measure, do not argue

Sooner or later a supplier will say the lens is fine and you will say the module is fine. Numbers end that conversation. The table below is the minimum set that separates the three causes; each row can be produced with a chart, a focus stage and one rotation.

Symptom Focus sweep result Rotation result Most likely cause
All corners soft, centre sharp Corners peak at a different focus position Pattern rotates with the lens Field curvature, normal design
All corners soft, never sharpen No corner peak at any focus position Pattern rotates with the lens Lens resolution or image circle limit
One corner or side soft Corner peak offset from centre Soft corner follows the lens Decentred or tilted lens element
One corner or side soft Two corners peak on each side Soft corner stays on the sensor Holder tilt or thread play
Same corner soft with a known-flat holder Diagonal split of best focus Stays fixed through lens and holder swaps Sensor package or board tilt

The measurement does not have to be a laboratory MTF run. A slanted-edge analysis of the same chart at each corner produces a comparable number, and the Imatest note on image-quality testing across a supply chain describes why the chart and the analysis method have to be fixed before two parties compare results. Keep the raw images with the table. A conclusion without the capture it came from is an opinion, and the next engineer will re-run the test anyway. Store the chart, the focus positions, the aperture, the working distance and the lens serial number in one folder per module, and name the folder by serial. That folder is the evidence if the batch is disputed later.

When you buy the lens, put the corner requirement in the purchase specification instead of discovering it at goods-in. State the field positions to be measured, the chart, the aperture and the acceptance limit, and ask for the same measurement on the sample. The M12 lens range is built around the format and focus-lock options that these modules use, and the specification conversation is easier when both sides measure the same corners the same way.

Specifying an M12 module and tired of corner arguments? Put the field points, the chart and the acceptance limit on the drawing before the sample is built. Compare the M12 lens options and the focus-lock configurations.

What goes into the record

The record should answer four questions: what was the symptom, what test separated the causes, what part was changed, and what the re-test showed. Write it on one page. Include the module serial, the lens part number and serial, the holder part number, the camera model, the chart, the aperture, the working distance and the focus positions used. If the cause was field curvature, say so and state the corner budget the design allows. If the cause was a build fault, name the station and the corrective action.

Add a re-test result after the corrective action, even when the action was only a re-seat. A record that stops at the diagnosis cannot show that the fix worked, and the same module will come back.

FAQ

Is some corner softness normal on a 5 MP M12 module?

Yes. A compact wide-angle design usually has field curvature, so corners sharpen at a slightly different focus position than the centre. What is not normal is a corner that never sharpens or a pattern that is clearly one-sided.

How many modules should I test before deciding it is a batch problem?

Enough to see the pattern: a handful from the same lot, plus one known-good reference module.

What if the corner is soft only at the widest aperture?

That is expected for many designs. Check the aperture the application actually uses; if the line runs wide open, the corner budget has to be specified at that aperture, not at f/4.

Conclusion

  • Read the pattern first: symmetric softness points to the lens design, one-sided softness points to tilt or decentring.
  • Run a focus sweep to separate field curvature from a mechanical error.
  • Rotate the lens, then swap the holder, to see which part carries the fault.
  • Only after those tests should the sensor package be suspected.
  • Record the cause, the part changed and the re-test, and put the corner limit into the purchase specification.

A soft corner is not a mystery. It is one of three causes, and a bench, a chart and two rotations will tell you which one.

Baker Zhao

Baker Zhao

Founder, Lensmind Optics

Baker Zhao is the founder of Lensmind Optics, with 26 years of experience in the optical industry — including Vice President of Sales at Sunny Optical (Zhongshan) and earlier roles at Foxconn, LG and Sintai Optical. He leads Lensmind with a mission to help customers find reliable, application-specific optical solutions from development to volume production.

Leave a Comment