Skip to main content
SAQRONE

Surface defects : detecting scratches, stains and gaps on every part.

Surface defects are the hardest to judge consistently. A vision system looks at all of them the same way, provided the lighting and the defect definition are set right.

Illustration: brushed aluminium plate seen from above, one scratch and one dent boxed in red, part flagged as non-conforming.

Why surface defects resist human inspection

A surface defect is often small, low in contrast and rare. On a shiny surface, a scratch only shows at a certain angle. On a textured part, a stain blends into the grain. And when almost every part is good, attention drops on precisely the one that is not.

Then there is judgement: two inspectors do not always draw the line in the same place, and a defect accepted in the morning may be rejected in the afternoon. The most common defects:

  • Scratches and marks on machined metal, injected plastic or painted parts.
  • Stains, runs, inclusions in paint, varnish or a surface treatment.
  • Bubbles, sink marks, missing material on injected or moulded parts.
  • Dents, bumps, chips on edges and corners.
  • Colour or shade differences between parts or batches.

Lighting first

For surface defects, lighting does most of the work. The goal is for the defect to stand out clearly in the image, before any model even looks at it:

  • Grazing light: light arrives almost parallel to the surface. The slightest relief (scratch, bump, dent) casts a shadow. See our note on edge detection.
  • Diffuse dome light: removes reflections on shiny surfaces, to see stains and shade differences.
  • Backlight: the part sits between the light and the camera. You see its silhouette, its holes, missing material, or inclusions in a transparent part.

A part may need several shots under several lights. This is decided during the diagnostic, by testing on your parts. Our note on lighting covers these trade-offs.

Two ways to detect

Once the image is clean, two families of methods:

  • Model trained on annotated defects: it recognises each defect type (scratch, stain, bubble) and locates it. It needs examples of each defect, but it names what it finds, which helps trace the cause.
  • Model trained on good parts only: it learns the normal appearance and flags any deviation, including a defect never seen before. It produces a map showing where the deviation is. Useful when defects are rare.

The two are often combined: the second catches the unexpected, the first sorts the known defects.

Defining what is acceptable

This is the most important step, and it is not technical. With your quality team, we write down for each defect what is accepted and what is rejected: size, position on the part, face visible or hidden once assembled. We illustrate it with real borderline parts. Without this definition, a system can only imitate human hesitation.

The part can also be split into zones: a scratch tolerated on a hidden face will be rejected on the face the end customer sees.

What the system gives you

  • An OK or NOK verdict for every part, with the defect type and its position.
  • The image of every rejected part, so the operator can confirm or correct.
  • A history showing when and on which batch a defect appears, to trace the cause.

Surface defects to detect?

Describe the part and the defect, with a few photos if possible. We reply with a first reading and, if it makes sense, a diagnostic proposal.