This paper presents a new method for scene agnostic camera localization using dense scene matching (DSM), where a cost volume is constructed between a query image and a scene. The cost volume and the corresponding coordinates are processed by a CNN to predict dense coordinates. Camera poses can then be solved by PnP algorithms.
If you find this project useful, please cite:
@inproceedings{Tang2021Learning,
title={Learning Camera Localization via Dense Scene Matching},
author={Shitao Tang, Chengzhou Tang, Rui Huang, Siyu Zhu and Ping Tan},
booktitle={Computer Vision and Pattern Recognition (CVPR)},
year={2021}
}
Usage
Environment
The codes are tested along with
pytorch=1.4.0
lmdb (optional)
yaml
skimage
opencv
numpy=1.17
tensorboard
Installation
Build PyTorch operations
cd libs/model/ops
python setup.py install
Build PnP algorithm
cd libs/utils/lm_pnp
mkdir build
cd build
cmake ..
make all
请发表评论