The invention discloses a
dirt detection method and device for a fisheye camera, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: firstly obtaining a to-be-detected
image sequence shot by the fisheye camera, carrying out the
feature extraction of the to-be-detected
image sequence, obtaining a plurality of first features, and carrying out the multi-scale extraction; performing
frequency domain processing on a target feature in the plurality of first features to obtain a
frequency domain attention feature map, performing
time domain processing on the plurality of first features to obtain a
time domain attention feature map, and fusing the
frequency domain attention feature map and the
time domain attention feature map to obtain a fused feature map; the output
mask is processed by the decoder to obtain an output
mask, a dark light compensation factor can be determined in combination with the brightness mean value and the expected brightness, and the output
mask is corrected to be a target mask; and finally, obtaining a detection result according to the mask, and triggering cleaning when the
dirt proportion reaches a preset threshold value. The method can improve the accuracy of
dirt detection, enhance the robustness of a sensing
algorithm, and guarantee the reliability of an automatic driving low-speed scene.