The present application relates to the technical field of contour extraction, in particular to a knitted
label edge contour extraction and optimization method, comprising the following steps: extracting
image edge gray trend and obtaining broken coordinates, extracting edge track to generate a connection path, reconstructing the connection path of the interference area, converting the path distribution of the burr area and screening out abnormal paths, and fusing the
boundary structure to generate a
label contour structure, in the present application, by identifying the gray
mutation and edge interruption characteristics in the image, the broken area is accurately positioned, the
structural integrity recognition is enhanced, the
spatial correlation and direction fitting of the edge endpoints in the interference area are performed, the boundary
recovery ability and closure degree are improved, the abnormal path segments are screened out through polar distribution, the burr influence is suppressed, the
geometric stability is ensured, the control nodes are set based on the position relationship between the boundary segments and the overall chain, the trend coordination structure of the boundary connection is fused, the contour consistency and robustness in complex background are improved, and the coherent recognition ability and extraction accuracy are strengthened.