ReadResult Class

Text extracted from a page in the input document.

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

Inheritance
ReadResult

Constructor

ReadResult(*, page: int, angle: float, width: float, height: float, unit, lines, language: Optional[str] = None, **kwargs)

Parameters

page
int
Required

Required. The 1-based page number of the recognition result.

language
str
Required

The BCP-47 language code of the recognized text page.

angle
float
Required

Required. The orientation of the image in degrees in the clockwise direction. Range between [-180, 180).

width
float
Required

Required. The width of the image in pixels or the PDF in inches.

height
float
Required

Required. The height of the image in pixels or the PDF in inches.

unit
str or TextRecognitionResultDimensionUnit
Required

Required. The unit used in the Width, Height and BoundingBox. For images, the unit is 'pixel'. For PDF, the unit is 'inch'. Possible values include: 'pixel', 'inch'

lines
list[Line]
Required

Required. A list of recognized text lines.