Professional Documents
Culture Documents
Garis
Garis
import numpy as np
cv2.imshow("Line", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
-----------------------------------------------------
cv2.line(img, (50, 50), (100, 100), (255, 255, 255), 2)
cv2.rectangle(img, (100, 100), (300, 300), (255, 255, 255), 2)
cv2.circle(img, (250, 250), 100, (255, 255, 255), 2)
cv2.ellipse(img, (250, 250), (200, 100), 0, 0, 360, (255, 255, 255), 2)