I am loading an image into python e.g.
image = cv2.imread(\"new_image.jpg\")
How can i acccess the RGB values of image?
image
This code will print the red , green and blue value of pixel 300, 300:
img1 = cv2.imread('Image.png', cv2.IMREAD_UNCHANGED) b,g,r = (img1[300, 300]) print (r) print (g) print (b)