Learn Before
Concept
Rectangle Method
This method requires an img object, top left and bottom right coordinate, color and line thickness.
img = cv2.rectangle(frame, (100,100), (200,200), (128, 128, 128), 5)
If the thickness is set to be -1 instead of a positive integer, then it would fill the rectangle in completely instead of just having an outline.
0
1
Updated 2021-06-26
Tags
Python Programming Language
Data Science