Cup body welding seam positioning device based on machine vision, automatic system and method
Through machine vision technology and automation systems, line scan cameras and servo motors are used to realize automatic positioning and polishing of cup body welds, which solves the problems of manual dependence and low precision in the existing technology, improves production efficiency and precision, and is suitable for industrial applications. .
Patent Information
- Application Number
- CN202410655313.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
AI Technical Summary
The existing cup body weld polishing system relies on manual line drawing and color mark sensor detection, which has low efficiency and low accuracy and cannot meet industrial standards.
A cup body weld positioning device based on machine vision is used, a line scan camera and a line scan light source are used to obtain a line scan image of the cup body, and a servo motor and fixture turntable are combined to achieve automated positioning and polishing.
It realizes the automatic positioning and polishing of the cup body weld, improves the detection speed and accuracy, reduces manual participation, and meets the needs of industrialization.
Smart Images

Figure CN118565339A
Abstract
Description
Technical Field
[0001] The invention relates to a cup body weld polishing process, and in particular to a cup body weld positioning device, an automated system and a method based on machine vision. Background Art
[0002] The processing method of the thermos cup body adopts the coil welding process. The polishing process corresponding to the cup body weld of the thermos cup body is different from that of other parts of the cup body, and requires greater polishing force, that is, the relative position between the cup body weld and the polishing belt should be guaranteed. At present, the existing cup body weld polishing system is semi-automatic, and its technical solution includes: step S1, the operator draws a line with a marker on the cup body weld position. Step S2, the cup body is placed by a robotic arm, and then clamped by a fixture turntable and driven to rotate. Step S3, the position of the cup body weld is detected by a color code sensor, and then the position of the cup body weld is calibrated. The disadvantages are: 1. Manual line drawing is inefficient; 2. The color code sensor detection takes a long time, which affects the rhythm of the assembly line, and the recognition accuracy is low, which cannot meet the industrialization standard. Summary of the invention
[0003] The purpose of the present invention is to solve the problem in the prior art that the positioning of the cup body weld requires manual participation, and to provide a novel cup body weld positioning device, automation system and method based on machine vision.
[0004] In order to achieve the above-mentioned purpose, the present invention provides a technical solution: a cup body weld positioning device based on machine vision is used to visually locate the cup body weld of the cup body. The cup body weld positioning device includes: a line scan camera. The scanning line of the line scan camera on the cup body is parallel to the cup body weld of the cup body. The line scan camera is used to line scan the cup body that is rotating to obtain a line scan image of the cup body.
[0005] As a preferred solution of the cup body weld positioning device based on machine vision, it also includes: a line scanning light source, the light source line of the line scanning light source on the cup body covers the scanning line of the line scanning camera on the cup body. The line scanning light source is used to provide stable lighting to avoid the influence of the external environment.
[0006] As a preferred solution of the cup body weld positioning device based on machine vision, the line scan camera and the line scan light source are both fixed on the outside of the cup body, and the line scan camera and the line scan light source are both relative to the outer peripheral surface of the cup body. The camera center of the line scan camera and the light source center of the line scan light source are both aligned with the center line of the cup body, and the line scan camera and the line scan light source are staggered at a certain angle in the circumferential direction.
[0007] Another technical solution provided by the present invention: a cup body weld polishing automation system, which is composed of a cup body weld polishing device and the cup body weld positioning device. The cup body weld polishing device includes: a fixture turntable and a weld polishing belt. The fixture turntable is used to clamp and drive the cup body to rotate. The weld polishing belt is used to polish the cup body weld of the cup body.
[0008] Another technical solution provided by the present invention: A method for an automated system for polishing a cup body weld, comprising: the fixture turntable drives the cup body to rotate for the first time, during which the line scan camera performs a line scan on the cup body to obtain a line scan image of the cup body. Based on the line scan image of the cup body, the position of the cup body weld is determined. In combination with the position of the cup body weld and the position of the weld polishing zone, the fixture turntable drives the cup body to rotate again, so that the cup body weld rotates in front of the weld polishing zone.
[0009] As a preferred solution of the method of the automatic system for polishing the weld seam of the cup body, the cup body weld seam polishing device further comprises: a servo motor. The servo motor is used to control the rotation of the fixture turntable. The servo motor is pulse controlled, and the line scan camera is set to line trigger mode. The pulse signal provided by the servo motor is also used as a trigger signal for the line scan camera.
[0010] As a preferred solution of the method of the automated system for polishing the cup body weld, the calculation formula for the number of pulse signals provided by the servo motor is: P=V×F×R×N, the calculation formula for the rotation angle corresponding to a single pulse signal provided by the servo motor is: θ×P=360°×N, and the calculation formula for the angle of the cup body weld position is: Angle=θ×y; wherein P is the number of pulse signals of the servo motor, V is the rotation speed of the servo motor, F is the frequency multiple of the servo motor, N is the number of revolutions of a single cup body rotation, θ is the rotation angle corresponding to a single pulse signal, Angle is the angle of the cup body weld position, and y is the number of rows of the cup body weld in the cup body line scan image.
[0011] Compared with the prior art, the beneficial effects of the present invention are at least that: the cup body weld positioning device is used to visually position the cup body weld, without the need for manual line marking, thereby realizing the automatic positioning of the cup body weld. Moreover, compared with the traditional color code sensor detection, the cup body weld positioning device has the advantages of short detection time and high recognition accuracy. The cup body weld positioning device is combined with the cup body weld polishing device to realize the automatic polishing of the cup body weld.
[0012] In addition to the technical problems solved by the present invention, the technical features that constitute the technical solution, and the beneficial effects brought about by the technical features of the technical solution described above, other technical problems that can be solved by the present invention, other technical features included in the technical solution, and the beneficial effects brought about by these technical features will be further described in detail in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a schematic structural diagram of a cup body according to an embodiment of the present invention.
[0014] Figure 2 It is a top view of the structure of the automatic system for polishing the weld seam of the cup body according to an embodiment of the present invention.
[0015] Figure 3 It is a structural front view of the automatic system for polishing the weld seam of a cup body according to an embodiment of the present invention.
[0016] Figure 4 It is a control relationship diagram of the automatic system for polishing the weld seam of the cup body according to an embodiment of the present invention.
[0017] Figure 5 Schematic diagram of a line scan image of a cup body according to an embodiment of the present invention.
[0018] Figure 6 It is a flow chart of a method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The present invention is further described in detail below by means of specific embodiments in combination with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0020] See also Figure 1 , the figure shows a cup body 1. The cup body 1 has a cup body weld 10. The number of the cup body weld 10 is 1. The cup body weld 10 extends along the height direction of the cup body 1. In this embodiment, the cup body 1 is a thermos cup body. In other embodiments, the cup body 1 is a cup body other than a thermos cup body made using a coiling process.
[0021] See also Figure 2 , Figure 3 and Figure 4, the application scenario of the cup body weld positioning device is the cup body weld polishing process. The cup body weld positioning device is used to visually locate the cup body weld 10 of the cup body 1. The cup body weld positioning device has a line scan camera 2, a line scan light source 3 and a visual industrial control computer 4, etc. The scanning line of the line scan camera 2 on the cup body 1 is parallel to the cup body weld 10 of the cup body 1. The line scan camera 2 is used to line scan the cup body 1 that is rotating to obtain a line scan image of the cup body 1 (see Figure 5 ). The light source line of the line scan light source 3 on the cup body 1 covers the scanning line of the line scan camera 2 on the cup body 1. The line scan light source 3 is used to provide stable lighting to avoid the influence of the external environment. The visual industrial computer 4 is respectively connected to the line scan camera 2 and the line scan light source 3 for communication. The visual industrial computer 4 locates the number of rows of the cup body weld 10 in the cup body line scan image through an algorithm, and then determines the position of the cup body weld 10.
[0022] During specific implementation, the line scan camera 2 and the line scan light source 3 are both fixed on the outside of the cup body 1. The line scan camera 2 and the line scan light source 3 are both relative to the outer peripheral surface of the cup body 1. Furthermore, the camera center of the line scan camera 2 and the light source center of the line scan light source 3 are both aligned with the midline of the cup body 1 (i.e., the 1 / 2 position of the cup height), and the line scan camera 2 and the line scan light source 3 are staggered at a certain angle in the circumferential direction so as not to affect each other. Furthermore, the line scan light source 3 uses a white strip light source.
[0023] See also Figure 2 , Figure 3 and Figure 4 The application scenario of the cup body weld polishing automation system is the cup body weld polishing process. The cup body weld polishing automation system includes: a cup body weld polishing device and the cup body weld positioning device.
[0024] The cup body weld polishing device is used for polishing the cup body weld 10 of the cup body 1. The cup body weld polishing device comprises a fixture turntable 5, a servo motor 6, a host computer 7 and a weld polishing belt 8. The fixture turntable 5 is used to clamp and drive the cup body 1 to rotate. The fixture turntable 5 and the cup body 1 have a common rotating shaft. The host computer 7 is respectively connected to the visual industrial computer 4, the servo motor 6 and the weld polishing belt 8 for communication. The host computer 7 can control the fixture turntable 5 through the servo motor 6 to drive the cup body 1 to rotate.
[0025] In a specific implementation, the weld polishing belt 8 is fixed on the outside of the cup body 1. The weld polishing belt 8 is relative to the outer peripheral surface of the cup body 1. When the cup body weld 10 rotates in front of the weld polishing belt 8, the weld polishing belt 8 polishes the cup body weld 10.
[0026] The servo motor 6 is pulse controlled. The line scan camera 2 is set to a line trigger mode. The pulse signal provided by the servo motor 6 is also used as a trigger signal for the line scan camera 2. Each time the line scan camera 2 receives a pulse signal, it scans a corresponding line of pixels.
[0027] The calculation formula for the number of pulse signals provided by the servo motor 6 is as follows: P=V×F×R×N. Among them, P is the number of pulse signals of the servo motor 6; V is the rotation speed of the servo motor 6, in RPM; F is the frequency multiplication factor, which is the frequency multiplication coefficient of the pulse signal; R is the reduction ratio, which represents the proportional relationship between the output shaft speed of the servo motor 6 and the driving shaft speed of the servo motor 6, and R is a constant value determined by the internal structure of the servo motor 6; N is the number of turns of a single cup body rotation. By setting the rotation speed V of the servo motor 6 and the number of turns N of a single cup body rotation, the final output pulse signal number P can be obtained.
[0028] The calculation formula of the rotation angle corresponding to a single pulse signal provided by the servo motor 6 (i.e., the rotation angle of the cup body 1) is as follows: θ×P=360°×N. Wherein, θ is the rotation angle corresponding to a single pulse signal, P is the number of pulse signals of the servo motor 6, and N is the number of turns of a single cup body rotation.
[0029] Since the number of pulse signals of the servo motor 6 is consistent with the number of image rows of the cup body line scan image, after locating the number of rows of the cup body weld 10 in the cup body line scan image, the position of the cup body weld 10 can be determined, and the calculation formula is as follows: Angle=θ×y, wherein Angle is the position of the cup body weld 10, θ is the rotation angle corresponding to a single pulse signal, and y is the number of rows of the cup body weld 10 in the cup body line scan image. Combined with the position of the cup body weld 10 and the position of the weld polishing belt 8 (the positions of the line scan camera 2 and the weld polishing belt 8 are fixed), the host computer 7 calculates the corresponding compensation angle and controls the servo motor 6 accordingly. The servo motor 6 rotates the cup body 1 through the fixture turntable 5 to rotate the cup body weld 10 to the front of the weld polishing belt 8, waiting for the weld polishing belt 8 to polish it.
[0030] See also Figure 6, the method of the automatic system for polishing the weld of the cup body includes: step S1, the servo motor 6 drives the cup body 1 to rotate for the first time through the fixture turntable 5, during which the line scan camera 2 performs a line scan on the cup body 1 to obtain a line scan image of the cup body 1. Step S2, based on the line scan image of the cup body 1, determine the position of the cup body weld 10. Step S3, in combination with the position of the cup body weld 10 and the position of the weld polishing belt 8, the servo motor 6 drives the cup body 1 to rotate again through the fixture turntable 5, so that the cup body weld 10 rotates in front of the weld polishing belt 8. In specific implementation: The host computer 7 sends an initialization signal to the line scan camera 2. After receiving the initialization signal, the line scan camera 2 enters initialization.
[0031] The host computer 7 sends a start signal to the servo motor 6. After receiving the start signal, the servo motor 6 starts.
[0032] The servo motor 6 drives the cup body 1 to make the initial self-rotation through the fixture turntable 5 according to the pulse signal. During this period, the servo motor 6 also sends the pulse signal to the line scan camera 2. The line scan camera 2 makes the cup body 1 rotate according to the pulse signal line scan. It should be noted that the initial self-rotation needs to complete at least one full circle to ensure that the obtained line scan image of the cup body must contain the cup body weld 10. It is best to rotate for one full circle for the initial self-rotation.
[0033] After the pulse signal ends, the line scan camera 2 generates a line scan image of the cup body with a number of lines equal to the number of pulse signals.
[0034] After receiving the cup body line scan image, the visual industrial computer 4 locates the row number of the cup body weld 10 in the cup body line scan image through an algorithm, that is, determines the position of the cup body weld 10 .
[0035] In combination with the position of the cup body weld 10 and the position of the weld polishing zone 8 , the host computer 7 calculates the compensation angle and sends it to the servo motor 6 .
[0036] The servo motor 6 controls the fixture turntable 5 to rotate the cup body again according to the compensation angle, so that the cup body weld 10 rotates in front of the weld polishing belt 8 and waits for the weld polishing belt 8 to polish it.
[0037] The automated method does not require manual intervention (such as line marking) and can realize the automation of weld calibration and weld polishing. After testing, the pass rate of weld polishing using the automated method reached 99.6%, with strong compatibility, suitable for weld calibration of cups of different models, short detection time, high accuracy, meeting industrial needs, and broad market prospects.
[0038] The above only expresses the implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.
Claims
1. A cup body weld positioning device based on machine vision, used for visually positioning the cup body weld of a cup body, characterized in that: The cup body weld positioning device includes: a line scan camera, wherein the scanning line of the line scan camera on the cup body is parallel to the cup body weld of the cup body, and the line scan camera is used to line scan the cup body that is rotating to obtain a line scan image of the cup body.
2. The cup body weld positioning device based on machine vision according to claim 1, characterized in that: Also includes: A line scanning light source, wherein the light source line of the line scanning light source on the cup body covers the scanning line of the line scanning camera on the cup body.
3. The cup body weld positioning device based on machine vision according to claim 2 is characterized in that: The line scan camera and the line scan light source are both fixed on the outside of the cup body, and the line scan camera and the line scan light source are both relative to the outer peripheral surface of the cup body.
4. The cup body weld positioning device based on machine vision according to claim 3 is characterized in that: The camera center of the line scan camera and the light source center of the line scan light source are both aligned with the center line of the cup body, and the line scan camera and the line scan light source are staggered at a certain angle in the circumferential direction.
5. The cup body weld positioning device based on machine vision according to claim 1, characterized in that: The cup body is a thermos cup body.
6. Automatic system for polishing the weld seam of the cup body, characterized by: It is composed of a cup body weld polishing device and a cup body weld positioning device as described in any one of claims 1 to 5, wherein the cup body weld polishing device comprises: a fixture turntable and a weld polishing belt, wherein the fixture turntable is used to clamp and drive the cup body to rotate, and the weld polishing belt is used to polish the cup body weld of the cup body.
7. The cup body weld polishing automation system according to claim 6, characterized in that: The weld polishing belt is fixed on the outside of the cup body, and the weld polishing belt is opposite to the outer peripheral surface of the cup body.
8. The method of the cup body weld polishing automation system according to claim 6 or 7, characterized in that: include: The fixture turntable drives the cup body to make an initial rotation, during which the line scan camera performs a line scan on the cup body to obtain a line scan image of the cup body; based on the line scan image of the cup body, the position of the cup body weld is determined; based on the position of the cup body weld and the position of the weld polishing belt, the fixture turntable drives the cup body to rotate again, so that the cup body weld rotates in front of the weld polishing belt.
9. The method of the cup body weld polishing automation system according to claim 8, characterized in that: The cup body weld polishing device further includes: a servo motor, which is used to control the rotation of the fixture turntable. The servo motor uses pulse control, the line scan camera is set to a line trigger mode, and the pulse signal provided by the servo motor also serves as a trigger signal for the line scan camera.
10. The method of the cup body weld polishing automation system according to claim 9, characterized in that: The calculation formula for the number of pulse signals provided by the servo motor is: P=V×F×R×N, the calculation formula for the rotation angle corresponding to a single pulse signal provided by the servo motor is: θ×P=360°×N, and the calculation formula for the angle of the cup body weld is: Angle=θ×y; wherein, P is the number of pulse signals of the servo motor, V is the rotation speed of the servo motor, F is the frequency multiple of the servo motor, N is the number of circles of a single cup body rotation, θ is the rotation angle corresponding to a single pulse signal, Angle is the angle of the cup body weld, and y is the number of rows of the cup body weld in the cup body line scan image.
