Resumen
Detecting the defects of a battery on the surface and edge has always been difficult, especially for concave and convex ones, thereby seriously affecting its quality. Thus, sub-regional Gaussian and moving average filtering are innovatively proposed in this study considering the effect of the nonuniform background illumination of the battery edge and the difference between the edge background and the internal surface defects of the battery. The battery surface image is divided into two areas, namely, edge area W1" role="presentation" style="position: relative;">??1W1
W
1
and inner area W2" role="presentation" style="position: relative;">??2W2
W
2
. Gaussian and moving average filtering are carried out row-by-row and column-by-column in the inner area W2" role="presentation" style="position: relative;">??2W2
W
2
and the edge area W1" role="presentation" style="position: relative;">??1W1
W
1
, respectively. The algorithm is tested on 600 battery samples that mainly possess concave and convex defects. The proposed method has higher detection accuracy and lower omission detection rate than the traditional unpartitioned processing method, especially in detecting the accuracy of edge defects. The accuracy rates were approximately 20% higher than that obtained by the traditional processing algorithm. The proposed method has remarkable real-time performance that can process four 8192 × 10,240 pixel battery images per second, thereby meeting the industrial production line speed requirements while satisfying accuracy. The proposed method has been applied in actual production for defect inspection.