MVTEC HALCON

AI-powered machine vision automates quality inspection in the pharmaceutical industry

The pharmaceutical company Aspen is improving the quality inspection of filled ampoules with the MVTec HALCON machine vision software and the consulting and technical support services provided by MVTec. With deep learning methods, the company has significantly increased accuracy and efficiency in its automated inspection process within the pharmaceutical industry.
HALCON
Medical Supplies & Pharmaceutical
Blob Analysis
Deep Learning
Matching

How can quality assurance in the pharmaceutical industry be reliably automated?

In the healthcare and pharmaceutical industry, precise quality inspection is essential to ensure consistent product safety. Aspen therefore sought to automate its manual visual checks of medical ampoules. Until recently, employees examined each ampoule individually for foreign particles – a slow, costly, and error-prone approach.

“Our goal was to automate the inspection of ampoules for possible foreign particles. Quality assurance of pharmaceutical products is extremely important. Therefore, it was essential that the new solution matched – or even surpassed – the detection rates of the previous process,” says Mickael Denis, Manager Operationnel Vision Industrielle. Aspen recognized the potential of machine vision. By adopting AI-based deep learning technologies, the company achieved the required detection accuracy.

At the Notre-Dame-de-Bondeville site, ampoules are produced using the BFS (blow, fill, seal) process under clean-room conditions. Although this production method is highly hygienic, foreign particles must still be identified with absolute reliability. To meet strict regulatory requirements, Aspen implemented a solution based on MVTec HALCON, supported by MVTec’s experienced Customer Services team.

Why were MVTec’s software and technical expertise essential for success?

What challenges does MVTec HALCON solve in the automated inspection process?

The new automated inspection process uses twelve industrial cameras that comply with the industry standard GigE Vision. Each ampoule is captured up to 14 times from different angles because foreign particles are often barely visible, may settle on the sides or bottom, and can easily be mistaken for shadows, bubbles, or reflections. Capturing multiple images significantly increases robustness and accuracy.

Image processing takes place on an industrial PC running MVTec HALCON, a standard software for machine vision that offers more than 2,100 operators. Aspen uses HALCON’s deep-learning-based Semantic Segmentation to reliably distinguish harmless bubbles from true contaminants.

In addition to particle detection, the machine vision system analyzes cosmetic defects, verifies fill levels, identifies color deviations, and inspects closure quality. Rule-based technologies such as matching and blob analysis are used for these tasks. They complement deep learning technologies, offering both high robustness as well as the speed required for routine quality inspection tasks – a major step forward in production automation for the pharmaceutical industry.

Ungefüllte und gefüllte Glasampullen als Prüfmuster für die visuelle Qualitätsinspektion.
Ampoules to be tested. (©Aspen)

Why were MVTec’s software and technical expertise essential for success?

This demanding application could not have been implemented successfully without the technical and conceptual expertise of MVTec’s Customer Services team. Due to the high complexity, Aspen collaborated closely with MVTec’s specialists.

“The task was certainly one of the most challenging we have ever faced. This was particularly true when it came to preparing the images for training. We at MVTec were called in to assist with conceptual preparation, process implementation, and documentation,” explains Patrick Ratzinger, Project Manager at MVTec.

His team of experts analyzed, refined, and merged the labeled images to develop a high-performance neural network tailored to Aspen’s needs. Using the MVTec Deep Learning Tool, they prepared datasets made up of defect-free and intentionally manipulated ampoules. Multiple training runs enabled the comparison of different models and improved the network’s robustness.

“It was clear that such a task could only be automated using deep learning technologies. For the implementation – which required a great deal of expertise – we relied on the consulting services provided by MVTec,” adds Vincent Trombetta, Automatic Visual Inspection Expert at Aspen.

The collaboration provided Aspen not only with an advanced machine vision application, but also with essential know-how about data preparation, labeling, and the correct interpretation of deep learning results. Combining MVTec HALCON with MVTec’s technical consulting demonstrates the value of integrating powerful machine vision software with hands-on industry support.
 

What added value does Aspen gain from automated machine vision inspection?

Since implementing the new system, Aspen has benefited from an automated inspection process that combines speed, stability, and precision. Error detection rates have increased significantly, and false-negative results have been substantially reduced. As a result, the company has improved both product quality and overall production efficiency.

This project demonstrates how machine vision and deep learning elevate production automation in the pharmaceutical industry. With MVTec HALCON and expert technical support from MVTec’s Customer Services team, Aspen can continue to scale, validate, and optimize its quality inspection processes – setting a strong example of digital transformation in the healthcare and pharmaceutical industry.

Published on: December 04, 2025

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