I need to get the color of a pixels in a specifict region of image. Im using this script in python:
import cv2
image = cv2.imread('abc.jpg')
color = image[100,50]
print(color) # gives me the RGB color (12,156,222)
and if a need to get the hex of it:
hex = (color[0] << 16) + (color[1] << 8) + (color[2])
my question is: There is a way to tell me what color is it? (12,156,222)
thank you.