Forum

Author Topic: STMap export through the Python API  (Read 1033 times)

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
STMap export through the Python API
« on: March 28, 2022, 06:20:51 PM »
I'm trying to figure out how to export STMaps of the camera calibrations using the Python API.

In the UI, it's in the Camera Calibration window, and when I click the "save" icon, I get a list of optional formats.

In the Python API, there is the Metashape.CalibrationFormat enum, which contains all of the options in the UI except for STMaps.

If there a different way to do this export, or has the enum not been updated in the API to allow this?

Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13995
    • View Profile
Re: STMap export through the Python API
« Reply #1 on: March 28, 2022, 08:41:23 PM »
Hello Hugh,

At the moment STMaps export via Python API is not supported, but we will try to update API as soon as possible.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: STMap export through the Python API
« Reply #2 on: March 29, 2022, 12:50:47 PM »
Thanks Alexey,

I appreciate your response, and it's good to know that I'm not missing anything

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: STMap export through the Python API
« Reply #3 on: April 01, 2022, 05:02:04 PM »
So for reference, I figured out how to do this in the current API...

camera.calibration.save(export_path, Metashape.CalibrationFormat(13))

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13995
    • View Profile
Re: STMap export through the Python API
« Reply #4 on: April 04, 2022, 04:53:41 PM »
Hello Hugh,

In the version 1.8.3 pre-release Metashape.CalibrationFormat.CalibrationFormatSTMap enum has been added.

To download the pre-release version you can just modify the version number in the release version link:
https://www.agisoft.com/downloads/installer/
Best regards,
Alexey Pasumansky,
Agisoft LLC

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: STMap export through the Python API
« Reply #5 on: April 04, 2022, 06:17:39 PM »
Thanks Alexey, I appreciate the update on this.

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: STMap export through the Python API
« Reply #6 on: April 06, 2022, 11:52:06 AM »
Is there pre-release documentation available? I tried downloading the Python API docs for 1.8.3, but I got a "file not found" error. I was hoping to see the changelog of what else had changed.

Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13995
    • View Profile
Re: STMap export through the Python API
« Reply #7 on: April 06, 2022, 12:14:34 PM »
Hello Hugh,

Not available for pre-release yet. Updated API Reference and change log will be available, when 1.8.3 version will be released officially.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Hugh

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: STMap export through the Python API
« Reply #8 on: April 06, 2022, 04:08:45 PM »
Got it - thanks Alexey