Glue path quality determination method, glue path segmentation model training method, device, system and medium

Through the pre-trained glue path segmentation model and training sample set adjustment technology, the inaccuracy problem of the glue path quality determination method under image clarity and light conditions is solved, and accurate judgment of the glue path quality is achieved.

CN118552483APending Publication Date: 2024-08-27SHENZHENSHI YUZHAN PRECISION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410574431.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing glue path quality determination methods are easily affected by factors such as image clarity, light conditions, and algorithm setting parameters, resulting in inaccurate glue path quality determination.

Method used

Provide a glue path quality determination method and a glue path segmentation model training method. Use the pre-trained glue path segmentation model to segment the product image, obtain the glue dispensing reference map and glue path map, and determine whether the quality of the glue path is through these images. Qualified, and adjust the image segmentation model through the training sample set to improve segmentation accuracy.

Benefits of technology

It improves the accuracy of determining the quality of the glue path, and can accurately segment the dispensing reference map from the product drawing without glue path and the glue path diagram from the product picture with glue path, ensuring the accurate judgment of the quality of the glue path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552483A
    Figure CN118552483A
Patent Text Reader

Abstract

The invention provides a glue path quality determination method, a glue path segmentation model training method, device and system and a medium. The glue path quality determination method comprises the following steps: obtaining product diagrams, wherein the product diagrams comprise a product diagram with a glue path and a product diagram without a glue path; a pre-trained glue path segmentation model is called to carry out graph segmentation on the product graph, a graph segmentation result is obtained, and the graph segmentation result comprises a glue dispensing reference graph and a glue path graph; and determining whether the quality of the glue path is qualified or not based on the glue dispensing reference map and the glue path map. By means of the method, the determination accuracy of the glue road quality can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of product inspection and relates to image processing technology, and in particular to a method for determining the quality of a rubber road, a method, device, system and medium for training a rubber road segmentation model. Background Art

[0002] In the manufacturing industry, glue dispensing is usually required to fix workpieces to ensure the firmness and shockproof performance of the product. In the glue dispensing process, in order to ensure the quality of glue dispensing and product quality, it is necessary to implement glue path quality control by determining the glue path quality of the glue path map.

[0003] In the related art, the glue road quality determination method technology is easily affected by aspects such as image clarity, lighting conditions and algorithm setting parameters. For example, when the edges of the glue road map are blurred or the binarization setting parameters are unreasonable, the feature extraction of the glue road map will be missing, resulting in the glue road quality determination method being inaccurate. Summary of the invention

[0004] In view of the above, it is necessary to provide a method for determining rubber road quality, a method, device, system and medium for training a rubber road segmentation model, which can solve the technical problem of poor accuracy in determining rubber road quality.

[0005] On the one hand, the present application provides a method for determining glue path quality, which includes: obtaining a product image, the product image including a product image with a glue path and a product image without a glue path, calling a pre-trained glue path segmentation model to perform image segmentation on the product image, and obtaining an image segmentation result, the image segmentation result including a glue dispensing reference image and a glue path image, and determining whether the quality of the glue path is qualified based on the glue dispensing reference image and the glue path image.

[0006] On the other hand, the present application provides a glue path segmentation model training method, the glue path segmentation model training method comprising: obtaining a training sample set, the training sample set comprising product images with glue paths and product images without glue paths, the product images with glue paths carrying glue path marks, and the product images without glue paths carrying glue dispensing reference marks, inputting the training sample set into a preset image segmentation model, so that the image segmentation model outputs multiple glue dispensing reference images, multiple glue path images, the category of each pixel point in each of the glue dispensing reference images, and the category of each pixel point in each of the glue path images based on the glue path marks and the glue dispensing reference marks carried in the training sample set, calculating the loss value of the image segmentation model based on the category of each pixel point in each of the glue dispensing reference images and the category of each pixel point in each of the glue path images and the training sample set, and adjusting the image segmentation model based on the loss value until the loss value is in a preconfigured range to update the image segmentation model to a glue path segmentation model.

[0007] On the other hand, the present application provides a glue road quality determination device, which includes: a memory, storing at least one instruction; and a processor, executing the at least one instruction to implement the glue road quality determination method, or to implement the glue road segmentation model training method.

[0008] On the other hand, the present application provides a glue path quality determination system, including a glue dispensing device and the glue path quality determination device, wherein the glue dispensing device is used to dispense glue on a product, photograph the product before and after glue dispensing, obtain a product image without a glue path and a product image with a glue path, and send the product image to the glue path quality determination device.

[0009] On the other hand, the present application provides a computer-readable storage medium, which stores at least one instruction. When the at least one instruction is executed by a processor in a glue road quality determination device, it implements the glue road quality determination method or the glue road segmentation model training method.

[0010] Since the glue path segmentation model is obtained through pre-training, the glue path segmentation model can accurately segment the glue dispensing reference map from the product map without glue paths and the glue path map from the product map with glue paths. Since the glue dispensing reference map includes the glue dispensing reference area that needs to be glued, and the glue path map includes the glue path area of ​​actual glue dispensing, the glue dispensing reference map and the glue path map can accurately determine whether the quality of the glue path is qualified, thereby improving the accuracy of determining the glue path quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 Schematic diagram of a system for determining glue path quality provided in one embodiment of the present application.

[0012] Figure 2 It is a flow chart of a method for determining glue path quality provided in one embodiment of the present application.

[0013] Figure 3a It is a schematic diagram of a dispensing reference diagram provided in an embodiment of the present application.

[0014] Figure 3b It is a schematic diagram of a glue path diagram provided in one embodiment of the present application.

[0015] Figure 4 It is a schematic diagram of a coating reference diagram provided in one embodiment of the present application.

[0016] Figure 5a It is a schematic diagram of a dispensing reference diagram provided in another embodiment of the present application.

[0017] Figure 5b It is a schematic diagram of a glue path diagram provided in another embodiment of the present application.

[0018] Figure 5c It is an overlay diagram of a glue dispensing reference diagram and a glue path diagram provided in an embodiment of the present application.

[0019] Figure 6 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0020] Figure 7 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0021] Figure 8 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0022] Fig. 9 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0023] Fig.10 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0024] Fig.11 It is a flow chart of a method for determining glue path quality provided by another embodiment of the present application.

[0025] Fig.12 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0026] Fig.13 It is a schematic diagram of the vertex coordinates of the dispensing reference area provided in one embodiment of the present application.

[0027] Fig.14 Schematic diagram of vertex coordinates of a covering reference area provided in one embodiment of the present application.

[0028] Fig.15 It is a schematic diagram of a glue dispensing overlay diagram provided in one embodiment of the present application.

[0029] Fig.16 Schematic diagram of a target glue path area provided in one embodiment of the present application.

[0030] Fig.17 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0031] Fig.18 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0032] Fig.19 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0033] Fig. 20This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0034] Fig.21 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0035] Fig. 22 This is a flow chart of a method for determining glue path quality provided in yet another embodiment of the present application.

[0036] Fig.23 It is a flowchart of a rubber road segmentation model training method provided in one embodiment of the present application.

[0037] Fig.24 It is a flowchart of a method for training a rubber road segmentation model provided in another embodiment of the present application.

[0038] Fig.25 It is a structural diagram of a device for determining glue path quality provided in one embodiment of the present application. DETAILED DESCRIPTION

[0039] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0040] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.

[0041] The embodiments of the present application provide a method for determining the quality of a rubber road and a method for training a rubber road segmentation model. The method for determining the quality of a rubber road and the training of a rubber road segmentation model can be applied to one or more rubber road quality determination devices.

[0042] The glue path quality determination device and the glue dispensing device can form a glue path quality determination system, such as Figure 1, which is a schematic diagram of a system for determining the quality of a rubber road provided by an embodiment of the present application. The device for determining the quality of a rubber road 10 can be an electronic device such as a server, a cloud server, a mobile phone, a tablet computer, and a computer. The present application does not limit the device for determining the quality of a rubber road. Figure 1 In the embodiment, the glue path quality determination device 10 can be connected to the glue dispensing device 20 by means of bus, Bluetooth (BT), wireless fidelity (Wi-Fi), etc., and the present application does not limit the communication connection method. The glue dispensing device 20 can dispense glue on the product, take pictures of the product before and after dispensing glue, obtain product pictures without glue path and product pictures with glue path, and send the product pictures without glue path and product pictures with glue path to the glue path quality determination device 10 for the glue path quality determination device 10 to implement the glue path quality determination method and / or glue path segmentation model training method provided in the embodiment of the present application, thereby determining the glue path quality.

[0043] The dispensing device 20 may include a dispensing machine and a photographing device, which may be a camera. The photographing device can accurately capture product images before, during and after dispensing.

[0044] In other embodiments of the present application, the glue path quality determination device can be integrated into the glue dispensing device, so that the integrated device can dispense glue on the product, take pictures of the product before and after glue dispensing, obtain product pictures without glue paths and product pictures with glue paths, and determine the glue path quality based on the product pictures without glue paths and the product pictures with glue paths.

[0045] like Figure 2 FIG. 1 is a flowchart of a method for determining the quality of a glue path provided by an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be adjusted according to actual requirements, and some steps can be omitted. The method for determining the quality of a glue path is applied to a device for determining the quality of a glue path, such as Figure 1 The glue path quality determination device 10 is shown.

[0046] S21, obtain product images.

[0047] In some embodiments of the present application, product images include product images with glue paths and product images without glue paths. The product images with glue paths are images obtained by photographing the product after glue dispensing, and the product images without glue paths are images obtained by photographing the product before glue dispensing. The product can be any workpiece that requires glue dispensing, for example, the product can be electronic components, semiconductor chips, printed circuit boards (PCBs), metal components and other workpieces. The present application does not limit the products.

[0048] In some embodiments of the present application, the glue path quality determination device may receive an image of the product before and after dispensing, captured by a dispensing device (e.g., the dispensing device 10 shown in Figure 1 ) as a product image.

[0049] In other embodiments of the present application, the glue path quality determination device may also obtain the product image in other ways, such as by receiving the input of the user's image, or by connecting to an external database that provides the product image. The present application does not limit the method of obtaining the product image.

[0050] S22. Invoke the pre-trained glue path segmentation model to perform image segmentation on the product image, and obtain an image segmentation result, which includes a dispensing reference image and a glue path image.

