Skip to content

Guide · Anomaly detection · Few-shot · Edge

AI Visual Inspection, the complete guide.

How industrial cameras and on-device AI detect defects, recognise and classify parts, and measure feature position on a production line, in real time, from as few as 20 good samples.

AI visual inspection uses an industrial camera, controlled lighting and on-device artificial intelligence to detect defects, recognise and classify parts, and measure feature position on a production line in real time. Modern systems train on as few as 20 good samples, run at the edge without sending data to the cloud, and reach 99%+ accuracy at tens of milliseconds per part.

What is AI visual inspection?

AI visual inspection is the use of machine-learning models, running on images from an industrial camera, to make an automated quality decision about a part on a production line. Instead of a human operator judging each part, the system captures a triggered image, analyses it, and returns a pass or fail result with a confidence score, fast enough to keep up with line speed.

A complete system has four elements working together: a camera and lens sized to the part, controlled lighting that removes shadow and glare, a compute unit that runs the model, and inspection software that turns the model output into a signal the line can act on. Combined into one industrial unit, the system installs at the inspection point without a separate vision-engineering project.

How does AI inspection differ from rule-based machine vision?

Rule-based machine vision follows fixed, hand-written rules and only works when the feature is well-defined and the lighting is stable. AI inspection instead learns the appearance of good (and, where useful, bad) parts from examples, so it handles variation, rare defects and complex surfaces that no fixed rule can describe.

DimensionRule-based visionAI inspection
How it worksHand-written rules and thresholdsLearns from image examples
Best forBarcodes, fixed dimensions, presenceSurface defects, rare anomalies, classification
Handles variationPoorly, needs stable conditionsWell, tolerates natural variation
Rare / unseen defectsMisses what no rule describesFlags deviation from the norm
SetupProgramming per featureTraining on sample images

The two are complementary. A common 2024–2026 architecture pairs a rule-based pre-filter that catches the obvious cases with an AI second stage that classifies the grey zone, the borderline or rare defects a rule cannot express.

What is anomaly detection in visual inspection?

Anomaly detection learns only the appearance of good parts and flags anything that deviates from that learned population. It does not need examples of every possible defect, which matters because in real production, defects are rare and you rarely have a labelled image of each failure mode before it happens. It is the right tool when defects are hard to collect in advance, when new failure modes appear, and when the cost of missing an unusual defect is high.

What is few-shot learning in machine vision?

Few-shot learning trains a working inspection model from a very small number of images, often around 20, instead of the thousands a traditional deep-learning model needs. That is the difference between a system usable on day one and one that needs a months-long data campaign. Combined with anomaly detection, "train on 20 good parts, flag the rest", it adapts to a new part quickly and still catches the defect nobody photographed in advance.

What is defect detection?

Defect detection finds known and unknown flaws on a part: surface defects such as scratches and contamination, structural damage such as cracks and fractures, and print or colour faults. It can run unsupervised (trained on good parts only, flagging anything abnormal) or supervised (trained on a small labelled set to name the specific defect type). The strongest systems offer both.

What is part recognition and classification?

Part recognition identifies which part or variant the camera is seeing, and classification assigns it to the correct category. On a mixed line this routes each part correctly, for example, telling a robot which program to run, without a manual changeover. It also covers presence and assembly verification, and barcode, label and OCR reading to tie the physical part to its record.

What is position and feature detection?

Position detection measures where a feature sits on a part, the coordinates of a hole, a protrusion or an edge, and feature detection locates and measures those features to a tolerance, in millimetres. Because the output is a number, not just a verdict, it feeds statistical process control.

A slow drift in a hole position shows up in the trend long before it produces a scrap part, so the line can be corrected upstream. This is why many deployments describe their goal as quality control and process improvement, not inspection alone.

Why run inspection on the edge instead of the cloud?

Edge inference runs the model on a compute unit at the line, so the image is analysed and the decision is made locally, in real time. Line-speed decisions cannot wait on network latency, and most factories will not send raw production imagery off site.

