Skip to content
Fourohtwo

Count colonies, particles or spots in an image

bild.halowerk.com/v1/colony-count

Count colonies, particles or spots in an image: Otsu threshold, connected components with size filter, an estimate for touching clumps, optional circular plate region, with positions, sizes and circularity. Grey copy (long side ≤ 1600), optional circular ROI, Otsu threshold inside it; objects are the minority class unless polarity is set. 8-connected components within min/max area (original pixels

BaseAnswering
POSThttps://bild.halowerk.com/v1/colony-count

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://bild.halowerk.com/v1/colony-count", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4AgMAAAAIzBH8AAAADFBMVEU7LBHy6tDLwqh2aE4Zcn5WAAAACXBIWXMAAAsTAAALEwEAmpwYAAABoElEQVRYhe2XsW3DMBBFf+wqRdJlhIyQIp1HcBFSAqRCA7jwCFrCe2gELZERskcgWCTvyLsLUybgrwzw2fL/92Ge4SqFBlqCeUrUwF/HszzXgQPwVQVOwGMVOAOHKnAFjio4pK/lAeCmgQui024DPxXQkw/52MAXBewBvNaAI4C3GnBCyo6DQ3B5B68AnkQzS3B5B08AHqR4fHxdgizwProUQDrCMboUQFqKKboszbCaXeNBGQ8r7ik+qgyc6ZSBdIQm6MVmuRKkNWO6ZmZ),
});
console.log(await res.json());

Example input

{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4AgMAAAAIzBH8AAAADFBMVEU7LBHy6tDLwqh2aE4Zcn5WAAAACXBIWXMAAAsTAAALEwEAmpwYAAABoElEQVRYhe2XsW3DMBBFf+wqRdJlhIyQIp1HcBFSAqRCA7jwCFrCe2gELZERskcgWCTvyLsLUybgrwzw2fL/92Ge4SqFBlqCeUrUwF/HszzXgQPwVQVOwGMVOAOHKnAFjio4pK/lAeCmgQui024DPxXQkw/52MAXBewBvNaAI4C3GnBCyo6DQ3B5B68AnkQzS3B5B08AHqR4fHxdgizwProUQDrCMboUQFqKKboszbCaXeNBGQ8r7ik+qgyc6ZSBdIQm6MVmuRKkNWO6ZmZ