AOPL Logo
AOPL Logo
Explore Solutions

Machine Vision Inspection: Cameras, AI and Real Accuracy

hero background
AI and RoboticsIndustry 4.0

Machine Vision Inspection: Cameras, AI and Real Accuracy

Back to all blogs

Short answer: machine vision inspection uses industrial cameras, controlled lighting and software to check parts for defects, presence, dimensions and labels at line speed. Rule-based tools suit measurable, consistent checks. Deep learning suits variable defects such as scratches, dents and texture faults that normally need human judgement. Accuracy depends more on lighting, optics and a clear defect definition than on the algorithm. Judge any system on two numbers: how many bad parts it misses and how many good parts it rejects.

This guide covers how machine vision works, rule-based vs deep learning, what real accuracy looks like, how to run a fair trial, costs to plan for, and what to ask an integrator.

Why are plants moving inspection from people to cameras?

Human inspection is slower and less reliable than most quality heads assume. A Sandia National Laboratories study had 82 inspectors check 140 precision parts for eight defect types (J. E. See, Human Factors, 2015).

Bar chart: trained inspectors correctly rejected 85% of defective parts, missed 15%, and wrongly rejected 35% of good parts
Human visual inspection results for precision parts. Source: Sandia National Laboratories (See, 2015).

Inspectors caught 85% of defective parts and wrongly rejected 35% of good ones. The study describes visual inspection as mentally demanding, and found that asking inspectors to rate their own confidence did not improve accuracy. These were trained inspectors checking high-value parts. A busy line at the end of a night shift won't do better.

For Indian manufacturers there's a second push. Customers, exporters and BIS compulsory certification for a growing list of products all raise the cost of a defect that reaches the market (BIS, products under compulsory certification).

How does a machine vision system work?

  1. Trigger. A sensor or PLC signal tells the camera a part is in position.
  2. Light. A controlled light makes the feature of interest stand out.
  3. Capture. An industrial camera and lens take the image.
  4. Analyse. Software measures, reads or classifies the image.
  5. Decide and act. Pass or fail goes to the PLC, which diverts the reject. Results are logged with the image.

Most failed projects go wrong at step 2, not step 4.

Rule-based vs deep learning: which do you need?

Cognex, a US-listed machine vision company, describes the split in its annual report. Deep learning systems "automate and solve complex inline inspections" that typically need human judgement. Edge learning uses pre-trained models for simpler jobs where ease of use matters most (Cognex Form 10-K, 2025).

Approach Best for Strengths Limits
Rule-based tools (pattern match, edge, blob, gauge, OCR) Presence, position, dimensions, barcodes, print reading Predictable, explainable, fast to validate Breaks on natural variation in texture, colour or shape
Deep learning (classification, segmentation, anomaly detection) Scratches, dents, contamination, cosmetic defects, complex assemblies Handles variation a rule can't describe Needs labelled images; harder to explain; must be revalidated after changes
Edge learning (pre-trained, few images) Simple sorting and classification Quick to set up by plant staff Less suited to subtle or rare defects

Anomaly detection is worth knowing about. It trains on good parts only and flags anything unusual, which helps when defects are rare. The public MVTec AD research dataset, with over 5,000 high-resolution images in 15 object and texture categories, was built to benchmark exactly this (MVTec AD dataset). It's licensed for non-commercial use, so it's a research benchmark, not something to ship in a product.

Many lines use both: rules for gauging and reading, deep learning for cosmetic defects.

What decides real accuracy?

Lighting. The right light makes a defect obvious; the wrong one hides it. Common choices:

Lighting Shows Typical use
Backlight Silhouette and edges Dimensions, holes, presence
Diffuse dome Surface without glare Shiny, curved parts
Low-angle dark field Scratches, embossing, raised features Surface defects, engraved codes
Coaxial Flat reflective surfaces Wafers, polished metal, labels under film
Structured light or laser line Height and 3D shape Gaps, flushness, volume

