I have small image. enter image description here b g r, not gray.
original = cv2.imread('im/auto5.png')
print(original.shape) # 27,30,3
print(original[13,29]) # [254 254 254]
As you can see, there is white pic (digit 14) in my image, mostly black. On the right corner (coordinates [13,29]) I get [254 254 254] - white color.
I want to calculate number of pixels with that specific color. I need it to further comparing such images with different numbers inside. There are different backgrounds on these squares, and I consider exactly white color.
[13,29]or you want to find all pixels that are(254,254,254). What I mean is, what do you want to look for if the pixel at[13,29]is(8,7,6)?