The article presents the algorithm that allows one to carry out automatic detection of local anomalies of magnetometric data based on image analysis principles. The algorithm was tested on the available data of the magnetometric survey in areas of planned archaeological excavations.