The invention discloses a
feature extraction method and
system based on difficult sample mining and multi-
granularity division. The
feature extraction method and
system are used for cross-view geographic
image retrieval tasks. According to the method, firstly, cross-view-angle streetscape images and
satellite images are preprocessed, cross-view-angle images are generated by using a
generative model, and visual differences among different view-angle images are reduced; secondly, constructing a two-stage difficult sample mining model which comprises a sampling strategy based on a geographic position and visual similarity, mining difficult negative samples in different ranges, and enhancing the inter-
class discrimination capability; secondly, a multi-
granularity feature division module is introduced, image features are extracted through a ResNet50
backbone network, feature division and fusion are carried out according to different granularities, and rich and robust
view angle invariant feature representation is obtained; and finally, inputting a
satellite image to be retrieved into the trained
feature extraction model, extracting features, and performing
similarity matching on the features and the streetscape image
library to obtain a cross-view
retrieval result.