/// <summary>
 /// Initializes a new instance of the ObjectHierarchy class.
 /// </summary>
 /// <param name="objectProperty">Label for the object.</param>
 /// <param name="confidence">Confidence score of having observed the
 /// object in the image, as a value ranging from 0 to 1.</param>
 /// <param name="parent">The parent object, from a taxonomy
 /// perspective.
 /// The parent object is a more generic form of this object.  For
 /// example, a 'bulldog' would have a parent of 'dog'.</param>
 public ObjectHierarchy(string objectProperty = default(string), double confidence = default(double), ObjectHierarchy parent = default(ObjectHierarchy))
 {
     ObjectProperty = objectProperty;
     Confidence     = confidence;
     Parent         = parent;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the DetectedObject class.
 /// </summary>
 /// <param name="rectangle">Approximate location of the detected
 /// object.</param>
 /// <param name="objectProperty">Label for the object.</param>
 /// <param name="confidence">Confidence score of having observed the
 /// object in the image, as a value ranging from 0 to 1.</param>
 /// <param name="parent">The parent object, from a taxonomy
 /// perspective.
 /// The parent object is a more generic form of this object.  For
 /// example, a 'bulldog' would have a parent of 'dog'.</param>
 public DetectedObject(BoundingRect rectangle = default(BoundingRect), string objectProperty = default(string), double confidence = default(double), ObjectHierarchy parent = default(ObjectHierarchy))
 {
     Rectangle      = rectangle;
     ObjectProperty = objectProperty;
     Confidence     = confidence;
     Parent         = parent;
     CustomInit();
 }