Journal of Textile Research ›› 2024, Vol. 45 ›› Issue (11): 207-214.doi: 10.13475/j.fzxb.20230805201

• Machinery & Equipment • Previous Articles     Next Articles

Detection method of position and posture of cheese yarn based on machine vision

REN Jiawei1, ZHOU Qihong1(), CHEN Chang1, HONG Wei2, CEN Junhao2   

  1. 1. School of Mechanical Engineering, Donghua University, Shanghai 201620, China
    2. Guangzhou Seyouth Automation Technology Co., Ltd., Guangzhou, Guangdong 511400, China
  • Received:2023-08-23 Revised:2024-01-05 Online:2024-11-15 Published:2024-12-30
  • Contact: ZHOU Qihong E-mail:zhouqihong@dhu.edu.cn

Abstract:

Objective Aiming at the detection of cheese yarn's posture and position of cheese packages in the process of cheese yarn handling, this research proposes a machine vision based method for detecting the position and posture of cheese packages to provide data support for robots to accurately grasp the cheese package in manufacturing.

Method An industrial camera was adopted to capture an image of the cheese yarn. Improved median filtering was adopted to preprocess the image, then Canny edge detection was adopted to acquire the contour curve of the cheese yarn, the discrete curve was smoothed using B-spline curve, the curvature distribution of the discrete curve was calculated and to determine the placement status, and finally the bobbin yarn center point was calculated. A curvature distribution based line detection algorithm was adopted to acquire the edges of the cheese yarn and calculate the pose angle of the cheese yarn axis.

Results Through experiments, it was found that improved median filtering can distinguish between texture and edge regions in images, and adaptively use windows of different sizes for filtering. This effectively filters texture signals while preserving edge signals. This research compares the accuracy and stability of several line detection algorithms in experiments. 250 images of the cheese yarn in a horizontal position were selected and their two edges are marked. Then, the line detection algorithm proposed, Hough transform, and EDLines were adopted to detect the images. The accuracy rate, missed detection rate, time consumption, angle error and position error of the algorithms were compared. The algorithm proposed has a detection accuracy of 100% for 250 images, without missed detections. The angle and position errors also reach the level of conventional line detection algorithms, ensuring the accuracy of the pose angle calculation of the cheese yarn, and the computational complexity is small, which can effectively save calculation time. Three different sizes of cheese yarns were selected for pose detection and conduct fetching experiments. The selected three types of cheese yarn have diameters of 160 mm, 200 mm, 250 mm, with cheese lengths of 180 mm. The cheese is FANUC M-20iA/35M. The cheese yarn was randomly placed on the device platform, then an industrial camera was adopted to take photos of the cheese yarn and the algorithm proposed was utilized to detect the position of the cheese yarn. The detected position results are sent to the robotic arm, guiding the robotic arm to fetch the cheese yarn and conducting 50 tests on each size of cheese yarn. From the experiment results, it can be seen that the algorithm proposed can accurately identify the position and pose of different sizes of cheese yarns, and has a small error. It can guide the robotic arm to accurately grasp the cheese yarn, with a success rate of 100%. The algorithm proposed also has real-time performance, and the average detection time for different sizes and placement states of cheese yarn is stable between 19 ms and 24 ms, with an overall average time of 21.61 ms.

Conclusion This research proposes a method for detecting the pose of cheese yarn based on machine vision. Firstly, based on the improved median filtering algorithm, the collected image of the bobbin yarn is preprocessed. Then, the Canny edge detection algorithm is adopted to extract the contour of the cheese yarn, and the contour curvature of the bobbin yarn is calculated. Finally, the contour curvature is adopted to calculate the pose information of the cheese yarn. Through experiments, it has been proven that the algorithm proposed can effectively detect the position and orientation of the cheese yarn, and has good accuracy and adaptability. It can accurately guide the robotic arm to grasp the cheese yarn, and the success rate for grasping light-colored cheese yarn of variable sizes is 100%, with an average time consumption of 21.61 ms.

Key words: cheese yarn, machine vision, posture detection, cheese yarn handling, B-spline curve, line detection, automatic production

CLC Number: 

  • TS103.9

Fig.1

Postures of cheese. (a)Horizontal posture; (b)Vertical posture"

Fig.2

Flow chart of cheese's posture and position detection"

Fig.3

Result of improved median filtering. (a) Original image; (b) Median filter; (c) Improved median filter"

Fig.4

Contour Curve of cheese profile. (a)Horizontal posture; (b)Vertical posture"

Fig.5

Result of discrete curve smoothing effect"

Fig.6

Comparison between curvature distributions with different steps"

Fig.7

Comparison of curvature distributions under different postures"

Fig.8

Comparison between line detection algorism results. (a)Input curve;(b) Algorithm proposed; (c) EDLines;(d) Hough"

Tab.1

Comparison results of line detection methods"

算法 正确
率/%
漏检
率/%
角度
误差/(°)
位置
误差
运算
时间/ms
本文算法 100 0 0.83 1.52 2.7
霍夫变换 45.60 4.50 1.06 1.44 61.4
EDLines 63.20 9.60 0.97 2.67 22.3

Tab.2

Statistical table of cheese fetching result"

尺寸/mm 水平放置 直立放置
目标
数量
成功
数量
成功率/% 算法平均
耗时/ms
目标
数量
成功
数量
成功率/% 算法平均
耗时/ms
160 31 31 100 22.32 19 19 100 19.56
200 28 28 100 23.43 22 22 100 20.12
250 22 22 100 23.15 28 28 100 20.33
[1] 王蕾, 潘如如, 周建, 等. 机器视觉在纺织智能化中的应用进展[J]. 棉纺织技术, 2021, 49(11): 9-11.
WANG Lei, PAN Ruru, ZHOU Jian, et al. Application progress of machine vision in textile intellectuali-zation[J]. Cotton Textile Technology. 2021, 49(11): 9-11.
[2] 黄晨静, 张蕾, 孙逊, 等. 基于动力学模型的面料抓取机械臂轨迹跟踪控制方法[J]. 纺织学报, 2023, 44(6): 207-214.
HUANG Chenjing, ZHANG Lei, SUN Xun, et al. Trajectory tracking control method of cloth grabbing manipulator based on dynamic modeling[J]. Journal of Textile Research, 2023, 44(6): 207-214.
[3] 王勇, 陈荟西, 冯雨齐. 基于改进CenterNet的机械臂抓取检测[J]. 中南大学学报(自然科学版), 2021, 52(9): 3242-3250.
WANG Yong, CHEN Huixi, FENG Yuqi. Robotic grasping detection based on improved CenterNet[J]. Journal of Central South University (Science and Technology), 2021, 52(9): 3242-3250.
[4] 李会军, 瞿孝昌, 叶宾. 基于未知物体三维点云特征的机器人六自由度抓取[J]. 控制理论与应用, 2022, 39(6): 1103-1111.
LI Huijun, QU Xiaochang, YE Bin. Six-degree-of-freedom robot grasping based on three-dimensional point cloud features of unknown objects[J]. Control Theory & Applications, 2022, 39(6): 1103-1111.
[5] 马传旭, 张宁, 潘如如. 基于支持向量机的筒子纱纱管品种检测[J]. 纺织学报, 2023, 44(1): 194-200.
MA Chuanxu, ZHANF Ning, PAN Ruru, Detection of cheese yarn bobbin varieties based on support vector machine[J]. Journal of Textile Research, 2023, 44(1): 194-200.
[6] 张建新, 李琦. 基于机器视觉的筒子纱密度在线检测系统[J]. 纺织学报, 2020, 41(6): 141-146.
ZHANG Jianxin, LI Qi. Online cheese package yarn density detection system based on machine vision[J]. Journal of Textile Research, 2020, 41(6): 141-146.
[7] WANG Junru, SHI Zhiwei, SHI Weimin, et al. The Detection of yarn roll's margin in complex back-ground[J]. Sensors, 2023.DOI:10.3390/s23041993.
[8] HAN Jinghai, LIU Bo, JIA Yongle. A new Kinect V2-based method for visual recognition and grasping of a yarn-bobbin-handling robot[J]. Micromachines, 2022, 13(6): 886. DOI:10.3390/mi13060886.
[9] 刘博, 金守峰, 宿月文, 等. 堆叠筒子纱机器人无序分拣方法[J]. 轻工机械, 2022, 40(6): 14-21.
LIU Bo, JIN Shoufeng, SU Yuewen, et al. Robotic unordered sorting method for stacked bobbin yarns[J]. Light Industry Machinery, 2022, 40(6): 14-21.
[10] 李靖宇, 沈丹峰, 王玉, 等. 基于参数可调均值迁移滤波实现筒子纱的识别检测[J]. 轻工机械, 2021, 39(3): 63-68, 72.
LI Jingyu, SHEN Danfeng. WANG Yu, et al. Recognition and detection of cheese based on edge preserving filtering algorithm[J]. Light Industry Machinery, 2021, 39(3): 63-68, 72.
[11] 陈平, 李攀, 秦明辉. 筒子纱自动包装生产线控制系统设计[J]. 包装工程, 2021, 42(19): 282-286.
CHEN Ping, LI Pan, QIN Minghui. Design of automatic package production line control system for cheese yarn[J]. Package Engineering, 2021, 42(19): 282-286.
[12] 金守峰, 林强强, 马秋瑞. 基于对抗神经网络和神经网络模型的筒子纱抓取方法[J]. 毛纺科技, 2020, 48(1): 79-84.
JIN Shoufeng, LIN Qiangqiang, MA Qiurui. Method for grasping bobbin yarn based on generative adversarial network and neural network model[J]. Wool Textile Journal, 2020, 48(1): 79-84.
[13] 肖扬, 周军. 图像边缘检测综述[J]. 计算机工程与应用, 2023, 59(5): 40-54.
doi: 10.3778/j.issn.1002-8331.2209-0122
XIAO Yang, ZHOU Jun. Overview of image edge detection[J]. Computer Engineering and Applications, 2023, 59(5): 40-54.
doi: 10.3778/j.issn.1002-8331.2209-0122
[14] AKINLAR Cuneyt, TOPAL Cihan. EDLines: a real-time line segment detector with a false detection control[J]. Pattern Recognition Letters, 2011, 32(13): 1633-1642.
[1] REN Ke, ZHOU Hengshu, WEI Jinyu, YAN Wenjun, ZUO Yanwen. Dynamic aesthetic evaluation of pleated skirts based on machine vision technology [J]. Journal of Textile Research, 2024, 45(12): 189-198.
[2] CHEN Yufan, ZHENG Xiaohu, XU Xiuliang, LIU Bing. Machine vision-based defect detection method for sewing stitch traces [J]. Journal of Textile Research, 2024, 45(07): 173-180.
[3] YANG Jinpeng, JING Junfeng, LI Jiguo, WANG Yuanbo. Design of defect detection system for glass fiber plied yarn based on machine vision [J]. Journal of Textile Research, 2024, 45(05): 193-201.
[4] WEN Jiaqi, LI Xinrong, FENG Wenqian, LI Hansen. Rapid extraction of edge contours of printed fabrics [J]. Journal of Textile Research, 2024, 45(05): 165-173.
[5] BAI Enlong, ZHANG Zhouqiang, GUO Zhongchao, ZAN Jie. Cotton color detection method based on machine vision [J]. Journal of Textile Research, 2024, 45(03): 36-43.
[6] GE Sumin, LIN Ruibing, XU Pinghua, WU Siyi, LUO Qianqian. Personalized customization of curved surface pillows based on machine vision [J]. Journal of Textile Research, 2024, 45(02): 214-220.
[7] SHI Weimin, HAN Sijie, TU Jiajia, LU Weijian, DUAN Yutang. Empty yarn bobbin positioning method based on machine vision [J]. Journal of Textile Research, 2023, 44(11): 105-112.
[8] CHEN Gang, JIN Guiyang, WU Jing, LUO Qian. Research and development of key technologies and whole-set equipment for intelligent sewing [J]. Journal of Textile Research, 2023, 44(08): 197-204.
[9] CHEN Taifang, ZHOU Yaqin, WANG Junliang, XU Chuqiao, LI Dongwu. Online detection of yarn breakage based on visual feature enhancement and extraction [J]. Journal of Textile Research, 2023, 44(08): 63-72.
[10] JI Yue, PAN Dong, MA Jiedong, SONG Limei, DONG Jiuzhi. Yarn tension non-contacts detection system on string vibration based on machine vision [J]. Journal of Textile Research, 2023, 44(05): 198-204.
[11] TAO Jing, WANG Junliang, XU Chuqiao, ZHANG Jie. Feature extraction method for ring-spun-yarn evenness online detection based on visual calibration [J]. Journal of Textile Research, 2023, 44(04): 70-77.
[12] WANG Bin, LI Min, LEI Chenglin, HE Ruhan. Research progress in fabric defect detection based on deep learning [J]. Journal of Textile Research, 2023, 44(01): 219-227.
[13] LU Haojie, LI Manli, JIN Enqi, ZHANG Hongwei, ZHOU Jiu. Online measurement of moisture regains of sized yarns based on arc capacitance sensor [J]. Journal of Textile Research, 2023, 44(01): 201-208.
[14] XU Jian, HU Daojie, LIU Xiuping, HAN Lin, YAN Huanying. Cotton impurity image detection based on improved RFB-MobileNetV3 [J]. Journal of Textile Research, 2023, 44(01): 179-187.
[15] ZHENG Xiaohu, LIU Zhenghao, CHEN Feng, LIU Zhifeng, WANG Junliang, HOU Xi, DING Siyi. Key technologies for full-process robotic automatic production in ring spinning [J]. Journal of Textile Research, 2022, 43(09): 11-20.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!