Glass gluing method, glass gluing device, electronic equipment and storage medium

By acquiring and processing the glass contour point cloud, and combining the process model signals to generate the glue coating path, the problem of high accuracy requirements for different types of glass in the existing technology is solved, and the high precision, ease of use and versatility of glass glue coating are achieved. .

CN113223029BActive Publication Date: 2024-08-23MECH MIND ROBOTICS TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110422148.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-20
Publication Date
2024-08-23
Estimated Expiration
2041-04-20

AI Technical Summary

Technical Problem

Existing glass gluing technology has high accuracy requirements for different types of glass, requiring trajectory points and registration templates to be taught in advance, resulting in poor ease of use, flexibility and versatility.

Method used

By obtaining the contour point cloud of the glass to be coated, mapping it to a two-dimensional plane, combining the process model signal to generate a gluing path, and generating gluing track point information on the path, which is sent to the robot for gluing, realizing the gluing of any type of glass. High-precision glue application.

Benefits of technology

It improves the ease of use, flexibility and versatility of glass gluing. It can automatically generate glass gluing track points of any size, realize high-precision gluing of glass contours of any size, and generate corresponding coatings according to different process models. Glue path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113223029B
    Figure CN113223029B
Patent Text Reader

Abstract

The present application discloses a glass gluing method, a glass gluing device, an electronic device and a computer-readable storage medium. The glass gluing method comprises: obtaining a contour point cloud of the edge of the glass to be glued; mapping the contour point cloud to a two-dimensional plane to obtain contour points; based on the contour points, generating a gluing path for the glass to be glued in combination with a process model signal; generating gluing trajectory point information on the gluing path, and sending the gluing trajectory point information to a robot to glue the glass to be glued. In this way, the shape and position of the glass to be glued can be accurately identified, and glass gluing trajectory points of any model and size can be automatically generated, thereby achieving high-precision gluing of glass contours of any specifications and sizes, thereby improving the ease of use, flexibility and versatility of glass gluing. In addition, since the gluing path is generated in combination with the process model signal, the corresponding gluing path can be generated according to different process models so that different process models of gluing can be achieved on the glass to be glued.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and more specifically, to a glass gluing method, a glass gluing device, an electronic device, and a computer-readable storage medium. Background Art

[0002] Glass gluing requires high precision. If the precision is not enough, the glue may overflow to the inside or outside. In the related art, the general gluing method needs to teach the gluing trajectory points for different types of glass in advance, and requires that the position and rotation of each type of incoming glass be fixed or the registration template of each type of glass be collected in advance, and glue is applied according to the model type and the trajectory points taught in advance. However, the above-mentioned gluing method needs to teach the trajectory points for different types of glass in advance, and the position and rotation of the incoming glass need to be fixed or the registration templates for different types need to be collected in advance, which greatly reduces the ease of use, flexibility and versatility of glass gluing. Summary of the invention

[0003] Embodiments of the present application provide a glass gluing method, a glass gluing device, an electronic device, and a computer-readable storage medium.

[0004] The glass gluing method of the embodiment of the present application includes: obtaining a contour point cloud of the edge of the glass to be glued; mapping the contour point cloud to a two-dimensional plane to obtain contour points; generating a gluing path for the glass to be glued based on the contour points and in combination with a process model signal; generating gluing trajectory point information on the gluing path, and sending the gluing trajectory point information to a robot to glue the glass to be glued.

[0005] In some embodiments, generating the gluing path of the glass to be glued based on the contour points in combination with a process model signal includes: receiving the process model signal; generating the gluing path based on the contour points in combination with the process model signal.

[0006] In certain embodiments, the gluing path of the glass to be glued is generated based on the contour points in combination with a process model signal, including: when the process model signal is a preset process model signal, generating the gluing path based on the contour points and a preset process algorithm; when the process model signal is not the preset process model signal, processing the contour points to obtain corner points, and generating the gluing path in combination with the contour points and the corner points.

[0007] In certain embodiments, the step of combining the contour points and the corner points to generate the gluing path includes: when the number of the corner points is less than 2, generating the gluing path based on the contour points and the preset process algorithm; when the number of the corner points is greater than or equal to 2, determining each edge segment based on the corner points, and generating the gluing path by combining the contour points and each edge segment.

[0008] In some embodiments, the combining of the contour points and the edge segments to generate the gluing path includes: dividing the edge segments into special edge segments and non-special edge segments; performing at least one of the following operations on the edge segments: retaining all edge segments, retaining only the special edge segments, retaining only the non-special edge segments, extending or shortening the special edge segments; and combining the contour points and the operated edge segments to generate the gluing path.

[0009] In some embodiments, dividing the edge segments into special edge segments and non-special edge segments includes: acquiring a set position; dividing the edge segments at the set position into the special edge segments and dividing the other edge segments into the non-special edge segments.

[0010] The method of obtaining the contour point cloud of the edge of the glass to be coated with glue comprises: obtaining point cloud data of the glass to be coated with glue collected by a visual sensor; performing point cloud filtering and outlier removal on the point cloud data to obtain a point cloud model of the glass to be coated with glue; and obtaining the contour point cloud according to the point cloud model.

[0011] In some embodiments, mapping the contour point cloud to a two-dimensional plane to obtain contour points includes: performing orthogonal projection on the contour point cloud to map the contour point cloud to a two-dimensional plane to obtain the contour points.

