OCRSchema

OCRSchema

Type: object
No Additional Properties

Words

Type: array

List of recognized words with their bounding boxes, content, direction, and scores

No Additional Items

Each item of this array must be:

WordPrediction

Type: object
No Additional Properties

Points

Type: array of array

Bounding box of the word in the format [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]

Must contain a minimum of 4 items

Must contain a maximum of 4 items

No Additional Items

Each item of this array must be:

Type: array of integer

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Each item of this array must be:

Content

Type: string

Text content of the word

Direction

Type: string

Text direction, e.g., 'horizontal' or 'vertical'

Rec Score

Type: number

Confidence score of the word recognition

Det Score

Type: number

Confidence score of the word detection