Count shapes
Try it interactively →POST /api/image-countCount distinct objects (blobs) in an image. Configurable size and brightness thresholds. Useful for cell counting, particle counting, and inventory checks.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image bytes. |
| threshold | number (0…255) | 127 | Binarisation threshold. |
| minArea | number | 50 | Drop shapes whose pixel area is below this. |
| maxArea | number | 0 | Drop shapes whose pixel area is above this (0 = no upper limit). |
Response
Modes: json. Cache: yes (24h TTL).