[0012] In some embodiments, the method of generating a coating path for the glass to be coated based on the contour points and in combination with a process model signal includes: based on the contour points, performing noise removal and smoothing on each edge at a sub-pixel level; and performing straight line fitting on each edge of the contour described by the result of noise removal and smoothing.

[0013] In some embodiments, the performing straight-line fitting on each edge of the contour described by the result after noise removal and smoothing includes: determining a contour point cloud corresponding to the result; determining a target contour point whose Z-axis coordinate of the corresponding contour point cloud is not zero based on the Z-axis coordinate of the contour point cloud corresponding to the result; and performing straight-line fitting on each edge of the contour described by the target contour point.

[0014] In some embodiments, generating the gluing trajectory point information on the gluing path includes: generating the gluing trajectory point information on the gluing path according to inherent properties of the robot and an initial posture of the robot.

[0015] In some embodiments, the gluing trajectory point information is generated on the gluing path according to the inherent properties of the robot and the initial position of the robot, including: determining the corners and straight lines in the gluing path; setting the gluing trajectory points at the corners and the straight lines with corresponding densities according to the gluing rate and movement speed of the robot; determining the movement order of the gluing trajectory points according to the initial position of the robot to obtain the gluing trajectory point information.

[0016] In some embodiments, the gluing trajectory point information further includes: normal information corresponding to the contour point.

[0017] The glass gluing device of the embodiment of the present application includes a first acquisition module, a second acquisition module, a first generation module, a second generation module and a sending module. The first acquisition module is used to acquire the contour point cloud of the edge of the glass to be glued; the second acquisition module is used to map the contour point cloud to a two-dimensional plane to obtain contour points; the first generation module is used to generate the gluing path of the glass to be glued based on the contour points and in combination with the process model signal; the second generation module is used to generate gluing track point information on the gluing path; the sending module is used to send the gluing track point information to the robot to glue the glass to be glued.

[0018] The electronic device of the embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the glass coating method of any of the above embodiments is implemented.

[0019] The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the glass glue coating method of any of the above embodiments is implemented.

[0020] The glass gluing method, glass gluing device, electronic device and computer-readable storage medium of the embodiment of the present application can obtain the contour point cloud of the edge of the glass to be glued, and map the contour point cloud to a two-dimensional plane to obtain contour points. Then, based on the contour points and in combination with the process model signal, the gluing path of the glass to be glued can be generated, the gluing trajectory point information is generated on the gluing path, and the gluing trajectory point information is sent to the robot to glue the glass to be glued. That is, the shape and position of the glass to be glued can be accurately identified, and the glass gluing trajectory points of any model and size can be automatically generated, so as to achieve high-precision gluing of the glass contour of any specification and size, which greatly improves the ease of use, flexibility and versatility of glass gluing. In addition, since the gluing path is generated in combination with the process model signal, the corresponding gluing path can be generated according to different process models so that different process models of gluing can be achieved on the glass to be glued.

[0021] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0023] Figure 1 is a schematic flow chart of a glass glue coating method according to certain embodiments of the present application;

[0024] Figure 2 is a schematic diagram of a glass glue coating device according to certain embodiments of the present application;

[0025] Figure 3 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;

[0026] Figure 4 and Figure 5 is a schematic flow chart of a glass glue coating method according to certain embodiments of the present application;

[0027] Figure 6 is a process schematic diagram of a glass glue coating method according to certain embodiments of the present application;

[0028] Figure 7 and Figure 8 It is a scene schematic diagram of a glass glue coating method according to certain embodiments of the present application;

[0029] Figures 9 to 11 It is a schematic flow chart of a glass gluing method according to an embodiment of the present application;

[0030] Fig.12 It is a connection diagram of an electronic device and a computer-readable storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described in detail below, and the embodiments of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0032] See also Figure 1 The glass glue coating method of the embodiment of the present application includes:

[0033] Step 01: Obtain the contour point cloud of the edge of the glass to be coated;

[0034] Step 02: Map the contour point cloud to a two-dimensional plane to obtain contour points;

[0035] Step 03: Generate the gluing path of the glass to be glued based on the contour points and combined with the process model signal;

[0036] Step 04: Generate glue trajectory point information on the glue coating path, and send the glue coating trajectory point information to the robot to glue the glass to be glued.

[0037] See also Figure 2 The glass gluing device 100 of the embodiment of the present application includes a first acquisition module 10, a second acquisition module 20, a first generation module 30, a second generation module 40 and a sending module 50. The glass gluing method of the present application can be implemented by the glass gluing device 100 of the embodiment of the present application, wherein step 01 can be implemented by the first acquisition module 10, step 02 can be implemented by the second acquisition module 20, step 03 can be implemented by the first generation module 30, and step 04 can be implemented by the second generation module 40 and the sending module 50, that is, the first acquisition module 10 is used to obtain the contour point cloud of the edge of the glass to be glued. The second acquisition module 20 is used to map the contour point cloud to a two-dimensional plane to obtain contour points. The first generation module 30 is used to generate a gluing path for the glass to be glued based on the contour points and in combination with the process model signal. The second generation module 40 is used to generate glue track point information on the glue path. The sending module 50 is used to send the glue track point information to the robot to glue the glass to be glued.

