Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public TrackedPolyRect(VNDetectedObjectObservation observation, UIColor color, TrackedPolyRectStyle style = TrackedPolyRectStyle.Solid)
     : this(observation.BoundingBox, color, style)
 {
 }