Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Great answer ! Just a small addition since the question was asked for Python, in case any Python user come by (also, this is a full working example)

import cv2
import numpy

img=numpy.zeros((100,100))

radius=5
axes = (radius,radius)
angle=0;
startAngle=0;
endAngle=180;
center=(50,50)
color=255

cv2.ellipse(img, center, axes, angle, startAngle, endAngle, color)