[0038] See also Figure 3The electronic device 1000 of the embodiment of the present application includes a memory 200, a processor 300, and a computer program stored in the memory 200 and executable on the processor 300. When the processor 300 executes the computer program, the glass gluing method of the embodiment of the present application is implemented. In this way, the glass gluing method of the embodiment of the present application can be implemented by the electronic device 1000 of the embodiment of the present application, wherein step 01, step 02, step 03, and step 04 can all be implemented by the processor 300, that is, the processor 300 can be used to: obtain the contour point cloud of the edge of the glass to be glued; map the contour point cloud to a two-dimensional plane to obtain contour points; based on the contour points, generate a gluing path for the glass to be glued in combination with a process model signal; generate gluing trajectory point information on the gluing path, and send the gluing trajectory point information to the robot to glue the glass to be glued.

[0039] The processor 300 may refer to a driver board. The driver board may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0040] In the related art, the gluing of glass requires high precision. If the precision is not enough, the glue may overflow to the inside or outside. In the related art, the general gluing method needs to teach the gluing trajectory points for different types of glass in advance, and requires that the position and rotation of each type of incoming glass be fixed or the registration template of each type of glass be collected in advance, and glue is applied according to the model type and the trajectory points taught in advance. However, the above-mentioned gluing method needs to teach the trajectory points for different types of glass in advance, and the position and rotation of the incoming glass need to be fixed or the registration templates for different types need to be collected in advance, which greatly reduces the ease of use, flexibility and versatility of glass gluing.

[0041] The glass gluing method of the embodiment of the present application can obtain the contour point cloud of the edge of the glass to be glued, and map the contour point cloud to a two-dimensional plane to obtain contour points. Then, based on the contour points and in combination with the process model signal, the gluing path of the glass to be glued can be generated, and the gluing trajectory point information is generated on the gluing path, and the gluing trajectory point information is sent to the robot to glue the glass to be glued. That is, the shape and position of the glass to be glued can be accurately identified, and the glass gluing trajectory points of any model and size can be automatically generated, so as to achieve high-precision gluing of the glass contour of any specification and size, which greatly improves the ease of use, flexibility and versatility of glass gluing. In addition, since the gluing path is generated in combination with the process model signal, the corresponding gluing path can be generated according to different process models so that different process models of gluing can be achieved on the glass to be glued.

[0042] The glass glue coating method of the embodiment of the present application can be implemented by the glass glue coating device 100 of the embodiment of the present application, and can also be implemented by the electronic device 1000 of the embodiment of the present application. The electronic device 1000 of the embodiment of the present application can be a terminal device configured with a memory 200, a processor 300, and a computer program stored in the memory 200 and executable on the processor 300. For example, the electronic device 1000 can include a computer, a smart phone, a tablet computer, or other terminal devices.

[0043] In certain embodiments, see Figure 4 , step 03 comprises the steps of:

[0044] Step 031: receiving a process model signal;

[0045] Step 032: Generate a gluing path based on the contour points and combined with the process model signal.

[0046] In some embodiments, the first generation module 30 includes a first receiving unit and a first generating unit, step 031 can be implemented by the first receiving unit, and step 032 can be implemented by the first generating unit, that is, the first receiving unit is used to receive the process model signal. The first generating unit is used to generate the glue coating path based on the contour point and the process model signal.

[0047] In some embodiments, the electronic device 1000 includes a processor 300. Step 031 and step 032 can be implemented by the processor 300, that is, the processor 300 is used to receive a process model signal; and generate a glue coating path based on the contour points and the process model signal.

[0048] Specifically, in some embodiments, the process model signal may be input by a user or may be preset. The process model signal may include multiple types, so that the process model signal may be received and the gluing path may be generated based on the contour points and in combination with the process model signal.

[0049] In certain embodiments, see Figure 5 , step 03 also includes:

[0050] Step 033: when the process model signal is a preset process model signal, a gluing path is generated based on the contour points and the preset process algorithm;

[0051] Step 034: When the process model signal is not a preset process model signal, the contour points are processed to obtain corner points, and the gluing path is generated by combining the contour points and the corner points.

[0052] In some embodiments, the first generation module 30 includes a second generation unit and a third generation unit, step 033 can be implemented by the second generation unit, and step 034 can be implemented by the third generation unit, that is, the second generation unit is used to generate a glue coating path based on contour points and a preset process algorithm when the process model signal is a preset process model signal. The third generation unit is used to process contour points to obtain corner points when the process model signal is not a preset process model signal, and generate a glue coating path by combining contour points and corner points.

[0053] In some embodiments, the electronic device 1000 includes a processor 300. Step 033 and step 034 can be implemented by the processor 300, that is, the processor 300 is used to generate a gluing path based on contour points and a preset process algorithm when the process model signal is a preset process model signal; when the process model signal is not a preset process model signal, process the contour points to obtain corner points, and generate a gluing path by combining the contour points and the corner points.

[0054] Specifically, in some embodiments, the process model signal may be a preset process model signal or a non-preset process model signal. Figure 6 , the preset process model is Figure 6 For example, the process model signal is the preset process model signal, and the preset process model signal is Figure 6 Process 1 in the example generates a gluing path based on contour points and a preset process algorithm. The preset process algorithm can be a shrinking algorithm based on contour points to generate a circle of trajectory points around them. The trajectory points are the gluing path. The preset process algorithm is a shrinking algorithm. The shrinking methods include morphological erosion method and vertical translation shrinking method along local tangent. The morphological erosion method can highly retain the contour point shape, and the vertical translation shrinking method along the local tangent can make each local translation different distances. Please refer to Figure 6 , Figure 6Process 2, process 3 and process 4 in the figure are all non-preset processes. When the process model signal is not a preset process model signal, the contour points are processed to obtain corner points, and the gluing path is generated by combining the contour points and the corner points. Specifically, the corner points refer to the points of interest that can be specifically detected. In some embodiments, the contour points can be processed by the Harris corner point detection algorithm to obtain the corner points. In some embodiments, the corner points can also be determined by the shape of the contour points. Please refer to Figure 7 When the shape of the contour points is a standard right-angled rectangle or a non-right-angled rectangle, the four corner points can be determined by the points closest to the vertices of the circumscribed rectangle. Figure 8 ,When the shape of the contour points is irregular, it is necessary to process the contour points through the Harris corner detection algorithm to obtain the corner points.

