Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving data from COLMAP #72

Open
joseTWD opened this issue Oct 11, 2024 · 3 comments
Open

Retrieving data from COLMAP #72

joseTWD opened this issue Oct 11, 2024 · 3 comments

Comments

@joseTWD
Copy link

joseTWD commented Oct 11, 2024

Hi again!

Diving in the base code I was trying to find some way to retrieve, besides of the .bin files, the .txt or .h5 files used to generate the output in the images directory. As far as I know, COLMAP and pycolmap work this way to retrieve the information deleting temporary files. Is there some way to keep these files as an output?

Thanks! :)

@jytime
Copy link
Contributor

jytime commented Oct 11, 2024

Hey,

I am not sure if I understand it clearly here. Do you mean cameras.txt, images.txt, and points3D.txt? You can easily convert *bin files to *txt by using such scripts

https://github.com/colmap/colmap/blob/6e17523401c64eabbdc6b117679504bea65ca31f/scripts/python/read_write_model.py#L512

@joseTWD
Copy link
Author

joseTWD commented Oct 11, 2024

Sorry, I think I was not clear enough.

Besides of the generated outputs (cameras,, images and points3D in .bin format) I was aiming to retrieve previous data, like the one generated by LightGlue, but I'm not sure if this is possible or it would work the same way COLMAP usually does, generating temporary files in order to create the .bin output.

@jytime
Copy link
Contributor

jytime commented Oct 11, 2024

Hey I think it is possible but you may need to customize a wrapper to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants