| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.FormRecognizer.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Canonical representation of single extracted text. |
| | 20 | | /// </summary> |
| | 21 | | public partial class ExtractedToken |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the ExtractedToken class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public ExtractedToken() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the ExtractedToken class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="text">String value of the extracted text.</param> |
| | 35 | | /// <param name="boundingBox">Bounding box of the extracted text. |
| | 36 | | /// Represents the |
| | 37 | | /// location of the extracted text as a pair of |
| | 38 | | /// cartesian co-ordinates. The co-ordinate pairs are arranged by |
| | 39 | | /// top-left, top-right, bottom-right and bottom-left endpoints box |
| | 40 | | /// with origin reference from the bottom-left of the page.</param> |
| | 41 | | /// <param name="confidence">A measure of accuracy of the extracted |
| | 42 | | /// text.</param> |
| 0 | 43 | | public ExtractedToken(string text = default(string), IList<double?> boundingBox = default(IList<double?>), doubl |
| | 44 | | { |
| 0 | 45 | | Text = text; |
| 0 | 46 | | BoundingBox = boundingBox; |
| 0 | 47 | | Confidence = confidence; |
| | 48 | | CustomInit(); |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | 53 | | /// </summary> |
| | 54 | | partial void CustomInit(); |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets string value of the extracted text. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "text")] |
| 0 | 60 | | public string Text { get; set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets bounding box of the extracted text. Represents the |
| | 64 | | /// location of the extracted text as a pair of |
| | 65 | | /// cartesian co-ordinates. The co-ordinate pairs are arranged by |
| | 66 | | /// top-left, top-right, bottom-right and bottom-left endpoints box |
| | 67 | | /// with origin reference from the bottom-left of the page. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "boundingBox")] |
| 0 | 70 | | public IList<double?> BoundingBox { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets a measure of accuracy of the extracted text. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "confidence")] |
| 0 | 76 | | public double? Confidence { get; set; } |
| | 77 | |
|
| | 78 | | } |
| | 79 | | } |