Open Access Open Access  Restricted Access Subscription or Fee Access

Foreign Material Detection for Scallion Processing Industry Using HSV Color Space

Wu-Sung Yao, Chun-Yi Lin


In this paper, an optical foreign substance detection system is designed to address the problem of foreign substances mixed in food. The five color spaces of RGB, HSV, YCrCb, CIELab, and CIELuv are compared by using scallion images and non-scallion images to seek the color space that is the most suitable for the scallion processing. The designed image algorithms are given to filter out food raw materials and background images. The images on the conveyor belt are captured by stacking backlight sensors. The technology of image filtering is based on HSV color space to determine the production line and whether there is a foreign substance or not. The purpose of this study is to help traditional human detection, reduce the omissions in inspections caused by fatigue, laziness, and other problems, and at the same time save labor costs, and increase production speed, which can help the food production lines reduce the problem of mixed foreign objects in food raw materials.

Full Text:



Yu B, Zhan P, Lei M, Zhou F, Wang P. Food Quality Monitoring System Based on Smart Contracts and Evaluation Models. IEEE Access. 2020; 8: 12479–12490.

Yan L, Yin-He S, Qian Y, Zhi-Yu S, Chun-Zi W, Zi-Yun L. Method of Reaching Consensus on Probability of Food Safety Based on the Integration of Finite Credible Data on Block Chain. IEEE Access. 2021; 9: 123764–123776.

Raju R, Bridges GE. A Compact Wireless Passive Harmonic Sensor for Packaged Food Quality Monitoring. IEEE Trans Microw Theory Tech. 2022 Apr; 70(4): 2389–2397.

Concina I, Falasconi M, Sberveglieri V. Electronic Noses as Flexible Tools to Assess Food Quality and Safety: Should We Trust Them? IEEE Sens J. 2012 Nov; 12(11): 3232–3237.

de Cesare G, Nascetti A, Scipinotti R, Fanelli C, Ricelli A, Caputo D. Optoelectronic System for Mycotoxin Detection in Food Quality Control. IEEE Trans Compon Packaging Manuf Technol. 2018 Jul; 8(7): 1195–1202.

Lam MB, Nguyen T-H, Chung W-Y. Deep Learning-Based Food Quality Estimation Using Radio Frequency-Powered Sensor Mote. IEEE Access. 2020; 8: 88360–88371.

Huang W, Deb S, Seo Y, Rao S, Chiao M, Chiao JC. A Passive Radio-Frequency pH-Sensing Tag for Wireless Food-Quality Monitoring. IEEE Sens J. 2012 Mar; 12(3): 487–495.

Zheng M, Zhang S, Zhang Y, Hu B. Construct Food Safety Traceability System for People’s Health Under the Internet of Things and Big Data. IEEE Access. 2021; 9: 70571–70583.

Gyula Kasza, Eszter Csenki, Dávid Szakos, Tekla Izsó. The Evolution of Food Safety Risk Communication: Models and Trends in the Past and the Future. Food Control. 2022 Aug; 138: 109025.

Ningjing Liu, Yamine Bouzembrak, van den Bulk Leonieke M, Anand Gavai, van den Heuvel Lukas J, Marvin Hans JP. Automated Food Safety Early Warning System in the Dairy Supply Chain Using Machine Learning. Food Control. 2022 Jun; 136: 108872.

Hildur Einarsdóttir, Monica Jane Emerson, Line Harder Clemmensen, Kai Scherer, Konstantin Willer, Martin Bech, Rasmus Larsen, Bjarne Kjær Ersbøll, Franz Pfeiffer. Novelty Detection of Foreign Substance in Food Using Multi-Modal X-ray Imaging. Food Control. 2016 Sep; 67:


Fangzuo Li, Zhiguo Liu, Tianxi Sun, Yongzhong Ma, Xunliang Ding. Confocal Three-Dimensional Micro X-ray Scatter Imaging for Non-Destructive Detecting Foreign Bodies with Low Density and Low-Z Materials in Food Products. Food Control. 2015 Aug; 54: 120–125.

Hongfei Zhang, Sabrina Peiqi Chen, Hon Luen Seck, Weibiao Zhou. Low-Energy X-ray Inactivation of Salmonella Enteritidis on Shell Eggs in Mono-/Co-Culture Biofilms with Pseudomonas Fluoresces. Food Control. 2021 May; 123: 107742.

Yu Tian, Xueke Li, Rui Cai, Kang Yang, Zhen Peng Gao, Yahong Yuan, Tianli Yue, Zhouli Wang. Aptamer Modified Magnetic Nanoparticles Coupled with Fluorescent Quantum Dots for Efficient Separation and Detection of Alicyclobacillus Acidoterrestris in Fruit Juices. Food Control. 2021 Aug; 126: 108060.

Zhi Li, Chuqin Yang, Wenying Lu, Zhaohui Chu, Jingwen Zhang, Ming Li, Qingjiang Wang. Ultrasensitive Immuno-PCR for Detecting Aflatoxin B1 based on Magnetic Separation and Barcode DNA. Food Control. 2022 Aug; 138: 109028.

Ali Saeidan, Mehdi Khojastehpour, Mahmood Reza Golzarian, Marziye Mooenfard, Haris Ahmad Khan. Detection of Foreign Materials in Cocoa Beans by Hyperspectral Imaging Technology. Food Control. 2021 Nov; 129: 108242.

Suryanarayana G, Chandran K, Khalaf OI, Alotaibi Y, Alsufyani A, Alghamdi SA. Accurate Magnetic Resonance Image Super-Resolution Using Deep Networks and Gaussian Filtering in the Stationary Wavelet Domain. IEEE Access. 2021; 9: 71406–71417.

Lee D, Archibald JK, Xiong G. Rapid Color Grading for Fruit Quality Revaluation using Direct Color Mapping. IEEE Trans Autom Sci Eng. 2011 Apr; 8(2): 292–302.

Lee K, Li Q, Daley W. Effects of Classification Methods on Color-based Feature Detection with Food Processing Applications. IEEE Trans Autom Sci Eng. 2007 Jan; 4(1): 40–51.

Fong HL, Lin CY, Cheng TY, Yao WS. Analysis and design of foreign objects automatic detecting system for scallion pancake production line. 2021 IEEE International Future Energy Electronics Conference. 2021; 1–6.

Bhandari AK, Kumar IV, Srinivas K. Cuttlefish Algorithm-Based Multilevel 3-D Otsu Function for Color Image Segmentation. IEEE Trans Instrum Meas. 2020 May; 69(5): 1871–1880.

Lee HS. Objective measurement of red grapefruit juice color. Journal of agricultural and food chemistry. 2000 May 15; 48(5): 1507-11.


  • There are currently no refbacks.