import cv2 image = cv2.imread("sample.jpg") color = int(image[300, 300]) # if image type is b g r, then b g r value will be displayed. # if image is gray then color intensity will be displayed. print color
output: [ 73 89 102]
Refernces
https://stackoverflow.com/questions/12187354/get-rgb-value-opencv-python