Remotely operated vehicles (ROVs) and unmanned aerial vehicles (UAVs) provide a solution for dam and bridges structural health information acquisition, but problems like effective damage-related information extraction also occur. Vision-based crack detection methods can replace traditional manual inspection and achieve fast and accurate crack detection. This paper thereby proposes a lightweight, real-time, pixel-level crack detection method based on an improved instance segmentation model. A lightweight backbone and a novel efficient prototype mask branch are proposed to decrease the complexity of the model and maintain the accuracy of the model. The proposed method attains an accuracy of 0.945 at 129 frames per second (FPS). Moreover, our model has smaller volume, lower computational requirements and is suitable for low-performance devices.
Drainage pipeline construction projects are vulnerable to a range of defects, such as branch concealed joints, variable diameter, two pipe mouth significances, foreign object insertion, pipeline rupture, and pipeline end disconnection, generated during long-term service in a complex environment. This paper proposes two enhancements to multiple attention learning to detect and segment multiple defects. Firstly, we collected numerous samples of drainage pipeline sonar defect videos. Then, our multiple attention segmentation network was used for target segmentation. The test precision and accuracy of MAP@50 reach 96.0% and 90.9%, respectively, in the segmentation prediction. Compared to the coordinate attention and convolutional block attention module attention models, it had a significant precision advantage, and the weight file size is merely 7.0 MB, which is far smaller than the Yolov9 model segmentation weight size. The multiple attention method proposed in this paper was adopted for detection, instance segmentation, and pose detection in different public datasets, especially in the object detection of the coco128-seg dataset under the same condition. Map@50:95 has increased by 13.0% assisted by our multiple attention mechanism. The results indicated the memory efficiency and high precision of the integration of the multiple attention model on several public datasets.