Skip to content

Use CaseCounts for pharmacies and packaging

Pill Counting

Count tablets and capsules on trays or in containers from a camera image to speed up dispensing and packaging, with an image record of each count.

Illustration of tablet, vial and camera in a inspection bench setting, with a counting line and tally (count: 30).
Illustrative scene — not customer footage.

What can be checked

  • Individual tablets and capsules
  • Broken pieces
  • Foreign items on the tray

What the team receives

  • Count with image record
  • Alerts for broken or foreign items

What the solution does

Faster dispensing

Counts the tablets on a tray from one image, reducing the time staff spend on manual counting at the dispensing bench.

Image record

Stores an image with each count, so pharmacists and auditors can check the count afterwards if a question arises.

Error flags

Highlights broken tablets and foreign items on the tray, so staff can remove them before the count is dispensed.

The operational problem

Manual pill counting is repetitive and interrupts pharmacy staff, and counting errors affect patients and stock.

How visual intelligence helps

A camera above a counting tray detects and counts each tablet, flags broken or foreign items and records an image with the count.

Example visual workflow

  1. Tablets are spread on a tray under a camera.
  2. Tablets are detected and counted.
  3. Broken or foreign items are flagged.
  4. The count and image are recorded.

Illustrative workflow — the actual pipeline is designed for each site during the PoC.

Edge deployment considerations

Counting runs on a compact device at the bench without sending images off site.

How the solution is built

AI capabilities

The AI tasks this use case combines.

  • Counting and Measurement

    Counting and measurement convert detections, tracks and masks into quantities — how many objects, how long they stayed, how big they are, how full an area is.

  • Object Detection

    Object detection finds and labels the objects in an image or video frame and marks each one with a bounding box.

Visual inputs

Cameras and imaging that typically supply the video.

Deployment options

General approaches to evaluate, not tested hardware. Specific hardware is selected and validated for each project during the PoC.

  • Edge AI Hardware Sizing

    Sizing Edge AI hardware means matching compute, memory, power and enclosure to the real workload — the number of streams, resolution, frame rate, models and latency targets — under the site's environmental and installation constraints.

  • Edge Deployment Architectures

    Edge-first means processing video at or near where it is captured.

  • Industrial and Ruggedized Edge AI Computers

    Industrial Edge AI computers and ruggedized systems house AI-capable processors in enclosures built for factories, vehicles and outdoor sites — wide temperature ranges, vibration, dust and industrial power.

  • Standalone Edge AI Devices

    Standalone Edge AI devices are compact, self-contained units — AI boxes or smart cameras — that process video locally at a single location.

Practical factors to plan for

Real-world results depend as much on the environment and camera setup as on the model.

Site and setup

  • Touching pills. Tablets in contact must be separated reliably in the image.
  • Tray contrast. A contrasting tray background improves detection.

Human review

Pharmacy staff confirm counts as part of their dispensing checks.

Limitations & scope

  • Stacked tablets cannot be counted from a single view.
  • Dispensing checks remain the pharmacist's responsibility.

Proof of Concept

Have a visual AI challenge? Let's prove it.

Share a video of what happens in your environment and describe the outcome you need. We review every request for technical feasibility, then agree the scope of a focused Proof of Concept (PoC) with you.

Example request: “We want to count tablets on a counting tray with a fixed camera at our dispensing bench.”

Request a PoCSubmit a video & describe your challenge

Every request is reviewed for technical feasibility. PoC scope, timing and terms are agreed individually.

How this page connects to industries, use cases, AI tasks, input sources and deployment options.