Automated Visual Inspection
Automated visual inspection (AVI) is a set of techniques used to determine whether an image represents a normal ("good") state or an anomalous ("defective") state. AVI assists and improves quality assurance processes commonly found in manufacturing settings. Modern visual inspection uses machine learning and deep learning techniques to produce useful results.
The specific technique you select to automate a visual inspection task depends on several factors. These factors include the amount of training data available for normal and anomalous samples, the number of anomaly classes to recognize, and the type of localization information required for understanding and monitoring predictions.
To perform automated visual inspection, download the Computer Vision Toolbox™ Automated Visual Inspection Library from the Add-On Explorer. For more information on downloading add-ons, see Get and Manage Add-Ons. Some functionality also requires Deep Learning Toolbox™.
Load Training Data
|Ground truth label data|
|Datastore for image data|
|Create training data for scene classification from ground truth|
|Split data into training, validation and testing sets for anomaly detection|
Train Anomaly Detector
|Train fully convolutional data description (FCDD) anomaly detection network|
|Train FastFlow anomaly detection network|
|Train PatchCore anomaly detection network|
|Optimal anomaly threshold for set of anomaly scores and corresponding labels|
Detect Anomalies Using Deep Learning
|Detect anomalies using fully convolutional data description (FCDD) network for anomaly detection|
|Detect anomalies using FastFlow network|
|Detect anomalies using PatchCore network|
|Classify image as normal or anomalous|
|Predict unnormalized anomaly scores|
Visualize and Evaluate Results
|Predict per-pixel anomaly score map|
|Overlay heatmap on image using per-pixel anomaly scores|
|View anomaly detection results|
|Evaluate anomaly detection results against ground truth|
|Anomaly detection metrics|
- Getting Started with Anomaly Detection Using Deep Learning
Anomaly detection using deep learning is an increasingly popular approach to automating visual inspection tasks.