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

Further Success Stories

MVTec HALCON product icon
Warehouse where cheese wheels age during the ripening process
Revolutionizing Cheese Production with AI and Machine Vision
The food industry is experiencing a transformative shift in quality control, due in part to advances in artificial intelligence (AI). When combined with rule-based machine vision, AI is enabling automation of processes that were previously impossible…
Show full Story
HALCON
Food & Beverage
Robotics
Anomaly Detection
Deep Learning
MVTec HALCON product icon
Dynamic OCR inspection with HALCON ensures maximum product quality
In the pharmaceutical industry, strict compliance regulations require medical product packaging to be correctly labeled before delivery. To meet these requirements, the Chinese company Shenzhen Jiangrun Xuneng Technology has developed a powerful mach…
Show full Story
HALCON
Medical Supplies & Pharmaceutical
Bar Code & 2D Code Reading
OCR
MVTec HALCON product icon
University of Paderborn, Heinz Nixdorf Institute
The Heinz Nixdorf Institute (HNI) joined the MVTec on Campus program in 2022. The University of Paderborn is a renowned research and educational institution specializing in the field of computer science and its applications in the context of digital…
Show full Story
HALCON
Robotics
Education, Research & Science
MVTec HALCON product icon
Intelligent Image Recognition for Automotive Logistics
An intelligent, database-based image recognition system supports order picking in automotive logistics. It shows staff the correct component, uses cameras to verify that packaging is ready for shipment, and enables seamless documentation. The solutio…
Show full Story
HALCON
Automotive
Packaging & Logistics
Object Detection
MVTec HALCON product icon
Line-scan vision system diagram used for inspecting printed materials with defect detection along a conveyor.
Industrial Inspection: Line-scan-based vision system tackles color print inspection - Daheng Image Vision
Daheng Image Vision uses a line-scan vision system with two Teledyne DALSA cameras and MVTec HALCON to inspect color prints on conveyor belts at 300 m/min. The system reliably detects ink spots, embossing errors, and misregistration, enabling compreh…
Show full Story
HALCON
Glass, Metal, Paper, Foil & Printing
Alignment
Classification
Matching
MVTec HALCON product icon
X-ray film dosimeter badges and opened cassettes with different metal filters inspected by a machine vision system.
Vision System Inspects X-ray Dosimeter Badges – Helmholtz-Zentrum
Helmholtz-Zentrum Munich uses HALCON to fully automate the evaluation of approximately 120,000 X-ray dosimeter films per month. Optical density, film type, and dosimeter numbers are precisely captured, and radiation sources are analyzed. The system s…
Show full Story
HALCON
Medical Supplies & Pharmaceutical
Calibration
Filtering
Matching
Measuring
OCR
MVTec HALCON product icon
Plastic rings on a conveyor used for automated machine vision inspection.
Closing the Ring – NP Plastics
NP Plastics in the Netherlands manufactures small plastic rings used in binder closing mechanisms. To increase throughput and improve quality, the company deployed a machine vision system with two AVT FireWire cameras, LED illumination, and HALCON so…
Show full Story
HALCON
Glass, Metal, Paper, Foil & Printing
Blob Analysis
Measuring
MVTec HALCON product icon
Workflow der Produktion zylindrischer Lithium-Ionen-Batterien mit verteilten Sensorsystemen und zentraler Deep-Learning-Auswertung mit MVTec HALCON.
MVTec HALCON’s deep learning helps Panasonic Energy to propel automotive battery production
Panasonic Energy manufactures automotive batteries, for which demand is increasing worldwide, at multiple sites in Japan and North America. The company recently implemented MVTec HALCON’s deep learning technologies on a large scale at its Kansas plan…
Show full Story
HALCON
Battery Production
Automotive
Deep Learning
Inspection
MVTec HALCON product icon
Advancing machine vision education at Reutlingen University
At Reutlingen University, Professor Arnd Buschhaus has been integrating MVTec HALCON into the teaching curriculum since 2018. HALCON is used extensively in courses related to robotics and machine vision, providing students with practical experience i…
Show full Story
Education, Research & Science
3D Vision
Blob Analysis
Classification
MVTec HALCON product icon
Robotic welding cell inspecting car body weld seams using machine vision.
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 HALCO…
Show full Story
HALCON
Automotive
Anomaly Detection
Deep Learning
Inspection
MVTec HALCON product icon
High-speed battery inspection using machine vision.
Machine Vision automates and optimizes battery inspection
A variety of defects can occur during battery production. Averna has developed a method for the automated inspection of batteries that reliably detects all conceivable defects. Here, the machine vision software MVTec HALCON plays a key role.
Show full Story
HALCON
Battery Production
Blob Analysis
Inspection
MVTec HALCON product icon
Automated robot cell handling vaccine vials with machine vision.
Machine Vision automates vaccine production
A global company needed to quickly ramp up vaccine production. Goldfuß engineering GmbH and SIMON IBV GmbH developed a robot-based solution for loading and unloading trolleys with the vaccine vials. The machine vision software HALCON ensures the seam…
Show full Story
HALCON
Robotics
Medical Supplies & Pharmaceutical
3D Vision
MVTec HALCON product icon
Micromechanical part measured with machine vision for high-precision inspection.
Machine vision improves the measuring process of precision and micro components
The precise inspection of very small precision components, for example in watchmaking, is a challenge. Petitpierre, the Swiss specialist for high-precision technology, has developed sophisticated applications with which micromechanical components can…
Show full Story
HALCON
Matching
Measuring
MVTec HALCON product icon
Industrial robots performing laser welding on battery cells guided by machine vision.
Machine vision accelerates battery production
High speed, precision, and reliability: These are the determining factors for battery production. To meet the rapidly growing demand for batteries, companies are developing increasingly efficient production processes. Laserax has developed a new syst…
Show full Story
HALCON
Battery Production
3D Calibration
Calibration
Matching
MVTec HALCON product icon
Robotic manufacturing cell assembling satellite panels with optical solar reflectors using machine vision.
Seeing robots process large work area with high precision
The automation specialist AKEOPLUS has developed an innovative robotic cell for the production of satellite panels at the global space manufacturer Thales Alenia Space. The special feature: robots place the components with high absolute accuracy to a…
Show full Story
HALCON
Robotics
3D Vision
Matching
MVTec HALCON product icon
Students and researchers using a robot with machine vision in a university lab to demonstrate the impact of MVTec HALCON on education and research.
Technical University of Applied Sciences Würzburg-Schweinfurt
At Technical University of Applied Sciences Würzburg-Schweinfurt (THWS), Professor Christian Zirkelbach is teaching robotics and machine vision at Faculty of Applied Natural Sciences and Humanities. He has integrated advanced machine vision tools int…
Show full Story
HALCON
Robotics
Education, Research & Science
3D Vision
Deep Learning
MVTec HALCON product icon
Aluminum bottles on a production line identified by OCR using machine vision for automated quality control.
Empty bottle? Not with Deep OCR
To identify products quickly and reliably, even in difficult circumstances, machine vision has proven its worth. The company Visione Artificiale also relies on machine vision for its system to trace aluminum bottles during production. Within this sys…
Show full Story
HALCON
Food & Beverage
OCR
MVTec HALCON product icon
Operating personnel using the PackCheck machine vision solution for quality control in food packaging production.
Machine vision for every taste
The Dutch company PackCheck BV ensures packaging quality in the food industry with a modular solution. Part of the solution is the machine vision software HALCON from MVTec Software GmbH. This enables the company to increase the efficiency of packagi…
Show full Story
HALCON
Food & Beverage
Bar Code & 2D Code Reading
Blob Analysis
Matching
OCR
MVTec HALCON product icon
Hand-eye calibration enabling precise alignment between camera and robot for accurate gripping of accessory bags.
Perfectly positioned plastic bags – with classic machine vision and deep learning
Consistently automated pick-and-place activities require the reliable gripping of differently shaped and translucent objects. TEKVISA has implemented a sophisticated application that enables reliable gripping even with complex surfaces with the help…
Show full Story
HALCON
Robotics
Deep Learning
MVTec HALCON product icon
Fully automated packaging inspection system using machine vision for inline quality control in food packaging.
Deep learning detects defects in the food industry
Automation specialist INNDEO has developed a sophisticated automation solution for quality control in the packaging industry. Thanks to machine vision and deep learning technologies, high speeds and defect detection rates are no longer a problem.
Show full Story
HALCON
Food & Beverage
Deep Learning
OCR
MVTec Software