A vision inspection system turns a captured image into an inspection decision. Lighting and optics form an image of the part, a camera digitises it, software pulls measurements or features out of the pixels, and the result leaves the system as a pass/fail signal, a reject trigger or a position sent to a robot. Machine vision is the industrial discipline behind that pipeline: imaging-based automatic inspection, process control and robot guidance. The most critical stage is the first one, imaging. As a Quality Magazine piece on line-scan imaging puts it, the imaging system has become the upstream constraint on how much intelligence can be extracted downstream. A defect that the lighting and optics never make visible is gone before any rule set or neural network sees the image.
From Trigger to Reject: The Inspection Cycle Step by Step
A machine vision system captures an image on demand and analyses it to extract data about the object in front of the camera. Cognex’s introductory white paper describes a brewery fill-level check that shows the whole cycle in one pass: each bottle trips a sensor, the vision system flashes a strobe and takes a picture, software analyses the stored image and issues a pass/fail result on the fill level, and a failed bottle is pushed off the line by a diverter.
Inside the software, processing usually runs as a chain of stages. Filters condition the image first, then object detection extracts objects, then data is extracted from those objects (a measurement, a code read), and finally the data is compared with target values to produce a pass/fail result or communicated onward. Before any of that runs on the line there is a design phase: planning the requirements and creating the solution.
The stages run in sequence, each working on what the previous one produced. Pattern matching shows this clearly: locating the part is typically the first step in any machine vision application, and if the tools cannot locate the part precisely, they cannot guide, identify, inspect, count or measure it.
What Are the Components of a Machine Vision Pipeline: Sensor, Lighting, Optics and Inference?
The components of an automatic inspection system usually include lighting, a camera or other imager, a processor, software and output devices. Lenses sit between the part and the sensor and are a component in their own right. The table below gives what each one decides.
| Component | What it decides | Typical way it limits the system |
|---|---|---|
| Lighting | Whether features of interest stand out from the background, consistently, part after part | Glare off smooth parts, or shadows that hide an important spot |
| Optics (lens) | The field of view and the working distance at which the camera can sit | Distortion from imperfect optics or a tilted optical axis, which must be corrected before calibration |
| Camera and sensor | Converts light into digitised pixel values; pixel count sets resolution for a given field of view | Too few pixels across the smallest feature, or noise and nonuniformity in the sensor itself |
| Processor and software | Which algorithms run on the pixel data, from edge extraction and blob analysis to deep learning tools | Can only extract what the image already contains |
| Output | Pass/fail decisions that trigger a reject or an alarm, or position and orientation for robot guidance | n/a |
The split between hardware and software is the useful one to hold on to. The hardware (lighting, optics, sensor) determines what information exists in the pixels; machine vision software determines how much of that information is found, measured and acted on. Resolution makes the split concrete. Teledyne’s Machine Vision 101 notes that the precision of an inspection depends on the working distance, the field of view and the number of physical pixels in the sensor, and the spatial size of one pixel is expressed in millimetres per pixel. That figure follows directly from the definition: the field-of-view width divided by the number of pixels across it gives millimetres per pixel, and the smallest detectable defect has to span enough pixels at that scale for the software to work.
Optics and sensor are best chosen together, not in isolation. In a worked Edmund Optics example, 3.45 µm pixels corresponded to a 45 µm object while the lens could resolve 26 µm in object space, so the sensor, not the lens, was the limiting component. The same note gives a rule of thumb that an imaging lens needs a minimum contrast of about 20% to properly resolve an object. The camera side of this, sensors and how they turn photons into numbers, is covered in depth in our piece on how a machine vision camera works.
Architecturally, the processing can live in very different places. At one end, smart cameras house the complete system in one package with configurable, usually no-code vision tools; at the other, a general-purpose industrial or embedded computer is tethered to one or more cameras and runs mostly custom programs built on vision libraries. General-purpose systems handle the more complex vision tasks, and the compute side of that choice is the subject of our article on what an inspection line actually runs on.
How Is Machine Vision Different from Computer Vision, or a Camera with a Model Bolted On?
Machine vision is defined by what it does on a line. The Automated Imaging Association’s definition, as Cognex quotes it, covers applications in which hardware and software together provide operational guidance to devices based on capturing and processing images. Machine vision excels at quantitative measurement of a structured scene, because of its speed, accuracy and repeatability, where human vision is better at qualitative interpretation of an unstructured scene. The terminology question itself, and where the broader field of computer vision draws its boundaries, has its own page on the difference between computer vision and machine vision.
The “camera plus model” framing is the more consequential misunderstanding. It is a reasonable belief: modern models are good at recognising things in images, so a high-resolution camera pointed at the line and a trained network ought to be enough. What that belief skips is the “physics” phase of a vision solution. Conventional machine vision relies on the imaging stage to create reliable differentiation of defects (dark defects on a light part, for example). Deep learning relaxes that requirement but does not remove the dependence on image acquisition: Cognex states plainly that there is no substituting image acquisition, and that small changes to working distance, lighting or background colour can force a full reprogram if the images change drastically. Our position is that off-the-shelf models that work in a demo tend to fail in production at the edge cases, lighting conditions and throughput of a real deployment.
Is Machine Vision a Form of AI, and Where Do Rule-Based Tools End?
Machine vision does not have to involve AI. Its analysis tools range from simple algorithms such as edge extraction, contrast measurement, blob analysis and pattern matching to AI and deep learning tools, usually combined into one inspection process.
Rule-based tools follow if-then logic written by vision engineers (“if the bottle is filled to at least this level, let it pass”), and individual tools such as edge detection or point-to-point measurement are chained to perform more complex tasks. Machine learning systems instead train on labelled example images. Cognex describes deep learning systems trained on hundreds of labelled images that learn to separate real defects from cosmetic variation without being shown every case, and pre-trained “edge learning” tools that can be trained on a specific inspection problem with as few as five images. Those image counts are the vendor’s figures for its own tools, not a guarantee for an arbitrary defect set.
The boundary between the two follows the consistency of the target. By Cognex’s account, rule-based tools are effective at specialised tasks with very consistent targets, such as location, measurement and orientation; edge learning suits repeatable tasks with moderately consistent targets; deep learning is the choice for complex defects or images with significant variation. Deep learning made some applications possible that rule-based vision could not do, precisely because the “simple” differentiation could not be achieved.
There is a trade-off that the AI-versus-rules debate tends to miss. Rule-based algorithms are relatively tolerant of systematic imaging artefacts, because the designer can account for known nonuniformities in the rules; a trained network is typically less tolerant, because it can learn illumination gradients, spectral drift and line-to-line gain variation as features of the data, and then degrade in ways that are hard to diagnose when production imaging drifts from training conditions. Learning buys tolerance to part variation and costs tolerance to imaging drift. How the learned side works is covered in our explainer on image detection models, and the case for keeping rules where they still win is made in our article on visual inspection equipment.
Why Lighting, Optics and Sensor Noise Set the Ceiling on Inspection Accuracy
Accuracy is a property of one system, on one defect set, under one set of imaging conditions, and it has to be measured there. For gauging, one article on vision gauging separates three requirements: repeatability (variation across repeated measurements of the same feature on the same part), accuracy (closeness to the true or reference value) and precision (how close measurements are to each other). The same article points out that pixel size depends on sensor resolution, field of view, presentation angle, lighting and optical quality, and that optical distortion should be corrected with an algorithm trained on a known target before pixel calibration.
The camera’s own limits are characterised separately. The EMVA 1288 standard defines a unified way to measure and present camera and sensor specifications, so that buyers can compare cameras and calculate system performance from them. Signal quality is expressed as signal-to-noise ratio, and the standard also covers spatial nonuniformities; periodic column and row patterns are singled out because they disturb many image processing operations. Those figures describe the sensor, not the inspection: they bound what the camera can deliver, not what the system will detect.
Image formation is the most critical stage of the system. Control Design states that capturing a correctly illuminated image, with the object correctly presented, can be an 80% or greater factor in the success and reliability of an inspection. Poor lighting is the most common cause of poor machine vision performance, a point our article on optics and lighting design takes apart in detail. A 2024 study in Applied Sciences measured the effect on a convolutional neural network inspecting rolled steel: recognition was best at an illuminance of about 200 lx, below about 150 lx most defects could not be recognised, and above about 250 lx more small objects were falsely flagged as defects.
Small illumination artefacts matter too. In a line-scan system, a brightness gradient of only two or three percent across the illumination line appears in the image as a systematic artefact that cannot be told apart from a real surface feature until it is calibrated out. That is the mechanism behind the cap: once a defect and an artefact look the same in the pixels, no downstream model has the information to separate them. It is also why a quoted near-perfect accuracy deserves suspicion until it has been measured on the buyer’s own defects, a pattern we examine in why CV inspection pilots over-promise on accuracy.
How Do You Tell Whether a Defect Class Is Visible to the System at All?
The working test is whether the defect produces a consistent, measurable difference in the image under production conditions, before any model is involved. We would run through the checks below in order, because a failure early in the list makes the later ones irrelevant.
TechnoLynx’s computer vision R&D work on inspection starts at the image-formation layer, with a feasibility audit of lighting, fixturing and conveyor conditions that catalogues which defect classes can be rendered at all.
- Size against pixel scale. Compute millimetres per pixel from the field of view and pixel count, and check that the smallest defect of interest spans enough pixels for the intended tool.
- Contrast under the chosen lighting. Good lighting maximises contrast on the features of interest and minimises it elsewhere; backlight, bright field, dark field, diffuse and infrared lighting each reveal different feature types.
- Optical match. Confirm that neither the lens nor the sensor is the limiting component at the required feature size.
- Presentation and location. The object has to be presented correctly and located reliably, or nothing downstream works.
- Motion at line speed. On a line-scan system, motion blur is set by line rate and conveyor speed, which the designer controls.
- Dimensionality. Height defects such as solder joint height, substrate bow and fill level need 3D data that 2D imaging cannot provide.
- Stability over time. Check that illumination, spectral response and gain stay consistent, since a learned model can degrade when production imaging drifts from its training conditions.
A defect that produces no consistent difference in the image under any practical lighting option is a candidate to drop from scope. Which defect classes tend to pass and fail these checks today is the subject of our breakdown of defect classes that are feasible for CV inspection.
Types of Vision Inspection System: 1D, 2D Area Scan, Line Scan and 3D
The inspection task chooses the system type, mainly through motion, geometry and whether depth matters. Cognex states that choosing between line-scan and area-scan sensors depends on conveyor speed and the shape of the object being inspected.
| Type | How it images | Where it fits | Limits and costs |
|---|---|---|---|
| 1D | Analyses a signal one line at a time, comparing recent groups of lines with earlier ones | Defect detection on continuous materials such as paper, metals, plastics and non-wovens | Does not look at a whole picture at once |
| 2D area scan | Captures a complete 2D frame in one exposure | Discrete parts, robotic guidance, general applications; very high frame rates on small fields of view | Resolution fixed by sensor size |
| 2D line scan | Builds a 2D image one row of pixels at a time as the object moves | Moving webs, rotating objects, pipes, rails, roll-to-roll material; wide fields of view at high resolution | Illumination nonuniformity shows up directly in the image |
| 3D | Adds depth, using multiple cameras or laser displacement sensors, structured light or time-of-flight | Robot guidance, bin picking, height and planarity checks, complex assemblies | More complexity and cost; triangulation can lose data to occlusion |
Cognex gives two rules of thumb for the line-scan decision: above roughly 2 metres per second with continuous product flow, line scan is almost always the answer, and on continuous objects line-scan cameras deliver 20 to 30 times faster inspection than area scan. Area scan keeps the advantage of simpler integration with discrete parts.
For 3D, triangulation geometry shapes the result. All 3D techniques except time-of-flight and LiDAR use triangulation, where a wider baseline between camera and light source improves distance resolution but increases the chance that one component cannot see a feature the other can, leaving no depth value there. The types also combine: stereo line-scan systems use two cameras at a fixed baseline angle to produce a dense 3D point cloud per line while acquiring a co-registered colour image.
What Are Common Examples of Machine Vision Applications, and What Makes Each Feasible or Hard?
Machine vision applications are commonly grouped as GIGI: guidance, identification, gauging and inspection, with part location the critical first step in all four. Across industries, machine vision performs defect detection, measurement, assembly verification, robot guidance, optical character recognition and validation, flaw detection and code reading.
Guidance. Machine vision locates a part on a conveyor or in a bin, measures the gap between desired and actual position and orientation, and sends the correction to a robot or PLC. For bin picking, 3D depth data gives the robot each part’s pose in all six degrees of freedom, which flat 2D intensity images do not.
Identification. For code reading, the feature size is known, so lens and sensor can be specified from the required pixel coverage, as in Edmund Optics’ worked barcode example. Feasibility here is largely a resolution and contrast calculation.
Gauging. Cognex claims machine vision measures down to the micron level on the line, and that calibrated laser displacement sensors measure surface height and planarity to within 20 µm. Measurement depends on correcting distortion before pixel calibration, and on repeatability, accuracy and precision.
Inspection. Defect detection is the broadest category and the one where feasibility varies most. Rule-based tools suit very consistent targets; deep learning shines on complex defects and images with significant variation. Food on conveyors, with organically variable surfaces checked at once for contamination, dimensions and fill level, sits at the hard end, alongside continuous webs moving hundreds of metres per minute. Whether every defect class belongs to the system at all is argued in what CV inspection is not. A wider set of deployments is covered in computer vision in manufacturing.
Settle the Image Before You Buy the Model
Taken together, the pipeline reorders the questions a team should ask before a pilot. “Which model?” comes last. Before it come “can the lighting render this defect consistently?”, “is the pixel scale fine enough?” and “will the imaging stay stable for months, not just on demo day?”. Most AI R&D projects fail, and we think setting that expectation honestly at the start is the baseline for any engagement. The step that follows, deciding whether a line is ready for a pilot and with what scope, is laid out in our guide to CV inspection feasibility.