The invention relates to the technical field of defect detection, in particular to a special equipment defect automatic identification method and
system, and the method comprises the following steps: marking a continuous path based on an image gray scale gradient and adjacent differences, identifying the pixel connection intensity to obtain a contour
image layer, extracting continuous pixels, analyzing gray scale and gradient features, and expanding a texture direction to generate a defect image block. And marking and connecting the small regions to obtain a closed layer, analyzing texture and edge differences, matching classification tags, and clustering and coding to generate a defect identification tag set. According to the method,
boundary structure recognition is enhanced through gray gradient and direction continuity analysis, a texture aggregation area is expanded in combination with gray consistency and edge direction stability, brightness abrupt
change points are removed, contour extraction precision is improved, micro crack continuity is recovered, and pseudo defects are eliminated; and multi-dimensional image attributes are fused to identify key region feature differences, so that the classification precision and the
spatial mapping consistency are improved, and efficient and accurate defect identification and stable classification are realized.