CN-121973554-A - Pipe joint code spraying method and equipment
Abstract
The invention discloses a pipe joint code spraying method and equipment, wherein a pipe joint is placed on a conveyor belt of pipe joint code spraying equipment, a camera is used for shooting the pipe joint below to obtain a standard pipe fitting picture, a computer is used for analyzing the standard pipe fitting picture to confirm a standard pipe fitting model and an anti-counterfeiting code position, the anti-counterfeiting code position is output, a nozzle of a laser code spraying device reaches an initial position, the camera is used for shooting the pipe joint one by one to obtain a picture of a piece to be sprayed, the computer is used for analyzing the picture of the piece to be sprayed, confirming the model of the piece to be sprayed, contrasting model differences, constructing a virtual position of the code spraying of the model of the piece to be sprayed, outputting the virtual position of the code spraying of the piece to be sprayed to the laser code spraying device, and the nozzle of the laser code spraying device is used for spraying the pipe joint corresponding to the position below.
Inventors
- Wang Leimiao
- LONG PAN
- JIN HU
- LV BINFENG
- ZHANG ZHIGUANG
Assignees
- 浙江中财管道科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251223
Claims (9)
- 1. The code spraying method for the pipe joint is characterized by comprising the following steps of: S1, placing a pipe joint on the upper surface of a conveyor belt (1) of pipe joint code spraying equipment, placing the pipe joint below a camera (2), and shooting the pipe joint below through the camera (2) to obtain a standard pipe fitting picture; S2, analyzing the standard pipe fitting picture through a computer (4), confirming the positions of the standard pipe fitting model and the anti-fake code (103), and outputting the positions of the anti-fake code (103) to enable a nozzle of the laser code spraying device (3) to reach an initial position; S3, starting a conveyor belt (1), and enabling workers to place the pipe fittings on the conveyor belt (1) one by one, wherein a camera (2) shoots the pipe fittings passing below one by one, so that pictures of the pipe fittings to be sprayed are obtained; s4, analyzing the picture of the piece to be sprayed through a computer (4), and confirming a piece model to be sprayed; S5, comparing the model differences, and constructing a virtual position of the code spraying of the model of the piece to be sprayed; s6, outputting the virtual position of the code spraying of the to-be-sprayed pipe piece model to the laser code spraying device (3) by the computer (4), and spraying the code on the pipe joint corresponding to the lower part by the nozzle of the laser code spraying device (3).
- 2. The pipe joint code spraying method according to claim 1, wherein in the step S2, the standard pipe fitting picture includes a shooting range (101), the shooting range (101) includes a first pipe joint area (102), a reference point P0 of the pipe joint area is determined, positions of the anti-counterfeiting code (103) and the reference point P0 are locked, and the anti-counterfeiting code (103) and the reference point P0 are integrated.
- 3. The code spraying method for a pipe joint according to claim 2, wherein in the step S2, the first pipe joint region (102) includes a plurality of right-angle end points, the plurality of right-angle end points are set to be P1, P2, P3, P4, P5, P6, a straight line connecting P1 and P6 in a counterclockwise direction is L1, a midpoint of an edge where P3 and P4 are located is perpendicular to the direction L1 to form L2, and an intersection point between L1 and L2 is P0.
- 4. A pipe joint code spraying method according to claim 3, wherein in step S2, the anti-counterfeiting code (103) is located in the pipe orifice area where P3 and P4 are located, and the center of the anti-counterfeiting code (103) is located on L2.
- 5. A pipe joint coding method according to claim 3, characterized in that in step S4, the second pipe joint region (104) in the picture of the piece to be sprayed is confirmed, and the second pipe joint region (104) is determined by the fixed point method in step S2, and the reference point P0 of the second pipe joint region (104) is determined.
- 6. The pipe joint code spraying method according to claim 5, wherein in step S5, the outer peripheral contours of the standard pipe fitting picture and the picture of the piece to be sprayed are overlapped, coordinate displacement of the datum point P0 from the standard pipe fitting picture to the picture of the piece to be sprayed is determined, moving directions and distances of the anti-counterfeiting code (103) and the datum point P0 are constructed, an offset angle between the standard pipe fitting picture and the L1 in the picture of the piece to be sprayed is recorded as θ1, an offset angle between the standard pipe fitting picture and the L2 in the picture of the piece to be sprayed is recorded as θ2, and the rotating directions and the rotating angles of the anti-counterfeiting code (103) and the whole datum point P0 are constructed.
- 7. The code spraying method for a pipe joint according to claim 6, wherein in step S5, the displacement and rotation of the spray head are simulated, the coordinate displacement in step S5 is obtained, the anti-fake code (103) and the reference point P0 in the standard pipe picture are moved according to the coordinate displacement, the standard pipe picture is rotated according to the offset angle θ1 to enable two L1 to coincide, the offset angle θ2 is 0 ° or 180 °, if θ2 is 0 °, the standard pipe picture does not need to be rotated any further, and if θ2 is 180 °, the standard pipe picture needs to be rotated by 180 °.
- 8. The method according to claim 1, wherein in step S2, except for the first standard pipe picture being manually taken and positioned, the subsequent standard pipe picture uses the previous picture of the pipe to be sprayed as the standard pipe picture.
- 9. The pipe joint code spraying equipment is used for realizing the pipe joint code spraying method according to any one of claims 1-8, and is characterized by comprising a conveyor belt (1), a camera (2), a laser code spraying device (3) and a computer (4), wherein the camera (2) and the laser code spraying device (3) are positioned in the conveying direction of the conveyor belt (1), the camera (2) and the laser code spraying device (3) are connected with the computer (4), and the computer (4) processes information of the camera (2) and the laser code spraying device (3).
Description
Pipe joint code spraying method and equipment Technical Field The invention relates to the technical field of pipe joint production equipment, in particular to a pipe joint code spraying method and equipment. Background In the existing production, in order to make the product anti-counterfeiting better, the anti-counterfeiting code is changed into a laser two-dimensional code from an original paper label, due to the particularity of the shape of pipe joints, some pipe joints belong to nonstandard products, such as Y-shaped tee joints, circular arc tee joints and reducing tee joints, the code can not be conveyed and printed through a main flow conveying mode, and secondly, the code printing position of the product is extremely limited, the code printing position is not customized and positioned, the code printing position can not be selected at will, the variety and the size are more, if each product adopts different fixtures and equipment, the cost consumption is larger, and therefore, a technical scheme is needed to solve the problems. Disclosure of Invention The invention aims to overcome the defects of the prior art, can solve the problems of high-speed accurate positioning coding of various products with abnormal shapes and random position angles, and provides a pipe joint coding method and equipment. In order to achieve the above purpose, the present invention adopts the following technical scheme: the invention discloses a pipe joint code spraying method, which comprises the following steps: S1, placing a pipe joint on the surface of a conveyor belt of pipe joint code spraying equipment, placing the pipe joint below a camera, and shooting the pipe joint below the camera to obtain a standard pipe fitting picture; S2, analyzing the standard pipe fitting picture through a computer, confirming the standard pipe fitting model and the anti-counterfeiting code position, and outputting the anti-counterfeiting code position to enable a nozzle of the laser code spraying device to reach an initial position; s3, starting a conveyor belt, and enabling workers to place the pipe fittings on the conveyor belt one by one, wherein a camera shoots the pipe fittings passing through the lower part one by one to obtain pictures of the pipe fittings to be sprayed; s4, analyzing the picture of the pipe fitting to be sprayed through a computer, and confirming a model of the pipe fitting to be sprayed; S5, comparing the model differences, and constructing a virtual position of the code spraying of the model of the piece to be sprayed; s6, outputting the virtual position of the code spraying of the to-be-sprayed pipe piece model to the laser code spraying device by the computer, and spraying the code on the pipe joint corresponding to the lower part by the spray head of the laser code spraying device. Further, in step S2, the standard pipe fitting picture includes a photographing range, the photographing range includes a first pipe joint region, a reference point P0 of the pipe joint region is determined, positions of the anti-counterfeiting code and the reference point P0 are locked, and the anti-counterfeiting code and the reference point P0 form a whole. Further, in step S2, the first pipe joint region includes a plurality of right-angle end points, the plurality of right-angle end points are set as P1, P2, P3, P4, P5, P6, a straight line connecting P1 and P6 is L1, a midpoint of a side where P3 and P4 are located is perpendicular to the direction L1 to form L2, and an intersection point between L1 and L2 is P0. Further, in step S2, the security code is located in the pipe orifice area where P3 and P4 are located, and the center of the security code is located on L2. Further, in step S4, the second pipe joint region in the picture of the piece to be sprayed is confirmed, and the fixed-point method in step S2 is used to determine P1', P2', P3', P4', P5', P6' of the second pipe joint region, and further determine the reference point P0' of the second pipe joint region. Further, in step S5, the outer peripheral contours of the standard pipe fitting picture and the to-be-sprayed pipe picture are overlapped, coordinate displacement of the reference point P0 from the standard pipe fitting picture to the to-be-sprayed pipe picture is determined, a moving direction and a moving distance of the anti-counterfeiting code and the reference point P0 are constructed, an offset angle between the standard pipe fitting picture and L1 in the to-be-sprayed pipe picture is recorded as θ1, an offset angle between the standard pipe fitting picture and L2 in the to-be-sprayed pipe picture is recorded as θ2, and a rotating direction and an angle of the anti-counterfeiting code and the reference point P0 are integrally constructed. Further, in step S5, the displacement and rotation of the nozzle are simulated, the coordinate displacement in step S5 is obtained, the anti-counterfeiting code and the reference point P0 in the standard pipe fitting pict