What Determines Which Type of Vision Inspection Equipment You Need?
The defect decides. Before comparing cameras or vendors, write down exactly what a bad unit looks like and where on the line it can be seen. Four questions usually settle the choice.
- Is the defect flat or does it have depth? A missing lot number, a smudged Data Matrix or a skewed label lives on a surface. 2D imaging sees it. A low fill, a raised cap or a deformed blister pocket is a height or volume problem, which is where 3D earns its cost.
- Is “good” consistent or variable? Printed characters and barcodes follow a specification, so fixed rules can judge them. Tablet color, capsule gloss and natural surface texture vary from unit to unit. That variation is what AI-based inspection is built to handle.
- How fast does the line run? Acquisition speed, lighting and processing all have to keep pace with the line. A carton line at 400 units per minute sets very different constraints from a manual packing station.
- What has to happen with the result? A standalone quality check can live on a simple device. A serialization check must report each code to the line controller, update the unit’s status, trigger a confirmed ejection and leave an audit trail that supports FDA 21 CFR Part 11 and EU GMP Annex 11 expectations.
In practice, most pharmaceutical lines use more than one type. A typical serialized line reads codes with 2D vision at the carton station, inspects solid dose with AI-assisted vision upstream, and verifies aggregation with 2D cameras at the case and pallet.
What Is a 2D Vision Inspection System?
A 2D vision inspection system captures a flat image of a product or package and analyzes it pixel by pixel. It is the most widely deployed type of vision inspection equipment in pharma, because nearly every compliance-critical check happens on a printed or labeled surface.
How Does 2D Vision Inspection Work?
A 2D system has four parts: a camera, controlled lighting, an optic and software that applies inspection tools to each image. A sensor or encoder triggers the camera as each unit passes. The software then compares the image to a reference or measures it against tolerances, and sends a pass or fail result to the reject mechanism.
Lighting does most of the work. Diffuse light suppresses glare on foil and film. Polarized light reveals surface detail on coated tablets. Backlighting outlines shapes and liquid levels. UV lighting reads tracking codes printed in ink that consumers never see.
Area-scan cameras capture a full frame at once and suit discrete items such as cartons and bottles. Line-scan or contact image sensors build an image one line at a time, which suits continuous webs and large label rolls. Multi-camera setups, or a rotating product, give 360° coverage of cylindrical items such as bottles and vials.
What Is 2D Vision Best Used For?
Label & Print Checks
This is the core job. A 2D system can, on a single image:
- decode and grade Data Matrix, QR and linear barcodes against ISO/IEC 15415 and 15416;
- verify human-readable text with optical character verification (OCV) or recognition (OCR) for lot, expiry, NDC and serial number;
- confirm that the text and the encoded code carry the same data;
- check label presence, position, skew and artwork against a golden image.
OPTEL’s InspectProof™ is an example. It groups more than 60 inspection functions across product, packaging, kit and labeling checks, and scales from up to 200 to up to 1,200 products per minute depending on configuration.
Presence/Absence Detection
2D vision reliably confirms that something is where it should be. Typical checks include leaflets and topserts in cartons, caps and tamper-evident seals, tablets in every blister pocket, and components in a medical kit. On slat and electronic counters, 2D vision also verifies color, size and integrity of each unit before it drops into the bottle.
Limitations
- No true depth. A 2D image cannot measure height directly. Fill level through clear glass is possible with backlighting, but opaque containers or small height differences need 3D.
- Sensitive to presentation. Changes in position, orientation or glare can cause false rejects if lighting and handling are not engineered carefully.
- Rule-based tools need tuning. Fixed thresholds work well on printed data but struggle with natural variation in product appearance.
What Is a 3D Vision Inspection System?
A 3D vision inspection system measures the shape of an object in three dimensions, not just its appearance. Instead of a flat image, it produces a height map or point cloud in which every point carries a depth value. That makes it the right tool when the defect is physical geometry rather than color or print.
How Does 3D Vision Inspection Work?
Three techniques dominate industrial 3D inspection:
- Laser triangulation. A laser line is projected onto the product and a camera views it from an angle. As the product moves, the shape of the line reveals the surface profile.
- Structured light. A projector casts a known pattern, such as stripes. The way the pattern bends over the surface is converted into depth.
- Stereo vision. Two cameras view the same scene from different positions, and software calculates depth from the difference between the two images.
The output is a set of measurements: height, volume, flatness, tilt or deviation from a reference model. Tolerances are then applied in real units such as millimeters, which is easier to justify in a validation protocol than a grey-level threshold.
Best Used For
Fill-Level Verification
3D and depth-sensing methods verify fill in open or opaque containers where a backlit 2D image cannot see the liquid or powder line. They can also measure the height of a stopper or cap to confirm it is fully seated. For clear vials, well-designed 2D backlit vial inspection often does the job at lower cost, so the container matters as much as the product.
Shape & Volume Inspection
Typical applications include:
- blister pocket depth and forming defects;
- raised, tilted or missing caps and crimps;
- tablet thickness, chipping and edge damage measured in real dimensions;
- dents and deformation on cases and containers;
- stack height and layer checks at palletizing.
Limitations
- Cost and complexity. 3D sensors, calibration and integration cost more than 2D, and changeovers can take longer.
- Reflective and transparent surfaces. Glass, foil and glossy coatings scatter light and can create gaps in the height data.
- Speed trade-offs. High-resolution 3D scanning can limit throughput on the fastest lines.
- No reading of print. 3D measures shape, not ink. Code and label verification still needs 2D, so 3D is almost always an addition, not a replacement.
What Is an AI-Powered Vision Inspection System?
An AI-powered vision inspection system uses deep learning models, trained on images of good and defective products, to decide whether a unit passes. The camera and lighting are often the same as in a 2D system. What changes is how the image is judged. For a deeper look at models, training and validation, see our article on AI vision inspection in more detail.
How Is AI Vision Different From Rule-Based Vision?
Rule-based vision works like a checklist written by an engineer: measure this edge, count these pixels, reject if the value falls outside a threshold. It is precise and easy to explain, which is why it remains the standard for codes and text.
AI vision learns what “acceptable” looks like from examples. Two approaches are common in machine vision:
- Image classification assigns a label to an image or region, such as good, chipped, stained or wrong product. It supports anomaly classification, object sorting and more robust OCR.
- Image segmentation outlines the exact pixels that belong to a defect or object, so the system can measure its size and position.
The practical difference shows up in false rejects. A rule tuned tightly enough to catch a small stain on a speckled tablet will also reject good tablets whose natural speckle looks similar. A trained model can learn to tell them apart. This is also where inspection starts feeding production data, a shift described in vision systems evolving into operational intelligence.
Best Used For
Cosmetic Defect Detection
Cosmetic defects rarely look the same twice. AI models are well suited to:
- surface stains, spots and discoloration on tablets and capsules;
- chipped edges, cracks and split units;
- dents, tuck defects and unlocked capsules;
- scratches and particles in seals or on glass;
- crimp and stopper defects on vials.
High-Variability Products
Some products vary by nature. Nutraceuticals, dual-color capsules, softgels, embossed tablets and natural-origin materials all show acceptable differences in color, texture and shape. AI handles that variation better than fixed thresholds, and it can reduce the time spent re-tuning rules at every product changeover.
Limitations
- Data requirements. A model needs enough representative images of each defect class. Rare defects are hard to collect, which is why anomaly-detection approaches that learn only from good units are growing.
- Validation effort. Regulators expect a validated, locked model. Training data, model versions and performance must be documented, and retraining is a controlled change, in line with GAMP 5 principles.
- Explainability. An operator or auditor may ask why a unit was rejected. Segmentation overlays and confidence scores help, but the logic is less transparent than a measured threshold.
- Not a replacement for code reading. Serialization data still has to be decoded, graded and verified with deterministic tools.
What Is a Smart Camera System?
A smart camera is a self-contained vision device: sensor, optics, processor, inspection software and I/O in one housing. It captures and judges images on its own, without a separate industrial PC. Smart cameras are usually 2D and, increasingly, include basic AI tools.
How Do Smart Cameras Work?
The camera is configured through a web interface or vendor software, often with drag-and-drop inspection tools. Once set up, it triggers on a sensor signal, runs its inspection inside the device and outputs a pass or fail signal to a PLC or reject mechanism. Results can be sent over industrial protocols such as EtherNet/IP or PROFINET.
The contrast is with PC-based vision systems. These connect one or more cameras to a dedicated computer that runs the inspection software, stores recipes, manages users and feeds results to a line controller. Serialization stations are almost always PC-based for that reason.
Best Used For
- simple presence and absence checks, such as a cap, a label or a leaflet;
- single-code reading where no grading or line-level reconciliation is needed;
- orientation and position checks ahead of a machine;
- retrofits where space and budget are tight;
- non-serialized quality checks on secondary equipment.
Limitations
- Limited processing power. Complex multi-tool inspections, high-resolution images and fast lines can exceed what the embedded processor handles.
- One view per device. 360° coverage or multi-angle inspection means coordinating several independent cameras.
- Data integrity gaps. Audit trails, user access control, recipe management and reporting are often basic. On a GMP line, those gaps must be closed at another layer.
- Integration with serialization. A smart camera rarely manages serial number status, ejection confirmation or aggregation on its own.
That last point matters as lines automate further. When the end of the line adds case packing and robotic automation for end-of-line inspection, each case and pallet check must tie back to the serialized units inside, which calls for a connected system rather than isolated cameras.
2D vs. 3D vs. AI vs. Smart Camera: How Do They Compare?
Each type answers a different inspection question, so the comparison is about fit, not ranking.
Comparison of 2D, 3D, AI-powered and smart camera vision inspection equipment for pharmaceutical lines.
| Criterion |
2D vision |
3D vision |
AI-powered vision |
Smart camera |
| What it measures |
Appearance: print, codes, color, position |
Geometry: height, volume, shape |
Learned appearance, including variable defects |
Appearance, simple checks |
| Typical pharma uses |
Data Matrix grading, OCV/OCR, label checks, presence/absence |
Fill level in opaque containers, blister depth, cap height |
Tablet and capsule cosmetics, vial crimps, high-variability products |
Cap or leaflet presence, single-code reads |
| Handles natural variation |
Limited, needs careful tuning |
Moderate, on shape only |
Strong |
Limited |
| Reads serialization codes |
Yes, with ISO/IEC grading |
No |
Assists OCR; codes still decoded deterministically |
Basic reading |
| Line speed |
High; scales with cameras and processing |
Moderate to high; resolution limits the fastest lines |
High once trained; depends on processing hardware |
Low to moderate |
| Validation effort |
Well established |
Moderate, calibration-heavy |
Higher: training data and model versions documented |
Low per device; data integrity closed elsewhere |
| Relative cost |
Moderate |
High |
Moderate to high |
Low |
| Best fit |
Serialization, labeling and print quality |
Defects with depth |
Cosmetic defects and variable products |
Simple standalone checks |
On most serialized lines, the answer is a combination: 2D vision for compliance data, AI for product appearance, and 3D only where the defect has height or volume.
How Do You Choose the Right Vision Inspection Equipment?
Start with a vision study on your own products, not a spec sheet. A good supplier will image real samples, including known defects, under realistic lighting and speed before committing to a configuration. Whether you need a single inspection point or complete automated visual inspection machines, four factors shape the decision.
Line Speed
Match acquisition, processing and rejection to your peak rate, not your average. Ask for the maximum rate the configuration can hold with every inspection tool active. Solid dose inspection is often quoted in products per hour, so convert it to your line’s units before comparing. Also confirm that rejection is verified: a confirmation sensor or camera that proves the bad unit left the line.
OPTEL’s InspectProof™, for example, is offered in three configuration levels, rated up to 200, 400 and 1,200 products per minute. That lets the system scale to the line instead of forcing one design onto every station.
Product Type
The physical product often narrows the choice quickly:
- Cartons and labels: 2D vision for codes, text and artwork.
- Bottles and vials: 2D with 360° coverage for labels and crimps; backlit 2D or 3D for fill and closure height.
- Tablets and capsules: high-resolution 2D with polarized lighting, often with AI for cosmetic defects. Full-surface systems rotate each unit to image its whole circumference.
- Blisters: 2D for presence and color; 3D where pocket forming matters.
- Cases and pallets: 2D for aggregation codes, with wide fields of view or multiple cameras.
Defect Complexity
Classify each defect you must catch. Measurable, consistent defects such as a missing code, a wrong position or an out-of-range dimension suit rule-based 2D or 3D tools. Variable, subjective defects such as stains, surface blemishes or subtle color shifts are where AI adds value.
False rejects are part of this calculation. The peer-reviewed research on machine vision inspection published by ISPE shows how systems programmed for every variation tend to eject safe product, and how machine learning can help identify root causes. Ask suppliers to demonstrate both detection rate and false-reject rate on your product.
Budget & ROI
Look beyond the purchase price. Total cost includes integration, validation (IQ/OQ/PQ), changeover time, recipe maintenance, spare parts, annual software fees and support. Two systems with similar prices can differ widely over five years if one carries a recurring license and the other does not.
On the return side, count avoided recalls and complaints, fewer false rejects, less manual re-inspection, recovered line speed and cleaner audit records. The same logic applies across line investments. Our guide to automation ROI walks through a formula you can adapt to vision equipment.