Forum

Author Topic: Reference Settings parameters  (Read 649 times)

PierreB

  • Newbie
  • *
  • Posts: 11
    • View Profile
Reference Settings parameters
« on: June 09, 2022, 10:55:55 PM »
Hi. I'm trying to implement in my Python script the various parameters found in the GUI Reference Settings window. Do you have a script example showing this process? Thank you.

Paulo

  • Hero Member
  • *****
  • Posts: 1023
    • View Profile
Re: Reference Settings parameters
« Reply #1 on: June 10, 2022, 12:10:25 AM »
Hello PierreB,

to reflect the settings shown in your example Reference Settings window, you can do:
Code: [Select]
import Metashape as ps
chunk = ps.app.document.chunk
chunk.crs = ps.CoordinateSystem('EPSG::32619') # set Coordinate System to WGS84/UTM19 N
chunk.euler_angles = ps.EulerAnglesOPK             # set rotation angles to omega, phi, kappa
chunk.camera_location_accuracy = ps.Vector((0.05,0.05,0.05)) # set camera accuracy to 0.05 m
chunk.camera_rotation_accuracy = ps.Vector((0.35,0.35,0.35)) # set camera rotation accuracy to 0.35 deg

in Gui you would have the following...
« Last Edit: June 15, 2022, 06:56:45 PM by Paulo »
Best Regards,

Paul Pelletier,
Surveyor

PierreB

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Reference Settings parameters
« Reply #2 on: June 10, 2022, 08:22:40 PM »
Great! Thanks Paul.

Paulo

  • Hero Member
  • *****
  • Posts: 1023
    • View Profile
Re: Reference Settings parameters
« Reply #3 on: June 10, 2022, 08:27:59 PM »
De rien Pierre,

es-tu du Québec?
Best Regards,

Paul Pelletier,
Surveyor

PierreB

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Reference Settings parameters
« Reply #4 on: June 10, 2022, 10:11:06 PM »
Oui, de Montréal. Toi aussi?

Paulo

  • Hero Member
  • *****
  • Posts: 1023
    • View Profile
Re: Reference Settings parameters
« Reply #5 on: June 10, 2022, 10:41:55 PM »
Oui,

je vivais auparavant à Montréal mais depuis quelques années je réside au Mexique où j'ai travaillé sur divers projets en photogrammétrie dont plusieurs avec drone eBee....

Et toi, sur quels types de projets travailles-tu?

Au plaisir,

Best Regards,

Paul Pelletier,
Surveyor