Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Hugh

Pages: 1 [2]
Python and Java API / Re: STMap export through the Python API
« on: April 01, 2022, 05:02:04 PM »
So for reference, I figured out how to do this in the current API..., Metashape.CalibrationFormat(13))

Python and Java API / Redirecting the console output
« on: March 30, 2022, 09:18:57 PM »
Is it possible to redirect the output in Python when using the Metashape python module? Ideally I'd like to be able to hook into it another way, although as I can set, an alternate solution would be to only have it log to the file and stop output to stdout.

For readability in the terminal, I'd like to just deal with the output myself using the progress callback, and have the raw log go to a file (ideally with timestamps, which is why I was hoping I could redirect it)

If I were running a script with metashape.exe -r, I could redirect the output using the subprocess module, but I'm not sure how I could do this when using the Metashape module directly.


Python and Java API / Re: STMap export through the Python API
« 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

Python and Java API / 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?


Pages: 1 [2]