conduct automated visual inspections for defect detection in industrial applications
visual inspection is the image-based inspection of parts where a camera scans the part under test for both failures and quality defects. automated inspection and defect detection are critical for high-throughput quality control in production systems. visual inspection systems with high-resolution cameras efficiently detect microscale or even nanoscale defects that are difficult for human eyes to pick up. hence, they are widely adopted in many industries for detection of flaws on manufactured surfaces such as metallic rails, semiconductor wafers, and contact lenses.
with matlab® and the computer vision toolbox™ , you can develop visual inspection systems.. it supports image acquisition, algorithm development, and deployment. interactive and easy-to-use apps in matlab help users explore, iterate, and automate algorithms to improve productivity. these capabilities find use in many industrial applications.
for example, automotive part manufacturer musashi seimitsu industry’s manually operated visual inspection system inspected about 1.3 million parts per month. using matlab to develop deep learning–based approaches to detect and localize different types of anomalies, it built an automated visual inspection system for inspecting bevel gears. the updated approach is expected to considerably reduce the company’s workload as well as its costs.
similarly, built a robust visual inspection artificial intelligence (ai) model for automatically detecting any defects in multiple aircraft components to ensure its airplanes have no defect before entering service. using the matlab environment simplified the process of interactively prototyping and testing for defects in a short amount of time.
the defect detection process can be broken down into three main stages: data preparation, ai modeling, and deployment.
data preparation
data comes from multiple sources and is usually unstructured and noisy, making data preparation and management difficult and time-consuming. preprocessing images in the dataset will result in higher accuracy in detecting anomalies. matlab has several apps to support various preprocessing techniques. for example, the app lets you explore various algorithms to register misaligned images, making it easier for ai models to detect defects.
matlab provides automation capabilities to accelerate the labeling process. for example, the app can apply custom semantic segmentation or object detection algorithms to label regions or objects in an image or video frames. for datasets other than images, matlab provides the and apps for labeling audio and signal datasets, respectively.
ai modeling
ai techniques are widely used for classification and prediction as part of defect detection. within the matlab environment, you have direct access to common algorithms used for classification and prediction, from regression, to deep networks, to clustering.
when applying deep learning for classification tasks, there are two approaches. one approach is to build and train a deep network from scratch. the other is to adjust and fine-tune a pretrained neural network, also known as . both approaches are easy to implement in matlab.
matlab provides the app, which lets you build, visualize, edit, and train deep learning networks. you can also analyze the network to ensure that the network architecture is defined correctly and detect problems before training.
in matlab, you can import networks and network architectures from tensorflow™-keras, from caffe, and from and to the onnx™ model format. you can use these pretrained networks and edit them for transfer learning.
deployment
deep learning models must be incorporated into a larger system to be useful. matlab offers a code generation framework that allows models developed in matlab to be deployed anywhere, without having to rewrite the original model. this gives you the ability to test and deploy the model within an entire system.
matlab enables you to deploy your deep learning networks to various embedded hardware platforms, such as nvidia® gpus, intel® and arm® cpus, and xilinx® and intel socs and fpgas. with the help of mathworks tools, you can explore and target embedded hardware easily.
examples and how to
software reference
see also: matlab for image processing and computer vision, deep learning toolbox, pattern recognition, computer vision, manufacturing analytics