Skip to main content
Version: Next

Interface: OCRDetection

Defined in: types/ocr.ts:14

OCRDetection represents a single detected text instance in an image, including its bounding box, recognized text, and confidence score.

Properties

bbox

bbox: Bbox

Defined in: types/ocr.ts:15

The axis-aligned bounding box around the detected text, with x1/y1 as the top-left corner and x2/y2 as the bottom-right corner.


score

score: number

Defined in: types/ocr.ts:17

The confidence score of the OCR detection, ranging from 0 to 1.


text

text: string

Defined in: types/ocr.ts:16

The recognized text within the bounding box.

We are Software Mansion.