1 | initial version |
Change this:
threshold = 0.75
to:
threshold = 0.99
Change thickness::
cv2.rectangle(img_rgb, pt, (pt[0] + w, pt[1] + h), (0,255,255), 2)
to:
cv2.rectangle(img_rgb, pt, (pt[0] + w, pt[1] + h), (0,255,255), 1)
Output: