纺织学报 ›› 2019, Vol. 40 ›› Issue (07): 158-162.doi: 10.13475/j.fzxb.20180801305

• 管理与信息化 • 上一篇    下一篇

基于最大熵与密度聚类相融合的毛羽检测

李鹏飞, 严凯, 张缓缓(), 景军锋   

  1. 西安工程大学 电子信息学院, 陕西 西安 710048
  • 收稿日期:2018-08-02 修回日期:2019-04-01 出版日期:2019-07-15 发布日期:2019-07-25
  • 通讯作者: 张缓缓
  • 基金资助:
    陕西省高校科协青年人才托举计划项目(20180115);陕西省教育厅科研计划资助项目(18JK0339);西安工程大学研究生创新基金项目(chx2019018)

Hairiness detection based on maximum entropy and density clustering

LI Pengfei, YAN Kai, ZHANG Huanhuan(), JING Junfeng   

  1. College of Electronics and Information, Xi'an Polytechnic University, Xi'an, Shaanxi 710048, China
  • Received:2018-08-02 Revised:2019-04-01 Online:2019-07-15 Published:2019-07-25
  • Contact: ZHANG Huanhuan

摘要:

为能够更加精确地计算出纱线毛羽的根数及毛羽长度,基于最大熵与密度聚类相融合对纱线毛羽的长度及根数进行检测。该方法首先利用双边滤波对采集到的纱线图像进行预处理,滤除图像中的噪声,同时增强纱线毛羽特征;然后利用最大熵对预处理后的纱线图像进行阈值分割,去除条干提取毛羽,并对毛羽进行细化;最后利用密度聚类算法(DBSCAN聚类)对细化后的毛羽进行分类统计,根据所分类的个数以及每类所含像素点的个数计算出毛羽的根数及长度。将实验结果与目测法和基准线法进行比较,结果表明,该方法与目测方法检测的结果非常接近,结果比基准线法更加精确,检测结果准确、有效。

关键词: 纱线毛羽, 毛羽检测, 最大熵阈值, 密度聚类

Abstract:

In order to calculate the number of yarn hairiness and hairiness length more accurately,a method based on maximum entropy and density clustering was proposed to detect the yarn hairiness length and root number. The yarn image was preprocessed by bilateral filtering to filter out the noise in the image and enhance the yarn hairiness characteristics. Then the maximum entropy was adopted to segment the preprocessed yarn image and remove the yarn. The hairiness were extracted and refined. Finally, the density clustering algorithm(DBSCAN clustering) was applied to classify the number of hairiness. In addition, the root and length of hairiness according to the number of classified hairiness and the number of pixels in each class were calculated. Compared with the visual method and the datum line method, the experimental results demonstrate that the proposed method is very close to the visual method and more accurate than the datum line method. Furthermore, it is shown that the proposed method is accurate and effective.

Key words: yarn hairiness, hairiness detection, maximum entropy threshold, density clustering

中图分类号: 

  • TP391.4

图1

毛羽检测方法框图"

图2

影响毛羽统计的情况"

表1

DBSCAN聚类统计毛羽根数"

图序 领域参数 不同长度(mm)毛羽根数
E M 1 2 3 4 5 6 <1
图2
(a)
0.0~3.0 4~6 3 0 0 0 0 0 4
3.1~6.0 4~6 2 1 0 0 0 0 3
6.1~8.0 4~6 2 1 0 0 0 0 4
3.1~6.0 1~3 2 0 0 0 0 0 5
3.1~6.0 7~9 2 1 0 0 0 0 2
图2
(b)
0.0~3.0 4~6 1 0 0 1 0 0 3
3.1~6.0 4~6 0 0 0 0 1 0 3
6.1~8.0 4~6 1 0 0 1 0 0 3
3.1~6.0 1~3 1 0 0 1 0 0 3
3.1~6.0 7~9 1 0 0 1 0 0 2

表2

毛羽长度分类统计"

样本
序号
不同长度(mm)毛羽根数
1 2 3 4 5 6
1# 123 35 15 12 3 1
2# 83 45 20 9 4 2
3# 158 60 30 10 5 1
4# 140 50 20 18 5 3
5# 143 28 19 11 7 4
6# 151 47 11 6 4 2
7# 131 40 25 10 5 2
平均值 132.7 43.6 20 10.9 4.7 2.1

图3

纱线原图"

图4

本文中算法提取的毛羽"

图5

基准线法(每格0.5 mm)"

表3

本文算法与基准线法和目测法比较"

