<reponame>amithapa/opencv_learning<filename>gui_fig/draw_ellipse.py
import cv2
import numpy as np

img = np.zeros((512,512,3), np.uint8)

# Drawing ellipse
img = cv2.ellipse(img, (256, 256), (100, 50),0, 0, 180, 255, -1)


cv2.imshow('img', img)

cv2.waitKey(0)
cv2.destroyAllWindows()


import cv2
import numpy as np

img = np.zeros((512,512,3), np.uint8)

# Drawing ellipse
img = cv2.ellipse(img, (256, 256), (100, 50),0, 0, 180, 255, -1)


cv2.imshow('img', img)

cv2.waitKey(0)
cv2.destroyAllWindows()
# Drawing ellipse