The invention belongs to the technical field of condition judgment, and particularly relates to an
electrode foil
corrosion condition judgment method and
system, and the method comprises the following steps: S1, obtaining a
grayscale image of a to-be-analyzed
electrode foil; constructing a
structure tensor based on the composite gradient reflecting the local brightness and texture information of the pixel points, determining an
anisotropic diffusion coefficient according to the
structure tensor, and performing iterative
anisotropic diffusion filtering
processing on the
grayscale image by using the
anisotropic diffusion coefficient to obtain a filtered image; and S2, fusing the anisotropic
diffusion coefficient determined for each pixel point with the
pixel intensity of the filtered image to obtain a high-contrast
corrosion significance map. According to the method, the contour edge information of the
corrosion area can be kept while the complex texture and
noise of the background area of the
electrode foil image are smoothed, the contradiction between denoising and edge protection of a traditional filtering method is solved, the result of the corrosion condition is more reliable, and the
automation level of electrode foil product quality detection is improved.