Counting Master

How to count pills from a photo

To count pills from a photo, spread them in one layer on a plain tray, shoot straight down without flash, then check the few spots the counter flags. Here is how to get a count you can check quickly, and where it still needs a person.

The short version

  1. Pour the pills onto a plain tray and spread them into one layer, none on top of another.
  2. Turn the flash off. Hold the phone flat, straight above the tray, with every pill in the frame.
  3. Open the free pill counter and add the photo.
  4. Check the orange rings: tap Check to step through the spots it was unsure about, and tap to add or remove a pill.
  5. Treat the result as a check on your count, not a replacement for it.

A photo count is a check, not a dispensing record

The pill counter is not a medical device. It does not replace a pharmacy's counting procedures, a pharmacist's check or any count your rules require. It gives you a quick, independent second number. If the photo count and your count agree, good. If they don't, count again by hand.

Set up the tray

Most of the work happens before the photo. A counting model finds a pill by its outline, so the job is to give it a clear outline for every pill.

  • Use a plain tray. A counting tray, a plain plate or a sheet of paper works. Patterns and printed text make outlines harder to pick out. A tray that contrasts with the pills, dark for white tablets, makes outlines easier to see.
  • Spread to one layer. Run a spatula or the side of your hand through the heap until no pill sits on another. This one step matters more than any other: pills partly under other pills are where most misses come from.
  • Split big counts. A packed plate of small capsules is the hardest photo there is. If the pills can't lie in one layer on one tray, use two batches and add the counts.
  • Count loose pills. Pop them out of blister packs first. An empty blister pocket can look like a pill to the model.
  • One medicine at a time. Keep one product on the tray, so the count you check is the count of one thing.

Take the photo

  • Straight down. Hold the phone flat over the tray. From an angle, pills at the front hide part of the ones behind, and the outlines overlap in the picture even if they don't on the tray.
  • Every pill in the frame. Leave a margin. A pill cut off by the photo edge with less than half showing is not counted; it gets an orange ring for you to decide.
  • Close, but not too close. Fill most of the frame with the tray, so each pill is clearly visible, without cutting any off.
  • Soft light, no flash. Flash on coated tablets and gel capsules makes bright spots that can hide the outline. Daylight or ordinary room light is better.
  • Hold still. Small tablets lose their edges first in a blurry photo.

Count it, then check the flagged spots

Add the photo to the pill counter. Counting runs in your browser, and the photo is never uploaded. A teal ring marks each pill it counted. Orange rings mark the spots it was unsure about: a pill at the photo edge, or a faint outline it nearly counted.

Tap Check to step through the orange rings one by one and decide each. Then look over the photo once for anything it missed: tap an unringed pill to add it, or tap a wrong ring to remove it. When it is right, tap Count is right.

Where photo counts go wrong, and the fix

What you seeWhyFix
Count too low on a heapPills partly under others are hiddenSpread to one layer, or split into two batches
Count too low on a full plate of small capsulesVery dense photos are the hardest caseUse two trays, or a bigger one
Rings on empty blister pocketsAn empty pocket has a pill-like outlineCount loose pills only
Two rings on one long two-colour capsuleEach half can look like a pill; rareTap one ring to remove it
Two rings on one scored tabletThe score line can look like a gap between two pills; rareTap one ring to remove it
Pills missed in a stack or mid-pourOnly the top or front pill showsLay them flat, then shoot

Pharmacy counting tips

By hand, most pharmacy technicians count on a counting tray with a spatula, sliding pills across in fives. Busy pharmacies also use counting machines or scales. A photo count fits around those methods, not in place of them:

  • A second look at a big count. By hand, a slip of five is easy to make. A photo of the tray before you pour it into the vial gives you a quick, independent number.
  • Open stock bottles at a stock-take. Tip them out on a tray, photograph, pour back.
  • Returns and recounts, where you need a quick number and a picture of what was there.

For controlled medicines and anything else your pharmacy's procedure covers, follow that procedure. A photo count is a second look, not the record. And keep patient labels out of the shot: the photo stays on your device, but there is no reason to have them in it.

Counting pills at home

At home the question is usually "do I have the right number?" A refill that looks short, or how many are left before the next one is due. Tip the pills onto a plate in one layer, photograph from straight above, and count. If the number does not match what you expected, count by hand and ask your pharmacist. The tool counts pills; it does not identify them or tell you anything about a dose.

Counting pills every day? The iPhone app

The web counter is free for every tray. The Counting Master app for iPhone counts from the camera and checks the shot first: it shows when the phone is flat over the tray, and warns about glare, blur and dark light before you count. It works with no signal.

It also learns your own items. If one product keeps getting miscounted, count it by tapping one example and save it as an item. After 20 checked counts, your iPhone trains a counter for exactly that item, so it counts by itself. Your counts stay in a history on the phone, and nothing is uploaded. The same rule applies there: check every count.

iPhone, iOS 17 or later. The first three counts are free. Get Counting Master for iPhone

Questions

How do pharmacists count pills?

Usually by hand on a counting tray with a spatula, in fives; busy pharmacies also use counting machines or scales. A photo count can be a quick second check.

Can a photo count replace counting by hand?

No. It is not a medical device and does not replace your pharmacy's procedures. Use it as an independent second number, and recount by hand if the two disagree.

What background works best?

A plain tray, plate or sheet of paper, ideally in a colour that contrasts with the pills. Avoid patterns and printed text.

How many pills can I count in one photo?

As many as fit in one layer with none on top of another. If they don't fit, split them into two batches and add the counts.

Is the photo uploaded?

No. The free counter runs in your browser, and the photo never leaves your device.

Only in the iPhone app

Want it to learn your own items? Get the iPhone app.

  • Trains a counter for your own item, on your iPhoneCount something by example, save it, and check 20 counts. Your iPhone trains a counter for exactly that item and then counts it by itself. Nothing is uploaded.
  • Tunes its cutoff to your photosAfter training, it tests itself on the counts you checked and keeps the setting that counts your items most accurately, so it counts the way you check.

It also counts straight from the camera with live coaching, works with no signal, and keeps a history of every count. Photos never leave your phone.