[0051] In some embodiments of the present application, the dispensing reference image and the glue path image may be mask images or binary images. The dispensing reference image includes a dispensing reference area that needs to be dispensed, and the glue path image includes a glue path area. The pixels corresponding to the pixels of the dispensing reference area in the dispensing reference image and the pixels of the non-dispensing reference area may be set to different values. The pixels corresponding to the pixels of the glue path area in the glue path image and the pixels of the non-glue path area may be set to different values. For example, all the pixels corresponding to the pixels of the dispensing reference area in the dispensing reference image may be set to 1, and the pixels of the non-dispensing reference area may be set to 0. All the pixels corresponding to the pixels of the glue path area in the glue path image may be set to 1, and the pixels of the non-glue path area may be set to 0. The dispensing reference area may be in various shapes such as a horizontal or vertical "one" shape, a "square" shape, a "day" shape, or an arc shape. The glue path area corresponds to the reference area. For example, when the dispensing reference area is in the shape of "one", the glue path area is also in the shape of "one"; when the dispensing reference area is in the shape of "square", the glue path area is also in the shape of "square"; when the dispensing reference area is in the shape of "day", the glue path area is also in the shape of "day".

[0052] In some embodiments of the present application, the glue path quality determination device invokes the glue path segmentation model to perform image segmentation on the product image without a glue path to obtain a dispensing reference image, and invokes the glue path segmentation model to perform image segmentation on the product image with a glue path to obtain a glue path image.

[0053] In other embodiments of the present application, if the glue path in the product is a loop and encloses an area that does not require glue application (coated area) when enclosing the area without the glue path, the graph segmentation result obtained by graph segmentation of the product graph without the glue path may further include a coating reference graph, and the coating reference graph may be a mask graph or a binary graph. The coating reference graph includes one or more coating reference areas, and the coating reference area is an area without glue application surrounded by the glue path. For example, the pixel values corresponding to all pixel points constituting the coating reference area in the coating reference graph are set to 1, and the pixel values of pixel points in non-coating reference areas are set to 0.

[0054] For example, as Figure 3a shown, it is a schematic diagram of a glue application reference graph provided by an embodiment of the present application. As Figure 3b shown, it is a schematic diagram of a glue path graph provided by an embodiment of the present application. As Figure 4 shown, it is a schematic diagram of a coating reference graph provided by an embodiment of the present application. Figure 3a The glue application reference area in the glue application reference graph shown is a horizontally lying "Ri" shape, Figure 3a and the grayish-white part in it is the glue application reference area. Figure 3b The glue path area in the glue path graph shown is a horizontally lying "Ri" shape, Figure 3b and the light gray part in it is the glue path area. Figure 4 The coating reference area in the coating reference graph shown is the area where the two "kou" in the "Ri" character are located. Figure 4 (a) of Figure 4 represents the first coating reference graph, Figure 4 (b) of Figure 4 represents the second coating reference graph, Figure 4 and the white parts in (a) of Figure 3a and Figure 3b and (b) of Figure 4 both represent the coating reference area. Figure 3a The coating reference area in (a) of Figure 3b corresponds to the larger black rectangular block inside the horizontally lying "Ri" character of Figure 5a and Figure 5a and the coating reference area in (b) of Figure 5a corresponds to the smaller black rectangular block inside the horizontally lying "Ri" character of Figure 5a and Figure 5a and Figure 5a and Figure 5bThe glue path area in the shown glue path diagram is in the shape of "one", Figure 5b and the light gray part in Figure 5b is the glue path area, and the coordinates of the upper left vertex of the glue path area in Figure 5b are (nx, ny), and the coordinates of the lower left vertex of the glue path area in Figure 5b are (nx, ny'), and the coordinates of the upper right vertex of the glue path area in Figure 5b are (nx', ny), and the coordinates of the lower right vertex of the glue path area in Figure 5c is Figure 5a and Figure 5b is the superimposed diagram of

[0055] S23. Based on the dispensing reference diagram and the glue path diagram, determine whether the quality of the glue path is qualified.

[0056] In some embodiments of the present application, the process of the glue path quality determination device for determining whether the quality of the glue path is qualified based on the dispensing reference diagram and the glue path diagram includes: S231: Determine whether the quality of the glue path is qualified based on the coordinates of each feature point in the dispensing reference area and the pixel information of each column in the glue path area, and / or, S232: Determine whether the quality of the glue path is qualified based on the coordinates of each feature point in the dispensing reference area and the pixel information of each row in the glue path area.

[0057] Among them, the feature point can be a vertex or a pixel point set by custom, and the present application does not limit this.

[0058] Since the glue path segmentation model is obtained through pre-training, the glue path segmentation model can accurately segment the dispensing reference diagram from the product diagram without a glue path and the glue path diagram from the product diagram with a glue path. Since the dispensing reference diagram includes the dispensing reference area that needs to be dispensed, and the glue path diagram includes the glue path area of actual dispensing, the quality of the glue path can be accurately determined through the dispensing reference diagram and the glue path diagram, so the accuracy of determining the quality of the glue path can be improved.

[0059] In some embodiments of the present application, when the product diagram without a glue path includes a coating area, the graph segmentation result may include a coating reference diagram. For example, when the dispensing reference area in the product diagram without a glue path is in the shape of "day" or "square frame with a dot in the middle", the product diagram without a glue path has a coating area in the shape of "square" or "square frame with a dot in the middle", and at this time the graph segmentation result includes a coating reference diagram; when the product diagram without a glue path does not include a coating area, the graph segmentation result does not include a coating reference diagram. For example, when the dispensing reference area in the product diagram without a glue path is in the shape of "one", the product diagram has no coating area, and at this time the graph segmentation result has no coating reference diagram; therefore, there are two cases for the graph segmentation result, and the methods for determining the quality of the glue path in these two cases will be different. Therefore, the embodiments of the present application will separately describe the methods for determining the quality of the glue path in these two cases. Among them, the following Figures 6 to 12 This is a description of the method for determining the quality of the glue path when the output of the glue path segmentation model does not include the coverage reference area. Figure 13-Figure 22 It is a description of the method for determining the quality of the glue path when the map output by the glue path segmentation model includes the coating reference area.

[0060] In some embodiments of the present application, each column of pixel information in the glue path map includes the highest point coordinates and the lowest point coordinates of each column of pixels, such as Figure 6 FIG. 2 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application. S231 is a step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path map, and includes the following steps:

[0061] S61, determining a first standard width of the glue dispensing reference area based on the coordinates of each feature point in the glue dispensing reference area.

[0062] In some embodiments of the present application, Figure 5a As shown, the coordinates of each characteristic point in the glue dispensing reference area may include the coordinates of the upper left vertex and the lower left vertex of the glue dispensing standard area, or the coordinates of each characteristic point in the glue dispensing reference area may include the coordinates of the upper right vertex and the lower right vertex of the glue dispensing standard area. The glue path quality determination device may determine the difference between the coordinates of the upper left vertex and the coordinates of the lower left vertex of the glue dispensing standard area or the absolute value of the difference as the first standard width, or the glue path quality determination device may determine the difference between the coordinates of the upper right vertex and the lower right vertex of the glue dispensing standard area or the absolute value of the difference as the first standard width.

[0063] Among them, whether it is necessary to take an absolute value of the difference may depend on the selection of the origin of the pixel coordinate system corresponding to the glue dispensing reference area. For example, when the origin of the pixel coordinate system established in the glue dispensing reference area is the pixel point in the lower left corner, the glue path quality determination device may determine the difference between the coordinates of the upper left vertex and the coordinates of the lower left vertex of the glue dispensing standard area as the first standard width. For example, when the origin of the pixel coordinate system established in the glue path area and the glue dispensing reference area is the pixel point in the upper left corner, the glue path quality determination device may determine the absolute value of the difference between the coordinates of the upper left vertex and the coordinates of the lower left vertex of the glue dispensing standard area as the first standard width.

[0064] S62: Determine a first standard width range according to the first preset value and the first standard width.

[0065] In some embodiments of the present application, the first preset value can be customized, and the present application does not limit this. For example, the first preset value can be any value of 0.05, 0.1, 0.2, 0.5, etc. The first standard width range can include a first standard width upper limit and a first standard width lower limit. The glue road quality determination device can sum or weighted sum the first standard width and the first preset value to obtain the first standard width upper limit, and subtract or weighted subtract the first standard width from the first preset value to obtain the first standard width lower limit. Among them, the weight coefficient for weighted summation and weighted subtraction of the first standard width and the first preset value can be customized, and the present application does not limit this.

[0066] S63, determining the width of each column of pixels in the glue path area based on the highest point coordinates and the lowest point coordinates of each column of pixels in the glue path area.

[0067] In some embodiments of the present application, each column of pixels in the glue path area has a corresponding width, and the highest point coordinate of each column of pixels may be the coordinate of the pixel point corresponding to the smallest vertical coordinate in each column of pixels, and the lowest point coordinate may be the coordinate of the pixel point corresponding to the largest vertical coordinate in each column of pixels. The glue path quality determination device may determine the difference between the highest point coordinate of each column of pixels and the lowest point coordinate of the column of pixels or the absolute value of the difference as the width of each column of pixels.

[0068] S64, determining whether the number of column pixel widths outside the first standard width range in the glue path area is greater than a first preset number.

[0069] In some embodiments of the present application, the first preset number can be customized, and the present application does not limit this. For example, the first preset number can be any value selected from 1, 2, 3, etc., or it can be the number of all column pixels in the glue path area. There are multiple columns of pixels in the glue path area. After calculating the width of each column of pixels, the number of columns of pixels (i.e., the number of column pixels) outside the first standard width range is counted based on the width of the multiple columns of pixels, or it is counted whether there are a preset number of adjacent columns of pixels that are all outside the first standard width range. The adjacent preset number can be any value selected from 1 to 200, or other values.

[0070] In this embodiment, if the number of column pixel widths in the glue path area that are outside the first standard width range is greater than the first preset number, step S65 is executed, or if the number of column pixel widths in the glue path area that are outside the first standard width range is less than or equal to the first preset number, step S66 is executed. When statistics show that there are a preset number of adjacent column pixels that are all outside the first standard width range, step S65 is executed, otherwise step S66 is executed.

[0071] S65, determine that the glue path is unqualified.

[0072] In some embodiments of the present application, the situation that the width of the column pixels in the glue path area is outside the first standard width range at least includes the situation that the width of the column pixels is greater than the upper limit of the first standard width and the width of the column pixels is less than the lower limit of the first standard width. If the width of the column pixels in the glue path area is greater than the upper limit of the first standard width, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the glue width is too large, or if the width of the column pixels in the glue path area is less than the lower limit of the first standard width, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the glue width is too small.

[0073] In this embodiment, if the glue width is too large, the glue path will overflow, affecting the appearance of the finished product. If the glue width is too small, the finished product will not be fully attached and / or the waterproof effect will be poor. Therefore, if the number of column pixel widths outside the first standard width range in the glue path area is greater than the first preset number, it is determined that the glue path quality is unqualified, and a prompt is output to remind timely measures to correct and improve, so as to ensure that the product quality meets the requirements.

[0074] S66, confirm that the glue path is qualified.

[0075] In this embodiment, when the number of column pixel widths outside the first standard width range in the glue path area is less than or equal to the first preset number, it means that the defects existing in the glue path are within the allowable error range, so it can be determined that the glue path is qualified.

