Computer Vision Approaches to Detect Bean Defects
In this work are proposed computer vision approaches to detect three of the main defects found in beans: broken, bored by insect (Acanthoscelides obtectus) and moldy. In addition, we describe a fast and robust segmentation step that is combined with the proposed approaches to compose a computer vision system (CVS) applicable to the Brazilian beans quality inspection process, to determine the type of the product. The proposed approaches constitute an important practical contribution since, although there are some papers in the literature addressing visual inspection of beans, none of them deals with defects. In the conducted experiments a low-cost equipment, composed by a table made in structural aluminum, a conveyor belt and an image acquisition chamber, was used to simulate the characteristics of an industrial environment. The CVS evaluation was performed in two modes: offline and online. In the offline mode, a database composed by 120 images of bean samples containing grains of different classes and with different defects was employed, while in the online mode the grains contained in a batch were spilled continuously in the conveyor belt of the equipment for the proposed CVS to perform the tasks of segmentation and detection of defects. In the experiments the CVS was able to process an image of 1280×720 pixels in approximately 2 s, with average hit rates of 99.61% (offline) and 97.78% (online) in segmentation, and 90.00% (offline) and 85.00% (online) in detecting defects.
KeywordsComputer vision Beans Defects Inspection Visual quality
The authors would like to thank FAPESP – São Paulo Research Foundation (Processes 2017/05188-9 and 2019/18389-8) by financial support.
- 5.Knabben, C.C., Costa, J.S.: Manual of classification of the bean: normative instruction n. 12, 28 March 2008. Embrapa Rice and Bean-Folder/Leaflet/Booklet – INFOTECA-E (2012)Google Scholar
- 7.Patil, N.K., Yadahalli, R.M., Pujari, J.: Comparison between HSV and YCbCr color model color-texture based classification of the food grains. Int. J. Comput. Appl. 34(4), 51–57 (2011)Google Scholar
- 8.Parronchi, P.: The development pioneers and the new agriculture 4.0: economic development from the countryside? In: XXIII Encontro Nacional de Economia Política, pp. 1–18 (2017)Google Scholar
- 9.Venora, G., Grillo, O., Ravalli, C., Cremonini, R.: Tuscany beans landraces, on-line identification from seeds inspection by image analysis and linear discriminant analysis. Agrochimica 51, 254–268 (2007)Google Scholar
- 11.Laurent, B., Ousman, B., Dzudie, T., Carl, M.F.M., Emmanuel, T.: J. Eng. Technol. Res. 2(9), 177–188 (2010)Google Scholar
- 13.Araújo, S.A., Alves, W.A.L., Belan, P.A., Anselmo, K.P.: A computer vision system for automatic classification of most consumed Brazilian beans. In: Bebis, G., et al. (eds.) ISVC 2015. LNCS, vol. 9475, pp. 45–53. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-27863-6_5CrossRefGoogle Scholar
- 15.Belan, P.A., Pereira, M.M.A., Araújo, S.A., Alves, W.A.L.: Abordagem Computacional para Classificação Automática de Grãos de Feijão em Tempo Real. In: SeTII 2016, São Paulo, Brazil, pp. 1–4 (2016)Google Scholar
- 16.Belan, P.A., de Macedo, R.A.G., Pereira, M.M.A., Alves, W.A.L., de Araújo, S.A.: A fast and robust approach for touching grains segmentation. In: Campilho, A., Karray, F., ter Haar Romeny, B. (eds.) ICIAR 2018. LNCS, vol. 10882, pp. 482–489. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-93000-8_54CrossRefGoogle Scholar
- 17.Soille, P.: Morphological Image Analysis: Principles and Applications. Springer, Heidelberg (2003)Google Scholar