AI visual inspection checks parts on the line with cameras and a trained model, and flags the ones that look defective. A person owns the decision on the hard cases, and every decision is recorded. It suits defects that vary in shape and appearance, where inspection by eye at line speed misses some.
Many plants have seen a pilot that finds scratches convincingly in a meeting room. Fewer have one running on the line. The gap between the two is rarely the model. It is everything around it.
A rule or a trained model
Not every inspection needs AI. Rule-based machine vision checks what can be described exactly: a hole is present, a dimension is within tolerance, a label is in place. Under stable lighting, a rule is faster to build and easier to explain and validate.
A trained model earns its place where the defect cannot be described as a rule: a scratch that can be anywhere, a surface flaw that looks different on every part, a weld that is acceptable in some shapes and not in others. If a rule or a plain integration does the job, that is what we build.
Where pilots stall
The same few gaps come up between a pilot and a line:
- The photos were not taken on the line. The station has different lighting, angles, speed and dirt from a desk.
- Too few defects. A good line makes few defective parts, so a pilot has thousands of good images and a handful of bad ones.
- No agreed definition of a defect. Two inspectors disagree about the same part, and the model learns whichever one labeled the images.
- Nobody decided what a wrong answer costs. Without that, there is no way to choose how strict the model should be.
- The answer goes nowhere. A flag on a laptop screen does not stop a part or reach the quality record.
The images: from your own line, where the camera will sit
An inspection model needs images of good and defective parts from your own line, taken where the camera will sit, with an inspector's call on each. Images from a catalog or another plant teach it someone else's lighting and parts.
Where defects are rare, the first phase collects them: the camera goes up at the station before any model is trained, and inspectors label what it sees over weeks of normal production.
Labeling is also where the definition of a defect gets settled. Where two inspectors disagree, the disagreement is written down and decided by the person who owns quality, before the model learns from either.
Two kinds of error, two different costs
An inspection model makes two kinds of mistake, and they do not cost the same:
| Error | What happens | What it costs |
|---|---|---|
| False reject | a good part is flagged | an inspector's time, or a good part scrapped |
| Missed defect | a defective part passes | whatever a defect costs once it leaves the station: rework downstream, a return, a complaint |
Making the model stricter lowers missed defects and raises false rejects; making it looser does the opposite. Where to set it is a business decision, made from what each error costs on that line.
No model goes live without a stated error rate, measured on parts it was not trained on, and a named person who owns the hard calls. The error rate should be stated for both kinds of error, not as one accuracy figure that a line with few defects makes look high.
The inspector stays in charge
The model proposes; the inspector confirms the hard calls. In practice the model passes the parts it is sure are good, flags the parts it is sure are defective, and sends the uncertain ones to a person. Every decision is recorded: the image, the model's call and the inspector's call.
That record shows quality and the customer how each part was judged, and the inspector's corrections are the images the model learns from next, when the parts, the material or the lighting change.
Safety decisions are not handed to a model. Where a defect could hurt someone, the model can help a person look, but the person decides.
Where the result goes
An inspection result is useful only when it reaches the system that acts on it: a reject gate at the line, the quality record of the batch, or the ERP you already run. Moving a part off the line is the work of our industrial control and automation practice; getting the results into one record the plant trusts is data platforms and analytics.
One project, from footage to a counting model
The clearest case we can describe is a count, not a defect check, but it met the same questions. We built a vision system for a plant that counts the crates stacked on pallets at a station, from one camera above and one at the side.
Every image came from that station: 1,757 for training and 524 held out for testing, split by whole recording, so no test recording was seen in training. In a trial with two crate types left out of training, most of their sides went unfound; the count barely moved, because each column's top crate was still found.
The error is stated per kind, on the held-out images. Of the crate sides labeled there, the model found 93.3 percent, and 83.8 percent of what it marked as a crate side was one. With the stack's layout taken from the labels, so that every miss is the model's, the two cameras together counted all 189 held-out moments exactly; the side camera alone, 96.3 percent.
The cost of each error set the thresholds. People at the station are detected and blacked out before an image is kept, at a lower threshold than counting uses: a missed person means a stored image of someone, a false one only a blacked-out patch. At that setting the model found 89.4 percent of the labeled people or parts of people, and covered 95.5 percent of their pixels.
Where neither camera shows a column plainly, the reading is marked uncertain, never counted as zero. And a retrained model replaces the running one only after a replay of recorded shifts: one retrain that read a recorded shift worse was held back.
How the project runs
The industrial AI practice runs inspection projects in four phases, each priced before it starts: an audit of the decision and the data, images collected and labeled with a model tested on your own parts, first use at one station with a person confirming, and rollout with the model watched and retrained. After each phase you can continue, change course or stop.
Questions about AI visual inspection
What is AI visual inspection?
AI visual inspection uses cameras and a trained model to check parts on a production line and flag defects. It is used for defects that vary in appearance and are hard to describe as a fixed rule. An inspector confirms the uncertain cases.
How many images does an AI inspection model need?
It depends on the part and the defect, so the honest answer comes from an audit of your line. What matters most is that the images come from your own line, at the camera's final position, with enough examples of each defect, labeled by your inspectors.