PET (polyethylene terephthalate) preform is a semi-finished product of beverage packaging bottles, and there are inevitably defects in the production process. The preforms currently exist such as support ring damage, flashing, pull-out, lack of glue, air bubbles, bottle mouth damage, oval, impurities, etc., which directly or indirectly cause the final product to be unqualified and bring huge losses to the enterprise. How to eliminate defective bottles before canning is an important issue in PET bottle production. Automated PET preform inspection refers to a visual inspection device that uses a machine to replace the human eye for measurement and judgment. The captured target is converted into an image signal through machine vision products, which is sent to a dedicated image processing system, and then based on the result of the judgment. To control the actions of the equipment on site. The equipment is mainly divided into four units: feeding unit, visual inspection unit, defective product rejection unit, and discharging unit. The visual inspection unit adopts multiple sets of visual processing systems according to the product size to carry out a full range of product preform mouth roundness, preform mouth damage, bottle mouth diameter, bottle body black spots, bottle body dirty, bottle body bubbles, flashing, etc. Detection. The testing equipment can be connected with the production equipment to test each product one by one, optimize the production process to improve the testing efficiency and accuracy, and reduce the labor cost of the enterprise.