Skip to content
LexDataLexData
PlatformIndustriesCustomers
DocsThe Field GuideBlogWhy models drift
AboutCareersSecurityContact
Log inStart now

// 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.

Start with your footageBook a demo →All of manufacturing →

// 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

How the loop fits together →

// 05 · What breaks it after launch

Prior shift

The defect rate changed

→Prior shift →

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

Full write-up ↓Every case study →

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.

Read next

Bottle cap inspection at the capper outfeed, the full walk-through →Assembly verification: the same present-and-seated question, and the cap is a part →What a new cap batch does to the reject rate before it does anything to the model →
Start with your footageBook a demo →

// 07 · Also in manufacturing

Surface Defect Detection→Weld Quality Inspection→Assembly Verification & Error Proofing→Package & Label Inspection→Date & Lot Code Inspection→Predictive Maintenance→Multi-Sensor Monitoring→Tablet Defect Inspection→Syringe Barrel Defect Detection→Foreign Material Detection→Glass Defect Detection→Semiconductor Wafer Inspection→Strip Surface Defect Inspection→Ceramic Defect Detection→Wood Defect Detection→Pipe & Tube Defect Inspection→Body-in-White Inspection→Contact Lens Defect Inspection→Coffee Bean Defect Inspection→Parts Count Verification→Pallet Scanning→PCB Defect Detection→IV Bag Fill Level & Leak Detection→Paint Defect Detection→All forty-one→
Surface Defect DetectionWeld Quality InspectionAssembly Verification & Error ProofingPackage & Label InspectionDate & Lot Code InspectionPredictive MaintenanceMulti-Sensor MonitoringTablet Defect InspectionSyringe Barrel Defect DetectionForeign Material DetectionGlass Defect DetectionSemiconductor Wafer InspectionStrip Surface Defect InspectionCeramic Defect DetectionWood Defect DetectionPipe & Tube Defect InspectionBody-in-White InspectionContact Lens Defect InspectionCoffee Bean Defect InspectionParts Count VerificationPallet ScanningPCB Defect DetectionIV Bag Fill Level & Leak DetectionPaint Defect DetectionAll forty-one →

Send us a week of this footage. We’ll show you what comes back.

Start with your footageBook a demo →
LexData
LexData

Product

  • Platform
  • Industries
  • Use cases

Resources

  • Docs
  • The Field Guide
  • Blog
  • Why models drift

Industries

  • Energy & utilities
  • Oil & gas
  • Agriculture
  • Manufacturing
  • Insurance
  • Retail
  • Robotics

Company

  • About
  • Customers
  • Careers
  • Contact

Trust

  • Security
  • Privacy
  • Terms

Stay updated

What we learn running vision models in production.

See everything.
Miss nothing.

Stay updated

What we learn running vision models in production.

Terms of use & Privacy policy

© 2026 LexData Labs · All rights reserved