纺织学报 ›› 2022, Vol. 43 ›› Issue (10): 176-182.doi: 10.13475/j.fzxb.20210101107

• 机械与器材 • 上一篇    下一篇

基于图像处理的选针器检测系统

袁嫣红1(), 曾洪铭1, 茅木泉2   

  1. 1.浙江理工大学 浙江省现代纺织装备技术重点实验室, 浙江 杭州 310018
    2.杭州高腾机电科技有限公司, 浙江 杭州 310018
  • 收稿日期:2021-01-07 修回日期:2022-05-19 出版日期:2022-10-15 发布日期:2022-10-28
  • 作者简介:袁嫣红(1967—),女,教授,硕士。主要研究方向为纺织装备机电一体化。E-mail: yyh@zstu.edu.cn
  • 基金资助:
    浙江省科技计划项目(2022C01202);国家自然科学基金联合基金重点项目(U1609205)

Needle selector detection system based on image processing

YUAN Yanhong1(), ZENG Hongming1, MAO Muquan2   

  1. 1. Key Laboratory of Modern Textile Machinery Technology of Zhejiang Province, Zhejiang Sci-Tech University,Hangzhou, Zhejiang 310018, China
    2. Hangzhou Golden Mechanical and Electronic Technology Co., Ltd.,Hangzhou, Zhejiang 310018, China
  • Received:2021-01-07 Revised:2022-05-19 Published:2022-10-15 Online:2022-10-28

摘要:

为提高选针器的检验效率,设计了一套基于图像处理的全自动选针器检验系统。该系统由普通工业相机、选针器控制器、选针器放置平台及计算机组成,采用刀头在两极限位置的灰度值来实现选针器的检验。通过分析选针器刀头的摆动规律,验证利用选针器刀头的灰度值判断刀头摆动运行的可行性;借助Python软件实现图像获取与裁剪,结合Otsu、轮廓检测、图像腐蚀等算法提取每个刀头的灰度值,并通过与预先求解的阈值相比较,实现刀头正常工作的测量与判断。结果表明:设计的人机交互界面可实时显示检验情况,同时可实时保存选针器工作失误帧的图片于指定目录、错误日志于指定文件内,可供查阅和分析;此外,该系统对工作环境要求低,系统成本低廉,通过对模拟出错的选针器进行实际测试,证明该检验系统可有效实现选针器刀头的检测。

关键词: 选针器, 故障检测, 图像处理, 灰度值, 全局快门, 圆纬机

Abstract:

In order to improve the inspection efficiency for needle selectors, a set of automatic needle selector inspection system based on image processing was designed. The system was composed of an ordinary industrial camera, a needle selector controller, a needle selector placement platform and a personal computer. The needle selector is checked by the gray value of the knife head at the two extreme positions. By analyzing the swing rule of the needle selector knife head, the feasibility of using the gray value of the needle selector knife head to judge the knife head swing operation was verified. The Python software was adopted to achieve image acquisition and cropping, and gray value of each cutter head was efficiently extracted by combine Otsu, contour detection, image erosion and other algorithms. The results were compared with the pre-solved threshold to achieve normal operation of the cutter head measurement and judgment. The designed human-computer interaction interface can display the inspection status in real time, and it saves the pictures of the error frames of the needle selector in the designated directory and the error log in the designated file for reference and analysis. The completed system has low cost and no special experimental environment requirements. The actual test of the needle selector that simulates error indicates that the inspection system can effectively realize the detection of the needle selector blade.

Key words: needle selector, trouble shooting, image processing, grayscale value, global shutter, circular weft knitling machine

中图分类号: 

  • TS103.1

图1

选针器刀头摆动示意图"

图2

实验室某选针器摆动时序图(选针频率100 Hz)"

图3

测试系统示意图"

图4

系统软件整体流程图"

图5

全局模式下相机传感器曝光控制图"

图6

刀头分析区域处理过程"

图7

二值化刀头图"

图8

人机交互界面"

图9

选针器刀头正常摆动"

图10

选针器刀头故障"

表1

200 ms曝光时间下选针器刀头灰度值"

