| | | 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 detected in an image. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class DetectedObject |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the DetectedObject class. |
| | | 23 | | /// </summary> |
| | 12 | 24 | | public DetectedObject() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 12 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the DetectedObject class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="rectangle">Approximate location of the detected |
| | | 33 | | /// object.</param> |
| | | 34 | | /// <param name="objectProperty">Label for the object.</param> |
| | | 35 | | /// <param name="confidence">Confidence score of having observed the |
| | | 36 | | /// object in the image, as a value ranging from 0 to 1.</param> |
| | | 37 | | /// <param name="parent">The parent object, from a taxonomy |
| | | 38 | | /// perspective. |
| | | 39 | | /// The parent object is a more generic form of this object. For |
| | | 40 | | /// example, a 'bulldog' would have a parent of 'dog'.</param> |
| | 0 | 41 | | public DetectedObject(BoundingRect rectangle = default(BoundingRect), string objectProperty = default(string), d |
| | | 42 | | { |
| | 0 | 43 | | Rectangle = rectangle; |
| | 0 | 44 | | ObjectProperty = objectProperty; |
| | 0 | 45 | | Confidence = confidence; |
| | 0 | 46 | | Parent = parent; |
| | | 47 | | CustomInit(); |
| | 0 | 48 | | } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | | 52 | | /// </summary> |
| | | 53 | | partial void CustomInit(); |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets approximate location of the detected object. |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "rectangle")] |
| | 48 | 59 | | public BoundingRect Rectangle { get; private set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// Gets or sets label for the object. |
| | | 63 | | /// </summary> |
| | | 64 | | [JsonProperty(PropertyName = "object")] |
| | 22 | 65 | | public string ObjectProperty { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets confidence score of having observed the object in the |
| | | 69 | | /// image, as a value ranging from 0 to 1. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "confidence")] |
| | 18 | 72 | | public double Confidence { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets or sets the parent object, from a taxonomy perspective. |
| | | 76 | | /// The parent object is a more generic form of this object. For |
| | | 77 | | /// example, a 'bulldog' would have a parent of 'dog'. |
| | | 78 | | /// </summary> |
| | | 79 | | [JsonProperty(PropertyName = "parent")] |
| | 0 | 80 | | public ObjectHierarchy Parent { get; set; } |
| | | 81 | | |
| | | 82 | | } |
| | | 83 | | } |