LIVEยทThe trends shaping tomorrow's world.
Future Tech

Computer Vision in Manufacturing: Inspection, Guidance and Limits

How factories use computer vision for defect inspection, robot guidance and process monitoring, why anomaly detection matters, and what to check first.

Computer vision in manufacturing uses cameras and software to inspect products, guide robots and monitor processes automatically. Classic machine vision relies on hand-written rules: measure this edge, check that hole. Deep learning adds models that learn what good parts look like and flag anything unusual, including defects no one anticipated. The technology works well, but only with controlled imaging, representative data and careful validation.

For how computer vision works in general, start with our computer vision explainer. This article covers the factory-specific angle.

What vision systems do on the line

Task

What it means

Example

Inspection

Find defects such as scratches, cracks, contamination, missing parts

Checking every molded part for flash or voids

Measurement (gauging)

Check dimensions against tolerances

Hole position and diameter on a machined part

Identification

Read codes, labels and characters

Barcodes, data-matrix codes, lot numbers

Guidance

Tell a robot where a part is and how it's oriented

Picking randomly placed parts from a bin

Process monitoring

Watch the process itself, not just the output

Melt pools in metal 3D printing [4]

Rules-based vision vs deep learning


Rules-based machine vision

Deep learning

How it's built

Engineers program measurements and thresholds

A model learns from example images

Best at

Precise measurement, code reading, consistent parts

Variable appearance, cosmetic defects, natural materials

Explaining a reject

Easy: "edge out of tolerance"

Harder: a heat map or score

Changing the product

Re-program rules

Collect new images, retrain, re-validate

Data needed

Few images

Many images, ideally including defects

Most real systems combine both. Rules handle measurements and codes; learned models handle the "does this look wrong?" question.

The anomaly detection shift

The biggest practical problem in visual inspection is that defects are rare and varied. You might have thousands of images of good parts and a handful of each defect type. Some defect types have never happened yet.

That's why much recent research focuses on unsupervised anomaly detection: training only on defect-free images, then flagging anything that deviates. The PatchCore paper calls this the "cold-start problem": fitting a model "using nominal (non-defective) example images only" [2].

A standard benchmark

MVTec AD, released by the machine vision company MVTec, is a widely used public benchmark; both the PatchCore paper and the 2023 survey cited below use it [2][3]. It contains over 5,000 high-resolution images in fifteen object and texture categories [1]. Each category has defect-free training images and a test set with various defect types, plus pixel-precise annotations of every anomaly [1]. Note the license: it's CC BY-NC-SA 4.0, so it can't be used commercially [1].

Progress on it has been fast. The PatchCore method (Roth et al., first posted in 2021) reported an image-level anomaly detection AUROC "of up to 99.6%" on MVTec AD [2]. A 2023 survey reviews the many approaches by architecture, level of supervision, loss functions, metrics and datasets, and lists open challenges [3].

Why benchmark scores don't transfer directly

A near-perfect score on a curated benchmark doesn't mean a model will work on your line. Your lighting, part variation, camera position and defect types differ. AUROC is also an aggregate metric: what matters in production is the false-reject rate at the threshold you choose, and how many defects slip through. For more on reading evaluation numbers, see AI benchmarking and model evaluation.

Beyond finished parts: watching the process

Vision isn't only for end-of-line inspection. In laser powder bed fusion, a metal 3D-printing process, a camera aligned with the laser can watch the melt pool as each layer forms. NIST researchers note that the number of images can exceed "hundreds of thousands of images for a single part" [4]. They combined unsupervised clustering and supervised neural networks to flag anomalous melt pools [4]. Catching problems during the build, rather than after, is the goal.

The building blocks

  • Lighting. A major factor in whether defects are visible at all. Backlights, ring lights, diffuse domes and structured light each reveal different defects.
  • Optics and cameras. Resolution must match the smallest defect you need to see, and frame rate the line speed.
  • Triggering and handling. The part must be in the same place each time, or the software must find it.
  • Processing. Smart cameras, industrial PCs with GPUs, or cloud services.
  • Integration. Reject mechanisms, PLC signals, and logging to MES or quality systems; see smart factories.

Benefits

  • Consistency. Every part, every shift, same criteria.
  • Speed. Inspection at line rate.
  • Data. Images and scores become a record for traceability and root-cause analysis.
  • Finding the unexpected. Anomaly detection can flag defect types nobody has seen before [2][3].

