Forum

Author Topic: Issues with Camera Alignment in Metashape 2.2  (Read 254 times)

mrv2020

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Issues with Camera Alignment in Metashape 2.2
« on: November 27, 2024, 04:53:56 PM »
Code: [Select]
def align_images(document, cameras_to_align):
    if cameras_to_align:
        chunk = document.chunk
        unaligned_cameras = [cam for cam in cameras_to_align if cam.transform is None]
       
        if not unaligned_cameras:
            print("No cameras to align: all are already aligned.")
            return
       
        chunk.matchPhotos(cameras=unaligned_cameras, downscale=1,
                          generic_preselection=True, reference_preselection=True)
        chunk.alignCameras(cameras=unaligned_cameras, reset_alignment=False)


Hi Alexey,

I am encountering an issue related to camera alignment in Metashape Professional, which appears to have been introduced in version 2.2.0. This issue was not present in version 2.1, where the same workflow functioned correctly.

Some cameras that were previously aligned in the project are being misaligned when new groups of cameras are processed. My workflow is designed to align only the unprocessed cameras while keeping the previously aligned ones intact, but this behavior is not being respected in version 2.2.0. I tried including reset align=False but that didn't work either.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Issues with Camera Alignment in Metashape 2.2
« Reply #1 on: December 02, 2024, 01:22:51 PM »
Hello mrv2020,

Thank you for reporting, however, I was not able to reproduce the issue on some random projects, can you please confirm that the issue persists in 2.2.0 build 19522?
If so, would it be possible to share any small minimal project (project file + images) to reproduce the issue on our side?
Best regards,
Alexey Pasumansky,
Agisoft LLC