[0055] In certain embodiments, see Fig. 9 , combine contour points and corner points to generate a glue path, including:

[0056] Step 0341: when the number of corner points is less than 2, a gluing path is generated based on the contour points and a preset process algorithm;

[0057] Step 0342: When the number of corner points is greater than or equal to 2, each edge segment is determined according to the corner points, and a gluing path is generated by combining the contour points and each edge segment.

[0058] In some embodiments, the first generation module 30 includes a fourth generation unit and a fifth generation unit, step 0341 can be implemented by the fourth generation unit, and step 0342 can be implemented by the fifth generation unit, that is, the fourth generation unit is used to generate a gluing path based on contour points and a preset process algorithm when the number of corner points is less than 2. The fifth generation unit is used to determine each edge segment according to the corner points when the number of corner points is greater than or equal to 2, and generate a gluing path in combination with the contour points and each edge segment.

[0059] In some embodiments, the electronic device 1000 includes a processor 300. Step 0341 and step 0342 can be implemented by the processor 300, that is, the processor 300 is used to generate a gluing path based on contour points and a preset process algorithm when the number of corner points is less than 2; when the number of corner points is greater than or equal to 2, determine each edge segment according to the corner points, and generate a gluing path in combination with the contour points and each edge segment.

[0060] Specifically, in some embodiments, when the number of corner points is less than 2, that is, when the corner points are 0 or 1, the gluing path is generated based on the contour points and the preset process algorithm. When the number of corner points is less than 2, the edge segments cannot be determined based on the corner points, so the gluing path can be generated based on the contour points and the shrinking processing algorithm. When the number of corner points is greater than or equal to 2, each edge segment is determined based on the corner points, and the gluing path is generated in combination with the contour points and each edge segment.

[0061] In certain embodiments, see Fig.10 , combining contour points and individual edge segments to generate a glue path, including:

[0062] Step 0343: Divide each edge segment into special edge segments and non-special edge segments;

[0063] Step 0344: performing at least one of the following operations on the edge segments: retaining all edge segments, retaining only special edge segments, retaining only non-special edge segments, and extending or shortening special edge segments;

[0064] Step 0345: Combine the contour points and the operated edge segments to generate the glue path.

[0065] In some embodiments, the first generation module 30 includes a first division unit, a first operation unit, and a sixth generation unit. Step 0343 can be implemented by the first division unit, step 0344 can be implemented by the first operation unit, and step 0345 can be implemented by the sixth generation unit, that is, the first division unit is used to divide each edge segment into a special edge segment and a non-special edge segment. The first operation unit is used to perform at least one of the following operations on the edge segment: retain all edge segments, retain only special edge segments, retain only non-special edge segments, and extend or shorten special edge segments. The sixth generation unit is used to generate a glue coating path in combination with the contour points and the operated edge segments.

[0066] In some embodiments, the electronic device 1000 includes a processor 300. Step 0343, step 0344, and step 0345 can all be implemented by the processor 300, that is, the processor 300 is used to divide each edge segment into a special edge segment and a non-special edge segment; perform at least one of the following operations on the edge segment: retain all edge segments, retain only special edge segments, retain only non-special edge segments, extend or shorten special edge segments; and generate a glue coating path by combining the contour points and the operated edge segments.

[0067] Specifically, in some embodiments, each edge segment can be divided into a special edge segment and a non-special edge segment. The special edge segment can be a part of the edge segment. The special edge segment and the non-special edge segment can be factory-set custom defaults or manually set by the user, which is not limited here. Figure 6 , it can be considered Figure 6 The right edge in the middle can be a special segment, and the rest of the edges are non-special edge segments. At least one of the following operations can be performed based on the required edge segments: retain all edge segments, retain only special edge segments, retain only non-special edge segments, extend or shorten special edge segments, and then combine the contour points and the edge segments after the operation to generate the gluing path. In an example, retaining all edge segments can be set as operation A, retaining only special edge segments can be set as operation B, retaining only non-special edge segments C, extending or shortening special edge segments can be set as operation D, and the above special edge segment operations can be flexibly and freely combined with each other or with other processes. In this case, please refer to Figure 6 , operation A is process 1, operation B combined with process 1 is process 2, operation C is process 3, and operation D and operation C are combined into process 4.

[0068] In certain embodiments, see Fig.11 , each edge segment is divided into special edge segments and non-special edge segments, including:

[0069] Step 0346: Get the set position;

[0070] Step 0347: Classify the edge segments at the set orientation as special edge segments and classify the other edge segments as non-special edge segments.

[0071] In some embodiments, the first generation module 30 includes a first acquisition unit and a second division unit. Step 0346 can be implemented by the first acquisition unit, and step 0347 can be implemented by the second division unit, that is, the first acquisition unit is used to acquire the set orientation; the second division unit is used to divide the edge segment at the set orientation into a special edge segment and divide other edge segments into non-special edge segments.

