纺织学报 ›› 2020, Vol. 41 ›› Issue (11): 162-167.doi: 10.13475/j.fzxb.20190905606

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

绗缝机花样加工代码自动生成算法

李亮, 倪俊芳()   

  1. 苏州大学 机电工程学院, 江苏 苏州 215021
  • 收稿日期:2019-09-24 修回日期:2020-08-07 出版日期:2020-11-15 发布日期:2020-11-26
  • 通讯作者: 倪俊芳
  • 作者简介:李亮(1996—),男,硕士生。主要研究方向为机电一体化。
  • 基金资助:
    中国纺织工业联合会科技指导性项目(2018085)

Automatic generation algorithm for pattern processing codes of quilting machines

LI Liang, NI Junfang()   

  1. School of Mechanical and Electrical Engineering, Soochow University, Suzhou, Jiangsu 215021, China
  • Received:2019-09-24 Revised:2020-08-07 Online:2020-11-15 Published:2020-11-26
  • Contact: NI Junfang

摘要:

为简化绗缝机花样设计工艺,降低人的经验影响,达到随拍随绣的效果,对目标绗缝图像进行预处理与边缘提取;采用轮廓跟踪算法,将图像分割为若干有序点链轮廓;最后使用遗传算法,以直线和圆弧为微段加工基元,以一阶连续为约束条件,拟合各段轮廓,进行模拟加工,同时运用MatLab进行编程验证,证明其可靠性。结果表明:应用带约束的误差函数,避免了因端点不连续带来的剪线、跳针的影响,各代最优加工路径的适应度在遗传算子的作用下逐步提高,达到总误差小且拟合段数少的效果;模拟加工实时性好、效率高、还原度高,满足实践中复杂花样的绗缝加工需求。

关键词: 绗缝机, 花样生成算法, 轮廓追踪, 遗传算法, 曲线拟合, 模拟加工

Abstract:

In order to simplify the pattern design process with the quilting machines, to reduce the influence of operators' experience and to achieve the effect of the real-time quilting, this research worked on the automatic generation of pattern codes. The target quilting pattern is pre-processed and edge-extracted, and the contour tracking algorithm was used to segment the image into several ordered point-chain contours. The genetic algorithm was used with the line and arc as base processing elements and the first-order continuous continuity as constraint condition, to fit each outline contour to carry out simulation machining. Programming verification was carried out to prove the reliability of the result by MatLab. The results show that the constraint error function is able to avoid the influence of the trimming and stitch skipping caused by the discontinuity of the endpoint. The fitness of optimal processing path of each generation is gradually improved by the action of the genetic operators. The total error and the number of fitting segments are smaller. The pattern simulation processing satisfies the requirements of good real-time performance, high efficiency, high degree of reduction and the needs of quilting manufacturing requirements of complex patterns in practice.

Key words: quilting machine, pattern generation algorithm, contour tracking, genetic algorithm, curve fitting, simulation processing

中图分类号: 

  • TS391

图1

图像预处理"

图2

奇异点"

图3

轮廓追踪算法实例"

图4

轮廓追踪算法流程图"

图5

微段加工基元拟合结果"

图6

最优加工路径"

图7

各代最优适应度"

图8

绗缝机模拟加工"

