The invention discloses a
pipe joint code spraying method and equipment, and the method comprises the steps: placing a
pipe joint on a conveying belt of the
pipe joint code spraying equipment, photographing the pipe joint below through a camera, obtaining a standard
pipe fitting picture, analyzing the standard
pipe fitting picture through a computer, confirming a standard
pipe fitting model and an anti-counterfeiting code position, and outputting the anti-counterfeiting code position. Enabling a
nozzle of the
laser code spraying device to reach an initial position, enabling a camera to
shoot pipe joints one by one to obtain a picture of a to-be-sprayed pipe fitting, analyzing the picture of the to-be-sprayed pipe fitting through a computer, confirming a model of the to-be-sprayed pipe fitting, comparing model differences, and constructing a
virtual position of code spraying of the model of the to-be-sprayed pipe fitting; and the
virtual position of the to-be-sprayed pipe fitting model is output to the
laser code spraying device, a spray head of the
laser code spraying device sprays codes on the corresponding pipe joint passing through the lower portion, and high-speed accurate positioning code printing can be conducted on various special-shaped products with random position angles.