基于OpenCV的白芍缺陷快速面积和直径估计的轻量级目标检测算法

IF 3.8 2区 农林科学 Q2 FOOD SCIENCE & TECHNOLOGY
Miao Huan, Tao Wang, Qin Xu, Lu Gao, Zhouxiang Lu, Xingyun Shi, Miaohua Qian, Liangquan Jia, Chong Yao
{"title":"基于OpenCV的白芍缺陷快速面积和直径估计的轻量级目标检测算法","authors":"Miao Huan,&nbsp;Tao Wang,&nbsp;Qin Xu,&nbsp;Lu Gao,&nbsp;Zhouxiang Lu,&nbsp;Xingyun Shi,&nbsp;Miaohua Qian,&nbsp;Liangquan Jia,&nbsp;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,&nbsp;Tao Wang,&nbsp;Qin Xu,&nbsp;Lu Gao,&nbsp;Zhouxiang Lu,&nbsp;Xingyun Shi,&nbsp;Miaohua Qian,&nbsp;Liangquan Jia,&nbsp;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}
引用次数: 0

摘要

白芍(Paeoniae Radix Alba, white牡丹根,WP)作为一种重要的中草药,不仅在中药领域具有显著的药用价值,而且由于其食药两用的特性,在食品和保健品中也得到了广泛的应用。白芍的质量对其在食品中的功效、安全性和有效性至关重要,因此有效的检测方法至关重要。该算法采用自主开发的检测头LSD-Head结合特征融合注意(FCA)机制进行有效的缺陷检测。此外,OpenCV技术用于精确测量切片的物理尺寸。与YOLOv8模型(精度76.4%,召回率63.7%,70.1% [email protected], 8.2 GFLOPs)相比,该模型将参数大小减少了13%,仅达到YOLOv8模型大小的65.8%,而准确率提高了2.6%。对于物理尺寸,检测到的尺寸与实际尺寸的平均误差控制在5%以内。实验结果表明,该算法具有较好的缺陷检测效果,能够准确测量出白芍饮片的面积和最大、最小直径。
本文章由计算机程序翻译,如有差异,请以英文原文为准。

An Efficient Lightweight Object Detection Algorithm for Defect Identification in Paeoniae Radix Alba With Rapid Area and Diameter Estimation Using OpenCV

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
Food Science & Nutrition Agricultural and Biological Sciences-Food Science
CiteScore
7.40
自引率
5.10%
发文量
434
审稿时长
24 weeks
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信