Forum

Author Topic: Validate if the stage was successfully completed  (Read 2099 times)

mmarinov

  • Newbie
  • *
  • Posts: 3
    • View Profile
Validate if the stage was successfully completed
« on: February 10, 2023, 12:56:00 AM »

Hello there,

Is there any good way to catch each process done successfully?

I dont see any return values.
also, sometimes [progress] dont show 100 but starts the other stage.
This happens especially on chunk.buildDepthMaps()

Is there any good ways to validate if the stage was successfully completed?

Thank you,

Mincho
..................................................................

chunk = doc.addChunk()

chunk.addPhotos(photos)

chunk.matchPhotos(keypoint_limit = 40000, tiepoint_limit = 10000, generic_preselection = True, reference_preselection = True)

chunk.alignCameras()

chunk.buildDepthMaps(downscale = 2, filter_mode = Metashape.MildFiltering)

chunk.buildModel(source_data = Metashape.DepthMapsData)

chunk.buildUV(page_count = 2, texture_size = 4096)

chunk.buildTexture(texture_size = 4096, ghosting_filter = True)
doc.save()

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Validate if the stage was successfully completed
« Reply #1 on: February 10, 2023, 12:42:47 PM »
Hello Mincho,

You can use try-except concept, if you want to track unexpected assertions, such as "Zero Resolution", "Null tie points" and similar.
Best regards,
Alexey Pasumansky,
Agisoft LLC

mmarinov

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Validate if the stage was successfully completed
« Reply #2 on: February 14, 2023, 06:55:41 PM »
Hello Alexey,

Thank you
I will use try statement.
I still wish a return or better validation than try.
Hoping it d come in the future.

Thank you,
Mincho