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)

One Reply to “Draw a filled white rectangle with OpenCV in Python”

Leave a Reply

Your email address will not be published. Required fields are marked *