I am simply trying to convert an image from BGR to RGB using opencv in python. But when doing so I get this error message: line 62, in getRep\n rgbImg = cv2.cvtColor(imgFrame, cv2.COLOR_BGR2RGB)\nTypeError: src data type = 17 is not supported\n I watched the image being passed as an argument and it is in BGR as I expected, yet it doesn't work: def getRep(self, imgFrame, multiple=False): bgrImg = imgFrame.copy() cv2.imshow('debug', imgFrame) #this line does show a BGR image cv2.waitKey(0) rgbImg = cv2.cvtColor(imgFrame, cv2.COLOR_BGR2RGB) def recognize(self, imgFramePath): imgFrame= cv2.imread(imgFramePath) imgFrame = np.array(imgFrame) reps = self.getRep(imgFrame, False) Those are all the lines being interpreted and the only ones that are related to the issue I am facing. Does anybody know what I am doing incorrectly? Thanks Continue reading...