spatial-monorepo / editor/src / DetectedUnit
Interface: DetectedUnit
Defined in: packages/editor/src/recognition/types.ts:49
A room polygon in pixel space, relative to the FloorPlanScan dimensions. labelText is OCR output from the image; inferredCategory is derived from labelText (IMDF unit category, e.g. 'restroom'). Both optional — the model may detect geometry without a readable label.
Properties
confidence
confidence:
number
Defined in: packages/editor/src/recognition/types.ts:55
0–1.
inferredCategory?
optionalinferredCategory?:string
Defined in: packages/editor/src/recognition/types.ts:53
IMDF 1.0.0 unit category slug (e.g. 'restroom', 'stairs', 'office').
labelText?
optionallabelText?:string
Defined in: packages/editor/src/recognition/types.ts:51
pixelPolygon
pixelPolygon: [
number,number][]
Defined in: packages/editor/src/recognition/types.ts:50
