Tablet defect detection: Datasets & Models
Automated inspection of pharmaceutical tablets to flag surface defects like chips, cracks, and discoloration on production lines. Uses object detection to locate and classify defective units in camera images.
Tablet defect detection
Tablet defect detection applies object detection to camera images of pharmaceutical tablets on production lines, locating and classifying units that show flaws. It takes still images or video frames from inline inspection cameras and returns bounding boxes for defects such as chips, cracks, surface spots, and coating or color irregularities so operators can flag or reject affected tablets.
Try it out
Powered by general detection model
Run on custom image
Drop an image here or click to upload
Why automate tablet defect detection
Manual visual inspection of tablets is slow, inconsistent between operators, and impossible to sustain at modern line speeds, which means defective units slip through or good batches get over-rejected. In regulated pharma and semiconductor-adjacent manufacturing, missed defects carry compliance and recall risk, while excess scrap eats into yield. A detection model runs continuously without fatigue, applies the same criteria to every tablet, and produces auditable records of what was flagged and why. That combination reduces escape rates and gives quality teams objective data instead of subjective spot checks.
Key benefits
Automated tablet defect detection delivers consistent, round-the-clock inspection that scales with line throughput and integrates with the cameras and reject mechanisms you already have. RF-DETR provides strong accuracy on small, subtle surface defects, and the model can be retrained as new defect types or product formats appear. Detection logs support quality documentation and continuous improvement without adding headcount.
How to use it
- Upload an image: Drop any photo into the widget above to try tablet defect detection for free, right on this page.
- Preview instant results: The model detects chipped tablet, cracked tablet, discolored tablet, surface spot, broken tablet within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
- Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
- Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model for tablet defect detection
RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for tablet defect detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.
Not sure where to start?
Describe your Tablet Defect Detection project to Roboflow Agent.