[0072] In some embodiments, the electronic device 1000 includes a processor 300. Step 0343, step 0344 and step 0345 can all be implemented by the processor 300, that is, the processor 300 is used to obtain a set orientation; classify the edge segments at the set orientation as special edge segments and classify other edge segments as non-special edge segments.

[0073] Specifically, in some embodiments, the set orientation may be a factory-set custom default, or may be manually set by a user, which is not a limitation herein. The edge segments at the set orientation are classified as special edge segments, and the other edge segments are classified as non-special edge segments. In one embodiment, four corner points are determined, and the orientation may include four orientations: top, bottom, left, and right. If the set orientation is top, the edge between the two top corner points is determined as a special edge segment, and the other edge segments are classified as non-special edge segments.

[0074] In some embodiments, obtaining a contour point cloud of the edge of the glass to be coated with glue includes:

[0075] Obtaining point cloud data of the glass to be coated collected by the visual sensor;

[0076] Perform point cloud filtering and outlier removal on the point cloud data to obtain a point cloud model of the glass to be coated with glue;

[0077] According to the point cloud model, the contour point cloud is obtained.

[0078] In some embodiments, the first acquisition module 10 includes a second acquisition unit, a third acquisition unit, and a fourth acquisition unit. The above steps can be implemented by the second acquisition unit, the third acquisition unit, and the fourth acquisition unit. That is, the second acquisition unit is used to acquire the point cloud data of the glass to be coated with glue collected by the visual sensor. The third acquisition unit is used to perform point cloud filtering and outlier removal on the point cloud data to obtain a point cloud model of the glass to be coated with glue. The fourth acquisition unit is used to acquire a contour point cloud based on the point cloud model.

[0079] In some embodiments, the electronic device 1000 includes a processor 300. The above steps can all be implemented by the processor 300, that is, the processor 300 is used to obtain point cloud data of the glass to be coated with glue collected by the visual sensor; perform point cloud filtering and outlier removal on the point cloud data to obtain a point cloud model of the glass to be coated with glue; and obtain a contour point cloud according to the point cloud model.

[0080] Specifically, the visual sensor can be a 3D industrial camera. The visual sensor can collect point cloud data of the glass to be coated. The point cloud data includes the coordinate values ​​of the points in the XYZ three-axis space, including the XYZ three-axis orientation of each point cloud itself. By performing fine operations such as point cloud filtering and outlier removal on the point cloud data, a more accurate point cloud model is formed. The point cloud model is the point cloud model of the glass to be coated, so that the contour point cloud of the glass to be coated can be extracted.

[0081] In some embodiments, the point cloud model of the glass to be coated may be subjected to edge contour analysis to obtain a contour point cloud of the edge of the glass to be coated. The edge contour of the coated glass may be obtained by edge contour analysis. The specific implementation process may be achieved by existing traditional edge detection technology, deep learning algorithm and other technologies, which are not limited here.

[0082] It is worth mentioning that in the embodiment of the present application, the profile of the glass to be coated with glue can be any shape, such as a polygon, such as a triangle, a rectangle, a pentagon, etc. The surface of the glass to be coated with glue can be a plane, or a quasi-plane, specifically a relatively gentle concave surface or convex surface, such as a flat arc surface or a flat concave surface, or a quasi-plane with both concave and convex surfaces. The shape of the glass to be coated with glue can be of any specification, which is not specifically limited here.

[0083] In some embodiments, mapping the contour point cloud to a two-dimensional plane to obtain contour points includes:

[0084] Orthogonal projection is performed on the contour point cloud to map the contour point cloud onto a two-dimensional plane to obtain contour points.

[0085] In some implementations, the above steps may be implemented by the second acquisition module 20. That is, the second acquisition module is used to perform orthogonal projection on the contour point cloud to map the contour point cloud onto a two-dimensional plane to obtain contour points.

[0086] In some embodiments, the electronic device 1000 includes a processor 300. The above steps can be implemented by the processor 300, that is, the processor 300 is used to perform orthogonal projection on the contour point cloud to map the contour point cloud onto a two-dimensional plane to obtain contour points.

[0087] Specifically, orthogonal projection of the contour point cloud can more accurately determine the contour of the glass edge. Because the contour point cloud of the edge of the glass to be coated is three-dimensional point cloud data, and the three-dimensional point cloud data will affect the determination of the glass edge contour due to various external or internal factors, the contour point cloud can be mapped to a two-dimensional plane by orthogonal projection of the contour point cloud to obtain contour points. In addition, the data is processed by dimensionality reduction to filter out the data corresponding to the dimension that has less impact on the contour, which helps to reduce the amount of data processing and thus speed up the data processing speed and improve efficiency.

[0088] In one embodiment, the glass to be coated with glue may be glass of a non-standard plane, for example: a part of the glass, such as a corner of the glass, or both ends of the glass are slightly tilted (sunk) so that some edges form an arc, that is, the corresponding part is an arc in height in space. Due to the imaging principle, the points corresponding to the above arcs photographed by the visual sensor at a non-vertical angle describe a non-standard straight line. Therefore, an orthogonal projection operation is performed on the contour point cloud of the edge of the glass to be coated with glue, and then the contour point cloud is reduced in dimension, so that each contour point cloud is mapped to a two-dimensional plane, and then the two-dimensional contour points of the edge of the glass to be coated with glue can be obtained. At this time, the points describing the contour are close to a straight line.

[0089] In some embodiments, the process of generating a glue coating path of the glass to be coated with glue based on the contour points and in combination with the process model signal includes:

