Skip to content

Instantly share code, notes, and snippets.

@Yuktha-Majella
Created October 26, 2021 15:10
Show Gist options
  • Save Yuktha-Majella/7c3bdd3f4a1e04e4d829d236f53ace13 to your computer and use it in GitHub Desktop.
Save Yuktha-Majella/7c3bdd3f4a1e04e4d829d236f53ace13 to your computer and use it in GitHub Desktop.
#Image ROI
img_roi = img.copy()
ball = img_roi[310:370, 350:405]
img_roi[120:180, 120:175] = ball
vis1 = np.concatenate((img, img_roi), axis=1)
cv2.imshow('Original Image vs Image with copied ROI', vis1)
cv2.waitKey(0)
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment