Gary Sieling

Draw a filled white rectangle with OpenCV in Python

This is pretty easy (the last argument is the line thickness – -1 sets this to be filled):

cv2.rectangle(frame, (x, y), (w, h), (255, 255, 255), -1)
Exit mobile version