import cv2 as cv import numpy as np blank=np.zeros((500,500,3),dtype="uint8") cv.rectangle(blank,(0,0),(250,250),(0,255,0),thickness=2) img=cv.imread("C:/xy.jpg") cv.imshow("gree",blank) cv.waitKey(0)
import cv2 as cv import numpy as np blank=np.zeros((500,500,3),dtype="uint8") cv.rectangle(blank,(0,0),(250,250),(0,255,0),thickness=2) img=cv.imread("C:/xy.jpg") cv.imshow("gree",blank) cv.waitKey(0)