The invention relates to the technical field of industrial detection, in particular to a drainage
pipe shearing quality detection method and
system based on shape recognition. The method comprises the following steps: acquiring a
grayscale image of a shear section of a drainage
pipe, extracting sub-pixel edge points, constructing a polar coordinate sub-pixel edge sequence containing an original radial distance and a shear
phase angle, and calculating a mechanical collapse index; calculating an elastic
modal weight and a plastic collapse weight based on the shear
phase angle; and acquiring a local curvature and a local gradient distribution standard deviation of the sub-pixel edge points, calculating a theoretical radial distance in combination with an original radial distance, a mechanical collapse index, an elastic
modal weight and a plastic collapse weight, further calculating a real
diameter and a
roundness error of the drainage
pipe, and generating an equipment adjustment feedback
signal. Through light shape decoupling and rheological compensation mechanisms, the influence of reflective interference and
shear stress deformation is effectively inhibited, and high-precision detection of the shear quality of the drainage pipe is realized.