MVTEC HALCON

Beverage industry: HALCON reliably checks bottle cap imprints

Machine vision offers enormous advantages for quality control applications. High accuracy and speed as well as high flexibility and availability are important for practical use. K&S Anlagenbau GmbH has implemented such an application for the beverage industry with the help of the consulting company Computer Vision Solutions. In this application the machine vision software MVTec HALCON is used.
HALCON
Food & Beverage
Blob Analysis
Calibration
Matching

The production of bottles and bottle caps in the beverage industry is highly automated, as large quantities must be produced quickly and reliably. "Our aim is to make automated processes as safe and reliable as possible. This is the lever for being able to operate a process at high speed in the long term. Thus, we rely on standardized tools that allow us to manufacture reproducible products reliably and quickly. Based on machine vision, we have developed a solution for inspecting porcelain bottle caps," says Thomas Kelz, responsible for quality technology at K&S Anlagenbau GmbH.

The company from Lengenwang in Bavaria is developing automation solutions for the electrical, automotive, medical, and consumer goods industries. Together with the consulting firm Computer Vision Solutions Consulting & Research, the company has developed an application for the quality inspection of beverage bottle caps.

Maximum flexibility with a minimum of machine stops for the beverage industrie

The challenge was to implement a quality control system that quickly and reliably detects faults in a fully automated process but is also low-maintenance. Low-maintenance means that the system can quickly and easily be switched to other product types. "Automation only brings decisive added value, if the customer has little effort in maintaining the system," says Dr. Heber. In the newly developed system, quality control is carried out inline. To do this, the camera takes a picture of the bottle cap to be checked. This is then checked using the algorithms of the machine vision software MVTec HALCON.

The challenge with print image control is the variability of the print images on the one hand and the requirement to create a clear operating concept for the system operator on the other hand. Possible print image errors could be, for example, incorrect or out-of-focus colors or imprints that are not completely visible. The central position of the print image on the bottle cap is also evaluated as a quality criterion. "One of the major challenges during implementation was that the number of different-looking print images is theoretically infinite. This applies to both the good, i.e., "OK" prints, and the faulty, i.e., "NOK" prints. Thus, we had to ensure that the software was trained in advance to make the right decision at all times," explains Dr. Heber. For training, the image of an OK print is saved in HALCON. This "good image" serves as a template against which each image is compared during the inspection process. Various parameters in HALCON can be used to set the degree to which deviations are still considered OK.

Graphical user interface and MVTec HALCON as core parts

An important component of the system is the graphical user interface (GUI). With this, the entire system can be overviewed, and changes and configurations of the process can be made.

The requirement for the GUI was that it can dynamically display several different apps, which can be controlled both via the GUI and the PLC. In the finished system, the operator can set various display options, configuration modes, and different user levels. This means that it is also possible to assign rights and thus determine which employees are allowed to carry out which activities. Troubleshooting or adjustments, e.g., if a different print needs to be tested, can also be made via the GUI.

Another core component is MVTec HALCON. HALCON is integrated into the K&S Control software using HDevEngine. "HALCON is the industry standard in the field of image processing software and is not limited to just a few algorithms," explains Dr. Heber. HDevEngine acts as an interpreter designed to dynamically load and execute the machine vision algorithms. It also enables changes to the machine vision processes "on the fly" without having to recompile or recertify the entire application. Furthermore, HDevEngine communicates with the GUI in the background. Operators of the system have little or no contact with it. This is because they operate the system via the GUI they are familiar with.

Machine vision software is perfect for automated processes

The machine vision software HALCON enables high and robust detection rates. It not only includes HDevEngine, but also many image processing methods that are used to check the print images. Matching technologies, classification, and blob analysis are used in the specific application.

The three technologies interact as follows: after the image has been captured by a camera, shape-based matching localizes the print in the image - sub-pixel accurately and in near real-time. To do this, the pre-trained print image is matched with the scanned image. This works even if the print is rotated, scaled, perspectively distorted, partially covered or outside the image, or subject to non-linear lighting fluctuations. Once the print has been found, the next task is classification. Here, too, it is important that the class features have been defined and trained beforehand. In the K&S Anlagenbau plant, classification is used for quality control. Possible errors include color deviations, missing edges, incorrect edges, or structures. Corresponding deviations are segmented and analyzed using blob analysis.

If the machine vision technologies described find an error, this is displayed in the GUI. The corresponding area is highlighted in color. This also allows users to recognize the nature of the defect.

If the imprint is "OK", the bottle cap is processed further.

Bottle cap imprint classified as OK in the machine vision user interface.
The GUI shows that the imprint is "OK".
Bottle cap imprint classified as NOK in the machine vision user interface.
The GUI shows that the imprint is not ok: "NOK".

"However, the scope of the machine vision software goes beyond this. To ensure that the process is as automated as possible, we have embedded the software in the entire system in such a way that it can communicate with other components. If a bottle cap is not printed correctly, HALCON informs the system accordingly and the component is automatically ejected," explains Dr. Heber. The communication protocols OPC-UA and PROFINET enable consistent data exchange between the various components within the system. In this way, full automation can be achieved.

