Question: how to convert bgr to rgb in opencv?
Answer: Convert BGR and RGB with OpenCV function cvtColor When code is cv2. COLOR_BGR2RGB , BGR is converted to RGB. When converted to RGB, it will be saved as a correct image even if it is saved after being converted to a PIL.