The application discloses a road
disease detection method and device under the perspective of a UAV, an electronic device and a program product. The method is realized based on a trained target detection model. When the target detection model is trained, the initial query is dynamically adjusted through a self-adaptive
noise query generation mechanism, so that the generated
noise query is more consistent with the
target distribution characteristics, thereby improving the query expression stability, model convergence efficiency and detection accuracy. After training, the model removes the
noise query
generation process without increasing the
inference complexity. In addition, during training, a Hungarian matching cost function and a consistency
loss function are designed in combination with scale
perception, shape consistency and direction consistency, which can improve the matching reliability of small targets and
complex disease targets. Moreover, whether the model is in the training process or the application process, the
backbone network is provided with a direction
perception strip feature enhancement module, which can enhance the representation ability of the spatial continuity features of cracks, joints and strip-shaped diseases.