build a rectangle in image / open cv

PHOTO EMBED

Wed Mar 16 2022 15:04:52 GMT+0000 (Coordinated Universal Time)

Saved by @rabiizahnoune #python #selenium

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)
content_copyCOPY