Created
October 26, 2021 15:10
-
-
Save Yuktha-Majella/7c3bdd3f4a1e04e4d829d236f53ace13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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