[0076] In some embodiments of the present application, the information of each column of pixels in the glue path area includes the coordinates of the highest point and the lowest point of each column of pixels in the glue path area, such as Figure 7 FIG. 2 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application. The method for determining the quality of a glue path also includes:

[0077] S71, superimposing the glue dispensing reference map and the glue path map so that the glue dispensing reference area and the glue path area are superimposed to form a first superimposed map.

[0078] In some embodiments of the present application, Figure 5c As shown, by superimposing the glue dispensing reference area and the glue path area, each column of pixel points in the glue dispensing reference area can correspond to each column of pixel points in the glue path area (in the same column).

[0079] S72, determining the upper glue margin and the lower glue margin of each column of pixels in the glue path area based on the coordinates of each feature point in the glue reference area of ​​the first overlay image and the highest point coordinates and the lowest point coordinates of each column of pixels in the glue path area.

[0080] In some embodiments of the present application, each column of pixels has a corresponding upper glue margin and a lower glue margin, such as Figure 5c As shown, the sizes of the upper glue margin and the lower glue margin are D1 and D2 respectively. The highest point of each column of pixels can be the pixel point corresponding to the smallest or largest ordinate in the column, and the lowest point of each column of pixels can be the pixel point corresponding to the largest or smallest ordinate in the column. Each feature point in the glue dispensing reference area includes a feature point (pixel point) corresponding to the highest point of each column of pixels in the glue path area and a feature point (pixel point) corresponding to the lowest point of each column of pixels in the glue path area, wherein the feature point corresponding to the highest point of each column of pixels in the glue dispensing reference area is the highest point and the pixel point in the same column with the largest or smallest ordinate, and the feature point corresponding to the lowest point of each column of pixels in the glue dispensing reference area is the lowest point and the pixel point in the same column with the largest or smallest ordinate. The glue path quality determination device can determine the difference between the coordinates of the highest point of each column of pixels in the glue path area and the coordinates of the feature point corresponding to the highest point in the glue dispensing reference area, or the absolute value of the difference, as the upper glue margin of each column of pixels in the glue path area, and determine the difference between the coordinates of the lowest point of each column of pixels in the glue path area and the coordinates of the feature point corresponding to the lowest point in the glue dispensing reference area, or the absolute value of the difference as the lower glue margin of each column of pixels in the glue path area.

[0081] S73, determining whether the number of upper glue margins and / or lower glue margins outside the first preset range in the glue path area is greater than a second preset number.

[0082] In some embodiments of the present application, the first preset range includes a first upper threshold and a first lower threshold, and the first upper threshold, the first lower threshold, the unit of the first upper threshold, the unit of the first lower threshold, and the second preset number can all be customized or converted, and the present application does not limit this. For example, the first preset range can be 0mm-1.1mm, wherein 0mm represents the first lower threshold, 1.1mm represents the first upper threshold, and the second preset number can be 1, 2, 3, or 1000, etc. There are multiple columns of pixels in the glue path area. After calculating the upper glue margin or lower glue margin of each column of pixels, the upper glue margin or lower glue margin of the multiple columns of pixels is counted to determine how many upper glue margins or lower glue margins are outside the first preset range, or whether there are upper glue margins or lower glue margins of adjacent preset number of columns of pixels that are outside the first preset range. The adjacent preset number can be any value from 1 to 200, or other values. In this embodiment, if the number of upper glue margins and / or lower glue margins in the glue path area that are outside the first preset range is greater than the second preset number, step S74 is executed, or if the number of upper glue margins and / or lower glue margins in the glue path area that are outside the first preset range is less than or equal to the second preset number, step S75 is executed. When there are upper glue margins or lower glue margins of adjacent preset number of columns of pixels that are outside the first preset range, step S74 is executed, otherwise step S75 is executed.

[0083] S74, determine that the glue path is unqualified.

[0084] In some embodiments of the present application, the situation where the upper glue margin or the lower glue margin in the glue path area is outside the first preset range may at least include the situation where the upper glue margin or the lower glue margin is greater than the first upper limit threshold and the upper glue margin or the lower glue margin is less than the first lower limit threshold. If the upper glue margin or the lower glue margin in the glue path area is greater than the first upper limit threshold, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the upper glue margin or the lower glue margin is too large, or if the upper glue margin or the lower glue margin in the glue path area is less than the first lower limit threshold, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the upper glue margin or the lower glue margin is too small.

[0085] In this embodiment, if the upper glue margin or the lower glue margin is too large, it may lead to poor bonding and waterproofing of the finished product, and if the upper glue margin or the lower glue margin is too small, it may lead to glue overflow, affecting the appearance of the finished product. Therefore, if the number of upper glue margins and / or lower glue margins outside the first preset range in the glue path area is greater than the second preset number, it is determined that the glue path quality is unqualified, and timely measures can be taken to correct and improve it to ensure that the product quality meets the requirements.

[0086] S75, determine that the glue path is qualified.

[0087] In this embodiment, the number of upper glue margins and / or lower glue margins outside the first preset range in the glue path area is less than or equal to the second preset number, indicating that the defects existing in the glue path are within the allowable error range, so the glue path can be determined to be qualified.

[0088] In some embodiments of the present application, the pixel information of each column in the glue path area includes the highest point coordinates and the lowest point coordinates of each column of pixels in the glue path area, and the coordinates of each feature point in the glue dispensing reference area include the highest feature point coordinates and the lowest feature point coordinates of the glue dispensing reference area. Figure 8 FIG. 2 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application. Step S231 determines whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path area, and includes the following steps:

[0089] S81, determining whether the number of the highest point coordinates in the glue path area that are above the corresponding highest feature point coordinates in the glue dispensing reference area and / or the number of the lowest point coordinates in the glue dispensing reference area that are below the corresponding lowest feature point coordinates are greater than a third preset number.

[0090] In some embodiments of the present application, the highest point coordinates of each column of pixels in the glue path area have corresponding highest feature point coordinates in the glue dispensing reference area, and the lowest point coordinates of each column of pixels in the glue path area have corresponding lowest feature point coordinates in the glue dispensing reference area. The third preset number can be customized, and the present application does not limit this. For example, the third preset number can be 1, 2, or 1200, etc.

[0091] In this embodiment, if the number of the highest point coordinates in the glue path area that are above the corresponding highest feature point coordinates in the glue dot reference area and / or the number of the lowest point coordinates in the glue path area that are below the corresponding lowest feature point coordinates in the glue dot reference area is greater than the third preset number, step S82 is executed; if the number of the highest point coordinates in the glue path area that are above the corresponding highest feature point coordinates in the glue dot reference area and / or the number of the lowest point coordinates in the glue path area that are below the corresponding lowest feature point coordinates in the glue dot reference area is less than or equal to the third preset number, step S83 is executed.

[0092] S82, determine that the glue path is unqualified.

[0093] In some embodiments of the present application, the situation where the coordinates of the highest point in the glue path area are above the corresponding highest feature point coordinates in the glue dot reference area and the coordinates of the lowest point in the glue path area are below the corresponding lowest feature point coordinates in the glue dot reference area can be called glue overflow.

[0094] In this embodiment, glue overflows during glue overflow, affecting the appearance of the finished product. Therefore, if the number of the highest point coordinates in the glue path area that are above the corresponding highest feature point coordinates in the glue dispensing reference area and / or the number of the lowest point coordinates in the glue path area that are below the corresponding lowest feature point coordinates in the glue dispensing reference area is greater than the third preset number, it is determined that the glue path quality is unqualified, and timely measures can be taken to correct and improve it to ensure that the product quality meets the requirements.

[0095] S83, determine whether the glue path is qualified.

[0096] In this embodiment, when the number of the highest point coordinates above the corresponding highest feature point coordinates in the glue dot reference area and / or the number of the lowest point coordinates below the corresponding lowest feature point coordinates in the glue dot reference area in the glue path area is less than or equal to a third preset number, it means that the defects existing in the glue path are within the allowable error range, and therefore the glue path can be determined to be qualified.

[0097] In some embodiments of the present application, the pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels, such as Fig. 9FIG. 2 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application. Step S232 determines whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each row of pixel information in the glue path area. The step includes the following steps:

[0098] S91, determining a first standard length of the glue dispensing reference area based on the coordinates of each feature point in the glue dispensing reference area.

[0099] In some embodiments of the present application, each characteristic point in the glue dispensing reference area may include the upper left vertex and the lower left vertex of the glue dispensing reference area, or each characteristic point in the glue dispensing reference area may include the upper right vertex and the lower right vertex of the glue dispensing reference area. The glue path quality determination device may determine the difference between the coordinates of the upper left vertex and the coordinates of the lower left vertex of the glue dispensing reference area or the absolute value of the difference as the first standard length, or the glue path quality determination device may determine the difference between the coordinates of the upper right vertex and the lower right vertex of the glue dispensing reference area or the absolute value of the difference as the first standard length.

[0100] S92: Determine a first standard length range according to the second preset value and the first standard length.

[0101] In some embodiments of the present application, the second preset value can be customized, and the present application does not limit this. For example, the second preset value can be any value of 0.05, 0.1, 0.2, 0.5, etc. The first standard length range can include the first standard length upper limit to the first standard length lower limit. The rubber road quality determination device can sum or weighted sum the first standard length and the second preset value to obtain the first standard length upper limit, and subtract or weighted subtract the first standard length from the second preset value to obtain the first standard length lower limit. Among them, the weight coefficient for weighted summation and weighted subtraction of the first standard length and the second preset value can be customized, and the present application does not limit this.

[0102] S93, determining the length of each row of pixels in the glue path area based on the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the glue path area.

[0103] In some embodiments of the present application, each row of pixels in the glue path area has a corresponding length, the leftmost point coordinate of each column of pixels may be the coordinate of the pixel corresponding to the smallest horizontal coordinate in each column of pixels, and the rightmost point coordinate may be the coordinate of the pixel corresponding to the largest horizontal coordinate in each column of pixels. The glue path quality determination device may determine the difference between the rightmost point coordinate of each column of pixels and the leftmost point coordinate of the column of pixels or the absolute value of the difference as the length of each column of pixels.

[0104] S94, determining whether the number of row pixel lengths outside the first standard length range in the glue path area is greater than a fourth preset number.

[0105] In some embodiments of the present application, the fourth preset number can be customized, and the present application does not limit this. For example, the fourth preset number can be 1, 2, 3, or the number of all rows of pixels in the glue path area. There are multiple rows of pixels in the glue path area. After calculating the length of each row of pixels, based on the length of the multiple rows of pixels, statistics are performed on how many rows of pixels (i.e., the number of rows of pixels) are outside the first standard length range, or statistics are performed on whether there are a preset number of adjacent rows of pixels that are all outside the first standard length range. The adjacent preset number can be any value from 1 to 200, or other values.

