A density
perception image defogging method in combination with physical prior comprises the following steps: S1, acquiring a
fog-containing image, marking a
fog area and a
fog-affected area, constructing a
data set D1 through size unification, normalization and multi-dimensional data enhancement, and dividing the
data set D1 into a
training set and a
verification set according to a proportion; s2, a density
perception defogging network is constructed, the density
perception defogging network comprises an
encoder sub-network, a middle layer sub-network and a decoder sub-network, core modules are a gridding atmospheric light attention module and a space detail enhancement module, and a GAAB integrates a multi-scale density perception
convolution module, a grid perception atmospheric attention module and a
feature fusion module; fog density features can be accurately captured, and physical prior can be fused; s3, inputting the
data set into a defogging network to generate a multi-scale feature map; s4, carrying out training optimization on the network by adopting a combined
loss function of L1 loss and perception loss; s5, evaluating the
network performance through the
verification set; according to the invention, adaptive defogging in different fog concentration scenes is realized, and the definition of the defogged image is effectively improved.