A visual inspection machine, in a nutshell, uses machines to replace manual labor for target recognition, judgment and measurement. It is an interdisciplinary integration of modern optics, electronics, software engineering, signal processing and system control technology. The optical acquisition equipment is composed of industrial cameras, light sources, and supporting image acquisition cards and other hardware. Its main task is to obtain digital images of labels passing through the acquisition position to provide materials for subsequent analysis and processing, which is equivalent to the eyes of manual inspection. The main inspection items include: black spots, notches, flash, presence or absence of gaskets, oil stains, etc.