绘制圆形很简单确定圆心坐标和半径即可
public static void Circle(InputOutputArray img, Point center, int radius, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8, int shift = 0);
Cv2.Circle(img,new Point(100,100),50, Scalar.Red,-1,LineTypes.Link8,0);
椭圆形的绘制相对要复杂一些,我们针对主要的参数来看一下 ,函数的前几个参数可以和我图上的描述所对应
public static void Ellipse(InputOutputArray img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8, int shift = 0);
Cv2.Ellipse(img, new Point(320, 240), new Size(100, 50), 0, 0, 360, Scalar.Red);