Skip to main content

OcrResult

@forge/monorepo


@forge/monorepo / backend/src / OcrResult

Type Alias: OcrResult

OcrResult = object

Defined in: backend/src/documents/vision.ts:58

Properties

blocks

readonly blocks: readonly DocumentBlock[]

Defined in: backend/src/documents/vision.ts:59


confidence

readonly confidence: number

Defined in: backend/src/documents/vision.ts:67

0–1, the engine's own confidence.

Required, not optional. An engine that cannot report one should say 0 and let the low-confidence flag fire, because "no confidence reported" and "high confidence" must never be the same value — the default would be the optimistic one and nobody would notice.


pageCount?

readonly optional pageCount?: number

Defined in: backend/src/documents/vision.ts:68


warnings?

readonly optional warnings?: readonly string[]

Defined in: backend/src/documents/vision.ts:69