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)

Interested in Python? I send out weekly, personalized emails with articles and conference talks. Click here to see an example and subscribe.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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