public override void Draw(Image <Bgr, byte> rawImage) { int radius = 40, thickness = 10; Color markColor = Color.LightGreen; var intPosition = new Point((int)position.X, (int)position.Y); CvInvoke.Circle(rawImage, intPosition, radius, Detection.GetMCvScalar(markColor), thickness); CvInvoke.Line(rawImage, new Point(intPosition.X, intPosition.Y - radius), new Point(intPosition.X, intPosition.Y + radius), Detection.GetMCvScalar(markColor), thickness); CvInvoke.Line(rawImage, new Point(intPosition.X - radius, intPosition.Y), new Point(intPosition.X + radius, intPosition.Y), Detection.GetMCvScalar(markColor), thickness); }
public override void Draw(Image <Bgr, byte> rawImage) { CvInvoke.PutText(rawImage, "Rat could not be detected", new Point(0, 100), FontFace.HersheyPlain, fontScale: 3, color: Detection.GetMCvScalar(Color.Red), thickness: 10); }