The invention discloses a
laser marking method for a random three-dimensional code, and belongs to the field of
laser processing. The
laser marking method comprises the following steps: changing a black region of a two-dimensional code image into a color to generate a three-dimensional code
color image; generating marking paths according to the three-dimensional code
color image, and classifying the marking paths according to colors to obtain classified storage information; and marking a random three-dimensional code on the multi-layer anti-counterfeiting module by adopting a laser according to the classified storage information, wherein the multi-layer anti-counterfeiting module is formed by superposing materials with different colors, and the colors of the materials include the color types in the three-dimensional code
color image. According to the invention, the marking time is fixed; and the output power of the laser is modulated according to the received classified storage information, or when the output power of the laser is fixed, the marking time is adjusted according to the received classified storage information, and three-dimensional codes with different depths and a concave-convex feeling can be quickly marked on the multi-layer anti-counterfeiting module after one
processing path is completed, so that the
processing efficiency is greatly improved.