Calibration method, device, equipment and medium for glue dispensing machine
Through the combination of laser and camera, the automatic calibration of the dispensing machine solves the shortcomings of manual input parameters and visual correction, and achieves high-precision automation and accuracy of the dispensing machine.
Patent Information
- Application Number
- CN202210322615.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-03-29
AI Technical Summary
The dispensing machine requires manual input of parameters during the dispensing process, which reduces the automation function, and the calibration process mainly relies on visual proofreading, making it impossible to determine the calibration error, and there is a certain risk of machine collision.
Scan the edge of the calibration block with a laser, fit the laser center point, combine the image taken by the camera to obtain the visual center point, calculate the relative positional relationship between the camera and the laser, perform measurement and verification, ensure accuracy, and achieve automated calibration and guidance.
It improves the automation level of the dispensing machine, ensures calibration accuracy, reduces manual errors, reduces the risk of machine collision, and improves dispensing accuracy.
Smart Images

Figure CN114708338B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of glue dispensing machine calibration, and in particular to a glue dispensing machine calibration method, device, equipment and medium. Background Art
[0002] At present, during the dispensing process of the dispensing machine, the general controller controls the operation of the motor by accepting manually input parameters to drive the needle, laser, etc. to dispense glue. In this way, manual parameter input is required, which reduces the automation function of the dispensing machine. In addition, the calibration of the current dispensing machine is mainly carried out by visual inspection and compensation, and the calibration results are not verified, and the error size in the calibration cannot be determined, which makes the operation of the equipment after calibration have a certain risk of collision. Summary of the invention
[0003] The present invention provides a calibration method, device, equipment and medium for a glue dispensing machine, so as to solve the inconvenience that the glue dispensing machine still needs manual input of parameters, and verify the calibration of the glue dispensing machine, so as to improve the glue dispensing accuracy of the glue dispensing machine.
[0004] To solve the above problems, a first embodiment of the present invention provides a calibration method for a dispensing machine, comprising:
[0005] Step 1: Control the edge of the laser scanning calibration block;
[0006] Step 2: fitting the laser center point of the calibration block according to the position of each edge;
[0007] Step 3: Control the camera to capture the image of the calibration block;
[0008] Step 4: fitting the visual center point of the calibration block according to the image calibration of the calibration block;
[0009] Step 5: Obtaining the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point;
[0010] Step 6: According to the relative position relationship between the camera and the laser, the laser is guided by the camera to perform measurement.
[0011] According to one embodiment of the present invention, before step six, the method further includes:
[0012] Step 7: Verify the relative position relationship between the camera and the laser; if the verification result is greater than or equal to the preset value, execute step 6; if the verification result is less than the preset value, repeat steps 1 to 5 until the verification result is greater than or equal to the preset value.
[0013] According to one embodiment of the present invention, the step seven includes:
[0014] Controlling the camera to capture the central through-hole image of the calibration block;
[0015] Acquire the coordinates of the central through hole according to the central through hole image of the calibration block;
[0016] According to the relative position relationship between the camera and the laser, and the coordinates of the central through hole, guiding the laser output beam to the position of the central through hole;
[0017] Acquire a first height of the laser measured by the laser at a central through hole position of the calibration block;
[0018] Acquiring a second height of the laser measured by the laser on a plane around the calibration block;
[0019] Calculating a first difference between the first height and the second height, and if the first difference is greater than the preset value, executing step six;
[0020] If the first difference is smaller than the preset value, repeat steps 1 to 5 to recalibrate.
[0021] According to one embodiment of the present invention, it also includes:
[0022] Step 8: Control the laser to move to the laser measurement point;
[0023] Step nine: obtaining a third height between the laser and the dot film measured by the laser;
[0024] Step 10: Controlling the needle head to dispense a cross-intersecting glue path of a preset length on the dispensing sheet according to the third height, and obtaining the mechanical coordinates of the center point of the cross-intersecting glue path;
[0025] Step 11: controlling the camera to capture an image of the cross-intersecting rubber road;
[0026] Step 12: acquiring the coordinates of the center point of the cross-intersecting rubber road according to the image of the cross-intersecting rubber road;
[0027] Step 13: Obtaining the relative position relationship between the camera and the needle according to the center point coordinates of the cross-intersecting glue path and the mechanical coordinates;
[0028] Step 14: guiding the needle to perform glue dispensing according to the relative position relationship between the camera and the needle.
[0029] According to one embodiment of the present invention, before step 14, the method further includes:
[0030] Step 15: Verify the relative position relationship between the camera and the needle; if the verification result is within the preset range, execute step 14; if the verification result is outside the preset range, repeat steps 8 to 13 until the verification result is within the preset range.
[0031] According to one embodiment of the present invention, the step fifteen includes:
[0032] Controlling the needle to perform cross-dispensing at a preset mechanical coordinate distance of the center point of the cross-intersecting glue path to form a second cross-intersecting glue path;
[0033] Controlling the camera to capture an image of the second cross-intersecting rubber road;
[0034] Acquiring the center coordinates of the second cross-intersecting glue road according to the image of the second cross-intersecting glue road;
[0035] According to the relative positional relationship between the camera and the needle, and the central coordinates of the second cross-intersecting glue path, the central mechanical coordinates of the second cross-intersecting glue path are obtained;
[0036] Calculating the distance between the mechanical coordinates of the center of the second cross-intersecting glue path and the mechanical coordinates of the center point of the cross-intersecting glue path;
[0037] If the distance is within the preset range, execute step fourteen; if the distance is outside the preset range, repeat steps eight to thirteen until the verification result is within the preset range.
[0038] According to one embodiment of the present invention, it also includes:
[0039] Step 16: Control the laser to move above the displacement sensor platform, obtain the laser value of the laser and obtain the first position of the current z-axis;
[0040] Step 17: Control the needle to move above the displacement sensor platform, and control the z-axis to move downward. When the displacement sensor value changes to a second preset value, control the z-axis to stop moving downward, and obtain the second position of the current z-axis.
[0041] Step 18: Calculating the relative position relationship between the laser and the needle in the z-axis direction according to the first position, the second position, the second preset value, and the laser value;
[0042] Step 19: Based on the relative position relationship between the laser and the needle in the z-axis direction, the laser is used to guide the dispensing height of the needle in the z-axis direction.
[0043] According to one embodiment of the present invention, before step 19, the method further includes:
[0044] Step 20: Verify the relative position relationship between the laser and the needle in the z-axis direction; if the verification result is within the preset range, execute step 19; if the verification result is not within the preset range, repeat steps 16 to 18 and recalibrate.
[0045] According to one embodiment of the present invention, step 20 comprises:
[0046] Guide the needle to dispense glue at a preset height onto the displacement sensor by the laser;
[0047] Obtaining a measurement value of the displacement sensor;
[0048] If the measured value of the displacement sensor is within the preset range, execute step 19; if the measured value is not within the preset range, repeat steps 16 to 18 for recalibration.
[0049] In order to solve the above problems, a second embodiment of the present invention provides a calibration device for a dispensing machine, comprising:
[0050] A control module, used for controlling the laser scanning to calibrate the edge of the block;
[0051] A fitting module, used for fitting the laser center point of the calibration block according to the position of each edge;
[0052] The control module is also used to control the camera to capture the image of the calibration block;
[0053] The fitting module is also used to fit the visual center point of the calibration block according to the image calibration of the calibration block;
[0054] A relative position relationship acquisition module, used to acquire the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point;
[0055] The execution module is used for guiding the laser to perform measurement through the camera according to the relative position relationship between the camera and the laser.
[0056] According to one embodiment of the present invention, it also includes:
[0057] The first verification module is used to verify the relative position relationship between the camera and the laser.
[0058] According to one embodiment of the present invention, the first verification module includes:
[0059] The control module is used to control the camera to capture the central through-hole image of the calibration block;
[0060] A first coordinate acquisition module, used for acquiring the coordinates of the central through hole according to the central through hole image of the calibration block;
[0061] The execution module is used to guide the laser output beam to the position of the central through hole according to the relative position relationship between the camera and the laser and the coordinates of the central through hole;
[0062] A first height acquisition module, used for acquiring a first height of the laser measured by the laser at a central through hole position of the calibration block;
[0063] A second height acquisition module, used for acquiring a second height of the laser measured by the laser on a plane around the calibration block;
[0064] The first calculation module is used to calculate a first difference between the first height and the second height; if the first difference is greater than the preset value, the verification is successful; if the first difference is less than the preset value, the verification fails.
[0065] According to one embodiment of the present invention, it also includes:
[0066] The control module is used to control the laser to run to the laser measurement point;
[0067] A third height acquisition module, used for acquiring a third height between the laser and the film dotted sheet measured by the laser;
[0068] A second coordinate acquisition module, used for controlling the needle to dispense a cross-intersecting glue path of a preset length on the dispensing sheet according to the third height, and obtaining the mechanical coordinates of the center point of the cross-intersecting glue path;
[0069] The control module is also used to control the camera to capture the image of the cross-intersecting rubber road;
[0070] A third coordinate acquisition module, used for acquiring the coordinates of the center point of the cross-intersecting rubber road according to the image of the cross-intersecting rubber road;
[0071] A second relative position relationship acquisition module, used for acquiring the relative position relationship between the camera and the needle according to the center point coordinates of the cross-intersecting glue path and the mechanical coordinates;
[0072] The execution module is used to guide the needle to perform glue dispensing according to the relative position relationship between the camera and the needle.
[0073] According to one embodiment of the present invention, it also includes:
[0074] A second verification module, used to verify the relative position relationship between the camera and the needle;
[0075] According to one embodiment of the present invention, the second verification module includes:
[0076] The control module is used to control the needle to perform cross-point glue at a preset distance of the mechanical coordinates of the center point of the cross-intersecting glue path to form a second cross-intersecting glue path;
[0077] The control module is used to control the camera to capture an image of the second cross-intersecting glue path;
[0078] A fourth coordinate acquisition module, used for acquiring the center coordinates of the second cross-intersecting glue road according to the image of the second cross-intersecting glue road;
[0079] A fifth coordinate acquisition module, used for acquiring the central mechanical coordinates of the second cross-intersecting glue path according to the relative position relationship between the camera and the needle and the central coordinates of the second cross-intersecting glue path;
[0080] The second calculation module calculates the distance between the central mechanical coordinates of the second cross-intersecting glue path and the mechanical coordinates of the center point of the cross-intersecting glue path; if the distance is within a preset range, the verification is successful; if the distance is outside the preset range, the verification fails.
[0081] According to one embodiment of the present invention, it also includes:
[0082] The control module controls the laser to move above the displacement sensor platform, obtains the laser value of the laser and obtains the first position of the current z-axis;
[0083] At the same time, the needle is controlled to move to the top of the displacement sensor platform, and the z-axis is controlled to move downward. When the displacement sensor value changes to a second preset value, the z-axis is controlled to stop moving downward, and the second position of the current z-axis is obtained;
[0084] A third calculation module, used for calculating the relative position relationship between the laser and the needle in the z-axis direction according to the first position, the second position, the second preset value, and the laser value;
[0085] The execution module is used to guide the dispensing height of the needle in the z-axis direction through the laser according to the relative position relationship between the laser and the needle in the z-axis direction.
[0086] According to one embodiment of the present invention, before step 19, the method further includes:
[0087] The third verification module is used to verify the relative position relationship between the laser and the needle in the z-axis direction.
[0088] According to one embodiment of the present invention, the third verification module includes:
[0089] The execution module is used to guide the needle to dispense glue at a preset height to the displacement sensor through the laser;
[0090] The displacement measurement value acquisition module is used to acquire the measurement value of the displacement sensor. If the measurement value of the displacement sensor is within a preset range, the verification is successful; if the measurement value is not within the preset range, the verification fails.
[0091] In order to solve the above problems, the third aspect of the present invention provides a calibration device for a glue dispensing machine, and the calibration device for the glue dispensing machine includes:
[0092] Dispensing machines, displacement sensors, calibration blocks, and electronic equipment to be calibrated;
[0093] The electronic device comprises: at least one processor; and
[0094] a memory communicatively connected to the at least one processor; wherein,
[0095] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the calibration method of the dispensing machine as described above.
[0096] To solve the above problems, a fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the calibration method of the dispensing machine as described above when executed by a processor.
[0097] According to the calibration method, device, apparatus and medium of the dispensing machine proposed in the embodiment of the present invention, the dispensing machine can be automatically calibrated through the above content, and after calibration, the dispensing machine can be guided to dispense glue by visual guidance to achieve full automation of the dispensing machine. In addition, the verification process makes the guidance of the dispensing machine more precise, thereby improving the accuracy of dispensing.
[0098] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] 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.
[0100] Figure 1 is a flow chart of a calibration method for a dispensing machine provided in an embodiment of the present invention;
[0101] Figure 2 is a schematic diagram of the structure of a calibration device used for calibrating a dispensing machine in an embodiment of the present invention;
[0102] Figure 3 is a schematic diagram of the trajectory of the laser scanning calibration block in an embodiment of the present invention;
[0103] Figure 4 is a flow chart of a calibration method for a glue dispensing machine provided by an embodiment of the present invention;
[0104] Figure 5 is a flow chart of a calibration method for a glue dispensing machine provided in another embodiment of the present invention;
[0105] Figure 6 It is a schematic diagram of the relative position relationship between the laser and the needle in the calibration method of the glue dispensing machine proposed in another embodiment of the present invention;
[0106] Figure 7 is a block diagram of a calibration device for a glue dispensing machine provided in an embodiment of the present invention;
[0107] Figure 8 It is a structural schematic diagram of the electronic equipment in the calibration device of the dispensing machine proposed in an embodiment of the present invention. DETAILED DESCRIPTION
[0108] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0109] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0110] Figure 1 FIG. 1 is a flow chart of a calibration method for a dispensing machine according to an embodiment of the present invention. Figure 1 As shown, the calibration method of the dispensing machine includes:
[0111] Step 1: Control the edge of the laser scanning calibration block;
[0112] Figure 2 is a schematic diagram of the structure of a calibration device used for calibrating a dispensing machine in an embodiment of the present invention. Figure 2 As shown, the calibration device includes three calibration blocks 100, which are the same size but have different diameters of central through holes (0.3 mm, 0.2 mm, and 0.4 mm, respectively). In other embodiments, the calibration blocks can be set according to the actual needs of the dispensing machine. Figure 3 FIG. 1 is a schematic diagram of the trajectory of the laser scanning calibration block in an embodiment of the present invention. Figure 3 As shown, the edge of the laser scanning calibration block can be controlled by inputting a control parameter through the side length of the calibration block, where Figure 3 The curve pointed by the arrow in the middle is the scanning trajectory of the laser.
[0113] Step 2: Fit the laser center point of the calibration block according to the position of each edge;
[0114] After controlling the edge of the laser scanning calibration block, fitting can be performed according to the coordinates of the track of each edge of the scanned calibration block to calculate the coordinates of the center point of the laser scanning track, that is, the mechanical coordinates of the scanning track.
[0115] Step 3: Control the camera to capture the image of the calibration block;
[0116] The camera may be a CCD camera or a CMOS camera, and the camera may be controlled to move to the top of the calibration block to take a picture of the calibration block.
[0117] Step 4: Fit the visual center point of the calibration block according to the image calibration of the calibration block;
[0118] That is, after acquiring the image of the calibration block, the camera coordinates of the center of the calibration block in the camera coordinate system can be acquired.
[0119] Step 5: Obtain the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point;
[0120] Therefore, after steps one to four, the mechanical coordinates and camera coordinates of the center of the calibration block can be obtained, thereby establishing a connection between the camera coordinates and the mechanical coordinates, and then establishing a relative position relationship between the mechanical structure controlling the laser and the camera.
[0121] Step 6: Based on the relative position relationship between the camera and the laser, use the camera to guide the laser for measurement.
[0122] In the subsequent operation of the dispensing machine, the camera's vision can be used to guide the laser work. For example, the camera coordinates of a certain point can be obtained through the camera, and then the actual mechanical coordinates can be obtained based on the relationship between the camera coordinates and the mechanical coordinates to guide the laser to move in the xy direction to perform the operation. In this way, the laser operation can be guided by vision, making the dispensing machine more automated and intelligent.
[0123] According to one embodiment of the present invention, before step six, the method further includes:
[0124] Step 7: Verify the relative position relationship between the camera and the laser; if the verification result is greater than or equal to the preset value, execute step 6; if the verification result is less than the preset value, repeat steps 1 to 5 until the verification result is greater than or equal to the preset value.
[0125] Optionally, step seven includes:
[0126] Control the camera to capture the central through-hole image of the calibration block;
[0127] Wherein, the camera can be controlled to capture an image of a central through hole of another calibration block;
[0128] Acquire the coordinates of the central through hole according to the central through hole image of the calibration block;
[0129] For example, the coordinates of the center through hole obtained from the center through hole image are (15.46 mm, 13.38 mm);
[0130] According to the relative position relationship between the camera and the laser, and the coordinates of the central through hole, the laser output beam is guided to the position of the central through hole;
[0131] For example, if the relative position relationship is (-0.135mm, +0.108mm), then according to the coordinates of the center through hole (15.46mm, 13.38mm), the actual mechanical coordinates can be obtained as (15.325mm, 13.488mm), so the laser can be guided to move above the coordinates with the mechanical coordinates (15.325mm, 13.488mm) and emit the laser;
[0132] Obtaining a first height of the laser measured by laser at the central through hole position of the calibration block;
[0133] Obtaining a second height of the laser measured by laser on a plane around the calibration block;
[0134] Calculate a first difference between the first height and the second height, and if the first difference is greater than a preset value, execute step six;
[0135] If the first difference is less than the preset value, repeat steps 1 to 5 to recalibrate.
[0136] When the difference between the first height and the second height measured by the laser is greater than 0.07mm, it can be considered that the relative position relationship between the laser and the camera obtained by calibration from step one to step five is accurate and the calibration is successful. When the difference between the first height and the second height measured by the laser is less than 0.07mm, it means that the camera has not successfully guided the laser to the central through hole position of the calibration block, but has guided it to the plane around the central through hole position of the calibration block. This indicates that the previous calibration has failed and needs to be recalibrated. Among them, the height of the 0.07mm through hole in the above content can also be set to other accuracies. The present invention does not impose specific restrictions on this.
[0137] According to one embodiment of the present invention, Figure 4 As shown, it also includes:
[0138] Step 8: Control the laser to move to the laser measurement point;
[0139] After step 6, the laser is guided to the laser measurement point by the camera (the position can be manually specified, i.e. any position on the dot film);
[0140] Step 9: Obtain the third height between the laser and the dot film measured by laser;
[0141] Step 10: Control the needle head to dispense a cross-intersecting glue path of a preset length on the dispensing sheet according to the third height, and obtain the mechanical coordinates of the center point of the cross-intersecting glue path;
[0142] After the laser measures the z-direction distance between the laser and the dispensing sheet, since the distance between the needle and the laser is known (which can be calibrated through the next embodiment), the movement distance of the needle in the z-direction can be obtained, so that the needle can be controlled to the dispensing sheet in the z-direction; thus, the needle can be controlled through the mechanical structure to form a cross (on the xy plane) with a length and width of 20 mm at the dispensing location on the dispensing sheet, and the mechanical coordinates of the center point of the glue path intersecting the cross can be obtained based on the motion coordinates of the mechanical structure.
[0143] Step 11: Control the camera to capture an image of the cross-intersecting rubber path;
[0144] Step 12: Obtain the coordinates of the center point of the cross-intersecting rubber road according to the image of the cross-intersecting rubber road;
[0145] Step 13: Obtain the relative position relationship between the camera and the needle according to the center point coordinates of the cross-intersecting glue path and the mechanical coordinates;
[0146] Step 14: Guide the needle to perform dispensing according to the relative position relationship between the camera and the needle.
[0147] Therefore, the camera is used to capture the image of the cross-intersecting glue path, obtain the camera coordinates of the center point of the cross-intersecting glue path, and obtain the relative position relationship between the camera and the needle based on the camera coordinates and the mechanical coordinates. In the subsequent operation process, the camera can be used to guide the needle to work. For example, the camera specifies the position of a certain point, and the mechanical coordinates are calculated through the relative position relationship between the camera and the needle. In this way, the needle is controlled to move in the xy direction according to the mechanical coordinates, thereby realizing the automatic control of the dispensing machine.
[0148] According to one embodiment of the present invention, before step 14, the method further includes:
[0149] Step 15: Verify the relative position relationship between the camera and the needle; if the verification result is within the preset range, execute step 14; if the verification result is outside the preset range, repeat steps 8 to 13 until the verification result is within the preset range.
[0150] According to one embodiment of the present invention, step fifteen includes:
[0151] Controlling the needle to perform cross-dispensing at a preset distance of the mechanical coordinates of the center point of the cross-intersecting glue path to form a second cross-intersecting glue path;
[0152] For example, the mechanical coordinates of the center point of the cross-intersecting glue path of the previous needle dispensing are (45.3mm, 38.7mm), and the preset distance can be 35mm, or other values, and the present invention does not make specific limitations on this.
[0153] Controlling the camera to capture an image of the second cross-intersecting rubber path;
[0154] The center coordinates of the second cross-intersecting glue road are obtained according to the image of the second cross-intersecting glue road; that is, the center camera coordinates of the second cross-intersecting glue road are obtained.
[0155] According to the relative position relationship between the camera and the needle, and the center coordinates of the glue path of the second cross intersection, the center mechanical coordinates of the glue path of the second cross intersection are calculated;
[0156] Calculate the distance between the mechanical coordinates of the center of the second cross-intersecting glue path and the mechanical coordinates of the center point of the cross-intersecting glue path;
[0157] If the distance is within the preset range, execute step 14; if the distance is outside the preset range, repeat steps 8 to 13 until the verification result is within the preset range.
[0158] That is to say, after the second cross-intersecting glue path is formed by dispensing glue at a preset distance of 35mm from the mechanical coordinates of the center point of the cross-intersecting glue path, the image is captured by the camera, and the mechanical coordinates of the center point of the second cross-intersecting glue path are calculated. Then, the distance is calculated with the mechanical coordinates of the center point of the previous cross-intersecting glue path. If the distance is within the range of 35mm±0.3mm, it means that the calibration is successful. If it is outside this range, it means that the calibration has failed and recalibration is required.
[0159] It should be noted that in other embodiments, the camera can also be used to guide the needle to the mechanical coordinate of 35mm of the center point of the previous cross-intersecting glue path, that is, to obtain the target mechanical position; then, the actual mechanical position is obtained according to the coordinates of the mechanical structure itself, and finally the distance between the actual mechanical position and the mechanical coordinates of the center point of the previous cross-intersecting glue path is calculated to determine whether the distance is within the range of 35mm±0.3mm.
[0160] Alternatively, in the above two verification embodiments, the difference between the central mechanical coordinates of the second cross-intersecting glue path obtained by the coordinates of the mechanical structure itself and the central mechanical coordinates of the second cross-intersecting glue path obtained by camera calculation can also be directly calculated. After the calibration is successful, the needle can be guided by the camera to perform the operation.
[0161] According to one embodiment of the present invention, Figure 5 As shown, it also includes:
[0162] Step 16: Control the laser to move above the displacement sensor platform, obtain the laser value and the first position of the current z-axis;
[0163] Step 17: Control the needle to move above the displacement sensor platform and control the z-axis to move downward. When the displacement sensor value changes to a second preset value, control the z-axis to stop moving downward and obtain the second position of the current z-axis.
[0164] Step 18: Calculate the relative position relationship between the laser and the needle in the z-axis direction according to the first position, the second position, the second preset value, and the laser value;
[0165] Step 19: Based on the relative position relationship between the laser and the needle in the z-axis direction, the laser is used to guide the dispensing height of the needle in the z-axis direction.
[0166] It should be noted that after guiding the laser and the needle to move in the xy plane through the camera, the relative position relationship between the laser and the needle along the z-axis needs to be calibrated. Since the laser and the needle are at the same up and down along the z-axis, only by knowing the relative position relationship between the laser and the needle along the z-axis can the displacement of the z-axis be controlled through the laser measurement value so that the needle can be moved to the dispensing plane.
[0167] In the specific calibration method, such as Figure 6 As shown in the figure, the square box represents the laser, the circle represents the needle, and the surface of the displacement sensor is located on the xy plane. The laser value measured by the laser is h1, h2 is the distance between the needle and the surface of the displacement sensor at the first position of the z-axis, and h3 is the second preset value (which can be 0.1mm). The first and second positions of the z-axis can be read through the coordinates of the mechanical structure itself. Figure 6 It can be seen that the value of the first position of the z-axis minus the second position is h2+h3, where h3 is the reading of the displacement sensor. Then, h2 can be obtained, and the distance between the laser and the needle is h1-h2. The laser may also be located below the needle. The calibration process is the same and will not be repeated here.
[0168] According to one embodiment of the present invention, before step 19, the method further includes:
[0169] Step 20: Verify the relative position relationship between the laser and the needle in the z-axis direction; if the verification result is within the preset range, execute step 19; if the verification result is not within the preset range, repeat steps 16 to 18 and recalibrate.
[0170] According to one embodiment of the present invention, step 20 includes:
[0171] Use laser to guide the needle to dispense glue at a preset height onto the displacement sensor;
[0172] Get the measured value of the displacement sensor;
[0173] If the measured value of the displacement sensor is within the preset range, execute step 19; if the measured value is not within the preset range, repeat steps 16 to 18 for recalibration.
[0174] That is to say, after calibration, the distance between the needle and the dispensing surface can be obtained through the laser measurement value and the distance between the laser and the needle. The dispensing is performed by controlling the preset dispensing height (0.5mm). After the dispensing is completed, the displacement sensor is used to measure the dispensing height. If the dispensing height is within 0.5mm±0.03mm, the calibration is successful. If the dispensing height is outside 0.5mm±0.03mm, it means that the calibration has failed and needs to be recalibrated.
[0175] Figure 7 Schematic diagram of the calibration device of the dispensing machine according to the embodiment of the present invention. Figure 7 As shown, the device comprises:
[0176] A control module 101 is used to control the laser scanning to calibrate the edge of the block;
[0177] A fitting module 102, used to fit the laser center point of the calibration block according to the position of each edge;
[0178] The control module 101 is also used to control the camera to capture an image of the calibration block;
[0179] The fitting module 102 is also used to fit the visual center point of the calibration block according to the image calibration of the calibration block;
[0180] The relative position relationship acquisition module 103 is used to acquire the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point;
[0181] The execution module 104 is used to guide the laser to perform measurement through the camera according to the relative position relationship between the camera and the laser.
[0182] According to one embodiment of the present invention, it also includes:
[0183] The first verification module is used to verify the relative position relationship between the camera and the laser.
[0184] According to one embodiment of the present invention, the first verification module includes:
[0185] The control module is used to control the camera to capture the central through-hole image of the calibration block;
[0186] A first coordinate acquisition module, used to acquire the coordinates of the central through hole according to the central through hole image of the calibration block;
[0187] The execution module is used to guide the laser output beam to the position of the central through hole according to the relative position relationship between the camera and the laser and the coordinates of the central through hole;
[0188] A first height acquisition module, used to acquire a first height of a laser measured by laser at a central through hole position of a calibration block;
[0189] A second height acquisition module, used to acquire a second height of the laser measured by laser on a plane around the calibration block;
[0190] The first calculation module is used to calculate a first difference between the first height and the second height; if the first difference is greater than a preset value, the verification is successful; if the first difference is less than the preset value, the verification fails.
[0191] According to one embodiment of the present invention, it also includes:
[0192] The control module is used to control the laser to run to the laser measurement point;
[0193] A third height acquisition module, used to acquire a third height between the laser and the dot film measured by laser;
[0194] A second coordinate acquisition module is used to control the needle to dispense a cross-intersecting glue path of a preset length on the dispensing sheet according to the third height, and obtain the mechanical coordinates of the center point of the cross-intersecting glue path;
[0195] The control module is also used to control the camera to capture images of the cross-intersecting rubber paths;
[0196] A third coordinate acquisition module is used to acquire the coordinates of the center point of the cross-intersecting rubber road according to the image of the cross-intersecting rubber road;
[0197] A second relative position relationship acquisition module is used to acquire the relative position relationship between the camera and the needle according to the center point coordinates of the cross-intersecting glue path and the mechanical coordinates;
[0198] The execution module is used to guide the needle to perform dispensing work according to the relative position relationship between the camera and the needle.
[0199] According to one embodiment of the present invention, it also includes:
[0200] A second verification module is used to verify the relative position relationship between the camera and the needle;
[0201] According to one embodiment of the present invention, the second verification module includes:
[0202] The control module is used to control the needle to perform cross-dispensing at a preset distance of the mechanical coordinates of the center point of the cross-intersecting glue path to form a second cross-intersecting glue path;
[0203] The control module is used to control the camera to capture an image of the second cross-intersecting glue path;
[0204] A fourth coordinate acquisition module, used for acquiring the center coordinates of the second cross-intersecting glue path according to the image of the second cross-intersecting glue path;
[0205] A fifth coordinate acquisition module, for acquiring the central mechanical coordinates of the second cross-intersecting glue path according to the relative position relationship between the camera and the needle and the central coordinates of the second cross-intersecting glue path;
[0206] The second calculation module calculates the distance between the central mechanical coordinates of the second cross-intersecting glue path and the mechanical coordinates of the center point of the cross-intersecting glue path; if the distance is within a preset range, the verification is successful; if the distance is outside the preset range, the verification fails.
[0207] According to one embodiment of the present invention, it also includes:
[0208] The control module controls the laser to move above the displacement sensor platform, obtains the laser value of the laser and obtains the first position of the current z-axis;
[0209] At the same time, the needle is controlled to move to the top of the displacement sensor platform, and the z-axis is controlled to move downward. When the displacement sensor value changes to a second preset value, the z-axis is controlled to stop moving downward, and the second position of the current z-axis is obtained.
[0210] A third calculation module, used for calculating the relative position relationship between the laser and the needle in the z-axis direction according to the first position, the second position, the second preset value, and the laser value;
[0211] The execution module is used to guide the dispensing height of the needle in the z-axis direction through the laser according to the relative position relationship between the laser and the needle in the z-axis direction.
[0212] According to one embodiment of the present invention, before step 19, the method further includes:
[0213] The third verification module is used to verify the relative position relationship between the laser and the needle in the z-axis direction.
[0214] According to one embodiment of the present invention, the third verification module includes:
[0215] The execution module is used to guide the needle to dispense glue at a preset height onto the displacement sensor through laser;
[0216] The displacement measurement value acquisition module is used to obtain the measurement value of the displacement sensor. If the measurement value of the displacement sensor is within the preset range, the verification is successful; if the measurement value is not within the preset range, the verification fails.
[0217] The calibration device for a glue dispensing machine provided in an embodiment of the present invention can execute the calibration method for a glue dispensing machine provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0218] Figure 8 Schematic diagram of the structure of the electronic device in the calibration device of the glue dispenser proposed in the embodiment of the present invention. Figure 8 As shown, the calibration equipment of the dispensing machine includes:
[0219] The dispensing machine, displacement sensor, calibration block and electronic equipment to be calibrated 10;
[0220] The electronic device 10 includes: at least one processor; and
[0221] a memory communicatively connected to at least one processor; wherein,
[0222] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the calibration method of the dispensing machine as described above.
[0223] The present invention also proposes a computer-readable storage medium, which stores computer instructions. The computer instructions are used to enable a processor to implement the calibration method of the dispensing machine as described above when the processor executes the computer instructions.
[0224] The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0225] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0226] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0227] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the calibration method of the dispensing machine.
[0228] In some embodiments, the calibration method of the glue dispenser can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the calibration method of the glue dispenser described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the calibration method of the glue dispenser in any other appropriate manner (for example, by means of firmware).
[0229] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0230] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0231] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0232] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0233] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0234] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0235] To sum up, according to the calibration method, device, equipment and medium of the dispensing machine proposed in the embodiment of the present invention, the dispensing machine can be automatically calibrated through the above content, and after calibration, the dispensing machine can be guided to dispense glue by visual guidance to realize the full automation of the dispensing machine. In addition, the verification process makes the guidance of the dispensing machine more precise, thereby improving the accuracy of dispensing.
[0236] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0237] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A calibration method for a dispensing machine, characterized in that: include: Step 1: Control the edge of the laser scanning calibration block; Step 2: fitting the laser center point of the calibration block according to the position of each edge; Step 3: Control the camera to capture the image of the calibration block; Step 4: fitting the visual center point of the calibration block according to the image calibration of the calibration block; Step 5: Obtaining the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point; Step 6: According to the relative position relationship between the camera and the laser, guide the laser to measure by the camera; Before step six, also include: Step 7: Verify the relative position relationship between the camera and the laser; if the verification result is greater than or equal to the preset value, execute step 6; if the verification result is less than the preset value, repeat steps 1 to 5 until the verification result is greater than or equal to the preset value; The step seven comprises: Controlling the camera to capture the central through-hole image of the calibration block; Acquire the coordinates of the central through hole according to the central through hole image of the calibration block; According to the relative position relationship between the camera and the laser, and the coordinates of the central through hole, guiding the laser output beam to the position of the central through hole; Acquire a first height of the laser measured by the laser at a central through hole position of the calibration block; Acquiring a second height of the laser measured by the laser on a plane around the calibration block; Calculating a first difference between the first height and the second height, and if the first difference is greater than the preset value, executing step six; If the first difference is smaller than the preset value, repeat steps 1 to 5 to recalibrate.
2. The calibration method of the glue dispensing machine according to claim 1, characterized in that: Also includes: Step 8: Control the laser to move to the laser measurement point; Step nine: obtaining a third height between the laser and the dot film measured by the laser; Step 10: Controlling the needle head to dispense a cross-intersecting glue path of a preset length on the dispensing sheet according to the third height, and obtaining the mechanical coordinates of the center point of the cross-intersecting glue path; Step 11: controlling the camera to capture an image of the cross-intersecting rubber road; Step 12: acquiring the coordinates of the center point of the cross-intersecting rubber road according to the image of the cross-intersecting rubber road; Step 13: Obtaining the relative position relationship between the camera and the needle according to the center point coordinates of the cross-intersecting glue path and the mechanical coordinates; Step 14: guiding the needle to perform glue dispensing according to the relative position relationship between the camera and the needle.
3. The calibration method of the glue dispensing machine according to claim 2, characterized in that: Before step 14, the method further includes: Step 15: Verify the relative position relationship between the camera and the needle; if the verification result is within the preset range, execute step 14; if the verification result is outside the preset range, repeat steps 8 to 13 until the verification result is within the preset range.
4. The calibration method of the glue dispensing machine according to claim 3, characterized in that: The step fifteen comprises: Controlling the needle to perform cross-dispensing at a preset mechanical coordinate distance of the center point of the cross-intersecting glue path to form a second cross-intersecting glue path; Controlling the camera to capture an image of the second cross-intersecting rubber road; Acquiring the center coordinates of the second cross-intersecting glue road according to the image of the second cross-intersecting glue road; According to the relative positional relationship between the camera and the needle, and the central coordinates of the second cross-intersecting glue path, the central mechanical coordinates of the second cross-intersecting glue path are obtained; Calculating the distance between the mechanical coordinates of the center of the second cross-intersecting glue path and the mechanical coordinates of the center point of the cross-intersecting glue path; If the distance is within the preset range, execute step fourteen; if the distance is outside the preset range, repeat steps eight to thirteen until the verification result is within the preset range.
5. The calibration method of the glue dispensing machine according to claim 3, characterized in that: Also includes: Step 16: Control the laser to move above the displacement sensor platform, obtain the laser value of the laser and obtain the first position of the current z-axis; Step 17: Control the needle to move above the displacement sensor platform, and control the z-axis to move downward. When the displacement sensor value changes to a second preset value, control the z-axis to stop moving downward, and obtain the second position of the current z-axis. Step 18: Calculating the relative position relationship between the laser and the needle in the z-axis direction according to the first position, the second position, the second preset value, and the laser value; Step 19: Based on the relative position relationship between the laser and the needle in the z-axis direction, the laser is used to guide the dispensing height of the needle in the z-axis direction.
6. The calibration method of the glue dispensing machine according to claim 5, characterized in that: Before the step 19, the method further includes: Step 20: Verify the relative position relationship between the laser and the needle in the z-axis direction; if the verification result is within the preset range, execute step 19; if the verification result is not within the preset range, repeat steps 16 to 18 and recalibrate.
7. The calibration method of the glue dispensing machine according to claim 6, characterized in that: The step 20 comprises: Guide the needle to dispense glue at a preset height onto the displacement sensor by the laser; Obtaining a measurement value of the displacement sensor; If the measured value of the displacement sensor is within the preset range, execute step 19; if the measured value is not within the preset range, repeat steps 16 to 18 for recalibration.
8. A calibration device for a dispensing machine, characterized in that: include: A control module, used for controlling the laser scanning to calibrate the edge of the block; A fitting module, used for fitting the laser center point of the calibration block according to the position of each edge; The control module is also used to control the camera to capture the image of the calibration block; The fitting module is also used to fit the visual center point of the calibration block according to the image calibration of the calibration block; A relative position relationship acquisition module, used to acquire the relative position relationship between the camera and the laser according to the coordinate position relationship between the laser center point and the visual center point; An execution module, used for guiding the laser to perform measurement through the camera according to the relative position relationship between the camera and the laser; A first verification module, used to verify the relative position relationship between the camera and the laser; The first verification module includes: the control module is used to control the camera to capture the central through-hole image of the calibration block; The first coordinate acquisition module is used to acquire the coordinates of the central through hole according to the central through hole image of the calibration block; the execution module is used to guide the laser output beam to the position of the central through hole according to the relative position relationship between the camera and the laser and the coordinates of the central through hole; A first height acquisition module, used for acquiring a first height of the laser measured by the laser at a central through hole position of the calibration block; A second height acquisition module, used for acquiring a second height of the laser measured by the laser on a plane around the calibration block; The first calculation module is used to calculate a first difference between the first height and the second height; if the first difference is greater than a preset value, the verification is successful; if the first difference is less than the preset value, the verification fails.
9. A calibration device for a dispensing machine, characterized in that: The calibration equipment of the dispensing machine includes: Dispensing machines, displacement sensors, calibration blocks, and electronic equipment to be calibrated; The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the calibration method for the dispensing machine described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the calibration method of the dispensing machine described in any one of claims 1-7 when executed.