Camera and optics. Pick resolution from the smallest defect: you want several pixels across it. Compare cameras using EMVA 1288 data, the European Machine Vision Association standard for measuring and presenting camera and sensor specifications. Release 4.0 took effect in June 2021 and covers cameras with non-linear response and pre-processing (EMVA 1288). Datasheets measured to EMVA 1288 can be compared like for like.

Defect definition. If your quality team can't agree on what counts as a reject, no system will. Build a "golden set" of good and bad parts, with borderline cases, signed off by quality and production.

Part handling. Vibration, variable position and dirty conveyors cost more accuracy than any software choice.

How do you run a fair trial?

  1. Build the test set. Real parts from your line, with a known count of defects of each type, including borderline ones.
  2. Agree the metrics. Escape rate (bad parts passed) and false reject rate (good parts rejected), per defect type.
  3. Run blind. The vendor shouldn't know which parts are bad.
  4. Run at line speed with your actual handling, not on a lab bench.
  5. Repeat. Run the same parts several times to check repeatability.
  6. Compare with people. Run your current inspectors on the same set. That gives a fair baseline.

A system with a 0.5% false reject rate on a line making 1 lakh parts a day still rejects 500 good parts daily. Decide upfront whether rejects go to scrap or to a human re-check station.

Keep the trial images. They become the starting point for revalidation when a product, supplier or material changes, and they show an auditor or customer how the system was proven.

What does a machine vision project cost?

Public price lists are rare, so here are the cost lines to ask about:

Item Notes
Cameras and lenses One or more per station; 3D or line-scan cost more
Lighting Often underestimated; budget it properly
Vision controller or PC with GPU Deep learning needs more compute
Software licences Per camera, per station or per feature
Mechanical integration Mounts, enclosures, reject mechanism
PLC and MES integration Pass or fail signals, data logging
Image collection and labelling Staff time for deep learning projects
Validation and training Trial runs, documentation, operator training

For payback, start with today's cost of escapes (warranty, returns, customer penalties), inspector headcount per shift, and scrap from false rejects. Our Industry 4.0 roadmap has a payback method.

Where does machine vision fit with robots?

Vision guides robots as well as inspecting parts: locating parts on a conveyor, picking from bins, and checking assembly. Cognex says its largest markets, logistics, packaging, consumer electronics and automotive, made up about 85% of its 2025 revenue. See our vision and robot peripherals and collaborative robots.

Questions to ask a machine vision integrator

  1. Will you run a blind trial on our parts at line speed, and report escape and false reject rates per defect type?
  2. Which lighting did you choose and why? What else did you test?
  3. Rule-based, deep learning or both? Why?
  4. How many images do you need, who labels them, and who owns them?
  5. What happens when we change a product, supplier or colour? Who retrains and revalidates?
  6. Are camera specifications given to EMVA 1288?
  7. How are results and images stored for traceability?

FAQs

What is machine vision inspection? Automated checking of products using industrial cameras, lighting and software to find defects, verify assembly, measure dimensions or read codes.

Is deep learning better than rule-based machine vision? For variable cosmetic defects, usually yes. For measurement, presence checks and code reading, rule-based tools are faster to validate and easier to explain. Many lines use both.

How accurate is machine vision? It depends on lighting, optics, part handling and defect definition. Insist on measured escape and false reject rates from a blind trial on your own parts.

How accurate are human inspectors? In a Sandia study of 82 inspectors, they caught 85% of defective parts and wrongly rejected 35% of good ones.

How many images does deep learning need? It varies by defect and variation. Anomaly detection can start from good parts only. Ask the vendor to commit to a number for your trial.

Planning automated inspection on a production line? Talk to our AI and robotics team or see our AI and robotics solutions.

Sources

  • J. E. See, Visual Inspection Reliability for Precision Manufactured Parts, Human Factors 57(8), 2015: Sandia National Laboratories
  • Cognex Corporation, Form 10-K for 2025: SEC
  • EMVA, EMVA 1288 standard: emva.org
  • MVTec, MVTec AD anomaly detection dataset: mvtec.com
  • Bureau of Indian Standards, products under compulsory certification: bis.gov.in