xtract.bot
POST /api/image-count

Count distinct objects (blobs) in an image. Configurable size and brightness thresholds. Useful for cell counting, particle counting, and inventory checks.

Detects and counts distinct objects (connected blobs) in an image. Configurable thresholds tune what counts as a "blob" (minimum size in pixels, brightness range, etc.). Useful for cell-culture counting, particle counts in scientific imagery, and quick inventory checks where the objects are clearly separated from the background.

Inputs

NameTypeDefaultDescription
image*fileInput image bytes.
thresholdnumber (0…255)127Binarisation threshold.
minAreanumber50Drop shapes whose pixel area is below this.
maxAreanumber0Drop shapes whose pixel area is above this (0 = no upper limit).

Response

Modes: json. Cache: yes (24h TTL).