/// <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); }
/// <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); }
protected bool Equals(Observation other) { return(Equals(Category, other.Category) && Confidence.Equals(other.Confidence) && BoundingBox.Equals(other.BoundingBox)); }