[0106] In this embodiment, if the number of row pixel lengths in the glue path area that are outside the first standard length range is greater than the fourth preset number, step S95 is executed, or if the number of row pixel lengths in the glue path area that are outside the first standard length range is less than or equal to the fourth preset number, step S96 is executed. When statistics show that there are a preset number of adjacent row pixels that are all outside the first standard length range, step S95 is executed, otherwise step S96 is executed.

[0107] S95, determine that the glue path is unqualified.

[0108] In some embodiments of the present application, the case where the length of the row pixels in the glue path area is outside the first standard length range may at least include the case where the length of the row pixels is greater than the upper limit of the first standard length and the length of the row pixels is less than the lower limit of the first standard length. If the length of the row pixels in the glue path area is greater than the upper limit of the first standard length, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue length is too long, or if the length of the row pixels in the glue path area is less than the lower limit of the first standard length, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue length is too short.

[0109] S96, confirm that the glue path is qualified.

[0110] In this embodiment, when the number of row pixel lengths outside the first standard length range in the glue path area is less than or equal to a fourth preset number, it represents that the defects existing in the glue path are within the allowable error range, and therefore the glue path can be determined to be qualified.

[0111] In some embodiments of the present application, the pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels, such as Fig.10 FIG. 2 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application. The method for determining the quality of a glue path also includes:

[0112] S101, superimposing a glue dispensing reference map and a glue path map, so that the glue dispensing reference area and the glue path area are superimposed to form a second superimposed map.

[0113] In some embodiments of the present application, by superimposing the glue dispensing reference area and the glue path area, each row of pixel points in the glue dispensing reference area can correspond to each row of pixel points in the glue path area (in the same row).

[0114] S102, determining the left glue margin and the right glue margin of each row of pixels in the glue path area based on the coordinates of each feature point in the glue dispensing reference area of ​​the second overlay image and the coordinates of the leftmost point and the rightmost point of each row of pixels in the glue path area.

[0115] In some embodiments of the present application, each row of pixels has a corresponding left margin and right margin, such as Figure 5c As shown, the sizes of the left glue margin and the right glue margin are L1 and L2 respectively. The feature points in the glue dispensing reference area after superposition include the leftmost feature point (pixel point) corresponding to the leftmost point of each row of pixels in the glue path area, and the rightmost feature point (pixel point) corresponding to the rightmost point of each row of pixels in the glue path area. The glue path quality determination device can determine the difference between the coordinates of the leftmost point of each row of pixels in the glue path area and the coordinates of the leftmost feature point corresponding to the leftmost point in the glue dispensing reference area, or the absolute value of the difference as the left glue margin of each row of pixels in the glue path area, and determine the difference between the coordinates of the rightmost point of each row of pixels in the glue path area and the coordinates of the rightmost feature point corresponding to the rightmost point in the glue dispensing reference area, or the absolute value of the difference as the right glue margin of each row of pixels in the glue path area.

[0116] S103, determining whether the number of left glue margins and / or right glue margins outside the second preset range in the glue path area is greater than a fifth preset number.

[0117] In some embodiments of the present application, the second preset range includes a second upper threshold and a second lower threshold, and the second upper threshold, the second lower threshold, the unit of the second upper threshold, the unit of the second lower threshold and the fifth preset number can be customized or converted, and the present application does not limit this. For example, the second preset range can be 0.3mm-0.7mm, wherein 0.3mm represents the second lower threshold, 0.7mm represents the second upper threshold, and the fifth preset number can be 1, 2, 3 or 2000, etc. There are multiple rows of pixels in the glue path area. After calculating the left glue margin or right glue margin of each row of pixels, the number of left glue margins or right glue margins outside the second preset range is counted based on the left glue margins or right glue margins of the multiple rows of pixels, or whether there are left glue margins or right glue margins of adjacent preset number of columns of pixels outside the second preset range. The adjacent preset number can be any value from 1 to 200, or other values.

[0118] In this embodiment, if the number of left glue margins and / or right glue margins in the glue path area that are outside the second preset range is greater than the fifth preset number, step S104 is executed, or if the number of left glue margins and / or right glue margins in the glue path area that are outside the second preset range is less than or equal to the fifth preset number, step S105 is executed. When counting whether there are left glue margins or right glue margins of adjacent preset number of columns of pixels that are outside the second preset range, step S104 is executed, otherwise step S105 is executed.

[0119] S104, determining that the glue path is unqualified.

[0120] In some embodiments of the present application, the situation where the left rubber margin or the right rubber margin is outside the second preset range may at least include the situation where the upper left rubber margin or the right rubber margin is greater than the second upper limit threshold and the left rubber margin or the right rubber margin is less than the second lower limit threshold. If the upper left rubber margin or the right rubber margin is greater than the second upper limit threshold, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue margin is too large, or if the left rubber margin or the right rubber margin is less than the second lower limit threshold, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue margin is too small.

[0121] S105, determine whether the glue path is qualified.

[0122] In this embodiment, the number of left glue margins and / or right glue margins outside the second preset range in the glue path area is less than or equal to the fifth preset number, indicating that the defects existing in the glue path are within the allowable error range, so the glue path can be determined to be qualified.

[0123] In some embodiments of the present application, the pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels, and the coordinates of each feature point in the glue reference area include the leftmost feature point coordinates and the rightmost feature point coordinates. Fig.11 FIG. 1 is a flow chart of a method for determining the quality of a glue path provided by another embodiment of the present application, comprising the following steps:

[0124] S111, determining whether the number of leftmost point coordinates located to the left of the corresponding leftmost feature point coordinate in the glue path area and / or the number of rightmost point coordinates located to the right of the rightmost feature point coordinate in the glue dispensing reference area is greater than a sixth preset number.

[0125] In some embodiments of the present application, the sixth preset number can be customized, and the present application does not limit this. For example, the sixth preset number can be 1, 2, 3, or 1500.

[0126] In this embodiment, if the number of the leftmost point coordinates to the left of the corresponding leftmost feature point coordinate in the dispensing reference area and / or the number of the rightmost point coordinates below the rightmost feature point coordinate in the dispensing reference area in the glue path area is greater than the sixth preset number, step S112 is executed; if the number of the leftmost point coordinates to the left of the corresponding leftmost feature point coordinate in the dispensing reference area and / or the number of the rightmost point coordinates below the rightmost feature point coordinate in the dispensing reference area in the glue path area is less than or equal to the sixth preset number, step S113 is executed.

[0127] S112. Determine that the glue path is unqualified.

[0128] In some embodiments of the present application, the situation where the leftmost point coordinate in the glue path area is to the left of the corresponding leftmost feature point coordinate in the dispensing reference area and the rightmost point coordinate in the glue path area is to the right of the corresponding rightmost feature point coordinate in the dispensing reference area can be referred to as glue overflow.

[0129] S113. Determine that the glue path is qualified.

[0130] In this embodiment, the number of the leftmost point coordinates to the left of the corresponding leftmost feature point coordinate in the dispensing reference area and / or the number of the rightmost point coordinates below the rightmost feature point coordinate in the dispensing reference area in the glue path area is less than or equal to the sixth preset number, indicating that the defects existing in the glue path are within the allowable error range. Therefore, it can be determined that the glue path is qualified.

[0131] In some embodiments of the present application, the glue path may include multiple glue path segments. As shown in Fig.13 For example, the horizontally lying "day" - shaped glue path has 5 glue path segments. Fig.13 This is only an example. In other embodiments, the glue path may include 3 segments, 4 segments or more than 4 segments. The graph segmentation result further includes a covering reference graph. The dispensing reference graph includes a dispensing reference area, and the covering reference graph includes a covering reference area. As shown in Fig.12 is a flowchart of a method for determining the quality of a glue path provided by another embodiment of the present application. Step S23 for determining whether the quality of the glue path is qualified based on the dispensing reference graph and the glue path graph includes the following steps:

[0132] S121. Respectively determine the feature point coordinates of the dispensing reference area in the dispensing reference graph and the feature point coordinates of the covering reference area in the covering reference graph.

[0133] In some embodiments of the present application, the characteristic point coordinates of the dispensing reference area include the coordinates of each vertex of the dispensing reference area in the dispensing reference area. The coordinates of the characteristic points of the covering reference area include the coordinates of each vertex of the covering reference area in the covering reference diagram. The glue path quality determination device can use a detection algorithm to detect the coordinates of each vertex of the dispensing reference area in the dispensing reference diagram and the coordinates of each vertex of the covering reference area in the covering reference diagram.

[0134] Among them, the detection algorithm can be an edge detection algorithm. For example, the Canny edge detection algorithm.

[0135] For example, if the dispensing reference area and the glue path area in the glue path area are both in the shape of a horizontally lying "日" character, and the covering reference area is two "口" in the horizontally lying "日" character, so there are a total of two rectangular covering reference areas, as Fig.13 shown, is a schematic diagram of the vertex coordinates of the dispensing reference area provided by an embodiment of the present application. Fig.13 In the figure, the coordinates of the upper left vertex of the dispensing reference area are (bx, by), Fig.13 In the figure, the coordinates of the lower left vertex of the dispensing reference area are (bx, by'), Fig.13 In the figure, the coordinates of the upper right vertex of the dispensing reference area are (bx', by), Fig.13 In the figure, the coordinates of the lower right vertex of the dispensing reference area are (bx', by'). As Fig.14 shown, is a schematic diagram of the vertex coordinates of the covering reference area provided by an embodiment of the present application. Fig.14 The coordinates of the four vertices of the (a) first covering reference area in Fig.14 The coordinates of the four vertices of the (b) second covering reference area in Fig.14 The coordinates of the four vertices in (a) are (lx, ly), (lx, ly'), (lx', ly), (lx', ly') respectively, Fig.14 The coordinates of the four vertices in (b) are (rx, ry), (rx, ry'), (rx', ry), (rx', ry') respectively.

[0136] S122, superimpose the dispensing reference diagram, the glue path diagram and the covering reference diagram to form a dispensing superimposed diagram.

[0137] For example, as Fig.15 shown, is a schematic diagram of the dispensing superimposed diagram provided by an embodiment of the present application. Among them, the dispensing superimposed diagram carries the characteristic point coordinates of the dispensing reference area and the characteristic point coordinates of the covering reference area.

[0138] S123, determining the target glue path area in the glue overlay image and the coordinates of each feature point of the target glue path area based on the feature point coordinates of the glue reference area in the glue overlay image and the feature point coordinates of the coating reference image.

[0139] In some embodiments of the present application, if the glue dot reference area in the glue dot reference area and the glue path area in the glue path area are both in the shape of a horizontal "sun", multiple target glue path areas can be determined according to the coordinates of each feature point in the glue dot reference area and the wrapping reference area.

