Skip to main content
Log in

Apple fruit sorting using novel thresholding and area calculation algorithms

  • Methodologies and Application
  • Published:
Soft Computing Aims and scope Submit manuscript

Abstract

The speed and capacity (kg/hr) for sorting apples are two important factors that have to be taken care of post-harvest. To increase the speed and capacity of apples being sorted, a new algorithm for segmenting the region of interest from an apple fruit image and to find the percentage of defective area after sorting process has been proposed in this paper. First, the region of interest from the acquired color image of an apple fruit was segmented using the proposed global thresholding algorithm GTA. Features were extracted from the segmented image using the coefficients obtained by applying wavelet transformation using the Haar filter. Further, the Naive Bayesian classifier was applied to sort apples as defective and sound. Second, the defective area of the defective sample was segmented using the K-means algorithm and median filter. The defective area in percentage was calculated using the proposed diseased area calculation algorithm DACA to decide about the acceptance of that defective sample. The performance of the proposed GTA was compared with Otsu’s and Kapur’s thresholding algorithms. With less segmentation time, it was found that the Naive Bayesian classification using GTA gave a 96.67% accuracy rate than Otsu’s with 65% and Kapur’s with 93.33% accuracy rate. The execution time of the proposed DACA was less when compared to the bwarea function in MATLAB.

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
Fig. 11

Similar content being viewed by others

References

  • Arakeri MP et al (2016) Computer vision based fruit grading system for quality evaluation of tomato in agriculture industry. Procedia Comput Sci 79:426–433

    Article  Google Scholar 

  • Bhange M, Hingoliwala H (2015) Smart farming: pomegranate disease detection using image processing. Procedia Comput Sci 58:280–288

    Article  Google Scholar 

  • Dhieb M, Frikha M (2016) A multilevel thresholding algorithm for image segmentation based on particle swarm optimization. In: 2016 IEEE/ACS 13th international conference of computer systems and applications (AICCSA). IEEE, pp 1–7

  • Dubey SR, Jalal AS (2015) Fruit and vegetable recognition by fusing colour and texture features of the image using machine learning. Int J Appl Pattern Recogn 2(2):160–181

    Article  Google Scholar 

  • Dutta MK, Issac A, Minhas N, Sarkar B (2016a) Image processing based method to assess fish quality and freshness. J Food Eng 177:50–58

    Article  Google Scholar 

  • Dutta MK, Singh A, Ghosal S (2016b) An imaging technique for acrylamide identification in potato chips in wavelet domain. LWT-Food Sci Technol 65:987–998

    Article  Google Scholar 

  • Horng MH, Jiang TW (2010) Multilevel image thresholding selection based on the firefly algorithm. In: 2010 7th international conference on ubiquitous intelligence & computing and 7th international conference on autonomic & trusted computing. IEEE, pp 58–63

  • Kapur JN, Sahoo PK, Wong AK (1985) A new method for gray-level picture thresholding using the entropy of the histogram. Comput Vis Graph Image Process 29(3):273–285

    Article  Google Scholar 

  • Kassim MSM, Ismail WIW, Ramli AR, Bejo SK (2014) Image clustering technique in oil palm fresh fruit bunch (FFB) growth modeling. Agric Agric Sci Procedia 2:337–344

    Google Scholar 

  • Li J, Rao X, Wang F, Wu W, Ying Y (2013) Automatic detection of common surface defects on oranges using combined lighting transform and image ratio methods. Postharvest Biol Technol 82:59–69

    Article  Google Scholar 

  • Li Y, Wang S, Xiao J (2018) Image segmentation based on dynamic particle swarm optimization for crystal growth. Sensors 18(11):3878

    Article  Google Scholar 

  • Momin MA, Yamamoto K, Miyamoto M, Kondo N, Grift T (2017) Machine vision based soybean quality evaluation. Comput Electron Agric 140:452–460

    Article  Google Scholar 

  • Omid M, Khojastehnazhand M, Tabatabaeefar A (2010) Estimating volume and mass of citrus fruits by image processing technique. J Food Eng 100(2):315–321

    Article  Google Scholar 

  • Pujitha N, Swathi C, Kanchana V (2016) Detection of external defects on mango. Int J Appl Eng Res 11(7):4763–4769

  • Resma KB, Nair MS (2018) Multilevel thresholding for image segmentation using krill herd optimization algorithm. J King Saud Univ-Comput Inf Sci. https://doi.org/10.1016/j.jksuci.2018.04.007

  • Samajpati BJ, Degadwala SD (2015) A survey on apple fruit diseases detection and classification. Int J Comput Appl 130(13):0975-8887

    Google Scholar 

  • Sofu M, Er O, Kayacan M, Cetişli B (2016) Design of an automatic apple sorting system using machine vision. Comput Electron Agric 127:395–405

    Article  Google Scholar 

  • Ulrici A, Foca G, Ielo MC, Volpelli LA, Fiego DPL (2012) Automated identification and visualization of food defects using rgb imaging: application to the detection of red skin defect of raw hams. Innov Food Sci Emerg Technol 16:417–426

    Article  Google Scholar 

  • Wisuthiphaet N, Damerow L, Blanke MM (2014) Non-destructive detection of the wax bloom on european plum during post-harvest handling. J Food Eng 140:46–51

    Article  Google Scholar 

  • Zaitoun NM, Aqel MJ (2015) Survey on image segmentation techniques. Procedia Comput Sci 65:797–806

    Article  Google Scholar 

  • Zhuang J, Luo S, Hou C, Tang Y, He Y, Xue X (2018) Detection of orchard citrus fruits using a monocular machine vision-based method for automatic fruit picking applications. Comput Electron Agric 152:64–73

    Article  Google Scholar 

  • Zhuang J, Hou C, Tang Y, He Y, Guo Q, Zhong Z, Luo S (2019) Computer vision-based localisation of picking points for automatic litchi harvesting applications towards natural scenarios. Biosyst Eng 187:1–20

    Article  Google Scholar 

Download references

Acknowledgements

None.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to PL. Chithra.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Communicated by V. Loia.

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

Chithra, P., Henila, M. Apple fruit sorting using novel thresholding and area calculation algorithms. Soft Comput 25, 431–445 (2021). https://doi.org/10.1007/s00500-020-05158-2

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00500-020-05158-2

Keywords

Navigation