基于改进Yolov5模型的纱筒余纱量检测方法  

Detection method for residual yarn quantity based on improved Yolov5 model

在线阅读下载全文

作  者:史伟民[1] 李洲 陆伟健 屠佳佳 徐寅哲 SHI Weimin;LI Zhou;LU Weijian;TU Jiajia;XU Yinzhe(Key Laboratory of Modern Textile Machinery&Technology of Zhejiang Province,Zhejiang Sci-Tech University,Hangzhou,Zhejiang 310018,China;College of Automation,Zhejiang Institute of Mechanical and Electrical Engineering,Hangzhou,Zhejiang 310053,China)

机构地区:[1]浙江理工大学浙江省现代纺织装备技术重点实验室,浙江杭州310018 [2]浙江机电职业技术学院自动化学院,浙江杭州310053

出  处:《纺织学报》2024年第7期196-203,共8页Journal of Textile Research

基  金:国家重点研发计划资助项目(2017YFB1304000)。

摘  要:为实现针织圆纬机纱架上纱筒余纱量的实时检测,提出一种深度学习与传统图像处理相结合的检测方法。通过优化Yolov5的主干网络并加入Shuffle-Attention注意力机制,利用改进后模型在图像中检测并框出纱筒位置;然后利用透视变换、均值偏移、canny轮廓检测、闭操作等处理获取纱筒内外圆轮廓,设计基于梯度下降的圆拟合算法,拟合纱筒内外圆的轮廓,得到纱筒的内外圆半径;最后结合小孔成像的原理完成纱筒余纱量的测量。结果表明:改进后的Yolov5模型在纱筒检测精度上达到99.5%,检测速度可达20帧/s,同时模型参数减少至3.255×106可检测的最小纱筒余纱量为3 mm,当纱筒余纱量小于3 mm后,将其视为空筒,进行延时更换。本文算法拟合圆所花费时间是传统霍夫圆检测算法的1/4左右,因此可满足针织车间的实际应用需求。Objective In the automatic production line of circular weft machines in knitting workshops,the identification of the residual yarn quantity of the spindle was the prerequisite and key to realizing the automatic loading and unloading of the spindle.The detection result of spindle residual amount was easily affected by many factors,such as background spindle,spindle type,yarn crease structure and so on.In order to ensure the accuracy and real-time performance of the information of spindle residual yarn quantity of yarn frame,a machine vision-based online detection technology of spindle residual yarn quantity was studied.Method The improved Yolov5 model was adopted to detect the residual yarn quantity in a spindle,and the intercepted end picture of the spindle is extracted through perspective transformation,pixel average,contour detection and other operations to extract the inner and outer circle contours of the spindle.The circle fitting algorithm based on gradient descent designed in this paper was then adopted to fit the inner and outer circles of the spindle and obtain the inner and outer circle radii of the spindle.Finally,the principle of small-hole imaging was adopted to convert the pixel difference of the spindle into the actual residual yarn quantity.Results In terms of model recognition,performance comparison of the three models showed that the model accuracy could be improved by 0.24%simply by improving the Yolov5 backbone network,and the accuracy could be further enhanced by 0.27%by incorporating the Shuffle-Attention mechanism.As for residual yarn quantity detection,detecting the residual yarn quantity demonstrated that the detection error of this algorithm was less than 3 mm,outperforming the Hough circle algorithm.With regards to the dataset,in order to cater to the practical production needs of factories,this paper created a dataset comprising spindles from the actual production process of factories.Conclusion A method combining the improved Yolov5 with conventional image processing was proposed for

关 键 词:改进Yolov5模型 透视变换 均值偏移 梯度下降法 纱筒余纱量 针织圆纬机 

分 类 号:TP391.4[自动化与计算机技术—计算机应用技术] TP183[自动化与计算机技术—计算机科学与技术] TS106[轻工技术与工程—纺织工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象