[0090] Based on the contour points, each edge is denoised and smoothed at the sub-pixel level;

[0091] A straight line is fitted to each edge of the contour described by the result of noise removal and smoothing.

[0092] In some embodiments, the first generation module 30 includes a first processing unit and a second processing unit. The above steps can be implemented by the second processing unit, the first processing unit and the second processing unit, that is, the first processing unit is used to remove noise and smooth each edge at the sub-pixel level based on the contour points. The second processing unit is used to perform straight line fitting on each edge of the contour described by the result after the noise removal and smoothing.

[0093] In some embodiments, the electronic device 1000 includes a processor 300. The above steps can be implemented by the processor 300, that is, the processor 300 is used to remove noise and smooth each edge at a sub-pixel level based on the contour points; and perform straight line fitting on each edge of the contour described by the result of the noise removal and smoothing.

[0094] Specifically, the sub-pixel level may refer to the point between two pixels from a microscopic perspective, and calculation at the sub-pixel level may make image processing more accurate. After noise removal and smoothing are performed on each edge described by the contour points at the sub-pixel level, straight line fitting may be performed on each edge of the contour described by the contour points that have undergone noise removal and smoothing. In some embodiments, straight line fitting may be to find the straight line corresponding to each edge based on the points of each edge, and the straight line of each edge covers the largest number of points corresponding to the better part of the edge.

[0095] In some embodiments, performing straight line fitting on each edge of the contour described by the result after noise removal and smoothing processing includes:

[0096] Determine the contour point cloud corresponding to the result;

[0097] Based on the Z-direction coordinates of the contour point cloud corresponding to the result, determining the target contour point whose Z-direction coordinates of the corresponding contour point cloud are not zero;

[0098] Perform straight line fitting on each side of the contour described by the target contour points.

[0099] In some embodiments, the first generation module 30 includes a first determination unit, a second determination unit, and a third processing unit. The above steps can be implemented by the first determination unit, the second determination unit, and the third processing unit, that is, the first determination unit is used to determine the contour point cloud corresponding to the result. The second determination unit is used to determine the target contour point whose Z-direction coordinate of the corresponding contour point cloud is not zero based on the Z-direction coordinate of the contour point cloud corresponding to the result. The third processing unit is used to perform straight line fitting on each side of the contour described by the target contour point.

[0100] In some embodiments, the electronic device 1000 includes a processor 300. The above steps can all be implemented by the processor 300, that is, the processor 300 is used to determine the contour point cloud corresponding to the result; based on the Z-direction coordinates of the contour point cloud corresponding to the result, determine the target contour point whose Z-direction coordinate of the corresponding contour point cloud is not zero; and perform straight line fitting on each side of the contour described by the target contour point.

[0101] Specifically, in the process of collecting the point cloud of the glass to be coated, for the non-standard plane of the glass to be coated, the part that fits the conveyor belt is easily disturbed by the conveyor belt, and then an interference point appears. The edge of the raised part will not be disturbed. Therefore, in the process of straight line fitting based on the two-dimensional contour points, for the edge in contact with the conveyor belt, the straight line corresponding to the edge can be determined according to the point of the edge that does not contact the conveyor belt. The Z-direction coordinates of the contour point cloud corresponding to the contour point on this edge can be used to determine which contour points on the edge are in contact with the conveyor belt and which contour points are not in contact with the conveyor belt, that is, if the Z-direction coordinates of the contour point cloud corresponding to the contour point are zero, it means that the contour point is in contact with the conveyor belt, and if the Z-direction coordinates of the contour point cloud corresponding to the contour point are not zero, it means that the contour point is not in contact with the conveyor belt. At this time, a straight line fitting can be performed based on the contour points that are not in contact with the conveyor belt to obtain a more accurate contour edge of the glass to be coated. It should be noted that in this embodiment, the coordinate system corresponding to the glass to be coated is established in contact with the conveyor belt, that is, the origin of the above-mentioned coordinate system is located in the plane where the conveyor belt is located.

[0102] It is worth mentioning that the above coordinate system can also be established in other forms. In this case, a certain point cloud screening rule can be set in advance according to the shape of the non-standard flat glass to be glued, and the points corresponding to the above preferred part can be selected, that is, the points corresponding to the part of the non-standard flat glass to be glued that is not in contact with the conveyor belt are selected. In this embodiment, the object of the straight line fitting operation is preferably the result after noise removal and smoothing. Of course, it can also be the contour point without noise removal and smoothing, which is not limited here.

[0103] In some embodiments, generating glue coating track point information on the glue coating path includes:

[0104] According to the inherent properties of the robot and the initial posture of the robot, the gluing trajectory point information is generated on the gluing path.

[0105] In some embodiments, the above steps can be implemented by the second generation module 40, that is, the second generation module 40 is used to generate the gluing trajectory point information on the gluing path according to the inherent properties of the robot and the initial posture of the robot.

[0106] In some embodiments, the electronic device 1000 includes a processor 300. The above steps can be implemented by the processor 300, that is, the processor 300 is used to generate glue coating track point information on the glue coating path according to the inherent properties of the robot and the initial posture of the robot.

