In recent years, as the requirements of hygiene and safety regulations have increased, the food industry has gradually begun to undergo intelligent transformation. Taking popsicles as an example, this paper designs a new type of intelligent detection station and matching algorithms. Using edge detection and minimum contour fitting, a non-contact measurement technology for product size was realized, and a standard relative error of less than 1.1% was obtained in 7 groups of 238 data sets.