This paper develops the visual detection system of the button battery based on Labview to resolve button battery surface’s quality. To obtain continuous image acquisition process, we can use IMAQ Grab Setup.vi function to initialization before each image acquisition, and use IMAQ Grab Acquire.vi function to capture image. Here one-dimensional array can be got from the input port of the vidicon. And then the array is binary processed and denoised to prevent the small drop point being fat in the expansion processing. To get the white points of scratch image from the battery, it is necessary to create a template and make a logical subtraction to the two images. When the white points are greater than the set threshold, the battery is unqualified. The detected results are transferred to PLC in digital form and the pneumatic components are controlled by PLC to remove substandard products. Used by battery manufacturers, this system achieves good results.