Skip to content

spatial-monorepo


spatial-monorepo / editor/src / inferCategoryFromLabel

Function: inferCategoryFromLabel()

inferCategoryFromLabel(labelText): string | undefined

Defined in: packages/editor/src/recognition/prompt.ts:62

Derive an IMDF unit category from OCR label text; undefined when no rule matches.

Parameters

labelText

string | undefined

Returns

string | undefined

Released under commercial licensing.