When a filling machine outputs 60,000 to 120,000 capsules per hour, a single microscopic crack or loose cap isn't just a cosmetic flaw — it is a patient safety threat, a contamination risk, and an imminent batch recall. Discover how Techasoft built a real-time computer vision system that inspects every capsule across 360 degrees and autonomously ejects defects without slowing production.
Our client, a high-volume pharmaceutical formulation manufacturer, operates round-the-clock lines for hard gelatin and HPMC capsules. For years, quality assurance relied on spot-sampling and manual visual inspection tables. But as production quotas scaled, human visual limits created an unsustainable operational trade-off between line speed and audit compliance.
Staring at thousands of glossy, vibrating capsules under fluorescent lights causes severe eye fatigue within 20 minutes. Minor variations between shift operators led to subjective decisions, borderline units slipping through, and pallets held in QA quarantine for days awaiting manual re-checks.
End-to-End Product Engineering, Computer Vision Metrology, Edge Hardware Retrofit, High-Speed PLC Actuation, Real-Time Telemetry Analytics, and GMP / 21 CFR Part 11 Validation Support
Gelatin and HPMC capsules act like miniature curved mirrors. Standard cleanroom lighting generates harsh glare spots that blind standard vision cameras or trigger false alarms on good units.
Techasoft's engineering team engineered a dual-intelligence optical architecture that solves the physical and mathematical hurdles of high-speed inline inspection:
Convolutional neural networks were trained on over 250,000 real production images to distinguish harmless optical reflections from genuine hairline fractures, shell dents, discoloration, and partial print degradation.
Edge algorithms measure exact outer boundaries within $\pm 0.05\text{ mm}$ tolerance, calculating length, diameter, and cap-to-body joint positioning to catch locked, short, or telescoped units in real time.
Every defect type carries direct consequences for patient health, formulation integrity, and packaging equipment uptime. Our AI identifies and classifies each flaw within milliseconds.
Prevents atmospheric moisture and oxygen from leaking into the shell and degrading the active pharmaceutical ingredients (API).
Stops powder leakage that contaminates blister machines and downstream cleanroom machinery.
Eliminates mechanical feeder jams that bring high-speed bottle-filling and blister packaging lines to an abrupt halt.
Detects stray debris or residual formulation powder adhered to the shell before secondary packaging.
Combines geometric volume estimation and density metrology to ensure exact therapeutic dosage delivery to every patient.
Catches subtle hue shifts between cap and body parts that signify batch cross-contamination or formulation blending errors.
Verifies product brand names, dosage strengths, and logos against GMP serialization readability standards.
Automated calibration handles all standard gelatin and plant-based HPMC sizes (from Size 000 down to Size 5).
A robust, modular edge-to-cloud architecture guarantees microsecond inference on the factory floor while streaming tamper-evident batch telemetry for compliance auditing.
We worked side-by-side with plant operations, quality assurance, and maintenance engineers to deliver a non-disruptive, plug-and-play installation.
Instead of relying on synthetic or idealized lab data, we collected over 250,000 raw production images directly on the client's operational line. Working alongside senior QA inspectors, every image was rigorously tagged with precise defect categories across varying shell opacities, sizes, and lighting conditions.
We trained deep learning models to identify microscopic anomalies while avoiding false alarms on harmless glare reflections. The models were iteratively validated against unseen production batches until meeting strict QA threshold criteria for zero false acceptance and ultra-low false scrap rates.
Compact, IP69K-rated optical stations were integrated directly downstream of the filling and deduster stages without requiring mechanical redesign of the existing conveyor. High-speed GigE cameras capture 360-degree views in milliseconds without interrupting throughput.
Upon high-confidence defect detection, the system commands the line PLC to fire a targeted, microsecond air-jet pulse that effortlessly diverts the defective capsule into a locked quarantine bin, while good product continues unobstructed to packaging.
The same underlying edge-vision technology adapts seamlessly across all dosage, primary packaging, and serialization checkpoints across the pharmaceutical plant.
High-speed checks for chipping, splits, thickness variation, and color shading at maximum continuous line speed.
Verifies completeness of every blister cavity, detects crushed pills, and verifies foil seal integrity in a single snapshot.
Inspects cap crimping, rubber stopper seating, glass fissures, fill heights, and floating particulates inside liquid solutions.
Instantaneous verification of 1D/2D GS1 Data Matrix codes and human-readable serialization text up to 40,000 units/hr.
Multi-unit parent-child verification during bundle aggregation, case packing, and automated palletizing.
Automated verification of tamper-evident seals, hologram stickers, and tuck-flap glued closures to prevent adulteration.
Confirms that the correct label, language, and clinical literature insert are present and aligned before carton dispatch.
Advanced Optical Character Recognition and Verification reading lot codes, expiry dates, and MRPs on fast-moving packs.
Pharmaceutical production floors undergo aggressive daily sterilization using vaporized hydrogen peroxide and pressurized chemical washdowns. Our hardware is engineered to endure harsh cleanroom sanitization without optical calibration loss.
Hermetically sealed 316L stainless steel enclosures withstand high-pressure, high-temperature chemical sanitization cycles.
Crevice-free contours and mirror-finish surface roughness below 0.8 µm eliminate bacterial niches and powder accumulation.
Interchangeable C-mount lenses with integrated illumination controllers snap into place for fast changeovers between capsule sizes.
Passive heatsink thermal engineering ensures sensor stability in both air-conditioned cleanrooms and high-humidity processing areas.
In regulated life sciences, accuracy without auditability is useless. We designed every layer to exceed FDA, EMA, and WHO cGMP requirements.
Every single inspection decision, rejected frame, parameter tweak, and operator login is encrypted and digitally signed to batch records.
Electronic record governance ensures data is Attributable, Legible, Contemporaneous, Original, and Accurate at every stage.
Turnkey validation documentation packages aligned with GAMP 5 principles to accelerate qualification and regulatory sign-offs.
Neural network model iterations are version-locked, benchmarked against historical validation datasets, and formally approved prior to release.
Quality directors can view defect frequency trends by shift, machine, and capsule batch in real time, catching mechanical issues early.
Strict multi-tiered authentication ensures only authorized plant QA managers can alter sensitivity thresholds or export batch records.
The automated vision system transformed quality control from a slow, stressful sampling bottleneck into an autonomous, 100% inline guarantee of excellence.
Defect Detection Accuracy (%)
Reduction in Manual Inspection Hours (%)
Fewer Defect-Related Batch Holds (%)
Every single capsule is inspected rather than a small statistical batch sample. Decisions remain 100% consistent with zero operator fatigue or shift bias.
Eliminated manual sorting bottlenecks, empowering encapsulation machines and packaging lines to run at full rated capacity with zero inspection delays.
Catching defects immediately prevents expensive batch scrappage, market recalls, customer complaints, and catastrophic brand damage.
Complete digital audit trails and defect analytics give QA leaders transparent, traceable proof for regulatory agencies and customer quality audits.
Whether you're looking to automate capsule inspection, blister verification, or end-to-end serialization, Techasoft delivers high-speed, GMP-validated AI vision solutions tailored to your production lines.
Speak directly with our computer vision engineers. A brief discussion is all it takes to get started.