xtract.bot
POST /api/image-measure

Measure object sizes in an image. Calibrate with a reference object of known dimensions; the tool returns measurements for everything else in the same units.

Calibrates the image scale from a reference object of known dimensions (a coin, a ruler, a credit card) and then returns size estimates for the other detected objects in the same units. Useful for product photography, scientific imaging, and any workflow where physical measurements need to come out of an image.

Inputs

NameTypeDefaultDescription
image*fileInput image bytes.
thresholdnumber (0…255)127Binarisation threshold.
minAreanumber100Drop shapes whose pixel area is below this.

Response

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