• CN:11-2187/TH
  • ISSN:0577-6686

机械工程学报 ›› 2024, Vol. 60 ›› Issue (7): 258-265.doi: 10.3901/JME.2024.07.258

• 数字化设计与制造 • 上一篇    下一篇

扫码分享

金属表面异形区域上色轨迹自动规划

申世全1,2, 任锟1,2, 李永国3, 韩蕴生1, 项琬婷1, 耿赫阳1   

  1. 1. 浙江理工大学机械工程学院 杭州 310018;
    2. 浙江省机电产品可靠性技术研究重点试验室 杭州 310018;
    3. 杭州玛可罗科技有限公司 杭州 310000
  • 收稿日期:2023-04-19 修回日期:2023-12-03 出版日期:2024-04-05 发布日期:2024-06-07
  • 通讯作者: 任锟,男,1979年出生,博士研究生,教授,硕士研究生导师。主要研究方向为数字化制造技术。E-mail:renkun_2008@sina.com
  • 作者简介:申世全,男,1996年出生。主要研究方向为数字化制造技术。E-mail:shenshiquan_2021@sina.com
  • 基金资助:
    浙江省重点研发计划(2021C01143)和浙江省教育厅一般科研(Y202353081)资助项目。

Automatic Coloring Trajectory Planning for Metal Surface Special-Shaped Zones

SHEN Shiquan1,2, REN Kun1,2, LI Yongguo3, HAN Yunsheng1, XIANG Wanting1, GENG Heyang1   

  1. 1. School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou 310018;
    2. Zhejiang Key Laboratory of Mechanical and Electrical Product Reliability Technology, Hangzhou 310018;
    3. Hangzhou Marco Technology Co., Ltd., Hangzhou 310000
  • Received:2023-04-19 Revised:2023-12-03 Online:2024-04-05 Published:2024-06-07

摘要: 金属表面上色在金属工程各个方面发挥着至关重要的作用,如改善金属抗氧化性、防腐性、绝缘性、装饰性和表面性能。为实现金属表面异形区域液体均匀上色,提出了一种自动轨迹规划算法。考虑接触角、表面张力和液滴质量,分析上色工艺并建立相邻液滴间距控制方程;针对彩图图片,采用二值化图像处理方法、Canny边缘检测和轮廓点排序算法提取目标异形区域,并顺序保存轮廓点;采用有理三次Bézier曲线,对提取区域轮廓进行偏置和插值;考虑两个相邻液滴间距,使用等弦长离散算法确定液滴位置。试验结果表明,所提算法可实现区域自动提取、上色轨迹自动规划和异形区域的均匀上色。

关键词: 金属表面上色, 颜色区域提取, Bézier曲线插值, 轨迹规划

Abstract: Metal surface coloring plays a crucial role in various aspects of metal engineering such as improving metal oxidation resistance, corrosion prevention, insulation, decoration, and surface performance. An automatic trajectory planning algorithm is proposed to achieve droplet uniform coloring of special-shaped zones on metal surface. Considering contact angle, surface tension, and droplet mass, the coloring technology is analyzed and the control equation of the distance between two neighboring droplets is established. For coloring pattern image, the binary image processing method, canny edge detection and contour point sorting algorithms are used to extract the target special-shaped zones, and the contour points are saved in order. The extracted zone contours are offset and interpolated by using the rational cubic Bézier curve. Taking the distance between two neighboring droplets into consideration, the equal chord length discretization algorithm is used to determine the droplet locations. Experimental results show that the proposed algorithm can achieve automatic region extraction, automatic coloring trajectory planning and special-shaped regions uniform coloring.

Key words: metal surface coloring, coloring zones extraction, Bézier curve interpolation, trajectory planning

中图分类号: