Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are getting rotated #2565

Open
abrahamezzeddine opened this issue May 16, 2024 · 4 comments
Open

Images are getting rotated #2565

abrahamezzeddine opened this issue May 16, 2024 · 4 comments

Comments

@abrahamezzeddine
Copy link

abrahamezzeddine commented May 16, 2024

Describe the bug
When I do feature extraction, the images are rotated and flipped 90 degrees for some reason. I am not sure why this happens and I have tried to pick the selection "Upright" but it does not help it. This seems intermittent and I cannot really figure why it happens. I tried to look in the documentation but cannot find anything about this. There is EXIF information in the Iphone photos as well, so I would assume COLMAP uses those for the camera parameters?

Is it because I am taking the photos in a vertical manner instead of horizontal? If so, how do I still force it to use the vertical (original) photos?

To Reproduce
Regular Feature Extraction (standard settings)

Expected behavior
No rotation, I expect the images to be in the same orientation as the original picture.

Screenshots
If applicable, add screenshots to help explain your problem. Input images and/or output reconstructions are usually helpful.

Environment:
COLMAP 3.9.1

Thank you very much.

@Filocava99
Copy link

Same issue

@jaco001
Copy link

jaco001 commented Jun 5, 2024

Yes exif stored info is taken to consideration.

Solution:
Use Lightroom or Darktable to fix orientation and more parameters like size/ratio/color before you put this to colmap.
Those tools store proper info at export.

Addition tip:
Do not mix vertical/horizontal exif info in your datadset, cus automatically colmap drop one of it, even if they have same size.

@Filocava99
Copy link

Filocava99 commented Jun 5, 2024

Yes exif stored info is taken to consideration.

Solution: Use Lightroom or Darktable to fix orientation and more parameters like size/ratio/color before you put this to colmap. Those tools store proper info at export.

Addition tip: Do not mix vertical/horizontal exif info in your datadset, cus automatically colmap drop one of it, even if they have same size.

Can't use any other tool, I have an automated pipeline, so if there's a specific exif field that's needed, I need to add it when the picture is taken, which I can easily do. But what I need to know is, of the many exif values, which are the ones used to calculate the image orientation?

@jaco001
Copy link

jaco001 commented Jun 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants