cv2.circle(im, (int(mxloc[0] + x), int(mxloc[1] + y)), int(mx), (255, 0, 0), 2)
cv2.rectangle(im, (x, y), (x + w, y + h), (0, 255, 255), 2)
cv2.drawContours(im, contours, i, (0, 0, 255), 2)
cv2.imshow('circles', im)
Detect touching/overlapping circles/ellipses with OpenCV and Python