Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

How to visualize colmap export that contains Intrinsic and Extrinsic Camera Parameters using python

$
0
0

I have a transforms.json file which contains Intrinsic and Extrinsic for 23 cameras. I would like to visualize those using Python, colmap, pycolmap and jupyternotebook. Below is a part of the .json file

{"w": 1920,"h": 1080,"fl_x": 1098.8550003271516,"fl_y": 1110.2997543513977,"cx": 970.1319034923014,"cy": 542.0541746563172,"k1": -0.28118870977442023,"k2": 0.06674186867742171,"p1": 0.0026768267765996103,"p2": -0.00237229158478273,"camera_model": "OPENCV","frames": [    {"file_path": "images/frame_00023.jpg","transform_matrix": [        [          -0.07042611592680023,          -0.9713950978549236,          0.22678563900496068,          2.1881674886247935        ],        [          0.9325864609677816,          0.016566699247072256,          0.3605662730978109,          1.7471888187630829        ],        [          -0.3540093996139834,          0.2368904986264339,          0.9047431882282766,          -0.21938707719027645        ],        [          0.0,          0.0,          0.0,          1.0        ]      ],

Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>