Vacuum cup steel bottom laser marking method and system based on visual guidance and storage medium
By establishing coordinate system mapping relationship and visual guidance algorithm, fully automated laser marking of steel bottom of thermos cups is achieved, solving the problems of waste of costs and poor equipment compatibility caused by manual loading and unloading, and improving production efficiency and pass rate , realize mass production and cost reduction and efficiency improvement.
Patent Information
- Application Number
- CN202411115791.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-03-08
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-12
AI Technical Summary
In the existing flight marking technology, manual loading and unloading of materials has resulted in a large amount of labor costs, making it difficult to achieve mass production, and poor equipment compatibility and cannot meet actual production needs.
By establishing the mapping relationship between the robot coordinate system and the feeding camera coordinate system and the mapping relationship between the laser coordinate system and the visual positioning camera coordinate system, the fully automated thermal cup steel bottom laser marking is achieved by using visual guidance algorithm and template matching algorithm, and automatically loading the thermal cup materials and marking to reduce manual intervention.
It realizes fully automated laser marking without manual alignment, improves production efficiency and detection efficiency, reduces costs, improves product qualification rate, and truly realizes mass production and cost reduction and efficiency improvement.
Smart Images

Figure CN118926710A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of on-the-fly marking, and in particular to a method, system and storage medium for laser marking a steel bottom of a thermos cup based on vision guidance. Background Art
[0002] The development of the thermos cup production industry is now mature, and with the continuous improvement of people's living standards, static marking has made great progress in recent years with the gradual maturity of laser marking technology. It is a marking method that uses high-energy-density lasers to partially irradiate the workpiece, vaporizing the surface material or causing chemical changes such as color changes, thereby leaving a permanent mark.
[0003] However, static marking requires manual placement of the thermos cup steel bottom on the fixture, visual alignment through the red bar light, and manual adjustment of the marking position before starting marking. The laser marking position is related to the quality (defects) of the steel bottom, and the pass rate of manual marking is around 99.2%, resulting in a large number of steel bottoms being scrapped. In order to avoid the above problems, a flying marking technology was proposed, which uses industrial vision instead of human eyes to achieve laser marking.
[0004] In the prior art, Zhuang Jianrong, Yang Xiongjie and others put products in batches on the assembly line, and then transfer them to the bottom of the galvanometer and the marking camera through the assembly line. After the marking camera takes a picture of the product, the program in the computer host analyzes and captures the marking area, and transmits the capture result to the laser, and the galvanometer is used to laser mark the designated area. This type of product can only be marked with characters, and it is difficult to effectively determine the defects of the marked characters, which requires a lot of manpower for re-inspection. In addition, this type of product is manually loaded and unloaded, and cannot be loaded and unloaded in batches, which also affects the industrial production efficiency and cannot meet the mass production requirements. In addition, the computing performance is not very ideal, and it is only used for the production of products that do not require very high CT.
[0005] Wang Xu and Wang Chao proposed a lightweight flying marking device. It reduces the weight of the entire marking machine by using lightweight profiles for the base and the outer shell of the coordinate measuring machine, making it lighter to use, easier to carry and move, and the chassis set on the base can better support the base and is also easy to fold up. It uses universal wheels to move, which is more labor-saving.
[0006] The existing flight marking technology has complex software configuration and simple hardware. It only uses the PLC controller to trigger the camera and take pictures of the product for laser marking. It is difficult to determine the defects of the marked characters, and additional personnel are required to check the marked characters. It is inconvenient to use and wastes a lot of manpower and material resources. In addition, the existing flight marking equipment can only produce a fixed type of product, does not have the ability to change models, and has poor equipment compatibility, which cannot meet the needs of actual production. Finally, manual loading and unloading wastes a lot of labor costs, makes it difficult to achieve mass production, and cannot fundamentally liberate manpower and achieve full automation. Summary of the invention
[0007] The present invention provides a method, system and storage medium for laser marking of a thermos cup steel bottom based on vision guidance, so as to solve the technical problems that the existing on-the-fly marking is carried out manually for loading and unloading, which wastes a lot of manpower costs and is difficult to achieve mass production.
[0008] The technical solution provided by the present invention is as follows:
[0009] An object of the present invention is to provide a method for laser marking a steel bottom of a thermos cup based on vision guidance, the method comprising the following steps:
[0010] S1, establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system;
[0011] S2, placing the steel bottom of the thermos cup in a disorderly manner on the conveyor belt of the assembly line;
[0012] S3, the loading camera captures the image of the first thermos cup steel bottom on the conveyor belt of the assembly line, and obtains the center coordinates and angle of the first thermos cup steel bottom image through a template matching algorithm;
[0013] S4, the loading camera converts the center coordinates and angle of the first thermos cup steel bottom image acquired into the robot coordinate system through the first mapping relationship, and sends it to the robot;
[0014] S5. In the robot coordinate system, the robot stacks the disordered steel bottoms of the thermos cups on the conveyor belt of the assembly line in a uniform direction according to the central coordinates and angle of the first thermos cup steel bottom image;
[0015] S6, the visual positioning camera captures the steel bottom image of the second thermos cup stacked in the same direction on the conveyor belt of the assembly line, and obtains the center coordinates of the steel bottom gravure circle of the steel bottom image of the second thermos cup through the visual guidance positioning algorithm;
[0016] S7, the visual positioning camera converts the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image obtained into the laser coordinate system through the second mapping relationship, and sends it to the laser;
[0017] S8. In the laser coordinate system, the laser marks the steel bottoms of the thermos cups stacked in the same direction on the conveyor belt of the assembly line according to the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
[0018] In a preferred embodiment, in step S1, a first mapping relationship between the robot coordinate system and the loading camera coordinate system is established by the following method:
[0019] S11, adjusting the robot to the positions of the five first calibration points of the nine-point calibration plate in turn, and extracting the coordinates of the five first calibration points in the robot coordinate system;
[0020] S12, the loading camera shoots five first calibration points of the nine-point calibration plate, and extracts the coordinates of the five first calibration points in the loading camera coordinate system;
[0021] S13, calculating the first mapping transformation matrix between the coordinates of the five first calibration points in the robot coordinate system and the coordinates of the five first calibration points in the loading camera coordinate system, and establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system.
[0022] In a preferred embodiment, in step S12, the center coordinates of the five first calibration points are obtained using a Blob analysis algorithm.
[0023] In a preferred embodiment, in step S1, a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system is established by the following method:
[0024] S14, driving the laser to mark a nine-dot pattern, and extracting the coordinates of nine second calibration points in the nine-dot pattern in the laser coordinate system;
[0025] S15, the visual positioning camera photographs the marked nine-point pattern, and extracts the coordinates of the nine second calibration points in the nine-point pattern in the visual positioning camera coordinate system;
[0026] S16, calculating the second mapping transformation matrix of the coordinates of the nine second calibration points in the laser coordinate system and the coordinates of the nine second calibration points in the visual positioning camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system.
[0027] In a preferred embodiment, in step S1, before establishing the second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system, the laser is subjected to distortion correction to eliminate the laser marking distortion error.
[0028] In a preferred embodiment, the laser is distorted by:
[0029] Drive the laser to mark a nine-dot pattern, and measure the relative coordinates of the four corner points of the grid in the nine-dot pattern relative to the central cross origin;
[0030] The measured relative coordinates and the theoretical coordinates of laser marking are converted in sequence to obtain a laser correction file, which is used to eliminate the laser marking distortion error.
[0031] In a preferred embodiment, in step S3, in the process of obtaining the center coordinates of the first thermos cup steel bottom image by the template matching algorithm, the center coordinates of the first thermos cup steel bottom image are obtained by using the Blob analysis algorithm;
[0032] Furthermore, the angle of the first thermos cup steel bottom image is set to 0°.
[0033] In a preferred embodiment, in step S6, the center coordinates of the steel bottom gravure circle of the steel bottom image of the second thermos cup are obtained by a visual guidance positioning algorithm, including:
[0034] S61, extracting the gravure edge of the gravure circle of the steel bottom of the second thermos cup steel bottom image;
[0035] S62, performing regional pixel enhancement on the concave printing edge of the concave printing circle of the steel bottom of the second thermos cup steel bottom image;
[0036] S63. Use the RANSAC algorithm and caliper algorithm tools to find the circle enclosed by the gravure edge of the steel bottom gravure circle of the second thermos cup steel bottom image after regional pixel enhancement, and determine the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
[0037] Another object of the present invention is to provide a system for laser marking of the steel bottom of a thermos flask based on vision guidance, wherein the system is used to execute a method for laser marking of the steel bottom of a thermos flask based on vision guidance provided by the present invention.
[0038] Another object of the present invention is to provide a computer storage medium, wherein the computer storage medium is used to store computer execution instructions, and the computer execution instructions are used to execute a method for laser marking the steel bottom of a thermos cup based on vision guidance provided by the present invention.
[0039] The above technical solution of the present invention has at least the following beneficial effects compared with the prior art:
[0040] The present invention provides a method, system and storage medium for laser marking on the steel bottom of a thermos cup based on vision guidance. There is no need to align a jig for the direction of characters on the steel bottom. Full automation of laser marking can be achieved by placing batch products on a conveyor belt at any angle and in any posture. There is no need to set algorithm parameters, the cost is low, the detection efficiency is high, and the use is convenient. From the results, the performance of the present invention is improved by 1 / 3 compared with manual marking and manual quality inspection, which truly achieves cost reduction and efficiency improvement.
[0041] The present invention provides a method, system and storage medium for laser marking the steel bottom of a thermos cup based on vision guidance, which can adaptively find the center of the steel bottom, so that the system can adapt to steel bottoms of different specifications, better meet customer needs, improve production efficiency and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 The present invention is a flow chart of a method for laser marking a thermos cup steel bottom based on vision guidance.
[0044] Figure 2 It is a schematic diagram of the arrangement of the feeding camera of the present invention.
[0045] Figure 3 It is a schematic diagram of the arrangement of the visual positioning camera of the present invention.
[0046] Figure 4 It is a schematic diagram of the steel bottom of the thermos cup of the present invention being placed in a disorderly manner on the conveyor belt of the assembly line.
[0047] Figure 5 It is a schematic diagram of the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image obtained by the visual positioning camera of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one", "one" or "the" do not indicate a quantitative limitation, but indicate the existence of at least one. Words such as "include" or "comprise" mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0050] It should be noted that the terms "up", "down", "left", "right", "front", "back", etc. used in the present invention are only used to indicate relative position relationships. When the absolute position of the object being described changes, the relative position relationship may also change accordingly.
[0051] Combination Figure 1 According to an embodiment of the present invention, a method for laser marking a steel bottom of a thermos cup based on vision guidance is provided, comprising the following method steps:
[0052] Step S1, establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system.
[0053] The present invention adopts a feeding camera and a robot to carry out feeding. Figure 2 As shown, a loading camera 1 is arranged above the conveyor belt 4 of the assembly line. The loading camera 1 adopts a 5-megapixel black-and-white industrial camera as an imaging system. The loading camera 1 is equipped with a first high-definition industrial lens 11. An open hole parallel light source 2 is arranged below the loading camera 1.
[0054] Reflective wallpaper 3 is pasted on the side cabinet wall of the assembly line conveyor belt 4 to increase the uniformity of the lighting of the assembly line conveyor belt 4.
[0055] The present invention uses a laser and a visual positioning camera to visually locate the center of the steel bottom G of the thermos cup. Figure 3 As shown, a visual positioning camera 5 is arranged above the conveyor belt 4 of the assembly line. The visual positioning camera 5 uses a 5 million black and white industrial camera as an imaging system, and the visual positioning camera 5 is equipped with a second high-definition industrial lens 51. A low-angle changeable light source 6 is arranged below the visual positioning camera 5 to clearly highlight the concave circular feature of the steel bottom G of the thermos cup and form a clear contrast with the surrounding background pixels.
[0056] The robot and laser of this embodiment are not shown in the figure, and the robot technicians in this field can select the robot according to their needs, such as a mechanical arm. The laser is preferably a galvanometer laser.
[0057] According to an embodiment of the present invention, a first mapping relationship between the robot coordinate system and the loading camera coordinate system is established, and a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system is established.
[0058] According to an embodiment of the present invention, a first mapping relationship between the robot coordinate system and the loading camera coordinate system is established by the following method:
[0059] Step S11, adjust the robot to the positions of the five first calibration points of the nine-point calibration plate in sequence, and extract the coordinates of the five first calibration points in the robot coordinate system.
[0060] Step S12: The loading camera 1 photographs the five first calibration points of the nine-point calibration plate, and extracts the coordinates of the five first calibration points in the loading camera coordinate system.
[0061] Furthermore, the loading camera 1 photographs the five first calibration points of the nine-point calibration plate, and uses the Blob analysis algorithm (Blob Analysis connected domain analysis) to obtain the center coordinates of the five first calibration points, and extracts the coordinates of the five first calibration points in the loading camera coordinate system.
[0062] Step S13, calculating the first mapping transformation matrix of the coordinates of the five first calibration points in the robot coordinate system and the coordinates of the five first calibration points in the loading camera coordinate system, and establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system.
[0063] Specifically, the first mapping relationship between the robot coordinate system and the loading camera coordinate system is established as follows:
[0064] ,
[0065] in, , are the coordinates of the five first calibration points in the loading camera coordinate system, , are the coordinates of the five first calibration points in the robot coordinate system, H is the first mapping transformation matrix, i=1, 2, 3, 4, 5.
[0066] According to an embodiment of the present invention, before establishing the second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system, the laser is subjected to distortion correction to eliminate the marking distortion error of the laser.
[0067] Specifically, the laser is distorted by the following method:
[0068] The laser is driven to mark a nine-dot pattern, and the relative coordinates of the four corner points of the grid in the nine-dot pattern relative to the central cross origin are measured.
[0069] The measured relative coordinates and the theoretical coordinates of laser marking are converted in sequence to obtain a laser correction file, which is used to eliminate the laser marking distortion error.
[0070] According to an embodiment of the present invention, a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system is established by the following method:
[0071] Step S14, driving the laser to mark a nine-dot pattern, and extracting the coordinates of the nine second calibration points in the nine-dot pattern in the laser coordinate system.
[0072] Step S15: The visual positioning camera 5 photographs the marked nine-point pattern, and extracts the coordinates of the nine second calibration points in the nine-point pattern in the visual positioning camera coordinate system.
[0073] Step S16, calculating the second mapping transformation matrix of the coordinates of the nine second calibration points in the laser coordinate system and the coordinates of the nine second calibration points in the visual positioning camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system.
[0074] Step S2: placing the thermos cup steel bottom G in a disorderly manner on the conveyor belt 4 of the assembly line.
[0075] like Figure 4 As shown, in one embodiment, a schematic diagram of the warm cup steel bottom G being placed in a disorderly manner on the conveyor belt 4 of the assembly line.
[0076] Step S3, the loading camera 1 captures the image of the first thermos cup steel bottom on the assembly line conveyor belt 4, and obtains the center coordinates and angle of the first thermos cup steel bottom image through a template matching algorithm.
[0077] The present invention obtains the center coordinates and angle of the first thermos cup steel bottom image through a template matching algorithm, and roughly locates the thermos cup steel bottom G.
[0078] Specifically, the loading camera 1 takes a picture of the thermos cup steel bottom G on the assembly line conveyor belt 4 every 3 seconds to obtain a first thermos cup steel bottom image.
[0079] The loading camera 1 matches the first thermos cup steel bottom image with the template through a template matching algorithm to obtain the center coordinates and angle of the first thermos cup steel bottom image.
[0080] In the process of matching the first thermos cup steel bottom image with the template by the template matching algorithm, since the feature of the label "YETI" to be marked is not obvious, it will be mismatched or cannot be matched. Therefore, in the process of obtaining the center coordinates of the first thermos cup steel bottom image by the template matching algorithm, the present invention uses the Blob analysis algorithm (Blob Analysis connected domain analysis) to obtain the center coordinates of the first thermos cup steel bottom image, and sets the angle of the first thermos cup steel bottom image to 0°
[0081] Step S4, the loading camera 1 converts the center coordinates and angle of the first thermos cup steel bottom image acquired into the robot coordinate system through a first mapping relationship, and sends it to the robot.
[0082] Step S5: In the robot coordinate system, the robot stacks the disordered thermos cup steel bottoms G on the conveyor belt of the assembly line in a uniform direction according to the central coordinates and angle of the first thermos cup steel bottom image.
[0083] The present invention sets the angle of the first thermos cup steel bottom image to 0°, and the robot only stacks the cups in a row in a unified direction according to the center coordinates of the first thermos cup steel bottom image, without ensuring the direction of the label "YETI" to be marked.
[0084] In some embodiments, the robot stacks the disordered thermos cup steel bottoms G on the assembly line conveyor belt 4 in a unified direction on three conveying channels (the thermos cup steel bottoms G are stacked into three rows in a unified direction).
[0085] Step S6, the visual positioning camera 5 captures the image of the steel bottom of the second thermos cup stacked in the same direction on the conveyor belt 4 of the assembly line, and obtains the center coordinates of the steel bottom gravure circle of the steel bottom image of the second thermos cup through the visual guidance positioning algorithm.
[0086] The present invention obtains the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image through a vision-guided positioning algorithm, and accurately positions the steel bottom G of the thermos cup.
[0087] Specifically, the visual positioning camera 5 photographs the thermos cup steel bottoms G stacked in the same direction and transported from the upstream of the assembly line conveyor belt 4 to obtain a second thermos cup steel bottom image.
[0088] The visual positioning camera 5 obtains the center coordinates of the steel bottom gravure circle of the steel bottom image of the second thermos cup through the visual guidance positioning algorithm, including:
[0089] Step S61, extracting the concave edge of the steel bottom concave circle of the steel bottom image of the second thermos cup.
[0090] The steel bottom concave printing circle of the present invention refers to the concave printing circle formed on the steel bottom G of the thermos cup. Figure 5 As shown, a concave circle B is formed on the steel bottom G of the thermos cup.
[0091] The visual positioning camera 5 captures the steel bottom G of the thermos cup to obtain the steel bottom image of the second thermos cup. The concave printing edge of the steel bottom concave printing circle B of the steel bottom image of the second thermos cup is extracted from the steel bottom image of the second thermos cup.
[0092] Step S62: perform regional pixel enhancement on the concave edge of the steel bottom concave circle B of the steel bottom image of the second thermos cup.
[0093] Since the concave printing circle B of the thermos cup steel bottom G is too shallow, the feature is not obvious. In order to solve the problem that the feature of the concave printing circle B is not obvious, the edge of the concave printing circle B is regionally pixel enhanced.
[0094] Specifically, local cosine calculation is performed on the edge of the gravure circle B, the pixel value of the edge of the gravure circle B is enhanced, and the pixels near the edge of the gravure circle B are weakened.
[0095] Step S63, using the RANSAC algorithm and caliper algorithm tools, find the circle surrounded by the gravure edge of the steel bottom gravure circle B of the second thermos cup steel bottom image after regional pixel enhancement, and determine the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
[0096] Specifically, the RANSAC algorithm (Random Sample Consensus) and caliper algorithm tools are used to fit the circle surrounded by the gravure edge of the steel bottom gravure circle B of the second thermos cup steel bottom image after regional pixel enhancement, and the center of this circle is taken as the steel bottom gravure circle center O of the second thermos cup steel bottom image, thereby determining the steel bottom gravure circle center coordinates of the steel bottom gravure circle center O of the second thermos cup steel bottom image.
[0097] Step S7, the visual positioning camera 5 converts the center coordinates of the steel bottom gravure circle of the acquired second thermos cup steel bottom image into the laser coordinate system through a second mapping relationship, and sends it to the laser.
[0098] Step S8, in the laser coordinate system, the laser marks the steel bottoms G of the thermos cups stacked in the same direction on the conveyor belt 4 of the assembly line according to the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
[0099] That is, the laser marks the thermos cup steel bottoms G stacked in the same direction on the assembly line conveyor belt 4 according to the label "YETI" to be marked according to the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
[0100] Under the same time complexity, the present invention can completely replace manual work, replace manual feeding, manual calibration of marking position and manual quality inspection, and improve industrial efficiency and yield rate. The present invention uses enhanced gravure edge traces to accurately locate gravure points, first screens points and then fits the gravure circle through RANSAC, which reduces the probability of laser marking failure, brings great convenience to the automated steel bottom marking operation, and promotes the development of automated steel bottom marking.
[0101] The present invention has been verified through experiments to be able to reduce the investment in labor costs, significantly improve operating efficiency, reduce costs and increase efficiency, and also reduce the hazards of laser operating positions.
[0102] According to an embodiment of the present invention, a system for laser marking a thermos flask steel bottom based on vision guidance is provided, which is used to execute a method for laser marking a thermos flask steel bottom based on vision guidance provided by the present invention.
[0103] According to an embodiment of the present invention, a computer storage medium is provided for storing computer-executable instructions. The computer-executable instructions are used to execute a method for laser marking a steel bottom of a thermos cup based on visual guidance provided by the present invention.
[0104] There are a few points to note:
[0105] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0106] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0107] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0108] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for laser marking the steel bottom of a thermos cup based on vision guidance, characterized in that: The method comprises the following steps: S1, establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system; S2, placing the steel bottom of the thermos cup in a disorderly manner on the conveyor belt of the assembly line; S3, the loading camera captures the image of the first thermos cup steel bottom on the conveyor belt of the assembly line, and obtains the center coordinates and angle of the first thermos cup steel bottom image through a template matching algorithm; S4, the loading camera converts the center coordinates and angle of the first thermos cup steel bottom image acquired into the robot coordinate system through the first mapping relationship, and sends it to the robot; S5. In the robot coordinate system, the robot stacks the disordered steel bottoms of the thermos cups on the conveyor belt of the assembly line in a uniform direction according to the central coordinates and angle of the first thermos cup steel bottom image; S6, the visual positioning camera captures the steel bottom image of the second thermos cup stacked in the same direction on the conveyor belt of the assembly line, and obtains the center coordinates of the steel bottom gravure circle of the steel bottom image of the second thermos cup through the visual guidance positioning algorithm; S7, the visual positioning camera converts the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image obtained into the laser coordinate system through the second mapping relationship, and sends it to the laser; S8. In the laser coordinate system, the laser marks the steel bottoms of the thermos cups stacked in the same direction on the conveyor belt of the assembly line according to the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
2. The method according to claim 1, characterized in that In step S1, a first mapping relationship between the robot coordinate system and the loading camera coordinate system is established by the following method: S11, adjusting the robot to the positions of the five first calibration points of the nine-point calibration plate in turn, and extracting the coordinates of the five first calibration points in the robot coordinate system; S12, the loading camera shoots five first calibration points of the nine-point calibration plate, and extracts the coordinates of the five first calibration points in the loading camera coordinate system; S13, calculating the first mapping transformation matrix between the coordinates of the five first calibration points in the robot coordinate system and the coordinates of the five first calibration points in the loading camera coordinate system, and establishing a first mapping relationship between the robot coordinate system and the loading camera coordinate system.
3. The method according to claim 2, characterized in that In step S12, the center coordinates of the five first calibration points are obtained using a Blob analysis algorithm.
4. The method according to claim 1, characterized in that: In step S1, a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system is established by the following method: S14, driving the laser to mark a nine-dot pattern, and extracting the coordinates of nine second calibration points in the nine-dot pattern in the laser coordinate system; S15, the visual positioning camera photographs the marked nine-point pattern, and extracts the coordinates of the nine second calibration points in the nine-point pattern in the visual positioning camera coordinate system; S16, calculating the second mapping transformation matrix of the coordinates of the nine second calibration points in the laser coordinate system and the coordinates of the nine second calibration points in the visual positioning camera coordinate system, and establishing a second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system.
5. The method according to claim 1, characterized in that In step S1, before establishing the second mapping relationship between the laser coordinate system and the visual positioning camera coordinate system, the laser is calibrated for distortion to eliminate the marking distortion error of the laser.
6. The method according to claim 5, characterized in that The laser is calibrated by the following method: Drive the laser to mark a nine-dot pattern, and measure the relative coordinates of the four corner points of the grid in the nine-dot pattern relative to the central cross origin; The measured relative coordinates and the theoretical coordinates of laser marking are converted in sequence to obtain a laser correction file, which is used to eliminate the laser marking distortion error.
7. The method according to claim 1, characterized in that In step S3, in the process of obtaining the center coordinates of the first thermos cup steel bottom image by the template matching algorithm, the center coordinates of the circle of the first thermos cup steel bottom image are obtained by using the Blob analysis algorithm; Furthermore, the angle of the first thermos cup steel bottom image is set to 0°.
8. The method according to claim 1, characterized in that In step S6, the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image are obtained by using a vision-guided positioning algorithm, including: S61, extracting the gravure edge of the gravure circle of the steel bottom of the second thermos cup steel bottom image; S62, performing regional pixel enhancement on the concave printing edge of the concave printing circle of the steel bottom of the second thermos cup steel bottom image; S63. Use the RANSAC algorithm and caliper algorithm tools to find the circle enclosed by the gravure edge of the steel bottom gravure circle of the second thermos cup steel bottom image after regional pixel enhancement, and determine the center coordinates of the steel bottom gravure circle of the second thermos cup steel bottom image.
9. A vision-guided laser marking system for the steel bottom of a thermos cup, characterized in that: The system is used to perform the method according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that: The computer storage medium is used to store computer-executable instructions, and the computer-executable instructions are used to execute the method of any one of claims 1 to 8.
Citation Information
Cited By
A vision-based automated robotic marking workstation
CN123103199A
