The invention provides a hardware
corrosion detection and quantification method in an
electric power inspection image, and relates to the technical field of
electric power inspection
image processing, and the method comprises the following steps: collecting an unmanned aerial
vehicle inspection power transmission line
aerial image; positioning hardware equipment in the image by using the improved YOLOv5s; separating the hardware fitting from the background by using a
GrabCut segmentation
algorithm and a morphological optimization
algorithm; extracting and separating color images of three channels in a YCrCb
color space, and obtaining a
grayscale image of a Cr channel; according to the threshold segmentation of the Cr channel, obtaining a hardware
corrosion binary image, and according to the
binary image, judging whether the hardware is corroded or not; and counting the number of pixel points in the
corrosion area and the number of pixel points in the hardware fitting area, and judging the corrosion grade of the hardware fitting by calculating the
area ratio of the two areas. According to the method,
deep learning and traditional
image processing are combined, hardware identification, corrosion area detection and corrosion degree quantification in the inspection image are realized, and the defects of low working efficiency and high subjectivity caused by manual
visual inspection of corrosion detection of
power transmission line hardware equipment are overcome.