Forum

Author Topic: Extracting time consumed for metashape running.  (Read 1784 times)

raehyuk

  • Newbie
  • *
  • Posts: 12
    • View Profile
Extracting time consumed for metashape running.
« on: October 16, 2019, 10:16:16 AM »
Hello

I am running metashape-pro with python scripting.

After aligning cameras I save the project.

This is the part of the code.
###################################
for frame in chunk.frames:
    # you can specify the degree of accuracy
    frame.matchPhotos(accuracy=Metashape.MediumAccuracy)
chunk.alignCameras()
doc.save(dir_to_be_saved+"/project.psz", chunks = [doc.chunk])
##################################

Is there any way to check the time consumed for aligning cameras?

Thank you in advance!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14753
    • View Profile
Re: Extracting time consumed for metashape running.
« Reply #1 on: October 16, 2019, 01:06:43 PM »
Hello raehyuk,

The information related to the time spent on each processing operation can be accessed via meta information of the corresponding instance, for example:
Code: [Select]
chunk.point_cloud.meta['MatchPhotos/duration']
chunk.meta['AlignCameras/duration']
Best regards,
Alexey Pasumansky,
Agisoft LLC