cvg / LightGlue

LightGlue: Local Feature Matching at Light Speed (ICCV 2023)
Apache License 2.0
3.41k stars 336 forks source link

Export the results in the form of COLMAP database? #140

Closed jianghr-shanghaitech closed 2 weeks ago

jianghr-shanghaitech commented 2 weeks ago

Thank you very much for your work. I would like to ask if it is possible to output the matching information of the results in a format similar to the COLMAP database. Thank you again!

sarlinpe commented 2 weeks ago

We have some code for this in https://github.com/cvg/Hierarchical-Localization/

  1. Run feature extraction and matching into hdf5 files with hloc.extract/match_features
  2. Convert to a COLMAP database using this: https://github.com/cvg/Hierarchical-Localization/blob/abb252080282e31147db6291206ca102c43353f7/hloc/triangulation.py#L64-L109
jianghr-shanghaitech commented 2 weeks ago

Thank you so much for your prompt response. It has been incredibly helpful to me. Truly appreciate it!