fba_measure_package
Measure a packaged box or bag from 1–5 3D scans to get dimensions in inches, girth, volume, and weight, returning data ready for Amazon FBA size tier and fee analysis.
Instructions
Measure the PACKAGED unit (the box or bag as it ships) from 1 to 5 scans of the same package.
Inputs: path = one scan file, or paths = a list of 2 to 5 scans of the same pack (combined by median per
sorted edge). A scan is a 3D scan export (a Scaniverse, Polycam or 3D Scanner App OBJ or PLY mesh or point
cloud; a .zip holding the .obj plus its .mtl and texture is fine) of the package on a table, a metric depth
file (HEIC, TIFF, 16-bit PNG, NPZ) or an iOS capture bundle (folder or .zip); rgb_path is an optional
companion photo for a single depth file. For OBJ/PLY the file's units (m, cm, mm or inches) and up axis are
detected from the table and plausible sizes, and notes say what was assumed; if that is wrong or ambiguous,
pass scan_units (m|cm|mm|in: what the FILE is written in; Scaniverse writes METERS, and units="cm" works as
an alias) and up_axis (x|y|z, signs ok). The package is the object nearest the middle of the scan.
weight is the user's own scale reading of the packed unit (a scan cannot weigh): a number
(POUNDS unless weight_unit says otherwise) or "22 oz" / "640 g"; weight_sigma_oz is the scale's 1-sigma
error in ounces. bbox [x0, y0, x1, y1] or point [x, y] pick the package out of the scene; they are in PHOTO
pixels when the scan carries a photo (HEIC or a capture bundle with its colour image), otherwise in
depth-image pixels (the result's pixel_space says which). reference is only used when the depth is
relative rather than metric: {"type": "credit_card", "corners": [[x,y] x4]} or {"type", "bbox"} in the same
pixel space (see measure_list_reference_objects).
Returns dims_in {longest, median, shortest} in INCHES with 1-sigma sigma_in per edge (LiDAR is never reported better than 0.2 in), dims_cm, length_plus_girth_in, volume_cubic_in, unit_weight (user-supplied), confidence (high/medium/low), quality_flags (thin_item_unreliable, low_coverage, soft_or_irregular_surface, scan_disagreement, monocular_only, relative_depth_not_metric, assumed_intrinsics), capture_advice and fba_args, ready to pass to fba_analyze. Relative, monocular or assumed-intrinsics depth is never high confidence. Items thinner than 1.5 in cannot be certified by a depth scan.
This is an estimate for packaging decisions; Amazon measures the unit itself and its measurement governs. detail="full" adds per-scan results and the assumptions list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| path | No | ||
| paths | No | ||
| point | No | ||
| units | No | both | |
| detail | No | summary | |
| weight | No | ||
| up_axis | No | auto | |
| rgb_path | No | ||
| reference | No | ||
| scan_units | No | auto | |
| weight_unit | No | ||
| weight_sigma_oz | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||