The goal of this work is to automate the defect detection system for PET preforms production. For this purpose, it is necessary to consider the machine vision method, which has hardware and software structures that include many technical components. The software in turn includes two parts: one is used in the computer for image processing and the other for controlling the mechanical components of the system. However, this is a very expensive and time-consuming process due to the collection of large amounts of information with labeled defect samples. As shown, this technology can improve the scope, efficiency, quality and reliability of industrial inspection, which in turn leads to a number of advances in modern industry. Also, the company is able to increase its productivity, reduce the cost of defect controllers’ salaries, increase profits, and avoid creating situations in which equipment will be idle.