The field, explained

What is machine vision?

Cameras and software doing industrial visual inspection, at line speed, on every part.

What the term actually means, how it differs from computer vision and AI vision, the technology inside it, and how to tell whether it fits the problem in front of you.

1950s
first industrial image analysis
4 jobs
inspect, measure, identify, guide
<10 ms
decision time on a modern edge camera
Machine vision station on a conveyor: controlled lighting, a smart camera, and an I/O block signalling the result

The short answer

Machine vision is the use of cameras and image analysis to inspect parts and control equipment in industry. A camera captures an image, software analyzes it, and the result becomes an action: reject the part, log the measurement, or tell a robot where to reach. It is the industrial, real-time branch of computer vision, and it is how a plant checks every unit instead of sampling.

Terminology

Machine vision vs computer vision vs AI vision

These three get used interchangeably and they are not the same thing. Computer vision is the field. Machine vision is the industrial application of it. AI vision is machine vision built on a trained model instead of hand-written rules.

Computer visionMachine visionAI vision
What it isThe broad research fieldThe industrial application of itMachine vision that learns from examples
Where it runsServers, phones, vehicles, researchOn a production lineOn a production line, usually at the edge
Typical goalUnderstand an imagePass, fail, measure, locatePass, fail, measure, locate
How it is builtCode and models, general purposeProgrammed rules and fixed opticsTrained on images of good and bad parts
Handles variable surfacesDepends entirely on the methodPoorly, rules break on variationWell, variation is what it learns
Who sets it upResearchers and developersVision engineers and integratorsQuality engineers, after a short ramp

The distinction that matters on a plant floor: rules have to be written, models have to be shown examples. More on that in machine vision vs computer vision and AI vision systems explained.

Clearing it up

What machine vision is not

Not a security camera

A camera that records for a human to review later is doing surveillance. Machine vision makes the decision itself, in the moment, and hands the result to equipment.

Not the same as AI

Machine vision is the task. AI is one way to do it. Rule-based machine vision worked for decades with no AI anywhere in it.

Not only about cameras

The camera is the part people picture, but lighting and optics decide what the camera can see at all. Most failed projects failed at the lighting, not the software.

How it works

From light to a decision, in five steps

Every machine vision application runs this same sequence, whether the logic is a hand-written rule or a trained model. For how these steps map onto real hardware on a station, see machine vision systems.

The same part on a conveyor at three exposure times: frozen, slightly smeared, and heavily streaked
Step one decides the rest. The same part at three exposure times: too long and there is nothing left to measure.
1

Acquire

A camera and controlled lighting capture an image of the part. This step decides everything downstream: if the defect is not visible in the image, no amount of software will find it.

2

Process

Software cleans up the raw image. Filtering to reduce noise, contrast adjustment, and geometric correction so the same feature lands in the same place every time.

3

Extract

Algorithms or a trained model pull out the features that matter: edges, shapes, patterns, colors, textures, or the presence and absence of something.

4

Decide

Those features are compared against defined criteria or a learned reference. The output is a pass, a fail, a class, a measurement, or a coordinate.

5

Communicate

The result goes to a PLC, a robot, a reject mechanism, or a database, so the line acts on it. A decision nothing reads is not an inspection.

The technology

What is inside machine vision technology

Image sensors

The sensor turns light into an electrical signal. Modern machine vision is almost entirely CMOS, which reads out fast, draws little power, and is cheap to manufacture at volume. CCD sensors dominated for years and still appear where image quality matters more than speed or cost. The number worth caring about is not megapixels, it is how many pixels land across the smallest defect you have to catch.

The same shallow surface defect captured in monochrome and in colour, the colour version visibly softer on the fine detail
The same defect in monochrome and in colour. A colour filter over the pixels trades resolution and light for hue, so most inspection runs monochrome.

Illumination

Lighting is the highest-leverage choice in the whole system, because it determines whether a defect is visible before any software runs. Four techniques cover most of it, and they are often combined.

The same scratched aluminium plate under four lighting setups: flat frontal, low-angle, backlit, and structured light
One scratch, four lighting setups. Under flat light it is almost invisible. Under low-angle light it is unmissable.

Bright field

Direct illumination that shows surface color and texture. The default for general inspection and print verification.

Dark field

Low-angle light that skims the surface, so scratches and raised or recessed defects light up against a dark background.

Backlighting

Light behind the part turns it into a silhouette, which gives the crispest possible edges for dimensional measurement.

Structured light

A projected pattern deforms as it falls across a 3D surface, and that deformation is measured to recover height and shape.

Image processing algorithms

Rule-based machine vision is built from a toolbox of operations an engineer chains together. These are still the right answer for measurement and for reading codes, where the rule is exact and the tolerance is numeric.

