Surface defect detection with machine vision
Scratches, dents, flash, short shots, marks and contamination on moulded, metal and packaging parts.
Technical review: Frank GuoReviewed
A camera station can find surface defects such as scratches, dents, flash, short shots, marks and contamination when lighting makes them visible and consistent. Lighting geometry decides most of the result: low-angle light for scratches and dents, dome light for shiny parts, backlight for outline faults. Rule-based tools suit well-defined defects; deep learning helps when defects and good parts vary. Internal defects cannot be seen. We confirm feasibility on your samples first.
Which surface defects a station can find
Four common defect groups. Whether a defect can be found depends on its contrast under the right light.
Scratches and scuffs
Lines and scuffs on machined, painted, moulded or printed surfaces.
Dents and sink marks
Local changes in surface shape, seen as changes in shading or reflection.
Flash and short shots
Extra material at parting lines and incomplete fill, seen as a changed outline.
Marks and contamination
Stains, black specks, foreign material and colour faults visibly different from the part.
Lighting decides what is visible
| Lighting | How it works | Makes visible |
|---|---|---|
| Low-angle (dark-field) | Light skims the surface; raised or cut features light up. | Scratches, dents, embossing, burrs. |
| Dome (diffuse) | Light from all directions removes glare and hot spots. | Marks and colour faults on shiny or curved parts. |
| Backlight | The part is seen as a silhouette. | Flash, short shots, outline and edge faults. |
| Coaxial | Light along the camera axis; flat glossy areas appear bright. | Scratches and marks on flat polished or glossy faces. |
Rule-based tools or deep learning
| Method | Suits | Needs | Watch out |
|---|---|---|---|
| Rule-based tools | Defects with clear contrast on a consistent background. | Good samples and a defined defect list. | Struggles with natural texture and variable defects. |
| Deep learning | Defects and good parts that vary, such as textured surfaces. | Labelled images of good and bad parts; retraining when products change. | Needs more samples and a validation plan; harder to explain. |
Where surface inspection stops
We agree these boundaries before a project starts. We do not promise that any defect can be found.
Not detectable with a camera
- Internal defects. Voids, porosity and cracks below the surface are invisible to a camera.
- Defects without contrast. A fault that looks like the good surface under every lighting tried cannot be separated from it.
- Faces out of view. Undersides, bores and hidden faces need extra cameras or part handling.
Works reliably when
- Lighting is designed for the defect. Chosen on your parts, shielded from daylight.
- Parts arrive the same way. A fixture or guides keep each face at the same angle to the light.
- Defects are defined. A defect list with borderline samples your quality team has judged.
How a surface inspection station is laid out
Side view of a typical station with low-angle lighting. The real layout follows the sample test and site survey.
Swipe sideways to see the whole drawing →
What a pass and a reject look like
Illustrations, not images from a real line. Which marks count as a defect is agreed with you, using borderline samples, during the sample test.
Surface within limit
Normal machining texture is accepted, because good samples taught the station what it looks like.
Scratch above limit
Under low-angle light the scratch shows bright and exceeds the agreed limit.
Incomplete moulding
The outline lacks a corner compared with the reference, typical of a short shot.
What we need to know about your line
These conditions decide the station design. Each is confirmed on site or during the sample test.
| Condition | What we need to know | Why it matters | Confirmed during |
|---|---|---|---|
| Part presentation | Conveyor, fixture or robot; orientation and how stable it is. | Defects must appear in the same lighting each time to be found consistently. | Site survey |
| Surfaces to inspect | Which faces matter, and whether the part must be turned. | Each face needs its own view; hidden faces need another camera or handling. | Design review |
| Material and finish | Shiny, matte or textured; colour and finish variation between batches. | Decides the lighting and whether rule-based tools are enough. | Sample test |
| Cycle time | Parts per minute or cycle time of the machine. | Sets exposure, trigger and how much processing time is available. | Site survey |
| PLC and reject | PLC make and model, spare I/O, existing reject or sorting. | Decides how results, reject timing and changeover are handled. | Design review |
How the station is accepted
Tighter limits catch more defects but reject more good parts; looser limits do the opposite. We agree the balance before FAT and SAT.
False reject rate
The share of good parts rejected, measured on agreed good samples that cover normal variation. The acceptable level is agreed per project.
Missed defect rate
The share of defective parts that pass, measured with known defect samples, including borderline ones. The target is set with you.
Defect catalogue
A signed list of defect types with reference images and accept or reject decisions, kept under change control with any trained model.
What to prepare for the sample test
We image your parts under different lighting before proposing a station. We confirm quantities and shipping with you first.
Sample preparation guideGood samples
Parts that pass today, covering batches, colours, moulds or tools.
Defective samples
Each defect type, including borderline parts, marked with your decision.
Defect list
Your current defect names, photos and limits, and which defects matter most.
Line information
Cycle time, how parts are handled, PLC make and model, existing reject.
Surface defect questions
Can machine vision detect scratches on metal parts?
Can short shots and flash be detected on moulded parts?
When is deep learning needed instead of rule-based tools?
Can a camera find internal defects?
Which software do you use?
Sources
- HIKROBOT VisionMaster product page (deep-learning modules) (vendor page, checked 2026-09-24)
- HIKROBOT Download Center (VisionMaster DL Package) (vendor download listing, checked 2026-09-24)
Request an assessment for this application
Describe the defects that matter and send good, bad and borderline parts. We will tell you what can be made visible.