Forum

Author Topic: Align selected camera in python script  (Read 3637 times)

Seb_B

  • Newbie
  • *
  • Posts: 38
    • View Profile
Align selected camera in python script
« on: March 22, 2015, 05:39:53 PM »
Hello,

This is not the smrartest question, but I am wondering how we can lauch camera alignement in python script without the point detection step as it is done with "Align selected cameras" in the GUI?

Sebastien

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: Align selected camera in python script
« Reply #1 on: March 22, 2015, 05:41:02 PM »
Hello Sebastien,

It should be chunk.alignCameras(), where as an argument you can pass the list of cameras.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Seb_B

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Align selected camera in python script
« Reply #2 on: March 22, 2015, 05:45:40 PM »
Hello Alexey,

Thank you for this quick answer! So what is th function to align camera with the detection of the points? I tough It was chunk.alignCameras()!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: Align selected camera in python script
« Reply #3 on: March 22, 2015, 06:08:50 PM »
Hello Sebastien,

When Python is used, the Align Photos stage is split into two steps:
- chunk.matchPhotos() - when feature points are detected and matched,
- and chunk.alignCameras() - that uses existing matches for scene structure estimation.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Seb_B

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Align selected camera in python script
« Reply #4 on: March 22, 2015, 09:03:03 PM »
Ok. Thank you!