Forum

Author Topic: Wrong orientation of animation when using script animation from camera positions  (Read 3630 times)

jkova96

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Hi to everyone,
I'm writing to you cause I don't know what to do.
Animation in the video (from script) is oriented wrong - the link of video I'll post but only temporarily, so please if someone watching this post let them see in matter of maybe two days...cause I modify my YouTube channel...a lot - link is here: https://youtu.be/3oTGPG-s0wU?si=wk_j6DHD8Nmnfn0z
As you can see...orientation is wrong even I used Alexey script from this topic (ordered by date, time) - https://www.agisoft.com/forum/index.php?topic=11313.0...or same with this script too - https://www.agisoft.com/forum/index.php?topic=15761.0
Also, I started conversation within this topic - https://www.agisoft.com/forum/index.php?topic=15813.msg68576#msg68576
But Alexey told me that I need to check camera calibration.
I've check that already but in camera calibration seems to be wrong values so picture has to be 3024 by 4032 pixels, cause when I open it on any gallery (or any image viewer) it's displayed vertically, not horizontally. Unfortunatelly this conversation did not continued even I show him my data and don't know why that...cause I did not find solution since then. I suppose that something is wrong with orientation of images when loaded into Agisoft Metashape. I just want to find proper solution. Is it possible to change these values in Camera Calibration tab or what? I want to know if it's possible to do that for all images on one click? If that solve's issue. Or maybe some suggestion will be also helpful.
Thanks :)

tazzo

  • Full Member
  • ***
  • Posts: 157
    • View Profile
I would suggest you NOT to mix horizontal/vertical pictures togheter, but treat all as horizontal for the reconstruction purpose.
You can rotate the model / video at the end of the process.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
I have posted a script in another thread: https://www.agisoft.com/forum/index.php?topic=15813.msg68766#msg68766
It should consider orientation tag for the images, so if the image thumbnails in the Photos pane shot the desired orientation, then the script run will generate the animation track considering that orientation.
« Last Edit: November 02, 2023, 07:08:28 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC