Automatically change the rotation of an image

Hello,
With GIMP when you open an image that is not in the correct orientation, then the software put the image in the good orientation automatically.
How to make the same processing with OpenCV ?
Thank you,

please demonstrate that GIMP does this and OpenCV doesn’t. please show a picture file that demonstrates this difference in behavior.

Maybe you are talking about the EXIF information?
It can contain the image orientation with JPEG images and thus GIMP can automatically restore the correct image orientation.

1 Like

Yes Its The EXIF information. I will check it. Thank you.