imgviz.draw.circle

imgviz.draw.circle(src, center, diameter, fill=None, outline=None, width=0)[source]

Draw circle on numpy array with Pillow.

Parameters:
  • src (numpy.ndarray) – Input image.

  • center ((2,) array-like) – center is (cy, cx).

  • diameter (float) – Diameter of the circle.

  • fill (int or (3,) array-like, optional) – RGB color to fill the mark. None for no fill. (default: None)

  • outline (int or (3,) array-like, optional) – RGB color to draw the outline.

  • width (int, optional) – Rectangle line width. (default: 0)

Returns:

dst – Output image.

Return type:

numpy.ndarray