Czech J. Food Sci., 2018, 36(1):37-43 | DOI: 10.17221/105/2017-CJFS
Automatic correction of the adverse effects of light on fruit surfaces using the shape-from-shading methodFood Analysis, Food Quality and Nutrition
- 1 College of Science and
- 2 College of Infomatics, Huazhong Agriculture University, Wuhan, P.R. China
In this study, we propose a method for correcting the adverse effects produced by the cur vature of fruit objects in images acquired by cameras in machine vision systems. The areas near the edge are darker in acquired images than in the centre, which results in many difficulties for subsequent analyses. In this paper, the fruit object was considered as a Lambertian surface. The light intensity was analysed and the height and normal on fruit surface was deduced based on the shape-from-shading (SFS) algorithm. The geometric correction factors were calculated and the adverse effects of light intensity were corrected on the fruit surface. The proposed method was evaluated on a test set of four types of fruit. The results show that the non-uniformity of the greyscale value on the fruit surface fell by 35.5% after correction, and the ref lectance in the central area of fruit is similar to that of the peripheral areas when using the proposed method. The experiments prove that our method allowed homogenisation of the greyscale level of the pixels belonging to the same class, regardless of where they are on the fruit surface, which will facilitate subsequent classification tasks.
Keywords: fruit inspection; illumination correction; machine vision
Published: February 28, 2018 Show citation
References
- Aleixos N., Blasco J., Navarron F., Molto E. (2002): Multispectral inspection of citrus in real-time using machine vision and digital signal processors. Computers & Electronics in Agriculture, 33: 121-137.
Go to original source...
- Bajksy P., Kooper R. (2005): Prediction accuracy of color imagery from hyperspectral imagery. Proceedings of SPIE - The International Society for Optical Engineering, 5806: 1325-1326.
Go to original source...
- Costa C., Antonucci F., Pallottino F., Aguzzi J., Sun D.W., Menesatti P. (2011): Shape analysis of agricultural products: A review of recent research advances and potential application to computer vision. Food and Bioprocess Technology, 4: 673-692.
Go to original source...
- Foley J.D., van Dam A., Feiner S.K., Hughes J.F. (1996): Computer Graphics: Principles and Practice. 2 nd Ed. Boston, Addison-Wesley: 722-733.
- Gómez-Sanchis J., Moltó E., Camps-Valls G., Gómez-Chova L., Aleixos N., Blasco J. (2008): Automatic correction of the effects of the light source on spherical objects. An application to the analysis of hyperspectral images of citrus fruits. Journal of Food Engineering, 85: 191-200.
Go to original source...
- Katrašnik J., Pernuš F., Likar B. (2011): Illumination system characterization for hyperspectral imaging. Proceedings of SPIE, 7891: 141-152.
Go to original source...
- Lu J., Wu P., Xue J., Qiu M., Peng F. (2015): Detecting defects on citrus surface based on circularity threshold segmentation. In: Tang Z. (ed.): 12th International Conference on Fuzzy Systems and Knowledge Discovery, Aug 15-17, 2015, Zhangjiajie, China. IEEA, New York: 1543-1547. doi: 10.1109/FSKD.2015.7382174
Go to original source...
- Qin J., Lu R. (2008): Measurement of the optical properties of fruits and vegetables using spatially resolved hyperspectral diffuse reflectance imaging technique. Postharvest Biology and Technology, 49: 355-365.
Go to original source...
- Riquelme M.T., Barreiro P., Ruiz-Altisent M., Valero C. (2008): Olive classification according to external damage using image analysis. Journal of Food Engineering, 87: 371-379.
Go to original source...
- Teena M., Manickavasagan A., Mothershaw A., El Hadi S., Jayas D.S. (2013): Potential of machine vision techniques for detecting fecal and microbial contamination of food products: A review. Food and Bioprocess Technology, 6: 1621-1634.
Go to original source...
- Tsai P.-S., Shah M. (1994): Shape from shading using linear approximation. Image and Vision Computing, 12: 487-498.
Go to original source...
- Unay D., Gosselin B. (2007): Stem and calyx recognition on 'Jonagold' apples by pattern recognition. Journal of Food Engineering, 78: 597-605.
Go to original source...
- Zhang R., Tsai P.-S., Cryer J.E., Shah M. (1999): Shape from shading: a survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(8): 690-706.
Go to original source...
- Zhang B., Huang W., Li J., Zhao Ch., Fan S., Wu J., Liu Ch. (2014): Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: a review. Food Research International, 62: 326-343.
Go to original source...
- Zhang C., Zhao C., Huang W., Wang Q., Liu S., Li J. (2017): Automatic detection of defective apples using NIR coded structured light and fast lightness correction. Journal of Food Engineering, 203: 69-82.
Go to original source...
This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International (CC BY NC 4.0), which permits non-comercial use, distribution, and reproduction in any medium, provided the original publication is properly cited. No use, distribution or reproduction is permitted which does not comply with these terms.