Skip to main content
Log in

Pineapple (Ananas comosus) fruit detection and localization in natural environment based on binocular stereo vision and improved YOLOv3 model

  • Published:
Precision Agriculture Aims and scope Submit manuscript

Abstract

The detection and localization of pineapple fruit must be successfully conducted to realize intelligent picking. This paper proposed a method for detecting and localizing pineapples in natural environments based on binocular stereo vision and an improved YOLO (You Only Look Once) v3 model. In comparison with the original YOLOv3, the improved algorithm did the following two improvement: the DenseNet was added into the Darknet-53 backbone network to optimize the 13 × 13 and 26 × 26 feature layer, and the SPP-net was fused in the 52 × 52 dimension detection module to strengthen the information representation ability of feature map. A binocular camera acquired left and right images. The left image was then input to the improved YOLOv3 model to obtain the position information of pineapples in the image. Stereo matching and parallax calculation of the target pineapple region were completed via the stereo matching algorithm. Finally, the three-dimensional co-ordinates of pineapples were calculated based on the triangulation principle of binocular stereo vision. A series of experiments were run to compare the detection result of this method against YOLOv3, Faster-RCNN (Region Convolutional Neural Network) and Mobilenet-SSD (Single Shot MultiBox Detector) as per their respective F1 score (Balanced Score) and AP (Average Precision) values. On test set with slight occlusion, the F1 score and AP values of the improved YOLOv3 model were 93.18% and 97.55%, respectively. As the occlusion grew severe, the F1 score and AP values decreased to 89.15% and 91.47%, respectively. The improved YOLOv3 model developed in this study had the best detection effect among all models tested. The binocular stereo vision localization experiment showed an average absolute error of 24.414 mm and average relative error of 1.17% at a distance of 1.7–2.7 m. The proposed method may thus be suitable for picking robots detecting and localizing pineapple fruit in natural environments.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

References

Download references

Acknowledgements

This research is supported by National Science Project of China with Research Grant 52175229.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tian-Hu Liu.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Liu, TH., Nie, XN., Wu, JM. et al. Pineapple (Ananas comosus) fruit detection and localization in natural environment based on binocular stereo vision and improved YOLOv3 model. Precision Agric 24, 139–160 (2023). https://doi.org/10.1007/s11119-022-09935-x

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11119-022-09935-x

Keywords

Navigation