[0140] For example, the first target glue path area can be determined according to the coordinates of the upper left vertex of the glue reference area (bx, by), the coordinates of the upper right vertex of the glue reference area (bx', by), the coordinates of the upper left vertex of the first coating reference area (lx, ly), and the coordinates of the upper right vertex of the first coating reference area (lx', ly). The second target glue path area can be determined according to the coordinates of the upper left vertex of the glue reference area (bx, by), the coordinates of the lower left vertex of the glue reference area (bx, by'), the coordinates of the upper left vertex of the first coating reference area (lx, ly), and the coordinates of the lower left vertex of the first coating reference area (lx, ly'). The third target glue path area can be determined according to the coordinates of the upper right vertex of the glue reference area (bx', by), the coordinates of the lower right vertex of the glue reference area (bx', by'), the coordinates of the upper right vertex of the second coating reference area (rx', ry), and the coordinates of the lower right vertex of the second coating reference area (rx', ry'). The fourth target glue path area can be determined based on the coordinates of the upper right vertex of the first coating reference area (lx', ly), the coordinates of the lower right vertex of the first coating reference area (lx', ly'), the coordinates of the upper left vertex of the second coating reference area (rx, ry), and the coordinates of the lower left vertex of the second coating reference area (rx, ry'). The fifth target glue path area can be determined based on the coordinates of the lower left vertex of the dispensing reference area (bx, by'), the coordinates of the lower right vertex of the dispensing reference area (bx', by'), the coordinates of the lower left vertex of the first coating reference area (lx, ly'), and the coordinates of the lower right vertex of the second coating reference area (rx', ry'). Fig.16 , which is a schematic diagram of a target glue path area provided by an embodiment of the present application. The coordinates of the four vertices of the target glue path area shown in the figure are (bx, by), (bx', by), (lx, ly) and (lx', ly).

[0141] S124, determining the glue road section within the target glue road area.

[0142] In some embodiments of the present application, the glue road quality determination device can determine a section of glue road in the glue road area of ​​the glue road area that is within the target glue road area as a glue road section. Multiple target glue road areas can determine multiple glue road sections. The multiple glue road sections can include a transverse glue road and / or a longitudinal glue road.

[0143] For example, Fig.16 The white part in the target glue path area is a glue path section.

[0144] S125, determining pixel information of each column or each row of the glue section.

[0145] In some embodiments of the present application, the pixel information of each column of the horizontal glue path includes the coordinates of the highest point and the lowest point of each column of pixels in the horizontal glue path, and the pixel information of each row of the horizontal glue path includes the coordinates of the leftmost point and the rightmost point of each row of pixels in the horizontal glue path. The pixel information of each column of the longitudinal glue path includes the coordinates of the highest point and the lowest point of each column of pixels in the longitudinal glue path, and the pixel information of each row of the longitudinal glue path includes the coordinates of the leftmost point and the rightmost point of each row of pixels in the longitudinal glue path.

[0146] S126, determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and the pixel information of each column or each row of the glue road section.

[0147] In some embodiments of the present application, the glue road section includes a transverse glue road, and each column of pixel information of the glue road section includes the highest point coordinate and the lowest point coordinate of each column of pixels in the transverse glue road, such as Fig.17 FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each column of pixel information of the rubber road section, and includes the following steps:

[0148] S171, determining a second standard width of the target glue path area based on the coordinates of each feature point in the target glue path area.

[0149] In some embodiments of the present application, the coordinates of each feature point in the target glue path area include the coordinates of each vertex of the target glue path area. The process of determining the second standard width of the target glue path area by the glue path quality determination device can refer to the method for determining the first standard width in step S61, and will not be repeated in this application.

[0150] S172: Determine a second standard width range according to the third preset value and the second standard width.

[0151] In some embodiments of the present application, the third preset value can be customized, and the present application does not limit this. For example, the third preset value can be any value of 0.05, 0.1, 0.2, 0.5, etc. The second standard width range can include a second standard width upper limit and a second standard width lower limit. The process of the glue road quality determination device determining the second standard width range according to the third preset value and the second standard width can refer to the method for determining the first standard width range in step S62, and the present application will not repeat the description.

[0152] S173, determining the width of each column of pixels in the transverse glue path based on the highest point coordinates and the lowest point coordinates of each column of pixels in the transverse glue path.

[0153] In some embodiments of the present application, each column of pixels in the transverse glue path has a corresponding width. The glue path quality determination device determines the width of each column of pixels in the transverse glue path based on the highest point coordinate and the lowest point coordinate of each column of pixels in the transverse glue path. The method for determining the width of each column of pixels in the glue path area in step S63 can be referred to, and the present application will not repeat the description.

[0154] S174, determining whether the number of column pixel widths outside the second standard width range in the transverse glue path is greater than a seventh preset number.

[0155] In some embodiments of the present application, the seventh preset number can be customized, and the present application does not impose any restrictions on this. For example, the seventh preset number can be 1, 2, 3, or the number of all columns of pixels in the horizontal glue path. There are multiple columns of pixels in the horizontal glue path. After calculating the width of each column of pixels in the horizontal glue path, the number of columns of pixels (i.e., the number of column pixels) outside the second standard width range is counted based on the width of the multiple columns of pixels in the horizontal glue path, or whether there are adjacent preset number of columns of pixels in the horizontal glue path that are all outside the second standard width range. The adjacent preset number can be any value from 1 to 200, or other values.

[0156] In this embodiment, if the number of column pixel widths outside the second standard width range in the horizontal glue path is greater than the seventh preset number, step S175 is executed, or if the number of column pixel widths outside the second standard width range in the horizontal glue path is less than or equal to the seventh preset number, step S176 is executed. When it is counted that there are adjacent preset number of column pixels in the horizontal glue path that are all outside the first standard width range, step S175 is executed, otherwise step S176 is executed.

[0157] S175, determine that the glue path is unqualified.

[0158] In some embodiments of the present application, the situation that the width of the column pixels in the transverse glue path is outside the second standard width range may at least include the situation that the width of the column pixels is greater than the upper limit of the second standard width and the width of the column pixels is less than the lower limit of the second standard width. If the width of the column pixels in the transverse glue path is greater than the upper limit of the second standard width, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue width is too large, or if the width of the column pixels in the transverse glue path is less than the lower limit of the second standard width, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue width is too small.

[0159] S176, determine that the glue path is qualified.

[0160] In this embodiment, when the number of column pixel widths outside the second standard width range in the transverse glue path is less than or equal to the seventh preset number, it means that the defects existing in the glue path are within the allowable error range, so the glue path can be determined to be qualified.

[0161] In some other embodiments of the present application, the glue road section includes a transverse glue road, and each column of pixel information of the glue road section includes the highest point coordinate and the lowest point coordinate of each column of pixels in the transverse glue road, such as Fig.18 FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each column of pixel information of the rubber road section, including the following steps:

[0162] S181, determining the upper glue margin and the lower glue margin of each column of pixels in the transverse glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the highest point and the lowest point of each column of pixels in the transverse glue path.

[0163] In some embodiments of the present application, the glue path quality determination device determines the upper glue margin and the lower glue margin of each column of pixels in the horizontal glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the highest point and the lowest point of each column of pixels in the horizontal glue path. The process can refer to the description of the upper glue margin and the lower glue margin of each column of pixels in the glue path area in step S72, and the present application will not repeat the description. Fig.15 As shown, the sizes of the upper and lower glue margins are D1 and D2 respectively. Fig.15 The sizes of the upper and lower glue margins indicated in the figure are only examples and are not limited thereto in actual applications.

[0164] S182, determining whether the number of upper glue margins and / or lower glue margins in the transverse glue path outside the third preset range is greater than an eighth preset number.

[0165] In some embodiments of the present application, the third preset range includes a third upper threshold and a third lower threshold, and the third upper threshold, the third lower threshold, the unit of the third upper threshold, the unit of the third lower threshold and the eighth preset number can all be customized, and the present application does not limit this. For example, the third preset range can be 0mm-1.1mm, wherein 0mm represents the third lower threshold, 1.1mm represents the third upper threshold, and the eighth preset number can be 1, 2, 3 or 1200, etc. There are multiple columns of pixels in the horizontal glue path. After calculating the upper glue margin or lower glue margin of each column of pixels in the horizontal glue path, the upper glue margin or lower glue margin of the multiple columns of pixels in the horizontal glue path is counted to determine how many upper glue margins or lower glue margins are outside the third preset range, or whether there are upper glue margins or lower glue margins of adjacent preset number of columns of pixels outside the third preset range. The adjacent preset number can be any value from 1 to 200, or other values.

[0166] In this embodiment, if the number of upper glue margins and / or lower glue margins outside the third preset range in the horizontal glue path is greater than the eighth preset number, step S183 is executed, or if the number of upper glue margins and / or lower glue margins outside the third preset range in the horizontal glue path is less than or equal to the eighth preset number, step S184 is executed. When the upper glue margins or lower glue margins of the adjacent preset number of columns of pixels are outside the third preset range, step S183 is executed, otherwise step S184 is executed.

[0167] S183, determine that the glue path is unqualified.

[0168] In some embodiments of the present application, the situation where the upper glue margin or the lower glue margin in the transverse glue path is outside the third preset range may at least include the situation where the upper glue margin or the lower glue margin is greater than the third upper limit threshold and the upper glue margin or the lower glue margin is less than the third lower limit threshold. If the upper glue margin or the lower glue margin in the transverse glue path is greater than the third upper limit threshold, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the upper glue margin or the lower glue margin is too large, or if the upper glue margin or the lower glue margin in the transverse glue path is less than the third lower limit threshold, the glue path quality determination device can determine that the specific reason for the unqualified glue path is that the upper glue margin or the lower glue margin is too small.

[0169] S184, determine whether the glue path is qualified.

[0170] In this embodiment, the number of upper glue margins and / or lower glue margins in the transverse glue path that are outside the third preset range is less than or equal to the eighth preset number, indicating that the defects existing in the glue path are within the allowable error range, and therefore the glue path can be determined to be qualified.

[0171] In some other embodiments of the present application, the glue road section includes a transverse glue road, each column of pixel information of the glue road section includes the highest point coordinate and the lowest point coordinate of each column of pixels of the transverse glue road, and the coordinates of each feature point in the target glue road area include the highest feature point coordinate and the lowest feature point coordinate. Fig.19 FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each column of pixel information of the rubber road section, and includes the following steps:

[0172] S191, determining whether the number of highest point coordinates above the highest feature point coordinates of the target glue road area and / or the number of lowest point coordinates below the lowest feature point coordinates of the target glue road area in the transverse glue road is greater than a ninth preset number.

[0173] In this embodiment, the highest point coordinate of each column of pixels in the transverse glue path has the corresponding highest feature point coordinate in the target glue path area, and the lowest point coordinate of each column of pixels in the transverse glue path has the corresponding lowest feature point coordinate in the target glue path area. The ninth preset number can be customized, and this application does not limit this. For example, the ninth preset number can be 1, 2, or 1200, etc.

