Nityachawda

Task-4.1

Creating an image

import cv2
import numpy as np
img = np.zeros([500,500,3])
img = cv2.rectangle(img,(100,250),(400,475),[0,0,255],-1)
img = cv2.line(img,(100,250),(250,100),[1,1,1],5)
img = cv2.line(img,(400,250),(250,100),[1,1,1],5)img
img = cv2.rectangle(img,(220,300)(280,475),[0,255,0],-1)
cv2.imshow('hi',img)
cv2.waitkey()
cv2.destroyAllWindows()

--

--