Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: Natsumi on August 20, 2021, 08:43:42 AM

Title: Get unaligned image names
Post by: Natsumi on August 20, 2021, 08:43:42 AM
Hello everyone!

I am in great trouble.

I want to get the unaligned image names.
I can get the number of images, but I can't get the image name.
Is it possible with the use of ”chunk.cameras”?

Thank you in advance.
Title: Re: Get unaligned image names
Post by: Paulo on August 20, 2021, 09:04:20 AM
Natsumi,

yes you could use this snippet to select and print labels for each unaligned image (means no camera.transform):
Code: [Select]
for camera in [camera for camera in chunk.cameras if not camera.transform]:
    camera.selected = True
    print(camera.label)

see attachment
Title: Re: Get unaligned image names
Post by: Natsumi on August 20, 2021, 10:31:41 AM
Hello Paulo,

Thank you for your help this time as well.
It's working very well.
Thanks so much.

Natsumi