摘要
为实现针织圆纬机纱架上纱筒余纱量的实时检测,提出一种深度学习与传统图像处理相结合的检测方法。通过优化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 sindle residual yarn quantity detection in the automated production line of circular weft machines.First,the spindle image was segmented using the enhanced Yolov5 model.Then,the segmented spindles image was processed by perspective transformation and end-face pixel averaging to effectively extract the inner and outer circular contours of the spindle.The circle fitting algorithm designed in this paper was utilized to fit the inner and outer circles of the spindle to complete the calculation of the residual yarn quantity the spindle.The improved YOLOv5 residual yarn quantity detection algorithm for spindle utilized an enhanced network structure and dataset.Therefore,it could be effectively applied to the on-line detection of residual yarn quantity in the spindle.It provided ideas for future applications in embedded devices.
作者
史伟民
李洲
陆伟健
屠佳佳
徐寅哲
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)
出处
《纺织学报》
EI
CAS
CSCD
北大核心
2024年第7期196-203,共8页
Journal of Textile Research
基金
国家重点研发计划资助项目(2017YFB1304000)。
关键词
改进Yolov5模型
透视变换
均值偏移
梯度下降法
纱筒余纱量
针织圆纬机
improved Yolov5 model
perspective transformation
mean shift
gradient descent method
spindle residual yarn quantity
circular lenitting machine