Cv2 rectangle function

cv2.rectangle(frame,(x,y),(x+w,y+h),(255,0,0),2) where did the last 2 come from?

Hi, the 2 argument stands for the thickness of the line. If you give 5 or 10, the line will be thicker or boundary box will be thicker.

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.