Visual Intelligence Summit: Oct 22 in San Francisco Get your ticket

Pill Counting AI

Count tablets and capsules on a counting tray or at the bottle filler in seconds.

Pill Counting AI for the Toughest Retail, Hospital, Mail-Order Pharmacy, and Packaging Lines

  • Deploy Anywhere, Run Everywhere

    Run pill counting on counting tray cameras, phones and tablets, and bottle filler cameras on the edge, on-prem, in your VPC, or via API.

  • One Platform, Full Adoption

    Tools every pharmacy and pharma team can adopt, from pharmacists to QA leads, no separate ML team required.

  • Secure, Compliant, and Audit-Ready

    Data stays safe with SOC 2 Type II compliance, encrypted data, HIPAA compliance, and an uptime SLA.

  • Tablet & Capsule Counts on the Tray
  • Touching & Overlapping Pill Separation
  • Broken, Chipped & Split Tablets
  • Wrong or Look-Alike Tablet Detection
  • Bottle Fill Count Verification
  • Image Record Per Count
“Roboflow has been instrumental in accelerating our deployment of innovative AI solutions.”

Travis Turnbull

Vice President & CIO, Pella Corporation

Talk to a Vision AI engineer who's shipped in pharmacy and pharmaceuticals.

Bring us your toughest pill counting problem and we'll map a working solution.

Ask us about:

  • Solution architecture that fits FDA 21 CFR Part 211 and Part 11, DEA recordkeeping, and state board of pharmacy requirements
  • A live demo on your own tray or bottle filler images
  • Deployment options: edge at the counting station, on-prem, air-gapped, VPC, or on a phone or tablet
  • ROI modeling against miscounts, controlled substance discrepancies, pharmacist verification time, and packaging line rejects

Over 16,000 organizations build with Roboflow.

  • Rivian
  • Pella
  • Chobani
  • USG Corporation
  • BNSF Railway
  • American Woodmark
Start where you are

Vision AI is transforming businesses

Customers across the board are solving complex challenges and driving meaningful impact.

  • Automotive customer

    $10 million

    Saved by automatically detecting defects on the production line

  • Logistics & freight company

    90%

    Less time spent manually tracking shipping inventory

  • Building materials supplier

    60%

    Lower customer return rate with improved product quality

Count and Verify Every Fill, from the Counting Tray to the Sealed Bottle

Bring real-time intelligence to every count with Roboflow Vision AI for pill counting. Built for pharmacies where hand counting by fives is slow and a miscount on a controlled substance becomes a discrepancy, and for packaging lines where the bottle filler count needs a second check.

Accurate counts:

  • Count tablets and capsules on a counting tray in one image, with a model trained on the shapes, sizes, and colors you dispense.
  • Separate pills that touch, overlap, or sit in a pile, where simpler counters double-count or miss.
  • Show the count with each pill marked so the pharmacist or technician can confirm at a glance.

Quality and the right drug:

  • Flag broken, chipped, and split tablets that should not be dispensed.
  • Detect a tablet that does not match the rest of the count by shape, color, or imprint, which catches look-alike mix-ups.
  • Check the product against the expected drug before the count is bagged or bottled.

Records and packaging lines:

  • Save an image of each count with the prescription, NDC, technician, and time for the record.
  • Support controlled substance counts and inventory reconciliation with image evidence.
  • Verify tablet counts at bottle fillers and blister packing on pharma packaging lines.

Bring intelligence to every count today. Stop miscounts and wrong tablets from becoming discrepancies, errors, and rejected lots.

‍

Frequently asked questions

What is pill counting with Vision AI?

Pill counting with Vision AI uses a camera over a counting tray, a phone or tablet, or a camera at a bottle filler and a trained computer vision model to count tablets and capsules, separate touching pills, and flag broken tablets or pills that do not match the rest. Each count is saved with an image. It sits alongside count and quantity verification, prescription label scanning, and Vision AI for pharmaceuticals.

Can Vision AI count pills that are touching or piled up?

Touching pills are the main reason simple image counters fail, and a detection or segmentation model trained on your own tablets handles them well because it finds each pill as an object.

Does pill counting support FDA, DEA, and state pharmacy requirements?

Pill counting supports record-keeping under DEA 21 CFR Part 1304 (records and reports of registrants handling controlled substances) and state board of pharmacy rules for dispensing accuracy, and for manufacturers, count verification under FDA 21 CFR Part 211 (current good manufacturing practice for finished pharmaceuticals) with electronic records under Part 11 (electronic records and signatures).

Roboflow serves as the counting engine, and your pharmacists and quality teams own verification, dispensing decisions, and validation.

Can it integrate with our pharmacy system and packaging line?

Yes. Roboflow sends counts, flags, and images over REST or writes them to a database, so they can be attached to the prescription record in pharmacy management systems and to inventory and controlled substance logs. On packaging lines, it writes count and pass/fail to a PLC tag over OPC UA or MQTT so a bottle with the wrong count is rejected, and records go to the MES and electronic batch record.

‍

Stay connected

Get the Latest in Computer Vision First

Unsubscribe at any time. Review our Privacy Policy.