Created
October 26, 2021 14:40
-
-
Save Yuktha-Majella/1b11ce973f69ef27ca1d21cb56035727 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
#Modifying pixel values | |
img_mod1 = img.copy() | |
img_mod1[100,100] = [255,255,255] | |
print("Pixel value in (100,100) coordinate after modification: ", img_mod1[100,100] ) | |
cv2.imshow('Billiards Modified', img_mod1) | |
cv2.waitKey(0) | |
cv2.destroyAllWindows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment