Decision infrastructure and enterprise AI agents

Machine Vision: How It Works, Applications, Inspection

Written by Dr. Jagreet Kaur | 14 December 2024

Machine vision is the use of cameras, lighting, optics and image-processing software to inspect, measure, identify and guide physical products automatically, usually on a production or logistics line. The Association for Advancing Automation (A3) describes it as the use of computer vision in an industrial or practical application, where the result of the image analysis triggers an action such as rejecting a part or steering a robot.

In 2026 the main changes for decision makers are three: deep learning now sits alongside rule-based tools for cosmetic and variable defects, the GigE Vision 3.0 standard adds RDMA streaming for very high bandwidth cameras, and the EU AI Act, as amended by the AI Omnibus, sets dates for AI used as a safety component in machinery. This guide covers how machine vision works, where it fits, and how to adopt it with clear governance.

What is machine vision and how is it different from computer vision?

A3 states that computer vision refers in broad terms to the capture and automation of image analysis, while machine vision traditionally refers to computer vision applied in an industrial or practical setting. A3 also notes that the lines between the two have been blurring over the years. In practice, the difference is less about algorithms and more about the operating context: a machine vision system is engineered around a controlled scene, a fixed cycle time and a pass or fail decision that a machine acts on.

Aspect Machine vision Computer vision
Scope Industrial or practical use: inspection, gauging, code reading, robot guidance Broad field of capturing and analysing images and video in any domain
Scene Controlled lighting, fixed optics, known part positions Often uncontrolled: public spaces, documents, web images, vehicles
Output A decision that drives an action (reject, sort, move, record) Labels, detections, descriptions or insights, not always tied to an action
Hardware Industrial cameras, lenses and lighting built to interface standards such as GigE Vision Any camera or image source, including phones and existing CCTV
When it fits Repeatable, high-volume checks where every item must be inspected Open-ended perception problems with high variety

For a wider view of computer vision use cases, see our guide to computer vision applications with agentic AI.

What are the main components of a machine vision system?

Every machine vision system combines four building blocks. Each one is chosen for the specific part, defect and line speed, and a weak choice in any one of them limits the whole system. A system cannot inspect what the camera cannot see, so lighting and optics usually matter as much as software.

Component What it does Key decisions
Camera and sensor Converts light into digital image data and sends it to the processor Resolution, frame rate, area or line scan, 2D or 3D, interface standard
Lens and optics Focuses light from the part onto the sensor Field of view, working distance, depth of field, distortion
Lighting Makes the feature of interest visible and suppresses ambient effects Shape, colour, angle, distance, strobing, enclosure
Processing and software Analyses the image and outputs a result to PLCs, robots or MES Smart camera or PC-based, rule-based tools, deep learning, edge or cloud

How does a machine vision system work, step by step?

  1. Trigger: a sensor or encoder detects that a part is in position.

  2. Illuminate and capture: the light strobes and the camera captures one or more images.

  3. Transfer: image data moves to the processor over an interface such as GigE Vision or USB3 Vision, or is processed inside a smart camera.

  4. Analyse: software locates the part, then measures, reads codes, classifies or looks for defects.

  5. Decide and act: the result goes to the line controller to pass, reject, sort or guide a robot.

  6. Record: images and results are stored for traceability, retraining and audits.

The same pipeline, from acquisition to decision, is described in more depth in our article on the workflow of computer vision.

What are the main machine vision applications?

Most machine vision applications fall into a small set of task types. Choosing the task type first tells you which camera, lighting and software approach to invest in.

Application What it does When it fits Usual method
Defect and flaw inspection Finds scratches, dents, contamination and cosmetic faults Surfaces with natural variation, or many defect types Deep learning, often combined with rule-based checks
Measurement and gauging Calculates dimensions from edges and geometric features Tight tolerances and repeatable fixtures Rule-based tools for subpixel accuracy
Presence and assembly verification Confirms that every component is present and correct Kitting, assembly, packaging Rule-based or deep learning classification
Identification and traceability Reads barcodes, 2D codes and printed text (OCR) Logistics, serialisation, labelling checks Code readers and OCR, with deep learning OCR for poor print
Print and label inspection Detects missing, misprinted or wrong-colour print Food, pharma and consumer packaging Rule-based comparison plus OCR
Locating and robot guidance Gives coordinates and orientation for pick and place Bin picking, assembly, palletising 2D or 3D vision with calibration to the robot
Counting and sorting Counts items or sorts them by type or grade Food grading, recycling, parcel handling Deep learning classification

