nav emailalert searchbtn searchbox tablepage yinyongbenwen piczone journalimg journalInfo journalinfonormal searchdiv searchzone qikanlogo popupnotification paper paperNew
2025, 02, v.35 9-15
基于自适应空间特征融合的织物疵点检测算法
基金项目(Foundation): 国家自然科学基金面上项目(62176204)
邮箱(Email):
DOI: 10.20165/j.cnki.ISSN1673-629X.2024.0318
发布时间: 2024-11-25
出版时间: 2024-11-25
网络发布时间: 2024-11-25
移动端阅读
摘要:

对于织物疵点检测通常耗时、背景复杂、疵点种类多样且依赖人工操作的问题,提出了一种基于改进YOLOv7算法的轻量级检测方法。首先,增加了一个检测头Swin-Transformer,增强模型捕获和识别小目标特征的能力;其次,在主干特征提取阶段加入卷积注意力融合的注意力机制ACmix,使得模型可以自动学习并集中注意力在与小目标相关的区域或特征上,增加对重要特征信息的捕捉;采用自适应空间特征融合的方式,增强了多尺度特征融合能力;最后,使用Wasstertein距离优化损失函数,降低了模型对小目标的敏感度。通过对构建的含有6种疵点的面料数据集进行测试可以看出,模型ASFF-YOLOv7的检测精度mAP达到94%、帧率达到50.92帧/s,与其他8种算法相比,ASFF-YOLOv7的综合性能最优。

Abstract:

To address the issues commonly associated with fabric defect detection, such as time-consuming processes, complex backgrounds, diverse types of defects, and reliance on manual operations, we propose a lightweight detection method based on an improved YOLOv7 algorithm. Initially, a detection head, Swin-Transformer, is added to enhance the model's ability to capture and recognize features of small objects. Subsequently, a convolutional attention fusion mechanism, ACmix, is integrated during the backbone feature extraction phase, enabling the model to autonomously learn and focus on areas or features related to small objects, thereby enhancing the capture of crucial feature information. Adaptive spatial feature fusion is employed to bolster multi-scale feature integration. Finally, the Wasserstein distance is used to optimize loss function and reduce the sensitivity to small objects. Testing on a constructed fabric dataset containing six types of defects demonstrates that the ASFF-YOLOv7 achieves the highest detection accuracy and the fastest speed next to YOLOv7 in the dataset. Compared to the original algorithm, the proposed method achieves an accuracy rate of 94% and a frame rate of 50.92 frames per second.

参考文献

[1] 闫伟伟,孙宏昌,张廷,等.改进Canny算法在编织布疵点边缘检测中的应用[J].天津职业技术师范大学学报,2021,31(1):37-41.

[2] 毋涛,崔青,殷强,等.基于改进YOLOv7的织物疵点检测算法[J].纺织高校基础科学学报,2023,36(4):29-36.

[3] 郭殿鹏,柯海森,李孝禄,等.基于改进YOLOv7的织物疵点检测算法[J].棉纺织技术,2023,51(12):5-11.

[4] 王斌,李敏,雷承霖,等.基于深度学习的织物疵点检测研究进展[J].纺织学报,2023,44(1):219-227.

[5] 胡越杰.基于深度学习的纬编针织物疵点检测研究[D].无锡:江南大学,2023.

[6] 阮梦玉.基于深度学习的织物疵点检测研究[D].武汉:武汉纺织大学,2022.

[7] 吕文涛,林琪琪,钟佳莹,等.面向织物疵点检测的图像处理技术研究进展[J].纺织学报,2021,42(11):197-206.

[8] LIU Z,LIN Y,CAO Y,et al.Swin transformer:hierarchical vision transformer using shifted windows[J].arXiv:2103.14030,2021.

[9] PAN X,GE C,LU R,et al.On the integration of self-attention and convolution[J].arXiv:2111.14556,2021.

[10] CHOI M,KIM H,HAN B,et al.Channel attention is all you need for video frame interpolation[C]//Proceedings of the AAAI conference on artificial intelligence.New York:AAAI,2020:10663-10671.

[11] PARMAR N,VASWANI A,USZKOREIT J,et al.Image transformer[J].arXiv:1802.05751,2018.

[12] ZHU Y,XIA Q,JIN W.SRDD:a lightweight end-to-end object detection with transformer[J].Connection Science,2022,34(1):2448-2465.

[13] TIAN Z,SHEN C,CHEN H,et al.FCOS:fully convolutional one-stage object detection.[J].CoRR,2019,abs/1904.01355.

[14] 陈泽纯,林富生,张庆,等.基于改进YOLOv7的织物疵点小目标检测算法[J].棉纺织技术,2024,52(10):26-32.

[15] 赵英宝,刘姝含,黄丽敏,等.基于轻量化YOLOv7的织物疵点检测算法研究[J].棉纺织技术,2024,52(11):53-61.

[16] 任经琦,张团善,赵浩铭.基于改进YOLOv7的织物表面疵点检测技术[J].沈阳大学学报:自然科学版,2024,36(2):112-120.

基本信息:

DOI:10.20165/j.cnki.ISSN1673-629X.2024.0318

中图分类号:TS101.97;TP391.41

引用信息:

[1]吴梦微,毋涛,崔青.基于自适应空间特征融合的织物疵点检测算法[J].计算机技术与发展,2025,35(02):9-15.DOI:10.20165/j.cnki.ISSN1673-629X.2024.0318.

基金信息:

国家自然科学基金面上项目(62176204)

发布时间:

2024-11-25

出版时间:

2024-11-25

网络发布时间:

2024-11-25

检 索 高级检索

引用

GB/T 7714-2015 格式引文
MLA格式引文
APA格式引文