measure_object
Measure an object's length, width, and height from depth captures or 3D scans, returning real-world dimensions with confidence levels.
Instructions
Size (length, width, height) of one object standing on a flat surface, from a depth capture or 3D scan.
path: LiDAR/Portrait HEIC, capture bundle (folder or .zip), a metric depth file (TIFF, 16-bit PNG in mm,
NPZ), or a 3D scan: a Scaniverse, Polycam or 3D Scanner App OBJ or PLY export (a .zip holding the .obj plus
its .mtl and texture is fine). A scan must show the object standing on a table; the object is the one
nearest the middle, as a gravity-aligned box, and rgb_path, bbox, point and reference do not apply to it. The
file's units and up axis are detected and reported in the result's scan block; if they are wrong or
ambiguous pass scan_units (m|cm|mm|in: what the FILE is written in, units="cm" works as an alias) and
up_axis (x|y|z, signs ok). rgb_path: optional original photo (its EXIF gives the focal length; its pixels
are the coordinates for bbox and point). bbox [x0, y0, x1, y1] or point [x, y]: PHOTO pixels (depth-map
pixels when there is no photo) to pick the object. reference {"type": "credit_card", "corners": [[x,y] x4]} (see
measure_list_reference_objects) rescales relative depth and fixes a guessed field of view. units:
metric|imperial|both.
Returns summary (quote it), confidence (worst of the edges, the same rule fba_measure_package uses),
measurements longest/middle/shortest_edge (+/- about 95%) and bounding_box_volume (the enclosing box, NOT a
vessel's capacity: use kitchen_measure_vessel for that), quality, warnings. Never "high" for relative or
monocular depth or for a file without camera intrinsics (those are "low"), nor for a scan whose units had to
be guessed (check scan.units_source). Under 1.5 cm is unreliable.
Plain photo with no depth: pass bbox around a FLAT object plus a rectangular reference lying flush beside it
and you get its footprint (length x width, no heights, no install needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| path | Yes | ||
| point | No | ||
| units | No | both | |
| up_axis | No | auto | |
| rgb_path | No | ||
| reference | No | ||
| scan_units | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||