Layout, blocks, geometry¶
Block¶
Reading-order-grouped paragraph with bounding box, layout class, and content.
Emitted on the response when include_blocks=True.
Block
¶
Bases: _Frozen
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
layout_id |
TYPE:
|
class_name |
TYPE:
|
bounding_box |
TYPE:
|
content |
TYPE:
|
order_index |
TYPE:
|
TextItem¶
A single recognised word/line with confidence and bounding box.
TextItem
¶
Bases: _Frozen
| ATTRIBUTE | DESCRIPTION |
|---|---|
text |
TYPE:
|
confidence |
TYPE:
|
bounding_box |
TYPE:
|
id |
TYPE:
|
layout_id |
TYPE:
|
source |
TYPE:
|
source
class-attribute
instance-attribute
¶
BoundingBox¶
BoundingBox
¶
LayoutBox¶
LayoutBox
¶
Bases: _Frozen
| ATTRIBUTE | DESCRIPTION |
|---|---|
class_name |
TYPE:
|
class_id |
TYPE:
|
confidence |
TYPE:
|
bounding_box |
TYPE:
|
id |
TYPE:
|
LayoutLabel¶
LayoutLabel
¶
Bases: StrEnum
supplementary_region
class-attribute
instance-attribute
¶
Table¶
Table
¶
Bases: _Frozen
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
bounding_box |
TYPE:
|
text |
TYPE:
|
html |
TYPE:
|
cells |
TYPE:
|
Formula¶
Formula
¶
Bases: _Frozen
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
bounding_box |
TYPE:
|
text |
TYPE:
|
is_inline |
TYPE:
|
latex |
TYPE:
|
Tables and formulas — partial support today
As of server v2.2.3, the server detects table and formula regions (you
get a bounding_box and row-major OCR'd text) but does not emit
cell structure or LaTeX source. Table.html, Table.cells, and
Formula.latex are always None. The SDK is forward-compatible: when the
server ships table-structure-recognition and LaTeX OCR, those fields will
populate without any SDK code changes.