The invention discloses a sweet potato
seedling stem length estimation method based on
deep learning and application, belongs to the technical field of
agricultural automation, and aims to solve the problem that continuous stems cannot be accurately extracted by a traditional
image segmentation and
template matching method due to the fact that sweet potato stems are often shielded by leaves or naturally bent. The
stem length estimation method comprises the following steps: S1,
data acquisition and labeling; s2, model training; s3,
main stem reconstruction; s4, calculating the length of the
main stem; wherein the operation of the
main stem reconstruction in the step S3 is as follows: S3.1, carrying out binaryzation on the fine
mask subjected to semantic segmentation in the step S2.2, and then generating a skeleton by using a Zhang-Suen refinement
algorithm; and S3.2, extracting skeleton intersection points, segmenting the skeleton intersection points into discrete line segments, combining PCA
principal direction analysis and curvature constraint, and then dynamically searching and repairing a main stem. The method supports shielding (blade shielding middle section), bending, low-density cluster and other complex scenes, and the robustness is remarkably improved; experimental test results show that the
processing time of a
single image is 0.53 seconds, and the field real-time requirement is met.