You are on page 1of 1

import cv2

import numpy as np
#img = cv2.imread(r"C:\Users\Autumn\Pictures\vcl.jpg",0)
img = np.zeros([512,512,3], np.uint8)
img = cv2.arrowedLine(img, (0, 0), (155,155), (127,0, 0), 5) #BGR
img = cv2.rectangle(img, (0,0), (127,127), (0, 0 ,255), 1)
font = cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(img, 'OpenCV', (50,50), font, 4 , (255,255, 0), 10, cv2.LINE_AA)
cv2.circle(img , (50,50), 25, (0,255,0), 5)
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()

You might also like