CN110348553A - A kind of laser index carving method of random three-dimensional code - Google Patents
A kind of laser index carving method of random three-dimensional code Download PDFInfo
- Publication number
- CN110348553A CN110348553A CN201910581641.3A CN201910581641A CN110348553A CN 110348553 A CN110348553 A CN 110348553A CN 201910581641 A CN201910581641 A CN 201910581641A CN 110348553 A CN110348553 A CN 110348553A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- color
- marking
- image
- laser
- 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
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000010330 laser marking Methods 0.000 claims abstract description 18
- 239000010410 layer Substances 0.000 claims description 49
- 239000000463 material Substances 0.000 claims description 31
- 239000003086 colorant Substances 0.000 claims description 29
- 230000008569 process Effects 0.000 claims description 12
- 239000000284 extract Substances 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 5
- 239000011247 coating layer Substances 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 3
- CURLTUGMZLYLDI-UHFFFAOYSA-N Carbon dioxide Chemical compound O=C=O CURLTUGMZLYLDI-UHFFFAOYSA-N 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910002092 carbon dioxide Inorganic materials 0.000 description 1
- 239000001569 carbon dioxide Substances 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001125 extrusion Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/36—Removing material
- B23K26/362—Laser etching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Optics & Photonics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Plasma & Fusion (AREA)
- Mechanical Engineering (AREA)
- Laser Beam Processing (AREA)
- Credit Cards Or The Like (AREA)
- Thermal Transfer Or Thermal Recording In General (AREA)
Abstract
本发明公开了一种随机三维码的激光标刻方法,属于激光加工领域,包括:将二维码图像的黑色区域变为彩色,生成三维码彩色图像;根据三维码彩色图像生成标刻路径,并按照颜色将标刻路径分类,获取分类存储信息;根据分类存储信息,采用激光器在多层防伪模块上标刻随机三维码;多层防伪模块由不同颜色材料叠加,材料的颜色包含三维码彩色图像中的颜色种类。本发明标刻时间一定时,根据接收的分类存储信息调制激光器的输出功率,或激光器输出功率一定时,根据接收的分类存储信息调节标刻时间,在完成一遍加工路径后可以快速在多层防伪模块上标刻出深浅不一、具有凹凸感的三维码,极大地提高了加工效率。
The invention discloses a laser marking method for a random three-dimensional code, belonging to the field of laser processing, comprising: changing the black area of a two-dimensional code image into color to generate a three-dimensional code color image; generating a marking path according to the three-dimensional code color image, And classify the marking paths according to the color to obtain classified storage information; according to the classified storage information, use lasers to mark random 3D codes on the multi-layer anti-counterfeiting module; The kind of color in the image. In the present invention, when the marking time is fixed, the output power of the laser is modulated according to the received classified storage information, or when the output power of the laser is constant, the marking time is adjusted according to the received classified storage information. The module is marked with three-dimensional codes with different shades and a concave-convex feeling, which greatly improves the processing efficiency.
Description
技术领域technical field
本发明属于激光加工领域,更具体地,涉及一种随机三维码的激光标刻方法。The invention belongs to the field of laser processing, and more specifically relates to a laser marking method for a random three-dimensional code.
背景技术Background technique
二维码是一种高密度、高信息含量的便携式数据文件,可以将照片、指纹、掌纹、签字、声音、文字等可数字化的信息进行编码,同时容易制作且成本低,利用现有的点阵、激光、喷墨、热敏、制卡机等打印技术,即可在纸张、卡片、PVC、甚至金属表面上印出二维条码,可见二维码作为信息的载体在日常生活中发挥的作用越来越重要。QR code is a portable data file with high density and high information content. It can encode digital information such as photos, fingerprints, palm prints, signatures, voices, and texts. It is easy to make and low in cost. Dot matrix, laser, inkjet, thermal, card printing and other printing technologies can print two-dimensional barcodes on paper, cards, PVC, and even metal surfaces. It can be seen that two-dimensional codes play an important role in daily life as information carriers. role is becoming increasingly important.
目前普通平面上加工出的二维码容易被复制,防伪能力差,因此,随机三维码在二维码的基础上添加随机的颜色信息,并在一种特殊的多层防伪材料上进行加工,具有结构的、立体的、唯一的和不可复制的特点,将二维码与防伪组合,克服了普通二维码容易被复制的缺点,能够广泛应用在需要严格防伪标识的产品上。At present, the two-dimensional code processed on the ordinary plane is easy to be copied, and the anti-counterfeiting ability is poor. Therefore, the random three-dimensional code adds random color information on the basis of the two-dimensional code, and processes it on a special multi-layer anti-counterfeiting material. With the characteristics of structure, three-dimensional, unique and non-reproducible, the combination of two-dimensional code and anti-counterfeiting overcomes the shortcomings of ordinary two-dimensional codes that are easy to be copied, and can be widely used in products that require strict anti-counterfeiting marks.
由于随机三维码是在近期提出,所以其加工技术目前还不够成熟。目前对随机三维码进行加工采用的是机械雕刻的方法,通过刻刀在特殊多层防伪材料上雕刻出不同的深度,呈现不同的颜色。Since the random three-dimensional code was proposed recently, its processing technology is not yet mature enough. At present, the method of mechanical engraving is used to process the random three-dimensional code, and different depths are carved on the special multi-layer anti-counterfeiting material with a carving knife, showing different colors.
传统机械加工方法是接触式加工,会对加工材料造成机械挤压和机械应力,加工受材料物理性能和机械性能的影响,加工速度慢、加工效率也低,不能满足随机三维码加工的需求。The traditional mechanical processing method is contact processing, which will cause mechanical extrusion and mechanical stress to the processed material. The processing is affected by the physical and mechanical properties of the material. The processing speed is slow and the processing efficiency is low, which cannot meet the needs of random 3D code processing.
发明内容Contents of the invention
针对现有技术的缺陷,本发明的目的在于提供一种随机三维码的激光标刻方法,旨在解决现有机械加工随机三维码效率低的问题。Aiming at the defects of the prior art, the purpose of the present invention is to provide a laser marking method for random three-dimensional codes, aiming at solving the problem of low efficiency of the existing mechanical processing of random three-dimensional codes.
为实现上述目的,本发明提供了一种随机三维码的激光标刻方法,包括:In order to achieve the above object, the present invention provides a laser marking method for a random three-dimensional code, including:
(1)将二维码图像的黑色区域变为彩色,生成三维码彩色图像;(1) Change the black area of the two-dimensional code image into color to generate a three-dimensional code color image;
(2)根据三维码彩色图像生成标刻路径,并按照颜色将标刻路径分类,获取分类存储信息;(2) Generate the marking path according to the color image of the three-dimensional code, and classify the marking path according to the color, and obtain the classified storage information;
(3)根据分类存储信息,采用激光器在多层防伪模块上标刻随机三维码;(3) According to the classified storage information, lasers are used to mark random three-dimensional codes on the multi-layer anti-counterfeiting module;
多层防伪模块由不同颜色材料叠加,材料的颜色包含三维码彩色图像中的颜色种类。The multi-layer anti-counterfeiting module is superimposed by materials of different colors, and the colors of the materials include the color types in the color image of the three-dimensional code.
优选地,步骤(1)具体包括:Preferably, step (1) specifically includes:
将二维码图像的黑色区域分为若干面积相等的单元块,并设置颜色块的大小;Divide the black area of the two-dimensional code image into several unit blocks of equal area, and set the size of the color block;
颜色块的大小为单元块的整数倍;The size of the color block is an integer multiple of the unit block;
将二维码图像按照颜色块划分,若二维码图像不是颜色块的整数倍,则划分后剩余的二维码图像部分作为一个颜色块;Divide the two-dimensional code image according to the color blocks, if the two-dimensional code image is not an integer multiple of the color block, then the remaining part of the two-dimensional code image after division is regarded as a color block;
以颜色块为单元随机填充不同颜色,生成三维码彩色图像。The color block is randomly filled with different colors to generate a three-dimensional code color image.
优选地,步骤(2)具体包括:Preferably, step (2) specifically includes:
(2.1)利用边过程围线追踪方法提取三维码图像的矢量轮廓数据;(2.1) Utilize the edge process perimeter tracking method to extract the vector contour data of the three-dimensional code image;
(2.2)根据矢量轮廓数据生成标刻路径;(2.2) Generate a marking path according to the vector contour data;
(2.3)生成的标刻路径按照三维码彩色图像中的颜色进行分类,获取分类存储信息;(2.3) The generated marking path is classified according to the color in the color image of the three-dimensional code, and the classified storage information is obtained;
优选地,生成标刻路径的方法包括轮廓填充法和螺旋追踪法;Preferably, the method for generating a marking path includes a contour filling method and a spiral tracing method;
轮廓填充法以扫描线为单元标刻,选取二维码图像的最外圈矢量轮廓,再对轮廓进行扫描线填充,直至生成扫描线式标刻路径;The contour filling method uses the scanning line as the unit marking, selects the outermost circle vector contour of the two-dimensional code image, and then fills the contour with scanning lines until the scanning line marking path is generated;
螺旋追踪法以圈为单元标刻,先提取二维码图像的最外圈矢量轮廓,将当前最外圈矢量轮廓的像素点变为背景色以更新二维码图像,再提取更新后二维码图像的最外圈矢量轮廓,直至二维码图像均为背景色,生成螺旋线式标刻路径。The spiral tracking method marks the circle as a unit, first extracts the outermost circle vector contour of the two-dimensional code image, changes the pixel points of the current outermost circle vector contour to the background color to update the two-dimensional code image, and then extracts the updated two-dimensional The outermost vector outline of the code image, until the two-dimensional code image is the background color, generating a spiral marking path.
优选地,将二维码图像的黑色区域以颜色块为单位随机填充红、绿和蓝三种颜色;Preferably, the black area of the two-dimensional code image is randomly filled with three colors of red, green and blue in units of color blocks;
标刻路径分类时依次将红、绿和蓝作为前景色,其他颜色为背景色,获取三种颜色对应的标刻路径;When classifying the marking path, red, green and blue are used as the foreground color in turn, and other colors are the background color, and the marking paths corresponding to the three colors are obtained;
多层防伪模块的第一层材料为白色涂覆层;其第二层材料为绿色;其第三层材料为红色;其第四层材料为蓝色;The material of the first layer of the multi-layer anti-counterfeiting module is a white coating layer; the material of the second layer is green; the material of the third layer is red; the material of the fourth layer is blue;
步骤(3)中激光器在多层防伪模块上标刻的方法为:In step (3), the method for the laser to mark on the multi-layer anti-counterfeiting module is:
标刻时间一定时,根据接收的分类存储信息调制激光器的输出功率,标刻出多层防伪模块上的目标颜色材料;When the marking time is fixed, the output power of the laser is modulated according to the received classified storage information, and the target color material on the multi-layer anti-counterfeiting module is marked;
或激光器输出功率一定时,根据接收的分类存储信息调节标刻时间,标刻出多层防伪模块上的目标颜色材料。Or when the output power of the laser is constant, the marking time is adjusted according to the received classification and storage information, and the target color material on the multi-layer anti-counterfeiting module is marked.
通过本发明所构思的以上技术方案,与现有技术相比,能够取得以下有益效果:Through the above technical solutions conceived by the present invention, compared with the prior art, the following beneficial effects can be obtained:
(1)本发明提供的随机三维码的激光标刻方法,首先在黑白二维码图像的基础上添加随机的多种颜色生成三维码彩色图像,确保了三维码的随机性,保证了防伪的功能;再在三维码彩色图像的基础上,根据颜色信息获取不同颜色对应的矢量标刻路径,作为分类存储信息;根据分类存储信息,采用激光器输出激光光束在多层防伪模块上标刻随机三维码;标刻时间一定时,根据接收的分类存储信息调制激光器的输出功率,或激光器输出功率一定时,根据接收的分类存储信息调节标刻时间,在完成一遍加工路径后可以快速在多层防伪模块上标刻出深浅不一、具有凹凸感的三维码,相对于传统机械加工极大地提高了加工效率。其中在标刻过程中,采用实时调制激光器的输出功率的方法比采用输出功率一定调节标刻时间的方法效率更高。(1) The laser marking method of the random three-dimensional code provided by the present invention first adds random multiple colors on the basis of the black and white two-dimensional code image to generate a three-dimensional code color image, which ensures the randomness of the three-dimensional code and ensures the anti-counterfeiting Function; based on the color image of the three-dimensional code, according to the color information, the vector marking paths corresponding to different colors are obtained as classified storage information; according to the classified storage information, the laser output laser beam is used to mark random three-dimensional marks on the multi-layer anti-counterfeiting module Code; when the marking time is fixed, the output power of the laser is modulated according to the received classified storage information, or when the laser output power is constant, the marking time is adjusted according to the received classified storage information, and the multi-layer anti-counterfeiting The module is marked with three-dimensional codes with different shades and a concave-convex feeling, which greatly improves the processing efficiency compared with traditional mechanical processing. In the marking process, the method of modulating the output power of the laser in real time is more efficient than the method of adjusting the marking time with a certain output power.
(2)本发明采用边过程围线追踪方法提取二维码图像的矢量轮廓数据;提供两种生成标刻路径的方法,包括轮廓填充法和螺旋追踪法;其中,螺旋追踪法以圈为单元标刻,轮廓填充法以扫描线为单元标刻,螺旋追踪法相比于轮廓填充法,得到的标刻路径在标刻过程中走的路程更短,标刻效率更高。(2) The present invention adopts the edge process perimeter tracking method to extract the vector contour data of the two-dimensional code image; two methods for generating marking paths are provided, including the contour filling method and the spiral tracing method; wherein, the spiral tracing method takes circle as a unit Marking and contour filling method mark with scanning line as the unit. Compared with the contour filling method, the spiral tracking method obtains a marking path that takes a shorter distance during the marking process, and the marking efficiency is higher.
(3)本发明将二维码图像的黑色区域分为若干面积相等的单元块,并设置颜色块的大小,颜色块的大小为单元块的整数倍;将所述二维码图像按照颜色块划分,各颜色块的大小相等,若二维码图像不是颜色块的整数倍,则划分后剩余的二维码图像部分作为一个颜色块;以颜色块为单元,随机填充颜色获取三维码彩色图像,避免了因各颜色块大小不一,毫无规律性,导致后续分类存储数据的复杂度较高的问题,因此,相比于不进行任何颜色块划分和单元块划分生成的三维码彩色图像,本发明的三维码彩色图像颜色杂乱度更低,更有利于识别。(3) The present invention divides the black region of the two-dimensional code image into several unit blocks equal in area, and sets the size of the color block, which is an integer multiple of the unit block; divides the two-dimensional code image according to the color block Divide, the size of each color block is equal, if the two-dimensional code image is not an integer multiple of the color block, then the remaining part of the two-dimensional code image after division is used as a color block; with the color block as a unit, randomly fill the color to obtain the color image of the three-dimensional code , which avoids the problem of high complexity of subsequent classification and storage of data due to the different sizes and irregularities of each color block. Therefore, compared with the 3D code color image generated without any color block division and unit block division Therefore, the three-dimensional code color image of the present invention has lower color clutter and is more conducive to recognition.
(4)本发明将二维码图像的黑色区域随机填充红、绿和蓝三种颜色;相应的将多层防伪模块设计为第一层材料为白色涂覆层;其第二层材料为绿色;其第三层材料为红色;其第四层材料为蓝色,保证了激光标刻深浅不一、具有凹凸感的三维码的可行性,同时三种颜色与白色之间的区别度较高,保证防伪的同时更易于分辨。(4) The present invention randomly fills the black area of the two-dimensional code image with three colors of red, green and blue; correspondingly, the multi-layer anti-counterfeiting module is designed as a white coating layer for the first layer of material; its second layer of material is green ;The material of the third layer is red; the material of the fourth layer is blue, which ensures the feasibility of laser marking three-dimensional codes with different shades and concave-convex feeling. At the same time, the difference between the three colors and white is high. , It is easier to distinguish while ensuring anti-counterfeiting.
附图说明Description of drawings
图1是本发明提供的激光标刻随机三维码彩色图像的流程图;Fig. 1 is the flowchart of laser marking random three-dimensional code color image provided by the present invention;
图2是实施例提供的由黑白二维码图像生成三维码彩色图像的示意图;Fig. 2 is a schematic diagram of generating a three-dimensional code color image from a black and white two-dimensional code image provided by an embodiment;
图3是实施例提供的由三维码彩色图像获取标刻路径的示意图。Fig. 3 is a schematic diagram of the marking path obtained from the color image of the three-dimensional code provided by the embodiment.
图4是实施例提供的一种多层防伪模块的结构示意图。Fig. 4 is a schematic structural diagram of a multi-layer anti-counterfeiting module provided by the embodiment.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供了一种随机三维码的激光标刻方法,利用激光打标机在一种特殊的多层防伪模块上加工随机的、彩色的、深浅不一的结构三维码,充分发挥激光非接触式加工速度快、效率高的优点,克服了传统机械加工效率低的缺点。The invention provides a laser marking method for random three-dimensional codes. A laser marking machine is used to process random, colorful and structured three-dimensional codes of different shades on a special multi-layer anti-counterfeiting module. The advantages of fast processing speed and high efficiency overcome the shortcomings of low efficiency of traditional mechanical processing.
如图1所示,本发明提供了一种随机三维码的激光标刻方法,包括:As shown in Figure 1, the present invention provides a laser marking method for a random three-dimensional code, including:
(1)将二维码图像的黑色区域变为彩色,生成三维码彩色图像;(1) Change the black area of the two-dimensional code image into color to generate a three-dimensional code color image;
(2)根据三维码彩色图像生成标刻路径,并按照颜色将标刻路径分类,获取分类存储信息;(2) Generate the marking path according to the color image of the three-dimensional code, and classify the marking path according to the color, and obtain the classified storage information;
(3)根据分类存储信息,采用激光器在多层防伪模块上标刻随机三维码;(3) According to the classified storage information, lasers are used to mark random three-dimensional codes on the multi-layer anti-counterfeiting module;
多层防伪模块由不同颜色材料叠加,材料的颜色包含三维码彩色图像中的颜色种类。The multi-layer anti-counterfeiting module is superimposed by materials of different colors, and the colors of the materials include the color types in the color image of the three-dimensional code.
优选地,如图2所示,步骤(1)具体包括:Preferably, as shown in Figure 2, step (1) specifically includes:
(1.1)将所述二维码图像的黑色区域分为若干面积相等的单元块,并设置颜色块的大小;(1.1) divide the black region of the two-dimensional code image into several unit blocks with equal areas, and set the size of the color block;
颜色块的大小为单元块的整数倍;The size of the color block is an integer multiple of the unit block;
(1.2)将二维码图像按照颜色块划分,若二维码图像不是颜色块的整数倍,则划分后剩余的二维码图像部分作为一个颜色块;(1.2) divide the two-dimensional code image according to the color block, if the two-dimensional code image is not an integer multiple of the color block, then the remaining two-dimensional code image after division is used as a color block;
(1.3)以颜色块为单元随机填充不同颜色,生成三维码彩色图像。(1.3) The color block is randomly filled with different colors to generate a three-dimensional code color image.
优选地,如图3所示,步骤(2)包括:Preferably, as shown in Figure 3, step (2) includes:
(2.1)利用边过程围线追踪方法提取三维码图像的矢量轮廓数据;(2.1) Utilize the edge process perimeter tracking method to extract the vector contour data of the three-dimensional code image;
(2.2)根据矢量轮廓数据进行标刻生成标刻路径;(2.2) Marking according to the vector contour data to generate a marking path;
(2.3)生成的标刻路径按照三维码彩色图像中的颜色进行分类,获取分类存储信息。(2.3) The generated marking path is classified according to the color in the color image of the three-dimensional code, and the classified storage information is obtained.
优选地,生成标刻路径的方法包括轮廓填充法和螺旋追踪法;Preferably, the method for generating a marking path includes a contour filling method and a spiral tracing method;
如图3所示,轮廓填充法以扫描线为单元标刻,选取二维码图像的最外圈矢量轮廓,再对轮廓进行扫描线填充,直至生成扫描线式标刻路径;As shown in Figure 3, the contour filling method uses the scanning line as the unit marking, selects the outermost vector contour of the two-dimensional code image, and then fills the contour with scanning lines until the scanning line marking path is generated;
螺旋追踪法以圈为单元标刻,先提取二维码图像的最外圈矢量轮廓,将当前最外圈矢量轮廓的像素点变为背景色以更新二维码图像,再提取更新后二维码图像的最外圈矢量轮廓,直至二维码图像均为背景色,生成螺旋线式标刻路径。The spiral tracking method marks the circle as a unit, first extracts the outermost circle vector contour of the two-dimensional code image, changes the pixel points of the current outermost circle vector contour to the background color to update the two-dimensional code image, and then extracts the updated two-dimensional The outermost vector outline of the code image, until the two-dimensional code image is the background color, generating a spiral marking path.
实施例Example
(1)将二维码图像的黑色区域变为彩色,生成三维码彩色图像;(1) Change the black area of the two-dimensional code image into color to generate a three-dimensional code color image;
在黑白二维码图像上遍历整个图像获取可以组成图像黑色区域的单元块大小,根据单元块的大小定义颜色块的大小,颜色块的大小是单元块大小的整数倍,将整个黑白二维码图像按照颜色块的大小划分,如果二维码的图像大小不是颜色块的整数倍,则将剩余的区域看作一个颜色块,遍历整个二维码图像,将同一颜色块对应的黑色区域随机变成红、绿、蓝(R、G、B)三种颜色中的一种,白色区域保持不变,最终生成一幅随机的彩色三维码图像;Traverse the entire image on the black and white two-dimensional code image to obtain the size of the unit block that can form the black area of the image, define the size of the color block according to the size of the unit block, the size of the color block is an integer multiple of the size of the unit block, and convert the entire black and white two-dimensional code The image is divided according to the size of the color block. If the image size of the two-dimensional code is not an integer multiple of the color block, the remaining area is regarded as a color block, and the entire two-dimensional code image is traversed, and the black area corresponding to the same color block is randomly changed. One of the three colors of red, green, and blue (R, G, B), the white area remains unchanged, and finally a random color three-dimensional code image is generated;
通过设置颜色块的大小可以控制产生三维码彩色图像的颜色杂乱度,由于颜色信息的随机性,保证了三维码图像的随机性,使得三维码难以复制,提高了防伪的能力;By setting the size of the color block, the color clutter of the three-dimensional code color image can be controlled. Due to the randomness of the color information, the randomness of the three-dimensional code image is guaranteed, making it difficult to copy the three-dimensional code and improving the anti-counterfeiting ability;
二维码为QR码,在本实施例中,上述二维码可以是当前存在的任何类型的二维码,对于其具体类型不做限制;The two-dimensional code is a QR code. In this embodiment, the above-mentioned two-dimensional code can be any type of two-dimensional code that currently exists, and there is no limitation on its specific type;
(2)根据三维码彩色图像生成标刻路径,并按照颜色将标刻路径分类,获取分类存储信息;(2) Generate the marking path according to the color image of the three-dimensional code, and classify the marking path according to the color, and obtain the classified storage information;
利用边过程围线追踪方法提取二维码图像的矢量轮廓数据;进而获取标刻路径,具体如下:Use the edge process contour tracking method to extract the vector contour data of the two-dimensional code image; and then obtain the marking path, as follows:
在获取完二维码图像的最外圈轮廓后,将该轮廓的像素点变为背景色,再利用围线追踪方法在变换后的图像上取最外圈轮廓,依次重复上述操作,直到二维码图像中所有的像素点均变成背景色,可获取螺旋线式标刻路径;After obtaining the outermost contour of the two-dimensional code image, change the pixels of the contour into the background color, and then use the contour tracking method to obtain the outermost contour on the transformed image, and repeat the above operations in turn until two All the pixels in the two-dimensional code image become the background color, and the spiral marking path can be obtained;
如图3所示,在上述标刻路径的获取过程中,通过选择前景色获取不同颜色的区域对应的标刻路径,具体如下:选取绿色为前景色,则其他颜色的区域为背景色,获取绿色区域对应的标刻路径;选取红色为前景色,则其他颜色的区域为背景色,获取红色区域对应的标刻路径;选取蓝色为前景色,则其他颜色的区域为背景色,获取蓝色区域对应的标刻路径;As shown in Figure 3, in the process of obtaining the above marking path, the marking path corresponding to the area of different colors is obtained by selecting the foreground color, as follows: select green as the foreground color, and the area of other colors is the background color, and obtain The marking path corresponding to the green area; select red as the foreground color, then the other color areas are the background color, and obtain the marking path corresponding to the red area; select blue as the foreground color, then the other color areas are the background color, and obtain blue The marking path corresponding to the colored area;
(3)根据分类存储信息,采用激光器在多层防伪模块上标刻随机三维码;(3) According to the classified storage information, lasers are used to mark random three-dimensional codes on the multi-layer anti-counterfeiting module;
如图4所示,多层防伪模块的第一层材料为白色涂覆层;其第二层材料为绿色;其第三层材料为红色;其第四层材料为蓝色;在标刻过程中,通过改变二氧化碳激光器的PWM输出占空比,实时控制激光器的输出功率,大小不同的输出功率在多层防伪模块上相同时间里标刻出不同的深度,从而呈现不同的颜色;在标刻三维码中的绿色区域时,PWM输出占空比最小,使激光的输出功率可以标刻掉第一层的白色涂覆层,呈现出第二层的绿色;在标刻三维码中的红色区域时,增大PWM输出占空比,使其标刻的厚度大于第一层与第二层之和,但小于前三层之和,呈现出第三层的红色;在标刻三维码中的蓝色区域时,PWM输出占空比最大,使其标刻的厚度大于前三层之和,小于材料总厚度,呈现第四层的蓝色,在完成一遍加工路径后,就能获取随机的、彩色的、深浅不一的结构三维码;As shown in Figure 4, the first layer of material of the multi-layer anti-counterfeiting module is a white coating layer; its second layer of material is green; its third layer of material is red; its fourth layer of material is blue; Among them, by changing the PWM output duty cycle of the carbon dioxide laser, the output power of the laser is controlled in real time, and different output powers mark different depths on the multi-layer anti-counterfeiting module at the same time, thus presenting different colors; When marking the green area in the three-dimensional code, the PWM output duty cycle is the smallest, so that the output power of the laser can mark off the white coating layer of the first layer, showing the green color of the second layer; when marking the red area in the three-dimensional code When the PWM output duty cycle is increased, the marking thickness is greater than the sum of the first layer and the second layer, but less than the sum of the first three layers, showing the red color of the third layer; in marking the three-dimensional code In the blue area, the PWM output duty cycle is the largest, making the marked thickness greater than the sum of the first three layers and less than the total thickness of the material, showing the blue color of the fourth layer. After completing one processing path, you can get random , colorful, structured 3D codes in different shades;
综上所述,本发明提供的随机三维码的激光标刻方法,首先在黑白二维码图像的基础上添加随机的多种颜色生成三维码彩色图像,确保了三维码的随机性,保证了防伪的功能;再三维码彩色图像的基础上,根据颜色信息获取不同颜色对应的矢量标刻路径,作为分类存储信息;根据分类存储信息,采用激光器输出激光光束在多层防伪模块上标刻随机三维码;标刻时间一定时,根据接收的分类存储信息调制激光器的输出功率,或激光器输出功率一定时,根据接收的分类存储信息调节标刻时间,在完成一遍加工路径后可以快速在多层防伪模块上标刻出深浅不一、具有凹凸感的三维码,相对于传统机械加工极大地提高了加工效率。其中在标刻过程中,采用实时调制激光器的输出功率的方法比采用输出功率一定调节标刻时间的方法效率更高。To sum up, the laser marking method of random three-dimensional code provided by the present invention firstly adds random multiple colors on the basis of black and white two-dimensional code image to generate three-dimensional code color image, which ensures the randomness of three-dimensional code and guarantees Anti-counterfeiting function; on the basis of the color image of the three-dimensional code, according to the color information, the vector marking paths corresponding to different colors are obtained as classified storage information; according to the classified storage information, the laser output laser beam is used to mark randomly on the multi-layer anti-counterfeiting module Three-dimensional code; when the marking time is fixed, the output power of the laser is modulated according to the received classified storage information, or when the laser output power is constant, the marking time is adjusted according to the received classified storage information, and the processing path can be quickly processed in multiple layers The anti-counterfeiting module is marked with three-dimensional codes with different shades and a concave-convex feeling, which greatly improves the processing efficiency compared with traditional mechanical processing. In the marking process, the method of modulating the output power of the laser in real time is more efficient than the method of adjusting the marking time with a certain output power.
用螺旋追踪法生成的标刻路径以圈为单元标刻,轮廓填充法生成的标刻路径以扫描线为单元标刻,螺旋追踪法相比于轮廓填充法,标刻路程明显缩短,标刻效率可明显提升。The marking path generated by the spiral tracking method is marked in units of circles, and the marking path generated by the contour filling method is marked in units of scan lines. Compared with the contour filling method, the marking path of the spiral tracing method is significantly shortened, and the marking efficiency Can be significantly improved.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910581641.3A CN110348553B (en) | 2019-06-30 | 2019-06-30 | Laser marking method for random three-dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910581641.3A CN110348553B (en) | 2019-06-30 | 2019-06-30 | Laser marking method for random three-dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110348553A true CN110348553A (en) | 2019-10-18 |
CN110348553B CN110348553B (en) | 2021-01-26 |
Family
ID=68177273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910581641.3A Active CN110348553B (en) | 2019-06-30 | 2019-06-30 | Laser marking method for random three-dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110348553B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112276370A (en) * | 2020-11-27 | 2021-01-29 | 华中科技大学 | Three-dimensional code laser marking method and system based on spatial light modulator |
CN112388173A (en) * | 2020-11-05 | 2021-02-23 | 珠海格力智能装备有限公司 | Laser marking control method and device |
CN113399841A (en) * | 2021-06-16 | 2021-09-17 | 广东职业技术学院 | Three-dimensional drawing evaluation method and system based on laser engraving printer |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070279474A1 (en) * | 2004-04-26 | 2007-12-06 | Technology Transfer Service Corp. | Method for Forming 2-Dimensional Code by Laser Marking and Laser Marking Device |
US20140353381A1 (en) * | 2011-06-17 | 2014-12-04 | I-Property Holding Corp. | 3d laser coding in glass |
CN205302817U (en) * | 2015-12-14 | 2016-06-08 | 李峰 | Multilayer colour material of construction |
CN105787540A (en) * | 2016-02-01 | 2016-07-20 | 中国计量学院 | Fluorescence 3D code generating method, identifying method, identifying device and system |
CN205487103U (en) * | 2016-01-15 | 2016-08-17 | 李峰 | Random distribution's unsmooth anti -fake structure |
CN107092948A (en) * | 2017-05-16 | 2017-08-25 | 李峰 | A kind of anti-counterfeit structure and method for anti-counterfeit based on stereochemical structure three-dimension code |
CN206892906U (en) * | 2017-05-16 | 2018-01-16 | 李峰 | A kind of stereochemical structure three-dimension code and anti-counterfeit structure |
CN108664837A (en) * | 2018-05-11 | 2018-10-16 | 李峰 | Three-dimension code produces integrated system |
CN108694430A (en) * | 2018-05-11 | 2018-10-23 | 李峰 | Three-dimension code generates and analytic method |
CN109016907A (en) * | 2018-06-20 | 2018-12-18 | 深圳市科彩印务有限公司 | A kind of variable two-dimension code on line printing method |
CN109950162A (en) * | 2019-03-22 | 2019-06-28 | 中国电子科技集团公司第三十八研究所 | Promote the laser surface treatment method of pad ultrasonic bonding quality |
-
2019
- 2019-06-30 CN CN201910581641.3A patent/CN110348553B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070279474A1 (en) * | 2004-04-26 | 2007-12-06 | Technology Transfer Service Corp. | Method for Forming 2-Dimensional Code by Laser Marking and Laser Marking Device |
US20140353381A1 (en) * | 2011-06-17 | 2014-12-04 | I-Property Holding Corp. | 3d laser coding in glass |
CN205302817U (en) * | 2015-12-14 | 2016-06-08 | 李峰 | Multilayer colour material of construction |
CN205487103U (en) * | 2016-01-15 | 2016-08-17 | 李峰 | Random distribution's unsmooth anti -fake structure |
CN105787540A (en) * | 2016-02-01 | 2016-07-20 | 中国计量学院 | Fluorescence 3D code generating method, identifying method, identifying device and system |
CN107092948A (en) * | 2017-05-16 | 2017-08-25 | 李峰 | A kind of anti-counterfeit structure and method for anti-counterfeit based on stereochemical structure three-dimension code |
CN206892906U (en) * | 2017-05-16 | 2018-01-16 | 李峰 | A kind of stereochemical structure three-dimension code and anti-counterfeit structure |
CN108664837A (en) * | 2018-05-11 | 2018-10-16 | 李峰 | Three-dimension code produces integrated system |
CN108694430A (en) * | 2018-05-11 | 2018-10-23 | 李峰 | Three-dimension code generates and analytic method |
CN109016907A (en) * | 2018-06-20 | 2018-12-18 | 深圳市科彩印务有限公司 | A kind of variable two-dimension code on line printing method |
CN109950162A (en) * | 2019-03-22 | 2019-06-28 | 中国电子科技集团公司第三十八研究所 | Promote the laser surface treatment method of pad ultrasonic bonding quality |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112388173A (en) * | 2020-11-05 | 2021-02-23 | 珠海格力智能装备有限公司 | Laser marking control method and device |
CN112276370A (en) * | 2020-11-27 | 2021-01-29 | 华中科技大学 | Three-dimensional code laser marking method and system based on spatial light modulator |
CN113399841A (en) * | 2021-06-16 | 2021-09-17 | 广东职业技术学院 | Three-dimensional drawing evaluation method and system based on laser engraving printer |
CN113399841B (en) * | 2021-06-16 | 2023-03-14 | 广东职业技术学院 | Three-dimensional drawing evaluation method and system based on laser engraving printer |
Also Published As
Publication number | Publication date |
---|---|
CN110348553B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103390183B (en) | A kind of generation method of the anti-counterfeiting codes suitable for handset identity | |
CN110348553A (en) | A kind of laser index carving method of random three-dimensional code | |
US10783601B1 (en) | Digital watermarking and signal encoding with activable compositions | |
JP2021527347A (en) | Using the pointillism, Voronoi, and Delaunay methods to generate and read signal-carrying art. | |
CN101221616B (en) | Dynamic gray level picture card laser engraving production system and method | |
CN103390146B (en) | Method for generating dot matrix pattern capable of recording multiple-bit information | |
BR0113768B1 (en) | A data carrier comprising an engraved printed image and methods for transposing image motifs into linear structures and onto an engraved printing plate. | |
CN103700000A (en) | Code printing-free type fiber anti-counterfeiting method | |
WO2016119539A1 (en) | Preparation method for non-opaque relief sculpture, non-opaque relief sculpture and relief sculpture lamp | |
CN110322777B (en) | Anti-counterfeiting label and preparation method thereof | |
CN108694430B (en) | Three-dimensional code generation and analysis method | |
CN101954804B (en) | Frequency conversion screening anti-counterfeiting printing process | |
CN104156750B (en) | A kind of generation method of anti-fake label and its anti-fake label of generation | |
CN204215442U (en) | A kind of structure being suitable for mobile phone masses recognition anti-counterfeiting mark | |
CN103386829B (en) | A kind of endowed method that anti-counterfeiting codes are carried out using laser | |
CN103295045A (en) | Color logic discoloring two-dimensional code and generating method thereof | |
US20220388213A1 (en) | Marking methods and arrangements | |
CN108009616A (en) | One kind is new to have anti-fraud functional bar figure code and application process | |
CN103390184A (en) | Image information embedding method suitable for anti-fake codes identified through mobile phone | |
CN103434136A (en) | Method for copying inscription rubbing template by utilizing 3D printing | |
CN108766204A (en) | Anti-counterfeiting mark and method | |
CN110744202B (en) | Anti-counterfeiting and anti-unsealing method and system | |
WO2020251380A1 (en) | Method for validation of authenticity of an image present in an object, object with increased security level and method for preparation thereof, computer equipment, computer program and appropriate reading means | |
CN203966156U (en) | Anti-counterfeiting fiber identification | |
CN202995771U (en) | Novel composition device of using mobile phone to identify code |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200901 Address after: Building B, Zhuweitian Village Industrial Zone, Fenggang town, Dongguan City, Guangdong Province 523697 Applicant after: DONGGUAN EVER TECH LASER TECHNOLOGY Co.,Ltd. Applicant after: HANNAN TIAN JIAN ANTI-FORGERY SCIENCE&TTECHNOLOGY Co.,Ltd. Address before: 430074 Hubei Province, Wuhan city Hongshan District Luoyu Road No. 1037 Applicant before: HUAZHONG University OF SCIENCE AND TECHNOLOGY |
|
GR01 | Patent grant | ||
GR01 | Patent grant |