Introduction
In the pharmaceutical and healthcare industries, the physical integrity of capsule formulations constitutes a critical aspect of product quality control. Whether applied to prescription medications or dietary supplements, the presence of defects in a capsule’s appearance not only compromises product aesthetic consistency but also directly impacts dosage accuracy and patient safety. Consequently, for manufacturers, establishing an effective visual inspection machine for capsules is an indispensable measure for ensuring both product regulatory compliance and brand reputation.
As production speeds continue to accelerate, the current throughput of certain production lines has exceeded 100,000 capsules per hour. Consequently, traditional manual visual inspection methods are increasingly unable to meet established standards for efficiency and stability. In response, automatic capsule inspection systems have progressively become standard equipment on production lines. These systems integrate advanced optical imaging and sensing technologies to identify a wide range of visual and structural defects, even while operating at high speeds. This article will explore the fundamental principles underlying such systems, their primary inspection capabilities, and their practical value in modern manufacturing environments.

What Are Common Capsule Defects and Why Do They Happen?
In the capsule manufacturing process, determining whether a specific product unit is “defective” requires a comprehensive assessment across two dimensions: appearance and content. This primarily involves evaluating whether the capsule’s shape, dimensions, and color, as well as the condition of its internal filling material, deviate from established standards.
The occurrence of such defects is typically closely linked to equipment operating conditions, raw material characteristics, and the production environment. For instance, mechanical vibrations, mold wear, or alignment deviations during high-speed filling operations may result in unstable capsule formation or fluctuations in fill weight. Conversely, improper control of environmental humidity can cause capsule shells to absorb moisture, leading to softening and deformation, or cause the internal contents to clump or deteriorate.
Furthermore, factors such as poor powder flowability or electrostatic adhesion of raw materials can also lead to uneven fill weights or the inadvertent inclusion of foreign matter. Understanding the specific types and root causes of these defects is a prerequisite for effectively configuring inspection systems and optimizing production processes.

