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
- Pour the pills onto a plain tray and spread them into one layer, none on top of another.
- Turn the flash off. Hold the phone flat, straight above the tray, with every pill in the frame.
- Open the free pill counter and add the photo.
- Check the orange rings: tap Check to step through the spots it was unsure about, and tap to add or remove a pill.
- 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 see | Why | Fix |
|---|---|---|
| Count too low on a heap | Pills partly under others are hidden | Spread to one layer, or split into two batches |
| Count too low on a full plate of small capsules | Very dense photos are the hardest case | Use two trays, or a bigger one |
| Rings on empty blister pockets | An empty pocket has a pill-like outline | Count loose pills only |
| Two rings on one long two-colour capsule | Each half can look like a pill; rare | Tap one ring to remove it |
| Two rings on one scored tablet | The score line can look like a gap between two pills; rare | Tap one ring to remove it |
| Pills missed in a stack or mid-pour | Only the top or front pill shows | Lay 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