样本 本文算法
计算的毛羽
长度/mm
基准线法 目测法
测量
长度/mm
相对差/
%
测量
长度/mm
相对差/
%
1.824 1.0 82.4 1.8 1.33
样本1 1.512 1.0 51.2 1.5 0.80
1.080 0.5 116.0 1.1 1.82
0.600 0.5 20.0 0.7 14.29
1.920 1.5 28.0 2.0 4.00
样本2 1.848 1.5 23.2 1.9 2.74
1.200 1.0 20.0 1.2 0.00
1.152 0.5 130.4 1.2 4.00
3.336 2.0 66.8 3.4 1.88
样本3 2.544 2.0 27.2 2.6 2.15
2.088 1.0 108.8 2.1 0.57
1.056 0.5 111.2 1.0 5.60
[1] 杨红英, 朱苏康 . 纱线毛羽[J]. 纺织学报, 2000,21(6):11-14.
YANG Hongying, ZHU Sukang . Yarn hairiness[J]. Journal of Textile Research, 2000,21(6):11-14.
[2] 肖国兰 . 浅析纱线毛羽的成因及预防措施[J]. 上海纺织科技, 2014,42(1):42-43,52.
XIAO Guolan . Causes and pre-prevention measures of yarn hairiness[J]. Shanghai Textile Science & Technology, 2014,42(1):42-43,52.
[3] JING J, HUANG M, LI P , et al. Automatic measurement of yarn hairiness based on the improved MRMRF segmentation algorithm[J]. Journal of The Textile Institute, 2018,109(6):740-749.
[4] 孙银银, 潘如如, 高卫东 . 基于数字图像处理的纱线毛羽检测[J]. 纺织学报, 2013,34(6):102-106.
SUN Yinyin, PAN Ruru, GAO Weidong . Detection of yarn hairiness based on digital image processing[J]. Journal of Textile Research, 2013,34(6):102-106.
[5] FABIJ$\acute{N}$ASKA A, JACKOWSKA-STRUMIŁŁO L . Image processing and analysis algorithms for yarn hairiness determination[J]. Machine Vision and Applications, 2012,23(3):527-540.
[6] 郭海涛, 田坦, 王连玉 , 等. 利用二维属性直方图的最大熵的图像分割方法[J]. 光学学报, 2006(4):506-509.
GUO Haitao, TIAN Tan, WANG Lianyu , et al. Image segmentation method based on maximum entropy of two-dimensional attribute histogram[J]. Acta Optica Sinica, 2006(4):506-509.
[7] 伦向敏, 侯一民 . 运用迭代最大熵算法选取最佳图像分割阈值[J]. 计算机工程与设计, 2015,36(5):1265-1268,1289.
LUN Xiangmin, HOU Yimin . Using the iterative maximum entropy algorithm to select the optimal image segmentation threshold[J]. Computer Engineering and Design, 2015,36(5):1265-1268,1289.
[8] HILDITCH C J . Comparison of thinning algorithms on a parallel processor[J]. Image and Vision Computing, 1983,1(3):115-132.
[9] 李宗林 . 基于DBSCAN的自适应聚类算法研究[D]. 长沙:长沙理工大学, 2015: 14-23.
LI Zonglin . Research on adaptive clustering algorithm based on DBSCAN[D]. Changsha: Changsha University of Science and Technology, 2015: 14-23.
[10] 周培培, 丁庆海, 罗海波 , 等. 基于DBSCAN聚类算法的异常轨迹检测[J]. 红外与激光工程, 2017,46(5):238-245.
ZHOU Peipei, DING Qinghai, LUO Haibo , et al. Abnormal trajectory detection based on DBSCAN clustering algorithm[J]. Infrared and Laser Engineering, 2017,46(5):238-245.
[11] 孙银银, 张宁, 吴洋 , 等. 纱线毛羽骨架及长度的跟踪测量[J]. 纺织学报, 2017,38(8):32-38.
SUN Yinyin, ZHANG Ning, WU Yang , et al. Tracking measurement of yarn hairiness skeleton and length[J]. Journal of Textile Research, 2017,38(8):32-38.
[12] 苏继伟 . 简论纱线毛羽的测试方法[J]. 上海纺织科技, 2004,32(6):60-62.
SU Jiwei . A brief discussion on test method of yarn hairiness[J]. Shanghai Textile Science Technology, 2004,32(6):60-62.
[13] 张继蕾 . 基于图像处理技术的纱线毛羽检测应用研究[D]. 石家庄:河北科技大学, 2011: 2.
ZHANG Jilei . Research on yarn hairiness detection based on image processing technology[D]. Shijiazhuang: Hebei University of Science and Technology, 2011: 2.
[1] 王文帝 辛斌杰 邓娜 李佳平 刘宁娟. 单一视角下自适应阈值法的纱线毛羽识别及其应用[J]. 纺织学报, 2019, 40(05): 150-156.
[2] 景军锋 张星星. 基于机器视觉的玻璃纤维管纱毛羽检测[J]. 纺织学报, 2019, 40(05): 157-162.
[3] 孙银银 张宁 吴洋 潘如如 高卫东. 纱线毛羽骨架及长度的跟踪测量[J]. 纺织学报, 2017, 38(08): 32-38.
[4] 于学智 曹继鹏 孙鹏子. 梳棉机盖板踵趾差对纱线毛羽的影响[J]. 纺织学报, 2013, 34(7): 35-39.
[5] 牟俊玲;邱华;葛明桥. 旋流器对环锭纺纱线性能的影响[J]. 纺织学报, 2009, 30(11): 43-47.
[6] 褚结;葛明桥. 旋流器降低环锭纺纱线毛羽的研究[J]. 纺织学报, 2007, 28(12): 34-37.
[7] 钱友三;程隆棣;薛文良. 络筒上蜡装置设计原理与分析[J]. 纺织学报, 2007, 28(1): 102-104.
[8] 黄立新;崔毅华. 高涤T/C细密织物的纱线上浆与毛羽控制[J]. 纺织学报, 2002, 23(03): 58-59.
[9] 杨红英;朱苏康. 纱线毛羽[J]. 纺织学报, 2000, 21(06): 11-14.
[10] 高卫东;王鸿博. 纱线毛羽危害程度的探讨[J]. 纺织学报, 1998, 19(06): 19-20.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!