Forum

Author Topic: Retrieve Scalebar Error  (Read 219 times)

ser1993

  • Newbie
  • *
  • Posts: 12
    • View Profile
Retrieve Scalebar Error
« on: June 19, 2025, 06:19:40 AM »
Hello,

I have a script that automatically generates scalebars but I cannot find a way to retrieve the scalebar error.
Is there something in the Python API am I missing? If not, would it be possible to expose this parameter in the API?
It could be really helpful to filter out outliers for instance.

Thanks,
Matteo

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15465
    • View Profile
Re: Retrieve Scalebar Error
« Reply #1 on: June 19, 2025, 01:44:17 PM »
Hello Matteo,

Please check how the estimated distance and error values are calculated for scale bars in the following script published in our GitHub repository:
https://github.com/agisoft-llc/metashape-scripts/blob/master/src/save_estimated_reference.py

Basically, error is the difference between reference distance and estimated distance between the scale bar end points.
Best regards,
Alexey Pasumansky,
Agisoft LLC