Abstract:Hydroponic lettuce is the main crop in plant factories. However, mechanical harvesting currently causes serious leaf damage. The key problem of low-damage harvesting in plant factories was solved. A visual detection method for lettuce leaf expansion and overlapping points to control flexible grasping parameters was proposed, thereby improving harvesting quality. A vision-based leaf expansion detection method was carefully tested that used edge contour extraction to accurately measure leaf expansion, even when adjacent lettuce plants overlapped. The results were used to adjust flexible gripper diameters precisely. To optimize overlapping point recognition, comprehensive experiments were conducted by comparing YOLO v5s, YOLO v5s-SimAM, YOLO v5s-SENET, and YOLO v5s-CA models, with detailed analysis of their respective impacts on recognition accuracy parameters. Subsequently, based on the leaf expansion detection results, optimal overlapping points were screened. The positional information of these selected overlapping points was then used to calculate the most appropriate grasping angles for the robotic manipulator. Experimental results demonstrated that the visual detection system achieved an average relative error of merely 2.46% for leaf expansion measurement. Moreover, the YOLO v5s-CA model delivered superior performance in overlapping point recognition with 94.1% accuracy, 91.0% recall, and 93.8% mAP. Subsequent harvesting validation tests confirmed the effectiveness of this method, attaining a remarkable 97.23% success rate while maintaining minimal damage at just 4.08%, ultimately realizing high-quality, low-damage flexible harvesting of hydroponic lettuce.