Shaped glass measurement pairing method, apparatus, and storage medium
By obtaining the coordinates of irregularly shaped glass and design drawings and calculating the group fitting degree, the problem of low efficiency in manual size verification in the processing of irregularly shaped glass is solved, realizing automated and rapid matching, and improving production efficiency and product quality.
Patent Information
- Application Number
- CN202411296807.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2044-09-14
AI Technical Summary
In the current process of processing irregularly shaped glass, the reliance on manual verification of dimensions and manual input of parameters leads to low production efficiency and a high risk of errors, which affects product quality.
By obtaining the first coordinates of the irregularly shaped glass and the second coordinates of the design drawing, grouping and fitting degree calculation are performed. The fitting degree information is used to determine the identity of the irregularly shaped glass, thereby achieving automated matching.
It enables automated and rapid matching of irregularly shaped glass, improving production efficiency and reducing manual intervention and error rates.
Smart Images

Figure CN119334284B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of measurement, in particular to a special-shaped glass measurement and pairing method and device and a storage medium. BACKGROUND
[0002] In the process of building glass deep processing, multiple key production processes are involved, including cutting, edge grinding, tempering, laminating and hollowing. In the laminating and hollowing processes, two or three pieces of glass usually need to be paired for production to ensure the quality of the final product. For special-shaped glass, due to its special shape, the production process usually adopts a discrete production mode. In this mode, the hollowing and laminating production processes can only be completed by relying on manual size verification. The workers need to manually input 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 processing is completed. Therefore, manual measurement is used for inspection, further increasing the production time and cost.
[0003] Currently, special-shaped glass processing is carried out in the cutting process, and labels are pasted on the surface of the special-shaped glass to indicate the glass code. The label code corresponds to the process flow card. In the subsequent processing process, the label code is manually identified, the processing equipment parameters are set according to the process requirements of the process flow card, and then the processing is started. In the hollowing and laminating processes that require paired production, the size information of the two pieces of glass can only be checked manually, and the two pieces of glass are selected for paired production, which 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 improve the automation level and production efficiency of glass deep processing. SUMMARY
[0004] The main purpose of the embodiments of the present application is to provide a special-shaped glass measurement and pairing method, device and storage medium to realize the rapid pairing of special-shaped glass and improve the automation degree of special-shaped glass measurement and pairing.
[0005] In a first aspect, the embodiments of the present application provide a special-shaped glass measurement and pairing method, including the following steps:
[0006] A plurality of first coordinates of a to-be-measured special-shaped glass are obtained when the longest side is taken as the x-axis. The longitudinal coordinates of the plurality of first coordinates are height information of the to-be-measured special-shaped glass, the horizontal coordinate of the first first coordinate is 0, and the horizontal coordinates of the remaining first coordinates are distance information from the horizontal coordinate of the first first coordinate.
[0007] Obtain multiple second coordinates from the irregular glass design drawing, where the second coordinates are the coordinates of all turning points when the longest side of the irregular glass design drawing is used as the x-axis;
[0008] Group the multiple first coordinates according to the multiple second coordinates;
[0009] The first coordinates after grouping are then subjected to a goodness-of-fit calculation according to the grouping to obtain goodness-of-fit information.
[0010] If the fitting degree information is greater than the preset fitting degree threshold and the fitting degree information is valid fitting degree information, the irregular glass to be tested is determined to be the target irregular glass.
[0011] According to some embodiments of the present application, the method for measuring and pairing irregularly shaped glass includes grouping multiple first coordinates based on multiple second coordinates, which includes:
[0012] Determine the x-coordinates of multiple second coordinates, and determine the grouping intervals based on the x-coordinates of the second coordinates;
[0013] The first coordinate is grouped according to its x-coordinate and the grouping interval.
[0014] According to some embodiments of the present application, the method for measuring and pairing irregularly shaped glass includes calculating the fitting degree of multiple grouped first coordinates according to the grouping to obtain fitting degree information, including:
[0015] The first average value is determined based on the x-coordinate of the first coordinate in the same group;
[0016] The second average value is determined based on the ordinate of the first coordinate in the same group;
[0017] The fitting information is determined based on the first coordinate, the first average value, and the second average value.
[0018] According to some embodiments of the present application, the method for measuring and matching irregularly shaped glass includes obtaining multiple second coordinates from the design drawings of the irregularly shaped glass, which includes:
[0019] Obtain multiple third coordinates of the irregular 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 irregular glass design drawing. The horizontal coordinate of the first third coordinate is 0, and the horizontal coordinates of the other third coordinates are the distance information from the horizontal coordinate of the first third coordinate.
[0020] The slope information of the third coordinate is determined based on the adjacent third coordinates, and the second coordinate is determined based on the slope information.
[0021] According to the profile glass measurement pairing method provided by some embodiments of the present application, the fitting degree information is effective fitting degree information determined by the following steps:
[0022] According to the first coordinate and the third coordinate, a mean square error is determined.
[0023] When the mean square error is less than a preset mean square error threshold, the fitting degree information is determined as effective fitting degree information.
[0024] According to the profile glass measurement pairing method provided by some embodiments of the present application, the method further comprises:
[0025] When the fitting degree information is less than a preset fitting degree threshold, the fitting degree information is determined as invalid fitting degree information, the profile glass design drawing is switched, and fitting degree judgment is performed again on the profile glass to be measured according to the switched profile glass design drawing.
[0026] According to the profile glass measurement pairing method provided by some embodiments of the present application, the method further comprises:
[0027] When all the profile glass design drawings are switched, the fitting degree information is still invalid fitting degree information, and an alarm is performed.
[0028] In a second aspect, the embodiments of the present application provide a profile glass measurement pairing device, comprising:
[0029] A first coordinate acquisition module is configured to acquire a plurality of first coordinates of a profile glass to be measured when the longest side is taken as an x-axis, the ordinate of the plurality of first coordinates is height information of the profile glass to be measured, the abscissa of a first first coordinate is 0, and the abscissa of the remaining first coordinates is distance information from the abscissa of the first first coordinate.
[0030] A grouping module is configured to acquire a plurality of second coordinates in a profile glass design drawing, the second coordinates are coordinates of all turning points when the longest side of the profile glass design drawing is taken as an x-axis, and the plurality of first coordinates are grouped according to the plurality of second coordinates.
[0031] A fitting degree information determination module is configured to perform fitting degree calculation on the grouped plurality of first coordinates according to the grouping, and determine fitting degree information.
[0032] A target determination module is configured to determine that the fitting degree information is greater than a preset fitting degree threshold, determine that the fitting degree information is effective fitting degree information, and determine that the profile glass to be measured is a target profile glass.
[0033] In a third aspect, the embodiments of the present application provide an electronic device, comprising:
[0034] At least one processor;
[0035] at least one memory for storing at least one program;
[0036] The method is implemented when the at least one program is executed by the at least one processor.
[0037] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a processor executable computer program, and the processor executable computer program is used for implementing the method in the first aspect of the embodiments of the present application when executed by a processor.
[0038] The embodiments of the present application at least have the following beneficial effects:
[0039] The embodiment of the present application obtains a plurality of first coordinates of the to-be-measured special-shaped glass when the longest side is the x-axis, and a plurality of second coordinates in the special-shaped glass design drawing, groups the first coordinates according to the plurality of second coordinates, then obtains the fitting degree information by calculating the fitting degree of the grouped first coordinates, and determines that the to-be-measured special-shaped glass is the target special-shaped glass when the fitting degree information is greater than the preset fitting degree threshold and is valid fitting degree information. The special-shaped glass measurement and pairing method provided by the embodiment of the present application obtains the coordinates with the longest side of the to-be-measured special-shaped glass as the x-axis, and groups the second coordinates in the special-shaped glass design drawing, and the fitting degree information of the grouped first coordinates can be obtained to realize the measurement and pairing of the special-shaped glass, without manual comparison, to realize automatic special-shaped glass rapid pairing and improve the production efficiency.
[0040] Other features and advantages of the present application will be described in the following description and, in part, will become apparent to those skilled in the art, and will be learned, from the description. The purposes and other advantages of the present application can be achieved and obtained by the structures specifically pointed out in the description and the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings are included to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, and are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation to the technical solutions of the present application.
[0042] Figure 1 A step schematic diagram of a special-shaped glass measurement and pairing method provided by an embodiment of the present application;
[0043] Figure 2 A device schematic diagram of special-shaped glass detection provided by an embodiment of the present application;
[0044] Figure 3 A step schematic diagram of obtaining second coordinates provided by an embodiment of the present application;
[0045] Figure 4 For Figure 1 The specific steps of step S103 are shown in the following schematic diagram.
[0046] Figure 5 The steps of fitting degree information determination provided by the embodiment of the application are shown in the following schematic diagram.
[0047] Figure 6 The steps of effective fitting degree information determination provided by the embodiment of the application are shown in the following schematic diagram.
[0048] Figure 7 The structure schematic diagram of the special-shaped glass measurement matching device provided by the embodiment of the application is shown in the following schematic diagram.
[0049] Figure 8 The hardware structure schematic diagram of the electronic device provided by the embodiment of the application is shown in the following schematic diagram. DETAILED DESCRIPTION
[0050] The application will be further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the application, and all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the application.
[0051] In the following description, "some embodiments" are related to a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the application belongs. The terms used herein are only for the purpose of describing the embodiments of the application and are not intended to limit the application.
[0053] Before the embodiments of the application are further described in detail, the terms and phrases involved in the embodiments of the application are explained, which are applicable to the following explanations.
[0054] Special-shaped glass refers to those glass products that are not of standard shape or size, which usually require special processing techniques for manufacturing, such as cutting, edging, drilling, heat bending, etc. Special-shaped glass can meet different architectural and decorative needs due to its unique design, and is often used in specific parts of buildings, such as curved glass walls, irregularly shaped windows, specially designed glass doors or decorative glass art, etc.
[0055] Special-shaped glass can be made according to actual needs, and its manufacturing process can include:
[0056] Tempering: Enhances the strength and safety of the glass.
[0057] Painting: Applying a layer of paint on the surface of the glass, which can be used for cabinet doors and other applications, providing both aesthetic appeal and practicality.
[0058] Hollow processing: Two or more pieces of glass are evenly spaced by effective support and sealed around the perimeter, forming one or more dry gas spaces to achieve thermal insulation and soundproofing effects.
[0059] Coating: A thin film is applied to the surface of the glass to achieve energy-saving, anti-ultraviolet, and other functions.
[0060] Shaped glass has a wide range of applications, including furniture, automobiles, and electronic devices. Depending on the application scenario, shaped glass may need to meet different safety standards and technical specifications.
[0061] Fit is a concept used in statistics and data analysis to measure the degree of match between a model and data. It describes how close the predicted values of the model are to the actual observed values. A good fit means that the model can well explain the trends in the data and has small prediction errors. Fit can be quantified by various statistical measures, including:
[0062] Coefficient of determination (R²): Represents the proportion of total variation explained by the model. The value of R² is between 0 and 1, and the larger the value, the better the model fits.
[0063] Mean-Square Error (MSE): The average of the squared differences between predicted and actual values. The smaller the MSE, the better the model fits.
[0064] Root Mean Squared Error (RMSE): The square root of MSE, which is in the same unit as the original data, making it easier to understand.
[0065] Mean Absolute Deviation (MAE): The average of the absolute values of the differences between predicted and actual values. The smaller the MAE, the better the fit.
[0066] In the process of deep processing of building glass, several key production processes are involved, including cutting, edge grinding, tempering, lamination and hollowing. In the lamination and hollowing processes, two or three pieces of glass are usually paired to ensure the quality of the final product. For shaped glass, due to its special shape, the production process often adopts a discrete production mode. In this mode, the hollowing and lamination production processes can only be completed by relying on manual size verification. The workers need to manually input 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 processing is completed. Therefore, manual measurement is used for inspection, further increasing the production time and cost.
[0067] Currently, the shaped glass processing is carried out by pasting labels on the surface of the shaped glass during the unloading process in the cutting process, indicating the glass code. The label code corresponds to the process flow card. In the subsequent processing process, the label code is identified manually, 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 hollowing, lamination and other processes that require paired production, the size information of the two pieces of glass can only be checked manually, and the two pieces of glass are selected for paired production, which 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 shaped glass and identify its identity is of great significance to improve the automation level and production efficiency of glass deep processing.
[0068] In order to realize the rapid pairing of shaped glass and improve the automation degree of shaped glass measurement and pairing, the embodiment of the present application provides a shaped glass measurement and pairing method, device and storage medium. By obtaining a plurality of first coordinates of the shaped glass to be measured when the longest side is the x-axis, and a plurality of second coordinates in the design drawing of the shaped glass, the first coordinates are grouped according to the plurality of second coordinates, and then the fitting degree information of the grouped first coordinates is obtained by calculation. When the fitting degree information is greater than the preset fitting degree threshold and is valid fitting degree information, it is determined that the shaped glass to be measured is the target shaped glass. The shaped glass measurement and pairing method provided by the embodiment of the present application obtains the coordinates with the longest side of the shaped glass to be measured as the x-axis, and groups the second coordinates in the design drawing of the shaped glass. By judging the fitting degree information of the grouped first coordinates, the measurement and pairing of the shaped glass can be realized without manual comparison, automatic shaped glass rapid pairing is realized, and the production efficiency is improved.
[0069] The shaped glass measurement and pairing method, device and storage medium provided by the embodiment of the present application are specifically explained by the following embodiments. First, the recommended method in the embodiment of the present application is described.
[0070] Please refer toFigure 1 A step schematic diagram of a special-shaped glass measurement pairing method provided by an embodiment of the present application is shown in FIG. 1. In order to realize automation of special-shaped glass measurement pairing, the special-shaped glass measurement pairing method provided by the embodiment of the present application can include but is not limited to steps S101 to S105. Figure 1
[0071] In step S101, a plurality of first coordinates of the special-shaped glass to be measured are obtained when the longest side is taken as the x-axis. The ordinate of the plurality of first coordinates is the height information of the special-shaped glass to be measured. 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.
[0072] For example, in the embodiment of the present application, the longest side of the special-shaped glass to be measured is taken as the bottom, and the first coordinates are obtained by measuring the special-shaped glass by a distance measuring device. 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 starting point of the longest side during measurement, i.e., 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. The obtained coordinate y-axis represents the height information of the special-shaped glass to be measured.
[0073] It should be noted that in the embodiment of the present application, the first coordinates are obtained at intervals of a preset distance to represent the information of the special-shaped glass to be measured when the longest side is taken as the bottom.
[0074] Specifically, in a feasible embodiment of the present application, a laser distance measuring device is used to measure the special-shaped glass to be measured. The preset distance is set to 5 mm, and a first coordinate is obtained every 5 mm. The obtained first coordinates are represented as C n (L n , WC n ), C n represents the nth first coordinate, wherein L n is the abscissa, L0=0, and L1 to L n are distance information from L0; WC n is the ordinate, representing the height of the special-shaped glass to be measured corresponding to the position of L n . The length of the longest side of the special-shaped glass to be measured is 1200 mm. The first coordinates of the special-shaped glass to be measured obtained by the laser distance measuring device according to the preset distance are as follows:
[0075]
[0076] It should be noted that in the embodiment of the present application, the instrument used for measurement can be a laser distance measuring device or other measuring instruments. Users can select the measuring instrument according to actual conditions, and the selection of the measuring instrument is not limited to the laser distance measuring device provided by the embodiment of the present application. The present application does not make too many limitations on the selection of the measuring instrument.
[0077] Exemplary, please refer to Figure 2 , the device provided in the embodiment of the application for a profile glass detection schematic diagram, as Figure 2 shown, in the embodiment of the application, the laser range finder is arranged at the top of the device, and the transmission wheel is arranged at the bottom of the device, the laser range finder is used to measure the profile glass to be measured, W is the distance between the laser range finder and the bottom transmission wheel, i.e. the total length, W m is the measurement distance of the laser returning to the laser range finder when the laser contacts the side of the glass, the height WC of the profile glass to be measured can be obtained by subtracting the distance W m measured by the laser range finder from the total length W.
[0078] The profile glass to be measured is conveyed through the transmission wheel at the bottom, the transmission speed is set, the laser range finder is set to measure at a time, the measurement interval time is set to 50ms, and the transmission speed is set to 6m / min, so that the profile glass to be measured can be measured in sequence at a preset distance of 5mm each time, and a plurality of first coordinates can be obtained.
[0079] The plurality of first coordinates of the profile glass to be measured are obtained, which represent the shape of the profile glass to be measured, and are used for subsequent profile glass pairing.
[0080] In step S102, a plurality of second coordinates in the profile glass design drawing are obtained, and the second coordinates are the coordinates of all turning points when the longest side of the profile glass design drawing is taken as the x-axis.
[0081] It should be noted that, in the embodiment of the application, the second coordinates are feature points of the profile glass design drawing, and the difference between the second coordinates and the first coordinates is that the second coordinates are not coordinate points obtained at a preset distance, but are feature points obtained according to information in the profile glass design drawing, which are all turning point coordinates in the profile glass design drawing when the longest side is taken as the x-axis.
[0082] Exemplary, please refer to Figure 3 , the step for obtaining the second coordinates provided in the embodiment of the application, as Figure 3 shown, in the embodiment of the application, the second coordinate obtaining method can include but is not limited to steps S201 to S202:
[0083] In step S201, a plurality of third coordinates of the profile glass design drawing when the longest side is taken as the x-axis are obtained, the ordinate of the plurality of third coordinates is the height information of the profile glass design drawing, the abscissa of the first third coordinate is 0, and the abscissa of the remaining third coordinates is the distance information from the abscissa of the first third coordinate.
[0084] In step S202, the slope information of the third coordinate is determined according to the adjacent third coordinates, and the second coordinate is determined according to the slope information.
[0085] It should be noted that the third coordinate is obtained by taking the longest side of the shaped glass design drawing as the x-axis, sampling the shaped glass design drawing at a preset distance, and 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 determination of whether the fitting degree information is valid.
[0086] It can be understood that since the shaped glass design drawing is a drawing information, it can be directly obtained by the computer without using measuring instruments.
[0087] For example, in an embodiment of the present application, the third coordinate is obtained by measuring the shaped glass design drawing. The x-axis of the obtained coordinate is the longest side of the shaped glass design drawing. The x-axis coordinate represents the distance from the starting point of the longest side of the shaped glass design drawing during measurement, i.e. 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. The obtained y-axis coordinate represents the height information of the shaped glass design drawing.
[0088] After obtaining the third coordinate, the slope information of the third coordinate is determined two by two according to the adjacent third coordinates. The slope information represents the slope of each adjacent two third coordinates, and the second coordinate is determined according to the slope information. Whether it is a feature point is determined by judging whether the slope information changes, and the feature point coordinate is determined as the second coordinate.
[0089] Specifically, in an embodiment of the present application, the preset distance is 5mm, which is the same as the preset distance used to obtain the first coordinate. A third coordinate is obtained every 5mm. The obtained third coordinate is represented as A n (L n ,WZ n ), wherein A n represents the nth third coordinate, L n is the horizontal coordinate, L0=0, L1 to L n are distance information from L0; WZ n is the vertical coordinate, representing the height of the shaped glass design drawing corresponding to the position of L n . The longest side of the shaped glass design drawing is 1200mm, and a third coordinate is obtained every preset distance. The obtained third coordinate of the shaped glass design drawing is as follows:
[0090]
[0091] After obtaining the third coordinate, the slope is calculated according to the adjacent third coordinates, and the slope information a1 to a n is obtained, a1 represents the slope of A0 to A1, a2 represents the slope of A1 to A2, and so on, an indicates A n-1 to A n slope, when the slope information is obtained, by comparison, when the adjacent two slope information changes, the third coordinate related to the two slopes is determined as a feature point, the third coordinate is determined as the second coordinate, for example, a3 indicates the slope of A2 to A3 and a4 indicates the slope of A3 to A4, which changes, then A3 can be determined as the second coordinate.
[0092] Through the special-shaped glass design drawing, the second coordinate representing the feature point is obtained for subsequent grouping of the first coordinate, that is, the grouped first coordinate is obtained for detection pairing.
[0093] Step S103, grouping the first coordinates according to the second coordinates.
[0094] For example, in the embodiment of the application, after the second coordinate is determined, the abscissa of the second coordinate is obtained for grouping the first coordinates, as shown in Figure 4 In the embodiment of the application, step S103 can include but is not limited to steps S301 to S302:
[0095] Step S301, determining the abscissa of the second coordinates, and determining the grouping interval according to the abscissa of the second coordinates.
[0096] Step S302, grouping the first coordinates according to the abscissa of the first coordinates and the grouping interval.
[0097] Specifically, in a feasible embodiment of the application, the longest side of the special-shaped glass design drawing is 1200mm, and the coordinates of the second coordinates are 50, 1050 and 1150 respectively; then the grouping interval is determined as 0-50, 50-1050, 1050-1150 and 1150-1200.
[0098] After the grouping interval is determined, the abscissa of the first coordinates is grouped according to the grouping interval, the first coordinates with the abscissa located in 0-50 are grouped into the first group, the first coordinates with the abscissa located in 50-1050 are grouped into the second group, the first coordinates with the abscissa located in 1050-1150 are grouped into the third group, and the first coordinates with the abscissa located in 1150-1200 are grouped into the fourth group.
[0099] By grouping the first coordinates, the confirmation of the fitting degree information can be used for subsequent measurement pairing of the to-be-measured special-shaped glass.
[0100] It can be understood that in the embodiments of the present application, the specific grouping needs to be determined according to the actual selected profiled glass design drawing, and when selecting the profiled glass design drawing, the longest side of the profiled glass design drawing needs to be compared with the longest side of the to-be-tested profiled glass, and when the longest side of the profiled glass design drawing is equal to the longest side of the to-be-tested profiled glass, the determination of the second coordinate and the grouping operation are performed. Through the comparison of the longest side of the profiled glass design drawing and the longest side of the to-be-tested profiled glass, unnecessary pairing operation can be avoided.
[0101] In step S104, the plurality of first coordinates after grouping is fitted according to the grouping to obtain fitting degree information.
[0102] For example, please refer to Figure 5 The step diagram of the fitting degree information determination provided by the embodiments of the present application is shown in Figure 5 After the first coordinates are grouped in the embodiments of the present application, the step of determining the fitting degree information can include but is not limited to steps S401 to S403:
[0103] In step S401, a first average value is determined according to the horizontal coordinates of the first coordinates in the same group.
[0104] In step S402, a second average value is determined according to the vertical coordinates of the first coordinates in the same group.
[0105] In step S403, the fitting degree information is determined according to the first coordinates, the first average value and the second average value.
[0106] Specifically, in the embodiments of the present application, the first average value of the group is determined according to the horizontal coordinates L n of the first coordinates in the same group. The second average value is determined according to the vertical coordinates WC n of the first coordinates in the same group. After the first average value and the second average value are obtained, the fitting degree calculation is performed.
[0107] It can be understood that, by the goodness of fit judgment, it can be judged whether the first coordinates of the grouped to-be-measured profiled glass whose goodness of fit information is greater than the preset goodness of fit pre-threshold value can be connected to form a straight line. If the goodness of fit information determined by the first coordinates of each group is greater than the preset goodness of fit pre-threshold value, it indicates that the first coordinates in each group can be connected to form a straight line, which proves that there is no turning point in the grouping. Since the first coordinates are grouped by the second coordinates, the second coordinates represent all turning points of the profiled glass design drawing, and therefore the line segment between the second coordinates is also a straight line without turning points. In the case of judging that the first coordinates of each group are straight lines, it can be judged that the to-be-measured profiled glass is the same as the profiled glass design drawing, and further determining that the goodness of fit information is valid goodness of fit information can determine that the to-be-measured profiled glass is the target profiled glass.
[0108] It should be noted that in the embodiments of the present application, the calculation formula of the goodness of fit can be the following formula:
[0109] … (1)
[0110] By determining the goodness of fit information, it can be determined whether the to-be-measured profiled glass is paired with the profiled glass design drawing, thereby realizing the automatic pairing of the profiled glass measurement.
[0111] In step S105, in the case that the goodness of fit information is greater than the preset goodness of fit threshold value and the goodness of fit information is valid goodness of fit information, it is determined that the to-be-measured profiled glass is the target profiled glass.
[0112] It should be noted that in the embodiments of the present application, the goodness of fit R measures the closeness of the linear relationship, and evaluates the fitting effect of the measurement data model. The positive correlation value range is: 0≤R≤1. The closer to 1, the closer the group of measurement data approaches a straight line.
[0113] For example, in the embodiments of the present application, the preset goodness of fit threshold value is set to 0.98. When the determined goodness of fit information is greater than the preset goodness of fit threshold value, it can be determined that the to-be-measured profiled glass is the target profiled glass in the case that the goodness of fit information is valid goodness of fit information.
[0114] It should be noted that in the embodiments of the present application, the obtained goodness of fit information needs to be further determined to be valid goodness of fit information in addition to comparison with the preset goodness of fit threshold value, so as to ensure that the obtained goodness of fit information matches the profiled glass design drawing used for pairing.
[0115] For example, please refer to Figure 6 The step diagram for judging the valid goodness of fit information provided by the embodiments of the present application is shown in Figure 6 The validity judgment of the goodness of fit information in the embodiments of the present application can include but is not limited to step S501 and step S502:
[0116] Step S501, determining the mean square error according to the first coordinate and the third coordinate.
[0117] Specifically, in the embodiment of the 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 longitudinal coordinate of the first coordinate and the longitudinal coordinate of the corresponding third coordinate are determined by the following mean square error formula:
[0118] … (2)
[0119] Wherein, WC i represents the longitudinal coordinate of the i-th first coordinate, WZ i represents the longitudinal coordinate of the i-th third coordinate.
[0120] The mean square error can be determined by the above formula (2), and whether the obtained fitting degree information is valid fitting degree information is determined according to the mean square error.
[0121] Step S502, when the mean square error is less than the preset mean square error threshold, determining that the fitting degree information is valid fitting degree information.
[0122] For example, in the embodiment of the application, the allowed deviation when the length / width is less than 1000mm is ±2, according to the deviation, the measurement error of the special-shaped glass is ≤2mm, so the calculated preset mean square error threshold is less than or equal to 4. When MSE≤4, it is determined that the obtained fitting degree information is valid fitting degree information.
[0123] It can be understood that according to different indicators, the preset mean square error threshold will fluctuate up and down after calculation, and the required indicators can be selected according to actual needs during measurement. The application does not make too many limitations on the setting of the preset mean square error threshold.
[0124] In the embodiment of the application, the calculation of the mean square error can make the pairing result more accurate, improve the accuracy of the special-shaped glass measurement pairing, and improve the pairing efficiency.
[0125] It should be noted that the special-shaped glass measurement pairing method provided in the embodiment of the application further comprises:
[0126] Step S106, when the fitting degree information is less than the preset fitting degree threshold, determining that the fitting degree information is invalid fitting degree information, switching the special-shaped glass design drawing, and re-determining the fitting degree of the to-be-measured special-shaped glass according to the switched special-shaped glass design drawing.
[0127] It can be understood that when the fitting degree information is less than the preset fitting degree threshold, it is determined that the fitting degree information is invalid fitting degree information, at this time, it indicates that the to-be-measured special-shaped glass cannot be matched with the special-shaped glass design drawing, and therefore a new special-shaped glass design drawing needs to be switched to perform re-matching.
[0128] For example, in the embodiment of the present application, the special-shaped glass design drawing is obtained from the database, and when the special-shaped glass design drawing is re-acquired, the steps S101 to S105 as described above are performed again, the fitting degree information is re-acquired to perform matching, and this is repeated until the matching is successful. The steps S101 to S105 can be referred to the specific description above, and will not be described here again.
[0129] In the embodiment of the present application, by switching the special-shaped glass design drawing, in the case that the fitting degree information is invalid fitting degree information, re-measurement and matching are performed, which can ensure complete matching of the to-be-measured special-shaped glass and avoid errors and omissions.
[0130] It should be noted that the special-shaped glass measurement and matching method provided in the embodiment of the present application further includes:
[0131] Step S107, when all the special-shaped glass design drawings are switched, and the fitting degree information is still invalid fitting degree information, an alarm is performed.
[0132] It can be understood that when all the special-shaped glass design drawings have been switched to be used for measurement and matching with the to-be-measured special-shaped glass, and the obtained fitting degree information is still invalid fitting degree information, it is determined that the to-be-measured special-shaped glass has no matching special-shaped glass design drawing, or its size does not conform to the specification, and therefore an alarm is performed to inform the detection personnel to perform manual detection.
[0133] The alarm can be performed in the form of voice alarm or alarm display, for example, in an embodiment of the present application, when all the special-shaped glass design drawings are switched, the measurement and matching of steps S101 to S105 are completed, and the fitting degree information is still invalid fitting degree information, a voice alarm is played to remind the detection personnel that the to-be-measured special-shaped glass cannot be matched, and after the detection personnel hear the voice alarm, they can perform corresponding processing operations on the to-be-measured special-shaped glass according to the actual situation.
[0134] In the embodiment of the present application, in the case that after all the special-shaped glass design drawings are switched to perform measurement and matching with the to-be-measured special-shaped glass, valid fitting information cannot be obtained, an alarm operation is performed to remind the detection personnel to perform corresponding processing operations on the to-be-measured special-shaped glass, which can enable the detection personnel to timely find the special-shaped glass that cannot be matched, and avoid the problem that the unprocessed special-shaped glass that cannot be matched needs to be re-detected.
[0135] The embodiment of the present application further discloses a special-shaped glass measurement pairing device for realizing the special-shaped glass measurement pairing method.
[0136] Please refer to Figure 7 The special-shaped glass measurement pairing device provided by the embodiment of the present application has the structure as shown in the figure. Figure 7 The special-shaped glass measurement pairing device 100 for realizing the special-shaped glass measurement pairing method in the embodiment of the present application can include but is not limited to a first coordinate acquisition module 101, a second coordinate acquisition module 102, a grouping module 103, a fitting degree information determination module 104 and a target determination module 105.
[0137] The first coordinate acquisition module 101 is configured to acquire a plurality of first coordinates of the special-shaped glass with the longest side as the x-axis, wherein the ordinate of the plurality of first coordinates is the height information of the special-shaped glass, the abscissa of the first first coordinate is 0, and the abscissa of the remaining first coordinates is the distance information from the abscissa of the first first coordinate.
[0138] It should be noted that the first coordinate acquisition module can include a laser range finder and other measuring instruments, and the height of the special-shaped glass to be measured can be detected by the measuring instruments.
[0139] The second coordinate acquisition module 102 is configured to acquire a plurality of second coordinates in a special-shaped glass design drawing, wherein the second coordinates are the coordinates of all turning points when the longest side of the special-shaped glass design drawing is taken as the x-axis.
[0140] The grouping module 103 is configured to group the plurality of first coordinates according to the plurality of second coordinates.
[0141] The fitting degree information determination module 104 is configured to calculate the fitting degree of the plurality of first coordinates after grouping according to the grouping to obtain the fitting degree information.
[0142] The target determination module 105 is configured to determine that the special-shaped glass to be measured is a target special-shaped glass in the case that the fitting degree information is greater than a preset fitting degree threshold and the fitting degree information is valid fitting degree information.
[0143] The special-shaped glass measurement pairing device provided by the embodiment of the present application can realize the measurement pairing of the special-shaped glass and improve the automation degree of the measurement pairing of the special-shaped glass.
[0144] The special-shaped glass measurement pairing method provided by the embodiment of the present application has at least the following beneficial effects:
[0145] The embodiment of the application obtains a plurality of first coordinates of the to-be-measured profiled glass when the longest side is the x-axis, and a plurality of second coordinates in a profiled glass design drawing, groups the first coordinates according to the plurality of second coordinates, subsequently obtains fitting degree information by calculating the fitting degree of the grouped first coordinates, and judges that when the fitting degree information is greater than a preset fitting degree threshold and is valid fitting degree information, the to-be-measured profiled glass is the target profiled glass. The profiled glass measurement and pairing method provided by the embodiment of the application obtains the coordinates with the longest side of the to-be-measured profiled glass as the x-axis, groups the second coordinates in the profiled glass design drawing, and can realize the measurement and pairing of the profiled glass by judging the fitting degree information of the grouped first coordinates, without manual comparison, realizing automatic and rapid pairing of the profiled glass and improving production efficiency.
[0146] Please refer to Figure 8 , Figure 8 The hardware structure of the electronic device provided in an embodiment of the application is provided, and the electronic device includes:
[0147] The processor 901 can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute related programs to implement the profiled glass measurement and pairing method provided in the embodiments of the application.
[0148] The memory 902 can be implemented in 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 solutions provided in the embodiments of the specification are implemented by software or firmware, the related program codes are stored in the memory 902 and are called and executed by the processor 901 to implement the profiled glass measurement and pairing method in the embodiments of the application.
[0149] The input / output interface 903 is used to realize information input and output.
[0150] The communication interface 904 is used to realize the communication interaction between the device and other devices, and can realize communication through a wired manner (for example, a USB, a network cable, etc.) or a wireless manner (for example, a mobile network, WIFI, Bluetooth, etc.).
[0151] The bus 905 transmits information between various components (for example, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904) of the device.
[0152] The processor 901, the memory 902, the input / output interface 903, and the communication interface 904 are communicatively connected with each other through the bus 905.
[0153] The embodiment of the present application further discloses a computer readable storage medium, wherein a computer program executable by a processor is stored, and the computer program executable by the processor is used to implement the information processing method.
[0154] The embodiment of the present application further discloses a computer program product, including a computer program or computer instruction, the computer program or computer instruction is stored in a computer readable storage medium, and a processor of an electronic device reads the computer program or computer instruction from the computer readable storage medium, and the processor executes the computer program or computer instruction, so that the electronic device executes the information processing method.
[0155] The terms "first", "second", "third", "fourth" and the like used in the description of the specification and the above drawings (if any) are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0156] It should be understood that in the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" is used to describe the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can represent three cases: only A, only B, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c, can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0157] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely illustrative. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0158] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one 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 a part of an integral module or unit that includes the functions of the module or unit.
[0159] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0160] In addition, each functional unit in the various embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0161] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0162] For the step numbers in the above method embodiments, only for the convenience of explanation, the order between the steps is not limited, and the execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
Claims
1. A method for measuring and pairing irregularly shaped glass, characterized in that, The method comprises the following steps: Obtaining a plurality of first coordinates of the to-be-tested profiled glass with the longest side as the x-axis, the longitudinal coordinates of the plurality of first coordinates being height information of the to-be-tested profiled glass, the lateral coordinate of the first coordinate being 0, and the lateral coordinates of the remaining first coordinates being distance information from the lateral coordinate of the first coordinate; Obtaining a plurality of third coordinates of a profiled glass design drawing with the longest side as the x-axis, the longitudinal coordinates of the plurality of third coordinates being height information of the profiled glass design drawing, the lateral coordinate of the first third coordinate being 0, and the lateral coordinates of the remaining third coordinates being distance information from the lateral coordinate of the first third coordinate; determining the third coordinate slope information according to adjacent third coordinates, and determining second coordinates according to the slope information, the second coordinates being coordinates of all turning points of the profiled glass design drawing with the longest side as the x-axis; Grouping the plurality of first coordinates according to the plurality of second coordinates; Calculating the fitting degree of the grouped plurality of first coordinates to obtain fitting degree information; In a case where the fitting degree information is greater than a preset fitting degree threshold and the fitting degree information is valid fitting degree information, determining that the to-be-tested profiled glass is a target profiled glass; Wherein, the valid fitting degree information is determined by the following steps: determining the mean square error according to the first coordinates and the third coordinates; when the mean square error is less than a preset mean square error threshold, determining that the fitting degree information is valid fitting degree information.
2. The shaped glass measurement pairing method of claim 1, wherein, The grouping of the plurality of first coordinates according to the plurality of second coordinates comprises: Determining the lateral coordinates of the plurality of second coordinates, and determining the grouping interval according to the lateral coordinates of the second coordinates; Grouping the first coordinates according to the lateral coordinates of the first coordinates and the grouping interval.
3. The shaped glass measurement pairing method of claim 1, wherein, The calculation of the fitting degree of the grouped plurality of first coordinates to obtain the fitting degree information comprises: Determining a first average value according to the lateral coordinates of the first coordinates in the same group; Determining a second average value according to the longitudinal coordinates of the first coordinates in the same group; Determining the fitting degree information according to the first coordinates, the first average value, and the second average value.
4. The shaped glass measurement pairing method of claim 1, wherein, The method further comprises: When the fitting degree information is less than a preset fitting degree threshold, determining that the fitting degree information is invalid fitting degree information, switching the profiled glass design drawing, and re-determining the fitting degree of the to-be-tested profiled glass according to the switched profiled glass design drawing.
5. The shaped glass measurement pairing method of claim 4, wherein, The method further comprises: When all profiled glass design drawings are switched, the fitting degree information is still invalid fitting degree information, and an alarm is given.
6. A profile glass measurement pairing device, characterized by, The method comprises: A first coordinate acquisition module is configured to obtain a plurality of first coordinates of a to-be-tested profiled glass with the longest side as the x-axis, the longitudinal coordinates of the plurality of first coordinates being height information of the to-be-tested profiled glass, the lateral coordinate of the first coordinate being 0, and the lateral coordinates of the remaining first coordinates being distance information from the lateral coordinate of the first coordinate; A second coordinate acquisition module is configured to acquire a plurality of third coordinates of the profile glass design drawing when the longest side is taken as the x-axis, the ordinate of the plurality of third coordinates is height information of the profile glass design drawing, the abscissa of a first third coordinate is 0, and the abscissa of the remaining third coordinates is distance information from the abscissa of the first third coordinate; the third coordinate slope information is determined according to adjacent third coordinates, and the second coordinate is determined according to the slope information, the second coordinate being the coordinates of all turning points when the longest side of the profile glass design drawing is taken as the x-axis; A grouping module is configured to group the plurality of first coordinates according to the plurality of second coordinates; A fitting degree information determination module is configured to perform fitting degree calculation on the grouped plurality of first coordinates to obtain fitting degree information; A target determination module is configured to determine that the to-be-tested profile glass is a target profile glass when the fitting degree information is greater than a preset fitting degree threshold and the fitting degree information is valid fitting degree information; wherein the valid fitting degree information is determined by the following steps: determining a mean square error according to the first coordinates and the third coordinates; and determining that the fitting degree information is valid fitting degree information when the mean square error is less than a preset mean square error threshold.
7. An electronic device, comprising: Comprise: 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 of any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that, A computer program executable by a processor is stored therein, and the computer program executable by the processor is executed by the processor to implement the method of any one of claims 1 to 5.
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