Browse tools

Count objects in a photo

Take a photo from above, drop it here, and the counter marks every object it finds. Tap the picture to add anything it missed or remove a wrong mark. Switch to petri dish mode for bacterial colonies and a CFU/mL estimate.

Drop a photo here or choose a photo
Take it straight from above, on a plain background · nothing is uploaded
Count
—
Add a photo to start. Tap the picture to add a missed object or remove a wrong mark.

How to use this tool

  1. Photograph the objects from straight above on a plain, contrasting background, with even light and no heavy shadows.
  2. Drop the photo on the box. Choose Objects, or Petri dish colonies for a culture plate.
  3. Check the marks. Tap anything that was missed to add it, and tap a wrong mark to remove it.
  4. If many objects are missed or noise is counted, move the Sensitivity or speck-size slider, then copy the count or download the marked photo.

How the counter works

The photo is shrunk to about 900 pixels on its longest side and turned into greyscale. Otsu's method then picks the brightness level that best separates objects from background, and every connected shape on the object side is counted once. A quick clean-up pass removes single-pixel noise first.

Two settings stop common mistakes. Tiny specks below a set share of the typical object size are ignored, so dust and glare don't count. Shapes that are much bigger than a typical object, such as two tablets touching, are counted by size: a clump about three times the usual area counts as three, and the marks are spread across it. You can switch this off if your objects really do vary in size.

Nothing leaves your device. The image is processed with the browser's own canvas, so it works for private things like prescriptions or lab plates, and it keeps working if you go offline after the page has loaded.

Getting an accurate count

ProblemWhat to change
Objects merge into one big shapeSpread them out a little, or keep "Split touching objects" on
Shadows are counted as objectsUse softer light from above, or lower the Sensitivity
Pale objects are missedRaise the Sensitivity, or set "Objects are" to lighter or darker
Dust or crumbs are countedRaise the speck-size slider
Objects of mixed sizesTurn off splitting and fix the few clumps by tapping

The background matters more than the camera. White tablets count best on a dark cloth, dark seeds or screws on white paper. For pipes and rods, photograph the cut ends face on so each end shows as a separate circle.

Counting bacterial colonies on a petri dish

In petri dish mode the counter ignores everything outside a circle you can shrink with the "Dish edge" slider, so the rim and the label don't count. It compares each spot with the brightness around it, which copes better with the uneven glow of agar under a lamp. Place the plate on a dark surface, light it from the side or from below, and photograph it straight on.

To estimate the viable count in the original sample, the page divides the colony count by the dilution plated and the volume plated: CFU/mL = colonies ÷ (dilution × volume in mL). For example, 154 colonies on a 10⁻⁵ plate spread with 0.1 mL gives 154 ÷ (0.00001 × 0.1) = 1.54 × 10⁸ CFU/mL. Standard plate count methods, such as the FDA's, use plates with roughly 25–250 or 30–300 colonies, because counts outside that range are less reliable. The page warns you when your plate falls outside it.

The automatic count is a starting point. Spreading colonies, colonies at the edge and overlapping growth still need a trained eye, so check the marks before you record a result.

What people count with it

Pharmacy staff check tablets before packing, warehouse and site workers count pipes, rods and boxes from the end, farmers count eggs and seedlings, teachers count beads or counters for class, and lab staff count colonies on culture plates. Anything that stands out clearly from its background can be counted.

Frequently asked questions

Can I count objects in a photo for free?

Yes. Drop a photo on this page and it marks and counts the objects. It's free, needs no sign-up and doesn't upload your photo.

How accurate is the automatic count?

With a plain background and objects that don't overlap, it's usually exact or within one or two. Touching or overlapping objects and shadows cause most errors, which is why you can tap to add or remove marks before using the number.

Can it count pills or tablets?

Yes. Spread the tablets on a dark, plain surface so they don't touch, photograph from above, and check the marks. It is a counting aid, not a replacement for a pharmacist's check.

How do I count bacterial colonies from a photo?

Choose Petri dish colonies, drop a straight-on photo of the plate, adjust the dish edge so the rim is excluded, then check the marks. Enter the dilution and volume plated to get CFU/mL.

How is CFU/mL calculated?

CFU/mL equals the number of colonies divided by the dilution factor and the volume plated in mL. 120 colonies on a 10⁻⁴ plate with 0.1 mL plated is 120 ÷ (0.0001 × 0.1) = 1.2 × 10⁷ CFU/mL.

Is my photo uploaded?

No. The counting happens inside your browser on your own phone or computer. The photo is never sent to a server.

Sources and references

  1. Otsu N. A threshold selection method from gray-level histograms. IEEE Trans Syst Man Cybern 1979;9(1):62-66
  2. U.S. FDA Bacteriological Analytical Manual, Chapter 3: Aerobic Plate Count
  3. MDN Web Docs: CanvasRenderingContext2D.getImageData()

Last reviewed by the Everyday Toolnest team. How we check our tools. Results are for general information; for legal, tax, medical or financial decisions, check with a qualified professional.

More image tools

Also useful