Forum

Author Topic: Footprint script creates only 1 footprint  (Read 329 times)

Costas

  • Jr. Member
  • **
  • Posts: 82
  • Aerial Mapping
    • View Profile
Footprint script creates only 1 footprint
« on: February 04, 2025, 03:09:52 PM »
I work on Metashape Pro 2.2.0 (build 19890) on Windows 10 Pro.

I have a project with 2.137 pictures and I aligned the photos, created point cloud, DEM, orthophotos. When i run the Footprint script (downloaded from github) it only creates one footprint from the first image. I get no errors. (the script is for version 2.2.0)

The last time i used this script was in metashape 2.1.0 in a project with 16.000 pictures and it worked just fine.

Why it processes only 1 photo and not the rest of them?

Costas

  • Jr. Member
  • **
  • Posts: 82
  • Aerial Mapping
    • View Profile
Re: Footprint script creates only 1 footprint
« Reply #1 on: February 04, 2025, 03:40:04 PM »
Some additional info.

I tested again the previous script (for v.2.1.0) in Metashape v.2.1.4 and it worked fine.

I checked and compared the 2 scripts (v.2.1.0 & v.2.2.0) and i see that the new version has added lines and capabilities maybe for different sensors (it's my guess as i do not know how to script).

After that i run the previous version of the script and run it to Metashape 2.2.0 and it worked.


So, i believe that the new added code in the latest version of the script somehow breaks the script and gives me only one footprint for the first image. If someone can fix it i would appreciate it so much.

NOTE:
I forgot to mention in the previous post that in the project i also have imported an aerial Lidar point cloud but i do not believe that causes the problem.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15282
    • View Profile
Re: Footprint script creates only 1 footprint
« Reply #2 on: February 04, 2025, 04:55:20 PM »
Hello Costas,

Thank you for reporting, we have fixed the issue. Indentation for some lines was incorrect.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Costas

  • Jr. Member
  • **
  • Posts: 82
  • Aerial Mapping
    • View Profile
Re: Footprint script creates only 1 footprint
« Reply #3 on: February 04, 2025, 05:13:02 PM »
Thank you Alexey.

I downloaded the updated script and now works fine.  ;D