Visual Localization in Underground Mines and Indoor Environments using PnP