Which industries use machine vision inspection?

Any plant with repeated visual checks can benefit. Common users include automotive, electronics and semiconductors, plastics, food and beverage, packaging, pharmaceuticals and medical devices, and logistics. The common thread is high volume, a clear definition of a good part, and a cost of escape that justifies inspecting every item rather than a sample.

For vision running at the edge, with privacy kept at the source, see XenonStack's edge AI vision platform.

How is deep learning changing machine vision inspection?

Deep learning expands machine vision rather than replacing it. An A3 industry article (How AI Will Revolutionize, Not Replace, Machine Vision) explains that rule-based programming excels at measurement and alignment, while neural networks trained on examples handle classification, complex cosmetic inspection and natural variation where fixed rules struggle.

Approach Strengths Limits Best fit
Rule-based (edges, blobs, patterns) Deterministic, explainable, precise to subpixel level Brittle when parts or defects vary Gauging, alignment, code reading
Supervised deep learning Learns defect classes from labelled examples, tolerates variation Needs labelled defect images and retraining when products change Cosmetic defects, classification, assembly checks
Unsupervised anomaly detection Trains mainly on good parts, flags anything unusual Thresholds need tuning; may flag harmless variation Rare or unknown defects, new product introductions
Vision-language models Describe defects in text, few-shot set-up Accuracy below industrial requirements in published benchmarks Assisting engineers, triage, reporting, not final pass or fail

Much of the research on unsupervised inspection uses the MVTec AD dataset, which contains over 5,000 high-resolution images across fifteen object and texture categories. MVTec releases it under a CC BY-NC-SA 4.0 licence, which does not allow commercial use, so production models need your own image data. To build and label that image data, see AgentLabel for AI data labelling and annotation.

Where do vision-language models fit in inspection?

Vision-language models (VLMs) combine an image encoder with a language model, so they can answer questions about an image. Two primary sources set realistic expectations:

  • AnomalyGPT (accepted to AAAI 2024) adapts a large vision-language model to industrial anomaly detection. The authors report 86.1% accuracy, 94.1% image-level AUC and 95.3% pixel-level AUC on MVTec AD with one normal example per class.

  • The MMAD benchmark tests multimodal large language models on 39,672 questions built from 8,366 industrial images. The best result reported, GPT-4o at 74.9% average accuracy, is described by the authors as falling far short of industrial requirements.

The practical reading is that VLMs are useful today for explaining defects, drafting inspection reports and helping engineers label data, while the pass or fail decision on a line should stay with validated rule-based or deep learning models.

What has changed in machine vision standards?

Interface standards let cameras, frame grabbers and software from different vendors work together. A3 administers GigE Vision, USB3 Vision, Camera Link and Camera Link HS, and the European Machine Vision Association (EMVA) hosts GenICam.

Standard What it is Current status (read 11 November 2026)
GenICam (EMVA) Generic programming interface for cameras, independent of the transport: GigE Vision, USB3 Vision, CoaXPress, Camera Link HS and Camera Link EMVA lists GenICam Package Version 2026.07 (including GenApi 3.5.1 and GenTL 1.6) as the current public package
GigE Vision (A3) Camera interface over Ethernet; relies on GenICam to describe camera features in an XML file Version 2.2 (June 2022) added GenDC streaming. GigE Vision 3.0 adds RDMA over RoCEv2 and the GigE Vision RDMA Streaming Protocol (GVRSP)
USB3 Vision (A3) Plug-and-play camera interface over USB 3 Released in January 2013 according to A3
Camera Link HS (A3) High-speed camera interface for demanding applications Released in May 2012 according to A3

