Add a microscope photo
One photo opens here. Several photos, or a whole folder, make a batch report.
Photos are analysed on your device and are never uploaded.
Batch report
Add several photos or a whole folder (or drop them anywhere in the window) to count every photo and get one report here: count, live, dead and viability. Click a photo to check or correct it; its row follows every change you make.
| file | count | live | dead | viability |
|---|
History
Photos you analyze appear here so you can jump back to them. On the web page, History is cleared every time the page is opened; the Cell Counter in the Labrarium app keeps it.
Install Cell Counter as an app
Installed, it has its own window and icon, works without an internet connection and keeps your History between sessions.
How to use this
Basic workflow
- Add one photo to inspect it, or several (or a whole folder) for a batch report. You can also drop them anywhere in the window. In a batch, click a row to open that photo, then use the arrows above the photo to step through the rest.
- Pick a mode (Total count, Viability, Fluorescence, or Hemocytometer) and click Auto-tune settings — it works out the cell size and a sensible minimum size for this photo by itself.
- Fix what it gets wrong: click a marker to remove or restore it, or click empty space to add a cell it missed. If cells are merged or over-split, adjust Cell diameter (smaller splits more) or Mask strictness (lower keeps more cells). In Viability mode, use Mark by circling to drag a loop around dead (red) or alive (green) cells, or Shift+click a single cell.
- Download the annotated image — or in batch mode, the CSV report and a ZIP of every annotated photo. Every photo you open is also kept in History (with its live / dead counts when Viability was on), and Download CSV there saves all of them as a spreadsheet. The app keeps History on your device until you clear it; on the web page it is cleared each time the page is opened, so download it before you leave. A batch report always includes count, live, dead and viability.
- To put several counted photos together, tick them in the batch report (every photo is ticked to begin with) or click Select in History and click the photos, then Combine photos: one picture shaped as a square or as a wide rectangle, every photo numbered in its corner.
The AI model
- A small neural network made for this app outlines every cell and separates cells that touch. It runs on your own device, a few seconds per photo, and needs nothing from the internet.
Fluorescence
- For photos of stained nuclei or cells on a dark background: DAPI or Hoechst, GFP, or a merge of several stains. It counts in one colour; Auto takes blue, the nuclear stain, whenever the photo has it.
- No neural network and nothing learned from photos: the background is measured box by box and subtracted, a cell is what stands clearly above it, and touching nuclei are split where the brightness dips between them. Each outline is drawn where the brightness falls to about a third of that cell’s own peak.
- For every cell it measures the area, the mean intensity and the CTCF (corrected total cell fluorescence: integrated density minus area × background), on the photo’s own values. Download cell table saves them, cell by cell.
- With a Marker (a second colour of the same photo, or a second photo of the same field) every cell is called positive or negative, and the share of positive cells is given. The histogram shows every cell’s marker signal and the threshold. Set the threshold on a negative control and keep it for the whole experiment.
- Intensities can only be compared between photos taken with the same exposure and exported the same way, before any brightness or contrast change for display. Raw microscope files (.czi, .nd2, .lif) need exporting as PNG or TIFF first.
Hemocytometer
- For photos of cells in a counting chamber (an improved Neubauer chamber or similar). The ruled grid is found by itself: its tilt, every line, and the squares between them. The lines are taken out of the picture before counting, so they are never counted as cells, and cells lying on a line keep their shape.
- Each square counts the cells touching its top or left line and not those touching its bottom or right line (they belong to the next square), so no cell is counted twice. Only squares wholly in the photo are used; Choose squares leaves squares out or takes them back.
- Cells per mL = cells per square ÷ (square side² × chamber depth) × 1000 × dilution. Set the square side (Auto reads it from the triple lines), the depth (0.1 mm for Neubauer chambers) and the dilution (2 after mixing 1:1 with trypan blue).
- Works on phase-contrast and bright-field photos alike, with no neural network.
- Live / dead (trypan blue). Tick it to tell every counted cell live or dead: you get live, dead, viability and live cells per mL, and every square shows live / dead. Dead cells take the dye up, so they are dark all through, with no bright rim (phase contrast) or bright core (bright field); live cells keep it out. Each cell gets a dye score from 0 to 100 and is dead from Dead from dye score up (50 by default). Shift+click a cell to mark it dead or live by eye; a cell you add by clicking counts as live until you Shift+click it. Download squares (CSV) gives every square with its cells, live and dead.
Counting area
- In the other modes, Rectangle or Freehand under Results draws areas on the photo; only the cells inside them are counted (in a rectangle, cells touching its top or left edge count, those touching its bottom or right edge do not; freehand, a cell counts when its centre is inside). Cells outside are shown grey. Areas belong to the photo on screen and are kept with it in History.
Strengths
- Runs entirely on your device — nothing is uploaded to a server, no account needed.
- Counts cells in brightfield and phase-contrast photos and tells live from dead cells, unstained or with a dye such as trypan blue.
- Counts stained nuclei in fluorescence photos, measures how bright every cell is, and calls cells positive or negative for a second stain.
- Counts cells on a hemocytometer: finds the grid, takes its lines out so they are not counted, counts each square by the usual rule and gives cells per mL; with trypan blue it also tells live from dead cells, square by square, and gives live cells per mL.
- Copes with uneven lighting and separates cells that touch.
- Traces each cell’s actual outline, and every correction you make is remembered per photo in History.
Weaknesses — and what to do about them
- The AI model was trained on photos of one cell line (MDA-MB-231) from one microscope. On other cells, stains or microscopes it can do clearly worse, so check it before you trust it. Very dense, heavily overlapping clumps can be under-split, and some very faint cells are missed. Try a smaller cell diameter and lower strictness, then fix the rest by clicking.
- The same photo can give a count a few per cent apart in different browsers, and in the Mac app, because each makes pictures smaller in its own way. Compare photos that were counted in the same place.
- The cell diameter is estimated automatically; for unusual photos (very sparse, very large or very tiny cells) set it by hand and untick “detect automatically”.
- Dead cells. In Viability mode choose how dead cells are found. Look (unstained, beta) is an AI model that flags cells that look bubbly, blebbing or ruptured, with debris leaking out around the outline. We tested it on photos of this cell line, but it can still make mistakes (it tends to over-flag blurry photos and can miss very sharp ones), so correct it by circling cells. Dye stain is the older rule for trypan-blue photos (uniformly dark, no bright core). Whichever you use, fix mistakes with Mark by circling → Dead (drag a loop; everything inside a red loop counts as one dead cell, a loop around nothing the detector found counts as one missed dead cell), a green loop to mark cells alive, or Shift+click one cell. Marks are saved with the photo in History. Auto-tune only sets the staining threshold when it finds two clearly separate groups.
- Fluorescence. Nuclei that overlap with no dip in brightness between them stay one outline: click inside it, on the second nucleus, to split it there. Very faint nuclei next to bright ones can be left out; raise Sensitivity. The positive / negative call is only as good as its threshold: check it on the histogram and on a negative control.
- Hemocytometer. Faint cells and cells hidden under a triple line can be missed, and two cells pressed together may stay one outline: click to add a cell, or inside the outline on the second cell to split it. Photos must show the lines straight across (a grid tilted by up to 5° is fine); a curved or very blurred grid is not found, and then the whole photo is counted with no cells per mL. With live / dead on, cells out of the focal plane have a faint rim and can be called dead, and dark debris of cell size can be counted as a dead cell: check the red outlines and Shift+click (or click to remove) where needed. The live / dead rule was checked on phase-contrast photos with a dark background and on bright-field trypan-blue photos; a grey-background phase-contrast photo has not been tried.
- Manual corrections apply only to the photo you’re currently viewing — batch mode doesn’t carry them over to other photos.
- Not validated against a manually-counted ground-truth dataset. Treat counts as a fast estimate and spot-check against a manual tally, especially before using them in anything you’ll report.
Method
Credits & licences
Cell Counter is a research tool. Your photos are analysed on your own device and are never uploaded.
AI engine
The AI engine is a small neural network made for this app. It was trained on our own microscope photos (MDA-MB-231 cells in brightfield, 4× and 10× objectives, unstained and with trypan blue), and the code that runs it is plain JavaScript written for this app. It contains nothing from Cellpose or from any other third-party model, dataset or code library, so no licence of anyone else applies to it.
The first-draft outlines used for training were drawn on those photos with Meta’s Segment Anything model (Apache 2.0 licence), which was used as a tool only: it is not part of this app.
Fluorescence mode
Fluorescence mode uses no model at all: it is image processing written for this app (fluor_engine.js), with background estimation, Otsu’s threshold, a watershed and convex hulls as described in the image-analysis literature. No code or data from anyone else is in it.
Hemocytometer mode
Hemocytometer mode also uses no model: it is image processing written for this app (hemo_engine.js). It finds the grid from the photo itself and removes it by subtracting each line’s own measured profile. Live / dead by trypan blue is a fixed rule on each cell’s brightness against the background around it, nothing learned from photos. No code or data from anyone else is in it.
Other software
None. Everything in this app was written for it, it uses the fonts already on your device, and it loads nothing from the internet.
Dead-cell “Look” detector
A small model made for this tool from cells labelled dead or alive by hand in 18 photos of a doxorubicin series on MDA-MB-231 cells.
Please note
For research use only. This is not a medical device and must not be used for diagnosis or treatment decisions. Counts are estimates: spot-check them against a manual count before relying on them.
Privacy
Your photos and History stay on your device. The app keeps the newest 40 photos in History until you remove them; on the web page, History is cleared each time the page is opened. The app does not contact any other service.