[0107] Specifically, the robot can be an industrial robot arm for glass gluing. In order to make the robot walk less redundant tracks, the initial point of the gluing track point can be set at a position on the gluing path that is closest to the initial posture of the robot, for example: the initial point is set in the middle of the side close to the robot. That is to say, after determining the initial posture of the robot, the middle point on the gluing path of the side closest to the initial posture of the robot can be used as the initial point of the gluing track point, and then other gluing track points can be set on the gluing path according to the inherent properties of the robot, and then the gluing track point information of the gluing glass can be obtained. It is worth mentioning that the gluing track point information may include but is not limited to the coordinates of the gluing track point, the initial track point of the gluing track point, and the direction of the gluing track point (i.e., the order of the gluing track point). After obtaining the gluing track point information of the gluing glass, the gluing track point information can be sent to the robot by communication. When the robot receives the gluing track point information, it can control its own glue spray nozzle to glue the glass to be glued based on the gluing track point information.

[0108] In some embodiments, according to the inherent properties of the robot and the initial posture of the robot, the gluing trajectory point information is generated on the gluing path, including:

[0109] Determine the corners and straight lines in the gluing path;

[0110] According to the robot's glue dispensing rate and movement speed, glue coating trajectory points are set at corresponding densities at the corners and straight lines;

[0111] The movement order of the gluing trajectory points is determined according to the initial posture of the robot to obtain the gluing trajectory point information.

[0112] In some embodiments, the second generation module 40 includes a third determination unit, a fourth processing unit, and a fourth determination unit. The above steps can be implemented by the third determination unit, the fourth processing unit, and the fourth determination unit, that is, the third determination unit is used to determine the corners and straight lines in the gluing path. The fourth processing unit is used to set the gluing trajectory points at the corners and straight lines with corresponding densities according to the robot's gluing rate and movement speed. The fourth determination unit is used to determine the movement order of the gluing trajectory points according to the robot's initial posture to obtain the gluing trajectory point information.

[0113] In some embodiments, the electronic device 1000 includes a processor 300. All steps can be implemented by the processor 300, that is, the processor 300 is used to determine the corners and straight lines in the gluing path; set the gluing track points at the corners and straight lines with corresponding densities according to the robot's gluing rate and movement speed; determine the movement order of the gluing track points according to the robot's initial posture to obtain the gluing track point information.

[0114] Specifically, the corners and straight lines in the gluing path can be determined based on the relationship between the coordinate values ​​of each point on the gluing path. The X-coordinates and Y-coordinates of adjacent points at the corners will be different, while the adjacent points at the straight line may have the same X-coordinates or the same Y-coordinates. For example: assuming that the shape of the glass to be glued is a rectangle, then in the gluing path of the glass to be glued, the X-coordinates and Y-coordinates of the adjacent points at the corners of the four corners will be different, while the Y-coordinates of the adjacent points at the upper straight line will be the same and the X-coordinates will be different, the Y-coordinates of the adjacent points at the lower straight line will be the same and the X-coordinates will be different and the Y-coordinates will be smaller than the upper straight line, the X-coordinates of the adjacent points at the left straight line will be the same and the Y-coordinates will be different, and the X-coordinates of the adjacent points at the right straight line will be the same and the Y-coordinates will be different and the X-coordinates will be smaller than the left straight line.

[0115] When the robot is applying glue to the glass, it will control the glue head to apply glue based on a certain glue delivery rate. The glue delivery rate, as an inherent property of the robot, affects the glue application effect in this embodiment. In order to conveniently set glue application track points on the glue application path with reference to the glue delivery rate of the robot to avoid glue accumulation, the glue delivery rate of the robot can be determined.

[0116] The inherent properties of robot motion are also reflected in that if the robot sets the same motion speed parameters at the corner and the straight line, the motion speed at the corner and the straight line will be different, and the specific motion speed at the corner is slower than the motion speed at the straight line. In actual situations, another inherent property of the robot, the glue discharging rate, is constant, so for the glue discharging rate and motion speed parameters of the appropriate straight line, the glue accumulation situation will be caused at the corner. In some embodiments, under the premise of ensuring that the robot moves along the determined gluing path, the spacing of the gluing track points set at the corners on the gluing path can be larger than the spacing of the gluing track points set at the straight line, so as to achieve a balance between the motion speed at the straight line and the motion speed at the corner, and then solve the glue accumulation phenomenon that may be caused by the corner. A minimum spacing can be set at the straight line to limit the spacing of the gluing track points at the straight line to prevent the robot from jamming and piling up glue due to the excessive number of track points at the straight line. Motion speed parameters with different values ​​can also be set at the straight line and the corner to achieve a balance between the motion speed at the straight line and the motion speed at the corner, solving the glue accumulation problem caused by the inherent properties.

[0117] Determine the movement order of the gluing trajectory points according to the initial posture of the robot to obtain the gluing trajectory point information. It can be understood that in order to make the robot walk fewer redundant trajectories, the initial point of the trajectory point is set to a point close to the initial posture of the robot, for example: it can be the trajectory point corresponding to the middle part of the side of the glass to be glued close to the robot. That is to say, after determining the initial posture of the robot, the trajectory point corresponding to the middle point on the gluing path of the side closest to the initial posture of the robot (or the trajectory point closest to this point) can be used as the initial trajectory point of the gluing trajectory point, and then other trajectory points can be moved clockwise or counterclockwise.

[0118] In some embodiments, the gluing trajectory point information may specifically include the gluing trajectory point coordinates, the initial trajectory point coordinates, the movement order of the gluing trajectory point, the movement speed parameters of the gluing trajectory point, etc.

[0119] In some embodiments, the gluing track point information also includes: normal information corresponding to the contour point.

