Forum

Author Topic: List of camera labels in a chunk which are not aligned  (Read 4196 times)

ankit108

  • Newbie
  • *
  • Posts: 17
    • View Profile
List of camera labels in a chunk which are not aligned
« on: July 20, 2023, 02:24:16 PM »
I have chunk with 2100 photos. After the alignment process got completed, some images did not get aligned . I want to print all those images' names (camera.label) which could not get aligned. In GUI, if I go to Photos Pane and change the "view" to "details" then all those images which got aligned has a Tick mark next to it in "Aligned" column. I can even sort it based on "Aligned". So basically I want to get those cameras in a list which does not have a tick mark next to it in Aligned Column.

Paulo

  • Hero Member
  • *****
  • Posts: 1362
    • View Profile
Re: List of camera labels in a chunk which are not aligned
« Reply #1 on: July 20, 2023, 06:29:29 PM »
Hello ankit,

you can create a list of non-aligned camera labels  as in:

Code: [Select]
chunk = Metashape.app.document.chunk
non_aligned = [camera.label for camera in chunk.cameras if not camera.transform]
Best Regards,
Paul Pelletier,
Surveyor

ankit108

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: List of camera labels in a chunk which are not aligned
« Reply #2 on: July 29, 2023, 09:09:04 AM »
Thank you so much for your help, paulo