Skip to content

Knowledge

Machine vision: what optical inspection can do, and what it cannot

Optical inspection rarely fails because of the camera. It fails because of lighting, unclear defect definitions or because a feature simply cannot be separated optically. This text summarises what should be settled before a vision project.

Author: Sebastian Gruber, Managing Director · SalesPublished: Reading time: 7 min

In short

Industrial machine vision detects features that can be imaged optically: presence, position, dimensions in the image plane, colour, surface texture and codes. As a rule of thumb at least three to five pixels should fall on the smallest feature to be detected. In practice success or failure is usually decided by lighting rather than camera resolution, and by the availability of genuine defective parts for the pre-test.

01Lighting decides

The most common misconception in vision projects is that higher resolution solves the problem. In fact the contrast that makes a feature detectable at all is created by the light. A scratch invisible under diffuse front lighting jumps out immediately in dark field.

The common techniques are quickly listed: front lighting for surfaces, dark field for surface disturbances, backlighting for contours and dimensions, coaxial light for reflective surfaces, structured light for height information. Which one fits is shown by the trial on the real part, not by simulation.

02Calculating resolution properly

Spatial resolution follows from sensor resolution and field of view: a sensor with 2,500 pixels across a 100-millimetre field gives 25 pixels per millimetre, that is 0.04 millimetres per pixel. To detect a feature reliably, three to five pixels should fall on it, so this setup suffices for a 0.2-millimetre feature.

Measuring tasks face stricter requirements than pure presence checks, because repeatability matters there too. A dependable tolerance statement therefore only emerges from the capability study with the real parts.

03What optical inspection cannot do

Honesty at this point saves money. Not detectable are defects inside the material without a penetrating method, mechanical properties such as strength or torque, and features hidden from the viewing direction.

Difficult, not impossible, but laborious, are highly reflective surfaces, transparent parts, features with wide natural variation and defect types for which no clear definition exists. If production itself cannot state from what point a scratch is a defect, the inspection system cannot either.

04When AI helps and when it does not

Learning methods have the advantage where classical rule sets reach their limits: surface defects with wide variation, natural materials, defect patterns hard to express as thresholds. The prerequisite is a sufficient number of example images, particularly of defective parts.

For clearly defined geometric features classical machine vision is usually superior. It is faster, more traceable and can be assessed cleanly in a capability study. A learning system whose decision nobody can explain is a problem when a complaint arrives.

05The pre-test is not a formality

Every serious vision project starts with a trial on real parts. Good parts and defective parts. Without defect samples no dependable threshold can be defined, because it remains unknown how close good and bad lie together.

A pre-test that prevents a project is a good result. It costs a fraction of an inspection cell that passes defective parts or rejects good ones in production.

06Practical factors people underestimate

In a hall, factors act that are absent in the lab: stray light from windows and shift changes, vibration from neighbouring machines, dust and oil mist on the optics, temperature drift and part variants from different tools.

That is why an enclosure with light shielding, deliberate placement of the optics and monitoring of image quality via reference images belong in the design. A system that reports gradual degradation itself is worth considerably more in operation than one with two more megapixels.

Frequently asked questions

Frequently asked questions

Which defects can machine vision detect?

Anything that can be imaged optically: presence, position, dimensions in the image plane, colour, surface texture, codes and plain text. Not detectable are defects inside the material, mechanical properties and hidden features.

How many pixels does a feature need?

As a rule of thumb three to five pixels on the smallest feature to be detected. For measuring tasks rather more, because repeatability also counts there.

Is a more expensive camera the solution?

Usually not. In the vast majority of cases the problem lies in the lighting or in an unclear defect definition. Neither can be compensated with resolution.

Why do you need defective parts for the pre-test?

Because without defect samples no threshold can be defined. Only the distance between good and bad shows whether reliable separation is possible at all.

When does AI-based machine vision make sense?

For defect patterns with wide natural variation that are hard to express as thresholds. For geometrically well-defined features classical evaluation is faster and more traceable.

Enquiry

Tell us what it is about

A short description is enough for the first step.

+49 8381 89009-0sales@checktec.de

Step 1 of 3

What is it about?
Free feasibility analysisBenchmark figures for investment and payback, in a few stepsApplicationPosition, apprenticeship or speculative