Edge detection

Finds boundaries where image intensity changes sharply. The basis of most measurement.

Blob analysis

Groups connected pixels of similar value, then counts and measures those regions.

Pattern matching

Locates a known template inside a larger image, even when it has shifted or rotated.

Morphological operations

Grows, shrinks, and cleans up shapes to remove noise before measuring them.

Color analysis

Measures and compares color across regions, for sorting and for verifying the right part is present.

Geometric measurement

Turns detected features into distances, angles, areas, and positions in real units.

Standards and interfaces

Machine vision has real interoperability standards, which is why a camera from one vendor works with software from another. Which one you meet depends on how much data the camera produces and how far the cable has to run.

  • GigE Vision: Video and camera control over standard Ethernet. Long cable runs, ordinary network hardware.
  • USB3 Vision: The same idea over USB 3.0. Short runs, simple wiring, common on benchtop systems.
  • Camera Link: A dedicated high-bandwidth interface for cameras that produce more data than a network can carry.
  • CoaXPress: High speed over coaxial cable, which also carries power and control to the camera.
  • GenICam: A common programming interface, so software can talk to cameras from different vendors the same way.

Separately from the camera interface, the system has to speak to the line. That is a different set of protocols, covered in industrial protocols.

Machine vision camera communicating results over industrial protocols

Applications

What machine vision is used for

Almost everything reduces to four jobs. For the full list of inspection tasks by part and defect, see machine vision applications.

The same part front lit with an ambiguous edge, then backlit as a silhouette with a razor-sharp edge
Why measurement uses backlighting. Front lit the edge is a soft guess; in silhouette it is one unambiguous boundary.

Inspection and quality control

Finding defects, contamination, and departures from spec. This is the most widespread use by a wide margin, covering everything from a scratch on a machined face to a missing component on an assembly.

Surface inspection

Measurement and metrology

Non-contact dimensional measurement at production speed. Useful precisely where a gauge cannot reach, or where touching the part would damage it, and it does not slow the line down to do it.

Measurement tasks

Identification

Reading 1D barcodes, 2D codes such as QR and Data Matrix, and printed characters. This is what makes traceability work, and it verifies that the right information was actually marked on the right part.

OCR and code reading

Robot guidance

A camera locates the part and calculates where to pick or place it. That removes the need for precise fixturing and lets a robot cope with parts that arrive in slightly different positions each time.

Assembly verification

The case for it

Why manufacturers use machine vision

Consistency

The same criteria applied to every part. No fatigue, no drift between shifts, no argument about whether a borderline unit passes.

Speed

Hundreds or thousands of parts a minute, at rates no human inspector can sustain.

Accuracy

Measurement well below what the eye can resolve, and repeatable to the same tolerance every time.

A record

Every inspection produces data. An image and a measurement per unit is the evidence behind a quality claim.

Continuous operation

It runs whenever the line runs, including the shifts that are hardest to staff.

Lower cost of quality

Less scrap, fewer escapes reaching a customer, and inspection labor freed for work that needs judgment.

The honest part

Where rule-based machine vision runs out

Traditional machine vision is precise and it is not going away, but it has four well-known limits. Every one of them comes from the same root: a person has to describe the defect in advance.

Rigid programming

Every criterion has to be stated explicitly. A defect nobody anticipated is a defect the system was never told to look for.

Sensitivity to variation

Rule-based logic struggles when parts vary naturally in color, texture, finish, or position, because the rule cannot tell acceptable variation from a defect.

Setup effort

Getting an inspection right takes vision expertise and a lot of tuning, which is why integration often costs more than the hardware.

Limited adaptability

A new product or a changed tolerance usually means reprogramming rather than retraining, so every change is an engineering project.

What changed

Learning-based methods removed the need to describe the defect in words. You show the system images of good parts and bad parts, and it works out the boundary itself. That is what made variable surfaces, cosmetic defects, and mixed-model lines tractable, and it is why most new deployments are hybrid: programmed logic where the tolerance is numeric, a trained model where the judgment is visual.

Reference

Machine vision glossary

A stepped gauge receding from the camera at three apertures, the sharp band widening from left to right
Depth of field, at three apertures. Open the aperture for more light and the sharp band narrows to almost nothing.
Field of view
How much of the scene the camera sees. Set by the sensor size, the lens, and the distance to the part.
Resolution
How many pixels cover the part. What matters in practice is pixels across the smallest defect you need to catch, not the sensor megapixel count.
Working distance
From the front of the lens to the part. Fixed by the lens choice and constrained by whatever else is on the station.
Depth of field
How much of the depth stays acceptably sharp. Shrinks as you open the aperture to let in more light.
Smart camera
Camera, processor, and inspection software in one housing. The alternative is a separate camera wired to an industrial PC.
Line scan and area scan
Area scan grabs a rectangular frame. Line scan reads one row at a time and builds an image from motion, which suits web and cylindrical products.
Exposure
How long the sensor collects light. Too long on a moving part smears the image, so fast lines need bright light and short exposures.
Inference
Running a trained model on an image to get a result. On an edge camera this happens locally, in milliseconds, with no round trip to a server.

