Detection result determination method and device, equipment and storage medium
By obtaining and analyzing the coordinate information of the preset contour lines and contour points of the target part, determining the deviation set and adjusting the detection results, the problem of misjudging qualified parts as excessive errors is solved, reducing the detection error rate and improving the measurement results accuracy.
Patent Information
- Application Number
- CN202310531622.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-12
AI Technical Summary
In the contour measurement, the problem that qualified parts are easily misjudged as excessive errors, resulting in a high misjudgment rate of detection results.
By acquiring the coordinate information of the preset contour line of the target part and at least one contour point, the first deviation set is determined, and the detection result is adjusted according to the deviation set, thereby reducing the error judgment rate.
It effectively reduces the misjudgment rate of part inspection results, ensures that qualified parts are not misjudged as exceeding the difference, and improves the accuracy of measurement results.
Smart Images

Figure CN118936392A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of contour measurement and data analysis, and in particular to a method, device, equipment and storage medium for determining a detection result. Background Art
[0002] With the diversification of the appearance design of various industrial products, the structures that constitute the product surface are becoming more and more complex. Therefore, when the product shell is assembled, the requirements for the accuracy of the contour line of the product shell are becoming higher and higher. In the contour measurement of the product, for the contour tolerance without reference requirements but only shape requirements, the quasi-reference used in the measurement usually has a position requirement lower than the contour requirement, and it is necessary to fit when analyzing the contour. However, after the best fit, there are often a large number of measurement points with small deviations on one side and a small number of measurement points with large deviations on the other side, and the final conclusion of the contour is twice the maximum deviation value, so it accurately reflects the true state of the contour, and occasionally qualified parts are judged as out of tolerance.
[0003] For the case where a large number of measurement points have small deviations on one side and a small number of measurement points have large deviations on the other side, the best fit function of CATIA or data analysis software is usually used for fitting. However, since the best fit requires ensuring that the sum of the squares of all deviation values is as small as possible, even multiple fits may still misjudge qualified parts as out-of-tolerance. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, equipment and storage medium for determining a test result, so as to solve the problem of misjudging qualified parts as out-of-tolerance in the prior art and reduce the misjudgment rate of part test results.
[0005] According to one aspect of the present invention, there is provided a method for determining a detection result, comprising:
[0006] Obtaining coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0007] Determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0008] A detection result corresponding to the target part is determined according to the first deviation set.
[0009] According to another aspect of the present invention, there is provided a detection result determination device, the device comprising:
[0010] An acquisition module, used to acquire coordinate information of a preset contour line and at least one contour point corresponding to a target part;
[0011] A first determination module, configured to determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0012] The second determination module is used to determine the detection result corresponding to the target part according to the first deviation set.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the detection result determination method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the detection result determination method described in any embodiment of the present invention when executed.
[0018] The embodiment of the present invention obtains the coordinate information of the preset contour line and at least one contour point corresponding to the target part, determines the first deviation set according to the coordinate information of the preset contour line and at least one contour point corresponding to the target part, and determines the detection result corresponding to the target part according to the first deviation set. The technical solution of the present invention can solve the problem of misjudging qualified parts as out-of-tolerance in the prior art, and achieve the beneficial effect of reducing the misjudgment rate of part detection results.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a method for determining a detection result in an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a preset contour line and at least one contour point corresponding to a target part in an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a preset contour line corresponding to a target part, a target contour line corresponding to the target part, and at least one contour point in an embodiment of the present invention;
[0024] Figure 4 is a schematic structural diagram of a detection result determination device in an embodiment of the present invention;
[0025] Figure 5 It is a structural schematic diagram of an electronic device for implementing the detection result determination method of an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 is a flow chart of a method for determining a test result in an embodiment of the present invention. This embodiment is applicable to the case of determining a test result. The method can be executed by a device for determining a test result in an embodiment of the present invention. The device can be implemented in software and / or hardware. Figure 1 As shown, the method specifically comprises the following steps:
[0030] S101, obtaining coordinate information of a preset contour line and at least one contour point corresponding to a target part.
[0031] In this embodiment, the target part may be a part whose contour is to be measured, and then whether the detection result is qualified is determined.
[0032] It can be known that contour can be the main indicator used to describe the accuracy of surface size. It is contour error, which refers to the change of the actual contour being measured relative to the ideal contour.
[0033] The preset contour line may be a theoretical contour line corresponding to the target part preset by the user according to the actual situation. In actual operation, each target part may correspond to a different preset contour line, or the same type of target parts may correspond to the same preset contour line, which is not limited in this embodiment.
[0034] It should be noted that the contour point may be a contour measurement point corresponding to the target part, and the coordinate information of the contour point may be three-dimensional coordinate information.
[0035] Specifically, when implementing three-coordinate or articulated arm point measurement on contour features without reference requirements, this embodiment uses three-coordinate measurement, that is, the target part can be placed in a special contour measuring instrument, and the instrument can use three-dimensional coordinates to respectively represent the position information of all contour measurement points.
[0036] In actual operation, due to reasons such as the selection of measurement benchmark, after the best fitting analysis of the measured data of the contour points, most of the contour points are located below the preset contour line, and a few contour points are located above the preset contour line.
[0037] Figure 2 is a schematic diagram of a preset contour line and at least one contour point corresponding to a target part in an embodiment of the present invention. Figure 2 As shown in the figure, the horizontal solid line in the figure represents the preset contour line corresponding to the target part, and the asterisk in the figure represents at least one contour point corresponding to the target part. It can be seen from the figure that most of the contour points are located at the position of deviation below the preset contour line, and a small number of contour points are located at the position of deviation above the preset contour line. Specifically, the number of contour points can be preset, or can be set according to the actual situation of the target part, or can be set according to the actual situation of the contour measurement instrument, which is not limited in this embodiment.
[0038] S102: Determine a first deviation set according to a preset contour line corresponding to a target part and coordinate information of at least one contour point.
[0039] It should be noted that the first deviation set may be determined based on the preset contour line corresponding to the target part and the coordinate information of at least one contour point, and may be a set composed of the deviations of each contour point from the preset contour line.
[0040] Specifically, the preset contour line is optimally fitted, that is, the deviation of each contour point from the preset contour line is calculated according to the preset contour line corresponding to the target part and the coordinate information of at least one contour point to form a first deviation set.
[0041] S103. Determine a detection result corresponding to the target part according to the first deviation set.
[0042] In this embodiment, the detection result corresponding to the target part may be a qualified detection, or a failed contour deviation detection.
[0043] Specifically, the detection result corresponding to the target part is determined according to a set of deviations of each contour point from a preset contour line.
[0044] The embodiment of the present invention obtains the coordinate information of the preset contour line and at least one contour point corresponding to the target part, determines the first deviation set according to the coordinate information of the preset contour line and at least one contour point corresponding to the target part, and determines the detection result corresponding to the target part according to the first deviation set. The technical solution of the present invention can solve the problem of misjudging qualified parts as out-of-tolerance in the prior art, and achieve the beneficial effect of reducing the misjudgment rate of part detection results.
[0045] Optionally, the first deviation set includes: at least one positive deviation and at least one negative deviation.
[0046] It should be explained that the positive deviation may be the deviation of a contour point at a deviation position on the preset contour line from the preset contour line, and the negative deviation may be the deviation of a contour point at a deviation position below the preset contour line from the preset contour line.
[0047] Determining a detection result corresponding to the target part according to the first deviation set includes:
[0048] The largest positive deviation in the first deviation set is determined as the first deviation.
[0049] The first deviation may be a deviation value corresponding to a contour point farthest from the preset contour line among contour points at the deviation position on the preset contour line in the first deviation set.
[0050] Exemplarily, there are three positive deviations in the first deviation set, the positive deviation corresponding to contour point 1 is 0.1 mm, the positive deviation corresponding to contour point 2 is 0.35 mm, and the positive deviation corresponding to contour point 3 is 0.3 mm, then the deviation value of 0.35 mm corresponding to contour point 2 is taken as the first deviation.
[0051] The negative deviation with the largest absolute value in the first deviation set is determined as the second deviation.
[0052] The second deviation may be a deviation value corresponding to a contour point farthest from the preset contour line among contour points at deviation positions below the preset contour line in the first deviation set.
[0053] Exemplarily, there are three negative deviations in the first deviation set, the negative deviation corresponding to contour point 4 is -0.01 mm, the positive deviation corresponding to contour point 5 is -0.05 mm, and the negative deviation corresponding to contour point 6 is -0.03 mm. The absolute value of the deviation value -0.05 mm corresponding to contour point 5, 0.05 mm, is used as the second deviation.
[0054] The detection result corresponding to the target part is determined according to the first deviation, the second deviation and the preset deviation.
[0055] The preset deviation may be a deviation value preset by the user according to actual conditions, and the specific value of the preset deviation is not limited in this embodiment. Preferably, the preset deviation may be 0.5 mm.
[0056] Specifically, the detection result corresponding to the target part is determined according to the first deviation, the second deviation and the preset deviation.
[0057] Optionally, determining a detection result corresponding to the target part according to the first deviation, the second deviation, and the preset deviation includes:
[0058] The larger deviation between the first deviation and the second deviation is taken as the third deviation.
[0059] It should be noted that the third deviation may be the deviation with a larger value between the first deviation and the second deviation.
[0060] Exemplarily, the first deviation is 0.35 mm, the second deviation is 0.05 mm, 0.35 mm is greater than 0.05 mm, that is, the first deviation is greater than the second deviation, then the first deviation of 0.35 mm is used as the third deviation, that is, the third deviation is 0.35 mm.
[0061] If the product of the third deviation and the first preset multiple is less than or equal to the preset deviation, it is determined that the inspection result corresponding to the target part is qualified.
[0062] The first preset multiple can be a multiple pre-set by the user according to actual conditions, and the specific value of the first preset multiple is not limited in this embodiment. Preferably, the first preset multiple can be 2.
[0063] Specifically, the value of the product of the third deviation and the first preset multiple is calculated. If the product of the third deviation and the first preset multiple is less than or equal to the preset deviation, it is determined that the inspection result corresponding to the target part is qualified.
[0064] Exemplarily, the preset deviation is set to 0.8 mm, the third deviation is 0.35 mm, and the first preset multiple can be 2. At this time, according to the definition of profile, the measured profile value is the product of the third deviation and the first preset multiple, that is, 0.7 mm. If 0.7 mm is less than 0.8 mm, it is determined that the inspection result corresponding to the target part is qualified.
[0065] Optionally, the detection result determination method further includes:
[0066] If the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is greater than or equal to the preset deviation, it is determined that the inspection result corresponding to the target part is unqualified.
[0067] Specifically, if the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is greater than or equal to the preset deviation, the target part is judged to have a contour deviation out of tolerance, and the inspection result corresponding to the target part is determined to be unqualified.
[0068] Exemplarily, the preset deviation is set to 0.3 mm, the first deviation is 0.35 mm, the second deviation is 0.05 mm, the third deviation is 0.35 mm, and the first preset multiple can be 2. At this time, according to the definition of profile, the measured profile value is the product of the third deviation and the first preset multiple, that is, 0.7 mm, 0.7 mm is greater than the preset deviation of 0.3 mm, the sum of the first deviation and the second deviation is 0.4 mm, 0.4 mm is greater than the preset deviation of 0.3 mm, then the target part is judged to be out of tolerance in profile, and the corresponding inspection result of the target part is determined to be unqualified.
[0069] Then it is determined that the test result corresponding to the target part is qualified.
[0070] Optionally, the detection result determination method further includes:
[0071] If the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is less than the preset deviation, the target distance is determined according to the first deviation and the second deviation.
[0072] It should be explained that the target distance may be a moving distance for adjusting a preset contour line.
[0073] Specifically, if the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is less than the preset deviation, the target distance is determined according to the first deviation and the second deviation.
[0074] Exemplarily, the preset deviation is set to 0.5 mm, the first deviation is 0.35 mm, the second deviation is 0.05 mm, the third deviation is 0.35 mm, and the first preset multiple can be 2. At this time, according to the definition of contour, the measured contour value is the product of the third deviation and the first preset multiple, that is, 0.7 mm, 0.7 mm is less than the preset deviation of 0.5 mm, the sum of the first deviation and the second deviation is 0.4 mm, 0.4 mm is less than the preset deviation of 0.5 mm, and the preset contour line can be adjusted and fitted according to the method of the embodiment of the present invention before comparison. First, the target distance is determined according to the first deviation and the second deviation.
[0075] The target contour line corresponding to the target part is determined according to the preset contour line corresponding to the target part and the target distance.
[0076] It should be explained that the target contour line may be a contour line obtained by moving the preset contour line by a target distance.
[0077] Specifically, a preset contour line corresponding to the target part is moved by a target distance to obtain a target contour line corresponding to the target part.
[0078] A target deviation set is determined according to coordinate information of at least one contour point corresponding to the target part and a target contour line corresponding to the target part.
[0079] It should be noted that the target deviation set may be determined based on the target contour line corresponding to the target part and the coordinate information of at least one contour point, and may be a set composed of the deviation of each contour point from the target contour line.
[0080] Specifically, the target contour line is optimally fitted, that is, the deviation of each contour point from the target contour line is calculated according to the target contour line corresponding to the target part and the coordinate information of at least one contour point to form a target deviation set.
[0081] The detection result corresponding to the target part is determined according to the target deviation set.
[0082] Specifically, the target deviation set includes: at least one positive deviation and at least one negative deviation. The specific method of determining the test result corresponding to the target part according to the target deviation set can be: determining the largest positive deviation in the target deviation set as the fourth deviation, and determining the negative deviation with the largest absolute value in the target deviation set as the fifth deviation, and if the sum of the fourth deviation and the fifth deviation is less than the preset deviation, then determining that the test result corresponding to the target part is qualified.
[0083] Optionally, determining the target distance according to the first deviation and the second deviation includes:
[0084] Get the difference between the first deviation and the second deviation.
[0085] Specifically, if the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is less than the preset deviation, the difference between the first deviation and the second deviation is calculated.
[0086] A second preset multiple of the difference between the first deviation and the second deviation is determined as the target distance.
[0087] The second preset multiple may be a multiple pre-set by the user according to actual conditions, and the specific value of the second preset multiple is not limited in this embodiment. Preferably, the second preset multiple may be 1 / 2.
[0088] Exemplarily, the target distance may be represented by a, the first deviation may be represented by t1, the second deviation may be represented by t2, and the second preset multiple may be 1 / 2, then the target distance a=1 / 2(t1-t2).
[0089] Optionally, determining a target contour line corresponding to the target part according to a preset contour line corresponding to the target part and a target distance includes:
[0090] The target moving direction is determined according to the first deviation and the second deviation.
[0091] It should be noted that the target moving direction may be the direction of moving the preset contour line.
[0092] In this embodiment, the first deviation is the deviation at the deviation position on the preset contour line, and the second deviation is the deviation at the deviation position below the preset contour line. The deviation direction facing the second deviation, i.e., the deviation direction facing the deviation position below the preset contour line, is determined as the target moving direction.
[0093] The preset contour line corresponding to the target part is moved according to the target moving direction and the target distance to obtain the target contour line corresponding to the target part.
[0094] It should be noted that when operating the preset contour line corresponding to the moving target part, it should be moved at equal distances.
[0095] Specifically, the preset contour line corresponding to the target part is equidistantly moved in the target moving direction by the target distance to obtain the target contour line corresponding to the target part.
[0096] Figure 3 Schematic diagram of a preset contour line corresponding to a target part, a target contour line corresponding to the target part, and at least one contour point in an embodiment of the present invention. Figure 3As shown in the figure, the horizontal solid line at the top represents the preset contour line corresponding to the target part, and the asterisk in the figure represents at least one contour point corresponding to the target part. It can be seen from the figure that most contour points are located at the position of deviation below the preset contour line, and a small number of contour points are located at the position of deviation above the preset contour line. Specifically, the number of contour points can be preset, or it can be set according to the actual situation of the target part, or it can be set according to the actual situation of the contour measurement instrument, which is not limited in this embodiment. Figure 3 As shown, the arrow indicates the target moving direction, and the horizontal solid line at the bottom of the figure indicates the target contour line corresponding to the target part.
[0097] For example, a can be used to represent the target distance, t1 can be used to represent the first deviation, t2 can be used to represent the second deviation, and the second preset multiple can be 1 / 2, then the target distance a=1 / 2(t1-t2), when the first deviation t1 is less than the second deviation t2, the third deviation is t2. In the actual operation process, the preset contour line is equidistantly moved in the target moving direction by the target distance a to obtain the target contour line corresponding to the target part, and then the coordinate information of at least one contour point corresponding to the target part is best fitted to the offset target contour line to obtain the coordinate information of the fitted contour point. According to the coordinate information of the fitted contour points and the target contour line, analysis is performed. At this time, when the relative positions of the contour points remain unchanged, since the preset contour line is equidistantly offset by the target distance a in the direction of the second deviation, each contour point is also equidistantly offset by the target distance a in the direction of the second deviation relative to the original position. The current third deviation can be t2-a=t2-(t2-t1) / 2=(t2+t1) / 2. At this time, when t2+t1 is less than the preset deviation, it can be judged that the contour value of the target part is qualified, that is, the corresponding detection result of the target part is qualified.
[0098] In the implementation process, when the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is less than the preset deviation, if the best fit of the preset contour line is used for contour analysis, even if multiple analyses are performed, there will still be an over-tolerance. However, by using the method of the embodiment of the present invention, by adjusting the preset contour line to obtain the target contour line, the difference between the upper and lower deviation values can be balanced, so that the contour measurement result is more consistent with the actual state of the product parts.
[0099] In summary, the following conclusions can be drawn based on the method of the embodiment of the present invention: when performing the best fit on the contour of a small curvature feature without a benchmark requirement, if the difference between the maximum absolute values of the measured deviation values in two directions is less than the preset deviation, the best fit contour line position can be adjusted for fitting, and the contour point position can be adjusted to within the contour range. This can avoid misjudging the part size as being out of tolerance when the maximum absolute value of the unidirectional deviation exceeds the preset deviation by twice.
[0100] In actual operation, a preset contour line or a preset contour surface can be set. The method process for determining the detection result corresponding to the target part based on the coordinate information of the preset contour surface and at least one contour point is the same as the above-mentioned method process for determining the detection result corresponding to the target part based on the coordinate information of the preset contour line and at least one contour point, and will not be repeated here.
[0101] As an exemplary description of an embodiment of the present invention, the preset deviation of a certain part is 0.5 mm. After multiple fitting analyses, the measured value positions of a set of contour points are obtained, of which the maximum positive deviation is 0.35 mm and the maximum negative deviation is -0.05 mm. At this time, according to the definition of contour, the measured contour value is 0.35×2=0.7 mm, which is greater than the preset deviation of 0.5 mm required by the contour. The contour of the part is judged to be out of tolerance and the test result is unqualified. However, according to the scheme of the embodiment of the present invention, since the maximum positive deviation 0.35+the absolute value of the maximum negative deviation 0.05=0.4 mm is less than the preset deviation 0.5 mm, the fitting method can be adjusted according to the method of the embodiment of the present invention, that is, the preset contour surface is moved to obtain the target contour surface and then compared with the target contour surface to obtain the test result. Calculate the target distance (0.35-0.05) / 2=0.15 mm, offset the preset contour surface by equidistant 0.15 mm in the direction of negative deviation -0.05 mm to obtain the target contour surface, perform best fit to the target contour surface based on the measured value positions of the above set of contour points, and obtain the measured value positions of a set of contour points after the measured value positions of the above set of contour points are equidistantly offset by 0.15 mm in the direction of negative deviation -0.05 mm, and then perform data analysis.
[0102] The technical solution of the embodiment of the present invention performs preliminary data analysis based on the coordinate information of the preset contour line and at least one contour point corresponding to the target part, and then adjusts the object of the best fit of the contour degree, that is, adjusts and moves the preset contour line to obtain the target contour line, so that the absolute value of the maximum deviation of the target contour line in the upper and lower directions remains basically the same, and then performs data analysis to obtain the detection result corresponding to the target part. The technical solution of the present invention can solve the problem of misjudging qualified parts as out-of-tolerance in the prior art, and achieve the beneficial effect of reducing the misjudgment rate of part detection results.
[0103] Embodiment 2
[0104] Figure 4 is a schematic diagram of the structure of a detection result determination device in an embodiment of the present invention. This embodiment is applicable to the case of detection result determination. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides the function of detection result determination, such as Figure 4As shown, the detection result determination device specifically includes: an acquisition module 201, a first determination module 202 and a second determination module 203.
[0105] Wherein, the acquisition module 201 is used to acquire the coordinate information of the preset contour line and at least one contour point corresponding to the target part;
[0106] A first determination module 202, configured to determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0107] The second determination module 203 is used to determine the detection result corresponding to the target part according to the first deviation set.
[0108] Optionally, the first deviation set includes: at least one positive deviation and at least one negative deviation;
[0109] The second determining module 203 includes:
[0110] A first determining unit, configured to determine the largest positive deviation in the first deviation set as a first deviation;
[0111] A second determining unit, configured to determine a negative deviation with the largest absolute value in the first deviation set as a second deviation;
[0112] The third determining unit is used to determine the detection result corresponding to the target part according to the first deviation, the second deviation and a preset deviation.
[0113] Optionally, the third determining unit includes:
[0114] A first determining subunit, configured to use the larger deviation between the first deviation and the second deviation as a third deviation;
[0115] The second determination subunit is used to determine that the detection result corresponding to the target part is qualified if the product of the third deviation and the first preset multiple is less than or equal to the preset deviation.
[0116] Optionally, the detection result determination device further includes:
[0117] The third determination subunit is used to determine that the inspection result corresponding to the target part is unqualified if the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is greater than or equal to the preset deviation.
[0118] Optionally, the detection result determination device further includes:
[0119] a fourth determination subunit, configured to determine a target distance according to the first deviation and the second deviation if a product of the third deviation and the first preset multiple is greater than the preset deviation and a sum of the first deviation and the second deviation is less than the preset deviation;
[0120] a fifth determining subunit, configured to determine a target contour line corresponding to the target part according to a preset contour line corresponding to the target part and the target distance;
[0121] a sixth determining subunit, configured to determine a target deviation set according to coordinate information of at least one contour point corresponding to the target part and a target contour line corresponding to the target part;
[0122] The seventh determination subunit is used to determine the detection result corresponding to the target part according to the target deviation set.
[0123] Optionally, the fourth determining subunit is specifically used to:
[0124] Obtaining a difference between the first deviation and the second deviation;
[0125] A second preset multiple of the difference between the first deviation and the second deviation is determined as the target distance.
[0126] Optionally, the fifth determining subunit is specifically used to:
[0127] determining a target moving direction according to the first deviation and the second deviation;
[0128] The preset contour line corresponding to the target part is moved according to the target moving direction and the target distance to obtain a target contour line corresponding to the target part.
[0129] The above-mentioned product can execute the detection result determination method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the detection result determination method.
[0130] Embodiment 3
[0131] Figure 5 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0132] like Figure 5 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.
[0133] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0134] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 31 performs the various methods and processes described above, such as the detection result determination method:
[0135] Obtaining coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0136] Determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part;
[0137] A detection result corresponding to the target part is determined according to the first deviation set.
[0138] In some embodiments, the detection result determination method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the detection result determination method described above can be performed. Alternatively, in other embodiments, the processor 31 can be configured to perform the detection result determination method in any other appropriate manner (e.g., by means of firmware).
[0139] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0140] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0141] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0142] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0143] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0144] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0145] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0146] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining a test result, characterized in that: include: Obtaining coordinate information of a preset contour line and at least one contour point corresponding to the target part; Determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part; A detection result corresponding to the target part is determined according to the first deviation set.
2. The method according to claim 1, characterized in that The first deviation set includes: at least one positive deviation and at least one negative deviation; Determining a detection result corresponding to the target part according to the first deviation set includes: Determine the largest positive deviation in the first deviation set as a first deviation; Determine the negative deviation with the largest absolute value in the first deviation set as the second deviation; The detection result corresponding to the target part is determined according to the first deviation, the second deviation and a preset deviation.
3. The method according to claim 2, characterized in that Determining a detection result corresponding to the target part according to the first deviation, the second deviation, and a preset deviation includes: The larger deviation between the first deviation and the second deviation is used as the third deviation; If the product of the third deviation and the first preset multiple is less than or equal to the preset deviation, it is determined that the inspection result corresponding to the target part is qualified.
4. The method according to claim 3, characterized in that Also includes: If the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is greater than or equal to the preset deviation, it is determined that the inspection result corresponding to the target part is unqualified.
5. The method according to claim 4, characterized in that Also includes: If the product of the third deviation and the first preset multiple is greater than the preset deviation, and the sum of the first deviation and the second deviation is less than the preset deviation, determining the target distance according to the first deviation and the second deviation; Determine a target contour line corresponding to the target part according to a preset contour line corresponding to the target part and the target distance; Determine a target deviation set according to coordinate information of at least one contour point corresponding to the target part and a target contour line corresponding to the target part; The detection result corresponding to the target part is determined according to the target deviation set.
6. The method according to claim 5, characterized in that Determining a target distance according to the first deviation and the second deviation includes: Obtaining a difference between the first deviation and the second deviation; A second preset multiple of the difference between the first deviation and the second deviation is determined as the target distance.
7. The method according to claim 5, characterized in that Determining a target contour line corresponding to the target part according to a preset contour line corresponding to the target part and the target distance includes: determining a target moving direction according to the first deviation and the second deviation; The preset contour line corresponding to the target part is moved according to the target moving direction and the target distance to obtain a target contour line corresponding to the target part.
8. A detection result determination device, characterized in that: include: An acquisition module, used to acquire coordinate information of a preset contour line and at least one contour point corresponding to a target part; A first determination module, configured to determine a first deviation set according to coordinate information of a preset contour line and at least one contour point corresponding to the target part; The second determination module is used to determine the detection result corresponding to the target part according to the first deviation set.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the detection result determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the detection result determination method according to any one of claims 1 to 7 when executed.