FactorEdge (on-device)Cloud
LatencyMilliseconds, deterministicNetwork-dependent, variable
Data privacyImages stay in the factoryImages leave the site
UptimeRuns even if the internet is downNeeds a live connection
Line integrationDirect PLC signallingExtra hop and buffering

What hardware does a vision inspection unit need?

A vision unit needs four matched components. Matching them to each other is what separates a reliable installation from one that drifts with line conditions. A global-shutter camera matters on moving lines, and lighting is often the single biggest factor in reliability.

ComponentPurposeKey choice
Camera and lensCapture the part sharplyResolution, global shutter, lens mount
LightingRemove shadow and glareDiffuse / directional / coaxial
Edge computeRun the model in real timeGPU-class edge module, fanless
EnclosureSurvive the environmentIP rating, temperature range, mounting

How does a vision unit integrate with the line?

The unit receives a trigger for each part, makes its decision, and sends a pass/fail result to the PLC over an industrial protocol or discrete I/O. A single cable to the PLC and one trigger source is enough to add inspection to most stations.

Integration pointMethod
TriggerEncoder pulse, photoelectric sensor, or fixed interval
Line control (PLC)PROFINET, EtherNet/IP, Modbus TCP, EtherCAT, OPC UA
Discrete signallingDigital inputs/outputs, e.g. reject actuation
Robot cellProgram selection based on the recognition result
MonitoringWeb dashboard for remote status and results

What accuracy and speed can AI inspection reach?

Modern AI inspection routinely reaches 99%+ accuracy at tens of milliseconds per part, but the numbers that matter are measured on your part. Two metrics tell most of the story: the F1-score and the false-negative rate.

MetricWhat it meansWhy it matters
F1-scoreBalance of precision and recallOverall inspection quality
False-negative rateReal defects that passEscape risk to the customer
False-positive rateGood parts rejectedWasted yield and rework
Cycle timeMilliseconds per partMust keep up with line speed
As a real reference point, a delivered high-speed cap-inspection cell using Adente Vision reached a 99.65% F1-score, a 0.69% false-negative rate and roughly 30 ms per part, with the model trained in under 48 hours. Any vendor quoting only a headline accuracy without the false-negative rate is telling you half the story.

How much data does AI inspection need to train?

An anomaly-based, few-shot system can start from around 20 good reference images, while a supervised classifier needs a small labelled set for each defect class it must name. The old assumption of thousands of labelled images is specific to traditional supervised deep learning. Because the data burden is small, the bottleneck moves to lighting and fixturing, a clean, repeatable image is now the harder half of the job.

How is a vision unit installed on a line?

A pre-configured unit installs in roughly 30 minutes: mount the enclosure at the inspection point, aim the camera using the on-device preview, set the mode or tolerance, and wire the trigger and PLC. When the unit weighs under nine kilograms, one person handles the whole installation, and the customer's own service team owns the deployment from the first bolt to the first inspected part.

Which industries use AI visual inspection?

AI visual inspection is used across discrete manufacturing wherever quality is judged visually and line speed makes manual inspection unreliable. The strongest fit is any part with surface defects, rare anomalies, variant mixes or feature-position tolerances.

IndustryTypical inspection
Automotive partsSurface defects, weld inspection, assembly presence, part recognition
Electronics / PCBSolder joint quality, missing components, orientation
Food and beverageFill level, label placement, cap seal, foreign-object detection
Pharmaceutical packagingBlister completeness, label OCR, batch verification
Plastics and injectionShort-shot, flash, dimensional checks, colour uniformity
Metal stamping / machiningBurr, deformation, scratch inspection, dimensional gauging
GlassPosition of transparent and coated panels, edge and face location

Off-the-shelf vs software-only vs integrated: how to choose

There are three ways to buy machine vision, and the right choice depends on how custom your problem is and who will own the result. The key question is ownership: when one team designs the camera, the compute and the model together, there is no third-party camera to adapt to and no vendor lock-in on the AI.

ApproachWhat you getTrade-off
Off-the-shelf boxFixed hardware + licensed AIYou adapt your problem to the box
Software-onlyA smart model, no hardwareYou still buy cameras and hire an integrator
System integratorThird-party parts assembledBespoke, but nobody else can service it
Integrated in-house unitCamera, compute and model built togetherPurpose-fit, single owner of the stack

