Count test tubes in a rack from a photo — count test tubes in a tray from a photo with marked results
AI Test Tubes Counter

Count test tubes in a rack from a photo

Works with JPG, PNG, WEBP · Free up to 20 MB, Premium 50 MB

Spread the test tubes one layer deep on a tray or flat surface and photograph from directly above — counted detections receive dots for review. Built for pharmacies, clinics, labs and care homes — review and correct each photo before adding it to a CSV or PDF tally.

  • Review the photo, then count visible test tubes
  • Upload a photo and get an automatic count
  • Review the markers to catch test tubes counted twice or missed
  • Free to use · No signup required · Without watermark

Upload Image

Counting test tubes from directly above the rack

Test tubes in a rack are easiest to count from overhead, where every cap or open mouth becomes a small circle in a grid. Lab managers use that photo for consumable stock counts across racks, for a sample batch tally before a run, and for goods-in checks against a supplier order. The usual trap is the rack itself: an empty rack hole is also a ring, and from above it can look a lot like an uncapped tube. Capped tubes with colored tops separate cleanly from empty positions; open tubes need a closer look at every marker.

Hold the phone level over the center of the rack so the outer rows are not seen at a slant, which makes tall tubes lean into one another in the frame. When a rack mixes cap colors or tube sizes, use Similar items and mark one example of each kind, up to three, and the Found per example rows show how the total splits. Loose tubes still in their bag should be tipped onto a tray and spread one layer deep first.

Handwriting and barcodes on the labels are not read, so sample IDs still come from your log. Add each rack as its own labelled tally row and export the CSV for the lab record. Vials standing in a rack follow the same overhead method, and a consumables stock-take across several shelves fits better on the inventory counter.

Rack checks before you shoot

  • Shoot straight down, not from the front of the bench
  • Fill the frame with one rack at a time
  • Note empty positions in the tally label if they matter to you
  • Mark a capped tube as the example when the rack also holds open ones

Frequently asked questions

Do the items need to be separated before counting?
Slight touching can work, but full overlaps hide items and make the result less reliable. Spread them one layer deep under even light, mark a clear example, and review every result marker.
What if the photo has more than just test tubes in it?
The counter automatically looks for test tubes in your photo. Similar-looking distractors can still affect the result, so review every marker before using the total.
Can I count several photos into one total?
Yes — count each photo and add every reviewed result to the tally sheet as a labelled row. Export the tally as CSV or a PDF report, or save it to your account.
Is it free and private?
Yes. You can count, review and download a free result without an account. Downloads are free without a watermark. No signup required. Server-processed photos are encrypted in transit and removed under our Security policy.

What you can do with Pill Counter

Review the main capabilities before you begin.

  • Count pills and tablets from a single photo
  • Use a marked tray estimate as a manual-count cross-check
  • Have a qualified person review each counted-pill marker
  • Optionally mark an example to refine a tricky count
  • Batch-count many trays in a bulk audit
  • Filter out tiny specks with a size cutoff

Settings reference

Available controls for Pill Counter.

Upload

Single photo / Bulk auditPresets
Choose a single-photo count or a Premium bulk audit. Review every result.Options: Single photoBulk audit

Count

Included markersSliderRange: 0–1 · Default: 0.21
Starts at 21%; slide toward Show more to include weaker markers or Only strongest to hide them.
Overlay stylePresets
Choose dots, a heatmap, both or a clean preview.Options: BothDotsHeatNone

Advanced

Result overlayDropdown
Choose how count markers appear in the on-screen preview; the download keeps its own markers.Options: Dots + heatmapDots onlyHeatmap only

Tally

Add to tallyOne-click
Add this count to the tally sheet under the name of the object that was counted. Signed-in accounts add finished counts automatically unless that is turned off under Account settings; in bulk mode every photo also has its own Add to tally button.
LabelText input
Rename a tally row. Edits and removals wait until you choose Save changes, so you can fix several rows at once.
CountNumber input
Correct a row's count; totals, the chart and exports follow once the change is saved.
Save changesOne-click
Apply every edited or removed tally row in one step, or choose Discard changes to leave the sheet as it was.

Chart

By objectPresets
The chart is the same in every counting tool and covers the tallies of all of them. By object draws a separate line chart for each tally name, such as pipes and people. By tool draws a chart for each counting tool.Options: By objectBy tool
PeriodPresets
Choose how far back the chart looks. Days without a count appear as zero.Options: 7 days30 days90 days12 months

History

Counting setupGallery
Keep comparable counts together. A first setup is created for you, so the first count can be saved straight away.
Observed atText input
The date and time of the count, shown as a date and a time field.
NotesText input
Starts with every detected object and its count, one per line, such as Pipes - 11. Edit it before saving.
Save countOne-click
Save the count to your account history. Open a saved count later to correct it or download its source photo.
Free to use · No signup required · Without watermarkUploads are encrypted in transitRemoved under our retention policy

How Pill Counter helps you get it done

Real problems it solves every day — for businesses, creators, and everyday tasks. Find the use case that fits you and start.

For Business

Pharmacy Fill Double-Checks in Seconds

Photograph a filled tray as a second check on a manual count. A qualified pharmacist must review each counted detection, correct the AI tally, and follow the required medication procedure before release.

Legal

Controlled-Substance Draft Review Trail

Treat the AI tally as a draft, have a qualified person complete the required manual controlled-substance procedure, and export only the corrected result alongside the official record. The AI report is not a compliance audit trail by itself.

For Business

Care Home Medication Round Counts

Use a photo count only as a second check. Qualified care staff must review and correct the markers and complete the required manual medication count between shifts; AI must not replace that procedure.

For Developers

Supplement & Capsule Manufacturing QC

Run Similar items mode on a production sample after marking the specific capsule or tablet in the Examples setting, and have a qualified reviewer verify the markers before shipping.

Productivity

Multi-Tray Stock Checks for Pharmacies

Open Bulk audit to run Distinct objects mode across every tray photo, then have a qualified person review every marker and correct each tray before exporting the tally.

Watch each transformation land

Every photo crosses the slash untouched and comes out the other side finished.