import cv2
import  numpy as np

#img = cv2.imread('lena.jpg',1)
img = np.zeros([512,512,3],np.uint8)

img = cv2.line(img,(0,0),(255,255),(0,255,0),3)
img = cv2.arrowedLine(img,(255,0),(255,255),(0,255,0),3)
img = cv2.rectangle(img,(384,0),(510,128),(255,0,0),-1)
img = cv2.circle(img,(447,63),63,(0,0,255),4)
font = cv2.FONT_HERSHEY_SIMPLEX
img = cv2.putText(img,'OpenCv',(10,500),font,4,(255,255,255),10,cv2.LINE_AA)
cv2.imshow('lena',img)
cv2.waitKey()
cv2.destroyAllWindows()