A3 says GigE Vision 3.0 allows direct memory access from a camera to a computer without involving the operating system, which frees CPU for image processing, and that systems can reach bandwidths of 400G and above with RoCEv2 network cards. A3's GigE Vision 3.0 FAQ states that the release is a supplement rather than a replacement for GigE Vision 2, that it keeps backward compatibility, and that 25GigE and faster links need a RoCEv2-capable network card. For buyers, the action is to check GenICam and GigE Vision compliance in every camera and software tender so that components remain swappable.

What does the EU AI Act mean for machine vision?

Most quality inspection systems are not automatically high-risk under the EU AI Act (Regulation (EU) 2024/1689). Relevance depends on intended use:

  • Safety component of machinery: Article 6(1) treats an AI system as high-risk when it is a safety component of a product covered by the Union legislation in Annex I and that product needs third-party conformity assessment. Annex I includes the Machinery Directive 2006/42/EC. AI-based vision that protects people around a machine, rather than checking product quality, should be assessed against this test.

  • Monitoring workers: Annex III point 4(b) lists AI used to monitor and evaluate the performance and behaviour of persons in work relationships. Cameras on a line that are repurposed to score operators may fall into this category.

  • Emotion recognition: Article 5(1)(f) prohibits AI that infers the emotions of a person in the workplace, except for medical or safety reasons.

On timing, the European Commission states that the AI Omnibus entered into force on 27 July 2026, moving the high-risk rules for Annex III systems to 2 December 2027 and for AI embedded in Annex I products, such as machinery, to 2 August 2028. The Article 5 prohibitions have applied since 2 February 2025. This is a reading of the official text, not legal advice.

How should enterprises govern, secure and cost machine vision?

  • Define quality in writing: agree defect classes and acceptance limits with quality teams before collecting data, so models and humans judge against the same standard.

  • Version models and data: keep training images, labels and model versions linked to each production result for traceability and audits.

  • Keep humans on edge cases: route low-confidence results to an inspector and feed their decisions back into retraining. The ElixirData Exception Handling Agent routes edge cases like these to the right person with full context and evidence.

  • Secure the camera network: treat GigE cameras as operational technology assets, segment them from office networks and control firmware updates.

  • Separate purposes: document that line cameras are for product inspection, not worker monitoring, unless you have assessed the AI Act and data protection impact.

  • Cost the whole life: budget for lighting, enclosures, integration, labelling, retraining and spare cameras, not only software licences. Payback usually comes from fewer escapes, less scrap and less manual inspection time.

What adoption sequence works for machine vision?

  1. Pick one high-cost defect on one line where escapes or manual inspection time are measurable.

  2. Run an optics and lighting study with real parts before choosing software.

  3. Choose the method: rule-based for gauging and codes, deep learning for cosmetic and variable defects.

  4. Run in shadow mode beside human inspection and compare false rejects and escapes.

  5. Integrate with PLC, MES and quality systems, then go live with human review of uncertain results.

  6. Scale by reusing standards-compliant hardware and a shared model and data platform across lines.

What are the trade-offs, and when should you not use machine vision?

Situation Why machine vision struggles Better option
Very low volume or one-off parts Set-up and training cost outweigh savings Manual inspection with checklists
Defects not visible on the surface Cameras only see what light reveals X-ray, ultrasound or other sensors
No agreed definition of a defect Models learn inconsistent labels Fix the quality standard first
Frequent product changes with no data Deep learning models need retraining each time Anomaly detection or rule-based checks
Uncontrolled scenes such as yards or public areas Lighting and position vary too much for fixed rules Broader computer vision and video analytics

How does machine vision connect to agentic video intelligence?

Machine vision answers a narrow question at line speed: is this part good? Many enterprises also need to explain events across many cameras and systems, for example why a line stopped or who entered a restricted area. That is the space of agentic video intelligence, where AI agents correlate video with access, sensor and operational data under human oversight. Related approaches are covered in agentic AI for real-time video analytics, and XenonStack's computer vision services support both inspection and wider visual AI programmes. To run vision models and agents on site, in the cloud or both, NexaStack is an agentic operating platform for physical AI that runs across on-premises, cloud and hybrid environments.

What will change in machine vision over the next 3 to 5 years?

The changes most likely to affect machine vision buyers between now and 2030 are already dated in law and in standards. The table separates announced changes from XenonStack's view, and each row links to its source.

