Case study 05 / Manufacturing
Computer Vision Quality Inspection
Line-side cameras and edge inference that flag surface defects in real time, with operator feedback loops that continuously improve the model.
Illustrative reference architecture, not a client engagement. Outcomes described here are design goals, not measured results.
Reference flow
05 stages
01Challenge
Why this problem is hard.
01
Line-speed decisions
Each part must be classified within the takt time, before it reaches the next station or the reject gate.
02
Rare, variable defects
Some defect types appear infrequently, which makes collecting training examples slow.
03
Changing conditions
Lighting, part variants, supplier changes and lens contamination shift the image distribution over time.
04
Traceability
Every decision must link to the part serial or batch for the quality record.
02Business context
Assumptions and constraints.
Constraints the design must respect
- 01Deterministic timing
- Inference and the reject signal complete inside the line's timing window, every time.
- 02Plant-floor resilience
- The station keeps working when the plant network or cloud connection is unavailable.
- 03Human authority
- Uncertain predictions go to an operator. Quality engineers approve every model before it reaches the line.
- 04Change control
- Model updates follow the same change control as other process changes, with rollback.
03Architecture
Reference architecture.
Industrial cameras with controlled lighting capture each part on a hardware trigger. Optics and lighting are engineered first, because they determine what any model can see.
- Industrial cameras
- Structured lighting
- Hardware triggering
- Enclosures
Concept architecture
01 / 07
Imaging
Industrial cameras with controlled lighting capture each part on a hardware trigger. Optics and lighting are engineered first, because they determine what any model can see.
- Industrial cameras
- Structured lighting
- Hardware triggering
- Enclosures
Key patterns
- Pass / reject / review triage
- Edge inference
- Human-in-the-loop labeling
- Models under change control
04Technology
Representative technology.
01
04 items
Vision hardware
- Area-scan or line-scan cameras
- Controlled lighting
- Hardware triggers
- Edge accelerators
02
04 items
Models
- Detection and segmentation models
- Anomaly detection for unseen defects
- ONNX export
- Quantization for edge runtimes
03
04 items
Integration
- PLC I/O
- OPC UA
- MES connectors
- Message queue for results
04
04 items
MLOps
- Labeling tool
- Dataset versioning
- Model registry
- Fleet deployment and rollback
05Engineering approach
Principles behind the design.
- 01
Optics before algorithms
Most inspection problems are won or lost at the camera and lighting stage, before any training.
- 02
Design for uncertainty
Three outcomes, pass, reject and review, keep uncertain calls with people instead of forcing a guess.
- 03
Operators in the loop
Line-side review is designed for speed and ergonomics, because operator labels are the data that improves the model.
- 04
Models under change control
Every model version is benchmarked, approved and reversible, like any other process change.
06Implementation
A phased delivery path.
Delivery path
04 phases
- 01Feasibility
- 02Pilot station
- 03Closed loop
- 04Fleet rollout
- Phase 0101
Feasibility
Image real parts and defects under candidate lighting, agree defect definitions and test whether defects are visible and separable.
Deliverables
- Imaging study
- Defect taxonomy
- Feasibility report
- Station design
- Phase 0202
Pilot station
Install one station in shadow mode: it classifies but does not reject, and results are compared with manual inspection.
Deliverables
- Pilot station
- Baseline model
- Shadow comparison
- Review interface
- Phase 0303
Closed loop
Enable automatic reject for well-understood defects, route uncertain cases to review and start the retraining cycle.
Deliverables
- PLC integration
- MES write-back
- Retraining pipeline
- Change control procedure
- Phase 0404
Fleet rollout
Replicate to further lines with central model management, monitoring and per-station calibration.
Deliverables
- Station template
- Fleet management
- Drift monitoring
- Support model
07Intended outcomes
Design goals, not results.
Design goal 01Intended
Consistent criteria
Every part is assessed against the same approved defect definitions across shifts and lines.
Design goal 02Intended
Inspection at line speed
Routine calls are made inside the line's timing window without stopping production.
Design goal 03Intended
Focused human attention
Operators spend their time on uncertain cases, where their judgment adds the most.
Design goal 04Intended
A model that keeps up
Operator feedback and drift monitoring keep the model aligned with changes in parts, suppliers and conditions.
No figures are attached to these goals. Actual results depend on the environment, data and delivery, and would be measured against baselines agreed at the start of a real engagement.
08Lessons & risks
Engineering lessons and risks to manage.
Risk 01
Definitions need agreement
If inspectors disagree on what counts as a defect, the labels will too. Align definitions before training.
Risk 02
Rare defects need a strategy
Anomaly detection, augmentation and targeted collection help when examples are scarce.
Risk 03
Edge fleets need operations
Many stations mean patching, monitoring and rollback at fleet scale. Plan for it from the pilot.
Risk 04
Shadow mode builds trust
Comparing the system with manual inspection before it acts gives quality teams evidence on their own terms.
Start an engineering conversation
Facing a similar engineering problem?
Bring us the problem and the constraints around it. We'll help architect the system.