I am not sure if this is a bug or "feature", but its troublesome anyway.
When importing Python-generated JPEG images, Metashape loads the camera Make and Model tags from the EXIF tag. This allows metashape to automatically separate the images taken using different cameras to different camera calibrations. However this feature does not seem to work when loading Python-generated (16-bit) TIFF images and doing the separation manually is a frustrating process. The GPS coordinates and focal length are still loaded from TIFF files, so some reading of EXIF data is definitely still happening with TIFF files, but all relevant fields are not processed.
How I found the problem:
I am using a multicamera setup, with processing chain where calibrated images are exported using Python as 16-bit TIFF files:
TIFF.imsave(OutputFile, (10*ImgBitmap).astype(np.uint16), planarconfig='contig')
As the Python TIFF module does not seem to properly support writing EXIF tags, those are then written with Phil Harvey's exiftool.exe using commands similar to this:
exiftool.exe -overwrite_original -XMP:Make="MyOrganizationName" -XMP:Model="RGB1" -XMP:ExposureTime=0.003946 -XMP:FocalLength=16.0 -XMP:FocalPlaneResolutionUnit=4 -XMP:FocalPlaneXResolution=289.855 -XMP:FocalPlaneYResolution=289.855 "D:\Test\Img_00000.tiff"
E.g. windows image file properties, show that files have these tags written correctly, but Metashape cannot read them from TIFF files. Running the very same exiftool command on a jpeg file, results in a JPEG file that can be loaded to Metashape with the correct Make and Model metadata. This makes me believe that the problem is that the Metashape TIFF import is not reading the EXIF data from TIFFs the same way as the JPEG import does.
While waiting for update, is there a workaround? Which TIFF file EXIF tags are read by the Metashape that could be used to differentiate the different cameras? E.g. the XMP:SerialNumber ("BodySerialNumber") tag does not seem to work either...
The 16-bit example TIFFs files are rather large, so I will not attach them to this post unless especially needed for troubleshooting.