MVTEC HALCON

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 machine vision solution that automatically reads and verifies printed character codes using OCR.
HALCON
Medical Supplies & Pharmaceutical
Bar Code & 2D Code Reading
OCR

At the core of the application is HALCON, the standard machine vision software from MVTec, which enables efficient visual inspection and significantly improves product quality.

Why is automated visual inspection essential in the pharmaceutical industry?

Production processes in the pharmaceutical industry are governed by Good Manufacturing Practice (GMP) guidelines, which demand consistently high quality standards. These regulations impose strict requirements on documentation and the inspection process.
The global healthcare and food company H&H Group is directly affected by these requirements. Packaging for medical and cosmetic products must be clearly and correctly labeled with information such as batch number, manufacturing date, and expiration date. Only accurate and complete labeling ensures traceability, safety, and regulatory compliance, making reliable inspection indispensable before products leave the factory.

What risks arise from manual inspection processes?

At H&H Group, label inspection was previously carried out entirely manually. Due to high production volumes and fast cycle times, checks were often performed only on a random basis. As a result, incorrectly labeled products occasionally reached the market, leading to complaints, financial losses, and reputational damage.

To improve labeling reliability and efficiency, the inspection process needed to be automated. H&H Group therefore commissioned Shenzhen Jiangrun Xuneng Technology, a specialist in machine vision and AI-based software frameworks for industrial applications.

How does machine vision automate the OCR inspection process?

Jiangrun developed a machine vision platform that fully automates the visual inspection of printed labels. Using modern optical character recognition, alphanumeric codes are read and verified automatically.
The application posed several challenges: encrypted codes, varying font sizes, offset printing positions, blurred or poorly printed characters, and high throughput requirements. In addition, the fast cycle time of the production line requires OCR algorithms to operate with both high speed and accuracy, supported by robust image preprocessing.

How does HALCON support precise character recognition?

These complex requirements are addressed using HALCON, which forms the heart of Jiangrun’s machine vision solution. HALCON algorithms handle image pre- and post-processing as well as the precise identification and localization of characters.
The software first detects the background and determines a reference line to locate the characters accurately. A defined region of interest (ROI) is then used to recognize and verify information such as batch numbers or expiration dates. By comparing detected characters with reference data, labeling errors can be reliably identified.

What benefits does dynamic OCR deliver in production?

With HALCON, Jiangrun was able to shorten project timelines, reduce development and operating costs, and improve implementation efficiency. Dynamic OCR runs with high stability and processing speed, while new product types, markings, or fonts can be integrated flexibly.
For the end customer, H&H Group, the automated inspection process eliminates time-consuming manual work, increases efficiency through automation, and ensures consistently high product quality. As a result, complaints are minimized and the brand image is strengthened.

What comes next for machine vision applications?

Following the project’s success, Jiangrun plans to implement additional machine vision software applications based on HALCON. Standardized frameworks enable complex image processing projects to be realized more efficiently across various industries, supported by close technical collaboration and expertise from MVTec.

Published on: February 10, 2026

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