Structural and Appearance Flaws in Hard Capsules
Hard capsules, hollow capsules composed of a cap and a body, which are primarily used to enclose powdered or granular contents. The interaction between mechanical operational states and material properties during the manufacturing process frequently gives rise to specific types of visual and structural defects. These defects primarily fall into the following categories:
Indentation and Crushing
This type of defect typically occurs at the capsule’s “joining station”—the stage where the cap and body are pushed together to form a sealed unit. If the mechanical pressure at this station is set excessively high, or if the capsule shells lose moisture content due to low environmental humidity, the gelatin or plant-based shell materials may become brittle and rigid. Consequently, when subjected to pressure, they become prone to localized indentation or even fragmentation. Such defects not only compromise the product’s visual appearance but may also lead to leakage of the contents or failure during subsequent filling operations.
Telescoping
“Telescoping” refers to a misalignment between the capsule cap and body during the joining process, preventing them from nesting correctly. This results in a skewed, jammed, or partially exposed state. This issue is frequently caused by mechanical calibration deviations within the filling machine, such as track misalignment or improper positioning. Additionally, if the body section is overfilled or the contents are piled too high, this can obstruct the proper closure of the cap, leading to a high incidence of telescoping defects.
Length Anomalies (Overlength or Underlength)
Dimensional deviations within the capsule segments themselves typically originate from cutting errors during the capsule shell manufacturing stage. When the cutting blades within the production equipment become dull after prolonged use, or when operational precision declines due to mechanical wear, the cut capsule bodies or caps may exhibit lengths that fall outside the established tolerance range. These issues exist prior to the commencement of the filling process and are classified as “incoming material defects.”
Scratches and Abrasion
The occurrence of fine scratches or localized abrasion on the capsule surface is most common during the “demolding” process. During manufacturing, mechanical “demolding grippers” are responsible for extracting the newly formed capsule shells from their molds; if these grippers are misaligned or exert uneven gripping force, they may leave scratches or friction marks on the capsule surface. While such defects may not necessarily compromise the quality of the capsule’s contents, they do impair the visual consistency of the product and constitute a critical parameter within the visual inspection process.
Color and Printing Discrepancies
The color of a capsule and the content printed on its surface serve as crucial visual cues for users to identify the medication and verify the dosage. They also directly impact the product’s distinctiveness within the retail market. For the majority of oral solid dosage forms, visual consistency in appearance constitutes a fundamental prerequisite for product quality. Consequently, color deviations and printing defects are typically designated as critical parameters during visual inspection.
Color Deviations
Deviations in capsule color are typically linked to the control of the coloring process and the batch-to-batch consistency of raw materials. For instance, the mixing of colorants from different batches, or the uneven dispersion of coloring agents within the gelatin or plant-based capsule shells, can result in the capsule’s hue deviating from the established standard. Furthermore, if finished products are subjected to prolonged exposure to high temperatures, high humidity, or intense ultraviolet radiation, the capsule shells may undergo fading or discoloration, thereby compromising the visual consistency of the product.
Printing Defects
The text or graphic identifiers displayed on the surface of capsules are predominantly applied through ink-based printing methods. The occurrence of printing defects is primarily attributed to the operational precision of the equipment and the performance characteristics of the ink. If the ink viscosity is improperly adjusted, it may lead to blurred characters, broken lines, or poor ink adhesion. However, if the capsule conveyance speed is not synchronized with the rotation of the printing rollers, issues such as pattern shifting, ghosting, or misalignment are likely to occur. Additionally, the presence of static electricity or trace oil residues on the capsule surface can interfere with the uniform transfer of ink, thereby compromising the overall quality of the printing.
Why Content Abnormalities are the Most Serious?
The quality status of a capsule’s contents directly determines the product’s efficacy and safety. Unlike defects in physical appearance, defects in the contents involve the dosage accuracy and physical stability of the active ingredients; these constitute critical quality issues that may compromise clinical efficacy. During the automated filling process, common defects related to capsule contents primarily fall into the following two categories:
Underfilling & Empty Capsules
This category of defects refers to instances where the fill weight of the capsule contents falls below the established standard, or where capsules are completely devoid of contents. The root causes of such defects are typically closely linked to the operational status of the equipment used in the filling process. In powder filling systems, a common cause of underfilling is the failure of the “powder column” within the dosing disc to successfully drop into the capsule body, often due to poor powder flowability or a malfunction in the ejection mechanism. Furthermore, if the vacuum system responsible for separating the capsule cap from the body prior to filling experiences unstable air pressure or clogged suction ports, it may result in a failure to separate the cap and body. This prevents the powder from entering the capsule body, ultimately leading to the production of empty shells. Such defects result in a direct loss of dosage and are classified during quality control inspections as serious defective products that must be rejected.
Powder Leakage
Powder leakage refers to the phenomenon where, following the completion of the filling process, the contents spill out from the junction between the capsule body and the cap, resulting in a loss of dosage and contamination of the production environment. This issue is frequently associated with the capsule’s locking mechanism. Hard capsules typically feature a minute annular groove situated between the cap and the body, it serves a “locking” function designed to prevent the contents from leaking out. If the capsule filling machine parameters are configured incorrectly, or if the cap and body are not fully pressed into their locked positions at the joining station, the locking mechanism may fail to engage securely. Consequently, the capsule may reopen during subsequent conveying or packaging stages. This not only results in the loss of active ingredients but can also lead to a phenomenon known as “powder dispersion” throughout the entire production line, thereby compromising the operational stability of the equipment and the batch-to-batch consistency of the product.
| Defect Category | Common Defect | Primary Cause | Risk |
| Structural | Telescoped | Machine Misalignment | Leakage / Failure |
| Structural | Dented | Low Shell Moisture | Rejection / Shell Fracture |
| Visual | Color Shift | Improper Pigment Mix | Branding Loss / Trust |
| Content | Empty Shell | Vacuum Failure | No Therapeutic Effect |
| Content | Underfill | Blockage in Dosing | Inconsistent Dosage |
What Technologies Are Used to Inspect Capsule Defects?
The ability of modern automated capsule inspection equipment to achieve precise quality control within high-speed production environments lies at the core of its “layered screening” technical logic. Rather than relying on single-dimensional assessments, this logic integrates a variety of physical detection methods, including optical imaging, gravity sensing, and electromagnetic detection, onto a unified platform, subjecting every single capsule to a comprehensive, item-by-item screening process that covers everything from external appearance and fill weight to potential foreign object contamination.
As a specialized solution provider in this field, SED Pharma seamlessly integrates high resolution imaging, precision weighing, and reliable rejection mechanisms to create an all-in-one capsule inspection system, thereby setting a higher standard for reliability in capsule manufacturing.
Leading Pharmaceutical Equipment Manufacturer for High Efficiency
With a 5,500 m² factory and a dedicated team of over 100 R&D and office personnel, Sedpharma delivers high-quality pharmaceutical equipment solutions worldwide.
How 360-Degree Visual Inspection Systems Work?
To address the requirements of capsule visual inspection, a 360-degree capsule vision inspection machine integrates multi-angle imaging with intelligent image recognition technology to achieve a complete surface scan of every individual capsule.
Given the cylindrical structure of capsules, images captured from a single viewpoint cannot cover the entire surface. Therefore, existing equipment primarily employs the following two mechanical designs to achieve comprehensive imaging:
- Transparent Roller Rotation Mechanism: During the conveying process, capsules enter a roller track constructed from transparent, food-grade polymer material. As the rollers rotate, they induce both self-rotation and tumbling motions in the capsules, enabling multiple industrial cameras—positioned both above and below the track, to capture complete images of the capsule’s outer surface from various angles. This method is well-suited for high-speed production lines, allowing for image acquisition to be performed while the capsules remain in continuous motion.
- Vacuum Drum Adsorption Mechanism: Another common structural design utilizes a rotating drum in conjunction with vacuum adsorption. The surface of the drum features positioning holes that employ negative pressure to secure each capsule in a predetermined position, thereby ensuring its postural stability. As the drum rotates, multiple high-resolution cameras are triggered sequentially to capture images; this allows for the simultaneous acquisition of multiple views, including the capsule cap, body, and both ends, with the system capable of capturing upwards of 12 images per individual capsule to ensure comprehensive coverage without any blind spots.

