Miao Huan, Tao Wang, Qin Xu, Lu Gao, Zhouxiang Lu, Xingyun Shi, Miaohua Qian, Liangquan Jia, Chong Yao
{"title":"基于OpenCV的白芍缺陷快速面积和直径估计的轻量级目标检测算法","authors":"Miao Huan, Tao Wang, Qin Xu, Lu Gao, Zhouxiang Lu, Xingyun Shi, Miaohua Qian, Liangquan Jia, Chong Yao","doi":"10.1002/fsn3.70947","DOIUrl":null,"url":null,"abstract":"<p>As an important traditional Chinese medicinal herb, <i>Paeoniae Radix Alba</i> (white peony root, WP) not only has significant medicinal value in the field of Chinese medicine but is also widely used in food products and health supplements due to its food and medicine dual-use properties. The quality of <i>Paeoniae Radix Alba</i> is crucial for its efficacy, safety, and effectiveness in food applications, making efficient inspection methods essential. The algorithm uses a self-developed detection head (LSD-Head) combined with a Feature Fusion Attention (FCA) mechanism for effective defect detection. Additionally, OpenCV technology is used to accurately measure the physical dimensions of the slices. Compared to the YOLOv8 model (76.4% precision, 63.7% recall, 70.1% [email protected], 8.2 GFLOPs), the proposed model reduces parameter size by 13%, reaching only 65.8% of YOLOv8's size, while improving accuracy by 2.6%. For physical dimensions, the average error between the detected and actual sizes is controlled within 5%. Experimental results show that the proposed algorithm performs well in defect detection and accurately measures the area and maximum and minimum diameters of <i>Paeoniae Radix Alba</i> decoction pieces.</p>","PeriodicalId":12418,"journal":{"name":"Food Science & Nutrition","volume":"13 9","pages":""},"PeriodicalIF":3.8000,"publicationDate":"2025-09-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/fsn3.70947","citationCount":"0","resultStr":"{\"title\":\"An Efficient Lightweight Object Detection Algorithm for Defect Identification in Paeoniae Radix Alba With Rapid Area and Diameter Estimation Using OpenCV\",\"authors\":\"Miao Huan, Tao Wang, Qin Xu, Lu Gao, Zhouxiang Lu, Xingyun Shi, Miaohua Qian, Liangquan Jia, Chong Yao\",\"doi\":\"10.1002/fsn3.70947\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>As an important traditional Chinese medicinal herb, <i>Paeoniae Radix Alba</i> (white peony root, WP) not only has significant medicinal value in the field of Chinese medicine but is also widely used in food products and health supplements due to its food and medicine dual-use properties. The quality of <i>Paeoniae Radix Alba</i> is crucial for its efficacy, safety, and effectiveness in food applications, making efficient inspection methods essential. The algorithm uses a self-developed detection head (LSD-Head) combined with a Feature Fusion Attention (FCA) mechanism for effective defect detection. Additionally, OpenCV technology is used to accurately measure the physical dimensions of the slices. Compared to the YOLOv8 model (76.4% precision, 63.7% recall, 70.1% [email protected], 8.2 GFLOPs), the proposed model reduces parameter size by 13%, reaching only 65.8% of YOLOv8's size, while improving accuracy by 2.6%. For physical dimensions, the average error between the detected and actual sizes is controlled within 5%. Experimental results show that the proposed algorithm performs well in defect detection and accurately measures the area and maximum and minimum diameters of <i>Paeoniae Radix Alba</i> decoction pieces.</p>\",\"PeriodicalId\":12418,\"journal\":{\"name\":\"Food Science & Nutrition\",\"volume\":\"13 9\",\"pages\":\"\"},\"PeriodicalIF\":3.8000,\"publicationDate\":\"2025-09-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://onlinelibrary.wiley.com/doi/epdf/10.1002/fsn3.70947\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Food Science & Nutrition\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1002/fsn3.70947\",\"RegionNum\":2,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"FOOD SCIENCE & TECHNOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Science & Nutrition","FirstCategoryId":"97","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/fsn3.70947","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
An Efficient Lightweight Object Detection Algorithm for Defect Identification in Paeoniae Radix Alba With Rapid Area and Diameter Estimation Using OpenCV
As an important traditional Chinese medicinal herb, Paeoniae Radix Alba (white peony root, WP) not only has significant medicinal value in the field of Chinese medicine but is also widely used in food products and health supplements due to its food and medicine dual-use properties. The quality of Paeoniae Radix Alba is crucial for its efficacy, safety, and effectiveness in food applications, making efficient inspection methods essential. The algorithm uses a self-developed detection head (LSD-Head) combined with a Feature Fusion Attention (FCA) mechanism for effective defect detection. Additionally, OpenCV technology is used to accurately measure the physical dimensions of the slices. Compared to the YOLOv8 model (76.4% precision, 63.7% recall, 70.1% [email protected], 8.2 GFLOPs), the proposed model reduces parameter size by 13%, reaching only 65.8% of YOLOv8's size, while improving accuracy by 2.6%. For physical dimensions, the average error between the detected and actual sizes is controlled within 5%. Experimental results show that the proposed algorithm performs well in defect detection and accurately measures the area and maximum and minimum diameters of Paeoniae Radix Alba decoction pieces.
期刊介绍:
Food Science & Nutrition is the peer-reviewed journal for rapid dissemination of research in all areas of food science and nutrition. The Journal will consider submissions of quality papers describing the results of fundamental and applied research related to all aspects of human food and nutrition, as well as interdisciplinary research that spans these two fields.