| | 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.Vision.ComputerVision.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Information on a recognized word. |
| | 18 | | /// </summary> |
| | 19 | | public partial class OcrWord |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the OcrWord class. |
| | 23 | | /// </summary> |
| 8 | 24 | | public OcrWord() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 8 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the OcrWord class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="boundingBox">Bounding box of a recognized word. The |
| | 33 | | /// four integers represent the x-coordinate of the left edge, the |
| | 34 | | /// y-coordinate of the top edge, width, and height of the bounding |
| | 35 | | /// box, in the coordinate system of the input image, after it has been |
| | 36 | | /// rotated around its center according to the detected text angle (see |
| | 37 | | /// textAngle property), with the origin at the top-left corner, and |
| | 38 | | /// the y-axis pointing down.</param> |
| | 39 | | /// <param name="text">String value of a recognized word.</param> |
| 0 | 40 | | public OcrWord(string boundingBox = default(string), string text = default(string)) |
| | 41 | | { |
| 0 | 42 | | BoundingBox = boundingBox; |
| 0 | 43 | | Text = text; |
| | 44 | | CustomInit(); |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | 49 | | /// </summary> |
| | 50 | | partial void CustomInit(); |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// Gets or sets bounding box of a recognized word. The four integers |
| | 54 | | /// represent the x-coordinate of the left edge, the y-coordinate of |
| | 55 | | /// the top edge, width, and height of the bounding box, in the |
| | 56 | | /// coordinate system of the input image, after it has been rotated |
| | 57 | | /// around its center according to the detected text angle (see |
| | 58 | | /// textAngle property), with the origin at the top-left corner, and |
| | 59 | | /// the y-axis pointing down. |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "boundingBox")] |
| 0 | 62 | | public string BoundingBox { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets string value of a recognized word. |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "text")] |
| 16 | 68 | | public string Text { get; set; } |
| | 69 | |
|
| | 70 | | } |
| | 71 | | } |