Line Class

An object representing a recognized text line.

All required parameters must be populated in order to send to Azure.

Inheritance
Line

Constructor

Line(*, bounding_box, text: str, words, language: Optional[str] = None, appearance=None, **kwargs)

Parameters

language
str
Required

The BCP-47 language code of the recognized text line. Only provided where the language of the line differs from the page's.

bounding_box
list[float]
Required

Required. Bounding box of a recognized line.

appearance
Appearance
Required

Appearance of the text line.

text
str
Required

Required. The text content of the line.

words
list[Word]
Required

Required. List of words in the text line.