MANUFACTURING
Dimensional Defect Inspection
Dimensional Defect Inspection. What it takes to run it.
Hole spacing, gap and alignment measured against the drawing's tolerance on every part, a drifting die offset caught as a slope before any part fails.
// 01 · The question
“Is the hole spacing, gap or alignment on this part still inside the drawing's tolerance?”
// 02 · Why it is hard
The pixel-to-millimetre scale only holds if the camera sits square to the part at a fixed height; a lens tilted a few degrees reads a spacing short on one side of the frame and long on the other, and a part riding up on the conveyor reads larger than one lying flat. The first afternoon goes on the mount and the lighting, and the model is trusted only once a reference part reads the same number at six in the morning and at two in the afternoon.
// 03 · What the labels have to be
Bounding box
Decided before the first frame
A box's own centre is a good enough centre for a round hole, and the distance between two centres is the measurement the drawing's tolerance is written against. None of hole spacing, gap width or alignment needs an outline, so a mask would cost labeling time and tell the rule nothing a box's centre and edge do not already give it.
This is the decision that is expensive to reverse. The geometry has to match what the answer contains, and finding out it does not means labelling the set a second time.
// 03a · What it finds
The distance between two hole centres
each hole boxed on every part, the centre-to-centre distance in pixels turned to millimetres through a scale worked out once from a reference part of known size
A gap or an alignment
the distance between two boxes, or the angle of the line through two centres against the part's own edge, read the same way as hole spacing
A measurement trending toward the tolerance band
the spacing on a line's own history, asked of LexInsight and answered with the trend and the frames behind it, before any single part fails
A part the model doubts
a measurement that jumps between one frame and the next, held for a person rather than logged as a fail, since a hole does not move and a jump that size is a detection or a mount error
// 03b · What it checks
- 01
Each measurement against the drawing's own tolerance band, so a part passes, fails or goes to review rather than every part getting one forced guess.
- 02
The scale itself against a reference part, run once a shift, so a lens that has drifted a few degrees is caught before it mismeasures a single production part.
- 03
A jump between consecutive parts' measurements against the camera and mount, not against the tolerance, since a hole does not move between two frames of the same line.
- 04
The trend alert's own severity and cooldown, approved before it goes live, so a spacing trending toward the band reaches the toolroom while the parts are still in tolerance.
// 03c · What the line provides
- The camera already on the outfeed conveyor, mounted square to the part at a fixed height; no new camera, no new hardware.
- A reference part of known size, kept at the station, read once a shift to verify the pixel-to-millimetre scale.
- The drawing's own tolerance for each measurement, in writing, owned by the quality engineer who can change it when the customer does.
- Someone to rule on a doubted frame, the jump between parts that is a mount problem rather than a bad part.
// 04 · How we run it
Three parts of one loop, on this job.
LexAnnotate
Defect Annotation
Pixel-level defect annotation for surface scratches, cracks, dents, weld faults, and assembly misalignments. Multi-sensor alignment for multi-camera inspection systems.
LexInsight
Line Performance
Ask which shift or which line is producing the most of one defect class, and get an answer with the frames behind it, graded against the plant's own written standard.
LexAlert
Quality Alerts
Monitor defect detection accuracy across changing production conditions. Detect when lighting shifts, new materials, or equipment aging degrades model performance. Auto-retrain to maintain 99%+ accuracy.
// 05 · What breaks it after launch
A new die arrives with a different hole chamfer and a slightly different flange; the holes are still holes, but the chamfer catches the light differently and the box lands a little wide, which is a measurement error on every part until the model has seen the new die. The changeover date is known months ahead, so the first parts off the new die can be labeled and the scale re-verified before the run, not after the first bad bin.
It is not the only one that can get this use case, it is the one that usually gets it first. All ten conditions.
// 06 · In manufacturing
Defect Detection at Scale
The Challenge
Vision models performed well in pilots but lost accuracy as factory conditions shifted.
Our Execution
Built pixel-level annotated datasets and multi-sensor alignment for reliable defect detection.
The Result
Maintained 99%+ defect detection accuracy across changing production environments. Reduced unplanned downtime.
99%+
Accuracy maintained in production
// 06a · Questions we get asked
Does this replace the person with callipers?
No. Callipers check one bracket an hour; the camera checks every part and keeps the measurement, the frame and the history behind each one. The quality engineer still sets the tolerance and still rules on the frames the model holds.
How does it tell a real drift from a camera or mount problem?
Two ways. A reference part of known size is read once a shift to catch a lens that has tilted or a mount that has shifted. And a measurement that jumps between one part and the very next is treated as a detection or mount error, not a part fault, since a hole does not move that fast between two consecutive frames.
What happens when a new die comes in?
The hole chamfer and flange change, and the model's measurements go wide on the new die's first parts until it has seen them. The changeover date is known months ahead, so the first parts off the new die are labeled and the reference scale re-checked before the run starts, not after a bin of mismeasured parts.
What is the trend alert worth that a fail alert is not?
A fail alert is one part in a bin. A trend alert catches the slope while every part is still inside tolerance, which turns a Tuesday-afternoon scrap bin into a Saturday-morning shim in the press. The toolroom sets the rule's own severity and cooldown before it goes live.
Read next
Dimensional defect inspection at the press outfeed, the full walk-through →Assembly verification: the same box and fixture, reading presence and orientation rather than a measurement against tolerance →Flange defect inspection: the same manufacturing station camera, grading a defect class instead of measuring a distance →What a new die or fixture does to a model that has never seen it →// 07 · Also in manufacturing