This barrel lid appearance defect detection machine utilizes high-definition imaging technology to analyze object images and obtain various parameters for real-time comparison and detection with standard products. Under the AI deep learning algorithm, the system removes unqualified products through high-speed, the air valves and automatically counts and divides qualified products into boxes, this cap appearance defect inspection system greatly improve the production efficiency and ensuring product qualification rate.