Luxonis / Measurement guide
OAK parcel measurement · visibility v002

One scene.
Three dimensions.

From a calibrated depth image to a parcel’s length, width and height. See how the algorithm makes a measurement, when it works well, and where its estimates can fall short.

A guide to the evaluated fast_baseline_oak4_visibility_01 algorithm. Every real example below comes from a captured validation snapshot.

Real validation capture · fitted measurement overlay
Objects found in the test set17 / 17

No missed reference parcels or extra detections.

Test measurements within ±5 mm8 / 17

All three dimensions must meet the tolerance.

OAK-4 processing · three parcels11.18 frames/s

Fresh depth inference and measurement on recorded images. Explore the timing data.

Finding a parcel and measuring it accurately are different tests. This algorithm found every reference object in the evaluated sets. Fewer than half of the measurements were within ±5 mm on all three dimensions. The examples and error plots below show that distinction.
01 / What you need

Depth gives the shape.
Images check the boundaries.

The algorithm combines 3D geometry with three synchronized camera views. It measures one scene at a time; it does not track parcels or smooth measurements over time.

1 · A 3D scene

A point cloud in millimeters

Each depth point describes a surface in 3D. The algorithm groups points above the support surface into possible parcels, then measures their supported outer edges.

Depth generation is upstream. This geometric parcel algorithm does not need a parcel-detection neural network.

2 · A known surface

The plane under the parcels

A supplied support plane defines zero height and the direction “up.” The camera and the plane must use the same calibrated coordinate frame.

A wrong plane can affect both which points count as foreground and the reported height.

3 · Calibrated views

Color, left and right images

Image edges and depth boundaries help determine whether a parcel is fully visible. At least one view must support the complete, unobstructed outer silhouette.

The image pixels, lens calibration and point cloud must correspond to the same scene.

The evaluated camera profile

Unrectified color at 2000 × 1500 and left/right mono at 1280 × 800. Other resolutions or rectification policies have not been established as equivalent: some visibility thresholds are measured in image pixels.

Integration details

Color is decoded to RGB uint8; stereo views use grayscale uint8. Scene points are finite float32 XYZ in millimeters, with a supplied upward plane and per-view intrinsics, distortion and scene-to-camera transforms. Source images and point clouds must be synchronized. The OAK application used NeuralDepth LARGE at 768 × 480 upstream; that depth grid is distinct from the three source-image grids. The current parcel wrapper warns on a different source-image size and continues processing without resizing or retuning.

02 / How a measurement is made

Find it. Check it. Measure it.

Step through the simulated scene to understand the workflow. Then compare it with the two real captures below.

Find

Separate points above the surface, reduce them into small 3D cells, and connect neighboring cells into parcel proposals.

→
Check

Use the camera views to reject clipped or obstructed proposals. A complete silhouette in one view is enough to proceed.

→
Measure

Remove isolated returns, fit and refine a footprint, then estimate a supported height above the plane.

Simulated explanation · not a scored capture
Visibility is an eligibility check, not a measurement guarantee. A parcel can be fully visible while noisy, incomplete or irregular surface returns still produce a dimension error. A rejected proposal is not sent to the measurement stage. A successful scene may contain no eligible parcels.
How computation is scheduled

The frozen v002 configuration prepares the three camera projections with three workers, then checks candidates sequentially. This reduces CPU contention. Contiguous depth-probe coordinates avoid an unnecessary intermediate tensor. The application controller also keeps the newest pending scene ready while one measurement is in flight. The speed section explains the cost of scene processing, fitting and the application pipeline.

find_candidates: sample → cluster → visibility checks → eligible point sets
measure: remove isolated points → footprint → supported height → cuboid

Detection uses 18 mm voxels and 26 mm connectivity. Measurement uses an 8 mm voxel grid, local support within 24 mm, and independent footprint and height support rules. The full evaluated parameters are in the evidence section.

03 / Where it measured well

All three dimensions
within 1.90 mm.

