Success Story

Machine vision optimizes quality inspection in automotive production

Consistently high quality is an absolute must in automotive production. To ensure that welded connections in body shells meet these standards, DGH has developed an application that automatically inspects them and identifies anomalies. The MVTec HALCON machine vision software and the MVTec Deep Learning Tool ensure fast and precise inspection processes.
HALCON
Automotive
Anomaly Detection
Deep Learning
Inspection

Automotive production places high demands on quality inspection

High quality standards apply in automotive production, in particular to welding processes on the body-in-white. The challenge here is that many different defects can occur. For example, cracks, incomplete weld seams, and irregular welding patterns must be precisely identified. This challenge is addressed by the DGH Group, an automation specialist based in Valladolid, Spain, which was recently integrated into GROUPE ADF. On behalf of a large French automotive group, the DGH Group's team of experts developed an automated system for inspecting welded connections from the metal inert gas welding (MIG welding) and laser welding processes.

Automation of quality inspection with the help of machine vision

The primary aim of the implementation was to achieve a very high quality standard for all weld seams. In addition, the autonomous quality inspection was to bring the fundamental advantages of automation to bear. Namely, higher speed, reliability, accuracy, and clear consistency during the inspection. To achieve these goals, the system works as follows: When a car body reaches the inspection station, the PLC triggers various inspection processes. 2D cameras take photos of the welded connections individually or successively and transmit the images via GigE Vision protocol to the machine vision software, where the processing takes place. The system checks whether anomalies can be detected around the weld seams by reliably checking different welding joints, seams, and spots that have been created using various laser welding processes. The data is then sent to the PLC and the corresponding results are visualized on a screen.

Deep learning enables outstanding recognition rates

The MVTec HALCON machine vision software is at the core of the setup. To reliably detect all defects, the software essentially uses two methods based on deep learning AI technology. First, Instance Segmentation is used to precisely localize the relevant area, i.e., the weld seam, on the captured images. Thanks to deep learning, the method can assign objects to different, trained classes with pixel precision. The next step involves the use of Anomaly Detection technology, which is also based on deep learning. The process uses automated surface inspection to accurately detect all deviations, i.e., defects of any kind. “Anomaly detection had two decisive advantages for us: On the one hand, the detection rates are very high and robust. On the other hand, training the underlying neural networks was simple. This is because mainly “good images” of the welded joints, i.e., images of weld seams without defects, were required to train the deep learning networks. However, a few “defect images” can help find an optimal threshold value to differentiate between good and defect weld seams. Ultimately, we only need a small number of good images. This is very practical, as these are available quickly and easily. Large numbers of images showing defects are much more difficult to organize, not to mention the fact that it is impossible to obtain images of all possible defects. This is where deep learning has a clear advantage,” explains Guillermo Martín, Innovation & Technology Director at DGH.

Deep Learning Tool paves the way for simple labeling and training

Before the neural networks can be trained using deep learning, the images used must be labeled. DGH used the free Deep Learning Tool from MVTec for this task. This allows image data to be easily labeled and then conveniently trained. To do this, DGH first collected images of weld seams and also incorporated the knowledge of its employees. They checked each image and ensured that mainly good images were used for training. The images are then loaded into the Deep Learning Tool, where they are labeled specifically for the Instance Segmentation technology. Thanks to the Smart Label Tool, the user only has to click in the area of the welded joint and the tool automatically frames this segment. This ensures that the Deep Learning Tool only trains on the basis of the relevant areas of the image. After labeling, the image data set is divided, usually in a ratio of 50 percent for training, 25 percent for validation, and 25 percent for testing. Finally, the trained model is saved and loaded into the machine vision software through the Deep Learning Tool's seamless connection to HALCON.

Driving automation forward with machine vision and artificial intelligence

“We have been working successfully with MVTec for over ten years and are therefore familiar with their powerful tools and algorithms. That's why we decided to trust MVTec HALCON for this project as well,” reveals Guillermo Martín. The machine vision software overcomes another challenge and delivers robust detection rates despite reflective metal surfaces and fluctuating lighting conditions. “The first system was put into operation at the car manufacturer's plant in early 2024. After this had been running successfully, we received a new request from the same manufacturer in April 2024 to implement a second system for inspecting welded joints,” says Guillermo Martín happily. The DGH Group has thus achieved all its goals and has been able to reduce its dependence on skilled workers for quality inspection processes and significantly increase the level of automation. Thanks to machine vision and artificial intelligence, defects were demonstrably minimized, and all types of welding defects were detected consistently and reliably.

 

Further articles

