CONVERT grayscale to rgb pytho opencv code example Example: opencv grayscale to rgb backtorgb = cv2.cvtColor(gray,cv2.COLOR_GRAY2RGB)