The best validation snapshot under the declared ranking rule. Compare the measured dimensions with the published reference, then inspect the actual image, point cloud and fitting steps.

04 / Where it struggled most

A parcel found correctly.
A width 32.27 mm too large.

The most difficult validation snapshot under the same rule. It passes the visibility check, but its fitted footprint is too wide. This is a measurement error, not a missed detection.

How these examples were selected

Among all 18 validation snapshots and 19 matched parcels, rank each snapshot by its largest absolute length, width or height error. For a multi-parcel snapshot, use its worst parcel. These are the minimum and maximum under that rule. There were no missing detections or processing failures in this population. The held-out test remains separate and supplies no new images for these walkthroughs.

Reference sizes were already published for the same frozen evaluation release. Errors here are recomputed from this candidate’s predictions; no other algorithm’s errors or overlap scores are reused. Both full-split MAE, signed bias, relative error and all-axis success counts agree with the official receipts. Reference sizes were published to 0.01 mm; displayed comparisons round to 0.001 mm.

05 / Accuracy in the evaluated data

Every object found.
Dimension error still matters.

Validation was used during development. The approved held-out test evaluated the frozen candidate separately. These small sets describe the measured scenes, not a guarantee for every parcel, camera placement or environment.

“Within ±5 mm”

The length, width and height must each be no more than 5 mm from the reference. A parcel can miss this test even when two dimensions are excellent.

Mean absolute error, or MAE

The average size of the error in one dimension, ignoring direction. MAE is not a worst-case bound; the width outlier above is much larger than the average.

Positive and negative error

Signed error is measured minus reference. Positive values are too large; negative values are too small. The green band in the error plots is the ±5 mm tolerance.

Every parcel, every dimension

Show the complete measurement and reference table

Average error and signed bias

Detection and overlap

Footprint overlap compares the predicted and reference base areas. A value of 1 is a perfect match; finding an object does not mean its dimensions are exact.

What the data can tell you

The aggregate scores come from this candidate’s evaluation receipts. Per-parcel dimension comparisons use its frozen predictions and previously published reference dimensions from the same release, with independent aggregate cross-checks.

Individual reference poses and overlap scores are not available here. Official held-out median and P95 dimensional errors remain suppressed; they are not filled in from the derived plots.

06 / This algorithm’s processing cost

One scene is shared work.
Each parcel adds a fit.

Detection and visibility operate on the scene; dimensions are then fitted for each eligible parcel. The measurements below describe this algorithm on OAK-4.

Depth inference + parcel measurementwith three measured parcels in every completed frame

671 completed frames in 60 seconds, after ten seconds of warm-up. Four real recorded image inputs are supplied repeatedly; NeuralDepth LARGE, point cloud generation and parcel measurement run afresh. Camera/file decoding and browser rendering are outside this benchmark. This is sustained throughput, not the latency of one frame.

One, two and three parcels in the replay

After depth is ready: detector entry → measurement arrival. Each bar groups frames by their reported parcel count. This measured interval includes detection, visibility, fitting and node scheduling. It excludes depth inference and controller input preparation. P95 is the 95th percentile of recorded processing times.

Parcels / frameFramesMean ms / frameMedian ms / frameP95 ms / frameMean ms / parcel, amortized

All 663 replay outputs are retained, including startup: 343 with one parcel, 226 with two, 80 with three, plus 14 with zero, four or five. The extra counts remain in the evidence. These are repeated observations from one recording, with no warm-up removal; counts are algorithm-reported rather than independently labeled.

An observed workload trend. The parcel-node interval averaged 48.13, 55.23 and 62.64 ms for one, two and three parcels. Scene geometry, visibility and rejected proposals also change. The replay was paced at 3 frames/s, so these times do not establish maximum FPS or full-pipeline latency. Full-pipeline throughput and camera-to-result latency for one and two parcels were not recorded; the 11.18 frames/s result above is a separate three-parcel benchmark.
Explore the separate validation timings and fitting-only costs
Complete algorithm

