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

// MANUFACTURING

Pipe & Tube Defect Inspection

Pipe & Tube Defect Inspection. What it takes to run it.

The pinhole, the crack and the pitting boxed on every metre of tube, pass, review or fail against the mill's own threshold.

Start with your footageBook a demo →All of manufacturing →

// 01 · The question

“Is that pinhole a fail at this grade, or a mill mark that costs nothing?”

// 02 · Why it is hard

A pinhole and a flash of sodium-lamp glare on wet tube throw back the same few dark pixels to a model that has seen only a few hundred of each, scale is harmless on one length and a lamination's first sign on the next, and clean metres vastly outnumber defective ones by construction.

// 03 · What the labels have to be

Bounding box

Decided before the first frame

Disposition is read off a pair of thresholds, pass, review or fail, and a pinhole or a crack's position along the length is what the box carries. A mask would answer an area question the mill's own rule does not ask; scale and pitting are counted and placed, not measured by extent.

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 pinhole or a longitudinal crack in the seam

boxed on the gantry camera's frame at the run-out table, under the mill's own sodium lamp rather than a lab light

A patch of pitting or mill scale

boxed and classed in the inspector's own words, since scale is harmless on one length and a lamination's first sign on the next

An open seam

boxed as its own class, since a weld that has not closed is a different fault from a surface mark

A metre the model doubts

between the pass and fail thresholds on any class, held in the review tier with the frame attached for the inspector at the table

// 03b · What it checks

  1. 01

    Each metre's class against the pair of thresholds that sets pass, review or fail, so a single pit under the limit and pitting over it for this grade are graded by their own numbers rather than one line.

  2. 02

    The review queue against its own history, since a queue that doubles or empties for a shift is the base rate moving, not the model.

  3. 03

    The rule's schedule, cooldown and severity, approved before it goes live and run against this mill's own footage first.

  4. 04

    The inspector's correction rate by class after a coil change, since the defect mix moving is the first sign a threshold tuned on the old mix is now wrong.

// 03c · What the line provides

  • The gantry camera already over the run-out table, under the mill's own sodium lamp; no new camera.
  • Frames from this mill's own tube, not a generic metal-defect set, since scale and a lamination are told apart in the inspector's own words.
  • The grade's own threshold in writing: how much pitting within a metre is a fail, what makes a length a review rather than a pass.
  • The inspector at the table, for the metre the model doubts, the way the chalk ring decides today.

// 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 coil that sat outside since March arrives with more pitting than the mill has seen in months, and the tube itself looks the same under the same gantry lights. A review threshold tuned to the old rate lets the ordinary pits fill the queue while a worse one sits beneath the same line, and the first sign is the review queue doubling or emptying for a shift, not a drop any confidence score would show.

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 inspector at the run-out table?

No. It boxes every pinhole, crack, patch of pitting and open seam at line speed, day and night, and sorts each metre into pass, review or fail. The review tier is where the inspector's call still counts, on the metres the model sits between its own thresholds on.

How does it tell a pinhole from the sodium lamp's own glare on wet tube?

Mostly from the inspector's own corrections. A glint off wet steel and a true pinhole look alike to a model that has seen only a few hundred of each, and every glare the inspector un-boxes teaches the next version to leave it alone.

What happens when a coil arrives with more pitting than usual?

The per-metre read does not move, but the counts do, and a review threshold tuned to the old rate lets the ordinary pits fill the queue while a worse one sits beneath the same line. The first sign is the review queue for a shift doubling against its own history, which is why the threshold is re-tuned against the new rate before anyone retrains.

What does the mill receive, and when?

A word per metre, pass, review or fail, written to the rack tag and the mill's record, with the frame attached for anything in review. It arrives on Slack, email or a webhook into whatever the mill already carries.

Read next

Pipe and tube defect detection on the run-out table, the full walk-through →Surface defect detection: the same find-then-grade split, graded by area instead of per metre →Strip surface defect inspection, the same per-metre disposition on coil instead of tube →What a coil that sat out in the weather does to a threshold nobody retuned →
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→Body-in-White Inspection→Contact Lens Defect Inspection→Coffee Bean Defect Inspection→Parts Count Verification→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 DetectionBody-in-White InspectionContact Lens Defect InspectionCoffee Bean Defect InspectionParts Count VerificationAll 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