how to convert from rbg to bgr in opencv code example Example: bgr to rgb opencv img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)