Forum

Author Topic: View capture using python  (Read 3290 times)

specyfick

  • Newbie
  • *
  • Posts: 5
    • View Profile
View capture using python
« on: February 21, 2024, 11:32:08 PM »
Hi,
Is it possible to capture model view using specyfik python command ?
I want to capture view on exact places, exact angle and FOW of the camera.

Ideally, I want to set the viewer position on the position where camera was during capturing. Capture photo from the model generated by metashape, and save it.

Any ideas ?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15413
    • View Profile
Re: View capture using python
« Reply #1 on: February 22, 2024, 01:40:42 PM »
Hello specyfick,

You can use renderImage or renderPreview commands. See an example of renderImage here:
https://www.agisoft.com/forum/index.php?topic=16154.msg69543#msg69543

renderImage may be easier for your needs, as you can pass camera.transform matrix for the virtual camera location for the model rendering and use the same calibration.
Best regards,
Alexey Pasumansky,
Agisoft LLC