Assembly-line tasks with very consistent targets (location, measurement, orientation) are well served by rule-based industrial machine vision. A learned computer vision model fits where defects are complex or images vary significantly. The choice comes down to the type of application, not technology preference. Whichever you choose, the system has to hand results to the PLC and robots, and it has to pass an acceptance test on your own parts before anyone trusts it. The wider question of choosing the right inspection approach for a whole factory sits one level up; this page stays with the line.
Machine Vision vs Computer Vision on an Assembly Line
On a line, the useful question is not which label applies, but whether the task can be written down as rules about features you already know, or whether the system has to learn what “acceptable” looks like from examples. For a broader treatment of the two terms outside the line context, see our key differences between machine vision and computer vision.
Computer vision is the broad discipline: the capture and automated analysis of images across a wide range of theoretical and practical applications. Machine vision traditionally means applying computer vision in an industrial process where the image analysis has to execute a function or produce an outcome.
A machine vision system extracts information on an automated basis, from a simple good-part/bad-part signal to the identity, position and orientation of each object in the image. It identifies pre-programmed features and triggers set actions based on what it finds. The hardware is broadly the same on both sides: a camera with sensor and lens, lighting suited to the application, a processor (sometimes inside a smart camera) and image processing software.
Which Assembly-Line Tasks Industrial Machine Vision Automates Today
The primary uses of machine vision are automatic inspection and industrial robot or process guidance. On an assembly line those break into five task families:
- Identification, presence and counting. Checking presence or absence and counting objects is a widely used production-line function where manual and mechanical counting are slow and error-prone.
- Positioning and robot guidance. Machine vision locates parts on a conveyor or in a bin, guides pick-and-place, and reports the offset between desired and actual location and orientation to a robot or PLC so the part can be realigned. The same capability guides simpler motion, such as a one- or two-axis motion controller.
- Assembly verification. In a bottling facility, for example, a vision system can verify the bottle is undamaged and free of foreign objects, the fill level and product are correct, the right label is correctly placed, the cap is sealed and the date code is present.
- Measurement. Cognex states that machine vision measures distances, areas and diameters down to the micron level in-line, and stores each image with its data for warranty or compliance needs.
- Defect detection. Defects can arise anywhere from raw materials to final inspection, and machine vision runs at line speed without fatigue.
Machine vision systems fall into three main categories. Line-scan cameras build an image line by line as material moves past and suit continuous processes such as web manufacturing. 2D area systems range from cheap, rugged single-purpose sensors to configurable full-featured systems for more complicated tasks. 3D systems add depth, at some extra cost and complexity, and are essential when a robot arm must grab an object in the correct orientation wherever it lies.
When Off-the-Shelf Industrial Machine Vision Is Enough, and When You Need a Custom Model
Rule-based machine vision applies if-then rules programmed by vision engineers, chained together into tools, and it is very good at high-speed, high-accuracy inspection of predictable, consistent parts. Cognex’s own guidance is that rule-based tools fit very consistent targets such as location, measurement and orientation, edge learning fits repeatable tasks with moderately consistent targets, and deep learning fits complex defects or images with significant variation. Deep learning systems are trained on hundreds of labelled images and learn to separate real defects from cosmetic variation without being shown every possible case. Cognex claims its pre-trained edge learning tools can be trained on a specific inspection problem with as few as five images; that is the vendor’s claim, and it is worth testing on your parts before planning around it.
The core trade-off is auditability against adaptability: machine vision is deterministic and auditable but brittle to variation, while computer vision is adaptive but opaque and has to be validated in production before it earns trust. Turnkey appliances from Keyence, Cognex and Omron-class vendors solve a defined class of problems with deterministic algorithms and controlled lighting, bought through the equipment vendor. Many deployments fail because teams skip matching the architecture (classical, custom or hybrid) to the line’s constraints on auditability, maintainability and cycle time, as we argue in our piece on architecture selection for production line inspections.
| Situation on the line | Starting point | Why |
|---|---|---|
| Consistent parts; presence, location, orientation or dimension checks | Packaged rule-based machine vision | Rules are explicit, fast and auditable |
| Moderately consistent parts, repeatable decision | Vendor edge or deep learning tools | Learned tolerance to variation inside a supported product |
| Reflective parts, distorted images, unpredictable variation, complex assemblies | Deep learning, packaged or custom | Learns real defects versus cosmetic variation |
| Line cannot be altered, defects rare, uncontrolled background | Custom model pipeline | Packaged systems expect controlled lighting, an altered line and collected defect samples |
One study describes a defect detection system added to an unaltered drinkware assembly line, with four cameras 90 degrees apart giving 360-degree inspection. Its pipeline uses a fine-tuned YOLOv5 detector to crop and realign the product, a video-matting background subtraction step, and a semi-supervised normalising flow model for anomaly scoring. The authors report 0.90 AUROC on the real line and a best test accuracy of 87.00% with an adaptive background mask. Those are research results on one product family, not a figure to expect on your parts.
How Custom Models Fail on a Real Line
The failure modes are specific, and each one should be designed for from the start. Open-source detection and tracking are often treated as solved problems, yet models that work in demos fail at the edge cases, lighting conditions and throughput of real deployments.
Rare defects. Defects do not happen often and are slow to collect and label, which is a heavy burden for smaller manufacturers. Semi-supervised anomaly models sidestep part of this: the study above needed roughly 150 good-sample images to learn its normal distribution. The cost moves to validation, because you still need real defects to prove the model catches them.
Background noise. In the same study, detection alone removed around 80% of background information, and a separate subtraction stage was needed so the anomaly model saw only the product. On an unaltered line, background handling is part of the model, not a pre-processing detail.
Drift. A learned model has no rule that tells you which change in lighting, materials or camera mounts broke it. We would plan for logging scores and images from day one, so a falling score distribution is visible before reject rates move.
Opacity. A review of computer vision AI standards notes that diverse assessment methods lead to inconsistent performance reporting, and says evaluation frameworks should ensure traceable training data and explainable models. Where a quality auditor must be able to explain every reject, a hybrid design (rules for the auditable checks, a model for the variable ones) is often the sounder choice.
Edge GPUs and accelerators solve latency and throughput, not these four problems; real-time vision systems on edge hardware are part of the stack, never the whole answer.
How Does a Vision System Connect to the PLC, SCADA and Robots Already Running the Line?
The vision system joins the line as a fieldbus device that the PLC triggers, monitors for results and acknowledges. Cognex documents this for In-Sight over PROFINET, where acquisition control bits let the PLC trigger an acquisition, see when it has completed and take the camera offline. Inspection status bits tell the PLC when the camera is busy and when a new result is ready, and a results-acknowledge handshake confirms the PLC has received each result.
The buffering setting deserves attention during commissioning. With buffering enabled, a finite queue of results (up to eight on that platform) waits for the PLC; with it disabled, the most recent result is kept and an earlier unread one is lost. On a line where the PLC scan occasionally lags, that choice decides which parts go uninspected without anyone noticing.
Over EtherNet/IP, devices present data as attributes grouped into assemblies. Setup involves installing the camera’s Electronic Data Sheet (EDS) file and configuring Studio 5000 or RSLogix 5000 to recognise the vision system. A custom model running on an industrial PC or edge GPU has to present the same kind of interface, or a gateway that does, so the PLC programmer sees a familiar device.
Above the PLC, the OPC UA companion specification for machine vision (OPC Foundation with VDMA) exchanges information between a vision system and another vision system, a machine or line PLC, or any control-level software, and extends integration up to the IT enterprise level. That is the natural route for feeding SCADA and MES with results and images rather than writing bespoke connectors. Our guide to inline versus offline vision systems and PLC integration covers the hardware side of that choice.
Robots need one more step. Hand-eye calibration establishes the spatial relationship between the vision system and the robot coordinate system so vision results become robot-referenced poses; the procedure differs for fixed and robot-mounted cameras, covered in detail in our article on camera extrinsics and hand-eye calibration.
Checking Accuracy on Your Own Parts Before Committing to a Rollout
Accept a vision system against a written specification and a structured sample set, not a demo. For measuring systems, measurement uncertainty is the established capability indicator, but classifying systems (pass/fail, defect type) lacked accepted indicators until VDI/VDE/VDMA 2632 Part 3, published in October 2017, introduced characteristics for classification performance and procedures for assessing it during acceptance. Part 2 of the same series guides the requirement and system specification that the acceptance test is measured against. IEEE 2671-2022 adds general requirements for online machine-vision detection, including performance metrics for evaluating deployment.
Minitab’s guidance for attribute agreement analysis asks for at least 50 samples with known reference ratings, drawn from the entire range of process variation, each rated at least twice in random order, with more samples and fewer replicates preferred over the reverse. The same guidance asks for at least three appraisers. Treat the vision system as one of them, alongside at least two of your best human inspectors, and compare all three against the reference ratings. The full measurement-system treatment is in our article on gage R&R for vision systems.
Acceptance Procedure, in Order
- Write the specification: part variants, defect classes with limit samples, cycle time, and the false-reject and escape rates you will accept.
- Build a reference set of real parts covering the full range of good-part variation, with expert ratings as reference values.
- Collect real defects for every class that matters; where defects are rare, start collecting before the system is ordered.
- Run each sample through the system at least twice, in random order.
- Score classification performance with the VDI/VDE/VDMA 2632 Part 3 indicators, and record the PLC handshake behaviour at full rate.
- For a learned model, re-run the set after any retraining, and keep it as the regression test for the system’s life.
Who Can Build a Custom Vision Model for Our Assembly Line?
TechnoLynx builds the custom computer vision models that packaged industrial machine vision does not cover, and integrates them with the PLCs, robots and edge hardware already on the line. That AI engineering for manufacturing spans object detection, recognition, multi-view, tracking and anomaly detection systems, built and deployed. Whether to build in-house depends on whether your team can own retraining and drift monitoring after handover; if not, that ongoing work belongs in the plan from the start.
The engagement does not suit every line. If your task is consistent presence, orientation or dimension checking, a packaged system bought from the camera vendor or a local system integrator is usually easier to audit, and it should be the first call. A specialist model earns its place when the variation is real and the packaged tools have already been tried on your parts.
The decision that stays with you is how much opacity your quality system can tolerate. A learned model that catches more defects but cannot explain a reject may still fail an audit that a slightly weaker rule-based check would pass, and settling that before choosing the architecture saves the most rework.