Working the numbers yourself? The optics calculators turn a part size and a defect size into a field of view, a working distance, and a lens.

Deciding

Does machine vision fit your problem?

Six questions, in this order. The first one does most of the work.

1

Start with the defect, not the camera

Name the smallest thing you must catch and its size. Everything about the optics follows from that one number, and skipping it is the most common reason a project fails.

2

Check the part and its variation

How much do good parts differ from each other? High natural variation is the signal that rules will fight you and a learned model will not.

3

Confirm speed and accuracy

How fast does the part move, and how tight is the tolerance? Both set hard limits on the lighting, the exposure, and the resolution you need.

4

Look at the environment

Temperature, vibration, washdown, dust, and ambient light all decide whether a system that works in a lab works on your floor.

5

Plan the integration

What has to receive the result, and over which protocol? A vision system that cannot tell the line what it found has not finished the job.

6

Decide who maintains it

If adding a new defect class requires the original integrator, every product change becomes a purchase order. Ask who can retrain it and how.

For the buying checklist at system level, including architecture and integration, see machine vision systems. To get an answer on your specific part and defect, run it through the feasibility check.

Trusted by

Manufacturers running Overview AI in production

Toyota
Honda
Mitsubishi
Tyson
Schaeffler
Amphenol
Molex
Clorox
Henkel
Aisin
Milliken
Tillamook
Zipline
Parker Hannifin

FAQ

Frequently asked questions

What is machine vision?

Machine vision is the use of cameras and image processing to provide imaging-based automatic inspection, process control, and robot guidance in industrial applications. It covers both the hardware that captures images and the software that analyzes them to reach a decision, such as pass, fail, a measurement, or a position.

How is machine vision different from computer vision?

Computer vision is the broad research field of teaching computers to interpret images, including non-industrial uses such as autonomous vehicles, medical imaging, and security systems. Machine vision is the applied, industrial subset of it. Machine vision adds the cameras, controlled lighting, real-time speed, and line integration a factory needs, and it is engineered for the harsh conditions of a plant floor.

How does machine vision work?

Machine vision follows a consistent workflow: acquire an image with a camera and controlled lighting, process the image to enhance features and reduce noise, extract features such as edges, shapes, and patterns, decide against defined criteria or a trained model, then communicate the result to a PLC, robot, or database so something happens. All of it runs in milliseconds.

What is machine vision used for?

Four main jobs. Inspection and quality control, which is by far the most common. Non-contact measurement and metrology at production speed. Identification, meaning barcodes, 2D codes, and reading printed text. And robot guidance, where a camera locates a part so a robot can pick or place it without expensive fixturing.

What is machine vision technology made of?

An image sensor, almost always CMOS today, converts light into a signal. A lens and controlled lighting determine what the sensor can actually see. Software then runs either programmed algorithms such as edge detection and pattern matching, or a trained AI model. Standards including GigE Vision, USB3 Vision, Camera Link, CoaXPress, and GenICam let components from different vendors work together.

What are the limitations of traditional machine vision?

Traditional rule-based machine vision requires every criterion to be programmed explicitly, so a new defect type means new programming. It is sensitive to natural variation in color, texture, and position. Setup demands expertise and extensive tuning. And adaptability is limited, since changing the product usually means significant rework. These limits are what drove the move to learning-based approaches.

Is machine vision the same as artificial intelligence?

No. Machine vision is a task, and AI is one way to perform it. Rule-based machine vision has existed for decades without any AI: an engineer writes the rules that define a good part. AI machine vision instead learns what a good part looks like from example images, which is what makes it practical on surfaces and defects that are too variable to describe in rules.

Do I need machine vision or a person doing visual inspection?

Manual inspection works when volume is low, defects are obvious, and a record is not required. Machine vision becomes the better answer when you need every part checked instead of a sample, when the defect is small or subtle enough that fatigue causes escapes, when the line runs faster than a person can keep up with, or when you need an image and a measurement stored for every unit you ship.

Keep going

Find out if it works on your part

Describe the part and the defect you need to catch. You get the optics, the resolution, and an honest answer on whether it is solvable, before anyone talks to you about hardware.