The invention belongs to the technical field of
machine vision and
deep learning, and discloses an
engineering structure crack detection and measurement method based on
machine vision, and the method comprises the steps: collecting original image data of an
engineering structure, discretizing the original image data into image blocks, carrying out the preprocessing, building a crack classification model through a Resnet-50 neural network, and carrying out the training, the method comprises the following steps of: firstly, constructing an image block, identifying a crack image in the image block, then constructing a SegFormer segmentation model based on a
Transformer framework to segment the crack image to obtain a crack
mask graph, evaluating the performance of the two models, then analyzing the two models by adopting an orthogonal skeleton line method, obtaining a
contour line and a skeleton line of a crack, and calculating the length of the crack. According to the method, the ResNet-50 image classification model and the SegFormer segmentation model are combined to realize high-precision crack identification and segmentation of the building structure crack, the
contour line and the skeleton line of the crack are obtained and the length of the crack is measured by means of the orthogonal skeleton line method, and the crack of an
engineering structure is well detected and subjected to
risk assessment.