[0174] In this embodiment, if the number of the highest point coordinates in the transverse glue road that are above the corresponding highest feature point coordinates in the target glue road area and / or the number of the lowest point coordinates below the corresponding lowest feature point coordinates in the target glue road area is greater than the ninth preset number, step S192 is executed; if the number of the highest point coordinates in the transverse glue road that are above the corresponding highest feature point coordinates in the target glue road area and / or the number of the lowest point coordinates below the corresponding lowest feature point coordinates in the target glue road area is less than or equal to the ninth preset number, step S193 is executed.

[0175] S192, determine that the glue path is unqualified.

[0176] In some embodiments of the present application, the situation where the coordinates of the highest point in the transverse glue path are above the coordinates of the corresponding highest feature point in the target glue path area and the coordinates of the lowest point in the transverse glue path are below the coordinates of the corresponding lowest feature point in the target glue path area can be called overflow glue.

[0177] S193, determine whether the glue path is qualified.

[0178] In this embodiment, when the number of the highest point coordinates above the corresponding highest feature point coordinates in the target glue road area and / or the number of the lowest point coordinates below the corresponding lowest feature point coordinates in the target glue road area in the transverse glue road is less than or equal to the ninth preset number, it means that the defects existing in the glue road are within the allowable error range, and therefore the glue road can be determined to be qualified.

[0179] In some embodiments of the present application, the glue road section includes a longitudinal glue road, and each row of pixel information of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue road, such as Fig. 20 FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each row of pixel information of the rubber road section, including the following steps:

[0180] S201, determining a second standard length of the target glue path area based on the coordinates of each feature point in the target glue path area.

[0181] In some embodiments of the present application, the method for determining the second standard length may refer to the description of the method for determining the first standard length, and the present application will not repeat the description.

[0182] S202: Determine a second standard length range according to a fourth preset value and the second standard length.

[0183] In some embodiments of the present application, the fourth preset value can be customized, and the present application does not limit this. For example, the fourth preset value can be any value of 0.05, 0.1, 0.2, 0.5, etc. The second standard length range can include a second standard length upper limit and a second standard length lower limit. The method for determining the second standard length range can refer to the description of the method for determining the first standard length range, and the present application will not repeat the description.

[0184] S203, determining the length of each row of pixels in the longitudinal glue path based on the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue path.

[0185] In some embodiments of the present application, each row of pixels in the longitudinal glue path has a corresponding length. The method for determining that each row of pixels in the longitudinal glue path has a corresponding length can refer to the description of the method for determining the length of each row of pixels in the glue path area in step S93, and the present application will not repeat the description.

[0186] S204, determining whether the number of row pixel lengths outside the second standard length range in the longitudinal glue path is greater than a tenth preset number.

[0187] In some embodiments of the present application, the tenth preset number can be customized, and the present application does not limit this. For example, the tenth preset number can be 1, 2, 3, or the number of all row pixels in the longitudinal glue path.

[0188] In this embodiment, if the number of row pixel lengths in the longitudinal glue path that are outside the second standard length range is greater than the tenth preset number, step S205 is executed; or, if the number of row pixel lengths in the longitudinal glue path that are outside the second standard length range is less than or equal to the tenth preset number, step S206 is executed.

[0189] S205, determining that the glue path is unqualified.

[0190] In some embodiments of the present application, the case where the length of the row pixels in the longitudinal glue path is outside the second standard length range may at least include the case where the length of the row pixels is greater than the upper limit of the second standard length and the length of the row pixels is less than the lower limit of the second standard length. If the length of the row pixels in the longitudinal glue path is greater than the upper limit of the second standard length, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue length is too long, or if the length of the row pixels in the longitudinal glue path is less than the lower limit of the second standard length, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue length is too short.

[0191] S206, determine whether the glue path is qualified.

[0192] In this embodiment, when the number of row pixel lengths outside the second standard length range in the longitudinal glue path is less than or equal to the tenth preset number, it means that the defects existing in the glue path are within the allowable error range, so it can be determined that the glue path is qualified.

[0193] In some embodiments of the present application, the glue road section includes a longitudinal glue road, and each row of pixel information of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue road, such as Fig.15 and 21 FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each row of pixel information of the rubber road section, and includes the following steps:

[0194] S211, determining the left glue margin and the right glue margin of each row of pixels in the longitudinal glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the leftmost point and the rightmost point of each row of pixels in the longitudinal glue path.

[0195] In some embodiments of the present application, the glue path quality determination device determines the left glue margin and the right glue margin of each row of pixels in the longitudinal glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the leftmost point and the rightmost point of each row of pixels in the longitudinal glue path. The description of the method for determining the left glue margin and the right glue margin of each row of pixels in the glue path area in step S102 can be referred to, and the present application will not repeat the description. Fig.15 , the sizes of the left and right glue margins are L1 and L2 respectively, Fig.15 The sizes of the left and right adhesive margins indicated in the figure are only examples and are not limited thereto in actual applications.

[0196] S212, determining whether the number of left glue margins and / or right glue margins outside the fourth preset range in the longitudinal glue path is greater than an eleventh preset number.

[0197] In some embodiments of the present application, the fourth preset range includes a fourth upper threshold and a fourth lower threshold, and the fourth upper threshold, the fourth lower threshold, the unit of the fourth upper threshold, the unit of the fourth lower threshold, and the eleventh preset number can be customized, and the present application does not limit this. For example, the fourth preset range can be 0.3mm-0.7mm, where 0.3mm represents the fourth lower threshold, 0.7mm represents the fourth upper threshold, and the eleventh preset number can be 1, 2, 3, or 2000, etc.

[0198] In this embodiment, if the number of left glue margins and / or right glue margins in the longitudinal glue path that are outside the fourth preset range is greater than the eleventh preset number, step S213 is executed, or if the number of left glue margins and / or right glue margins in the longitudinal glue path that are outside the fourth preset range is less than or equal to the eleventh preset number, step S214 is executed.

[0199] S213, determine that the glue path is unqualified.

[0200] In some embodiments of the present application, the situation where the left rubber margin or the right rubber margin is outside the fourth preset range may at least include the situation where the upper left rubber margin or the right rubber margin is greater than the fourth upper limit threshold and the left rubber margin or the right rubber margin is less than the fourth lower limit threshold. If the upper left rubber margin or the right rubber margin is greater than the fourth upper limit threshold, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue margin is too large, or if the left rubber margin or the right rubber margin is less than the fourth lower limit threshold, the glue path quality determination device may determine that the specific reason for the unqualified glue path is that the glue margin is too small.

[0201] S214, determine whether the glue path is qualified.

[0202] In this embodiment, the number of left glue margins and / or right glue margins outside the fourth preset range in the longitudinal glue path is less than or equal to the eleventh preset number, indicating that the defects existing in the glue path are within the allowable error range, so the glue path can be determined to be qualified.

[0203] In some embodiments of the present application, the glue road section includes a longitudinal glue road, the pixel information of each row of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels, and the coordinates of each feature point in the target glue road area include the leftmost feature point coordinates and the rightmost feature point coordinates. Fig. 22FIG. 1 is a flowchart of a method for determining the quality of a rubber road provided by another embodiment of the present application. Step S126 determines whether the quality of the rubber road is qualified based on the coordinates of each feature point in the target rubber road area and each row of pixel information of the rubber road section, and includes the following steps:

[0204] S221, determining whether the number of leftmost point coordinates located to the left of the leftmost feature point coordinate of the target glue road area and / or the number of rightmost point coordinates located to the right of the rightmost feature point coordinate of the target glue road area in the longitudinal glue road is greater than a twelfth preset number.

[0205] In some embodiments of the present application, the twelfth preset number can be customized, and the present application does not limit this. For example, the twelfth preset number can be 1, 2, 3 or 1500, etc.

[0206] In this embodiment, if the number of leftmost point coordinates in the longitudinal glue road that are located to the left of the corresponding leftmost feature point coordinate in the target glue road area and / or the number of rightmost point coordinates below the rightmost feature point coordinate in the target glue road area is greater than the twelfth preset number, step S222 is executed; if the number of leftmost point coordinates in the longitudinal glue road that are located to the left of the corresponding leftmost feature point coordinate in the target glue road area and / or the number of rightmost point coordinates below the rightmost feature point coordinate in the target glue road area is less than or equal to the twelfth preset number, step S223 is executed.

[0207] S222, determine that the glue path is unqualified.

[0208] In some embodiments of the present application, the situation where the coordinates of the leftmost point in the longitudinal glue path are located to the left of the corresponding leftmost feature point coordinates in the target glue path area and the coordinates of the rightmost point in the longitudinal glue path are located to the right of the corresponding rightmost feature point coordinates in the target glue path area can be called overflow glue.

[0209] S223, determine whether the glue path is qualified.

[0210] In this embodiment, the number of leftmost point coordinates located to the left of the corresponding leftmost feature point coordinate in the target glue road area in the longitudinal glue road and / or the number of rightmost point coordinates located below the rightmost feature point coordinate in the target glue road area is less than or equal to the twelfth preset number, indicating that the defects existing in the glue road are within the allowable error range, and therefore the glue road can be determined to be qualified.

[0211] In other embodiments of the present application, the glue path quality determination device may also count the number of widths with a value of zero in the glue path map, and determine whether the glue path is broken by judging whether the number of widths with a value of zero is greater than a predetermined threshold. Alternatively, the glue path quality determination device may also detect the reflective area in the product image with the glue path using a glue path segmentation model, so that the category of the pixel points in the output glue path map includes a reflective category, and determine whether the glue path is scraped by judging whether the number of pixel points belonging to the reflective category is greater than another predetermined threshold. The predetermined threshold may be set by a user, and the present application does not limit this.

[0212] In other embodiments of the present application, the device for determining the quality of the adhesive path may also be combined with the embodiment of the present application. Figure 6-Figure 11 One or more methods for determining the quality of the adhesive path in the embodiment of the present application or a combination of the embodiments of the present application Fig.12 , Figure 17-Figure 22 One or more methods for determining the quality of the glue road are used to determine the quality of the glue road. Figure 6-Figure 11 When any of the glue path quality determination methods determines that the glue path quality is unqualified, the glue path quality determination device confirms that the glue path quality is unqualified, and outputs and displays the specific reasons for the unqualified glue path quality on the visual interface. For example, the glue width is too large, the glue width is too small, the glue margin is too large, the glue margin is too small, glue overflow, glue breakage, glue scraping, etc.

[0213] like Fig.23 The figure is a flow chart of a method for training a rubber road segmentation model provided by an embodiment of the present application. According to different requirements, the order of each step in the flow chart can be adjusted according to actual requirements, and some steps can be omitted. The method for training a rubber road segmentation model is applied to a rubber road quality determination device, such as Figure 1 The glue path quality determination device 10 is shown.

