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

// MANUFACTURING

Date & Lot Code Inspection

Date & Lot Code Inspection. What it takes to run it.

Reading and verifying date, lot and part codes on the packing line against the schedule.

Start with your footageBook a demo →All of manufacturing →

// 01 · The question

“Where is the date, the lot and the part number print on this carton, found fast enough for the line lead to check it before the carton moves on?”

// 02 · Why it is hard

Three prints on one carton are three different reading problems for whoever reads them. A dot-matrix date is separate dots that spread on corrugated board. A thermal label with a dead element in the print head has a white line through every character. An etched serial is bright metal on bright metal, and glare produces a plausible wrong character rather than an obvious failure. And the inkjet coder that was cleaned at the start of the day shift is a smear by four in the morning. None of that is a question a box answers, which is why the reading stays a person's job.

// 03 · What the labels have to be

Bounding box

Decided before the first frame

The date on the flap wanders as the coder fires early or late, the label sits at a different angle on every carton, and the etched serial is wherever the housing landed in the fixture. A box finds each field wherever it is, so the line lead is pointed at the four inches that matter instead of searching the whole carton. The field's content is a string of characters, not an area, so a precise outline costs labeling time without buying anything back; the box only has to be tight enough that the crop is readable.

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 date and lot print

sprayed onto the carton flap by a dot-matrix inkjet coder as the carton passes

The label text block

part number and barcode on a printed or thermal label, at whatever angle it was applied

The etched serial

laser-etched into the housing at the previous station, wherever the fixture placed it

A missing field

a carton with no date print, no label or no serial found where it should be is held before it is packed

// 03b · What it checks

  1. 01

    The date print, the label block and the etched serial are each found on the carton, wherever the coder, the label or the fixture put them this time.

  2. 02

    A carton missing one of the three, no date print found, no label, no serial, is held before it reaches the point where it would otherwise be packed.

  3. 03

    The rule's schedule, cooldown and severity, so the hold only pages the shift that is actually running.

  4. 04

    A held carton goes to the line lead with the crop attached. Reading the date, the lot and the part number, and checking them against the schedule, is her call; that is not a comparison the camera makes on its own.

// 03c · What the line provides

  • A camera on the packing station that sees the code at line speed. Any RTSP feed or recorder; no new camera and no new hardware on the line.
  • Frames from this line, not a font file. The detector learns your coder's dots on your board, your label printer, your laser.
  • The schedule, or the lot list for the shift, in the line lead's hands. The camera finds the fields; it does not read the characters or check them against the schedule.
  • A person to clear the held cartons. On a coded line that is the line lead, from a list, with the crop in front of her.

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

Concept drift

The spec changed

→Concept drift →

The label is redesigned on a marketing schedule nobody told the model about. Every label is correct on changeover day and the box for the label block lands in the wrong place, because the block it learned is not where the block now is.

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 read the date and lot code automatically?

No. It finds where each field landed on the carton, the date print, the label block, the etched serial, fast enough that nobody has to search the frame for them. Reading the characters and checking them against the schedule is still the line lead's call; what the camera removes is the search, not the reading.

Why detect the field at all, if a person still reads it?

Because the field moves. A crop at fixed coordinates catches the cartons that behaved and misses the date the coder fired late and the label applied at an angle. A detector with one class per field puts a box on each one wherever it landed, so the line lead is looking at the right four inches instead of the whole carton.

What happens to a field the detector cannot find?

The carton is held before it is packed, the same way a missing part is held on an assembly line. The frame goes to the line lead with the crop; she decides whether the print is genuinely missing or just hard to see. If the field was there and the detector missed it, that frame is labeled and folded into the next version.

What happens when the label is redesigned?

The box for the label block lands in the wrong place on changeover day, because the block the model learned is not where the block now is. A window of frames from the first day's cartons is labeled and folded in before the run, and versions keep what they were trained on, so the line with a pallet of the old label left is untouched.

Read next

OCR for date and lot code reading on the packing line, the full walk-through →Package and label inspection: presence, seal and barcode →What a label redesign does to a reading model →
Start with your footageBook a demo →

// 07 · Also in manufacturing

Surface Defect Detection→Weld Quality Inspection→Assembly Verification & Error Proofing→Package & Label Inspection→Package Damage Detection→FDA Food Label Compliance→Juice Box Quality Inspection→Diabetes Device 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→Product Color Inspection→Chocolate Box Inspection→Blister Pack Inspection→Date Code OCR Verification→Process Compliance Tracking→Pallet Scanning→PCB Defect Detection→IV Bag Fill Level & Leak Detection→Bottle Cap Inspection→Paint Defect Detection→Fall Detection→Orthopedic Implant Inspection→All forty-one→
Surface Defect DetectionWeld Quality InspectionAssembly Verification & Error ProofingPackage & Label InspectionPackage Damage DetectionFDA Food Label ComplianceJuice Box Quality InspectionDiabetes Device 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 VerificationProduct Color InspectionChocolate Box InspectionBlister Pack InspectionDate Code OCR VerificationProcess Compliance TrackingPallet ScanningPCB Defect DetectionIV Bag Fill Level & Leak DetectionBottle Cap InspectionPaint Defect DetectionFall DetectionOrthopedic Implant InspectionAll 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