| | 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 | | /// An object describing face rectangle. |
| | 18 | | /// </summary> |
| | 19 | | public partial class FaceRectangle |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the FaceRectangle class. |
| | 23 | | /// </summary> |
| 4 | 24 | | public FaceRectangle() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the FaceRectangle class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="left">X-coordinate of the top left point of the face, |
| | 33 | | /// in pixels.</param> |
| | 34 | | /// <param name="top">Y-coordinate of the top left point of the face, |
| | 35 | | /// in pixels.</param> |
| | 36 | | /// <param name="width">Width measured from the top-left point of the |
| | 37 | | /// face, in pixels.</param> |
| | 38 | | /// <param name="height">Height measured from the top-left point of the |
| | 39 | | /// face, in pixels.</param> |
| 0 | 40 | | public FaceRectangle(int left = default(int), int top = default(int), int width = default(int), int height = def |
| | 41 | | { |
| 0 | 42 | | Left = left; |
| 0 | 43 | | Top = top; |
| 0 | 44 | | Width = width; |
| 0 | 45 | | Height = height; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets x-coordinate of the top left point of the face, in |
| | 56 | | /// pixels. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "left")] |
| 0 | 59 | | public int Left { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets y-coordinate of the top left point of the face, in |
| | 63 | | /// pixels. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "top")] |
| 0 | 66 | | public int Top { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets width measured from the top-left point of the face, in |
| | 70 | | /// pixels. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "width")] |
| 8 | 73 | | public int Width { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets height measured from the top-left point of the face, |
| | 77 | | /// in pixels. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "height")] |
| 8 | 80 | | public int Height { get; set; } |
| | 81 | |
|
| | 82 | | } |
| | 83 | | } |