public TrackedPolyRect(VNRectangleObservation observation, UIColor color, TrackedPolyRectStyle style = TrackedPolyRectStyle.Solid) { this.topLeft = observation.TopLeft; this.topRight = observation.TopRight; this.bottomLeft = observation.BottomLeft; this.bottomRight = observation.BottomRight; this.Color = color; this.Style = style; }
public TrackedPolyRect(CGRect cgRect, UIColor color, TrackedPolyRectStyle style = TrackedPolyRectStyle.Solid) { this.topLeft = new CGPoint(cgRect.GetMinX(), cgRect.GetMaxY()); this.topRight = new CGPoint(cgRect.GetMaxX(), cgRect.GetMaxY()); this.bottomLeft = new CGPoint(cgRect.GetMinX(), cgRect.GetMinY()); this.bottomRight = new CGPoint(cgRect.GetMaxX(), cgRect.GetMinY()); this.Color = color; this.Style = style; }
public TrackedPolyRect(VNDetectedObjectObservation observation, UIColor color, TrackedPolyRectStyle style = TrackedPolyRectStyle.Solid) : this(observation.BoundingBox, color, style) { }