Mean per scene across 18 validation snapshots, three measured runs each. Input decoding is outside this timer.

Dimension fitting only

Measured fitting time divided by fitting calls. Detection, visibility and parcel extraction are outside this phase.

Three-parcel node batch

Separate wrapper benchmark: mean batch cost divided by three measured parcels. Includes shared work; not isolated object latency.

Validation snapshots: object count and processing time

One dot per real validation snapshot, averaged over three measured runs. Horizontal offsets separate snapshots with the same object count. Select a point to inspect its workload.

Measured parcelsDistinct scenesTimed runsScene msScene ms / parcelFitting ms / parcel

“Object count” here means eligible parcels that were measured, not every proposal considered. Rejected proposals still cost detection/visibility time. “Scene ms / parcel” spreads shared work over the measured objects; it is an amortized cost, not the latency of processing one object alone.

All 18 scene timings and workload counts
These observations are not a scaling law. The cohort contains 17 one-parcel scenes and only one two-parcel scene. Shapes, point counts and rejected proposals also differ. It shows substantial variation at a fixed object count, but cannot establish a per-extra-object slope, a linear trend or performance for larger counts. No fitted or extrapolated curve is shown.
Inside the algorithm timer

Scene proposal generation and visibility → eligible-point extraction → all parcel fits → adapter checks and completion of every worker. Inputs are already decoded. Each scene has one warm-up before three timed runs; component construction and warm-up are excluded.

Why count alone is insufficient

The scene must be projected and clustered before any parcel is measured. The number of proposals, retained points, visibility work and parcel geometry affect cost. More parcels can share that scene work; a lower amortized cost does not mean the second parcel is free.

Separate three-parcel processing measurements

These workloads use the same algorithm, but different timer boundaries. They are not extra points on the validation count chart.

ScopeObserved resultWhat it means
Detector + dimensioner nodes200 measured three-parcel batches, after ten warm-ups, using four recorded scene inputs. Includes native-message construction, scene decoding/checks, algorithm and scheduling; excludes NeuralDepth and archive decoding.
Fresh inference + prepared application11.18 batches/s
3 measured parcels per batch
671 successful batches in a fixed 60-second window after ten seconds of warm-up. Recorded images are predecoded; inference, point cloud, controller and measurement run afresh. This throughput is not a per-object latency measurement or a new live-camera FPS claim.

The three-parcel node batch averages 51.19 ms, or 17.06 ms per parcel when shared work is divided by three. Do not compare that amortized value directly with the validation cohort’s fitting-only time.

07 / Practical limits

Evaluate the scene you intend to measure.

The best and worst cases are useful examples, not a complete map of failure modes.

Keep the outer shape visible

Clipped or obstructed silhouettes are rejected or marked uncertain. Touching parcels can form one connected proposal; very sparse objects can fail the minimum support checks.

Do not treat a fit as certainty

Supported surface points can still produce an oversized footprint. The difficult case passes eligibility but misses the width tolerance by a wide margin.

Check calibration and your population

Image geometry, the support plane and source synchronization are part of the measurement. Test representative parcel shapes, surfaces, spacing and camera placements under your target tolerance.

08 / Evidence and technical reference

Trace every number to its source.

The real examples use hash-verified validation inputs. Display images and point samples are reduced only for presentation; traced predictions match the uninstrumented frozen algorithm.

Candidate, release and evaluation identities
Frozen parameters
Reference dimensions, error derivation and case ranking

Reference dimensions are a separately published operator disclosure for the same release. The comparison uses this candidate’s own predictions. Historical candidate errors and IoUs are not reused. Both datasets reproduce the official MAE, bias, relative error and tolerance counts. The selected real cases are ranked within validation only.

Reproducibility record and hashes

Public evidence export: internal administrative links and metadata are omitted; numerical results are unchanged. Full benchmark inputs are not distributed.