How does Adente Vision work?

Adente Vision is an edge-AI inspection unit that combines the camera, lighting, edge compute and inspection software in a single industrial enclosure, pre-configured for the part class and installed on the line in about thirty minutes. It detects defective parts, recognises and classifies the part it sees, and locates a hole or feature to the millimetre, for quality control and process improvement. The camera, edge hardware and AI model are built in-house, so there is no third-party camera to adapt to and images never leave the line.

ParameterValue
Inspection modesAnomaly · Defect · Part · Quality
Training setFrom 20 reference images
Measured latency~30 ms per part (field)
ConnectivityPROFINET · EtherNet/IP · Modbus TCP · EtherCAT · OPC UA
Enclosure variantsAV-S100 (IP54) · AV-W100 (IP65) · AV-H100 (0–65 °C) · AV-X100 (IP66 ATEX)
StandardsCE · IP54 · IEC

What makes Adente Vision different?

Adente Vision is differentiated by owning the full stack, hardware, software and AI, and by leading with proof rather than adjectives:

  • Anomaly / rare-defect / few-shot focus: trains on good parts only, from 20 images.
  • End-to-end in-house: camera, edge hardware, software and AI by one team, no lock-in.
  • On-device, real-time: ~30 ms per part, data stays in the factory, no cloud needed.
  • Proven field metrics: 99.65% F1, 0.69% false-negative, trained in under 48 hours.
  • Fast to deploy: installed in about 30 minutes by the customer’s service team.
  • Environment variants: standard, washdown, high-temperature and ATEX, same software.

Frequently asked questions

What is AI visual inspection?

AI visual inspection uses an industrial camera, controlled lighting and a machine-learning model to make an automated quality decision about a part on a production line, detecting defects, recognising and classifying parts, and measuring feature position in real time, with a confidence score on every cycle.

How is AI inspection different from rule-based machine vision?

Rule-based vision follows fixed hand-written rules and works only when features are well-defined and lighting is stable. AI inspection learns the appearance of good and bad parts from examples, so it handles variation, complex surfaces and rare defects. The two are often combined: a rule-based pre-filter plus an AI second stage.

What is anomaly detection in inspection?

Anomaly detection trains only on good parts and flags anything that deviates from that learned population. It does not need examples of every defect, which makes it ideal for rare or previously unseen failure modes where labelled defect images are not available in advance.

What is few-shot learning in machine vision?

Few-shot learning trains a working inspection model from a very small number of images, often around 20, instead of the thousands a traditional deep-learning model needs. It allows same-day deployment and lets a new part or variant be added with a handful of reference images.

How much training data does AI inspection need?

An anomaly-based, few-shot system can start from about 20 good reference images. A supervised classifier needs a small labelled set for each defect class it must name. Modern methods do not require the thousands of labelled images associated with traditional supervised deep learning.

Why run inspection on the edge instead of the cloud?

Edge inference runs the model on a compute unit at the line, giving millisecond, deterministic decisions, keeping production images inside the factory, and working even without an internet connection. Line-speed inspection cannot depend on network latency.

What accuracy can AI visual inspection achieve?

Modern systems routinely reach 99%+ accuracy at tens of milliseconds per part. The meaningful metrics are the F1-score and the false-negative rate, measured on your part. As a reference, a delivered cap-inspection cell reached a 99.65% F1-score and a 0.69% false-negative rate at ~30 ms per part.

How fast can a vision unit be installed?

A unit that ships pre-configured for the part class can be installed in about 30 minutes: mount the enclosure, aim the camera using the on-device preview, set the mode or tolerance, and wire the trigger and PLC.

Which industries use AI visual inspection?

Automotive, electronics and PCB, food and beverage, pharmaceutical packaging, plastics and injection moulding, metal stamping and machining, and glass handling. The common thread is any part with surface defects, rare anomalies, variant mixes or feature-position tolerances.

Keep reading

See Adente Vision on your line

Send a sample part or a video of your line, and we commission a unit on it before quoting. No integration project, no vision engineer required.