I'm working with ´OpenCV´ and I want to show a single colour in an image. Now I made this,
img = cv2.imread('im02.jpg')
L1 = np.array([255,0,102])
U1 = np.array([255,0,102])
m1 = cv2.inRange(img, L1, U1)
r1 = cv2.bitwise_and(img, img, mask=m1)
#print(r1.any()) #know if all the image is black
cv2.imshow("WM", np.hstack([img, r1]))
This works ok but it works when you need a range of colour tonalities. But in my case, I want to know the exact value of RGB, by the moment I'm writing the same value in the low and upper range but I'm trying to do it better, how can I do this without range?
Thank you very much.

