python cv2 bgr2rgb manual code example Example: cv2 convert to rgb im_rgb = cv2.cvtColor(im_cv, cv2.COLOR_BGR2RGB)