what is ‘2’ here at the rend of the parameter list in cv2.rectangle after specifying the value for color ?
Cv2.rectangle parameter issue
Hello Utsav,
That parameter refers to the thickness of the line of the bounding box which is being drawn using this function. The higher is the value of this parameter, thicker are the boundaries of the bounding box. Give it a try
A pro tip: Negative values in this parameter, like CV_FILLED , mean that the function has to draw a filled rectangle.
I hope this helps
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.