The algorithm is improved by using the idea of key frame to make up for the low performance of mobile devices and improve the stability of relocation. The algorithm is fast and easy to use, and can be applied to tasks requiring large volume monitoring.