类型 左1 右1 左2 右2 左3 右3 左4 右4 左5 右5 左6 右6 左7 右7 左8 右8
背景值 19 20 19 22 24 20 16 19 24 23 15 18 23 24 16 16
刀头左极限位,不摆动 191 0 169 0 182 0 189 0 184 0 199 0 207 0 209 0
刀头右极限位,不摆动 0 191 0 174 0 182 0 194 0 189 0 190 0 194 0 209
摆动频率10 Hz 103 102 93 94 101 99 101 103 102 105 106 103 112 107 111 111
摆动频率20 Hz 102 100 90 94 99 97 99 103 99 102 104 101 110 106 108 109
摆动频率40 Hz 98 97 87 91 96 95 95 99 96 102 100 100 105 106 102 108
摆动频率100 Hz 94 92 83 87 89 93 91 96 90 99 95 97 100 107 95 96
[1] 李红, 袁嫣红, 项宏年. 基于Ansoft Maxwell的电磁选针器瞬态特性分析[J]. 浙江理工大学学报(自然科学版), 2017, 37(1): 92-98.
LI Hong, YUAN Yanhong, XIANG Hongnian. Analysis of transient characteristics of electromagnetic needle selector based on Ansoft Maxwell[J]. Journal of Zhejiang Sci-Tech University ( Natural Sciences Edition), 2017, 37(1): 92-98.
[2] 彭来湖, 王罗俊, 胡旭东, 等. 磁保持电子选针器及串行总线提花系统设计[J]. 纺织学报, 2019, 40(1): 136-141.
PENG Laihu, WANG Luojun, HU Xudong, et al. Magnetic holding electronic needle selector and serial bus jacquard control system for circular knitting machine[J]. Journal of Textile Research, 2019, 40(1):136-141.
[3] 王罗俊, 彭来湖, 史伟民. 针织选针器小尺度往复摆动特性研究[J]. 轻工机械, 2019(37): 16-22.
WANG Luojun, PENG Laihu, SHI Weimin. Research on dynamic characteristics of reciprocating pendulum stroke of knitting needle selector[J]. Light Industry Machinery, 2019(37):16-22.
[4] 夏天宇, 彭来湖, 史伟民. 选针器压电陶瓷驱动及往复位移特性研究[J]. 针织工业, 2019(11): 15-18.
XIA Tianyu, PENG Laihu, SHI Weimin. Piezoelectric ceramic driving and reciprocating motion characteristics of needle selector[J]. Knitting Industries, 2019(11):15-18.
[5] 项宏年, 袁嫣红, 向忠. 电磁选针器选针刀头摆动驱动力矩的测量[J]. 浙江理工大学学报(自然科学版), 2018, 39(2):189-194.
XIANG Hongnian, YUAN Yanhong, XIANG Zhong. Measurement of the swing driving torque of the needle selection knife head of the electromagnetic needle selector[J]. Journal of Zhejiang Sci-Tech Univer-sity (Natural Sciences Edition), 2018, 39(2):189-194.
[6] 袁嫣红, 徐文炜, 彭来湖. 基于Ansys的磁保持电磁选针器瞬态仿真[J]. 纺织学报, 2018, 39(12):124-130.
YUAN Yanhong, XU Wenwei, PENG Laihu. Transient simulation of magnetic latching needle selector based on Ansys[J]. Journal of Textile Research, 2018, 39(12):124-130.
[7] 李军, 朱方明, 周炯. 应用频闪原理的选针器频率检测系统设计[J]. 纺织学报, 2017, 38(3):138-142.
LI Jun, ZHU Fangming, ZHOU Jiong. Design of needle selector frequency detection system based on stroboscopic principle[J]. Journal of Textile Research, 2017, 38(3):138-142.
[8] 刘仲民, 何胜皎, 胡文瑾, 等. 基于背景减除法的视频序列运动目标检测[J]. 计算机应用, 2017, 37(6):1777-1781.
doi: 10.11772/j.issn.1001-9081.2017.06.1777
LIU Zhongmin, HE Shengjiao, HU Wenjin, et al. Moving object detection based on background subtraction for video sequence[J]. Journal of Computer Applications, 2017, 37(6):1777-1781.
doi: 10.11772/j.issn.1001-9081.2017.06.1777
[9] TAKEUCHI Shunji, NISHIOKA Kazuki, UEMATSU Hideyuki, et al. Research into development of the defect detection system for knitted fabric produced by the circular knitting machines by image analysis[J]. Journal of Textile Engineering, 2018, 64(2):45-49.
doi: 10.4188/jte.64.45
[10] 印平. 2018中国国际纺织机械展览会暨ITMA亚洲展览会圆纬机述评[J]. 针织工业, 2018 (11): 1-8.
YIN Ping. Review of the circular weft knitting machines on china international textile machinery exhibition:2018 ITMA Asia[J]. Knitting Industries, 2018(11):1-8.
[11] 张少强. 基于CMV300的CMOS相机光电响应特性研究[D] 北京: 中国科学院大学, 2015:15-18.
ZHANG Shaoqiang. The study of CMOS camera photoelectric response characteristic based CMV300[D]. Beijing: University of Chinese Academy of Sciences, 2015:15-18.
[12] 台浩杰. 基于线阵相机的不干胶印刷品缺陷检测技术研究[D]. 太原: 中北大学, 2019:13-17.
TAI Haojie. Research on self-adhesive print defect detection technology based on linear array camera[D]. Taiyuan: North University of China, 2019:13-17.
[13] 韩晓勇. 基于图像处理的车辆焊缝间隙检测技术研究[D]. 长春: 长春理工大学, 2019:8-12.
HAN Xiaoyong. Research on vehicle weld gap detection technology based on image processing[D]. Changchun: Changchun University of Science and Technology, 2019:8-12.
[14] ABROSIMOV K N, GERKE K M, SEMENKOV I N, et al. Otsu's algorithm in the segmentation of pore space in soils based on tomographic data[J]. Eurasian Soil Science, 2021, 54(4):560-571.
doi: 10.1134/S1064229321040037
[1] 王罗俊, 彭来湖, 史伟民, 张伟中. 基于压电黏合体的电磁选针检测技术[J]. 纺织学报, 2022, 43(08): 167-175.
[2] 邓中民, 胡灏东, 于东洋, 王文, 柯薇. 结合图像频域和空间域的纬编针织物密度检测方法[J]. 纺织学报, 2022, 43(08): 67-73.
[3] 马运娇, 王蕾, 潘如如, 高卫东. 基于平面镜成像的纱线条干三维合成校准方法[J]. 纺织学报, 2022, 43(07): 55-59.
[4] 屠佳佳, 孙磊, 毛慧敏, 戴宁, 朱婉珍, 史伟民. 圆纬机纱架自动换筒技术[J]. 纺织学报, 2022, 43(07): 178-185.
[5] 周其洪, 彭轶, 岑均豪, 周申华, 李姝佳. 基于机器视觉的细纱接头机器人纱线断头定位方法[J]. 纺织学报, 2022, 43(05): 163-169.
[6] 张荣根, 冯培, 刘大双, 张俊平, 杨崇倡. 涤纶工业长丝毛丝在线检测系统的研究[J]. 纺织学报, 2022, 43(04): 153-159.
[7] 熊晶晶, 杨雪, 苏静, 王鸿博. 基于图像技术的织物导湿性能测试方法[J]. 纺织学报, 2021, 42(12): 70-75.
[8] 吕文涛, 林琪琪, 钟佳莹, 王成群, 徐伟强. 面向织物疵点检测的图像处理技术研究进展[J]. 纺织学报, 2021, 42(11): 197-206.
[9] 周濛濛, 蒋高明, 高哲, 郑培晓. 纬编衬经衬纬管状织物增强复合材料研究进展[J]. 纺织学报, 2021, 42(07): 184-191.
[10] 夏旭文, 孟朔, 潘如如, 高卫东. 基于改进帧间差分法的经纱撞筘拥纱在线检测[J]. 纺织学报, 2021, 42(06): 91-96.
[11] 江燕婷, 严庆帅, 辛斌杰, 高琮, 施楣梧. 纺织品单向导水性能测试方法分析[J]. 纺织学报, 2021, 42(05): 51-58.
[12] 李东洁, 郭帅, 杨柳. 基于改进图像阈值分割算法的纱线疵点检测[J]. 纺织学报, 2021, 42(03): 82-88.
[13] 唐千惠, 王蕾, 高卫东. 基于图像处理的织物保形性检测[J]. 纺织学报, 2021, 42(03): 89-94.
[14] 孟朔, 夏旭文, 潘如如, 周建, 王蕾, 高卫东. 基于卷积神经网络的机织物密度均匀性检测[J]. 纺织学报, 2021, 42(02): 101-106.
[15] 张铮烨, 辛斌杰, 邓娜, 陈阳, 邢文宇. 基于边界跟踪测量麻纤维横截面参数的算法研究与应用[J]. 纺织学报, 2020, 41(02): 39-43.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!