Visualize Object Model 3D
Improve your surface-based matching with two helpful features
Do you sometimes have objects, which have rather small symmetry-breaking elements (such as small boreholes on an object)? Does your surface-based 3D matching not find the correct orientation?
Read more
Developers Corner
Deep OCR Interface
Deep OCR recognition training – the next level
HALCON’s Deep OCR is very powerful and can detect and recognize text in various industrial scenes. However, what if you have a special font, or want to read foreign characters? With HALCON 22.05 it is possible to train the recognition model to read s…
Read more
Developers Corner
Fitted primitives distance threshold
Metrology Model – Quality of Fit
"For most applications, the standard parameter values are sufficient." This sentence is often read in the HALCON Solution Guide. But what if the results do not meet your expectations? The Metrology Model allows lightning-fast measurement of geometric…
Read more
Developers Corner
Review of Acquisition Modes
This article gives an overview of HALCON’s image acquisition modes, explaining how continuous, triggered, and synchronous acquisition work, and clarifying common misconceptions for practical applications.
Read more
Developers Corner
Deep OCR – Tips and Tricks
Have you already experienced the performance boost by using Deep OCR compared to the classical rule‑based approaches? In this article, we’ll show you practical tips and tricks to further improve your Deep OCR results.
Read more
Developers Corner
Easy text and code reading with MERLIC standard tools
If you want to build an MVApp that reads for example QR codes or bar codes you can do so with just a few clicks. You can even combine the tools to get all available information printed on a product in different formats without the need for programmin…
Read more
Developers Corner
About MVTec's Heatmap
Imagine you intend to deliver a HALCON deep-learning-based classification application. And you are about to evaluate a trained model. You are therefore looking for feedback about this model, i.e. about its performances, biases, and other possible def…
Read more
Developers Corner
Gabor filter: What is it for?
Gabor filters, which are well known in the realm of time series analyses, can also be used in HALCON for 2D image analysis. They are particularly useful for detecting textures, patterns, and orientations in complex images.
Read more
Developers Corner
Introduction to new sub-pixel feature of bar code reader
Do you have small resolution bar codes to read but don't get any good results? Then please try our new feature – the subpixel bar code reader.
Read more
Developers Corner
Introduction to XYZ-Mappings (part 2)
This technical article continues our introduction to XYZ-mappings. In the last article, we answered the question "What are XYZ-mappings?" and gave a short preview towards "Why is using XYZ-mappings beneficial for many 3D applications?". Today, we wil…
Read more
Developers Corner
Introduction to XYZ-Mappings (part 1)
This technical article explores the benefits of XYZ-mappings in HALCON, showing how they increase speed, flexibility, and ease of use for many 3D applications.
Read more
Developers Corner
Deep learning: Why is the dataset key for a success result?
Deep learning success starts with the dataset: Learn why acquiring high-quality, well-labeled training data is crucial for reliable classification, detection, segmentation, and anomaly detection in your machine vision applications.
Read more
Developers Corner
How to prepare 3D height images for further processing with MERLIC’s standard tools
Learn how to prepare 3D height images in MERLIC for further processing: convert non-byte images to byte images to enable alignment, embossed text reading, and defect detection with standard easyTouch tools.
Read more
Developers Corner
Deflectrometry demo HALCON
Inspection of specular surfaces with deflectometry in HALCON
Inspect flat and curved reflective surfaces quickly and reliably with HALCON deflectometry: detect scratches, dents, and other defects with synchronized image acquisition and flexible image processing.
Read more
Developers Corner
Deep Learning classifier HALCON
Training a deep learning classifier with HALCON on the embedded board Jetson TX2
Learn how to train a deep learning classifier with HALCON on both a PC and an embedded Jetson TX2 board, from image acquisition to model training and inference, for efficient machine vision applications.
Read more
Developers Corner
Add touch input to the HSmartWindowControlWPF
Learn how to easily add touch input, including pinch-to-zoom, to the HSmartWindowControlWPF in HALCON, leveraging WPF’s built-in multi-touch events for intuitive image control.
Read more
Developers Corner
Increasing Speed in Deflectometry Set-ups
Discover three approaches to increase speed in deflectometry setups, from simple software-based synchronization to hardware triggers and FPGA-based real-time control, enabling faster and more precise inspection of reflective surfaces.
Read more
Developers Corner
HDevelop matching assistant speedup greediness
Speeding up shape-based matching with "Greediness"
Learn how the 'Greediness' parameter in shape-based matching balances speed and detection completeness, enabling faster searches while maintaining robust results in HALCON.
Read more
Developers Corner
Best practice for classification and OCR
Discover best practices for setting up classification and OCR in HALCON using the HDevelop OCR Training File Browser – quickly review, correct, and optimize your training data to improve segmentation and classification results.
Read more
Developers Corner
Rejection all classes 1.5
How to use rejection classes in MVTec HALCON
Learn how to handle outlier samples in MVTec HALCON by using rejection classes in MLP classifiers – automatically generate samples outside the training classes to improve classification reliability.
Read more
Developers Corner
MVTec Software