Machine vision is moving beyond predictable products
Distinguishing a chicken breast from a drumstick is an everyday task for a person working in food production, yet for years it presented a formidable problem for machine vision engineers. The difficulty was not obtaining an image of the meat but writing a set of rules that would reliably distinguish one cut from another when no two pieces were quite the same. The ability to teach a machine what those products look like, rather than having to describe their appearance mathematically, is opening parts of manufacturing where automated inspection was once prohibitively difficult to engineer.
Brian Benoit, Director of Product Management at machine vision specialist Cognex, has seen the engineering effort required to make traditional inspection work in industries such as automotive and electronics. Much of that work takes place before a camera ever captures an image, with components carefully positioned and presented so that the inspection can be repeated reliably. “Rather than adding pattern tools and edge tools and chaining them together to get the output you want, AI tools allow you to train by example,” Benoit says. “You are presenting the tool with the type of variation it might see and the type of defects it might see. In some cases, you do not even show it defects. You just show it what good looks like, and the tool itself will identify anomalies.”
Redrawing the economics of inspection
On a fast-moving packaging line, even a product with consistent dimensions can arrive in front of a camera looking different from the one that preceded it. A slight fold in the packaging or a change in orientation may be perfectly acceptable, yet a conventional inspection can struggle to accommodate it without considerable engineering work. Benoit believes the ability to incorporate those variations into a training model is extending the commercial reach of vision into areas of consumer goods production where automated inspection was previously difficult to implement.
The engineering cost of an inspection has traditionally been easier to justify when a factory makes the same product in large quantities, giving the manufacturer enough volume over which to recover the initial investment. A plant producing a much wider range of components in smaller batches faces a different calculation, particularly when each product requires an inspection of its own. In sectors such as aerospace, where the production mix can be extensive and volumes relatively low, reducing the work involved in developing and validating an inspection could make vision economically viable for many more applications.
Making those additional inspections viable also creates a choice about where to position them within the production process. A manufacturer assembling a complex product can spend a considerable amount of money on further processing before discovering that a relatively inexpensive component was incorrectly fitted. “What I see when I visit customers is that they want to add more inspections at more points in their process to improve yield and quality,” Benoit says. “If some of these manufacturers had their way, they would have a camera at every single subassembly, so that by the time anything gets to final assembly, all the parts have met certain quality criteria.”
A wider inspection footprint does not, however, mean that every camera should be configured to reject products at the slightest hint of an anomaly. The financial cost of an unnecessary rejection depends heavily on the value of the product, while the consequences of allowing something defective through can vary enormously even within the same industry. “We have worked with food manufacturers who might have nuts on one line and no nuts on another,” Benoit explains. “In that case, they cannot accept the risk of the wrong product going through, so they will err on the side of caution and reject things even though they may be acceptable. Our job is to give end users the tools that allow them to set those thresholds where it makes the most sense.”
A decision must arrive while the product is still there
A camera inspecting products on a conveyor has a finite window in which to make its decision, determined by the speed of the production line rather than the complexity of the image. Benoit describes the interval between triggering a camera and receiving its output as the period around which much of Cognex’s engineering is concentrated. As manufacturers introduce more sophisticated AI models, that interval remains a constraint on what can be deployed.
OneVision, a software platform developed by Cognex, allows engineers to develop AI models using images and labels before transferring the validated model to an industrial vision device. Separating those activities gives manufacturers access to computing resources far beyond what would ordinarily be available inside a camera. “We do not typically retrain at the edge,” Benoit says. “You are retraining on a much higher-end GPU-equipped PC or a cloud-based instance. But at runtime, when you are doing that triggered output, you have to be at the edge. The latency of moving images back and forth would make it virtually impossible to meet the speeds our customers are demanding.”
Keeping the inspection close to production also makes its results available to equipment that must act on them immediately. In a robotic handling application, for instance, identifying the correct component is only part of the job because the robot still must pick it up successfully. Vision can establish where the component is, but the physical interaction with it introduces another source of information. “We typically output an X-Y position and angle on a specific part to guide the robot in picking it up,” Benoit says. “But there may be data coming from the actual gripper itself about how much force it takes to grab the part, and that might dictate how much tolerance it has in where it can go down and pick it up. There is enormous potential to combine vision data with other factory automation data to adjust the process or even make the inspection more accurate.”
The visual record can also have a useful life beyond the short interval available for an immediate decision. Manufacturers that retain raw images can revisit an inspection after discovering that a dimension or feature they were not originally checking has become significant. Instead of waiting to collect evidence from a new production run, engineers can apply additional vision tools retrospectively to the images they already hold, provided the relevant detail was captured.
The factory still decides what good looks like
Engineers reviewing those historical images may discover that an inspection is unnecessarily rejecting acceptable products or overlooking a defect that only becomes apparent later in production. Correcting that behavior involves changing a model whose outputs may already determine whether products are released for sale. In regulated manufacturing, altering the inspection criteria is therefore a considerably more involved exercise than simply improving the performance of an AI model.
“There is always a human in that step who is going to use the data to retrain and relabel the model,” Benoit says. “That would never happen automatically. We work in medical devices, for instance, and any change you make to your process has to be very well documented and revalidated. If the AI could make changes to your production process in a way that a human could not predict, it would invalidate all the hard work you did to validate it in the first place.”
Managing those models becomes more complicated when manufacturers want to distribute inspection capabilities across an entire production network. Even factories making identical products may have acquired different equipment over the years, and a centrally developed inspection may encounter conditions that were never present on the original line. Rebuilding every application locally would eat into the very engineering savings that made AI attractive in the first place.
“We have had customers who are able to take images from three or four different lines that might have some subtle variation and train a master model that will work on all of those lines, as long as that variation is being trained into the model upfront,” Benoit explains. “If there are more localized variables that you cannot predict, you can go to that local line, collect more images from that camera and retrain your model. You do not have to start from scratch.”
For much of machine vision’s history, what could be automated depended on how precisely engineers could describe the appearance of a product and how consistently the factory could present it to a camera. Benoit’s conversations with customers increasingly concern where else they might put a camera, including applications he would have considered impractical only a few years ago. The more interesting prospect for manufacturing is not necessarily a better inspection at the end of a familiar production line, but the possibility of designing processes in which machines can make use of visual information that previously only a person could interpret.