Pattern Recognition-Based Image Analysis
Once the images have been acquired, the inspection software no longer relies solely on fixed threshold rules for decision-making; instead, it incorporates pattern recognition algorithms. The system undergoes a preliminary training phase using a vast dataset of sample images, comprising both images of compliant products and images of various defects, enabling the algorithms to learn how to distinguish between normal conditions and anomalous features. For instance, the system can identify minute cracks on the capsule surface while simultaneously avoiding the misclassification of light reflections or shadows as defects, thereby ensuring a high detection rate while maintaining a low false rejection rate. This technological approach provides enhanced adaptability and stability for visual inspection tasks, making it ideally suited to handle the inspection variations arising from diverse capsule materials and printed content.
How High Speed Check Weighing Ensures Accuracy?
In the automatic capsule inspection process, the vision system is responsible for identifying visual defects, while the checkweigher undertakes the task of verifying the accuracy of the capsule’s contents. In-line weighing within high-speed production environments relies on Electro-Magnetic Force Restoration (EMFR) sensor technology.
This weighing unit functions essentially as a high-speed dynamic balance. The instant a capsule lands on the weighing pan, its gravitational force causes a coil, mechanically linked to the pan, to undergo a minute displacement within a magnetic field. An embedded optical sensor captures the magnitude of this displacement in real time and, via a servo circuit, immediately generates a corresponding restorative current to drive the coil back to its equilibrium position. Based on the magnitude of this restorative current, the system calculates the capsule’s precise weight within a matter of milliseconds and converts this data into a digital signal for transmission to the control system. Based on this closed loop compensation mechanism, the checkweigher is able to achieve milligram-level resolution at production line speeds of several thousand capsules per minute, thereby ensuring that the fill weight of every single capsule complies with established quality standards.

Why Metal Detection is Necessary?
During the capsule manufacturing process, the contamination of products by metallic foreign objects primarily stems from the wear and tear of equipment components or impurities entrained within raw materials. Since metal particles may be encapsulated deep within the powdered contents, rendering them invisible to the naked eye, it is imperative to incorporate a dedicated inspection stage prior to packaging.
Metal detection equipment operates on the principle of electromagnetic induction. The detection head houses an array of internal coils which, when energized, generate a stable, high-frequency electromagnetic field. As a capsule containing metallic foreign objects passes through this field, the metal particles disrupt the equilibrium of the magnetic field distribution, thereby inducing fluctuations in the electromagnetic signal. By analyzing these signal characteristics, the equipment can identify common types of contaminants, including ferrous metals, non-ferrous metals (such as copper and aluminum), and stainless steel.
Given the penetrative nature of electromagnetic fields, the detection process remains unaffected by the physical obstruction of the capsule shell or its internal contents. Even when microscopic metal particles are deeply embedded within a capsule, the system effectively captures the resulting signal disturbances and simultaneously triggers a rejection mechanism to segregate the suspect items from the production line. This technology not only serves to safeguard pharmaceutical safety but also provides valuable data feedback for monitoring equipment wear and ensuring the quality control of raw materials.

