| | 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.Face.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Face Attributes |
| | 20 | | /// </summary> |
| | 21 | | public partial class FaceAttributes |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the FaceAttributes class. |
| | 25 | | /// </summary> |
| 2 | 26 | | public FaceAttributes() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the FaceAttributes class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="age">Age in years</param> |
| | 35 | | /// <param name="gender">Possible gender of the face. Possible values |
| | 36 | | /// include: 'male', 'female'</param> |
| | 37 | | /// <param name="smile">Smile intensity, a number between [0,1] |
| | 38 | | /// </param> |
| | 39 | | /// <param name="facialHair">Properties describing facial hair |
| | 40 | | /// attributes.</param> |
| | 41 | | /// <param name="glasses">Glasses type if any of the face. Possible |
| | 42 | | /// values include: 'noGlasses', 'readingGlasses', 'sunglasses', |
| | 43 | | /// 'swimmingGoggles'</param> |
| | 44 | | /// <param name="headPose">Properties indicating head pose of the |
| | 45 | | /// face.</param> |
| | 46 | | /// <param name="emotion">Properties describing facial emotion in form |
| | 47 | | /// of confidence ranging from 0 to 1.</param> |
| | 48 | | /// <param name="hair">Properties describing hair attributes.</param> |
| | 49 | | /// <param name="makeup">Properties describing present makeups on a |
| | 50 | | /// given face.</param> |
| | 51 | | /// <param name="occlusion">Properties describing occlusions on a given |
| | 52 | | /// face.</param> |
| | 53 | | /// <param name="accessories">Properties describing any accessories on |
| | 54 | | /// a given face.</param> |
| | 55 | | /// <param name="blur">Properties describing any presence of blur |
| | 56 | | /// within the image.</param> |
| | 57 | | /// <param name="exposure">Properties describing exposure level of the |
| | 58 | | /// image.</param> |
| | 59 | | /// <param name="noise">Properties describing noise level of the |
| | 60 | | /// image.</param> |
| 0 | 61 | | public FaceAttributes(double? age = default(double?), Gender? gender = default(Gender?), double? smile = default |
| | 62 | | { |
| 0 | 63 | | Age = age; |
| 0 | 64 | | Gender = gender; |
| 0 | 65 | | Smile = smile; |
| 0 | 66 | | FacialHair = facialHair; |
| 0 | 67 | | Glasses = glasses; |
| 0 | 68 | | HeadPose = headPose; |
| 0 | 69 | | Emotion = emotion; |
| 0 | 70 | | Hair = hair; |
| 0 | 71 | | Makeup = makeup; |
| 0 | 72 | | Occlusion = occlusion; |
| 0 | 73 | | Accessories = accessories; |
| 0 | 74 | | Blur = blur; |
| 0 | 75 | | Exposure = exposure; |
| 0 | 76 | | Noise = noise; |
| | 77 | | CustomInit(); |
| 0 | 78 | | } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// An initialization method that performs custom operations like setting defaults |
| | 82 | | /// </summary> |
| | 83 | | partial void CustomInit(); |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets age in years |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "age")] |
| 4 | 89 | | public double? Age { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets possible gender of the face. Possible values include: |
| | 93 | | /// 'male', 'female' |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "gender")] |
| 6 | 96 | | public Gender? Gender { get; set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets or sets smile intensity, a number between [0,1] |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "smile")] |
| 0 | 102 | | public double? Smile { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets properties describing facial hair attributes. |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "facialHair")] |
| 10 | 108 | | public FacialHair FacialHair { get; set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets or sets glasses type if any of the face. Possible values |
| | 112 | | /// include: 'noGlasses', 'readingGlasses', 'sunglasses', |
| | 113 | | /// 'swimmingGoggles' |
| | 114 | | /// </summary> |
| | 115 | | [JsonProperty(PropertyName = "glasses")] |
| 6 | 116 | | public GlassesType? Glasses { get; set; } |
| | 117 | |
|
| | 118 | | /// <summary> |
| | 119 | | /// Gets or sets properties indicating head pose of the face. |
| | 120 | | /// </summary> |
| | 121 | | [JsonProperty(PropertyName = "headPose")] |
| 8 | 122 | | public HeadPose HeadPose { get; set; } |
| | 123 | |
|
| | 124 | | /// <summary> |
| | 125 | | /// Gets or sets properties describing facial emotion in form of |
| | 126 | | /// confidence ranging from 0 to 1. |
| | 127 | | /// </summary> |
| | 128 | | [JsonProperty(PropertyName = "emotion")] |
| 8 | 129 | | public Emotion Emotion { get; set; } |
| | 130 | |
|
| | 131 | | /// <summary> |
| | 132 | | /// Gets or sets properties describing hair attributes. |
| | 133 | | /// </summary> |
| | 134 | | [JsonProperty(PropertyName = "hair")] |
| 6 | 135 | | public Hair Hair { get; set; } |
| | 136 | |
|
| | 137 | | /// <summary> |
| | 138 | | /// Gets or sets properties describing present makeups on a given face. |
| | 139 | | /// </summary> |
| | 140 | | [JsonProperty(PropertyName = "makeup")] |
| 8 | 141 | | public Makeup Makeup { get; set; } |
| | 142 | |
|
| | 143 | | /// <summary> |
| | 144 | | /// Gets or sets properties describing occlusions on a given face. |
| | 145 | | /// </summary> |
| | 146 | | [JsonProperty(PropertyName = "occlusion")] |
| 10 | 147 | | public Occlusion Occlusion { get; set; } |
| | 148 | |
|
| | 149 | | /// <summary> |
| | 150 | | /// Gets or sets properties describing any accessories on a given face. |
| | 151 | | /// </summary> |
| | 152 | | [JsonProperty(PropertyName = "accessories")] |
| 8 | 153 | | public IList<Accessory> Accessories { get; set; } |
| | 154 | |
|
| | 155 | | /// <summary> |
| | 156 | | /// Gets or sets properties describing any presence of blur within the |
| | 157 | | /// image. |
| | 158 | | /// </summary> |
| | 159 | | [JsonProperty(PropertyName = "blur")] |
| 6 | 160 | | public Blur Blur { get; set; } |
| | 161 | |
|
| | 162 | | /// <summary> |
| | 163 | | /// Gets or sets properties describing exposure level of the image. |
| | 164 | | /// </summary> |
| | 165 | | [JsonProperty(PropertyName = "exposure")] |
| 6 | 166 | | public Exposure Exposure { get; set; } |
| | 167 | |
|
| | 168 | | /// <summary> |
| | 169 | | /// Gets or sets properties describing noise level of the image. |
| | 170 | | /// </summary> |
| | 171 | | [JsonProperty(PropertyName = "noise")] |
| 6 | 172 | | public Noise Noise { get; set; } |
| | 173 | |
|
| | 174 | | } |
| | 175 | | } |