System fulfills requirements for automated quality control

"The feedback we have received from the customer has been very positive. The system runs flawlessly and can be operated highly autonomously," says Dr. Heber. Specifically, the system can test 120 bottle caps per minute.

Published on: December 21, 2023

Weitere Stories

MVTec HALCON product icon
Projektion der von einer Kamera erkannten Pupillenkoordinaten auf das Bild einer zweiten Kamera zur exakten Bestimmung der Glasposition.
Image Processing Automates Eyeglass Fitting for Rodenstock
Imagine that you wear varifocal glasses and need new ones. You go to an optometrist and, without time-consuming adaptations, measuring or trying on frame after frame, you look at yourself in a mirror and - voila! - your chosen frame is on your nose.
Show full Story
HALCON
Glass, Metal, Paper, Foil & Printing
Classification
Matching
Measuring
MVTec HALCON product icon
Visualisierung eines People-Counting-Systems am Gebäudeeingang mit 3D-Erfassungsbereich, Ein- und Ausgangsmarkierungen sowie Anzeige zur aktuellen Personenzahl zur sicheren Zutrittskontrolle.
Simple and reliable control of the number of persons within a building with MVTec HALCON
Strelen Control Systems GmbH is a Certified Integration Partner of MVTec with seat in Büttelborn, close to Darmstadt, Germany. The solutions developed by Strelen are suitable for the inspection and analysis as well as for the automation and regulatio…
Show full Story
HALCON
Security & Surveillance
Blob Analysis
Morphology
MVTec HALCON product icon
Battery laser welding system used in automated battery production with integrated machine vision inspection.
Full quality control with HALCON´s deep learning functions
One of the key challenges in automated battery production is achieving stable welds without damaging the housing. To meet strict automotive quality standards while reducing costs, Manz AG is developing inline inspection systems that enable full proce…
Show full Story
HALCON
Battery Production
Electric Components
Machinery
Anomaly Detection
Deep Learning
Inspection
MVTec HALCON product icon
Camera test chart with line patterns and a Siemens star used for measuring resolution, contrast, and optical performance.
DCTau: A photographer's tool for testing digital cameras based on HALCON
DCTau by Anders Uschold, Munich, provides a standardized test for evaluating digital cameras with minimal operator input. Designed for both beginners and professionals, it measures resolution, contrast, noise, sharpening, distortion, and brightness l…
Show full Story
HALCON
Education, Research & Science
Measuring
MVTec HALCON product icon
HERON - Middleware for Image Retrieval Using Graphical Features Extracted by HALCON
The interdisciplinary HERON project aims to find images in digital libraries or large archives without detailed domain knowledge. Initially applied to heraldry, the methods can also be used in medical imaging or trademark collections. HERON uses inno…
Show full Story
HALCON
Education, Research & Science
Classification
Filtering
Matching
MVTec HALCON product icon
Support of Intelligent Rooms by Image Processing
In recent years, rooms with intelligence are studied. This kind of rooms is becoming important not only for medical or welfare use, but also at offices or ordinary houses. Obviously, the man-machine interface to communicate human intention is a subst…
Show full Story
HALCON
Education, Research & Science
Classification
Filtering
MVTec HALCON product icon
Machine Vision Solves "Needle-in-a-haystack" Problem for Small Parts Manufacturer, Developed by Data Systems
Data Systems solves the “needle-in-a-haystack” challenge for a small parts manufacturer using HALCON-based machine vision. The system automatically inspects, sorts, and classifies over 300,000 part variations, checking size, type, coating, and laser…
Show full Story
HALCON
Machinery
Packaging & Logistics
Matching
OCR
MVTec HALCON product icon
Package label with barcode and printed text used for automated barcode reading and OCR.
Machine Vision Speeds Package Bar Code Reading at Quelle GmbH
At Quelle GmbH's logistics center in Leipzig, 80,000 packages are processed daily. To enhance efficiency, the company employs a combined machine vision system with barcode reading and OCR. Utilizing Baumer i-Cam 108 cameras and MVTec's HALCON softwar…
Show full Story
HALCON
Machinery
Packaging & Logistics
Bar Code & 2D Code Reading
OCR
MVTec HALCON product icon
Manual handling of a helicopter on a ship deck under rough sea conditions.
Automatic Helicopter Handling System from FHS Förder- und Hebesysteme GmbH
FHS Förder- und Hebesysteme GmbH is a leading supplier of defense technology and naval technology. The company has a long experience and competences in development and production of systems and machines with electrical hydraulical drives and control…
Show full Story
HALCON
Robotics
Calibration
Measuring
MVTec HALCON product icon
The Presetter and Measuring Machine SATURN from Zoller – Measurement of Tools with HALCON
The ZOLLER SATURN measuring machine employs HALCON for precise tool measurement in the micrometer range. Subpixel algorithms automatically extract geometric properties from the tool shape. Camera calibration ensures consistent precision across the en…
Show full Story
HALCON
Machinery
Calibration
Measuring
MVTec Software