MANUFACTURING
Bottle Cap Inspection
Bottle Cap Inspection. What it takes to run it.
Sealed, loose and missing boxed on every bottle at the capper outfeed, the reject rate logged against the cap batch.
// 01 · The question
“Is that cap sealed, loose or missing, and on which bottle in a frame of several?”
// 02 · Why it is hard
A loose cap looks almost exactly like a sealed one; the cap is on and the right colour, and the only difference is a sliver of gap or a slight tilt. Three cap colours and two bottle sizes under a morning and a night light each look like a different problem to a model that has not seen all the combinations, and a loose cap by definition does not occur on demand for training.
// 03 · What the labels have to be
Bounding box
Decided before the first frame
The reject has to know which bottle in a frame of three or four, so the box goes on one bottle's neck ring and the cap skirt together, where a gap would show. Sealed and missing are easy classes carried on that same box; loose is the one the box has to be drawn tight enough to catch, a thread's width of gap or a degree of tilt at the skirt.
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
A sealed cap
boxed on the neck ring and skirt together at the outfeed, the ordinary case the model sees most
A loose cap
the same box, classed by the gap or tilt at the skirt the capper technician's own standard defines as a reject
A missing cap
a bare neck with no cap boxed, the easy class that still needs its own position in a frame of several bottles
A cap the model doubts
a reflection off the skirt that could be a gap, or a bottle half hidden behind the one in front, held for a person before anything trains on it
// 03b · What it checks
- 01
The loose class against the capper technician's own definition of the gap he would reject on the line, not a generic notion of loose.
- 02
The reject rule's severity and cooldown, a loose or missing cap critical to a webhook the line's own reject station reads, more than a handful in a short window routine to the technician's phone with the frames.
- 03
The loose rate against the cap batch number from the hopper, so a supplier's batch or a torque drift shows up as a question LexInsight can answer rather than a notebook entry.
- 04
A doubted bottle held for the technician, her verdict recorded as a label rather than scored either way.
// 03c · What the line provides
- The camera already at the capper outfeed; no bench photographs and no new station.
- Training frames across every cap colour and bottle size the line runs, from both shifts, at line speed so the motion blur matches inference.
- The capper technician's own definition of a loose cap, since he is the one whose judgment on the night shift the labels have to agree with.
- The line's own reject station, already wired to act on a signal, to read the webhook the rule sends.
// 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 batch of caps arrives with a slightly softer liner and the loose rate doubles for a fortnight, then the supplier fixes it and the rate falls below anything the line saw before. The model is as good as it was on each bottle; the thresholds tuned around the old rate are what drift, and the reject volume against its own history is the cheapest signal that they have.
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 technician who can hear a loose cap over the line noise?
No. It watches every bottle at the outfeed around the clock, where his ear works but does not scale past one line. A cap that sits a hair off level or a reflection that could be a gap still goes back to him with the frame.
How does the system know what counts as loose?
It does not decide that on its own. The technician's own standard, the gap he would reject on the line, is what the labels are built against, so the model's loose class agrees with the judgment it is replacing rather than a generic definition.
What happens when the plant switches to a new cap colour or bottle size?
Training frames come from the outfeed for every combination the line actually runs. A colour or size the model has not seen is weak evidence, not a guess the system should be trusted to make quietly.
What if a whole batch of caps is running loose?
That is a rate question, not a per-bottle one. The reject volume against its own history by batch is the signal, read before anyone re-tunes a threshold or chases the capper's torque setting for a problem that was the caps.
// 07 · Also in manufacturing