The invention relates to the technical field of industrial vision, in particular to a building structure crack recognition method and
system based on
image analysis, and the method comprises the following steps: projecting a preset coding
pattern sequence to the surface of a building structure, and collecting and obtaining a
distortion pattern image set, and coding information in the
distortion pattern image set is decoded pixel by pixel and
triangulation positioning calculation is carried out. According to the method, the coding pattern is projected on the surface of the building structure, the distorted image is synchronously acquired,
triangulation positioning calculation is performed after pixel-by-pixel decoding, three-dimensional
surface point cloud data with complete details can be generated, a two-dimensional crack
grayscale image with uniform illumination is acquired, crack feature missing caused by single-dimensional information is avoided, and the accuracy of crack
feature detection is improved. A normal vector and a maximum principal curvature value are calculated based on the three-dimensional
surface point cloud data, a threshold value is set to screen a high-change area, and crack points and background points are effectively distinguished, so that the three-dimensional geometrical morphology of the crack can be accurately separated and reserved.