[0120] Specifically, the normal information may be the angle value of the normal vector corresponding to each contour point cloud relative to a fixed value, or may be the deviation angle value of the point cloud in the corresponding movement sequence later in each contour point cloud relative to the previous point cloud.

[0121] See also Fig.12The computer-readable storage medium 500 of the embodiment of the present application stores a computer program, which, when executed by the processor 300, implements the glass glue coating method of any of the above-mentioned embodiments. It should be noted that the computer program stored in the computer-readable storage medium 500 of the embodiment of the present application can be executed by the processor 300 of the electronic device 1000. It should be noted that the computer-readable storage medium 500 can be a storage medium built into the electronic device 1000, or a storage medium that can be plugged in and out of the electronic device 1000. Therefore, the computer-readable storage medium 500 of the embodiment of the present application has high flexibility and reliability.

[0122] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0124] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0125] The processor 220 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0126] It should be understood that the various parts of the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0127] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0128] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0129] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0130] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above implementation methods within the scope of the present application.

Claims

1. A method for coating glass with glue, It is characterized in that include: Obtaining the contour point cloud of the edge of the glass to be coated with glue; Mapping the contour point cloud to a two-dimensional plane to obtain contour points; Based on the contour points, a glue coating path of the glass to be coated is generated in combination with a process model signal; Generate glue coating track point information on the glue coating path, and send the glue coating track point information to the robot to coat the glass to be coated with glue; The step of generating the gluing path of the glass to be glued based on the contour points and in combination with the process model signal comprises: When the process model signal is a preset process model signal, generating the glue coating path based on the contour points and a preset process algorithm; When the process model signal is not the preset process model signal, processing the contour points to obtain corner points, and combining the contour points and the corner points to generate the glue coating path; The step of combining the contour points and the corner points to generate the gluing path includes: When the number of the corner points is less than 2, generating the glue coating path based on the contour points and the preset process algorithm; When the number of the corner points is greater than or equal to 2, each edge segment is determined according to the corner points, and the gluing path is generated by combining the contour points and each edge segment; The step of combining the contour points and the edge segments to generate the gluing path comprises: dividing each of the edge segments into special edge segments and non-special edge segments; Perform at least one of the following operations on the edge segment: retain all edge segments, retain only the special edge segment, retain only the non-special edge segment, and extend or shorten the special edge segment; The glue coating path is generated by combining the contour points and the operated edge segments.

2. The glass glue coating method according to claim 1, It is characterized in that The dividing each edge segment into a special edge segment and a non-special edge segment comprises: Get the set position; The edge segment at the set position is classified as the special edge segment and the other edge segments are classified as the non-special edge segments.

3. The glass glue coating method according to claim 1, It is characterized in that The step of obtaining the contour point cloud of the edge of the glass to be coated with glue comprises: Obtaining point cloud data of the glass to be coated collected by the visual sensor; Performing point cloud filtering and outlier removal on the point cloud data to obtain a point cloud model of the glass to be coated with glue; The contour point cloud is acquired according to the point cloud model.

4. The glass glue coating method according to claim 3, It is characterized in that Mapping the contour point cloud to a two-dimensional plane to obtain contour points includes: An orthogonal projection is performed on the contour point cloud to map the contour point cloud onto a two-dimensional plane to obtain the contour points.

5. The glass glue coating method according to claim 4, It is characterized in that The step of generating the gluing track point information on the gluing path includes: The gluing track point information is generated on the gluing path according to the inherent properties of the robot and the initial position of the robot.

6. The glass glue coating method according to claim 5, It is characterized in that The step of generating the gluing track point information on the gluing path according to the inherent properties of the robot and the initial posture of the robot includes: Determining corners and straight lines in the gluing path; Setting glue coating trajectory points at the corners and the straight lines with corresponding densities according to the glue dispensing rate and the movement speed of the robot; The movement order of the gluing track points is determined according to the initial position of the robot to obtain the gluing track point information.

7. The glass glue coating method according to claim 6, It is characterized in that The gluing track point information also includes: normal information corresponding to the contour point.

8. A glass glue coating device, It is characterized in that include: The first acquisition module is used to acquire the contour point cloud of the edge of the glass to be coated with glue; A second acquisition module is used to map the contour point cloud to a two-dimensional plane to obtain contour points; A first generating module, used for generating a gluing path of the glass to be glued based on the contour points and in combination with a process model signal; A second generating module, used for generating gluing track point information on the gluing path; A sending module, used for sending the gluing track point information to the robot so as to apply glue to the glass to be glued; The step of generating the gluing path of the glass to be glued based on the contour points and in combination with the process model signal includes: When the process model signal is a preset process model signal, generating the glue coating path based on the contour points and a preset process algorithm; When the process model signal is not the preset process model signal, processing the contour points to obtain corner points, and combining the contour points and the corner points to generate the glue coating path; The step of combining the contour points and the corner points to generate the gluing path includes: When the number of the corner points is less than 2, generating the glue coating path based on the contour points and the preset process algorithm; When the number of the corner points is greater than or equal to 2, each edge segment is determined according to the corner points, and the gluing path is generated by combining the contour points and each edge segment; The step of combining the contour points and the edge segments to generate the gluing path comprises: dividing each of the edge segments into special edge segments and non-special edge segments; Perform at least one of the following operations on the edge segment: retain all edge segments, retain only the special edge segment, retain only the non-special edge segment, and extend or shorten the special edge segment; The glue coating path is generated by combining the contour points and the operated edge segments.

9. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the glass glue coating method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the glass glue coating method according to any one of claims 1 to 7 is implemented.