[1] 赵福英, 倪俊芳. 花型样条曲线加工代码生成算法[J]. 纺织学报, 2018,39(7):153-158.
ZHAO Fuying, NI Junfang. Algorithm of processing code genereation for pattern spline curves[J]. Journal of Textile Research, 2018,39(7):153-158.
[2] 邢毓华, 巩少峰. 电子花样机花样缝纫点生成算法[J]. 计算机系统应用, 2018,27(6):171-177.
XING Yuhua, GONG Shaofeng. Pattern sewing point generation algorithm for intelligent pattern sewing machine[J]. Computer Systems Applications, 2018,27(6):171-177.
[3] 张伟宁. 基于机器视觉的描绣花样矢量化技术的研究[D]. 北京:北京交通大学, 2015: 46-49.
ZHANG Weining. Research on the vector technique of embroidery pattern based on machine vision[D]. Beijing: Beijing Jiaotong University, 2015: 46-49.
[4] 史步海, 孙会会. 基于新S型速度规划的B样条曲线算法研究[J]. 机床与液压, 2016,44(15):72-79.
SHI Buhai, SUN Huihui. B-spline curve algorithm research based on news velocity planning[J]. Machine Tool & Hydraulics, 2016,44(15):72-79.
[5] DING Huanqi, LUO Shanming, CHANG Xuefeng, et al. Optimization algorithm of tool radius compensation in fast tool servo machining of microlens array[J]. Advanced Materials Reseach, 2014,1039:383-389.
[6] 孙喜庆. 小线段轨迹的圆弧拟合和NURBS曲线的离散算法研究[D]. 哈尔滨:哈尔滨工业大学, 2015: 7-12.
SUN Xiqing. The research of the continuous line segments fitting by arc and the separation of NURBS curve[D]. Harbin:Harbin Institute of Technology, 2015: 7-12.
[7] 倪俊芳, 宋昌才, 何高清. 机床数控技术[M]. 北京: 科学出版社, 2016: 34-50.
NI Junfang, SONG Changcai, HE Gaoqing. Machine tool numerical control technology [M]. Beijing: Science Press, 2016: 34-50.
[8] 胡晋山, 康建荣, 张琪, 等. 一种八邻域图像边界追踪改进算法[J]. 测绘通报, 2018(12):21-25.
HU Jinshan, TANG Jianrong, ZHANG Qi, et al. An improving image boundary tracking algorithm based on eight neighborhood[J]. Bulletin of Surveying and Mapping, 2018(12):21-25.
[9] 姚鹏鹏, 樊臻, 张森林. 改进的Potrace提花织物图像矢量化算法[J]. 传感器与微系统, 2014,33(4):125-127.
YAO Pengpeng, FAN Zhen, ZHANG Senlin. Improved potrace algorithm for vectorizaition of image of jacquard[J]. Transducer and Microsystem Technologies, 2014,33(4):125-127.
[10] ZHANG Weichuan, KONG Xiangnan, SONG Wen. Review of image corner detection algorithms[J]. Acta Electronica Sinica, 2015,43(11):2315-2321.
doi: 10.3969/j.issn.0372-2112.2015.11.026
[11] 张习文, 李佐, 蔡士杰, 等. 基于遗传算法的以线段和圆弧为基元的曲线拟合[J]. 计算机辅助设计与图形学学报, 2002(2):144-147.
ZHANG Xiwen, LI Zuo, CAI Shijie, et al. Segmenting planar curves into straight line and circular arcs segments using genetic algorithm[J]. Journal of Computer-Aided Design & Computer Graphics, 2002(2):144-147.
[12] 王竞雪, 宋伟东, 赵丽科, 等. 改进的Freeman链码在边缘跟踪及直线提取中的应用研究[J]. 信号处理, 2014,30(4):422-430.
WANG Jingxue, SONG Weidong, ZHAO Like, et al. Application of improved freeman chain code in edge tracking and straight line extraction[J]. Journal of Signal Processing, 2014,30(4):422-430.
[1] 张卓, 丛洪莲, 蒋高明, 董智佳. 基于交互式遗传算法的Polo衫快速款式推荐系统[J]. 纺织学报, 2021, 42(01): 138-144.
[2] 谢子昂, 杜劲松, 赵国华. 衬衫吊挂流水线的自适应动态调度[J]. 纺织学报, 2020, 41(10): 144-149.
[3] 张晓侠, 刘凤坤, 买巍, 马崇启. 基于BP 神经网络及其改进算法的织机效率预测[J]. 纺织学报, 2020, 41(08): 121-127.
[4] 应双双, 裘柯槟, 郭宇飞, 周赳, 周华. 纺织品色彩管理色表测量数据的误差优化[J]. 纺织学报, 2020, 41(08): 74-80.
[5] 黄珍珍, 莫碧贤, 温李红. 基于遗传算法及仿真技术的服装生产流水线平衡[J]. 纺织学报, 2020, 41(07): 154-159.
[6] 郑小虎, 鲍劲松, 马清文, 周衡, 张良山. 基于模拟退火遗传算法的纺纱车间调度系统[J]. 纺织学报, 2020, 41(06): 36-41.
[7] 莫帅, 冯战勇, 唐文杰, 党合玉, 邹振兴. 基于神经网络和遗传算法的锭子弹性管性能优化[J]. 纺织学报, 2020, 41(04): 161-166.
[8] 黄淇, 周其洪, 张倩, 王绍宗, 范伟, 孙会丰. 基于系统布置设计-遗传算法的纱线浸染生产线布局优化[J]. 纺织学报, 2020, 41(03): 84-90.
[9] 张旭靖, 王立川, 陈雁. 基于遗传算法的服装缝制生产线平衡优化[J]. 纺织学报, 2020, 41(02): 125-129.
[10] 王晓晖, 刘月刚, 孟婥, 孙以泽. 基于遗传算法和神经网络的3D增材印花工艺参数优化[J]. 纺织学报, 2019, 40(11): 168-174.
[11] 孟朔, 潘如如, 高卫东, 王静安, 周利军. 采用主目标进化遗传算法的织造排程研究[J]. 纺织学报, 2019, 40(08): 169-174.
[12] 宋楚平 李少芹. 应用改进遗传算法的自动配棉模型优化与应用[J]. 纺织学报, 2016, 37(09): 151-155.
[13] 谷有众 高卫东 卢雨正 刘建立 杨瑞华. 应用遗传算法优化支持向量回归机的喷气涡流纺纱线质量预测[J]. 纺织学报, 2016, 37(07): 142-148.
[14] 杨建国 熊经纬 徐兰 项前. 应用混合种群遗传神经网络的精梳毛纺工艺参数反演模型[J]. 纺织学报, 2016, 37(07): 149-154.
[15] 叶晓露 庞程方 金娟凤 邹奉元. 短裤特征截面曲线的径向基函数神经网络模型构建[J]. 纺织学报, 2015, 36(05): 83-88.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!