Skip to content

Instantly share code, notes, and snippets.

@Yuktha-Majella
Created October 26, 2021 14:40
Show Gist options
  • Save Yuktha-Majella/1b11ce973f69ef27ca1d21cb56035727 to your computer and use it in GitHub Desktop.
Save Yuktha-Majella/1b11ce973f69ef27ca1d21cb56035727 to your computer and use it in GitHub Desktop.
#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