Block
¶
Source code in docs_src/capo_comprehend/types/block.py
block_type
instance-attribute
¶
block_type: NotRequired[BlockType]
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
geometry
instance-attribute
¶
geometry: NotRequired[Geometry]
Co-ordinates of the rectangle or polygon that contains the text.
relationships
instance-attribute
¶
relationships: NotRequired[ListOfRelationships]
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.