Prediction Why we expect it (evidence) Timeframe What leaders should do now
Vision-based safety components on machinery will need stricter conformity assessment in the EU The Machinery Regulation (EU) 2023/1230 applies from 20 January 2027 and repeals Directive 2006/42/EC. Its Annex I Part A lists safety components with fully or partially self-evolving behaviour using machine learning approaches. From 20 January 2027 List every camera-based function that protects people, and check with your machine builders which ones use machine learning.
AI Act high-risk obligations will reach vision used in machinery and in worker monitoring The European Commission states that high-risk rules apply to Annex III systems from 2 December 2027 and to AI embedded in Annex I products, such as machinery, from 2 August 2028. December 2027 to August 2028 Record the intended use of each vision system and start the technical documentation and human oversight records now.
Networked cameras and vision software sold in the EU will carry cyber security duties The Cyber Resilience Act (Regulation (EU) 2024/2847) covers products with digital elements. It applies from 11 December 2027, with reporting of actively exploited vulnerabilities and severe incidents from 11 September 2026. September 2026 to December 2027 Ask camera and software suppliers for their vulnerability handling process, support period and firmware update policy in every tender.
High-bandwidth inspection will move to RDMA-capable GigE Vision cameras and network cards A3 has released GigE Vision 3.0 with RDMA over RoCEv2, and its FAQ says RDMA logos for cameras and software are coming. XenonStack's view: because 3.0 is backward compatible, plants can adopt it line by line rather than in one switchover. 2027 to 2030 (XenonStack's view) Specify RoCEv2-capable network cards and GenICam compliance for new high-resolution or multi-camera lines.
Vision-language models will become inspection assistants, while validated models keep the pass or fail decision Research shows progress, with AnomalyGPT applying VLMs to industrial anomaly detection, and also a gap, with the MMAD benchmark authors finding the best model falls far short of industrial requirements. XenonStack's view: VLMs will spread first in defect explanation, reporting and labelling, where an error is caught by a person. 2026 to 2029 (XenonStack's view) Pilot VLMs on inspection reports and labelling support, measure them against inspectors, and keep them out of the reject decision until they are validated.

To map one inspection decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

What should you plan for in 2027?

Two EU dates fall in December 2027 and affect how vision systems are documented and secured.

  • 2 December 2027: the European Commission AI Omnibus page states that high risk rules for Annex III systems apply from this date, which matters if line cameras are ever used to monitor workers.
  • 11 December 2027: the Cyber Resilience Act page states that the main obligations apply from this date, so networked cameras and vision software sold in the EU need a vulnerability handling process and a firmware update policy.

Record the intended use of each vision system now, and ask camera and software suppliers for their support period in every tender.

Frequently asked questions

What is machine vision in simple terms?

It is the use of industrial cameras, lighting, lenses and software to inspect, measure, identify or guide products automatically, with the result used to trigger an action on the line.

Is machine vision the same as computer vision?

No. A3 describes computer vision as the broad field of capturing and automating image analysis, and machine vision as its industrial or practical application, although the lines are blurring.

Does deep learning replace traditional machine vision?

No. Rule-based tools remain best for measurement and alignment, while deep learning adds strength in cosmetic inspection, classification and variable parts.

Can vision-language models inspect parts on a production line?

Not as the final decision today. In the MMAD benchmark the best model reached 74.9% average accuracy, which its authors say falls far short of industrial requirements. VLMs are better used to explain defects and support engineers.

What is new in GigE Vision 3.0?

It adds RDMA streaming over RoCEv2 through the GVRSP protocol, which lets cameras write images directly into computer memory, and remains backward compatible with GigE Vision 2.

Is machine vision high-risk under the EU AI Act?

Usually not for product quality checks. It can be high-risk when used as a safety component of machinery covered by Annex I, or when used to monitor and evaluate workers under Annex III point 4(b).

What is the outlook for machine vision to 2030?

The dated changes are regulatory and technical: the EU Machinery Regulation from 20 January 2027, Cyber Resilience Act duties from 2026 and 2027, AI Act high-risk rules from December 2027 and August 2028, and RDMA streaming through GigE Vision 3.0. XenonStack's view is that vision-language models will grow as assistants to inspectors rather than replace validated inspection models.