I want to recognize a different color image, but now it is recognized as gray, so different colors are considered the same image. img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)