Scanning accuracy evaluation method, device, medium, and electronic device
By using a contact probe to determine the reference plane and coordinate system, and combining the coordinates of the measurement points with those of a non-contact probe, the angle is adjusted to make the two coincide, thus solving the reference deviation problem in the evaluation of vehicle component scanning accuracy and achieving higher evaluation accuracy and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DONGFENG MOTOR GRP
- Filing Date
- 2023-10-13
- Publication Date
- 2026-07-21
AI Technical Summary
In the evaluation of the scanning accuracy of vehicle parts, the existing technology shows a large difference between the best-fit coordinate system and the physical contact measurement, making it impossible to accurately determine the conformity of the parts. Furthermore, the reference deviation of the scanning point cloud is large, which affects the accuracy of functional dimension analysis.
By acquiring the coordinates of multiple first measurement points of the object under test using a contact probe, a reference plane and a reference coordinate system are determined. Combined with the measurement point coordinates of a non-contact probe, the angle is adjusted to make the non-contact coordinate system coincide with the reference coordinate system, thereby improving scanning accuracy.
It improves the accuracy and efficiency of vehicle component scanning precision evaluation and reduces the cost of physical inspection tools.
Smart Images

Figure CN117553719B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of scanning accuracy control technology, and in particular, to a scanning accuracy evaluation method, apparatus, medium, and electronic device. Background Technology
[0002] Currently, when evaluating the accuracy of vehicle components using the best-fit coordinate system, the difference between the best-fit coordinate system and physical contact measurements is significant, making it unsuitable as a means of judging part conformity. Furthermore, when using scanned point cloud data to evaluate the accuracy of vehicle components, the established benchmark has a large deviation, affecting the accuracy of functional dimension analysis. Therefore, improving the accuracy of vehicle scanning evaluation is a pressing technical problem that needs to be solved. Summary of the Invention
[0003] The purpose of this application is to provide a scanning accuracy evaluation method, apparatus, medium, and electronic device. This application can improve the evaluation accuracy of vehicle components.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, a scanning accuracy evaluation method is provided, characterized in that the method includes: determining a reference plane based on the coordinates of multiple first measuring points on a test object obtained by a contact probe, and constructing a reference coordinate system based on the reference plane, wherein the reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the test object; obtaining the coordinates of multiple second measuring points on the test object based on the non-contact coordinate system corresponding to a non-contact probe; and determining an adjustment angle corresponding to the reference coordinate system by combining the coordinates of the first measuring points, the coordinates of the second measuring points, the reference coordinate system, and the non-contact coordinate system, wherein the adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system.
[0006] In one embodiment of this application, based on the foregoing scheme, determining the reference plane according to the coordinates of multiple first measuring points on the object under test obtained by the contact probe includes: determining the hole center line according to the coordinates of the first measuring points, wherein the hole center line is the line connecting any two hole centers on the object under test; constructing a triangle according to the coordinates of the first measuring points, wherein the triangle is a triangle constructed from the coordinates of any three first measuring points; and determining the reference plane based on the hole center line and the triangle.
[0007] In one embodiment of this application, based on the foregoing scheme, determining the reference plane based on the hole center line and the triangle includes: obtaining the minimum value of the height of the triangle and the area of the triangle; determining the intersection length according to the hole center line and the triangle, the intersection length being the length of the intersecting line segment of the hole center line and the triangle; if the intersection length is greater than the minimum value, and the area of the triangle is the maximum area among the triangles constructed from the coordinates of the first measuring point, then the plane containing the triangle is determined as the reference plane.
[0008] In one embodiment of this application, based on the aforementioned scheme, determining the adjustment angle corresponding to the reference coordinate system by combining the first measuring point coordinates, the second measuring point coordinates, the reference coordinate system, and the non-contact coordinate system includes: selecting a target point on the object being measured, determining the first measuring point coordinates and the second measuring point coordinates corresponding to the target point; determining the adjustment angle corresponding to the reference coordinate system based on the first measuring point coordinates, the second measuring point coordinates, the reference coordinate system, and the non-contact coordinate system, wherein the adjustment angle is a three-dimensional angle used to make the non-contact coordinate system coincide with the reference coordinate system.
[0009] In one embodiment of this application, based on the foregoing scheme, determining the adjustment angle corresponding to the reference coordinate system according to the first measuring point coordinates, the second measuring point coordinates, the reference coordinate system, and the non-contact coordinate system includes: determining the coordinate displacement change and coordinate rotation change of the target point between the reference coordinate system and the non-contact coordinate system according to the first measuring point coordinates and the second measuring point coordinates corresponding to the target point; determining the adjustment angle corresponding to the reference coordinate system based on the coordinate displacement change and the coordinate rotation change, wherein the coordinate displacement change represents the change in coordinate along the coordinate axis direction, and the coordinate rotation change represents the change in angle of coordinate along the coordinate axis.
[0010] In one embodiment of this application, based on the foregoing scheme, when the target point rotates based on the Z-axis and translates in the X, Y, and Z-axis directions, the coordinates of the target point after the adjustment angle are determined by the following formula:
[0011]
[0012] Where A represents the coordinates of the target point before adjustment; A ′ The coordinates of the target point are adjusted; T is the first matrix in the above formula, used to characterize the change in coordinate rotation; R is the second matrix in the above formula, used to characterize the change in coordinate displacement.
[0013] According to one aspect of the embodiments of this application, a scanning accuracy evaluation device is provided, characterized in that the device includes: a construction unit, configured to determine a reference plane based on the coordinates of multiple first measuring points on a test object obtained by a contact probe, and to construct a reference coordinate system based on the reference plane, wherein the reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the test object; an acquisition unit, configured to acquire the coordinates of multiple second measuring points on the test object based on a non-contact coordinate system corresponding to a non-contact probe; and an adjustment unit, configured to determine an adjustment angle corresponding to the reference coordinate system by combining the coordinates of the first measuring points, the coordinates of the second measuring points, the reference coordinate system, and the non-contact coordinate system, wherein the adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system.
[0014] In one embodiment of this application, based on the foregoing scheme, the construction unit is further configured to: determine the hole center connection line according to the first measuring point coordinates, wherein the hole center connection line is the connection line between any two hole centers on the measured object; construct a triangle according to the first measuring point coordinates, wherein the triangle is a triangle constructed from any three first measuring point coordinates; obtain the minimum value of the height of the triangle and the area of the triangle; determine the intersection length according to the hole center connection line and the triangle, wherein the intersection length is the length of the intersection segment of the hole center connection line and the triangle; if the intersection length is greater than the minimum value, and the area of the triangle is the maximum value of the areas of all triangles constructed from the first measuring point coordinates, then determine the plane where the triangle is located as the reference plane.
[0015] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, the computer program including executable instructions that, when executed by a processor, implement the methods described in the above embodiments.
[0016] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a memory for storing executable instructions of the processors, which, when executed by the one or more processors, cause the one or more processors to implement the method described in the above embodiments.
[0017] In the technical solution of this application, the coordinates of a first measuring point on the object under test are first obtained with high accuracy using a contact probe. Based on the coordinates of the first measuring point, a reference plane is determined, thereby constructing a reference coordinate system. The reference plane is the plane containing the triangle with the largest area formed by the coordinates of the first measuring point on the object under test. Simultaneously, based on the reference plane, the reference coordinate system can be made more consistent with the object under test, thereby reducing the scanning error of the object under test.
[0018] Then, based on the non-contact coordinate system corresponding to the non-contact probe, the coordinates of the second measuring point on the object under test are obtained. The coordinates of the second measuring point on the object under test are obtained by scanning with the non-contact probe, thus improving the efficiency of obtaining the coordinates of the second measuring point on the object under test.
[0019] By combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, the adjustment angle corresponding to the reference coordinate system can be determined, thereby enabling the non-contact coordinate system to coincide with the reference coordinate system, and thus realizing the evaluation of the scanning accuracy of the object under test.
[0020] The scanning accuracy evaluation method proposed in this application can improve the scanning evaluation efficiency of the measured object by combining the accuracy of the constructed reference coordinate system with a non-contact probe. At the same time, it can save on the cost of physical inspection tools.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0023] Figure 1 This is a flowchart illustrating a scanning accuracy evaluation method according to an embodiment of this application;
[0024] Figure 2 This is a diagram illustrating the construction of a triangle according to an embodiment of this application;
[0025] Figure 3 This is a diagram showing the change in the coordinates of a target point according to an embodiment of this application;
[0026] Figure 4 This is a block diagram of a scanning accuracy evaluation device according to an embodiment of this application;
[0027] Figure 5 This is a schematic diagram of the system structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0029] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0032] It should be noted that "multiple" in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0033] The implementation details of the technical solutions in the embodiments of this application are described in detail below:
[0034] According to one aspect of this application, a method for evaluating scanning accuracy is provided. Figure 1 The flowchart below illustrates a scanning accuracy evaluation method according to an embodiment of this application. This scanning accuracy evaluation method can be executed by a device with computational processing capabilities. The scanning accuracy evaluation method includes at least steps 110 to 130, which are described in detail below:
[0035] In step 110, a reference plane is determined based on the coordinates of multiple first measuring points on the object being measured obtained by the contact probe, and a reference coordinate system is constructed based on the reference plane. The reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the object being measured.
[0036] In this application, since the measurement points on the object under test obtained through a contact probe are more accurate than those obtained through a non-contact probe, the coordinates of multiple first measurement points on the object under test are first obtained through a contact probe. Then, before constructing the reference coordinate system of the object under test, a reference plane for the reference coordinate system needs to be obtained. To ensure the accuracy of the reference coordinate system, the reference plane needs to encompass the coordinates of the multiple first measurement points on the object under test to the greatest extent possible, and the distance between the reference plane and the coordinates of the first measurement points near the reference plane needs to be kept within a small range. Therefore, the plane containing the largest area triangle formed by the coordinates of the first measurement points on the object under test can be set as the reference plane, thereby constructing a reference coordinate system based on the reference plane for accurately evaluating the accuracy of the object under test.
[0037] In one embodiment of this application, determining the reference plane based on the coordinates of multiple first measuring points on the object under test obtained by the contact probe specifically includes steps 111 to 113:
[0038] Step 111: Determine the hole center connection line based on the coordinates of the first measuring point. The hole center connection line is the line connecting any two hole centers on the object being measured.
[0039] Step 112: Construct a triangle based on the coordinates of the first measuring point. The triangle is any triangle constructed from the coordinates of three of the first measuring points.
[0040] Step 113: Determine the reference plane based on the line connecting the holes and the triangle.
[0041] In this embodiment, to more accurately construct the reference plane, the plane containing the triangle with the largest area formed by the coordinates of the first measuring points on the object under test can be set as the reference plane. Therefore, in determining the triangle with the largest area on the object under test, firstly, the coordinates of the first measuring point corresponding to the center of the hole on the object under test are determined. Then, based on the coordinates of the first measuring point corresponding to the center of the hole, the line connecting the centers of the holes is determined, wherein the line connecting the centers of the holes is the line connecting any two centers of the holes on the object under test. It should be noted that, in order to maximize the area of the constructed triangle, the line connecting the centers of the holes can be the line connecting the two centers of the holes with the largest distance.
[0042] After determining the line connecting the center points of the holes, a triangle can be constructed based on the coordinates of the first measuring point on the object being measured. This triangle can be any three points whose coordinates form the triangle. Under the combined constraints of the line connecting the center points of the holes and the triangle on the object being measured, a relatively accurate reference plane can be constructed relative to the object.
[0043] Furthermore, in one embodiment of this application, determining the reference plane based on the hole center line and the triangle may specifically include steps 114 to 116:
[0044] Step 114: Obtain the minimum value of the height of the triangle and the area of the triangle;
[0045] Step 115: Determine the intersection length based on the line connecting the center of the hole and the triangle. The intersection length is the length of the line segment where the line connecting the center of the hole and the triangle intersect.
[0046] Step 116: If the intersection length is greater than the minimum value, and the area of the triangle is the maximum area among the triangles constructed from the coordinates of the first measuring point, then the plane containing the triangle is determined as the reference plane.
[0047] In this embodiment, to determine that the constructed triangle has the largest area on the object being measured, the minimum values of the triangle's area and height can be obtained. Then, to improve the accuracy of the reference plane, the triangle can be concentrated at the center of the object being measured. Therefore, a line connecting the center points of holes can be constructed on the object being measured, and the intersection length can be determined based on the line connecting the center points of holes and the current triangle, wherein the intersection length is the length of the line segment intersecting the line connecting the center points of holes and the triangle.
[0048] Based on the constraints of the intersection length and the area of the constructed triangle, the reference plane on the measured object can be determined. That is, if the intersection length is greater than the minimum value and the area of the triangle is the maximum area among the triangles constructed from the coordinates of the first measuring point, then the plane where the triangle is located is determined as the reference plane.
[0049] For example, refer to Figure 2 , is a diagram illustrating the construction of a triangle according to an embodiment of this application. Figure 2 In the diagram, A and B are the coordinates of the hole center obtained by the contact probe, and E, D, and E' are the coordinates of the first measuring point obtained by the contact probe, used to construct a triangle on the object being measured. Line segments CJ, DH, and EK are the three altitudes of the triangle. Line segment FG is the line segment obtained by the intersection of the line connecting the hole centers and the triangle. If... Figure 2If the area of triangle CDE is the maximum value among all triangles, and the length of line segment FG is greater than that of line segments CJ, DH, and EK, then triangle CDE is the required triangle, and the base plane is determined based on the plane in which triangle CDE is located.
[0050] Continue to refer to Figure 1 In step 120, the coordinates of the second measuring points on the multiple objects under test are obtained based on the non-contact coordinate system corresponding to the non-contact probe.
[0051] In this application, the accuracy of the coordinates of the first measuring point on the object under test obtained by a contact probe is higher than that obtained by a non-contact probe. However, obtaining measuring points on the object under test by a contact probe has a drawback: each measuring point requires actual measurement using the contact probe. In actual production processes, this significantly increases the time cost of evaluating the accuracy of the object under test. Furthermore, it can lead to substantial acquisition errors at irregular structural locations on the object under test. Therefore, to ensure both the accuracy and efficiency of the accuracy evaluation of the object under test, the coordinates of the first measuring point obtained by a contact probe and the coordinates of the second measuring point obtained by a non-contact probe can be combined to jointly evaluate the accuracy of the object under test.
[0052] Continue to refer to Figure 1 In step 130, by combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, the adjustment angle corresponding to the reference coordinate system is determined. The adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system.
[0053] In this application, since the reference coordinate system corresponding to the contact probe and the non-contact coordinate system corresponding to the non-contact probe are different, when evaluating the scanning accuracy of the object under test by combining the coordinates of the first measuring point on the object under test obtained by the contact probe and the coordinates of the second measuring point on the object under test obtained by the non-contact probe, it is necessary to analyze and transform the reference coordinate system corresponding to the contact probe and the non-contact coordinate system corresponding to the non-contact probe.
[0054] For example, while keeping the non-contact coordinate system of the non-contact probe unchanged, the adjustment angle corresponding to the reference coordinate system of the contact probe can be determined, and the non-contact coordinate system can be made to coincide with the reference coordinate system, thereby realizing the scanning accuracy evaluation of the object under test.
[0055] For example, while keeping the reference coordinate system corresponding to the contact probe unchanged, the adjustment angle corresponding to the non-contact probe can be determined, and the non-contact coordinate system can be made to coincide with the reference coordinate system, thereby realizing the scanning accuracy evaluation of the object under test.
[0056] In one embodiment of this application, determining the adjustment angle corresponding to the reference coordinate system by combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system specifically includes steps 131 to 132:
[0057] Step 131: Select a target point on the object being measured, and determine the coordinates of the first measuring point and the second measuring point corresponding to the target point.
[0058] Step 132: Based on the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, determine the adjustment angle corresponding to the reference coordinate system, wherein the adjustment angle is a three-dimensional angle, used to make the non-contact coordinate system coincide with the reference coordinate system.
[0059] In this embodiment, when evaluating the scanning accuracy of the object under test by combining the coordinates of the first measuring point on the object obtained by the contact probe and the coordinates of the second measuring point on the object obtained by the non-contact probe, the measuring point can remain unchanged while the coordinate system changes. Therefore, a fixed target point is first determined. Based on the target point, the first measuring point coordinates of the target point in the reference coordinate system corresponding to the contact probe are determined, and the second measuring point coordinates of the target point in the non-contact coordinate system corresponding to the non-contact probe are determined. Then, according to the characteristics of the spatial coordinate system, a correlation analysis is performed on the first measuring point coordinates and the second measuring point coordinates to determine the adjustment angle corresponding to the reference coordinate system, wherein the adjustment angle is a three-dimensional angle used to make the reference coordinate system coincide with the non-contact coordinate system.
[0060] Furthermore, in one embodiment of this application, determining the adjustment angle corresponding to the reference coordinate system based on the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system specifically includes steps 133 to 134:
[0061] Step 133: Based on the coordinates of the first measuring point and the second measuring point corresponding to the target point, determine the coordinate displacement change and coordinate rotation change of the target point between the reference coordinate system and the non-contact coordinate system.
[0062] Step 134: Based on the coordinate displacement change and the coordinate rotation change, determine the adjustment angle corresponding to the reference coordinate system, wherein the coordinate displacement change represents the change of coordinates in the direction of the coordinate axis, and the coordinate rotation change represents the change of coordinates in the angle on the coordinate axis.
[0063] In this embodiment, the spatial change between the coordinates of the first measuring point and the coordinates of the second measuring point can include translational and rotational changes of the measuring point relative to the axes of the coordinate system. Therefore, the coordinate displacement and rotational changes of the target point between the reference coordinate system and the non-contact coordinate system can be determined based on the coordinates of the first and second measuring points. By analyzing and calculating the coordinate displacement and rotational changes, the adjustment angle corresponding to the reference coordinate system is obtained. The coordinate displacement represents the change in the coordinate along the coordinate axis, and the coordinate rotation represents the change in the angle of the coordinate along the coordinate axis.
[0064] Furthermore, when the target point rotates based on the Z-axis and translates in the X, Y, and Z-axis directions, the coordinates of the target point after the adjustment angle are determined by the following formula:
[0065]
[0066] Where A represents the coordinates of the target point before adjustment; A ′ The coordinates of the target point are adjusted; T is the first matrix in the above formula, used to characterize the change in coordinate rotation; R is the second matrix in the above formula, used to characterize the change in coordinate displacement.
[0067] Specifically, refer to Figure 3 This is a diagram showing the change in the coordinates of the target point according to an embodiment of this application. Figure 3-1 Let A(x,y,z) be the coordinates of target point A in the reference coordinate system. Figure 3-2 Let A0(x″, y″, z″) be the coordinates of target point A in the non-contact coordinate system. Through the calculation and analysis of the above formula, the coordinate displacement change and coordinate rotation change of the target point between the reference coordinate system and the non-contact coordinate system are determined, thereby determining the corresponding adjustment angle α between the reference coordinate system and the non-contact coordinate system.
[0068] In summary, the technical solution of this application firstly obtains the coordinates of a first measuring point on the object under test with high accuracy using a contact probe. Based on the coordinates of the first measuring point, a reference plane is determined, thereby constructing a reference coordinate system. The reference plane is the plane containing the triangle with the largest area formed by the coordinates of the first measuring point on the object under test. Simultaneously, based on the reference plane, the reference coordinate system can be made more consistent with the object under test, thereby reducing the scanning error of the object under test.
[0069] Then, based on the non-contact coordinate system corresponding to the non-contact probe, the coordinates of the second measuring point on the object under test are obtained. The coordinates of the second measuring point on the object under test are obtained by scanning with the non-contact probe, thus improving the efficiency of obtaining the coordinates of the second measuring point on the object under test.
[0070] By combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, the adjustment angle corresponding to the reference coordinate system can be determined, thereby enabling the non-contact coordinate system to coincide with the reference coordinate system, and thus realizing the evaluation of the scanning accuracy of the object under test.
[0071] The scanning accuracy evaluation method proposed in this application can improve the scanning evaluation efficiency of the measured object by combining the accuracy of the constructed reference coordinate system with a non-contact probe. At the same time, it can save on the cost of physical inspection tools.
[0072] The following describes an embodiment of the apparatus described in this application, which can be used to execute the scanning accuracy evaluation method described in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the scanning accuracy evaluation method described above in this application.
[0073] Figure 4 This is a block diagram of a scanning accuracy evaluation device according to an embodiment of this application.
[0074] Reference Figure 4 As shown, a scanning accuracy evaluation device 400 according to an embodiment of this application includes: a construction unit 401, configured to determine a reference plane based on the coordinates of multiple first measuring points on the object under test obtained by a contact probe, and to construct a reference coordinate system based on the reference plane, wherein the reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the object under test; an acquisition unit 402, configured to acquire the coordinates of multiple second measuring points on the object under test based on the non-contact coordinate system corresponding to a non-contact probe; and an adjustment unit 403, configured to determine an adjustment angle corresponding to the reference coordinate system by combining the first measuring point coordinates, the second measuring point coordinates, the reference coordinate system, and the non-contact coordinate system, wherein the adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system.
[0075] The construction unit 401 is further configured to: determine the hole center connection line according to the first measuring point coordinates, wherein the hole center connection line is the line connecting any two hole centers on the measured object; construct a triangle according to the first measuring point coordinates, wherein the triangle is a triangle constructed from any three first measuring point coordinates; obtain the minimum value of the height of the triangle and the area of the triangle; determine the intersection length according to the hole center connection line and the triangle, wherein the intersection length is the length of the line segment intersecting the hole center connection line and the triangle; if the intersection length is greater than the minimum value, and the area of the triangle is the maximum area among the triangles constructed from the first measuring point coordinates, then determine the plane containing the triangle as the reference plane.
[0076] In another aspect, this application also provides a computer-readable storage medium having a program product stored thereon capable of implementing the methods described above in this specification. In some possible implementations, various aspects of this application may also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this specification according to the various exemplary embodiments of this application.
[0077] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0078] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0079] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0080] In another respect, this application also provides an electronic device capable of implementing the above-described method.
[0081] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
[0082] Figure 5 This is a schematic diagram of the system structure of an electronic device according to an embodiment of this application. Referring below... Figure 5 To describe an electronic device 500 according to this embodiment of the present application. Figure 5 The electronic device 500 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0083] like Figure 5 As shown, the electronic device 500 is manifested in the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including storage unit 520 and processing unit 510).
[0084] The storage unit stores program code that can be executed by the processing unit 510, causing the processing unit 510 to perform the steps described in the "Embodiment Method" section above according to various exemplary embodiments of this application.
[0085] Storage unit 520 may include readable media in the form of volatile storage units, such as random access memory (RAM) 521 and / or cache memory 522, and may further include read-only memory (ROM) 523.
[0086] Storage unit 520 may also include a program / utility 524 having a set (at least one) program module 525, such program module 525 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0087] Bus 530 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0088] Electronic device 500 can also communicate with one or more external devices 1200 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 500, and / or with any device that enables electronic device 500 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 550. Furthermore, electronic device 500 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 500 via bus 530. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0089] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the method according to the embodiments of this application.
[0090] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of this application, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0091] It should be understood that this application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for evaluating scanning accuracy, characterized in that, The method includes: Based on the coordinates of multiple first measuring points on the object being measured obtained by the contact probe, a reference plane is determined, and a reference coordinate system is constructed based on the reference plane. The reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the object being measured. Based on the non-contact coordinate system corresponding to the non-contact probe, the coordinates of the second measurement points on multiple objects under test are obtained; By combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, an adjustment angle corresponding to the reference coordinate system is determined. The adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system. The step of determining the reference plane based on the coordinates of multiple first measuring points on the object under test obtained by the contact probe includes: Based on the coordinates of the first measuring point, the hole center connection line is determined, wherein the hole center connection line is the line connecting any two hole centers on the measured object; Based on the coordinates of the first measuring point, a triangle is constructed, wherein the triangle is any triangle constructed from the coordinates of three of the first measuring points; The reference plane is determined based on the line connecting the centers of the holes and the triangle. Determining the reference plane based on the line connecting the centers of the holes and the triangle includes: Obtain the minimum height of the triangle and the area of the triangle; Based on the line connecting the centers of the holes and the triangle, the intersection length is determined, whereby the intersection length is the length of the line segment where the line connecting the centers of the holes and the triangle intersect. If the intersection length is greater than the minimum value, and the area of the triangle is the maximum area among all triangles constructed from the coordinates of the first measuring point, then the plane containing the triangle is determined as the reference plane.
2. The method according to claim 1, characterized in that, The step of determining the adjustment angle corresponding to the reference coordinate system by combining the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system includes: By selecting a target point on the object being measured, the coordinates of the first measuring point and the coordinates of the second measuring point corresponding to the target point are determined; Based on the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system, an adjustment angle corresponding to the reference coordinate system is determined, wherein the adjustment angle is a three-dimensional angle, used to make the non-contact coordinate system coincide with the reference coordinate system.
3. The method according to claim 2, characterized in that, The step of determining the adjustment angle corresponding to the reference coordinate system based on the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system includes: Based on the coordinates of the first and second measuring points corresponding to the target point, determine the coordinate displacement and rotation changes of the target point between the reference coordinate system and the non-contact coordinate system. Based on the coordinate displacement change and the coordinate rotation change, the adjustment angle corresponding to the reference coordinate system is determined, wherein the coordinate displacement change represents the change of the coordinate along the coordinate axis, and the coordinate rotation change represents the change of the coordinate along the coordinate axis.
4. The method according to claim 3, characterized in that, When the target point is rotated based on the Z-axis and translated in the X, Y, and Z-axis directions, the coordinates of the target point after the adjustment angle are determined by the following formula: in, The coordinates of the target point before adjustment; The adjusted target point coordinates; This is the first matrix in the above formula, used to characterize the amount of coordinate rotation change; This is the second matrix in the above formula, used to characterize the change in coordinate displacement.
5. A scanning accuracy evaluation device, characterized in that, The device includes: The construction unit is used to determine a reference plane based on the coordinates of multiple first measuring points on the object under test obtained by the contact probe, and to construct a reference coordinate system based on the reference plane. The reference plane is the plane containing the triangle with the largest area constructed by the coordinates of the first measuring points on the object under test. The acquisition unit is used to acquire the coordinates of the second measurement points on multiple objects under test based on the non-contact coordinate system corresponding to the non-contact probe. An adjustment unit is used to combine the coordinates of the first measuring point, the coordinates of the second measuring point, the reference coordinate system, and the non-contact coordinate system to determine the adjustment angle corresponding to the reference coordinate system. The adjustment angle is used to make the non-contact coordinate system coincide with the reference coordinate system. The building unit is also used for: Based on the coordinates of the first measuring point, the hole center connection line is determined, wherein the hole center connection line is the line connecting any two hole centers on the measured object; Based on the coordinates of the first measuring point, a triangle is constructed, wherein the triangle is any triangle constructed from the coordinates of three of the first measuring points; Obtain the minimum height of the triangle and the area of the triangle; Based on the line connecting the centers of the holes and the triangle, the intersection length is determined, whereby the intersection length is the length of the line segment where the line connecting the centers of the holes and the triangle intersect. If the intersection length is greater than the minimum value, and the area of the triangle is the maximum area among all triangles constructed from the coordinates of the first measuring point, then the plane containing the triangle is determined as the reference plane.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to perform the operations performed by the method as described in any one of claims 1 to 4.
7. An electronic device, characterized in that, The electronic device includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to perform the operation performed by the method as described in any one of claims 1 to 4.