take numpy.ndarray Type of BGR To RGB:
if __name__ == '__main__':
image_path = '1.jpg'
image = cv2.imread(image_path)
print('before image:', image.shape) # (1520, 720, 3)
out = image.transpose((2, 1, 0))[::-1]
print('after image:', out.shape) # (3, 720, 1520)