Abstract:Tomatoes are one of the major crops in facility agriculture. Against the backdrop of a shortage of agricultural labor, the automated harvesting of tomatoes is of great significance. To meet the harvesting requirements of individual tomatoes in facilities, a smart harvesting platform for facility tomatoes was designed. The platform mainly consisted of a lifting mechanism, a harvesting mechanism, and an identification and positioning system. The overall harvesting structure was composed of a low-voltage integrated servo ball screw pair lifting mechanism, a six-axis collaborative robotic arm, and a force-controlled end effector, achieving automated, precise, and efficient harvesting operations. Based on an improved YOLO v5-HSV fusion algorithm for identification and detection, image threshold segmentation was performed on the H component. This improved the accuracy of identifying ripe target fruits and effectively eliminated the interference of unripe tomatoes and leafy backgrounds. Using the eye-in-hand calibration method, the ZED stereo camera was employed for positioning to obtain the spatial coordinates of target fruits in the robotic arm’s base coordinate system in real-time. In field harvesting experiments, the facility tomato harvesting robot prototype built achieved a recognition accuracy of 95.01%, increased the harvesting success rate to 87.96%, and reduced the average harvesting time per fruit to 14.56s. The results showed that the YOLO v5-HSV fusion algorithm can reduce recognition errors of tomatoes. The eye-in-hand algorithm was used to calculate the transformation matrix for accurate identification and positioning of target fruits. The recognition, positioning, and harvesting capabilities of the smart harvesting device for facility tomatoes met the practical operational requirements.