| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.AI.FormRecognizer.Models |
| | 12 | | { |
| | 13 | | /// <summary> Text extracted from a page in the input document. </summary> |
| | 14 | | internal partial class ReadResult |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of ReadResult. </summary> |
| | 17 | | /// <param name="page"> The 1-based page number in the input document. </param> |
| | 18 | | /// <param name="angle"> The general orientation of the text in clockwise direction, measured in degrees between |
| | 19 | | /// <param name="width"> The width of the image/PDF in pixels/inches, respectively. </param> |
| | 20 | | /// <param name="height"> The height of the image/PDF in pixels/inches, respectively. </param> |
| | 21 | | /// <param name="unit"> The unit used by the width, height and boundingBox properties. For images, the unit is & |
| 0 | 22 | | internal ReadResult(int page, float angle, float width, float height, LengthUnit unit) |
| | 23 | | { |
| 0 | 24 | | Page = page; |
| 0 | 25 | | Angle = angle; |
| 0 | 26 | | Width = width; |
| 0 | 27 | | Height = height; |
| 0 | 28 | | Unit = unit; |
| 0 | 29 | | Lines = new ChangeTrackingList<TextLine>(); |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> Initializes a new instance of ReadResult. </summary> |
| | 33 | | /// <param name="page"> The 1-based page number in the input document. </param> |
| | 34 | | /// <param name="angle"> The general orientation of the text in clockwise direction, measured in degrees between |
| | 35 | | /// <param name="width"> The width of the image/PDF in pixels/inches, respectively. </param> |
| | 36 | | /// <param name="height"> The height of the image/PDF in pixels/inches, respectively. </param> |
| | 37 | | /// <param name="unit"> The unit used by the width, height and boundingBox properties. For images, the unit is & |
| | 38 | | /// <param name="language"> The detected language on the page overall. </param> |
| | 39 | | /// <param name="lines"> When includeTextDetails is set to true, a list of recognized text lines. The maximum nu |
| 216 | 40 | | internal ReadResult(int page, float angle, float width, float height, LengthUnit unit, Language? language, IRead |
| | 41 | | { |
| 216 | 42 | | Page = page; |
| 216 | 43 | | Angle = angle; |
| 216 | 44 | | Width = width; |
| 216 | 45 | | Height = height; |
| 216 | 46 | | Unit = unit; |
| 216 | 47 | | Language = language; |
| 216 | 48 | | Lines = lines; |
| 216 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> The 1-based page number in the input document. </summary> |
| 844 | 52 | | public int Page { get; } |
| | 53 | | /// <summary> The general orientation of the text in clockwise direction, measured in degrees between (-180, 180 |
| 432 | 54 | | public float Angle { get; } |
| | 55 | | /// <summary> The width of the image/PDF in pixels/inches, respectively. </summary> |
| 216 | 56 | | public float Width { get; } |
| | 57 | | /// <summary> The height of the image/PDF in pixels/inches, respectively. </summary> |
| 216 | 58 | | public float Height { get; } |
| | 59 | | /// <summary> The unit used by the width, height and boundingBox properties. For images, the unit is "pixel |
| 216 | 60 | | public LengthUnit Unit { get; } |
| | 61 | | /// <summary> The detected language on the page overall. </summary> |
| 0 | 62 | | public Language? Language { get; } |
| | 63 | | /// <summary> When includeTextDetails is set to true, a list of recognized text lines. The maximum number of lin |
| 5740 | 64 | | public IReadOnlyList<TextLine> Lines { get; } |
| | 65 | | } |
| | 66 | | } |