Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created April 28, 2020 18:45
Show Gist options
  • Save aravindpai/397d93ca6981a8f552cd3b64201a01f5 to your computer and use it in GitHub Desktop.
Save aravindpai/397d93ca6981a8f552cd3b64201a01f5 to your computer and use it in GitHub Desktop.
#compute center
x_center = int((x1+x2)/2)
y_center = int(y2)
center = (x_center, y_center)
_ = cv2.circle(img, center, 5, (255, 0, 0), -1)
plt.figure(figsize=(20,10))
plt.imshow(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment