| | 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.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// A collection of 27-point face landmarks pointing to the important |
| | 18 | | /// positions of face components. |
| | 19 | | /// </summary> |
| | 20 | | public partial class FaceLandmarks |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the FaceLandmarks class. |
| | 24 | | /// </summary> |
| 2 | 25 | | public FaceLandmarks() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 2 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the FaceLandmarks class. |
| | 32 | | /// </summary> |
| 0 | 33 | | public FaceLandmarks(Coordinate pupilLeft = default(Coordinate), Coordinate pupilRight = default(Coordinate), Co |
| | 34 | | { |
| 0 | 35 | | PupilLeft = pupilLeft; |
| 0 | 36 | | PupilRight = pupilRight; |
| 0 | 37 | | NoseTip = noseTip; |
| 0 | 38 | | MouthLeft = mouthLeft; |
| 0 | 39 | | MouthRight = mouthRight; |
| 0 | 40 | | EyebrowLeftOuter = eyebrowLeftOuter; |
| 0 | 41 | | EyebrowLeftInner = eyebrowLeftInner; |
| 0 | 42 | | EyeLeftOuter = eyeLeftOuter; |
| 0 | 43 | | EyeLeftTop = eyeLeftTop; |
| 0 | 44 | | EyeLeftBottom = eyeLeftBottom; |
| 0 | 45 | | EyeLeftInner = eyeLeftInner; |
| 0 | 46 | | EyebrowRightInner = eyebrowRightInner; |
| 0 | 47 | | EyebrowRightOuter = eyebrowRightOuter; |
| 0 | 48 | | EyeRightInner = eyeRightInner; |
| 0 | 49 | | EyeRightTop = eyeRightTop; |
| 0 | 50 | | EyeRightBottom = eyeRightBottom; |
| 0 | 51 | | EyeRightOuter = eyeRightOuter; |
| 0 | 52 | | NoseRootLeft = noseRootLeft; |
| 0 | 53 | | NoseRootRight = noseRootRight; |
| 0 | 54 | | NoseLeftAlarTop = noseLeftAlarTop; |
| 0 | 55 | | NoseRightAlarTop = noseRightAlarTop; |
| 0 | 56 | | NoseLeftAlarOutTip = noseLeftAlarOutTip; |
| 0 | 57 | | NoseRightAlarOutTip = noseRightAlarOutTip; |
| 0 | 58 | | UpperLipTop = upperLipTop; |
| 0 | 59 | | UpperLipBottom = upperLipBottom; |
| 0 | 60 | | UnderLipTop = underLipTop; |
| 0 | 61 | | UnderLipBottom = underLipBottom; |
| | 62 | | CustomInit(); |
| 0 | 63 | | } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// An initialization method that performs custom operations like setting defaults |
| | 67 | | /// </summary> |
| | 68 | | partial void CustomInit(); |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "pupilLeft")] |
| 8 | 73 | | public Coordinate PupilLeft { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "pupilRight")] |
| 8 | 78 | | public Coordinate PupilRight { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "noseTip")] |
| 8 | 83 | | public Coordinate NoseTip { get; set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "mouthLeft")] |
| 8 | 88 | | public Coordinate MouthLeft { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "mouthRight")] |
| 8 | 93 | | public Coordinate MouthRight { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "eyebrowLeftOuter")] |
| 6 | 98 | | public Coordinate EyebrowLeftOuter { get; set; } |
| | 99 | |
|
| | 100 | | /// <summary> |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "eyebrowLeftInner")] |
| 6 | 103 | | public Coordinate EyebrowLeftInner { get; set; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "eyeLeftOuter")] |
| 8 | 108 | | public Coordinate EyeLeftOuter { get; set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "eyeLeftTop")] |
| 8 | 113 | | public Coordinate EyeLeftTop { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// </summary> |
| | 117 | | [JsonProperty(PropertyName = "eyeLeftBottom")] |
| 8 | 118 | | public Coordinate EyeLeftBottom { get; set; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "eyeLeftInner")] |
| 8 | 123 | | public Coordinate EyeLeftInner { get; set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// </summary> |
| | 127 | | [JsonProperty(PropertyName = "eyebrowRightInner")] |
| 8 | 128 | | public Coordinate EyebrowRightInner { get; set; } |
| | 129 | |
|
| | 130 | | /// <summary> |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "eyebrowRightOuter")] |
| 8 | 133 | | public Coordinate EyebrowRightOuter { get; set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// </summary> |
| | 137 | | [JsonProperty(PropertyName = "eyeRightInner")] |
| 8 | 138 | | public Coordinate EyeRightInner { get; set; } |
| | 139 | |
|
| | 140 | | /// <summary> |
| | 141 | | /// </summary> |
| | 142 | | [JsonProperty(PropertyName = "eyeRightTop")] |
| 8 | 143 | | public Coordinate EyeRightTop { get; set; } |
| | 144 | |
|
| | 145 | | /// <summary> |
| | 146 | | /// </summary> |
| | 147 | | [JsonProperty(PropertyName = "eyeRightBottom")] |
| 8 | 148 | | public Coordinate EyeRightBottom { get; set; } |
| | 149 | |
|
| | 150 | | /// <summary> |
| | 151 | | /// </summary> |
| | 152 | | [JsonProperty(PropertyName = "eyeRightOuter")] |
| 8 | 153 | | public Coordinate EyeRightOuter { get; set; } |
| | 154 | |
|
| | 155 | | /// <summary> |
| | 156 | | /// </summary> |
| | 157 | | [JsonProperty(PropertyName = "noseRootLeft")] |
| 8 | 158 | | public Coordinate NoseRootLeft { get; set; } |
| | 159 | |
|
| | 160 | | /// <summary> |
| | 161 | | /// </summary> |
| | 162 | | [JsonProperty(PropertyName = "noseRootRight")] |
| 8 | 163 | | public Coordinate NoseRootRight { get; set; } |
| | 164 | |
|
| | 165 | | /// <summary> |
| | 166 | | /// </summary> |
| | 167 | | [JsonProperty(PropertyName = "noseLeftAlarTop")] |
| 8 | 168 | | public Coordinate NoseLeftAlarTop { get; set; } |
| | 169 | |
|
| | 170 | | /// <summary> |
| | 171 | | /// </summary> |
| | 172 | | [JsonProperty(PropertyName = "noseRightAlarTop")] |
| 8 | 173 | | public Coordinate NoseRightAlarTop { get; set; } |
| | 174 | |
|
| | 175 | | /// <summary> |
| | 176 | | /// </summary> |
| | 177 | | [JsonProperty(PropertyName = "noseLeftAlarOutTip")] |
| 8 | 178 | | public Coordinate NoseLeftAlarOutTip { get; set; } |
| | 179 | |
|
| | 180 | | /// <summary> |
| | 181 | | /// </summary> |
| | 182 | | [JsonProperty(PropertyName = "noseRightAlarOutTip")] |
| 8 | 183 | | public Coordinate NoseRightAlarOutTip { get; set; } |
| | 184 | |
|
| | 185 | | /// <summary> |
| | 186 | | /// </summary> |
| | 187 | | [JsonProperty(PropertyName = "upperLipTop")] |
| 8 | 188 | | public Coordinate UpperLipTop { get; set; } |
| | 189 | |
|
| | 190 | | /// <summary> |
| | 191 | | /// </summary> |
| | 192 | | [JsonProperty(PropertyName = "upperLipBottom")] |
| 8 | 193 | | public Coordinate UpperLipBottom { get; set; } |
| | 194 | |
|
| | 195 | | /// <summary> |
| | 196 | | /// </summary> |
| | 197 | | [JsonProperty(PropertyName = "underLipTop")] |
| 8 | 198 | | public Coordinate UnderLipTop { get; set; } |
| | 199 | |
|
| | 200 | | /// <summary> |
| | 201 | | /// </summary> |
| | 202 | | [JsonProperty(PropertyName = "underLipBottom")] |
| 8 | 203 | | public Coordinate UnderLipBottom { get; set; } |
| | 204 | |
|
| | 205 | | /// <summary> |
| | 206 | | /// Validate the object. |
| | 207 | | /// </summary> |
| | 208 | | /// <exception cref="Rest.ValidationException"> |
| | 209 | | /// Thrown if validation fails |
| | 210 | | /// </exception> |
| | 211 | | public virtual void Validate() |
| | 212 | | { |
| 0 | 213 | | if (PupilLeft != null) |
| | 214 | | { |
| 0 | 215 | | PupilLeft.Validate(); |
| | 216 | | } |
| 0 | 217 | | if (PupilRight != null) |
| | 218 | | { |
| 0 | 219 | | PupilRight.Validate(); |
| | 220 | | } |
| 0 | 221 | | if (NoseTip != null) |
| | 222 | | { |
| 0 | 223 | | NoseTip.Validate(); |
| | 224 | | } |
| 0 | 225 | | if (MouthLeft != null) |
| | 226 | | { |
| 0 | 227 | | MouthLeft.Validate(); |
| | 228 | | } |
| 0 | 229 | | if (MouthRight != null) |
| | 230 | | { |
| 0 | 231 | | MouthRight.Validate(); |
| | 232 | | } |
| 0 | 233 | | if (EyebrowLeftOuter != null) |
| | 234 | | { |
| 0 | 235 | | EyebrowLeftOuter.Validate(); |
| | 236 | | } |
| 0 | 237 | | if (EyebrowLeftInner != null) |
| | 238 | | { |
| 0 | 239 | | EyebrowLeftInner.Validate(); |
| | 240 | | } |
| 0 | 241 | | if (EyeLeftOuter != null) |
| | 242 | | { |
| 0 | 243 | | EyeLeftOuter.Validate(); |
| | 244 | | } |
| 0 | 245 | | if (EyeLeftTop != null) |
| | 246 | | { |
| 0 | 247 | | EyeLeftTop.Validate(); |
| | 248 | | } |
| 0 | 249 | | if (EyeLeftBottom != null) |
| | 250 | | { |
| 0 | 251 | | EyeLeftBottom.Validate(); |
| | 252 | | } |
| 0 | 253 | | if (EyeLeftInner != null) |
| | 254 | | { |
| 0 | 255 | | EyeLeftInner.Validate(); |
| | 256 | | } |
| 0 | 257 | | if (EyebrowRightInner != null) |
| | 258 | | { |
| 0 | 259 | | EyebrowRightInner.Validate(); |
| | 260 | | } |
| 0 | 261 | | if (EyebrowRightOuter != null) |
| | 262 | | { |
| 0 | 263 | | EyebrowRightOuter.Validate(); |
| | 264 | | } |
| 0 | 265 | | if (EyeRightInner != null) |
| | 266 | | { |
| 0 | 267 | | EyeRightInner.Validate(); |
| | 268 | | } |
| 0 | 269 | | if (EyeRightTop != null) |
| | 270 | | { |
| 0 | 271 | | EyeRightTop.Validate(); |
| | 272 | | } |
| 0 | 273 | | if (EyeRightBottom != null) |
| | 274 | | { |
| 0 | 275 | | EyeRightBottom.Validate(); |
| | 276 | | } |
| 0 | 277 | | if (EyeRightOuter != null) |
| | 278 | | { |
| 0 | 279 | | EyeRightOuter.Validate(); |
| | 280 | | } |
| 0 | 281 | | if (NoseRootLeft != null) |
| | 282 | | { |
| 0 | 283 | | NoseRootLeft.Validate(); |
| | 284 | | } |
| 0 | 285 | | if (NoseRootRight != null) |
| | 286 | | { |
| 0 | 287 | | NoseRootRight.Validate(); |
| | 288 | | } |
| 0 | 289 | | if (NoseLeftAlarTop != null) |
| | 290 | | { |
| 0 | 291 | | NoseLeftAlarTop.Validate(); |
| | 292 | | } |
| 0 | 293 | | if (NoseRightAlarTop != null) |
| | 294 | | { |
| 0 | 295 | | NoseRightAlarTop.Validate(); |
| | 296 | | } |
| 0 | 297 | | if (NoseLeftAlarOutTip != null) |
| | 298 | | { |
| 0 | 299 | | NoseLeftAlarOutTip.Validate(); |
| | 300 | | } |
| 0 | 301 | | if (NoseRightAlarOutTip != null) |
| | 302 | | { |
| 0 | 303 | | NoseRightAlarOutTip.Validate(); |
| | 304 | | } |
| 0 | 305 | | if (UpperLipTop != null) |
| | 306 | | { |
| 0 | 307 | | UpperLipTop.Validate(); |
| | 308 | | } |
| 0 | 309 | | if (UpperLipBottom != null) |
| | 310 | | { |
| 0 | 311 | | UpperLipBottom.Validate(); |
| | 312 | | } |
| 0 | 313 | | if (UnderLipTop != null) |
| | 314 | | { |
| 0 | 315 | | UnderLipTop.Validate(); |
| | 316 | | } |
| 0 | 317 | | if (UnderLipBottom != null) |
| | 318 | | { |
| 0 | 319 | | UnderLipBottom.Validate(); |
| | 320 | | } |
| 0 | 321 | | } |
| | 322 | | } |
| | 323 | | } |