The invention relates to an on-tree
palm fruit maturity detection method and device based on target segmentation and
colorimetric analysis, equipment and a medium, and the method comprises the steps: updating a
backbone network of a first maturity detection model to a StarNet framework, updating all C2F modules in the
backbone network and a neck network to C2F-Star modules, a detection head network is updated to be a lightweight shared
convolution detection head, an original CIOU
loss function is updated to be a DIOU
loss function to construct a second maturity detection model, and a C2F-Star module is used for updating a
Bottleneck structure in an original C2F module to be a Star Block module; and inputting a to-be-detected
palm fruit image into the second maturity detection model, outputting a polygon
mask corresponding to each target
palm fruit, counting a red pixel proportion in a polygon
mask area, and determining a maturity category corresponding to each target palm fruit according to the red pixel proportion. According to the method, the target can be stably identified even in the scenes of interlaced branches and overlapped leaves, and the problem of detection failure caused by shielding is solved.