[0214] S231, obtaining a training sample set, the training sample set including product images with glue paths and product images without glue paths, the product images with glue paths carry glue path marks, and the product images without glue paths carry glue dispensing reference marks.

[0215] In some embodiments of the present application, the number of product images with glue paths and product images without glue paths included in the training sample set can be customized, and the present application does not limit this. The glue path mark can cover the glue path area in the product image with glue paths, and the glue point reference mark can cover the glue point reference area in the product image without glue paths.

[0216] In other embodiments of the present application, the product image without the glue path may also carry a coating reference mark, and the coating reference mark may cover the coating reference area in the product image without the glue path.

[0217] S232, input the training sample set into a preset image segmentation model, so that the image segmentation model outputs multiple glue dispensing reference images, multiple glue path images, the category of each pixel point in each glue dispensing reference image, and the category of each pixel point in each glue path image based on the glue path marks and glue dispensing reference marks carried in the training sample set.

[0218] In some embodiments of the present application, the image segmentation model may be a deep learning model, and the present application does not limit the type of the image segmentation model. For example, the image segmentation model may be a UNet model. The image segmentation model includes an encoder and a decoder, the encoder includes multiple downsampling layers, the decoder includes multiple upsampling layers, and each upsampling layer in the encoder is skip-connected to the downsampling layer, so that the decoder can concatenate the upsampling feature map output by each upsampling layer with the downsampling feature map output by the skip-connected downsampling layer, and input the concatenated feature map to the next upsampling layer. Each downsampling layer may include a concatenated convolution layer, a batch normalization layer (BatchNorm), and an activation function layer, and each down-up sampling layer may include a concatenated deconvolution layer, a convolution layer, a batch normalization layer, and an activation function layer, and the activation function layer may be ReLU.

[0219] In some embodiments of the present application, a glue path quality determination device uses an encoder to perform multiple downsampling on each product image without glue paths in a training sample set based on glue dispensing reference marks to obtain a feature map output by each downsampling layer, and inputs the feature map output by the last downsampling layer to a decoder. The decoder splices the feature map output by each upsampling layer with the feature map output by the downsampling layer jump-connected to the upsampling layer, and inputs the spliced ​​feature map to the next upsampling layer to obtain a feature map output by each upsampling layer. The feature map output by the last upsampling layer is determined as the glue dispensing reference map corresponding to the product image, and the glue dispensing reference map is classified pixel by pixel to obtain the category of each pixel in the glue dispensing reference map.

[0220] In some embodiments of the present application, the generation process of the glue path map and the category of each pixel point in the glue path map is basically the same as the generation process of the glue dispensing reference map and the category of each pixel point in the glue dispensing reference map, so this application will not repeat the description.

[0221] In other embodiments of the present application, when the product image without glue road carries a coating reference mark, the image segmentation model can also output the coating reference image and the category of each pixel point in the coating reference image based on the coating reference mark in the product image without glue road. The generation process of the coating reference image and the category of each pixel point in the coating reference image can refer to the description of the generation process of the glue dispensing reference image and the category of each pixel point in the glue dispensing reference image.

[0222] S233, calculating the loss value of the image segmentation model based on the category of each pixel point in each glue dispensing reference image and the category and training sample set of each pixel point in each glue path image.

[0223] In some embodiments of the present application, according to the category of each pixel point in each glue dispensing reference map, the glue path quality determination device can determine the pixel points in the glue dispensing reference map that belong to the glue dispensing reference area. According to the category of each pixel point in each glue path map, the glue path quality determination device can determine the pixel points in the glue path map that belong to the glue path area. The glue path quality determination device can calculate a first cross-entropy loss value based on the pixel points covered by the glue dispensing reference mark in each product image without a glue path and the pixel points belonging to the glue dispensing reference area in the glue dispensing reference map corresponding to the product image. The second cross-entropy loss value is calculated based on the pixel points covered by the glue path mark in each product image with a glue path and the pixel points belonging to the glue path area in the glue path map corresponding to the product image, and the sum or weighted sum between the first cross-entropy loss value and the second cross-entropy loss value is determined as the loss value of the image segmentation model.

[0224] In other embodiments of the present application, when the product image without glue road carries a coating reference mark, the glue road quality determination device calculates the third cross entropy loss value based on the pixels covered by the coating reference mark in each product image without glue road and the pixels belonging to the coating reference area in the coating reference image corresponding to the product image, and determines the sum or weighted sum of the first cross entropy loss value, the second cross entropy loss value and the third cross entropy loss value as the loss value of the image segmentation model.

[0225] S234, adjusting the image segmentation model based on the loss value.

[0226] In some embodiments of the present application, network parameters in the image segmentation model may be adjusted, such as learning rate, weight, and bias.

[0227] S235, determining whether the loss value is within a preconfigured range.

[0228] In some embodiments of the present application, the preconfigured range can be customized, and the present application does not limit this. For example, the preconfigured range can be 0.1-0.2.

[0229] In this embodiment, if the loss value is within the preconfigured range, step S236 is executed, or, if the loss value is not within the preconfigured range, the process returns to step S232.

[0230] S236, determining the adjusted image segmentation model as the glue road segmentation model.

[0231] In other embodiments of the present application, Fig.24FIG. 2 is a flowchart of a method for training a rubber road segmentation model provided by another embodiment of the present application, which is applied to a rubber road quality determination device and includes the following steps:

[0232] S2361: Adjust the image segmentation model based on the loss value until the loss value is within a preset range to obtain an initial model.

[0233] S2362: Obtain a verification sample set, the verification sample set includes product images with a glue path and product images without a glue path, the product images with a glue path carry a glue path mark, and the product images without a glue path carry a glue dispensing reference mark.

[0234] S2363: Input the verification sample set into the initial model, so that the initial model outputs multiple glue dispensing reference maps and multiple glue path maps based on the glue path marks and glue dispensing reference marks carried in the verification sample set, each glue dispensing reference map includes a glue dispensing reference area, and each glue path map includes a glue path area.

[0235] S2364: Calculate the first intersection-and-union ratio between the glue path area covered by the glue path mark of each product image with a glue path in the verification sample set and the glue path area in the glue path map corresponding to the product image, and the second intersection-and-union ratio between the glue dispensing reference area covered by the glue dispensing reference mark of each product image without a glue path in the verification sample set and the glue dispensing reference area in the glue dispensing reference map corresponding to the product image.

[0236] S2365: Calculate an average intersection-and-union ratio based on all first intersection-and-union ratios and all second intersection-and-union ratios.

[0237] S2366, determine whether the average value of the intersection-over-union ratio is greater than or equal to a preset configuration value.

[0238] The preset configuration value may be customized, and this application does not limit this. For example, the preset configuration value may be 0.7.

[0239] In this embodiment, when the average value of the intersection-and-union ratio is greater than or equal to the preset configuration value, step S2367 is executed, or when the average value of the intersection-and-union ratio is less than the preset configuration value, the process returns to step S2363.

[0240] S2367, determine the initial model as the glue road segmentation model.

[0241] In other embodiments of the present application, when a product image without glue roads in a verification sample set carries a coating reference mark, the initial model can also output a coating reference map, and the glue road quality determination device can calculate the third intersection-and-union ratio between the coating reference area covered by the coating reference mark of each product image without glue roads in the verification sample set and the coating reference area in the coating reference map corresponding to the product image, and calculate the average intersection-and-union ratio based on all the first intersection-and-union ratios, all the second intersection-and-union ratios, and all the third intersection-and-union ratios. If the average intersection-and-union ratio is greater than or equal to the preset configuration value, the initial model is determined as a glue road segmentation model.

[0242] like Fig.25 , is a structural diagram of a device for determining the quality of a rubber road provided by an embodiment of the present application. Fig.25 As shown, the glue road quality determination device 10 may include a communication module 101, a memory 102, a processor 103, an input / output (I / O) interface 104 and a bus 105. The processor 103 is coupled to the communication module 101, the memory 102 and the input / output interface 104 through the bus 105.

[0243] The communication module 101 may include a wired communication module and / or a wireless communication module. The wired communication module may provide one or more wired communication solutions such as universal serial bus (USB), controller area network bus (CAN, Controller Area Network). The wireless communication module may provide one or more wireless communication solutions such as wireless fidelity, Bluetooth, mobile communication network, frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0244] The memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 103, and can be used to store executable programs (such as machine instructions) of other running programs, and can also be used to store user and application data. The random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), etc.

[0245] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 103. The non-volatile memory may include a disk storage device and a flash memory.

[0246] The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include a plurality of instructions, and when the plurality of instructions are executed by the processor 103, the method for determining the quality of the rubber road and the method for training the rubber road segmentation model executed on the device for determining the quality of the rubber road 10 can be implemented.

[0247] In other embodiments, Fig.25 The glue path quality determination device 10 shown also includes an external memory interface for connecting to an external memory to expand the storage capacity of the glue path quality determination device 10 .

[0248] The processor 103 may include one or more processing units, for example, the processor 103 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0249] The processor 103 provides computing and control capabilities. For example, the processor 103 is used to execute a computer program stored in the memory 102 to implement the above-mentioned rubber road quality determination method and rubber road segmentation model training method.

[0250] The input / output interface 104 is used to provide a channel for user input or output. For example, the input / output interface 104 can be used to connect various input and output devices, such as a mouse, keyboard, touch device, display screen, etc., so that the user can enter information or visualize information.

[0251] The bus 105 is at least used to provide a channel for mutual communication among the communication module 101 , the memory 102 , the processor 103 , and the input / output interface 104 in the device for determining the quality of the adhesive path 10 .

[0252] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the glue road quality determination device 10. In other embodiments of the present application, the glue road quality determination device 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0253] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the methods in the above-mentioned embodiments of the present application.

[0254] The computer-readable storage medium may be an internal memory of the device for determining the quality of the adhesive path described in the above embodiment, such as a hard disk or memory of the device for determining the quality of the adhesive path. The computer-readable storage medium may also be an external storage device of the device for determining the quality of the adhesive path, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc., equipped on the device for determining the quality of the adhesive path.

[0255] In some embodiments, the computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created based on the use of the glue road quality determination device, etc.

[0256] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the device for determining the quality of the adhesive path. In other embodiments of the present application, the device for determining the quality of the adhesive path may include more or fewer components than those illustrated, or may combine certain components, or may separate certain components, or may have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0257] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0258] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0259] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0260] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0261] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in this application can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0262] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A method for determining the quality of a rubber road, It is characterized in that The method for determining the quality of the rubber road comprises: Acquire product images, wherein the product images include product images with glue paths and product images without glue paths; Calling the pre-trained glue path segmentation model to perform image segmentation on the product image to obtain an image segmentation result, wherein the image segmentation result includes a glue dispensing reference image and a glue path image; Based on the glue dispensing reference map and the glue path map, determine whether the quality of the glue path is qualified.

