Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: scottm on August 02, 2018, 06:46:39 PM

Title: exporting reference table as csv
Post by: scottm on August 02, 2018, 06:46:39 PM
Hi all,

I'm trying to export the 'estimated' reference table with estimated XYZ camera coordinates plus projections and pixel errors.

I've tried working with Tasks.ExportReference to accomplish this, but have not been successful in developing working code. Likely because I don't fully understand the task class.

Could someone share some code for exporting the reference tables that I could start to work with?

Thanks,

-scottm.
Title: Re: exporting reference table as csv
Post by: Alexey Pasumansky on August 03, 2018, 02:25:51 PM
Hello scottm,

Have you tried to use the following function?
Code: [Select]
saveReference(path, format = PhotoScan.ReferenceFormatCSV, items = PhotoScan.ReferenceItemsCameras, delimiter = ",")/code]

But note that average reprojection error and number of tie point projections cannot be save in this way, so it this information is critical, you should customize the export.
Title: Re: exporting reference table as csv
Post by: Yoann Courtois on November 05, 2018, 05:25:47 PM
Hi Alexey,

I would like to indeed export average reprojection error and number of tie point for images, as well as average reprojection error and number of projection for markers, which are all unavailable with saveReference function, and unobtainable somewhere else through the API documentation.
May you help me in such needs ?

Regards