Forum

Author Topic: How to change the accuracy in meters using a script?  (Read 2463 times)

Kirill

  • Newbie
  • *
  • Posts: 9
    • View Profile
How to change the accuracy in meters using a script?
« on: March 06, 2024, 04:34:33 PM »
How to change the accuracy in meters using a script?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15238
    • View Profile
Re: How to change the accuracy in meters using a script?
« Reply #1 on: March 06, 2024, 04:44:00 PM »
Hello Kirill,

If you need to change the default accuracy for cameras/markers you should assign a three-component vector to chunk.camera_location_accuracy or chunk.marker_location_accuracy respectively. This value appears in the Reference pane settings dialog.

In case you would like to set the individual accuracy for certain camera or marker, you should assign the three-component vector to camera.reference.location_accuracy or marker.reference.accuracy. For example:
Code: [Select]
camera.reference.location_accuracy = Metashape.Vector([1, 1, 1]) # one meter accuracy for all coordinates
marker.reference.accuracy = Metashape.Vector([0.1, 0.1, 0.5]) # ten cm accuracy for XY and 50 cm for altitude
Best regards,
Alexey Pasumansky,
Agisoft LLC