Abstract:A set of automatic feeding system of chocolate bar based on line array camera was designed. Design and select hardware system according to functional requirements; Aiming at the difficulty of hand-eye calibration for linear array cameras, a hand-eye calibration method for dynamic scanning imaging was proposed. After preprocessing the collected images, the template matching was used to identify the target, and the tracking trajectory was optimized and then sent to the robot to grasp and place. The experimental results showed that the grasping error of the robot was less than 0.5 mm, and the feeding speed met the requirements. The system had good applicability and expansibility, which provided ideas for the application of machine vision in food production industry.