CN115815818A - Cylindrical surface marking method, device, electronic equipment and readable storage medium - Google Patents
Cylindrical surface marking method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN115815818A CN115815818A CN202211313664.4A CN202211313664A CN115815818A CN 115815818 A CN115815818 A CN 115815818A CN 202211313664 A CN202211313664 A CN 202211313664A CN 115815818 A CN115815818 A CN 115815818A
- Authority
- CN
- China
- Prior art keywords
- marking
- point
- cylindrical surface
- coordinates
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Laser Beam Processing (AREA)
Abstract
本申请公开了圆柱面标刻方法、装置、电子设备及可读存储介质,应用于激光标刻技术领域,所述圆柱面标刻方法包括:获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。本申请解决了通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。
The present application discloses a cylindrical surface marking method, device, electronic equipment and readable storage medium, which are applied in the technical field of laser marking. The cylindrical surface marking method includes: obtaining at least one of the graphics to be marked on the target cylindrical surface Marking point coordinates; according to each described marking point coordinates, determine the corresponding marking point focal length, wherein, the marking point focal length is the distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer Vertical distance: according to the focal length of each of the marking points and the coordinates of each of the marking points, the target galvanometer is controlled to mark the pattern to be marked on the target cylindrical surface. The present application solves the technical problem of low marking accuracy of marking on a cylindrical surface through a 2D vibrating mirror.
Description
技术领域technical field
本申请涉及激光标刻技术领域,尤其涉及一种圆柱面标刻方法、装置、电子设备及可读存储介质。The present application relates to the technical field of laser marking, and in particular to a cylindrical surface marking method, device, electronic equipment and readable storage medium.
背景技术Background technique
随着激光标刻技术的不断发展,激光标刻在越来越多的领域得以应用,例如激光焊接、激光打标、激光切割以及激光治疗等,在进行激光标刻时,为了保证标刻精度,通常采用高速扫描振镜(Galvo scanning system)控制激光的走向,目前,对于圆柱面的激光标刻,普遍采用3D振镜进行空间激光标刻,但是,3D振镜的成本较为昂贵,所以,应用于平面激光标刻的2D振镜也偶尔用于圆柱面的标刻,但是,由于平面图形在空间上的形变,会导致加工尺寸和理论尺寸存在偏差,所以,当前通过2D振镜在圆柱面上进行标刻的标刻精度低。With the continuous development of laser marking technology, laser marking is applied in more and more fields, such as laser welding, laser marking, laser cutting and laser treatment, etc. When performing laser marking, in order to ensure marking accuracy , usually a high-speed scanning galvanometer (Galvo scanning system) is used to control the direction of the laser. At present, for laser marking on cylindrical surfaces, 3D galvanometers are generally used for spatial laser marking. However, the cost of 3D galvanometers is relatively expensive, so, The 2D vibrating mirror applied to the plane laser marking is also occasionally used for the marking of the cylindrical surface. However, due to the spatial deformation of the plane figure, there will be a deviation between the processing size and the theoretical size. The marking accuracy of marking on the surface is low.
发明内容Contents of the invention
本申请的主要目的在于提供一种圆柱面标刻方法、装置、电子设备及可读存储介质,旨在解决现有技术中通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。The main purpose of this application is to provide a cylindrical surface marking method, device, electronic equipment and readable storage medium, aiming to solve the low marking precision technology of marking on a cylindrical surface through a 2D vibrating mirror in the prior art question.
为实现上述目的,本申请提供一种圆柱面标刻方法,所述圆柱面标刻方法包括:In order to achieve the above purpose, the present application provides a cylindrical surface marking method, the cylindrical surface marking method comprising:
获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;Obtain the coordinates of at least one marking point of the graphic to be marked on the target cylindrical surface;
根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;According to the coordinates of each of the marking points, determine the corresponding marking point focal length, wherein the marking point focal length is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer;
根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to the focal length of each marking point and the coordinates of each marking point, the target galvanometer is controlled to mark the pattern to be marked on the target cylindrical surface.
可选地,所述获取待标刻图形在目标圆柱面上的标刻点坐标的步骤包括:Optionally, the step of obtaining the coordinates of the marking points of the graphics to be marked on the target cylindrical surface includes:
获取所述待标刻图形的定位点初始坐标;Obtain the initial coordinates of the anchor point of the graphic to be marked;
将所述定位点初始坐标转换为标刻点坐标,其中,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置。converting the initial coordinates of the positioning point into the coordinates of the marking point, wherein the coordinates of the marking point are used to characterize the spatial position of the marking point of the graphic to be marked on the target cylindrical surface.
可选地,所述将所述定位点初始坐标转换为标刻点坐标的步骤包括:Optionally, the step of converting the initial coordinates of the positioning point into the coordinates of the marking point includes:
获取所述目标圆柱面的圆柱面中心点坐标和所述目标振镜的振镜中心点坐标;Acquiring the coordinates of the center point of the cylindrical surface of the target cylinder and the coordinates of the center point of the galvanometer of the target galvanometer;
依据所述圆柱面中心点坐标和所述振镜中心点坐标,确定中心点距离;According to the coordinates of the center point of the cylindrical surface and the coordinates of the center point of the galvanometer, determine the center point distance;
依据所述中心点距离和所述定位点初始坐标,计算所述标刻点坐标。Calculate the coordinates of the marking point according to the center point distance and the initial coordinates of the positioning point.
可选地,在所述获取所述待标刻图形的定位点初始坐标的步骤之前,所述圆柱面标刻方法还包括:Optionally, before the step of acquiring the initial coordinates of the anchor point of the graphic to be marked, the cylindrical surface marking method further includes:
获取用户输入的待标刻图形,其中,所述待标刻图形包括至少一个标刻模拟点;Obtaining a graphic to be marked input by a user, wherein the graphic to be marked includes at least one marking simulation point;
在各所述标刻模拟点中选取模拟定位点的定位点模拟坐标作为定位点起始坐标。In each of the marking simulation points, the simulation coordinates of the simulation positioning points are selected as the starting coordinates of the positioning points.
可选地,所述根据各所述标刻点坐标,确定对应的标刻点焦距的步骤包括:Optionally, the step of determining the focal length of the corresponding marking point according to the coordinates of each marking point includes:
根据各所述标刻点坐标,计算所述圆柱面上的至少一个标刻点的焦深校正参数;calculating a focal depth correction parameter of at least one marking point on the cylindrical surface according to the coordinates of each marking point;
依据各所述焦深校正参数,校正对应的标刻点的振镜焦距,得到各所述标刻点焦距。According to each of the focal depth correction parameters, the galvanometer focal length of the corresponding marking point is corrected to obtain the focal length of each of the marking points.
可选地,所述根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面的步骤包括:Optionally, according to the focal length of each of the marking points and the coordinates of each of the marking points, the step of controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface includes:
根据各所述标刻点坐标和对应的标刻点焦距,生成至少一个定位控制信号;generating at least one positioning control signal according to the coordinates of each marking point and the corresponding focal length of the marking point;
依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to each of the positioning control signals and the corresponding marking control signals, the target galvanometer is controlled to mark the pattern to be marked on the target cylindrical surface.
可选地,所述依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面的步骤还包括:Optionally, the step of controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface according to each of the positioning control signals and corresponding marking control signals further includes:
响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息;Responding to the cylindrical surface marking planning operation on the preset marking interface, acquiring graphic marking path planning information of the graphic to be marked;
依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;According to the graphic marking path planning information, a signal execution strategy is jointly matched for each of the positioning control signals and corresponding positioning control signals;
根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to the signal execution strategy, execute each of the positioning control signals and the corresponding marking control signals, so as to mark the pattern to be marked on the target cylindrical surface based on the target vibrating mirror.
为实现上述目的,本申请还提供一种圆柱面标刻装置,所述圆柱面标刻装置包括:In order to achieve the above purpose, the present application also provides a cylindrical surface marking device, which includes:
获取模块,用于获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;An acquisition module, configured to acquire the coordinates of at least one marking point of the graphic to be marked on the target cylindrical surface;
确定模块,用于根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;A determining module, configured to determine the corresponding marking point focal length according to the coordinates of each marking point, wherein the marking point focal length is the distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer vertical distance;
控制模块,用于根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。A control module, configured to control the target galvanometer to mark the pattern to be marked on the target cylindrical surface according to the focal length of each of the marking points and the coordinates of each of the marking points.
可选地,所述获取模块还用于:Optionally, the acquisition module is also used for:
获取所述待标刻图形的定位点初始坐标;Obtain the initial coordinates of the anchor point of the graphic to be marked;
将所述定位点初始坐标转换为标刻点坐标,其中,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置。converting the initial coordinates of the positioning point into the coordinates of the marking point, wherein the coordinates of the marking point are used to characterize the spatial position of the marking point of the graphic to be marked on the target cylindrical surface.
可选地,所述获取模块还用于:Optionally, the acquisition module is also used for:
获取所述目标圆柱面的圆柱面中心点坐标和所述目标振镜的振镜中心点坐标;Acquiring the coordinates of the center point of the cylindrical surface of the target cylinder and the coordinates of the center point of the galvanometer of the target galvanometer;
依据所述圆柱面中心点坐标和所述振镜中心点坐标,确定中心点距离;According to the coordinates of the center point of the cylindrical surface and the coordinates of the center point of the galvanometer, determine the center point distance;
依据所述中心点距离和所述定位点初始坐标,计算所述标刻点坐标。Calculate the coordinates of the marking point according to the center point distance and the initial coordinates of the positioning point.
可选地,所述圆柱面标刻装置还用于:Optionally, the cylindrical surface marking device is also used for:
获取用户输入的待标刻图形,其中,所述待标刻图形包括至少一个标刻模拟点;Obtaining a graphic to be marked input by a user, wherein the graphic to be marked includes at least one marking simulation point;
在各所述标刻模拟点中选取模拟定位点的定位点模拟坐标作为定位点起始坐标。In each of the marking simulation points, the simulation coordinates of the simulation positioning points are selected as the starting coordinates of the positioning points.
可选地,所述确定模块还用于:Optionally, the determination module is also used for:
根据各所述标刻点坐标,计算所述圆柱面上的至少一个标刻点的焦深校正参数;calculating a focal depth correction parameter of at least one marking point on the cylindrical surface according to the coordinates of each marking point;
依据各所述焦深校正参数,校正对应的标刻点的振镜焦距,得到各所述标刻点焦距。According to each of the focal depth correction parameters, the galvanometer focal length of the corresponding marking point is corrected to obtain the focal length of each of the marking points.
可选地,所述控制模块还用于:Optionally, the control module is also used for:
根据各所述标刻点坐标和对应的标刻点焦距,生成至少一个定位控制信号;generating at least one positioning control signal according to the coordinates of each marking point and the corresponding focal length of the marking point;
依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to each of the positioning control signals and the corresponding marking control signals, the target galvanometer is controlled to mark the pattern to be marked on the target cylindrical surface.
可选地,所述圆柱面标刻装置还用于:Optionally, the cylindrical surface marking device is also used for:
响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息;Responding to the cylindrical surface marking planning operation on the preset marking interface, acquiring graphic marking path planning information of the graphic to be marked;
依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;According to the graphic marking path planning information, a signal execution strategy is jointly matched for each of the positioning control signals and corresponding positioning control signals;
根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to the signal execution strategy, execute each of the positioning control signals and the corresponding marking control signals, so as to mark the pattern to be marked on the target cylindrical surface based on the target vibrating mirror.
本申请还提供一种电子设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述圆柱面标刻方法的程序,所述圆柱面标刻方法的程序被处理器执行时可实现如上述的圆柱面标刻方法的步骤。The present application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the cylindrical surface marking method stored on the memory and operable on the processor, the cylindrical surface When the program of the marking method is executed by the processor, the steps of the above cylindrical surface marking method can be realized.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有实现圆柱面标刻方法的程序,所述圆柱面标刻方法的程序被处理器执行时实现如上述的圆柱面标刻方法的步骤。The present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for realizing the marking method on a cylindrical surface, and when the program of the marking method on a cylindrical surface is executed by a processor, the above-mentioned cylinder is realized. The steps of the face marking method.
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的圆柱面标刻方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for marking a cylindrical surface are realized.
本申请提供了一种圆柱面标刻方法、装置、电子设备及可读存储介质,也即,获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。由于标刻点坐标为待标刻图形在圆柱面上的坐标,并且标刻点焦距为圆柱面上的标刻点与目标振镜之间的距离,所以,标刻点坐标和标刻点焦距能够完全反映标刻点在圆柱面上的实际位置,也即,实现了精确定位圆柱面上的标刻点的目的,而非通过2D振镜在圆柱面上进行图形标刻时,仍依赖于标刻点在平面上的实际位置,所以克服了由于平面图形在空间上的形变,会导致加工尺寸和理论尺寸存在偏差的技术缺陷,所以,提升了通过2D振镜在圆柱面上进行标刻的标刻精度。The present application provides a cylindrical surface marking method, device, electronic equipment and readable storage medium, that is, to obtain the coordinates of at least one marking point of the figure to be marked on the target cylindrical surface; according to each of the marking points Coordinates determine the corresponding marking point focal length, wherein the marking point focal length is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer; according to each of the marking point focal lengths and the coordinates of each marking point, controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface. Since the coordinates of the marking point are the coordinates of the graphic to be marked on the cylindrical surface, and the focal length of the marking point is the distance between the marking point on the cylindrical surface and the target galvanometer, the coordinates of the marking point and the focal length of the marking point It can fully reflect the actual position of the marking point on the cylindrical surface, that is, to achieve the purpose of accurately locating the marking point on the cylindrical surface, instead of relying on the The actual position of the marking point on the plane overcomes the technical defect of the deviation between the processing size and the theoretical size due to the spatial deformation of the plane figure. Therefore, the marking on the cylindrical surface through the 2D vibrating mirror is improved. marking accuracy.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本申请圆柱面标刻方法第一实施例的流程示意图;Fig. 1 is a schematic flow chart of the first embodiment of the cylindrical surface marking method of the present application;
图2为本申请圆柱面标刻方法标刻待标刻图形的平面示意图;Fig. 2 is the schematic plan view of marking the graphics to be marked by the cylindrical surface marking method of the present application;
图3为本申请圆柱面标刻方法第二实施例的流程示意图;Fig. 3 is a schematic flow chart of the second embodiment of the cylindrical surface marking method of the present application;
图4为本申请圆柱面标刻装置实施例的示意图;Fig. 4 is the schematic diagram of the embodiment of cylindrical surface marking device of the present application;
图5为本申请实施例中圆柱面标刻方法涉及的硬件运行环境的设备结构示意图。FIG. 5 is a schematic diagram of the equipment structure of the hardware operating environment involved in the cylindrical surface marking method in the embodiment of the present application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functions and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例一Embodiment one
首先,应当理解的是,激光具备能量密度高、定向发光以及准直性高等优点,进而通过采用激光对加工表面进行局部照射,使加工表面出现物理变化或化学变化,最终在表面上留下永久性标记,其中,3D振镜通常应用于空间图形标刻,例如圆弧表面激光标刻,2D振镜通常应用于平面图形标刻,但是,受限于3D振镜的成本考量,一些空间图形的标刻,仍会采用2D振镜进行标刻,但是,由于平面图形在空间中会出现形变,进而常常使得加工尺寸和理论尺寸存在着较大误差,例如,假设要通过2D振镜在圆柱的圆弧面上标刻出正方形,则按照现有方案进行标刻得到的图形大致形状为长方形,并且由于正方形的不同轮廓点的焦深不同,进而导致最终图形难以满足用户的标刻需求,所以,目前通过2D振镜在圆柱面上进行标刻的标刻精度的方法。First of all, it should be understood that laser has the advantages of high energy density, directional light emission and high collimation, and then by using laser to irradiate the processed surface locally, physical changes or chemical changes will occur on the processed surface, and finally leave a permanent surface on the surface. Among them, 3D galvanometers are usually used for spatial graphic marking, such as arc surface laser marking, and 2D galvanometers are usually used for plane graphic marking. However, limited by the cost considerations of 3D galvanometers, some spatial graphics However, due to the deformation of the plane figure in space, there is often a large error between the processing size and the theoretical size. If a square is marked on the arc surface of the square, the shape obtained by marking according to the existing scheme is roughly a rectangle, and because the focal depths of different contour points of the square are different, it is difficult for the final figure to meet the marking needs of the user. Therefore, the current method of marking the marking accuracy on the cylindrical surface through the 2D vibrating mirror.
本申请实施例提供一种圆柱面标刻方法,在本申请圆柱面标刻方法的第一实施例中,参照图1,所述圆柱面标刻方法包括:The embodiment of the present application provides a cylindrical surface marking method. In the first embodiment of the cylindrical surface marking method of the present application, referring to FIG. 1, the cylindrical surface marking method includes:
步骤S10,获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;Step S10, obtaining the coordinates of at least one marking point of the figure to be marked on the target cylindrical surface;
步骤S20,根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;Step S20, according to the coordinates of each of the marking points, determine the corresponding marking point focal length, wherein the marking point focal length is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer distance;
在本实施例中,需要说明的是,所述待标刻图形用于表征等待标刻的图形,所述待标刻图形标刻于目标圆柱面上,所述目标圆柱面为用户选定的标刻所述待标刻图形的圆柱面,所述目标圆柱面上存在未进行图形标刻的位置,所述目标圆柱面可存在已标刻图形,也可不存在标刻图形,所述圆柱面标刻方法应用于激光标刻系统,通过激光标刻系统的输入/输出信号控制圆柱面标刻的运动组件进行移动,以标刻待标刻图形,所述圆柱面标刻系统设置于智能设备,所述智能设备可以为电脑或个人PC等,所述圆柱面标刻系统可设置有图形绘制模块,也可未设置有图形绘制软件,例如,假设所述圆柱面标刻系统上设置有图形绘制模块,所述智能设备为电脑,那么当电脑进入圆柱面标刻系统后,可自动或基于用户的手动操作从电脑上安装的图形绘制软件中获取待标刻图形。In this embodiment, it should be noted that the graphic to be marked is used to represent the graphic waiting to be marked, and the graphic to be marked is marked on the target cylindrical surface, and the target cylindrical surface is selected by the user. Mark the cylindrical surface of the graphic to be marked, there is a position on the target cylindrical surface that has not been marked, the target cylindrical surface may have a marked graphic, or there may be no marked graphic, the cylindrical surface The marking method is applied to the laser marking system, and the movement components of the cylindrical surface marking are controlled to move through the input/output signals of the laser marking system to mark the graphics to be marked. The cylindrical surface marking system is set on the smart device , the smart device can be a computer or a personal PC, etc., and the cylindrical surface marking system can be provided with a graphics drawing module, or not provided with a graphics drawing software, for example, assuming that the cylindrical surface marking system is provided with a graphics As for the drawing module, the smart device is a computer, then when the computer enters the cylindrical surface marking system, it can automatically or based on the user's manual operation obtain the graphics to be marked from the graphics drawing software installed on the computer.
另外地,需要说明的是,所述圆柱面标刻系统进行圆柱面标刻的流程可理解为:圆柱面标刻系统通过输入/输出信号控制2D振镜在空间指定位置进行轮巡标刻,直至待标刻图形标刻完成,其中,所述输入/输出信号可以为用于标刻组成待标刻图形的某一指定标刻点的信号,也可以为用于标刻代表待标刻图形的某一指定标刻区域的信号,例如,在一种可实施的方式中,可设定圆柱面的截面方向为X轴方向,圆柱面的高度方向为Y轴方向,2D振镜的中心点垂直于圆柱面的方向为Z方向,则输入/输出信号用于控制2D振镜沿着X、Y和Z轴运动,以到达空间指定位置。In addition, it should be noted that the process of marking the cylindrical surface by the cylindrical surface marking system can be understood as: the cylindrical surface marking system controls the 2D vibrating mirror to perform patrolling marking at a specified position in space through the input/output signal, Until the marking of the graphic to be marked is completed, the input/output signal can be a signal used to mark a certain designated marking point that constitutes the graphic to be marked, or it can be a signal used to mark a representative graphic to be marked The signal of a specified marking area, for example, in an implementable manner, the cross-sectional direction of the cylindrical surface can be set as the X-axis direction, the height direction of the cylindrical surface is the Y-axis direction, and the center point of the 2D vibrating mirror The direction perpendicular to the cylindrical surface is the Z direction, and the input/output signals are used to control the movement of the 2D galvanometer along the X, Y and Z axes to reach the specified position in space.
另外地,需要说明的是,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置,其中,所述空间位置可通过预设空间坐标系进行表征,待标刻图形标刻于目标圆柱面得到的标刻图形由多个标刻点组成,由于标刻焦深的不同也可使相同的标刻图形有不同的呈现,也即,在标刻待标刻图形时需确定每一点的空间位置,例如,在三维坐标系下则需通过圆柱面的截面方向确定待标刻图形呈现的水平尺寸,通过圆柱面的高度方向确定待标刻图形呈现的垂直尺寸,通过圆柱面与2D振镜之间的纵深方向确定待标刻图形呈现的焦深。In addition, it should be noted that the coordinates of the marking point are used to characterize the spatial position of the marking point of the graphic to be marked on the target cylindrical surface, wherein the spatial position can be determined by the preset spatial coordinates The marking pattern obtained by marking the pattern to be marked on the target cylindrical surface is composed of multiple marking points. Due to the different marking focal depths, the same marking pattern can have different presentations, that is, When marking the graphics to be marked, it is necessary to determine the spatial position of each point. For example, in the three-dimensional coordinate system, it is necessary to determine the horizontal size of the graphics to be marked by the cross-sectional direction of the cylindrical surface, and to determine the horizontal size of the graphics to be marked by the height direction of the cylindrical surface. The vertical dimension of the engraved graphics is determined by the depth direction between the cylindrical surface and the 2D galvanometer to determine the focal depth of the graphics to be marked.
另外地,需要说明的是,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离,当标刻点焦距越小时,其标刻焦深越大,当标刻点焦距越大时,其标刻焦深越小,例如,假设用户想要在圆柱面上标刻各点焦深相同的正方形,由于图形是完全贴合圆柱面的,进而除却尺寸上的校正外,各标刻点对应的标刻点焦距亦需要校正,因此,可通过圆柱面展开图进行标刻点坐标以及标刻点焦距的求解,例如,参照图2,图2为表示标刻待标刻图形的平面示意图,其中,所述预设空间坐标系为以目标圆柱面的截面方向为X轴方向,目标圆柱面的高度方向为Y轴方向,2D振镜的中心点垂直于目标圆柱面的方向为Z方向的三维坐标系,所述三维坐标系的原点为所述目标振镜的起始标刻点,其坐标值为(0,0,0),100为所述目标圆柱面的俯视图,200为所述目标振镜的平视图,300为标刻点坐标,400为起始坐标,600为目标圆柱面的截面半径R,500为目标振镜的中心点与目标圆柱面的中心点之间的距离,a为标刻点300与目标圆柱面截面半径600之间的角度,b为起始点400与目标圆柱面截面半径600之间的角度,进而可将任一标刻点设为(xi,yi,zi),其中,i可以为自然数,i与标刻点一一对应,例如i=1表征第一标刻点,i=2表征第二标刻点,起始点400到目标振镜中心线的垂直距离为横向距离,当2D振镜位于同一高度绕圆柱面运动时,可认定2D振镜在绕X轴方向运动,当2D振镜以圆柱面的高度方向运动时,可认定2D振镜在绕Y轴方向运动。In addition, it should be noted that the focal length of the marking point is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer. When the focal length of the marking point is smaller, the marking focal length The larger the depth, the smaller the focal depth of the marking point when the focal length of the marking point is greater. For example, suppose the user wants to mark a square with the same focal depth of each point on the cylindrical surface, because the graphics fit the cylindrical surface completely. , and furthermore, in addition to the size correction, the focal length of the marking point corresponding to each marking point also needs to be corrected. Therefore, the coordinates of the marking point and the focal length of the marking point can be solved through the expansion diagram of the cylindrical surface. For example, referring to Figure 2, Fig. 2 is a schematic plan view showing marking graphics to be marked, wherein, the preset space coordinate system is that the cross-sectional direction of the target cylindrical surface is the X-axis direction, the height direction of the target cylindrical surface is the Y-axis direction, and the 2D vibrating mirror The direction of the center point perpendicular to the target cylindrical surface is a three-dimensional coordinate system in the Z direction, the origin of the three-dimensional coordinate system is the initial marking point of the target vibrating mirror, and its coordinate value is (0,0,0), 100 is the top view of the target cylindrical surface, 200 is the plan view of the target galvanometer, 300 is the coordinates of the marking point, 400 is the starting coordinate, 600 is the cross-sectional radius R of the target cylindrical surface, and 500 is the diameter of the target galvanometer. The distance between the center point and the center point of the target cylindrical surface, a is the angle between the
作为一种示例,步骤S10至步骤S20包括:在预设空间坐标系下获取待标刻图形在目标圆柱面上的至少一个标刻点的标刻点坐标;根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离。As an example, steps S10 to S20 include: obtaining the marking point coordinates of at least one marking point of the figure to be marked on the target cylindrical surface under the preset space coordinate system; according to each of the marking point coordinates, Determine the corresponding marking point focal length, wherein the marking point focal length is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer.
其中,所述获取待标刻图形在目标圆柱面上的标刻点坐标的步骤包括:Wherein, the step of obtaining the marking point coordinates of the graphics to be marked on the target cylindrical surface comprises:
步骤A10,获取所述待标刻图形的定位点初始坐标;Step A10, obtaining the initial coordinates of the positioning point of the graphic to be marked;
步骤A20,将所述定位点初始坐标转换为标刻点坐标,其中,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置。Step A20, converting the initial coordinates of the positioning point into coordinates of the marking point, wherein the coordinates of the marking point are used to represent the spatial position of the marking point of the graphic to be marked on the target cylindrical surface.
在本实施例中,需要说明的是,当确定待标刻图形的起始标刻点后,可将在目标圆柱面上的任一标刻点作为定位点,进而通过转换待标刻图形的标刻点在目标圆柱面上的展开图的坐标值和待标刻图形的平面图的坐标值,以使待标刻图形标刻于目标圆柱面上与待标刻图形的平面图完全一致,所述定位点初始坐标为定位点在平面坐标系下的初始坐标值,所述定位点初始坐标可由圆柱面标刻系统基于系统外部的图形绘制软件获取,也可由圆柱面标刻系统基于内置图形绘制软件设置。In this embodiment, it should be noted that after determining the initial marking point of the graphics to be marked, any marking point on the target cylindrical surface can be used as the positioning point, and then by converting the graphics to be marked The coordinate values of the expansion diagram of the marking point on the target cylinder surface and the coordinate values of the plane view of the graphics to be marked, so that the graphics to be marked on the target cylinder surface are completely consistent with the plane diagram of the graphics to be marked. The initial coordinates of the positioning point are the initial coordinate values of the positioning point in the plane coordinate system. The initial coordinates of the positioning point can be obtained by the cylindrical surface marking system based on the graphics drawing software outside the system, or by the cylindrical surface marking system based on the built-in graphics drawing software set up.
作为一种示例,步骤A10至步骤A20包括:在所述待标刻图形上选取定位点,并提取所述定位点的定位点初始坐标;将所述定位点初始坐标转换为标刻点坐标,其中,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置。As an example, steps A10 to A20 include: selecting an anchor point on the graphic to be marked, and extracting the initial coordinates of the anchor point of the anchor point; converting the initial coordinates of the anchor point into coordinates of the marking point, Wherein, the coordinates of the marking point are used to characterize the spatial position of the marking point of the graphic to be marked on the target cylindrical surface.
其中,所述将所述定位点初始坐标转换为标刻点坐标的步骤包括:Wherein, the step of converting the initial coordinates of the positioning point into the coordinates of the marking point includes:
步骤B10,获取所述目标圆柱面的圆柱面中心点坐标和所述目标振镜的振镜中心点坐标;Step B10, obtaining the coordinates of the center point of the cylindrical surface of the target cylinder and the coordinates of the center point of the galvanometer of the target galvanometer;
步骤B20,依据所述圆柱面中心点坐标和所述振镜中心点坐标,确定中心点距离;Step B20, according to the coordinates of the center point of the cylindrical surface and the coordinates of the center point of the galvanometer, determine the center point distance;
步骤B30,依据所述中心点距离和所述定位点初始坐标,计算所述标刻点坐标。Step B30, calculating the coordinates of the marking point according to the distance from the center point and the initial coordinates of the positioning point.
在本实施例中,需要说明的是,由于圆柱面的展开图和圆柱面的平面图存在着关联关系,进而可通过预设空间坐标系下2D振镜对应的关键点和目标圆柱面上对应的关键点,实现待标刻图形的定位点的定位点初始坐标转换为标刻点坐标,其中,由于圆柱面的空间特性,待标刻图形的标刻点在平面图上的纵坐标和其在圆柱面的展开图上的纵坐标一致,进而在转换待标刻图形的定位点初始坐标时,定位点的纵坐保持不变,也即,在目标圆柱面上进行与目标圆柱面母线方向平行的标刻点标刻时,仅校正标刻点的横坐标,亦能使得根据校正后的坐标标刻出的待标刻图形符合用户需求。In this embodiment, it should be noted that since there is an association between the expanded view of the cylindrical surface and the planar view of the cylindrical surface, the key points corresponding to the 2D galvanometer in the preset space coordinate system and the corresponding key points on the target cylindrical surface can be The key point is to realize the conversion of the initial coordinates of the anchor point of the anchor point of the graphic to be marked into the coordinate of the marked point. Among them, due to the spatial characteristics of the cylindrical surface, the vertical coordinate of the marked point of the graphic to be marked on the plan and its position on the cylinder The vertical coordinates on the expansion diagram of the surface are consistent, and then when the initial coordinates of the positioning points of the graphics to be marked are converted, the vertical coordinates of the positioning points remain unchanged, that is, on the target cylindrical surface parallel to the direction of the generatrix of the target cylindrical surface When marking the marking point, only the abscissa of the marking point is corrected, so that the graphics to be marked according to the corrected coordinates can meet the needs of users.
另外地,需要说明的是,所述圆柱面中心点坐标用于表征预设平面坐标系下圆柱面中心点的坐标值,所述振镜中心点坐标用于表征预设平面坐标系下振镜中心点的坐标值,所述中心点距离用于表征于预设平面坐标系下所述圆柱面中心点和所述振镜中心点之间的空间距离,通过将圆柱面中心点、振镜中心点和中心点距离输入至预设坐标转换模型,即可进行待标刻图形的每一标刻点的坐标转换,例如,在一种可实施的方式中,假设所述圆柱面中心点坐标为(xm,ym),所述振镜中心点坐标为(xn,yn),则中心点距离为 In addition, it should be noted that the coordinates of the center point of the cylindrical surface are used to represent the coordinate value of the center point of the cylindrical surface in the preset plane coordinate system, and the coordinates of the center point of the vibrating mirror are used to represent the coordinate value of the vibrating mirror in the preset plane coordinate system. The coordinate value of the center point, the center point distance is used to characterize the spatial distance between the center point of the cylindrical surface and the center point of the vibrating mirror under the preset plane coordinate system, by combining the center point of the cylindrical surface and the center of the vibrating mirror The distance between the point and the center point is input to the preset coordinate transformation model, and the coordinate transformation of each marking point of the graphic to be marked can be carried out. For example, in an implementable manner, it is assumed that the coordinates of the center point of the cylindrical surface are (x m , y m ), the coordinates of the center point of the vibrating mirror are (x n , y n ), then the distance between the center point is
作为一种示例,步骤B10至步骤B30包括:在预设空间坐标系下获取所述目标圆柱面的圆柱面中心点的第一坐标值和所述目标振镜的振镜中心点的第二坐标值;通过所述第一坐标值和所述第二坐标值计算所述中心点距离;将所述中心点距离和所述定位点初始坐标共同输入至预设坐标转换模型,得到所述标刻点坐标,其中,所述预设坐标转换模型设置有坐标转换公式,所述坐标转换公式如下:As an example, step B10 to step B30 include: obtaining the first coordinate value of the center point of the cylindrical surface of the target cylindrical surface and the second coordinate value of the center point of the galvanometer of the target galvanometer in a preset space coordinate system value; calculate the center point distance through the first coordinate value and the second coordinate value; input the center point distance and the initial coordinates of the positioning point into the preset coordinate conversion model to obtain the marking point coordinates, wherein the preset coordinate transformation model is provided with a coordinate transformation formula, and the coordinate transformation formula is as follows:
y2=y1 y 2 =y 1
其中,(x1,y1)为所述定位点初始坐标,(x2,y2)为所述标刻点坐标,L为所述中心点距离,R为所述目标圆柱面的截面半径。Among them, (x 1 , y 1 ) is the initial coordinates of the positioning point, (x 2 , y 2 ) is the coordinates of the marking point, L is the distance from the center point, and R is the section radius of the target cylindrical surface .
其中,在所述获取所述待标刻图形的定位点初始坐标的步骤之前,所述圆柱面标刻方法还包括:Wherein, before the step of obtaining the initial coordinates of the anchor point of the graphic to be marked, the cylindrical surface marking method further includes:
步骤C10,获取用户输入的待标刻图形,其中,所述待标刻图形包括至少一个标刻模拟点;Step C10, obtaining the figure to be marked input by the user, wherein the figure to be marked includes at least one marking simulation point;
步骤C20,在各所述标刻模拟点中选取模拟定位点的定位点模拟坐标作为定位点起始坐标。Step C20, selecting the simulated coordinates of the simulated positioning point from each of the marking simulation points as the initial coordinates of the positioning point.
在本实施例中,需要说明的是,所述标刻模拟点用于表征图形绘制软件上模拟待标刻图形的模拟图形上的点,所述选取模拟定位点用于表征组成所述模拟图形的任一标刻模拟点,所述定位点模拟坐标为模拟定位点的坐标值,当选定某一模拟定位点后,该点即可作为标刻定位点,例如,在一种可实施的方式中,假设以圆柱面的截面方向为X轴和高度方向为Y轴建立圆柱面的坐标系,其中,Y轴方向与目标振镜的Y方向平行,当选取某一点坐标为(x0,y0),则(x0,y0)可作为所述定位点初始坐标。In this embodiment, it should be noted that the marking simulation points are used to represent the points on the simulation graphics that simulate the graphics to be marked on the graphics drawing software, and the selected simulation positioning points are used to represent the points that make up the simulation graphics. Any marking simulation point, the simulation coordinates of the positioning point is the coordinate value of the simulation positioning point, when a certain simulation positioning point is selected, this point can be used as the marking positioning point, for example, in a practicable In the method, it is assumed that the coordinate system of the cylindrical surface is established with the cross-sectional direction of the cylindrical surface as the X axis and the height direction as the Y axis, wherein the Y axis direction is parallel to the Y direction of the target galvanometer. When a certain point is selected as (x 0 , y 0 ), then (x 0 ,y 0 ) can be used as the initial coordinates of the anchor point.
作为一种示例,步骤C10至步骤C20包括:获取用户在预设标刻界面上输入的待标刻图形,其中,所述预设标刻界面设置于所述智能设备,用户可在预设标刻界面上实时绘制待标刻图形,也可在预设标刻界面上通过拖动或按键等指令触发获取已有的待标刻图形,所述待标刻图形包括至少一个标刻模拟点;在各所述标刻模拟点中选取模拟定位点的坐标值作为定位点起始坐标。As an example, steps C10 to C20 include: obtaining the graphics to be marked input by the user on the preset marking interface, wherein the preset marking interface is set on the smart device, and the user can Draw the graphics to be marked in real time on the engraving interface, or trigger the acquisition of existing graphics to be marked by dragging or pressing buttons on the preset marking interface, and the graphics to be marked include at least one marking simulation point; In each of the marking simulation points, the coordinate value of the simulation positioning point is selected as the starting coordinate of the positioning point.
其中,所述根据各所述标刻点坐标,确定对应的标刻点焦距的步骤包括:Wherein, the step of determining the focal length of the corresponding marking point according to the coordinates of each marking point includes:
步骤D10,根据各所述标刻点坐标,计算所述圆柱面上的至少一个标刻点的焦深校正参数;Step D10, calculating the focal depth correction parameter of at least one marking point on the cylindrical surface according to the coordinates of each marking point;
步骤D20,依据各所述焦深校正参数,校正对应的标刻点的振镜焦距,得到各所述标刻点焦距。Step D20 , correcting the galvanometer focal length of the corresponding marking point according to each of the focal depth correction parameters to obtain the focal length of each of the marking points.
在本实施例中,需要说明的是,通过预设坐标转换模型对待标刻图形上的标刻点进行坐标转换后,可使得目标振镜发射的激光可精确到达用户需求的标刻点,但是,由于目标振镜焦点距离的不同会导致焦深不同,进而为了确保标刻精准度,需校正不同标刻点的焦深,所以,所述焦深校正参数用于校正焦深,当振镜焦距越小时标刻图形越小,焦距越大时标刻图形越大,2D振镜的平面与空间坐标系下Z轴的校正不可或缺。In this embodiment, it should be noted that after the coordinate conversion of the marking points on the graphics to be marked is carried out through the preset coordinate transformation model, the laser emitted by the target galvanometer can accurately reach the marking points required by the user, but , because the different focal lengths of the target galvanometer will lead to different focal depths, and in order to ensure the marking accuracy, the focal depths of different marking points need to be corrected, so the focal depth correction parameters are used to correct the focal depth, when the galvanometer The smaller the focal length is, the smaller the marking pattern is, and the larger the focal length is, the larger the marking pattern is. The correction of the plane of the 2D galvanometer and the Z-axis in the space coordinate system is indispensable.
另外地,需要说明的是,待标刻图形在目标圆柱面上的有效Z轴取值范围为±z0,以中心点所在Z轴坐标作为参照,中心点焦距为H0,测量待标刻图形的尺寸为和若Zi>0(第i个标刻点的Z轴位置小于中心焦距),则将Z0按长度n等分,以确定Zi的位置宽度,若m<Zi<m+1,则通过插值法确定Zi的位置宽度,其中,0<m<n-1,m的实际宽度值为m+1的实际宽度值为进而根据Zi与H0的宽度值比为fsx和fsy,也即,焦深校正参数计算公式如下:In addition, it should be noted that the effective Z-axis value range of the figure to be marked on the target cylindrical surface is ±z 0 , taking the Z-axis coordinate of the center point as a reference, the focal length of the center point is H 0 , and the measurement to be marked The size of the graph is and If Z i >0 (the Z-axis position of the i-th marking point is smaller than the central focal length), divide Z 0 equally by length n to determine the position width of Z i , if m<Z i <m+1, then Determine the position width of Z i by interpolation method, where, 0<m<n-1, the actual width of m is The actual width of m+1 is Furthermore, according to the width value ratio of Z i and H 0 , fsx and fsy, that is, the calculation formula of the focal depth correction parameter is as follows:
,最终得到校正后的标刻点坐标(x′,y′),其中,x′=xi*fsx,y′=yi*fsy。, and finally obtain the corrected marking point coordinates (x′, y′), wherein, x′=x i *fsx, y′=y i *fsy.
作为一种示例,步骤D10至步骤D20包括:根据各所述标刻点坐标和有效Z轴取值范围之间的对应关系,确定各所述标刻点对应的Z轴宽度值,依据各Z轴宽度值,计算所述圆柱面上的至少一个标刻点的焦深校正参数;依据各所述焦深校正参数,校正对应的标刻点的振镜焦距,得到各所述标刻点焦距。As an example, steps D10 to D20 include: determining the Z-axis width value corresponding to each of the marking points according to the correspondence between the coordinates of each of the marking points and the effective Z-axis value range, according to each Z axis width value, calculate the focal depth correction parameter of at least one marking point on the cylindrical surface; according to each of the focal depth correction parameters, correct the galvanometer focal length of the corresponding marking point, and obtain the focal length of each of the marking points .
步骤S30,根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。Step S30, according to the focal length of each of the marking points and the coordinates of each of the marking points, controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface.
作为一种示例,步骤S30包括:根据各所述标刻点焦距和各所述标刻点坐标共同对应的至少一个控制信号,依次控制所述目标振镜标刻各所述标刻点,以将所述待标刻图形标刻于所述目标圆柱面,其中,所述控制信号用于控制所述目标振镜移动至标刻点对应的空间位置并进行标刻。As an example, step S30 includes: according to at least one control signal corresponding to the focal length of each of the marking points and the coordinates of each of the marking points, sequentially controlling the target galvanometer to mark each of the marking points, so as to The pattern to be marked is marked on the target cylindrical surface, wherein the control signal is used to control the target galvanometer to move to a spatial position corresponding to the marking point and perform marking.
其中,所述根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面的步骤包括:Wherein, the step of controlling the target galvanometer to mark the graphic to be marked on the target cylindrical surface according to the focal length of each of the marking points and the coordinates of each of the marking points includes:
步骤E10,根据各所述标刻点坐标和对应的标刻点焦距,生成至少一个定位控制信号;Step E10, generating at least one positioning control signal according to the coordinates of each marking point and the corresponding focal length of the marking point;
步骤E20,依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。Step E20, controlling the target vibrating mirror to mark the pattern to be marked on the target cylindrical surface according to each of the positioning control signals and corresponding marking control signals.
在本实施例中,需要说明的是,由于标刻过程中由于主客观因素可能存在需改变待标刻图形的情况,则可在校正待标刻图形的各标刻点焦距和各标刻点坐标时生成定位控制信号,其中,所述定位控制信号用于将所述目标振镜定位于标刻点对应的空间位置,所述标刻控制信号用于控制所述目标振镜进行标刻,所述标刻控制信号可由用户在圆柱面标刻系统上进行的标刻控制操作而触发,也即,并非在校正后自动进行标刻,而是根据用户的标刻控制操作进行标刻,所以,在保证标刻精度的同时提升了标刻的灵活性。In this embodiment, it should be noted that, due to subjective and objective factors in the marking process, there may be situations where the graphics to be marked need to be changed, and the focal length of each marking point and each marking point of the graphics to be marked can be corrected. Generate a positioning control signal when coordinates, wherein the positioning control signal is used to position the target vibrating mirror at a spatial position corresponding to the marking point, and the marking control signal is used to control the target vibrating mirror to mark, The marking control signal can be triggered by the marking control operation performed by the user on the cylindrical marking system, that is, the marking is not automatically performed after correction, but is marked according to the marking control operation of the user, so , which improves the flexibility of marking while ensuring the marking accuracy.
作为一种示例,步骤E10至步骤E20包括:根据预设信号转换格式将各所述标刻点坐标和对应的标刻点焦距转换为对应的定位控制信号,其中,预设信号转换方式可根据用户需求自行设定;响应于用户的标刻控制操作,获取各所述定位控制信号对应的标刻控制信号,依次执行各所述标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。As an example, steps E10 to E20 include: converting the coordinates of each marking point and the corresponding focal length of the marking point into a corresponding positioning control signal according to a preset signal conversion format, wherein the preset signal conversion method can be based on The user needs to set by himself; in response to the user's marking control operation, the marking control signal corresponding to each of the positioning control signals is obtained, and each of the marking control signals is executed in sequence, so as to base the target vibrating mirror on the target The marking graphics are marked on the target cylindrical surface.
本申请实施例提供了一种圆柱面标刻方法,也即,获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。由于标刻点坐标为待标刻图形在圆柱面上的坐标,并且标刻点焦距为圆柱面上的标刻点与目标振镜之间的距离,所以,标刻点坐标和标刻点焦距能够完全反映标刻点在圆柱面上的实际位置,也即,实现了精确定位圆柱面上的标刻点的目的,而非通过2D振镜在圆柱面上进行图形标刻时,仍依赖于标刻点在平面上的实际位置,所以克服了由于平面图形在空间上的形变,会导致加工尺寸和理论尺寸存在偏差的技术缺陷,所以,提升了通过2D振镜在圆柱面上进行标刻的标刻精度。The embodiment of the present application provides a method for marking a cylindrical surface, that is, obtaining at least one marking point coordinate of the figure to be marked on the target cylindrical surface; determining the corresponding marking point according to the coordinates of each marking point Focal length, wherein, the focal length of the marking point is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer; according to the focal length of each of the marking points and the coordinates of each of the marking points , controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface. Since the coordinates of the marking point are the coordinates of the graphic to be marked on the cylindrical surface, and the focal length of the marking point is the distance between the marking point on the cylindrical surface and the target galvanometer, the coordinates of the marking point and the focal length of the marking point It can fully reflect the actual position of the marking point on the cylindrical surface, that is, to achieve the purpose of accurately locating the marking point on the cylindrical surface, instead of relying on the The actual position of the marking point on the plane overcomes the technical defect of the deviation between the processing size and the theoretical size due to the spatial deformation of the plane figure. Therefore, the marking on the cylindrical surface through the 2D vibrating mirror is improved. marking accuracy.
实施例二Embodiment two
进一步地,参照图3,在本申请另一实施例中,与上述实施例一相同或相似的内容,可以参考上文介绍,后续不再赘述。在此基础上,所述依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面的步骤还包括:Further, referring to FIG. 3 , in another embodiment of the present application, for the content that is the same as or similar to the first embodiment above, reference may be made to the introduction above, and details will not be repeated hereafter. On this basis, the step of controlling the target galvanometer to mark the pattern to be marked on the target cylindrical surface according to each of the positioning control signals and the corresponding marking control signals further includes:
步骤F10,响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息;Step F10, in response to the cylindrical surface marking planning operation on the preset marking interface, acquiring graphic marking path planning information of the graphic to be marked;
步骤F20,依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;Step F20, according to the graphic marking path planning information, for each of the positioning control signals and the corresponding positioning control signals to jointly match the signal execution strategy;
步骤F30,根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。Step F30 , executing each of the positioning control signals and corresponding marking control signals according to the signal execution strategy, so as to mark the pattern to be marked on the target cylindrical surface based on the target vibrating mirror.
在本实施例中,需要说明的是,对于不同待标刻图形,其可视化效果的呈现不同,进而通过自由设定图形标刻路径规划信息,可使得用户在标刻过程中及时规避标刻风险,例如,假设待标刻图形A以标刻路径1进行标刻,用户需在待标刻图形标刻到3/4时方可察觉是否存在标刻异常,而以标刻路径2进行标刻,用户仅需在待标刻图形标刻到1/4时方可察觉是否存在标刻异常,进而采用标刻路径2可规避标刻过程中的由于标刻不达标而消耗的时间成本和耗材成本,所以,所述图形标刻路径规划信息用于为待标刻图形规划标刻路径,例如,假设待标刻图形为矩形,四个角分别为A1、A2、A3和A4,则图形标刻路径可以为A2→A4→A3→A1,所述信号执行策略用于规划适配所述待标刻图形的图形标刻路径规划信息信号执行次序。In this embodiment, it should be noted that for different graphics to be marked, the presentation of the visualization effect is different, and by freely setting the graphic marking path planning information, the user can avoid marking risks in time during the marking process , for example, assuming that the graphic to be marked is marked with the marking path 1, the user needs to mark the graphic to be marked to 3/4 to detect whether there is a marking abnormality, and mark with the marking path 2 , the user only needs to detect whether there is a marking abnormality when the figure to be marked is marked to 1/4, and then adopting marking path 2 can avoid the time cost and consumables consumed in the marking process due to unqualified marking cost, so the graphic marking path planning information is used to plan the marking path for the graphic to be marked, for example, assuming that the graphic to be marked is a rectangle, and the four corners are A1, A2, A3 and A4 respectively, then the graphic marking The marking path may be A2→A4→A3→A1, and the signal execution strategy is used to plan the execution sequence of the graphic marking path planning information signal adapted to the graphic to be marked.
作为一种示例,步骤F10至步骤F30包括:响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息,其中,所述圆柱面标刻规划操作可由用户在预设标刻界面上输入的语音或按键操作触发;依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。As an example, step F10 to step F30 include: in response to the cylindrical surface marking planning operation on the preset marking interface, acquiring the graphic marking path planning information of the graphic to be marked, wherein the cylindrical surface marking The marking planning operation can be triggered by voice or key operation input by the user on the preset marking interface; according to the graphic marking path planning information, a signal execution strategy is jointly matched for each positioning control signal and the corresponding positioning control signal; according to The signal execution strategy is to execute each of the positioning control signals and corresponding marking control signals, so as to mark the pattern to be marked on the target cylindrical surface based on the target vibrating mirror.
本申请实施例提供了一种振镜标刻控制方法,也即,响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息;依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。相比于按照预先默认的标刻路径进行待标刻图形的标刻,本申请实施例基于图形标刻路径规划信息,为待标刻图形适配图形标刻路径,进而根据图形标刻路径对应的信号执行策略,控制目标振镜将所述待标刻图形标刻于所述目标圆柱面,即可实现针对不同待标刻图形设置不同图形标刻路径的目的,由于不同待标刻图形,其可视化效果的呈现不同,进而通过针对性设置图形规划路径,可规避标刻过程中的标刻风险,所以,为提升通过2D振镜在圆柱面上进行标刻的标刻精度奠定了基础。The embodiment of the present application provides a galvanometer marking control method, that is, in response to the cylindrical surface marking planning operation on the preset marking interface, the graphic marking path planning information of the graphic to be marked is obtained; according to The graphic marking path planning information is a signal execution strategy for each of the positioning control signals and the corresponding positioning control signal; according to the signal execution strategy, execute each of the positioning control signals and the corresponding marking control signal, The pattern to be marked is marked on the target cylindrical surface based on the target galvanometer. Compared with marking the graphic to be marked according to the default marking path, the embodiment of the present application adapts the graphic marking path for the graphic to be marked based on the graphic marking path planning information, and then corresponds to the graphic marking path according to the The signal execution strategy of the target galvanometer is used to mark the graphics to be marked on the target cylindrical surface, so that the purpose of setting different graphics marking paths for different graphics to be marked can be achieved. Due to different graphics to be marked, The presentation of its visualization effect is different, and the marking risk in the marking process can be avoided by setting the graphic planning path in a targeted manner. Therefore, it lays the foundation for improving the marking accuracy of marking on the cylindrical surface through the 2D galvanometer.
实施例三Embodiment three
本申请实施例还提供一种圆柱面标刻装置,参照图4,所述圆柱面标刻装置包括:The embodiment of the present application also provides a cylindrical surface marking device. Referring to FIG. 4, the cylindrical surface marking device includes:
获取模块101,用于获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;An
解密模块102,用于根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;The
确定模块103,用于根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。The determining
可选地,所述获取模块101还用于:Optionally, the obtaining
获取所述待标刻图形的定位点初始坐标;Obtain the initial coordinates of the anchor point of the graphic to be marked;
将所述定位点初始坐标转换为标刻点坐标,其中,所述标刻点坐标用于表征所述待标刻图形的标刻点在所述目标圆柱面上的空间位置。converting the initial coordinates of the positioning point into the coordinates of the marking point, wherein the coordinates of the marking point are used to characterize the spatial position of the marking point of the graphic to be marked on the target cylindrical surface.
可选地,所述获取模块101还用于:Optionally, the obtaining
获取所述目标圆柱面的圆柱面中心点坐标和所述目标振镜的振镜中心点坐标;Acquiring the coordinates of the center point of the cylindrical surface of the target cylinder and the coordinates of the center point of the galvanometer of the target galvanometer;
依据所述圆柱面中心点坐标和所述振镜中心点坐标,确定中心点距离;According to the coordinates of the center point of the cylindrical surface and the coordinates of the center point of the galvanometer, determine the center point distance;
依据所述中心点距离和所述定位点初始坐标,计算所述标刻点坐标。Calculate the coordinates of the marking point according to the center point distance and the initial coordinates of the positioning point.
可选地,所述圆柱面标刻装置还用于:Optionally, the cylindrical surface marking device is also used for:
获取用户输入的待标刻图形,其中,所述待标刻图形包括至少一个标刻模拟点;Obtaining a graphic to be marked input by a user, wherein the graphic to be marked includes at least one marking simulation point;
在各所述标刻模拟点中选取模拟定位点的定位点模拟坐标作为定位点起始坐标。In each of the marking simulation points, the simulation coordinates of the simulation positioning points are selected as the starting coordinates of the positioning points.
可选地,所述确定模块102还用于:Optionally, the
根据各所述标刻点坐标,计算所述圆柱面上的至少一个标刻点的焦深校正参数;calculating a focal depth correction parameter of at least one marking point on the cylindrical surface according to the coordinates of each marking point;
依据各所述焦深校正参数,校正对应的标刻点的振镜焦距,得到各所述标刻点焦距。According to each of the focal depth correction parameters, the galvanometer focal length of the corresponding marking point is corrected to obtain the focal length of each of the marking points.
可选地,所述控制模块101还用于:Optionally, the
根据各所述标刻点坐标和对应的标刻点焦距,生成至少一个定位控制信号;generating at least one positioning control signal according to the coordinates of each marking point and the corresponding focal length of the marking point;
依据各所述定位控制信号和对应的标刻控制信号,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to each of the positioning control signals and the corresponding marking control signals, the target galvanometer is controlled to mark the pattern to be marked on the target cylindrical surface.
可选地,所述控制模块101还用于:Optionally, the
响应于预设标刻界面上的圆柱面标刻规划操作,获取所述待标刻图形的图形标刻路径规划信息;Responding to the cylindrical surface marking planning operation on the preset marking interface, acquiring graphic marking path planning information of the graphic to be marked;
依据所述图形标刻路径规划信息,为各所述定位控制信号和对应的定位控制信号共同匹配信号执行策略;According to the graphic marking path planning information, a signal execution strategy is jointly matched for each of the positioning control signals and corresponding positioning control signals;
根据所述信号执行策略,执行各所述定位控制信号和对应的标刻控制信号,以基于所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。According to the signal execution strategy, execute each of the positioning control signals and the corresponding marking control signals, so as to mark the pattern to be marked on the target cylindrical surface based on the target vibrating mirror.
本发明提供的圆柱面标刻装置,采用上述实施例中的圆柱面标刻方法,解决了通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。与现有技术相比,本发明实施例提供的圆柱面标刻装置的有益效果与上述实施例提供的圆柱面标刻方法的有益效果相同,且该圆柱面标刻装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The cylindrical surface marking device provided by the present invention adopts the cylindrical surface marking method in the above embodiment, and solves the technical problem of low marking accuracy of marking on the cylindrical surface through the 2D vibrating mirror. Compared with the prior art, the beneficial effect of the cylindrical marking device provided by the embodiment of the present invention is the same as that of the cylindrical marking method provided by the above embodiment, and other technical features of the cylindrical marking device are the same as The features disclosed by the methods in the above embodiments are the same, and will not be repeated here.
实施例四Embodiment Four
本发明实施例提供一种电子设备,电子设备包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例一中的圆柱面标刻方法。An embodiment of the present invention provides an electronic device. The electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor. The processor executes, so that at least one processor can execute the cylindrical surface marking method in the first embodiment above.
下面参考图5,其示出了适于用来实现本公开实施例的电子设备的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 5 , it shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. The electronic equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like. The electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
如图5所示,电子设备可以包括处理装置1001(例如中央处理器、图形处理器等),其可以根据存储在只读存储器(ROM)1002中的程序或者从存储装置1003加载到随机访问存储器(RAM)1004中的程序而执行各种适当的动作和处理。在RAM1004中,还存储有电子设备操作所需的各种程序和数据。处理装置1001、ROM1002以及RAM1004通过总线1005彼此相连。输入/输出(I/O)接口1006也连接至总线。As shown in FIG. 5 , the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may be loaded into a random access memory according to a program stored in a read-only memory (ROM) 1002 or from a storage device 1003. (RAM) 1004 to execute various appropriate actions and processing. In RAM 1004, various programs and data necessary for the operation of the electronic device are also stored. The processing device 1001 , ROM 1002 , and RAM 1004 are connected to each other via a bus 1005 . An input/output (I/O) interface 1006 is also connected to the bus.
通常,以下系统可以连接至I/O接口1006:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置1007;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1008;包括例如磁带、硬盘等的存储装置1003;以及通信装置1009。通信装置可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种系统的电子设备,但是应理解的是,并不要求实施或具备所有示出的系统。可以替代地实施或具备更多或更少的系统。In general, the following systems can be connected to the I/O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, an output device 1008 of a vibrator or the like; a storage device 1003 including, for example, a magnetic tape, a hard disk, or the like; and a communication device 1009 . A communication device may allow an electronic device to communicate with other devices wirelessly or by wire to exchange data. While an electronic device is shown with various systems in the figures, it should be understood that implementing or having all of the systems shown is not a requirement. More or fewer systems may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1009从网络上被下载和安装,或者从存储装置1003被安装,或者从ROM1002被安装。在该计算机程序被处理装置1001执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network via the communication means 1009, or from the storage means 1003, or from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
本发明提供的电子设备,采用上述实施例中的圆柱面标刻方法,解决了通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。与现有技术相比,本发明实施例提供的电子设备的有益效果与上述实施例提供的圆柱面标刻方法的有益效果相同,且该电子设备中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The electronic equipment provided by the present invention adopts the cylindrical surface marking method in the above-mentioned embodiments, and solves the technical problem of low marking accuracy of marking on the cylindrical surface through the 2D vibrating mirror. Compared with the prior art, the beneficial effect of the electronic device provided by the embodiment of the present invention is the same as that of the cylinder marking method provided by the above embodiment, and other technical features of the electronic device are the same as those disclosed by the method of the above embodiment The features are the same, and will not be repeated here.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in an appropriate manner.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
实施例五Embodiment five
本实施例提供一种计算机可读存储介质,具有存储在其上的计算机可读程序指令,计算机可读程序指令用于执行上述实施例中的圆柱面标刻方法。This embodiment provides a computer-readable storage medium, which has computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the cylindrical surface marking method in the above-mentioned embodiments.
本发明实施例提供的计算机可读存储介质例如可以是U盘,但不限于电、磁、光、电磁、红外线、或半导体的系统、系统或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、系统或者器件使用或者与其结合使用。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。The computer-readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash drive, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, system or device. Program code embodied on a computer readable storage medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读存储介质可以是电子设备中所包含的;也可以是单独存在,而未装配入电子设备中。The above-mentioned computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被电子设备执行时,使得电子设备:获取待标刻图形在目标圆柱面上的至少一个标刻点坐标;根据各所述标刻点坐标,确定对应的标刻点焦距,其中,所述标刻点焦距为所述目标圆柱面上的标刻点与目标振镜的焦点之间的垂向距离;根据各所述标刻点焦距和各所述标刻点坐标,控制所述目标振镜将所述待标刻图形标刻于所述目标圆柱面。The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires at least one marking point coordinate of the graphic to be marked on the target cylindrical surface; according to Each of the marking point coordinates determines the corresponding marking point focal length, wherein the marking point focal length is the vertical distance between the marking point on the target cylindrical surface and the focal point of the target galvanometer; according to each The focal length of the marking point and the coordinates of each marking point control the target galvanometer to mark the pattern to be marked on the target cylindrical surface.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该单元本身的限定。The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the module does not constitute a limitation of the unit itself under certain circumstances.
本发明提供的计算机可读存储介质,存储有用于执行上述圆柱面标刻方法的计算机可读程序指令,解决了通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。与现有技术相比,本发明实施例提供的计算机可读存储介质的有益效果与上述实施例提供的圆柱面标刻方法的有益效果相同,在此不做赘述。The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above cylindrical surface marking method, which solves the technical problem of low marking accuracy of marking on the cylindrical surface through the 2D vibrating mirror. Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by the embodiment of the present invention is the same as the beneficial effect of the method for marking a cylindrical surface provided by the above embodiment, and will not be repeated here.
实施例六Embodiment six
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的圆柱面标刻方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for marking a cylindrical surface are realized.
本申请提供的计算机程序产品解决了通过2D振镜在圆柱面上进行标刻的标刻精度低的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的圆柱面标刻方法的有益效果相同,在此不做赘述。The computer program product provided by the present application solves the technical problem of low marking accuracy of marking on a cylindrical surface through a 2D vibrating mirror. Compared with the prior art, the beneficial effect of the computer program product provided by the embodiment of the present invention is the same as the beneficial effect of the method for marking a cylindrical surface provided by the above embodiment, and will not be repeated here.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent processing scope of the present application in the same way.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211313664.4A CN115815818B (en) | 2022-10-25 | 2022-10-25 | Cylindrical surface marking method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211313664.4A CN115815818B (en) | 2022-10-25 | 2022-10-25 | Cylindrical surface marking method, device, electronic equipment and readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115815818A true CN115815818A (en) | 2023-03-21 |
| CN115815818B CN115815818B (en) | 2025-08-15 |
Family
ID=85525424
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211313664.4A Active CN115815818B (en) | 2022-10-25 | 2022-10-25 | Cylindrical surface marking method, device, electronic equipment and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115815818B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118003776A (en) * | 2024-02-20 | 2024-05-10 | 长沙八思量信息技术有限公司 | Control method, system, device and storage medium of laser printing mobile device |
| CN119077166A (en) * | 2024-10-28 | 2024-12-06 | 海目星激光科技集团股份有限公司 | A cylindrical rotating multi-path laser beam processing method |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005014089A (en) * | 2003-05-30 | 2005-01-20 | Central Glass Co Ltd | Laser marking method |
| JP2008009661A (en) * | 2006-06-28 | 2008-01-17 | Keyence Corp | Laser processing condition setting device, laser processing device, laser processing condition setting method, laser processing condition setting program, computer-readable recording medium and recorded device |
| CN104057719A (en) * | 2013-03-23 | 2014-09-24 | 杨筑平 | Method, label, device and system for barcode printing |
| CN108115288A (en) * | 2017-12-30 | 2018-06-05 | 大族激光科技产业集团股份有限公司 | The method and device of bitmap is marked on cylindric workpiece |
| CN112605532A (en) * | 2020-12-09 | 2021-04-06 | 长沙八思量信息技术有限公司 | Conical surface marking method and device and computer readable storage medium |
| CN115156724A (en) * | 2022-07-22 | 2022-10-11 | 南京正在迭代科技有限公司 | Focus adjustment method of laser engraving machine based on galvanometer and laser engraving machine |
-
2022
- 2022-10-25 CN CN202211313664.4A patent/CN115815818B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005014089A (en) * | 2003-05-30 | 2005-01-20 | Central Glass Co Ltd | Laser marking method |
| JP2008009661A (en) * | 2006-06-28 | 2008-01-17 | Keyence Corp | Laser processing condition setting device, laser processing device, laser processing condition setting method, laser processing condition setting program, computer-readable recording medium and recorded device |
| CN104057719A (en) * | 2013-03-23 | 2014-09-24 | 杨筑平 | Method, label, device and system for barcode printing |
| CN108115288A (en) * | 2017-12-30 | 2018-06-05 | 大族激光科技产业集团股份有限公司 | The method and device of bitmap is marked on cylindric workpiece |
| CN112605532A (en) * | 2020-12-09 | 2021-04-06 | 长沙八思量信息技术有限公司 | Conical surface marking method and device and computer readable storage medium |
| CN115156724A (en) * | 2022-07-22 | 2022-10-11 | 南京正在迭代科技有限公司 | Focus adjustment method of laser engraving machine based on galvanometer and laser engraving machine |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118003776A (en) * | 2024-02-20 | 2024-05-10 | 长沙八思量信息技术有限公司 | Control method, system, device and storage medium of laser printing mobile device |
| CN119077166A (en) * | 2024-10-28 | 2024-12-06 | 海目星激光科技集团股份有限公司 | A cylindrical rotating multi-path laser beam processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115815818B (en) | 2025-08-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100498667C (en) | Information processing apparatus, control method therefor | |
| CN115815818A (en) | Cylindrical surface marking method, device, electronic equipment and readable storage medium | |
| CN113776520B (en) | Map construction, using method, device, robot and medium | |
| CN115351450B (en) | Groove welding path planning method, device, electronic equipment and storage medium | |
| CN115550619A (en) | Projection correction method and device, electronic equipment and readable storage medium | |
| CN108362310B (en) | Method, device, storage medium and terminal for determining geomagnetic accuracy | |
| CN110070617B (en) | Data synchronization method, device and hardware device | |
| JP7211772B2 (en) | Area setting method, information equipment | |
| CN112337675B (en) | Spraying control method and device for spraying robot and electronic equipment | |
| CN114593704B (en) | Measuring methods, devices, equipment and media for curved parts | |
| CN120279141A (en) | Method and device for realizing flow animation, electronic equipment, storage medium and product | |
| CN115638785B (en) | Robot mapping method and device, electronic equipment and storage medium | |
| CN117994482A (en) | Method, device, medium and equipment for reconstructing three-dimensional model based on image | |
| CN114577113B (en) | Method for measuring the position of a track, track tamping vehicle, device, apparatus and readable medium | |
| CN117611770A (en) | Virtual object moving method, device, equipment and medium | |
| CN114896645A (en) | Model component generation method and device and electronic equipment | |
| CN115761197A (en) | Image rendering method, device, equipment and storage medium | |
| CN115494953A (en) | Audio adjusting method, device, equipment and computer readable storage medium | |
| JP2022124441A (en) | Information processing method, information processing system, program | |
| CN118485729B (en) | Positioning method, device, equipment, medium and product based on monocular camera | |
| CN117001170B (en) | Laser cutting system, laser cutting method, apparatus, and readable storage medium | |
| CN118295094B (en) | Pose control method, pose control device and storage medium for optical machine and waveguide sheet | |
| CN120672837A (en) | Coil detection method, device, storage medium and product | |
| CN119187898A (en) | Laser marking method, device, equipment, storage medium and product | |
| CN118885086A (en) | Device and method for capturing three-dimensional motion of a stick based on a double-layer infrared touch frame |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |