How to load camera poses txt correctly

Comments

6 comments

  • Avatar
    Ondrej Trhan CR

    Hi, as Zuzana wrote in mentioned article:

    currently it is possible to import only camera positions via Flight log import. However, you can insert the camera orientations manually for each image. 

    You can follow this workflow for using flight log: https://www.youtube.com/watch?v=E2QCtisvdDc&t=21s

     

    0
    Comment actions Permalink
  • Avatar
    CoolResponse777

    Thanks for your reply.

     

    I have imported the camera position and orientation using flight log following the guide. But it doesn't improve the camera alignment results at all, and the alignment RC estimated is still very poor (it can only estimate 5 cameras out of 53 I provided).

     

    Currently what I did is to extract camera locations (XYZ) and orientation (euler angles) from OpenCV by decomposing the projection matrices we calibrated beforehand and wrote them to a csv (X, Y, Z, Yaw, Pitch, Roll).

     

    I wonder if it's possible to import focal length and distortion coeffs too and completely skip the alignment phase at all? Or if there is any way to improve the automatic calibration process since currently the estimation given by RC is far poorer than COLMAP in my dataset?

    0
    Comment actions Permalink
  • Avatar
    CoolResponse777

    Also, I wonder what the camera coordinate system RC is using. For now I assume it's the same as OpenCV, where cameras look at the Z. If that's not the case then the prior I provided could be misleading, and does more harm than good.

     

    But even if I leave orientation out and provide locations only, the quality of calibration doesn't improve either... Which is really puzzling.

    0
    Comment actions Permalink
  • Avatar
    Ondrej Trhan CR

    Hi, what type of images are you using? What are your alignment settings? How big errors do you have there?

    5 aligned cameras from 53 is quite few... What overlap is between images? When you don't use flight log, are the cameras aligned correctly?

    It is possible to import these parameters using XMPs or if they are part of the EXIF data. When this is not possible, you can insert them manually.

    Euler's rotations are not unambiguously determined, because you can use different combinations to get to one point.

    About the camera:

    +Z is pointing down

    You can skip alignment phase, when you want to create a model.

    0
    Comment actions Permalink
  • Avatar
    CoolResponse777

    Hi,

    I used the default setting all along.

    The result is pretty poor without flight log, so that's why I tried to provide some prior in hope of making it better.

    After removing some cameras with little overlaps with others the result improves but still quite poor. Is there an option to do the feature matching in an "exhaustive" fashion same as COLMAP?

    Btw, the cameras form a ring with object in the center. But RC insists they are in the same side for some reason I am not aware of... I increase the weights of prior but it doesn't help.

     

    Regarding the camera coordinate it looks the same as OpenCV, then I don't get it why it becomes worse after the optimization process...

     

    0
    Comment actions Permalink
  • Avatar
    Ondrej Trhan CR

    Is it a solid rig or rotation table?

    0
    Comment actions Permalink

Please sign in to leave a comment.