Condividi tramite


FormRecognizerModelFactory.FormPage Method

Definition

Initializes a new instance of the FormPage class.

public static Azure.AI.FormRecognizer.Models.FormPage FormPage (int pageNumber, float width, float height, float textAngle, Azure.AI.FormRecognizer.Models.LengthUnit unit, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormLine> lines, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTable> tables, System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormSelectionMark> selectionMarks);
static member FormPage : int * single * single * single * Azure.AI.FormRecognizer.Models.LengthUnit * System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormLine> * System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormTable> * System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.Models.FormSelectionMark> -> Azure.AI.FormRecognizer.Models.FormPage
Public Shared Function FormPage (pageNumber As Integer, width As Single, height As Single, textAngle As Single, unit As LengthUnit, lines As IReadOnlyList(Of FormLine), tables As IReadOnlyList(Of FormTable), selectionMarks As IReadOnlyList(Of FormSelectionMark)) As FormPage

Parameters

pageNumber
Int32

The 1-based page number in the input document.

width
Single

The width of the image/PDF in pixels/inches, respectively.

height
Single

The height of the image/PDF in pixels/inches, respectively.

textAngle
Single

The general orientation of the text in clockwise direction, measured in degrees between (-180, 180].

unit
LengthUnit

The unit used by the width, height and FieldBoundingBox(IReadOnlyList<PointF>) properties. For images, the unit is pixel. For PDF, the unit is inch.

lines
IReadOnlyList<FormLine>

A list of recognized lines of text.

tables
IReadOnlyList<FormTable>

A list of recognized tables contained in this page.

selectionMarks
IReadOnlyList<FormSelectionMark>

A list of recognized selection marks contained in this page.

Returns

A new FormPage instance for mocking.

Applies to