Limitations and risks

  • Imaging is half the job. If the defect isn't visible in the image, no model will find it.
  • Data drift. New suppliers, materials, tooling wear or a dirty lens change what "normal" looks like. Models need monitoring and periodic retraining.
  • False rejects cost money. A model tuned to miss nothing may scrap good parts. Set thresholds with production and quality together.
  • Validation burden. Regulated industries need documented, repeatable validation of the inspection system.
  • Vendor and platform risk. Cloud vision services can disappear. AWS announced in October 2024 that Amazon Lookout for Vision, its service for building custom computer vision models for automated quality inspection, would be discontinued on October 31, 2025. New customers lost access from October 10, 2024, and AWS pointed users to partner solutions, SageMaker and Bedrock instead [5]. Keep your images and labels in a portable form.
  • Security. Vision systems that feed digital twins or control decisions are part of operational technology. NIST warns that attackers who control a twin could manipulate how equipment state is presented to users [6].

How to start

  1. Define the defect. Collect real examples of good and bad parts and agree with quality on what must be caught.
  2. Solve imaging first. Test lighting and optics until defects are clearly visible to a human looking at the image.
  3. Choose the method. Rules for measurements and codes; anomaly detection when defects are rare and varied [2]; supervised classification when you have many labeled defects.
  4. Validate on production data. Measure false rejects and escapes at your threshold, not just benchmark AUROC.
  5. Plan for change. Monitor drift, keep a retraining process, and store data in portable formats [5].
  6. Integrate. Connect results to reject gates, MES and quality records.

Outlook

Anomaly detection research keeps improving. The 2023 survey proposes a new problem setting drawn from industrial manufacturing and highlights open challenges [3]. Expect more inspection models that combine learned features with classic measurement, more vision on processes as well as parts [4], and more inspection data feeding digital twins and predictive maintenance. For the sensors that let machines see in other settings, see LiDAR vs radar vs camera.

Frequently asked questions

What is the difference between machine vision and computer vision?

"Machine vision" usually means industrial camera systems for inspection, measurement and guidance, traditionally rules-based. "Computer vision" is the broader field, including the deep learning models now used inside many machine vision systems.

Can AI find defects it has never seen before?

That's the goal of unsupervised anomaly detection, which trains on defect-free images and flags deviations [2]. It works well on benchmarks such as MVTec AD [1][2], but performance on a real line must be validated.

What is MVTec AD?

A public benchmark dataset for industrial anomaly detection with over 5,000 images in fifteen categories, released under a non-commercial license [1].

Why do vision projects fail?

Common causes are poor lighting or optics, too few or unrepresentative images, thresholds that reject too many good parts, and no plan for drift as materials and processes change.

Is cloud-based visual inspection a good idea?

It can be, but consider latency, connectivity and vendor risk. AWS's discontinuation of Lookout for Vision in 2025 shows why it pays to keep data and models portable [5].

Sources

  1. MVTec Software. "MVTec AD: Industrial Anomaly Detection Dataset." https://www.mvtec.com/company/research/datasets/mvtec-ad
  2. Roth, K., et al. "Towards Total Recall in Industrial Anomaly Detection." arXiv:2106.08265. https://arxiv.org/abs/2106.08265
  3. Liu, J., et al. "Deep Industrial Image Anomaly Detection: A Survey." arXiv:2301.11514 (v5, October 2023). https://arxiv.org/abs/2301.11514
  4. Witherell, P., Lane, B., Yeung, H., Yang, Z., Law, K. "Anomaly Detection of Laser Powder Bed Fusion Melt Pool Images Using Combined Unsupervised and Supervised Learning Methods." NIST. https://www.nist.gov/node/1729081
  5. Westman, T. "Exploring alternatives and seamlessly migrating data from Amazon Lookout for Vision." AWS Machine Learning Blog, October 10, 2024. https://aws.amazon.com/blogs/machine-learning/exploring-alternatives-and-seamlessly-migrating-data-from-amazon-lookout-for-vision/
  6. Voas, J., Mell, P., Laplante, P., Piroumian, V. "Security and Trust Considerations for Digital Twin Technology." NIST IR 8356, February 2025. https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8356.pdf