The application provides a SAR target detection method combining
feature fusion and position relationship awareness, comprising the following steps: constructing a real-time target detection model based on a
Transformer, introducing a spatial detail compensation path into a mixed
encoder and containing a mixed representation enhancement module; a
Transformer decoder comprises a position relationship awareness module; inputting a SAR image into a trained target detection network, inputting multi-scale fusion features into the
Transformer decoder, adjusting self-attention
weight distribution according to the position relationship between queries in the same layer by using the position relationship awareness module, guiding spatial
layout reasoning, and outputting a target detection result; and the target detection network is trained by using a weighted intersection over union
zoom loss function based on a dynamic IoU weight guiding mechanism as a classification
loss function. In this way, the target
detection rate, positioning accuracy and overall robustness in a
small target and dense scene are improved, and feature
confusion under strong scattering interference is alleviated.