The application is suitable for the technical field of
image processing, and provides a battery
glue line skeleton extraction method based on an improved ZS
thinning algorithm, which comprises the following steps: preprocessing a collected battery
glue line image to obtain a
binary image; performing improved ZS
thinning on the
binary image, dividing the image into odd and even subdomains for
batch processing, and introducing a constraint condition to iteratively delete redundant pixels to obtain a preliminary skeleton; using a T-shaped 4-neighborhood deletion template to remove T-shaped redundant pixels and realize complete single-pixelization; through 8-
chain code tracking, identifying and removing burr branches caused by glue overflow and uneven glue
coating, while protecting nodes to obtain a final
glue line skeleton. The application solves the problems of skeleton redundancy, over-
thinning and burr in existing thinning algorithms, realizes high-precision, single-pixel and burr-free glue line skeleton extraction, and can meet the online detection requirements of battery
assembly lines, and has good industrial applicability.