Agisoft Metashape

Agisoft Metashape => General => Topic started by: Mostafa on December 22, 2021, 08:04:32 PM

Title: Reference for the NVM format
Post by: Mostafa on December 22, 2021, 08:04:32 PM
Hello,

When I export cameras to NVM format, the parameters are defined in a local coordinate system, and I notice it is different from the one in the XML format.

How to transform the cameras and points at NVM format from the local to the global coordinate system?
Title: Re: Reference for the NVM format
Post by: Alexey Pasumansky on January 08, 2022, 08:59:55 PM
Hello Mostafa,

You can try to export the cameras in geocentric coordinate system using the following Python code line:
Code: [Select]
Metashape.app.document.chunk.exportCameras(path = 'cameras.nvm', format = Metashape.CamerasFormatNVM, crs = Metashape.CoordinateSystem('EPSG::4978'))
Title: Re: Reference for the NVM format
Post by: Mostafa on January 29, 2022, 12:19:49 AM
Thanks Alexey,

I noticed when I save to NVM, it includes the failed/un-aligned cameras. Is it a bug? and is it also the case with other formats?