Ejemplo n.º 1
0
 /// <summary>
 /// Adds the specified <see cref="Observation"/> to this <see cref="Category"/>.
 /// Should be used only by <see cref="Observation(Category, double, SkiaSharp.SKRect)"/>.
 /// </summary>
 /// <param name="observation">The <see cref="Observation"/> to add.</param>
 internal void Add(Observation observation)
 {
     Observations.Add(observation);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Remove the specified <see cref="Observation"/> to this <see cref="Category"/>.
 /// Should be used only by <see cref="Observation.ResetCategory"/> in the <see cref="Observation"/> class.
 /// </summary>
 /// <param name="observation">The <see cref="Observation"/> to delete.</param>
 internal void Remove(Observation observation)
 {
     Observations.Remove(observation);
 }
Ejemplo n.º 3
0
 protected bool Equals(Observation other)
 {
     return(Equals(Category, other.Category) && Confidence.Equals(other.Confidence) &&
            BoundingBox.Equals(other.BoundingBox));
 }