How is Capsule Inspector Design Used to Guarantee Quality?
The overall performance of a capsule inspection system depends not only on its capabilities for image acquisition and data processing, but also on the stability and precision of its mechanical conveying components. If capsules wobble during transit, fail to rotate into the correct position, or exhibit orientation deviations, no matter how advanced the algorithms may be, it becomes impossible to capture clear images suitable for accurate analysis. Consequently, the mechanical structural design of the equipment serves as the fundamental prerequisite for ensuring effective inspection results.
How Are Capsules Sorted and Oriented?
Before entering the inspection station, bulk capsules must first undergo “alignment”—that is, they are arranged into a single file sequence with a uniform orientation, to ensure that every capsule passes through the camera’s field of view in a standardized posture.
- Vibratory Feeding: The equipment utilizes electromagnetic vibration to drive a spiral feed track, conveying the capsules upward along the path. This process not only ensures a continuous supply of capsules but also employs vibration to dislodge any powder adhering to the capsule surfaces, thereby minimizing interference with subsequent optical inspections.
- Mechanical Orientation: Capitalizing on the structural characteristic wherein the diameter of the capsule cap is slightly larger than that of the body, the track is fitted with a sorting gate of a specific width. Correctly oriented capsules are able to pass through and proceed forward. Those with an incorrect orientation, due to a shifted center of gravity or dimensional mismatch, fall into a recirculation channel, re-entering the feeding system for a second attempt at orientation.
How Do Systems Prevent Blurry Images?
When capsules pass through the detection zone at speeds of several meters per second, image streaking or blurring will occur if the camera’s exposure is not synchronized with the capsule’s movement. To address this issue, the system incorporates an encoder-based hardware triggering mechanism. The encoder monitors the conveyor belt’s position in real time. When a capsule moves precisely into the center of the camera’s field of view, the system simultaneously triggers both the strobe light source and the camera shutter within microseconds. By utilizing an intense, instantaneous burst of light to “freeze” the capsule’s motion, the system ensures optimal image clarity.
How Does the Rejection System Work?
Upon completion of the inspection, the system must segregate defective capsules from the production line while ensuring that the flow of compliant products remains uninterrupted.
- Pneumatic Rejection: The prevailing method employs high-speed pneumatic valves to eject defective items into a waste collection bin via a momentary burst of compressed air; this operation is rapid and does not impede the passage of subsequent products.
- False Rejection Control: The critical metric for rejection accuracy is the false rejection rate. If factors such as uneven lighting or image noise cause the system to erroneously classify a compliant product as defective, unnecessary waste ensues. To mitigate this, the equipment typically incorporates presence sensors positioned at the rejection point. Should a rejection command be issued, yet the sensor fails to detect a capsule entering the waste zone, the system identifies this as an operational anomaly and automatically initiates an emergency shutdown, thereby preventing defective items from being inadvertently mixed into the finished product batch.
Conclusion
Modern capsule inspection systems represent a deep integration of precision machinery and intelligent imaging technology, marking a transformative leap from manual sampling to 100% online verification. Through the synergistic operation of vibratory alignment, electromagnetic force weighing, and multi-angle optical imaging, manufacturers can ensure that every single capsule features accurate fill weights and structural integrity, thereby guaranteeing that the contents of every product bottle precisely match the labeled dosage.
With the continuous emergence of complex capsule formulations, inspection technologies are evolving toward higher-resolution imaging and multi-sensor fusion. From the detection of microscopic cracks to the screening for metallic foreign objects, these systems consistently serve as the core infrastructure of the quality defense line, ensuring that “quality” remains an uncompromising, mandatory standard throughout the entire production process.


