Skip to main content
Log in

The recognition of apple fruits in plastic bags based on block classification

  • Published:
Precision Agriculture Aims and scope Submit manuscript

Abstract

The recognition of apple fruits in plastic bags is easy to be affected by reflected and refracted light. In order to weaken the influence of light, a method based on block classification is proposed. The method adopts watershed algorithm to segment original images into irregular blocks based on edge detection results of RG grayscale images firstly. Compared with the watershed algorithm based on gradient images, the segmentation method can preserve fruits edge and reduce the number of blocks by 20.31%, because graying image method, RG, filters most of leaves and edge detection operator insures that the edge of fruits are detected accurately. Next, these blocks are classified into fruit blocks and non-fruit blocks by support vector machine on the basis of the color and texture features extracted from blocks. Compared with the image recognition method based on pixel classification, the proposed method can restrain the interference of light caused by plastic bags effectively. The false negative rate (FNR) and false positive rate (FPR) of the method based on pixel classification are 21.71 and 14.53% respectively. The FNR and FPR of the proposed method are 4.65 and 3.50% respectively.

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.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  • Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297.

    Google Scholar 

  • Cubero, S., Aleixos, N., Albert, F., Torregrosa, A., Ortiz, C., García-Navarrete, O., et al. (2014). Optimised computer vision system for automatic pre-grading of citrus fruit in the field using a mobile platform. Precision Agriculture, 15(1), 80–94.

    Article  Google Scholar 

  • Dean, Z., Xiaoyang, L., Yu, C., Wei, J., Weikuan, J., & Chanli, H. (2015). Image recognition at night for apple picking robot. Transactions of the Chinese Society for Agricultural Machinery3(003).

  • Frohlich, H., Chapelle, O., & Scholkopf, B. (2003). Feature selection for support vector machines by means of genetic algorithm. In 15th IEEE International Conference on Tools with Artificial Intelligence, 2003. Proceedings (pp. 142–148). IEEE.

  • Goel, N., & Sehgal, P. (2015). Fuzzy classification of pre-harvest tomatoes for ripeness estimation–An approach based on automatic rule learning using decision tree. Applied Soft Computing, 36, 45–56.

    Article  Google Scholar 

  • Gonzalez, R. C., & Woods, R. E. (2007). Image processing. Digital image processing (Vol. 2). London: Pearson.

    Google Scholar 

  • Hočevar, M., Širok, B., Godeša, T., & Stopar, M. (2014). Flowering estimation in apple orchards by image analysis. Precision Agriculture, 15(4), 466–478.

    Article  Google Scholar 

  • Ji, W., Zhao, D., Cheng, F., Xu, B., Zhang, Y., & Wang, J. (2012). Automatic recognition vision system guided for apple harvesting robot. Computers & Electrical Engineering, 38(5), 1186–1195.

    Article  Google Scholar 

  • Jianjun, Y., Xinzhong, W., & Hanping, M. (2006). Contrastive research on tomato image segmentation under RGB and HSI color space. Journal of Agricultural Mechanization Research, 11, 171–174.

    Google Scholar 

  • Kelman, E. E., & Linker, R. (2014). Vision-based localisation of mature apples in tree images using convexity. Biosystems Engineering, 118, 174–185.

    Article  Google Scholar 

  • Liu, S., & Whitty, M. (2015). Automatic grape bunch detection in vineyards with an SVM classifier. Journal of Applied Logic, 13(4), 643–653.

    Article  Google Scholar 

  • Liu, X., Zhao, D., Jia, W., Ruan, C., Tang, S., & Shen, T. (2016). A method of segmenting apples at night based on color and position information. Computers and Electronics in Agriculture, 122, 118–123.

    Article  Google Scholar 

  • Moghimi, A., Aghkhani, M. H., Golzarian, M. R., Rohani, A., & Yang, C. (2015). A robo-vision algorithm for automatic harvesting of green bell pepper. In 2015 ASABE Annual International Meeting (p. 1). American Society of Agricultural and Biological Engineers.

  • Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1), 62–66.

    Article  Google Scholar 

  • Stajnko, D., Rakun, J., & Blanke, M. (2009). Modelling apple fruit yield using image analysis for fruit colour, shape and texture. European Journal of Horticultural Science, 74, 260–267.

    Google Scholar 

  • Teixidó, M., Font, D., Pallejà, T., Tresanchez, M., Nogués, M., & Palacín, J. (2012). Definition of linear color models in the RGB vector color space to detect red peaches in orchard images taken under natural illumination. Sensors, 12(6), 7701–7718.

    Article  PubMed  Google Scholar 

  • Yongsheng, S., Jun, Q., Gang, L., Zhaoxiang, L., & Rui, G. (2009). Recognition and shape features extraction of apples based on machine vision. Transactions of the Chinese Society for Agricultural Machinery, 40(8), 161–165.

    Google Scholar 

  • Zhao, C., Lee, W. S., & He, D. (2016). Immature green citrus detection based on colour feature and sum of absolute transformed difference (SATD) using colour images in the citrus grove. Computers and Electronics in Agriculture, 124, 243–253.

    Article  Google Scholar 

Download references

Acknowledgements

This work is supported by the National Nature Science Foundation of China (No. 31571571); Priority Academic Program Development of Jiangsu Higher Education Institutions; Modern Agriculture Project of Zhenjiang City (No. NY2015025).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dean Zhao.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Liu, X., Jia, W., Ruan, C. et al. The recognition of apple fruits in plastic bags based on block classification. Precision Agric 19, 735–749 (2018). https://doi.org/10.1007/s11119-017-9553-2

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11119-017-9553-2

Keywords

Navigation