Indeed, this issue is quite annoying when shooting with a Sony camera, since there's no way to really disable auto-rotation.
Second scenario. Autorotation is on and the RAW images from the camera are processed using Bridge, Lightroom, DxO or any other RAW processing software.
This is the scenario I'm in, since I usually tweak the photos a little bit in Lightroom before importing them in Photoscan/Metashape. I obviously don't touch the lens distorsions since this should be avoided at all cost, but I usually correct the chromatic aberrations, sometimes the color temperature and noise (not sure if this is a good idea for the first part of the process, but the textures created by Photoscan/Metashape seem to be cleaner if I correct the noise & chromatic aberrations).
I followed Tom's advice and I used exitool (for other people who might be reading this thread : you can download it here
https://www.sno.phy.queensu.ca/~phil/exiftool/ )
I just successfully tried this workflow with a bunch of Sony RAW (.ARW) files :
- put all the files that need to be processed in a specific folder, for example C:\correct_rotation\
- using the command line tool, type :
exiftool -Orientation=1 -n -overwrite_original C:\correct_rotation\*.ARW
then press enter.
(exiftool.exe must be in the current file directory of the command tool, or in C:\Windows : personally I'd rather keep it in a specific folder)
- all the ARW files in the C:\correct_rotation\ folder are now "corrected".
( I get a warning for each file : "Warning: [minor] Entries in SubIFD were out of sequence. Fixed.". Looks like some of Sony's own metadata might not be in the right order. Lightroom doesn't seem to see any difference, so I guess it doesn't really matter.)
- Import the C:\correct_rotation\ folder in Lightroom (which in my case will move the files, convert them to *.DNG files) : they all have the same orientation.
Then I'm free to do whatever I need to do in Lightroom, and export everything as TIFF or JPG and use the result in Photoscan/Metashape.
CHI recommend for objects and facades etc. that multiple orientations are captured (equivalent of flying a cross-grid with a UAV) - details about 2/3 way down this page http://culturalheritageimaging.org/Technologies/Photogrammetry/index.html
Very interesting, I usually try to keep the same orientation but if this can improve the results I'll give it a try.
Thanks for your answers !