2. The method for determining the quality of a rubber road according to claim 1, It is characterized in that The glue dispensing reference map includes a glue dispensing reference area, the glue path map includes a glue path area, and the step of determining whether the quality of the glue path is qualified based on the glue dispensing reference map and the glue path map includes: Determine the coordinates of each feature point of the glue dispensing reference area in the glue dispensing reference map and each column and / or each row of pixel information of the glue path area in the glue path map; Based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path area, determine whether the quality of the glue path is qualified, and / or, based on the coordinates of each feature point in the glue dispensing reference area and each row of pixel information in the glue path area, determine whether the quality of the glue path is qualified.

3. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The pixel information of each column in the glue path area includes the highest point coordinate and the lowest point coordinate of each column of pixels in the glue path area. The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path area comprises: Determining a first standard width of the glue dispensing reference area based on the coordinates of each feature point in the glue dispensing reference area; Determining a first standard width range according to a first preset value and the first standard width; Determine the width of each column of pixels in the glue path area based on the highest point coordinates and the lowest point coordinates of each column of pixels in the glue path area; If the number of column pixel widths in the glue path area that are outside the first standard width range is greater than a first preset number, it is determined that the glue path is unqualified.

4. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The information of each column of pixels in the glue path area includes the highest point coordinates and the lowest point coordinates of each column of pixels in the glue path area. The method further comprises: Overlaying the glue dispensing reference map and the glue path map so that the glue dispensing reference area and the glue path area are overlapped to form a first overlay map; The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path area comprises: Determine the upper glue margin and the lower glue margin of each column of pixels in the glue path area based on the coordinates of each feature point in the glue dispensing reference area of ​​the first overlay image and the highest point coordinate and the lowest point coordinate of each column of pixels in the glue path area; If the number of the upper glue margins and / or the lower glue margins in the glue path area that are outside the first preset range is greater than a second preset number, it is determined that the glue path is unqualified.

5. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The information of each column of pixels in the glue path area includes the highest point coordinates and the lowest point coordinates of each column of pixels, and the coordinates of each feature point in the glue dispensing reference area include the highest feature point coordinates and the lowest feature point coordinates; The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each column of pixel information in the glue path area comprises: If the number of the highest point coordinates in the glue path area that are above the corresponding highest feature point coordinates in the glue dot reference area and / or the number of the lowest point coordinates that are below the corresponding lowest feature point coordinates in the glue dot reference area is greater than a third preset number, the glue path is determined to be unqualified.

6. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels. The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each row of pixel information in the glue path area comprises: Determining a first standard length of the glue dispensing reference area based on the coordinates of each feature point in the glue dispensing reference area; Determining a first standard length range according to a second preset value and the first standard length; Determine the length of each row of pixels in the glue path area based on the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the glue path area; If the number of row pixel lengths outside the first standard length range in the glue path area is greater than a fourth preset number, it is determined that the glue path is unqualified.

7. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the glue path area. The method further comprises: Overlaying the glue dispensing reference map and the glue path map, so that the glue dispensing reference area and the glue path area are overlapped to form a second overlay map; The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each row of pixel information in the glue path area comprises: Determine the left glue margin and the right glue margin of each row of pixels in the glue path area based on the coordinates of each feature point in the glue dispensing reference area of ​​the second overlay image and the coordinates of the leftmost point and the rightmost point of each row of pixels in the glue path area; If the number of the left glue margin and / or the right glue margin in the glue path area that is outside the second preset range is greater than a fifth preset number, it is determined that the glue path is unqualified.

8. The method for determining the quality of a rubber road according to claim 2, It is characterized in that The pixel information of each row in the glue path area includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the glue path area, and the coordinates of each feature point in the glue dispensing reference area include the leftmost feature point coordinates and the leftmost feature point coordinates in the glue dispensing reference area; The step of determining whether the quality of the glue path is qualified based on the coordinates of each feature point in the glue dispensing reference area and each row of pixel information in the glue path area comprises: If the number of leftmost point coordinates in the glue path area that are located to the left of the corresponding leftmost feature point coordinate in the glue dot reference area and / or the number of rightmost point coordinates located below the rightmost feature point coordinate in the glue dot reference area is greater than a sixth preset number, the glue path is determined to be unqualified.

9. The method for determining the quality of a rubber road according to claim 1, It is characterized in that The glue path includes multiple glue path sections, the image segmentation result also includes a coating reference map, the glue point reference map includes a glue point reference area, the coating reference map includes a coating reference area, and the step of determining whether the quality of the glue path is qualified based on the glue point reference map and the glue path map includes: Determine the coordinates of the feature points of the dispensing reference area in the dispensing reference image and the coordinates of the feature points of the coating reference area in the coating reference image respectively; Overlaying the glue dispensing reference map, the glue path map and the coating reference map to form a glue dispensing overlay map, wherein the glue dispensing overlay map carries the feature point coordinates of the glue dispensing reference area and the feature point coordinates of the coating reference area; Determine the target glue path area in the glue overlay image and the coordinates of each feature point of the target glue path area based on the feature point coordinates of the glue reference area in the glue overlay image and the feature point coordinates of the coating reference area; Determining the glue road section within the target glue road area; Determine pixel information of each column or each row of the glue road section; Based on the coordinates of each feature point in the target glue road area and the pixel information of each column or each row of the glue road section, it is determined whether the quality of the glue road is qualified.

10. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a transverse glue road, and each column of pixel information of the glue road section includes the highest point coordinate and the lowest point coordinate of each column of pixels in the transverse glue road. The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each column of pixel information of the glue road section comprises: Determining a second standard width of the target glue path area based on the coordinates of each feature point in the target glue path area; Determining a second standard width range according to a third preset value and the second standard width; Determine the width of each column of pixels in the transverse glue path based on the coordinates of the highest point and the lowest point of each column of pixels in the transverse glue path; If the number of column pixel widths in the transverse glue path that are outside the second standard width range is greater than a seventh preset number, the glue path is determined to be unqualified.

11. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a transverse glue road, and each column of pixel information of the glue road section includes the highest point coordinate and the lowest point coordinate of each column of pixels in the transverse glue road. The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each column of pixel information of the glue road section comprises: Determine the upper glue margin and the lower glue margin of each column of pixels in the transverse glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the highest point and the lowest point of each column of pixels in the transverse glue path; If the number of the upper glue margins and / or the lower glue margins in the transverse glue path that are outside the third preset range is greater than an eighth preset number, it is determined that the glue path is unqualified.

12. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a transverse glue road, each column of pixel information of the glue road section includes the highest point coordinates and the lowest point coordinates of each column of pixels of the transverse glue road, and the coordinates of each feature point of the target glue road area include the highest feature point coordinates and the lowest feature point coordinates; The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each column of pixel information of the glue road section comprises: If the number of the highest point coordinates in the transverse glue road that are above the highest feature point coordinates of the target glue road area and / or the number of the lowest point coordinates below the lowest feature point coordinates of the target glue road area is greater than a ninth preset number, the glue road is determined to be unqualified.

13. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a longitudinal glue road, and each row of pixel information of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue road. The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each row of pixel information of the glue road section comprises: Determining a second standard length of the target glue path area based on the coordinates of each feature point in the target glue path area; Determining a second standard length range according to a fourth preset value and the second standard length; Determine the length of each row of pixels in the longitudinal glue path based on the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue path; If the number of row pixel lengths in the longitudinal glue path that are outside the second standard length range is greater than a tenth preset number, the glue path is determined to be unqualified.

14. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a longitudinal glue road, and each row of pixel information of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels in the longitudinal glue road. The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each row of pixel information of the glue road section comprises: Determine the left glue margin and the right glue margin of each row of pixels in the longitudinal glue path based on the coordinates of each feature point in the target glue path area and the coordinates of the leftmost point and the rightmost point of each row of pixels in the longitudinal glue path; If the number of the left glue margin and / or the right glue margin in the longitudinal glue path that is outside the fourth preset range is greater than an eleventh preset number, it is determined that the glue path is unqualified.

15. The method for determining the quality of a rubber road according to claim 9, It is characterized in that The glue road section includes a longitudinal glue road, the pixel information of each row of the glue road section includes the leftmost point coordinates and the rightmost point coordinates of each row of pixels, and the coordinates of each feature point in the target glue road area include the leftmost feature point coordinates and the rightmost feature point coordinates; The step of determining whether the quality of the glue road is qualified based on the coordinates of each feature point in the target glue road area and each row of pixel information of the glue road section comprises: If the number of leftmost point coordinates located to the left of the leftmost feature point coordinate of the target glue road area in the longitudinal glue road and / or the number of rightmost point coordinates located to the right of the rightmost feature point coordinate of the target glue road area is greater than the twelfth preset number, the glue road is determined to be unqualified.

16. A method for training a rubber road segmentation model. It is characterized in that The rubber road segmentation model training method comprises: Acquire a training sample set, the training sample set including product images with glue paths and product images without glue paths, the product images with glue paths carry glue path marks, and the product images without glue paths carry glue dispensing reference marks; Input the training sample set into a preset image segmentation model, so that the image segmentation model outputs a plurality of glue dispensing reference images, a plurality of glue path images, a category of each pixel point in each of the glue dispensing reference images, and a category of each pixel point in each of the glue path images based on the glue path mark and the glue dispensing reference mark carried in the training sample set; Calculate the loss value of the image segmentation model based on the category of each pixel point in each of the dispensing reference images, the category of each pixel point in each of the glue path images, and the training sample set; The image segmentation model is adjusted based on the loss value until the loss value is within a preconfigured range to update the image segmentation model to a glue road segmentation model.

17. A device for determining the quality of a rubber road, It is characterized in that The device for determining the quality of the adhesive path comprises: a memory storing at least one instruction; and A processor executes the at least one instruction to implement the method for determining the quality of a rubber road as described in any one of claims 1 to 15, or to implement the method for training a rubber road segmentation model as described in claim 16.

18. A system for determining the quality of a rubber road, It is characterized in that The glue path quality determination system includes a glue dispensing device and the glue path quality determination device as described in claim 17, wherein the glue dispensing device is used to dispense glue to the product, photograph the product before and after glue dispensing, obtain the product image without glue path and the product image with glue path, and send the product image to the glue path quality determination device.

19. A computer-readable storage medium, Features: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor in the glue road quality determination device, it implements the glue road quality determination method as described in any one of claims 1 to 15, or implements the glue road segmentation model training method as described in claim 16.

Citation Information

Cited By

  • Method and system for determining glue filling information based on laser detection and visual identification

    CN121374651A

  • A method and system for determining glue filling information based on laser detection and visual recognition

    CN121374651B