Quality and inspection

Vision systems and optical inspection: speed, limits and false calls

A camera does not inspect a part; a camera, a lens, a light and a fixture do. How to set up optical inspection that finds real defects without drowning the line in false calls.

QKQumek Quality Desk··10 min read·Updated
A⌖ 0.05

Key takeaways

  • Optical inspection is a system: optics, lighting, fixture and software decide the result together.
  • Lighting choice separates more defects than camera resolution does.
  • A vision system tuned until it passes every sample will also pass some defective parts.
  • Validate the system with a challenge set and monitor false calls and escapes as production numbers.

What optical inspection does well

A vision system excels at checks that are repetitive, fast and two dimensional. Presence and absence, orientation, hole count, pitch, profile against a template, print position and surface marks are all natural fits. It does not tire, it records an image for every part and it can inspect at the rate of the press or the assembly line.

It is weaker where the question needs depth, touch or judgement. A burr height, an undercut, a thread depth, a crack that runs into a bore or a surface that looks different depending on the angle are difficult. That does not rule vision out, but it changes the design: the system may need a second camera, a structured light projection or a contact check alongside the image.

Resolution, field of view and the pixel budget

The first calculation is the pixel budget. Divide the field of view by the sensor width in pixels to get the millimetres per pixel. A defect of 0.2 mm needs several pixels across to be detected reliably, not one. A common starting point is at least five pixels across the smallest defect, and ten where the edge position matters.

Field of view and resolution trade against each other. A wide view covers more parts but gives fewer pixels per feature. A narrow view gives detail but needs precise part placement. Telecentric lenses reduce perspective error and are useful for measuring hole positions on a flat part. Standard lenses are cheaper and adequate for presence checks where the part is held in a repeatable position.

A bigger sensor does not fix bad lighting

If the defect has no contrast under the current light, more pixels only give you a sharper image of nothing. Solve the contrast first, then buy resolution.

Lighting is the real design decision

Most vision projects succeed or fail on illumination. A backlight turns the part into a silhouette and gives a stable edge for dimensional and hole checks. A low angle light rakes across the surface and picks up scratches, dents and burrs that a front light hides. A dome light gives soft, even illumination for colour and print checks on a curved part. Coaxial light reflects back along the lens axis and reveals flat, specular surfaces.

The part material decides which of these works. A shiny plated surface will flare under direct light and disappear under a dome. A black moulded part absorbs light and needs more exposure or a different wavelength. A transparent part may need a backlight with a diffuser and a filter. Test the lighting on real parts, including the worst surface finish in the specification, before the camera is fixed.

False calls and escapes

A false call is a good part rejected by the system. An escape is a bad part accepted. The two move in opposite directions. Tighten the thresholds and false calls rise, which pushes operators to switch the system off or wave parts through. Loosen them and escapes rise, which is worse but invisible until a customer complains.

The tuning target is not zero false calls. It is a stable balance that the line can live with, validated against a challenge set that includes good parts at the edge of the process and defective parts at the edge of the defect definition. Keep the images from that set and re-run them after any change to the light, the lens or the software.

Matching the optical method to the check
CheckUsual methodMain limit
Hole presence and positionBacklight, telecentric lensPart must sit flat and square
Profile against a templateBacklight silhouetteCannot see internal features
Surface scratch or dentLow angle lightSensitive to surface finish variation
Print or colourDome light, colour cameraColour shift with lamp age
Burr heightLow angle or laser profilePoor repeatability on soft material
Thread presenceCoaxial or angled lightDepth and damage are hard to judge

The method is a starting point. Prove it on real parts, including the worst case allowed by the drawing.

Part presentation and the fixture

A vision system sees what the fixture presents. If the part can rotate, the measurement rotates with it. If the part can sit on a burr, the height changes and the focus drifts. The fixture should locate the part on the datum the drawing uses, hold it flat, and repeat the position within the field of view.

For a stamped or formed part, the fixture often needs a nest with a vacuum or a light clamp. Avoid anything that marks the surface the camera inspects. Where the part arrives on a conveyor, a trigger sensor and a reject mechanism have to be timed to the line speed, and the reject confirmation has to be recorded. A system that detects a defect but cannot remove the part is a monitoring tool, not an inspection station.

Where vision inspection fails

Vision struggles with depth and with anything hidden. A chamfer, a countersink angle, a thread depth or an internal bore cannot be judged from a single top view. A crack that opens under load may be invisible when the part is relaxed. A soft material can smear rather than tear, and the mark left behind may look acceptable in one orientation and not another.

It also struggles with defects that are defined by feel rather than by a number. Light scratches, colour variation and slight dents need a boundary sample set that both the supplier and the customer have signed. Without that set, the system is being asked to enforce an opinion.

Validating the system

Treat the vision system as a gauge and study it like one. For a pass or fail decision, run a study with several operators and a set of parts that includes borderline good and borderline bad pieces. Compare each operator's decision with the reference and with each other. Agreement between operators on a borderline part is often poor, and that is a finding about the defect definition, not only about the system.

Then run the system unattended on a challenge set at a fixed interval, and track the false call rate and the escape rate. A sudden change in either is a signal: a lamp aged, a lens moved, a fixture wore or the part supplier changed a tool. Record the software version and the recipe with the results, because a change in either can alter every decision.

  • Challenge set with good, borderline and defective parts, images retained.
  • Operator comparison on the borderline parts before release.
  • False call rate and escape rate tracked as production measures.
  • Lamp hours, focus and fixture wear on a planned check.
  • Software version and recipe recorded against the lot.

Frequently asked questions

How many pixels do I need per defect?

A practical starting point is five pixels across the smallest defect, and ten where edge position or a dimension matters. The real answer comes from a trial on real parts, because contrast and lighting can matter more than pixel count.

Why does the system reject good parts after a lamp change?

The new lamp has a different spectrum or output, so the contrast and the thresholds shift. Re-run the challenge set after any lamp, lens or software change and adjust the recipe against the retained images.

Can vision inspect thread depth?

Not reliably from a single top view. Thread presence and position can be checked optically, but depth and damage usually need a tactile gauge, a profile sensor or a section. Use vision where it is strong and another method for depth.

Is a vision system a substitute for sampling inspection?

It can replace some manual checks, but only after validation against a challenge set and with ongoing monitoring. It does not remove the need for first article inspection, material checks or the occasional destructive test.

Sources and further reading

  • EMVA Standard 1288, Standard for characterization of image sensors and cameras
  • ISO 5725-2, Accuracy of measurement methods and results, repeatability and reproducibility
  • VDI/VDE 2632, Machine vision, fundamentals and vocabulary
QK

Qumek Quality Desk

Quality team

The quality team responsible for first article inspection, PPAP packs, supplier audits and the records shipped with production parts.

Specifying an optical inspection station?

Send the defect list and the drawing. The quality desk will comment on the optics, the lighting and the acceptance boundary.

Send the defect list

The Qumek dispatch

One useful email a month

Drawing notes, supplier checks, tariff changes and the questions buyers keep asking. No newsletter filler, no daily drip.

One email a month. No spam, no list sharing.