Forum

Author Topic: How to modify Python USER scripts for cloud processing  (Read 4680 times)

jkova96

  • Full Member
  • ***
  • Posts: 146
    • View Profile
How to modify Python USER scripts for cloud processing
« on: October 16, 2023, 10:29:36 AM »
How,
 I want to know how to use Python USER scripts for cloud processing,
i.e. what should I type in header of script?
To be more concrete these two scripts I would like to modify:
1. https://github.com/agisoft-llc/metashape-scripts/blob/master/src/automatic_masking.py
2. https://github.com/agisoft-llc/metashape-scripts/blob/master/src/render_photos_for_cameras.py

I found document Python API but, It' seems for me it's only available via Java...as I can see from examples. I'm apologizing if I'm wrong, but I can't quite understand it right now.
Thanks :)
« Last Edit: October 16, 2023, 02:32:02 PM by jkova96 »

Ilya Shevelev

  • Agisoft Technical Support
  • Full Member
  • *****
  • Posts: 111
    • View Profile
    • Agisoft Cloud
Re: How to modify Python USER scripts for cloud processing
« Reply #1 on: October 30, 2023, 10:13:42 AM »
Hello,

Agisoft Cloud can be accessed via Python API with Metashape.CloudClient() class, however the available options are limited. It is available to process the project in the cloud, monitor the processing status and download results, but it is not available to execute custom scripts in the cloud.

Whether your pipeline includes Metashape processing tasks and custom post processing, we suggest you combine the cloud and local processing. For example you can send the images for alignment to the cloud, when alignment is completed you can download the processed project and perform  custom post processing locally before sending the next task to the cloud.

Best regards,
Ilya Shevelev
Agisoft LLC