Special-shaped glass measurement pairing method and device and storage medium
By obtaining the coordinates of the coordinates and design drawings of the alien glass, the grouping and fitting calculation are performed to solve the problem of low efficiency and unstable quality of manual verification in the alien glass processing. Improvement of production efficiency.
Patent Information
- Application Number
- CN202411296807.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-09-14
AI Technical Summary
During the processing of special-shaped glass, due to its special shape, the existing technology relies on manual verification of size, resulting in low production efficiency and unstable quality, and it is impossible to achieve automated pairing.
By obtaining the coordinates of the special-shaped glass to be tested and the coordinates of the characteristic points in the special-shaped glass design drawings, the coordinates are grouped and the degree of fit is calculated to determine whether the degree of fit information is greater than the preset threshold to determine the identity and pairing of the special-shaped glass to be tested. relation.
The automated measurement pairing of heteroidal glass is achieved, which improves production efficiency, reduces artificial errors, and ensures the stability of product quality.
Smart Images

Figure CN119334284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of measurement technology, and in particular to a method, device and storage medium for measuring and pairing special-shaped glass. Background Art
[0002] In the process of deep processing of architectural glass, several key production processes are involved, including cutting, edging, tempering, interlayer and hollowing. In the interlayer and hollowing process, two or three pieces of glass are usually required to be produced in pairs to ensure the quality of the final product. For special-shaped glass, due to the particularity of its shape, the production process often adopts a discrete production mode. In this mode, production processes such as hollowing and interlayer can only be completed by manually verifying the size. The staff needs to manually enter the corresponding processing parameters according to the content on the label and the requirements of the processing technology. This method is not only inefficient, but also cannot automatically check the compliance of the process size after the processing is completed. Therefore, it can only be checked by manual measurement, which further increases production time and cost.
[0003] At present, the processing of special-shaped glass is done by sticking a label on the surface of the special-shaped glass during the cutting process to indicate the glass code. The label code corresponds to the process flow card. In the post-processing process, the label code is manually identified, and the processing equipment parameters are set according to the process requirements of the process flow card, and then the processing is started. In the processes that require paired production such as hollow and interlayer, the size information of the two pieces of glass can only be manually reviewed, and the paired two pieces of glass are selected for production. This not only limits the improvement of production efficiency, but also may cause errors in the production process, affecting the quality of the final product. Therefore, developing a method that can accurately measure the size of special-shaped glass and identify its identity is of great significance to improving the automation level and production efficiency of glass deep processing. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a method, device and storage medium for measuring and pairing special-shaped glass, so as to achieve rapid pairing of special-shaped glass and improve the degree of automation of measuring and pairing of special-shaped glass.
[0005] In a first aspect, an embodiment of the present application provides a method for measuring and pairing special-shaped glass, comprising the following steps: Acquire multiple first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, wherein the ordinates of the multiple first coordinates are height information of the special-shaped glass to be tested, the abscissa of the first first coordinate is 0, and the abscissas of the remaining first coordinates are distance information from the abscissa of the first first coordinate; Acquire multiple second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis; grouping the plurality of first coordinates according to the plurality of second coordinates; Calculate the fit of the grouped plurality of first coordinates according to the grouping to obtain fit information; When the degree of fit information is greater than a preset degree of fit threshold and the degree of fit information is valid degree of fit information, it is determined that the special-shaped glass to be tested is a target special-shaped glass.
[0006] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, grouping the plurality of first coordinates according to the plurality of second coordinates includes: Determine a plurality of horizontal coordinates of the second coordinates, and determine a grouping interval according to the horizontal coordinates of the second coordinates; The first coordinates are grouped according to the horizontal coordinates of the first coordinates and the grouping interval.
[0007] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, the plurality of grouped first coordinates are subjected to fitting calculation according to the grouping to obtain fitting information, including: determining a first average value according to the abscissas of the first ordinates of the same group; Determine a second average value according to the ordinates of the first ordinates of the same group; The fit information is determined according to the first coordinate, the first average value, and the second average value.
[0008] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, the step of obtaining a plurality of second coordinates in the special-shaped glass design drawing includes: Acquire multiple third coordinates of the special-shaped glass design drawing with the longest side as the x-axis, wherein the ordinates of the multiple third coordinates are the height information of the special-shaped glass design drawing, the abscissa of the first third coordinate is 0, and the abscissas of the remaining third coordinates are the distance information from the abscissa of the first third coordinate; The slope information of the third coordinate is determined according to the adjacent third coordinate, and the second coordinate is determined according to the slope information.
[0009] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, the fitting degree information is effective fitting degree information and is determined by the following steps: Determining a mean square error based on the first coordinate and the third coordinate; When the mean square error is less than a preset mean square error threshold, it is determined that the fit information is valid fit information.
[0010] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, the method further includes: When the degree of fit information is less than a preset degree of fit threshold, the degree of fit information is determined to be invalid degree of fit information, the special-shaped glass design drawing is switched, and the degree of fit of the special-shaped glass to be tested is re-judged according to the switched special-shaped glass design drawing.
[0011] According to the special-shaped glass measurement pairing method provided in some embodiments of the present application, the method further includes: After all the special-shaped glass design drawings are switched, the fitting degree information is still invalid fitting degree information, and an alarm is issued.
[0012] In a second aspect, an embodiment of the present application provides a device for measuring and pairing special-shaped glass, comprising: A first coordinate acquisition module, used to acquire a plurality of first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, wherein the ordinates of the plurality of first coordinates are height information of the special-shaped glass to be tested, the abscissa of the first first coordinate is 0, and the abscissas of the remaining first coordinates are distance information from the abscissa of the first first coordinate; A grouping module, used for acquiring a plurality of second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis, and grouping the plurality of first coordinates according to the plurality of second coordinates; A fitting degree information determination module, used for calculating the fitting degree of the grouped plurality of the first coordinates according to the grouping, and determining the fitting degree information; The target determination module is used to determine whether the fitting degree information is greater than a preset fitting degree threshold, determine that the fitting degree information is valid fitting degree information, and determine that the special-shaped glass to be tested is a target special-shaped glass.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the method described in the first aspect of the embodiment of the present application is implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a processor. When the processor-executable computer program is executed by the processor, it is used to implement the method described in the first aspect of the embodiment of the present application.
[0015] The embodiments of the present application include at least the following beneficial effects: The embodiment of the present application obtains multiple first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, and multiple second coordinates in the special-shaped glass design drawing, groups the first coordinates according to the multiple second coordinates, and then obtains the fitting information by calculating the fitting degree of the grouped first coordinates, and makes a judgment. When the fitting degree information is greater than a preset fitting degree threshold and is valid fitting degree information, the special-shaped glass to be tested is determined to be the target special-shaped glass. The special-shaped glass measurement pairing method provided in the embodiment of the present application obtains coordinates with the longest side of the special-shaped glass to be tested as the x-axis, and groups them by the second coordinates in the special-shaped glass design drawing. The measurement pairing of the special-shaped glass can be realized by judging the fitting degree information of the grouped first coordinates, without the need for manual comparison, and automatic special-shaped glass fast pairing can be realized, thereby improving production efficiency.
[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0018] Figure 1 A schematic diagram of the steps of a method for measuring and pairing special-shaped glass provided in an embodiment of the present application; Figure 2 A schematic diagram of a device for detecting special-shaped glass provided in an embodiment of the present application; Figure 3 A schematic diagram of a step of obtaining a second coordinate provided in an embodiment of the present application; Figure 4 for Figure 1 Specific step diagram of step S103; Figure 5 A schematic diagram of the steps for determining the degree of fit information provided in an embodiment of the present application; Figure 6 A schematic diagram of the steps for determining effective fit information provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of a special-shaped glass measurement pairing device provided in an embodiment of the present application; Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0020] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0022] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0023] Special-shaped glass refers to glass products with non-standard shapes or sizes, which usually require special processing techniques to make, such as cutting, edging, drilling, hot bending, etc. Special-shaped glass can meet the needs of different buildings and decorations due to its unique design. It is often used in specific parts of buildings, such as curved glass walls, irregularly shaped windows, specially designed glass doors or decorative glass artworks.
[0024] Special-shaped glass can be made according to actual needs, and its processes include: Tempered treatment: improve the strength and safety of glass; Paint treatment: a layer of paint is applied on the glass surface, which can be used for cabinet door panels, etc. It is beautiful and practical; Hollow treatment: Two or more pieces of glass are evenly separated by effective support and sealed around the edges to form one or more dry gas spaces to achieve the effects of heat preservation and sound insulation.
[0025] Coating treatment: A thin film is coated on the surface of the glass to give it functions such as energy saving and UV protection.
[0026] Shaped glass is widely used in furniture, automobiles, electronic equipment and other fields. Depending on the application scenario, special-shaped glass may need to meet different safety standards and technical specifications.
[0027] Fit is usually a concept that measures the degree of match between a model and data in statistics and data analysis. It describes the closeness between the model's predicted values and the actual observed values. A good fit means that the model can well explain the trend of changes in the data and has a small prediction error. Fit can be quantified by a variety of statistics, the most common of which are: Coefficient of determination (R²): Indicates the proportion of variation explained by the model to the total variation. The value of R² ranges from 0 to 1, and the larger the value, the better the model fit.
[0028] Mean-Square Error (MSE): It is the average of the squares of the differences between the predicted values and the actual values. The smaller the MSE, the better the model fit.
[0029] Root Mean Squared Error (RMSE): It is the square root of MSE and is in the same unit as the original data for easy understanding.
[0030] Mean Absolute Deviation (MAE): It is the average of the absolute values of the difference between the predicted value and the actual value. The smaller the MAE, the better the fitting effect.
[0031] In the process of deep processing of architectural glass, several key production processes are involved, including cutting, edging, tempering, interlayer and hollowing. In the interlayer and hollowing process, two or three pieces of glass are usually required to be produced in pairs to ensure the quality of the final product. For special-shaped glass, due to the particularity of its shape, the production process often adopts a discrete production mode. In this mode, production processes such as hollowing and interlayer can only be completed by manually verifying the size. The staff needs to manually enter the corresponding processing parameters according to the content on the label and the requirements of the processing technology. This method is not only inefficient, but also cannot automatically check the compliance of the process size after the processing is completed. Therefore, it can only be checked by manual measurement, which further increases production time and cost.
[0032] At present, the processing of special-shaped glass is done by sticking a label on the surface of the special-shaped glass during the cutting process to indicate the glass code. The label code corresponds to the process flow card. In the post-processing process, the label code is manually identified, and the processing equipment parameters are set according to the process requirements of the process flow card, and then the processing is started. In the processes that require paired production such as hollow and interlayer, the size information of the two pieces of glass can only be manually reviewed, and the paired two pieces of glass are selected for production. This not only limits the improvement of production efficiency, but also may cause errors in the production process, affecting the quality of the final product. Therefore, developing a method that can accurately measure the size of special-shaped glass and identify its identity is of great significance to improving the automation level and production efficiency of glass deep processing.
[0033] In order to achieve rapid pairing of special-shaped glass and improve the degree of automation of special-shaped glass measurement pairing, the embodiments of the present application provide a method, device and storage medium for measuring and pairing special-shaped glass, by obtaining multiple first coordinates of the special-shaped glass to be measured with the longest side as the x-axis, and multiple second coordinates in the special-shaped glass design drawing, the first coordinates are grouped according to the multiple second coordinates, and then the fitting degree of the grouped first coordinates is calculated to obtain the fitting degree information, and a judgment is made. When the fitting degree information is greater than a preset fitting degree threshold and is valid fitting degree information, the special-shaped glass to be measured is determined to be the target special-shaped glass. The method for measuring and pairing special-shaped glass provided in the embodiments of the present application obtains coordinates with the longest side of the special-shaped glass to be measured as the x-axis, and groups them by the second coordinates in the special-shaped glass design drawing. The measurement pairing of the special-shaped glass can be achieved by judging the fitting degree information of the grouped first coordinates, without the need for manual comparison, and automatic special-shaped glass rapid pairing is achieved, thereby improving production efficiency.
[0034] The special-shaped glass measurement pairing method, device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the recommended method in the embodiments of the present application is described.
[0035] Please refer to Figure 1 , is a schematic diagram of the steps of a special-shaped glass measurement pairing method provided in an embodiment of the present application, such as Figure 1 As shown, in order to realize the automation of special-shaped glass measurement pairing, the embodiment of the present application provides a special-shaped glass measurement pairing method which may include but is not limited to steps S101 to S105: Step S101, obtaining a plurality of first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, wherein the ordinates of the plurality of first coordinates are height information of the special-shaped glass to be tested, the abscissa of the first first coordinate is 0, and the abscissas of the remaining first coordinates are distance information from the abscissa of the first first coordinate.
[0036] Illustratively, in an embodiment of the present application, the longest side of the special-shaped glass to be measured is used as the base, and the special-shaped glass is measured by a rangefinder to obtain the first coordinate. The obtained coordinate x-axis is the longest side of the special-shaped glass to be measured, and the x-axis coordinate represents the distance from the position of the longest side at the time of measurement to the starting point, that is, the horizontal coordinate of the first first coordinate is 0, and the horizontal coordinates of the remaining first coordinates are the distance information from the horizontal coordinate of the first first coordinate; the obtained coordinate y-axis coordinate represents the height information of the special-shaped glass to be measured.
[0037] It should be noted that, in the embodiment of the present application, the first coordinates are obtained by spacing the preset distances, and the plurality of first coordinates are used to represent the information when the special-shaped glass to be tested has the longest side as the base.
[0038] Specifically, in a feasible embodiment of the present application, a laser rangefinder is used to measure the special-shaped glass to be measured, and the preset distance is set to 5 mm, then a first coordinate is obtained every 5 mm, and the obtained first coordinate is expressed as C n (L n , W.C. n ), C n represents the nth first coordinate, where L n is the horizontal axis, L0=0, L1 to L n is the distance information from L0; WC n is the ordinate, indicating the relationship with L n The height of the special-shaped glass to be measured corresponding to the position; the longest side length of the special-shaped glass to be measured is 1200mm. After the laser rangefinder is measured according to the preset distance, the first coordinate of the special-shaped glass to be measured is obtained as follows:
[0039] It should be noted that in the embodiments of the present application, the instrument used for measurement can be a laser rangefinder or other measuring instruments. The user can choose the measuring instrument according to the actual situation and is not limited to the laser rangefinder provided in the embodiments of the present application. The present application does not impose too many restrictions on the choice of measuring instruments.
[0040] For example, in the embodiments of this application, please refer to Figure 2 , is a schematic diagram of a device for detecting special-shaped glass provided in an embodiment of the present application, such as Figure 2 As shown, in the embodiment of the present application, the laser rangefinder is arranged at the top of the device, and the transmission wheel is arranged at the bottom of the device. The laser rangefinder is used to measure the special-shaped glass to be measured. W is the distance between the laser rangefinder and the bottom transmission wheel, that is, the total length, and W m The distance measured by the laser when the laser touches the side of the glass is returned to the laser rangefinder, which is the total length W minus the distance W detected by the laser rangefinder. m , the height WC of the special-shaped glass to be tested can be obtained.
[0041] The special-shaped glass to be measured is transported by the transmission wheel at the bottom, the transmission speed is set, the laser rangefinder is set to timed measurement, the measurement interval is set to 50ms, and the transmission speed is set to 6m / min. Then, it is possible to measure sequentially at every preset interval of 5mm to obtain multiple first coordinates.
[0042] By acquiring a plurality of first coordinates of the special-shaped glass to be tested, the shape of the special-shaped glass to be tested is represented for subsequent special-shaped glass pairing.
[0043] Step S102: obtaining a plurality of second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis.
[0044] It should be noted that in the embodiment of the present application, the second coordinate is the characteristic point of the special-shaped glass design drawing. Unlike the first coordinate, the second coordinate is not a coordinate point obtained at a preset distance, but a characteristic point obtained based on the information in the special-shaped glass design drawing. It is the coordinates of all turning points in the special-shaped glass design drawing when the longest side is used as the x-axis.
[0045] For example, please refer to Figure 3 , is a schematic diagram of a step of obtaining a second coordinate provided in an embodiment of the present application, such as Figure 3 As shown, in the embodiment of the present application, the second coordinate acquisition method may include but is not limited to step S201 to step S202: Step S201, obtaining multiple third coordinates of the special-shaped glass design drawing with the longest side as the x-axis, the vertical coordinates of the multiple third coordinates are the height information of the special-shaped glass design drawing, the horizontal coordinate of the first third coordinate is 0, and the horizontal coordinates of the remaining third coordinates are the distance information from the horizontal coordinate of the first third coordinate.
[0046] Step S202: Determine the slope information of the third coordinate according to the adjacent third coordinate, and determine the second coordinate according to the slope information.
[0047] It should be noted that the third coordinate is obtained by sampling the special-shaped glass design drawings with the longest side of the special-shaped glass design drawings as the x-axis at a preset distance. The preset distance needs to be the same as the preset distance of the first coordinate. When the second coordinate is determined from the third coordinate, it can be used for subsequent grouping and for determining whether the fitting information is valid.
[0048] It is understandable that, since the special-shaped glass design drawings are drawing information, they can be directly obtained through the computer without the use of measuring instruments.
[0049] Exemplarily, in a feasible embodiment of the present application, the third coordinate is obtained by measuring the special-shaped glass design drawing, and the obtained coordinate x-axis is the longest side of the special-shaped glass design drawing, and the x-axis coordinate represents the distance from the longest side of the special-shaped glass design drawing to the starting point during measurement, that is, the abscissa of the first third coordinate is 0, and the abscissas of the remaining third coordinates are the distance information from the abscissa of the first third coordinate; the obtained coordinate y-axis coordinate represents the height information of the special-shaped glass design drawing; After obtaining the third coordinate, the slope information of the third coordinate is determined pairwise according to the adjacent third coordinates. The slope information represents the slope of each two adjacent third coordinates. The second coordinate is determined according to the slope information. Whether it is a feature point is determined by judging whether the slope information has changed. The coordinates of the feature point are determined as the second coordinate.
[0050] Specifically, in a feasible embodiment of the present application, the preset distance is 5 mm, which is the same as the preset distance used to obtain the first coordinate, and a third coordinate is obtained every 5 mm. The obtained third coordinate is represented by A n (L n ,WZ n ), where A n Indicates the nth third coordinate, L n is the horizontal axis, L0=0, L1 to L n is the distance information from L0; WZ n is the ordinate, indicating the relationship with L n The height of the special-shaped glass design drawing corresponding to the position; the longest side length of the special-shaped glass design drawing is 1200mm, and sampling is performed at every preset distance to obtain the third coordinate. The third coordinate of the special-shaped glass design drawing obtained is as follows:
[0051] After the third coordinate is obtained, the slope is calculated according to the adjacent third coordinate to obtain the slope information a1 to a n , a1 represents the slope from A0 to A1, a2 represents the slope from A1 to A2, and so on. n Indicates A n-1 To A n After obtaining the slope information, by comparison, when two adjacent slope information changes, the third coordinate related to the two slopes can be determined as the feature point, and the third coordinate is determined as the second coordinate. For example, if the slope from A2 to A3 represented by a3 changes with the slope from A3 to A4 represented by a4, A3 can be determined as the second coordinate.
[0052] Through the special-shaped glass design drawings, the second coordinates representing the feature points are obtained for subsequent first coordinate grouping, so that the grouped first coordinates can be obtained for detection and pairing.
[0053] Step S103: group the multiple first coordinates according to the multiple second coordinates.
[0054] Exemplarily, in the embodiment of the present application, after the second coordinate is determined, the horizontal coordinate of the second coordinate is obtained to group the first coordinate, such as Figure 4 As shown, in the embodiment of the present application, step S103 may include but is not limited to steps S301 to S302: Step S301: determine the horizontal coordinates of multiple second coordinates, and determine the grouping interval according to the horizontal coordinates of the second coordinates.
[0055] Step S302: group the first coordinates according to the horizontal coordinates and the grouping intervals of the first coordinates.
[0056] Specifically, in a feasible embodiment of the present application, the longest side of the special-shaped glass design drawing is 1200 mm, and the coordinates of the plurality of second coordinates are 50, 1050, and 1150 respectively; then the grouping intervals are determined to be 0-50, 50-1050, 1050-1150, and 1150-1200; After the grouping interval is determined, the abscissa of the first coordinate is grouped according to the grouping interval. The first coordinate with abscissa between 0 and 50 is divided into the first group, the first coordinate with abscissa between 50 and 1050 is divided into the second group, the first coordinate with abscissa between 1050 and 1150 is divided into the third group, and the first coordinate with abscissa between 1150 and 1200 is divided into the fourth group.
[0057] By grouping the first coordinates, it can be used for subsequent confirmation of fit information to achieve measurement pairing of the special-shaped glass to be measured.
[0058] It is understandable that in the embodiment of the present application, the specific grouping situation needs to be determined according to the special-shaped glass design drawing actually selected. When selecting the special-shaped glass design drawing, it is necessary to compare the longest side of the special-shaped glass design drawing with the longest side of the special-shaped glass to be tested. When the longest side of the special-shaped glass design drawing is equal to the longest side of the special-shaped glass to be tested, the second coordinate is determined and the grouping operation is performed. By comparing the longest side of the special-shaped glass design drawing with the longest side of the special-shaped glass to be tested, unnecessary pairing operations can be avoided.
[0059] Step S104: Calculate the fitting degree of the grouped first coordinates according to the grouping to obtain fitting degree information.
[0060] For example, please refer to Figure 5 , is a schematic diagram of a step of determining the degree of fit information provided in an embodiment of the present application, such as Figure 5As shown, in the embodiment of the present application, after the first coordinates are grouped, the steps of determining the degree of fit information may include but are not limited to steps S401 to S403: Step S401: determine a first average value according to the horizontal coordinates of the first coordinates of the same group.
[0061] Step S402: determine a second average value according to the ordinates of the first coordinates of the same group.
[0062] Step S403: determine the fitting degree information according to the first coordinate, the first average value and the second average value.
[0063] Specifically, in the embodiment of the present application, according to the horizontal coordinate L of the first coordinate of the same group n Determine the first mean value for the group , according to the ordinate WC of the first coordinate of the same group n Determine the second mean , after obtaining the first average value and the second average value, the fitting degree is calculated.
[0064] It can be understood that, through the fit judgment, it can be judged whether the first coordinates of the special-shaped glass to be tested whose fit information is greater than the preset fit pre-threshold value after grouping can be connected into a straight line. If the fit information determined by the first coordinates of each group is greater than the preset fit pre-threshold value, it means that the first coordinates in each group can be connected into a straight line, which proves that there is no turning point in the group. Since the first coordinates are grouped by the second coordinates, the second coordinates represent all turning points of the special-shaped glass design drawing. Therefore, the line segments between the second coordinates are also straight lines without turning points. When it is judged that each group of first coordinates is a straight line, it can be judged that the special-shaped glass to be tested is the same as the special-shaped glass design drawing. Further determining that the fit information is valid fit information can determine that the special-shaped glass to be tested is the target special-shaped glass.
[0065] It should be noted that in the embodiment of the present application, the calculation formula of the degree of fit can be the following formula: …… (1) By determining the fitting degree information, it can be determined whether the special-shaped glass to be measured is matched with the special-shaped glass design drawing, thereby realizing the automation of the measurement matching of the special-shaped glass.
[0066] Step S105: when the fitting degree information is greater than a preset fitting degree threshold and the fitting degree information is valid fitting degree information, it is determined that the special-shaped glass to be tested is a target special-shaped glass.
[0067] It should be noted that in the embodiment of the present application, the degree of linear relationship is measured by the fitting degree R to evaluate the fitting effect of the measurement data model, and the positive correlation value range is: 0≤R≤1. The closer to 1, the closer the group of measurement data is to a straight line.
[0068] Exemplarily, in an embodiment of the present application, the preset fitting threshold is set to 0.98. When the determined fitting information is greater than the preset fitting threshold, the special-shaped glass to be tested can be determined to be the target special-shaped glass if the fitting information is valid fitting information.
[0069] It should be noted that in the embodiment of the present application, in addition to comparing the obtained fitting information with the preset fitting threshold, it is also necessary to further determine whether it is valid fitting information to ensure that the obtained fitting information matches the special-shaped glass design drawings used for matching.
[0070] For example, please refer to Figure 6 , is a schematic diagram of the steps of determining effective fit information provided by an embodiment of the present application, such as Figure 6 As shown, in the embodiment of the present application, the validity judgment of the fit information may include but is not limited to step S501 and step S502: Step S501: Determine a mean square error according to the first coordinate and the third coordinate.
[0071] Specifically, in the embodiment of the present application, since the preset distance obtained by the first coordinate is the same as the preset distance sampled by the third coordinate, each first coordinate has a corresponding third coordinate, that is, C0 in the first coordinate corresponds to A0, C1 corresponds to A1, and so on. The mean square error is determined by the ordinate of the first coordinate and the ordinate of the third coordinate. The ordinate of the first coordinate and the ordinate of the corresponding third coordinate are determined by the following mean square error formula: …… (2) Among them, WC i represents the ordinate of the i-th first coordinate, WZ i Represents the ordinate of the i-th third coordinate.
[0072] The mean square error can be determined by the above formula (2), and whether the obtained fit information is valid fit information can be determined based on the mean square error.
[0073] Step S502: When the mean square error is less than a preset mean square error threshold, the fit information is determined to be valid fit information.
[0074] For example, in the embodiment of the present application, the allowable deviation when the length / width is less than 1000 mm is ±2. According to this deviation, it is clear that the measurement error of the special-shaped glass is ≤2 mm, so the calculated preset mean square error threshold is less than or equal to 4. When MSE≤4, it is determined that the obtained fit information is valid fit information.
[0075] It is understandable that, depending on different indicators, the preset mean square error threshold will fluctuate after calculation. During measurement, the required indicator can be selected according to actual needs. This application does not impose excessive restrictions on the setting of the preset mean square error threshold.
[0076] In the embodiment of the present application, by calculating and judging the mean square error, the pairing result can be made more accurate, the accuracy of the measurement pairing of special-shaped glass can be improved, and the pairing efficiency can be improved.
[0077] It should be noted that in the embodiment of the present application, the provided method for measuring and pairing special-shaped glass also includes: Step S106: when the fitting degree information is less than the preset fitting degree threshold, the fitting degree information is determined to be invalid fitting degree information, the special-shaped glass design drawing is switched, and the fitting degree of the special-shaped glass to be tested is re-judged according to the switched special-shaped glass design drawing.
[0078] It can be understood that when the fitting information is less than the preset fitting threshold, the fitting information is determined to be invalid fitting information, which means that the special-shaped glass to be tested cannot be paired with the special-shaped glass design drawing, so it is necessary to switch to a new special-shaped glass design drawing for re-pairing.
[0079] For example, in the embodiment of the present application, the special-shaped glass design drawing is obtained from the database. After the special-shaped glass design drawing is obtained again, the steps S101 to S105 described above are performed again to obtain the fit information again for pairing until the pairing is successful. The steps S101 to S105 can be specifically described above and will not be repeated here.
[0080] In the embodiment of the present application, by switching the design drawing of the special-shaped glass, if the fitting information is invalid, re-measurement and pairing are performed, so as to ensure complete pairing of the special-shaped glass to be measured and avoid errors and omissions.
[0081] It should be noted that in the embodiment of the present application, the provided method for measuring and pairing special-shaped glass also includes: Step S107: After all the special-shaped glass design drawings are switched, if the fitting degree information is still invalid, an alarm is issued.
[0082] It is understandable that when all the special-shaped glass design drawings have been switched for measurement and pairing with the special-shaped glass to be tested, if the obtained fit information is still invalid fit information, it is determined that the special-shaped glass to be tested has no matching special-shaped glass design drawings, or its size does not meet the specifications, so an alarm is issued to notify the inspection personnel to perform manual inspection.
[0083] The alarm can be issued by issuing a voice alarm or an alarm display. For example, in one embodiment of the present application, when all the special-shaped glass design drawings are switched and the measurement pairing of steps S101 to S105 is completed, the fit information is still invalid fit information, then a voice alarm is played to remind the inspection personnel that the special-shaped glass to be tested cannot be paired. After hearing the voice alarm, the inspection personnel can perform corresponding processing operations on the special-shaped glass to be tested according to the actual situation.
[0084] In the embodiment of the present application, when valid fitting information cannot be obtained after switching all the special-shaped glass design drawings and pairing them with the special-shaped glass to be tested for measurement, an alarm operation is performed to remind the inspection personnel to perform corresponding processing operations on the special-shaped glass to be tested, so that the inspection personnel can promptly find the special-shaped glass that cannot be paired, and avoid the problem of subsequent unprocessed special-shaped glass that cannot be paired, which requires re-inspection.
[0085] The embodiment of the present application also discloses a special-shaped glass measurement pairing device, which is used to implement the special-shaped glass measurement pairing method as described above.
[0086] Please refer to Figure 7 , is a schematic diagram of the structure of a special-shaped glass measurement pairing device provided in an embodiment of the present application, such as Figure 7 As shown, the special-shaped glass measurement pairing device 100 for implementing the special-shaped glass measurement pairing method in the embodiment of the present application may include but is not limited to: a first coordinate acquisition module 101, a second coordinate acquisition module 102, a grouping module 103, a fit information determination module 104 and a target determination module 105.
[0087] Among them, the first coordinate acquisition module 101 is used to obtain multiple first coordinates of the special-shaped glass to be tested when the longest side is the x-axis, the vertical coordinates of the multiple first coordinates are the height information of the special-shaped glass to be tested, the horizontal coordinate of the first first coordinate is 0, and the horizontal coordinates of the remaining first coordinates are the distance information from the horizontal coordinate of the first first coordinate.
[0088] It should be noted that the first coordinate acquisition module may include a measuring instrument such as a laser rangefinder, and the height detection of the special-shaped glass to be measured may be achieved through the measuring instrument.
[0089] The second coordinate acquisition module 102 is used to acquire multiple second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis; A grouping module 103, configured to group the plurality of first coordinates according to the plurality of second coordinates; The fitting degree information determination module 104 calculates the fitting degree of the grouped first coordinates according to the grouping to obtain the fitting degree information; The target determination module 105 determines that the special-shaped glass to be tested is the target special-shaped glass when the fitting degree information is greater than a preset fitting degree threshold and the fitting degree information is valid fitting degree information.
[0090] The device for measuring and pairing special-shaped glass provided in the embodiment of the present application can realize the measurement and pairing of special-shaped glass and improve the degree of automation of the measurement and pairing of special-shaped glass.
[0091] The embodiment of the present application provides a method for measuring and pairing special-shaped glass, which has at least the following beneficial effects: The embodiment of the present application obtains multiple first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, and multiple second coordinates in the special-shaped glass design drawing, groups the first coordinates according to the multiple second coordinates, and then obtains the fitting information by calculating the fitting degree of the grouped first coordinates, and makes a judgment. When the fitting degree information is greater than a preset fitting degree threshold and is valid fitting degree information, the special-shaped glass to be tested is determined to be the target special-shaped glass. The special-shaped glass measurement pairing method provided in the embodiment of the present application obtains coordinates with the longest side of the special-shaped glass to be tested as the x-axis, and groups them by the second coordinates in the special-shaped glass design drawing. The measurement pairing of the special-shaped glass can be realized by judging the fitting degree information of the grouped first coordinates, without the need for manual comparison, and automatic special-shaped glass fast pairing can be realized, thereby improving production efficiency.
[0092] Please refer to Figure 8 , Figure 8 A hardware structure of an electronic device according to an embodiment of the present application is provided, and the electronic device includes: The processor 901 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution of the special-shaped glass measurement pairing method provided in the embodiment of the present application; The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the special-shaped glass measurement pairing method of the embodiment of this application; Input / output interface 903, used to implement information input and output; Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904); The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0093] The embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the above information processing method.
[0094] An embodiment of the present application also discloses a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, a processor of an electronic device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the electronic device executes the above-mentioned information processing method.
[0095] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0096] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0097] In the several embodiments provided in the present 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 merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0098] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0099] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0102] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
Claims
1. A method for measuring and pairing special-shaped glass, characterized in that: The following steps are involved: Acquire multiple first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, wherein the ordinates of the multiple first coordinates are height information of the special-shaped glass to be tested, the abscissa of the first first coordinate is 0, and the abscissas of the remaining first coordinates are distance information from the abscissa of the first first coordinate; Acquire multiple second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis; grouping the plurality of first coordinates according to the plurality of second coordinates; Calculate the fit of the grouped plurality of first coordinates according to the grouping to obtain fit information; When the degree of fit information is greater than a preset degree of fit threshold and the degree of fit information is valid degree of fit information, it is determined that the special-shaped glass to be tested is a target special-shaped glass.
2. The special-shaped glass measurement pairing method according to claim 1, characterized in that: The step of grouping the plurality of first coordinates according to the plurality of second coordinates comprises: Determine a plurality of horizontal coordinates of the second coordinates, and determine a grouping interval according to the horizontal coordinates of the second coordinates; The first coordinates are grouped according to the horizontal coordinates of the first coordinates and the grouping interval.
3. The special-shaped glass measurement pairing method according to claim 1, characterized in that: The step of calculating the fit of the grouped first coordinates according to the groups to obtain fit information includes: determining a first average value according to the abscissas of the first ordinates of the same group; Determine a second average value according to the ordinates of the first ordinates of the same group; The fit information is determined according to the first coordinate, the first average value, and the second average value.
4. The special-shaped glass measurement pairing method according to claim 1, characterized in that: The step of obtaining a plurality of second coordinates in the special-shaped glass design drawing comprises: Acquire multiple third coordinates of the special-shaped glass design drawing with the longest side as the x-axis, wherein the ordinates of the multiple third coordinates are the height information of the special-shaped glass design drawing, the abscissa of the first third coordinate is 0, and the abscissas of the remaining third coordinates are the distance information from the abscissa of the first third coordinate; The slope information of the third coordinate is determined according to the adjacent third coordinate, and the second coordinate is determined according to the slope information.
5. The special-shaped glass measurement pairing method according to claim 4, characterized in that: The fitness information is effective fitness information and is determined by the following steps: Determining a mean square error based on the first coordinate and the third coordinate; When the mean square error is less than a preset mean square error threshold, it is determined that the fit information is valid fit information.
6. The special-shaped glass measurement pairing method according to claim 1, characterized in that: The method further comprises: When the degree of fit information is less than a preset degree of fit threshold, the degree of fit information is determined to be invalid degree of fit information, the special-shaped glass design drawing is switched, and the degree of fit of the special-shaped glass to be tested is re-judged according to the switched special-shaped glass design drawing.
7. The special-shaped glass measurement pairing method according to claim 6, characterized in that: The method further comprises: After all the special-shaped glass design drawings are switched, the fitting degree information is still invalid fitting degree information, and an alarm is issued.
8. A special-shaped glass measurement pairing device, characterized in that: include: A first coordinate acquisition module, used to acquire a plurality of first coordinates of the special-shaped glass to be tested with the longest side as the x-axis, wherein the ordinates of the plurality of first coordinates are height information of the special-shaped glass to be tested, the abscissa of the first first coordinate is 0, and the abscissas of the remaining first coordinates are distance information from the abscissa of the first first coordinate; A second coordinate acquisition module, used to acquire multiple second coordinates in the special-shaped glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is used as the x-axis; a grouping module, configured to group the plurality of the first coordinates according to the plurality of the second coordinates; A fitting degree information determination module is configured to calculate the fitting degree of the grouped first coordinates according to the grouping to obtain the fitting degree information; The target determination module determines that the special-shaped glass to be tested is a target special-shaped glass when the fitting information is greater than a preset fitting threshold and the fitting information is valid fitting information.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program executable by a processor is stored therein, and when the computer program executable by the processor is executed by the processor, it is used to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for positioning special-shaped glass processing pattern
CN101281403A
Glass screen fillet defect detection method, device and equipment and storage medium
CN114723755A
Liquid crystal glass thickness online detection method, system, equipment and medium
CN118521222A