Forum

STMap export through the Python API

Started by Hugh, March 28, 2022, 06:20:51 PM

Previous topic - Next topic

Hugh

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

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

Thanks Alexey,

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

Hugh

So for reference, I figured out how to do this in the current API...

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

Alexey Pasumansky

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

Thanks Alexey, I appreciate the update on this.

Hugh

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

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