Method, apparatus and device for measuring distance
By using virtual feeler gauge technology to automatically obtain gap values, the problem of low efficiency in traditional gap detection is solved, and fast and accurate gap measurement is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHINING 3D TECH CO LTD
- Filing Date
- 2026-03-31
- Publication Date
- 2026-06-09
AI Technical Summary
Traditional gap detection methods rely on manual operation of physical feeler gauges, which is inefficient, cannot achieve automated measurement, and is difficult to fully reflect the overall distribution of gaps.
Using virtual feeler gauge technology, the measurement position and orientation of the object to be measured are obtained through computing devices, and the virtual feeler gauge is automatically aligned to measure the spacing, replacing the manual insertion operation.
It automates spacing measurement, improves measurement efficiency, and enables the rapid acquisition of spacing values at any specified location, overcoming the inefficiency and discrete measurement results of traditional methods.
Smart Images

Figure CN122170733A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of spacing measurement technology, and in particular to a spacing measurement method, apparatus, and device. Background Technology
[0002] In manufacturing and other fields, the spacing between objects under test is a key indicator for measuring product appearance quality, assembly accuracy, and performance.
[0003] Traditional gap detection methods rely on physical feeler gauges, where operators manually insert feeler gauges of different thicknesses into the gaps between the objects being measured.
[0004] However, this traditional method relies entirely on manual operation of physical feeler gauges, which is cumbersome, inefficient, and unable to achieve automated measurement. Furthermore, it can usually only obtain measurement values at a few discrete points, making it difficult to comprehensively and efficiently reflect the overall distribution of the gap. Summary of the Invention
[0005] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a spacing measurement method, apparatus, device and medium.
[0006] This application provides a distance measurement method, the method comprising: The method involves acquiring a first object and a second object to be measured, and determining the measurement position and direction of the distance between them. Then, a virtual feeler gauge is acquired, placed at the measurement position, and aligned with its thickness direction along the measurement direction. Based on the measurement position and direction, the distance value is automatically obtained using the aligned virtual feeler gauge. This approach automates the measurement process by replacing manual insertion of physical feeler gauges with a virtualized and programmed measurement workflow, improving efficiency and enabling quick and direct acquisition of distance values at any specified position. This effectively overcomes the inefficiencies and discrete measurement results of traditional methods.
[0007] This application embodiment also provides a spacing measuring device, the device comprising: The first acquisition unit is used to acquire the first object to be measured and the second object, and to determine the measurement position and measurement direction of the distance to be measured between the first object and the second object; An alignment unit is used to acquire a virtual feeler gauge, place the virtual feeler gauge at the measurement position, and align the thickness direction of the virtual feeler gauge along the measurement direction. The second acquisition unit is used to acquire the distance value between the first object and the second object at the measurement position based on the measurement position and measurement direction using the aligned virtual feeler gauge.
[0008] This application also provides a computing device, the computing device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the spacing measurement method provided in this application.
[0009] This application also provides a computer-readable storage medium storing a computer program for executing the spacing measurement method provided in this application. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this application will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0011] Figure 1 A flowchart illustrating a spacing measurement method provided in this application embodiment; Figure 2 A schematic diagram illustrating a measurement using a virtual feeler gauge, provided as an embodiment of this application; Figure 3 This is a schematic diagram illustrating a measurement using multiple virtual feeler gauges, provided as an embodiment of this application. Figure 4 This is a schematic diagram of the structure of a spacing measuring device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Detailed Implementation
[0012] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.
[0013] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0014] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0015] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0016] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0017] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0018] In manufacturing and other fields, the spacing between objects under test is a key indicator for measuring product appearance quality, assembly accuracy, and performance.
[0019] Traditional gap detection methods rely on physical feeler gauges, where operators manually insert feeler gauges of different thicknesses into the gaps between the objects being measured.
[0020] However, this traditional method relies entirely on manual operation of physical feeler gauges, which is cumbersome, inefficient, and unable to achieve automated measurement. Furthermore, it can usually only obtain measurement values at a few discrete points, making it difficult to comprehensively and efficiently reflect the overall distribution of the gap.
[0021] In view of this, this application provides a spacing measurement method, comprising: acquiring a first object and a second object to be measured, and determining the measurement position and measurement direction of the spacing to be measured between the first object and the second object. Then, a virtual feeler gauge is acquired, placed at the measurement position, and its thickness direction is aligned along the measurement direction; subsequently, based on the measurement position and measurement direction, the spacing value is automatically obtained using the aligned virtual feeler gauge. This solution replaces the manual insertion of physical feeler gauges with a virtualized and programmed measurement process, thereby automating the measurement process, improving measurement efficiency, and enabling the quick and direct acquisition of spacing values at any specified position, effectively overcoming the problems of low efficiency and discrete measurement results of traditional methods.
[0022] The method will be described below with reference to specific embodiments.
[0023] Figure 1 This is a flowchart illustrating a spacing measurement method provided in an embodiment of this application. The method is executed by a spacing measurement device in a scanning system, wherein the device can be implemented using software and / or hardware, and is generally integrated into a computing device.
[0024] like Figure 1 As shown, the method includes: S101: Obtain the first object and the second object to be measured, and determine the measurement position and measurement direction of the distance to be measured between the first object and the second object.
[0025] The computing device can acquire the first object and the second object to be measured, and determine the measurement position and measurement direction of the distance to be measured between the first object and the second object.
[0026] In some possible implementations, the first object can be a 3D model obtained from an actual scan of the object under test, and the second object can be a simulated fixture surface generated from a design reference model of the object under test. That is, the first object is a 3D model obtained from an actual scan of a single object under test (which can be a point cloud or mesh model to reflect the actual state of the object), while the second object is not another solid part, but a simulated fixture surface generated from a design reference model (such as a CAD model) of the same object under test. It can be used to measure the deviation between the actual manufacturing result and the design expectation, for example, it can be applied in edge measurement.
[0027] In some possible implementations, the internal structure or relative position of a single composite body is measured. In this case, the first object and the second object can be two components or two surfaces in a 3D model obtained from an actual scan of the object under test. That is, the first object and the second object can be two different components in a 3D model obtained from an actual scan of the same object under test, or two different surfaces on that 3D model. This method can be applied to measuring the distance between components within the same object or between surfaces in different regions.
[0028] In some possible implementations, two independent objects are involved, with the first and second objects being two 3D models obtained from actual scans of the two objects to be measured.
[0029] These two objects to be measured may or may not have an assembly relationship (referring to the designed mutual cooperation, connection, or adjacent positional relationship between two or more objects, such as a car door and a door frame). In this embodiment, the relative distance between them can be measured.
[0030] In some possible implementations, a virtual feeler gauge can be obtained in the following ways: Present the feeler gauge construction interface; in response to the feeler gauge construction command that triggers the feeler gauge construction interface, create a virtual feeler gauge with corresponding length and width.
[0031] For example, a computing device may be configured to present a feeler gauge construction interface, which is a user interface for interactively defining virtual feeler gauge parameters. The feeler gauge construction interface allows the user to input or select geometric properties of the virtual feeler gauge, such as length and width, which correspond to the virtual feeler gauge's extension dimensions in the measurement plane. Here, the virtual feeler gauge refers to a programmatically generated sheet-like geometry used to simulate the function of a physical feeler gauge in a virtual inspection environment, and to measure spacing through thickness adjustment. Length represents the dimension of the virtual feeler gauge in the measurement path direction, and width represents the dimension perpendicular to the length direction; both together define the two-dimensional profile of the virtual feeler gauge.
[0032] In response to a user-triggered feeler gauge construction command on the feeler gauge construction interface (e.g., by clicking a button or entering a command), the computing device can execute the command to create a virtual feeler gauge instance with the corresponding length and width. For example, the creation of a virtual feeler gauge with a planar geometry of specified length and width based on user-input parameters ensures that its dimensions match the actual measurement requirements, providing a foundation for automated gap measurement.
[0033] In some possible implementations, the first object and the second object are identified by a preset deep learning model, and the simulated size of the virtual feeler gauge is calculated based on the measurement position, and the virtual feeler gauge is created using the simulated size.
[0034] For example, the deep learning model first identifies and analyzes the input first and second objects, understanding their geometric features and spatial relationships. Based on this, and combined with information from the measurement location, the deep learning model calculates the simulated dimensions (e.g., contour parameters such as length and width) of a virtual feeler gauge suitable for measurement at that location. Subsequently, the computing device can directly use these calculated simulated dimensions to generate and create a virtual feeler gauge with the corresponding dimensions in a 3D detection environment. This method eliminates the need for users to manually define feeler gauge parameters, achieving a fully automated process from object recognition to virtual feeler gauge generation.
[0035] In some possible implementations, the first object and the second object are identified by a preset deep learning model, and multiple measurement positions are determined based on the identification of the first object and the second object. The simulated dimensions of multiple virtual feeler gauges are calculated based on the multiple measurement positions, and multiple virtual feeler gauges are created using the multiple simulated dimensions.
[0036] For example, after identifying the first and second objects as a whole using a pre-defined deep learning model, the model can analyze and determine multiple key locations where measurements need to be performed, thus identifying multiple measurement locations. Subsequently, for each determined measurement location, a suitable virtual feeler gauge is calculated and generated, i.e., the simulated dimensions of multiple virtual feeler gauges are calculated based on the multiple measurement locations. Finally, using these calculated simulated dimensions, multiple virtual feeler gauges are created simultaneously. It should be noted that the simulated dimensions of the multiple virtual feeler gauges can be different. This method achieves full-chain automation from object recognition and measurement point planning to the generation of corresponding measurement tools, and is applicable to scenarios requiring multi-point, rapid measurement of a continuous edge or a region.
[0037] In some possible implementations, the virtual feeler gauge is retrieved based on pre-stored universal feeler gauge parameters.
[0038] For example, the computing device has a pre-built universal feeler gauge parameter library, which stores the dimensional parameters (e.g., a series of standard thickness, length, and width values) of various standard feeler gauge pieces. When a measurement is required, the corresponding parameter set can be retrieved directly from the library based on these pre-stored universal feeler gauge parameters, and a virtual feeler gauge with specific dimensions can be instantiated using these parameters. This method eliminates the need to redefine or calculate the feeler gauge dimensions for each measurement, improving the efficiency of measurement setup, and is particularly suitable for gap measurement scenarios that conform to industry standards or commonly used specifications.
[0039] In some possible implementations, in response to triggering the feeler gauge selection command, pre-stored feeler gauge parameters are retrieved according to the feeler gauge selection command, and the corresponding virtual feeler gauge is obtained.
[0040] For example, a computing device can present a feeler gauge selection interface to the user, listing various available predefined feeler gauge specifications. When the user triggers a feeler gauge selection command on this interface (e.g., clicking an option), the computing device can respond to the command and, based on the selection information included in the command, retrieve the corresponding set of complete parameters (such as thickness, length, and width) from a pre-stored feeler gauge parameter library. Finally, using these retrieved parameters, a virtual feeler gauge that perfectly matches the user's selection is generated. This approach provides users with flexible choices, enabling them to quickly obtain and apply a virtual measuring tool with defined dimensions according to specific measurement needs.
[0041] S102: Obtain a virtual feeler gauge and place it at the measurement position, aligning the thickness direction of the virtual feeler gauge along the measurement direction.
[0042] The computing device can acquire a virtual feeler gauge, place the virtual feeler gauge at the measurement position, and align the thickness direction of the virtual feeler gauge along the measurement direction.
[0043] For example, the first object and the second object are two three-dimensional models obtained from actual scanning of two objects to be measured. The computing device can determine the measurement position and measurement direction of the distance based on the first object and the second object to be measured. In this embodiment, the first object and the second object can be described as computer-aided design (CAD) models. Of course, this is just an example and is not a limitation.
[0044] The computing device can determine the measurement position and direction based on the first and second objects to be measured, and place a virtual feeler gauge at the measurement position. The computing device can identify the area to be measured between the first and second objects by analyzing their geometric data, and select a specific point within that area as the measurement position. The measurement direction can be determined as the normal direction of the corresponding surface of the first object at the measurement position. Subsequently, the computing device can precisely place the virtual feeler gauge at the measurement position and adjust its spatial orientation through coordinate transformation to align its thickness direction with the measurement direction, thus laying the foundation for subsequent spacing value acquisition. For example, the second object can be the object to be measured that is paired with the first object in an assembly relationship and located on the other side of the spacing.
[0045] S103: Based on the measurement position and measurement direction, obtain the distance value between the first object and the second object at the measurement position using the aligned virtual feeler gauge.
[0046] Based on the measurement position and direction, the computing device obtains the distance value between the first object and the second object at the measurement position using the aligned virtual feeler gauge. For example, it can... Figure 2 As shown.
[0047] In some possible implementations, the computing device can set the initial thickness of the virtual feeler gauge to zero, detect whether the virtual feeler gauge with the current thickness collides with the second object, and if no collision occurs, increase the thickness of the virtual feeler gauge by a preset step size until a collision is detected. The thickness value of the virtual feeler gauge when the first collision is detected is used as the distance between the first object and the second object at the measurement position.
[0048] For example, when a computing device performs a spacing measurement method, it may employ a thickness increment and collision detection mechanism.
[0049] After aligning the virtual feeler gauge based on the measurement position and direction, its initial thickness is set to zero to prevent interference with the second object in the initial state. A detection loop then begins: determining if the geometry of the virtual feeler gauge with the current thickness has collided with the second object. If no collision is detected, the thickness of the virtual feeler gauge is increased by a preset small step (e.g., 0.01 mm). This detection-increase-thickness loop is repeated until the collision detection engine first confirms that the virtual feeler gauge has made contact with the second object. At this point, the loop immediately terminates, and the current thickness value of the virtual feeler gauge is recorded and output as the distance between the first and second objects at the measurement position. This process automatically simulates the operation principle of a physical feeler gauge, starting with the thinnest piece and attempting insertion until a feeler gauge thickness that just fits is found.
[0050] In some possible implementations, detecting whether a virtual feeler gauge of the current thickness collides with a preset model of a second object can be achieved in the following ways: A three-dimensional distance field is constructed for the second object. The distance value of the end position of the virtual feeler gauge along the measurement direction in the three-dimensional distance field is queried. The distance value is determined as the current distance between the virtual feeler gauge and the second object. If the current distance is less than or equal to zero, a collision is determined to have occurred.
[0051] For example, the computing device can pre-build a three-dimensional distance field for the second object, which is a data structure covering the space around the model, in which each voxel or spatial point stores its nearest distance value to the second object, with positive values indicating that the point is outside the model and negative values indicating that it is inside the model.
[0052] During collision detection, the spatial coordinates of the virtual feeler gauge's tip (i.e., the end closest to the second object) along the measurement direction are queried, and the corresponding distance value in the three-dimensional distance field is determined. This queried distance value is taken as the current distance between the virtual feeler gauge tip and the second object. If this current distance value is less than or equal to zero, it indicates that the geometry of the virtual feeler gauge has come into contact with or penetrated the second object, thus confirming a collision. This method significantly improves the speed of collision detection by transforming complex real-time geometric interferometry calculations into efficient queries of a pre-calculated distance field.
[0053] In some possible implementations, the distance between the first object and the second object at the measurement position is obtained using the aligned virtual feeler gauge, based on the measurement position and direction. Specifically, this can be achieved by: The computing device can determine the normal direction of the first object as the measurement direction at the measurement location, project it onto the second object along the normal direction, determine the projection point, calculate the distance between the measurement location and the projection point, and use the distance as the spacing value.
[0054] For example, the computing device can obtain the spacing value using a measurement method based on geometric projection. Specifically, at a determined measurement location, the normal direction of the surface of the first object is calculated by analyzing its geometric data, and this direction is determined as the direction of the measurement. Then, a projection ray is drawn from the measurement location along this normal direction towards the second object. A projection point is determined by solving for the geometric intersection of this projection ray and the second object. Finally, the spatial straight-line distance between the measurement location and the projection point is calculated, and this calculated distance value is directly used as the spacing value between the first and second objects at the measurement location. This method replaces the dynamic simulation process with direct geometric calculation, achieving rapid acquisition of the spacing value.
[0055] In some possible implementations, this embodiment can also determine the measurement path based on the first object and the second object, control the virtual feeler gauge to move along the measurement path, and perform measurements on multiple points on the measurement path to obtain multiple spacing values.
[0056] For example, the computing device can determine a measurement path based on a first object and a second object. This measurement path can be a spatial curve attached to the edge contour of the first object. The virtual feeler gauge is controlled to move along this predefined measurement path, and the gap measurement process described above is sequentially performed on multiple discrete measurement points on the path at set sampling intervals, thereby obtaining a series of gap values corresponding to the points.
[0057] In some possible implementations, the measurement locations may include multiple locations, and multiple virtual feeler gauges may be included. Each of the multiple virtual feeler gauges corresponds to a different measurement location. In this embodiment, measurements can also be performed on the corresponding measurement locations based on the multiple virtual feeler gauges to obtain multiple spacing values. For example... Figure 3 As shown.
[0058] For example, this embodiment can determine multiple measurement locations to be detected for the area to be measured between the first object and the second object. A dedicated virtual feeler gauge is generated for each measurement location; that is, there are multiple virtual feeler gauges, each corresponding one-to-one with one of the multiple measurement locations. Subsequently, the computing device can perform spacing measurements synchronously or sequentially on the corresponding measurement locations based on these multiple virtual feeler gauges, thereby quickly and efficiently obtaining a series of spacing values corresponding to different locations. This method achieves automated gap detection at multiple points, comprehensively reflects the spacing distribution, and significantly improves measurement efficiency and the integrity of measurement data.
[0059] In some possible implementations, a detection report is generated and displayed based on multiple of the aforementioned spacing values.
[0060] For example, the test report may include a data list, statistical charts (such as a distribution map), and the pass / fail assessment results of the interval values. Finally, the generated test report is clearly presented to the user through a graphical user interface, providing a complete and intuitive record of measurement results to facilitate user quality analysis and decision-making.
[0061] In this embodiment, the computing device can acquire the first and second objects to be measured, and determine the measurement position and direction of the distance to be measured between the first and second objects. Then, a virtual feeler gauge is acquired, placed at the measurement position, and its thickness direction is aligned with the measurement direction. Based on the measurement position and direction, the distance value is automatically obtained using the aligned virtual feeler gauge. This solution replaces the manual insertion of physical feeler gauges with a virtualized and programmed measurement process. Therefore, whether measuring the deviation between the actual model of a single object and the simulated fixture surface generated based on its design model (such as edge measurement), measuring the distance between two parts or surfaces within the 3D model of the same object, or measuring the relative distance between the 3D models of two independent objects (regardless of whether they have an assembly relationship), this embodiment can automatically obtain the distance value using the virtual feeler gauge. This automates the measurement process, improves measurement efficiency, and allows for quick and direct acquisition of distance values at any specified position, effectively overcoming the problems of low efficiency and discrete measurement results in traditional methods.
[0062] To achieve the above embodiments, this application also proposes a spacing measuring device.
[0063] Figure 4 This is a schematic diagram of a spacing measuring device provided in an embodiment of this application. The device can be implemented by software and / or hardware, and is generally integrated into a computing device. Figure 4 As shown, the device includes: The first acquisition unit 410 is used to acquire the first object to be measured and the second object, and to determine the measurement position and measurement direction of the distance to be measured between the first object and the second object; Alignment unit 420 is used to acquire a virtual feeler gauge, place the virtual feeler gauge at the measurement position, and align the thickness direction of the virtual feeler gauge along the measurement direction; The second acquisition unit 430 is used to acquire the distance value between the first object and the second object at the measurement position based on the measurement position and measurement direction using the aligned virtual feeler gauge.
[0064] Optionally, the first object is a three-dimensional model obtained based on the actual scanning of the object under test, and the second object is a simulated fixture surface generated based on the design reference model of the object under test; Alternatively, the first object and the second object may be two components or two surfaces in a three-dimensional model obtained from the actual scanning of the object under test. Alternatively, the first object and the second object may be two 3D models obtained from actual scanning of the two objects to be tested.
[0065] Optionally, the second acquisition unit is specifically used for: The initial thickness of the virtual feeler gauge is set to zero. The system checks whether the virtual feeler gauge with the current thickness collides with the second object. If no collision occurs, the thickness of the virtual feeler gauge is increased by a preset step size until a collision is detected. The thickness value of the virtual feeler gauge at the moment of first collision detection is used as the distance value between the first object and the second object at the measurement location.
[0066] Optionally, the second acquisition unit is specifically used for: At the measurement location, the normal direction of the first object is determined as the measurement direction; Project the image onto the second object along the normal direction to determine the projection point; Calculate the distance between the measurement location and the projection point, and use the distance as the spacing value.
[0067] Optionally, the second acquisition unit is specifically used for: The detection of whether a virtual feeler gauge of the current thickness collides with a second object is achieved in the following way: Construct a three-dimensional distance field for the second object; Query the distance value of the end position of the virtual feeler gauge along the measurement direction in the three-dimensional distance field; The distance value is determined as the current distance between the virtual feeler gauge and the second object; A collision is determined to have occurred if the current distance is less than or equal to zero.
[0068] Optionally, the first acquisition unit is specifically used for: Present the feeler gauge construction interface; in response to the feeler gauge construction command that triggers the feeler gauge construction interface, create a virtual feeler gauge with corresponding length and width.
[0069] Alternatively, the first object and the second object can be identified using a preset deep learning model, and the simulated size of the virtual feeler gauge can be calculated based on the measurement position, and the virtual feeler gauge can be created using the simulated size; Alternatively, the first object and the second object can be identified using a preset deep learning model, and multiple measurement positions can be determined based on the identification of the first object and the second object. The simulated dimensions of multiple virtual feeler gauges can be calculated based on the multiple measurement positions, and multiple virtual feeler gauges can be created using the multiple simulated dimensions. Alternatively, the virtual feeler gauge can be retrieved based on pre-stored universal feeler gauge parameters; Alternatively, in response to triggering the feeler gauge selection command, the pre-stored feeler gauge parameters are retrieved according to the feeler gauge selection command, and the corresponding virtual feeler gauge is obtained.
[0070] Optionally, the device further includes: The determining unit is configured to determine a measurement path based on the first object and the second object; The control unit is used to control the virtual feeler gauge to move along the measurement path and perform measurements on multiple points on the measurement path to obtain multiple spacing values.
[0071] Optionally, the measurement positions include multiple locations, the virtual feeler gauges include multiple locations, and the multiple virtual feeler gauges correspond to the multiple measurement positions respectively. The device further includes: The third obtaining unit is used to measure the corresponding measurement positions based on the multiple virtual feeler gauges to obtain multiple spacing values.
[0072] Optionally, the device further includes: A generation unit is used to generate and display a detection report based on multiple of the spacing values.
[0073] The spacing measuring device provided in this application embodiment can execute the spacing measuring method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the method execution.
[0074] To implement the above embodiments, this application also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implements the spacing measurement method in the above embodiments.
[0075] Figure 5 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application.
[0076] The following is a detailed reference. Figure 5The diagram illustrates a structural schematic suitable for implementing the computing device 300 in the embodiments of this application. The computing device 300 in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The computing device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0077] like Figure 5 As shown, the computing device 300 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 302 or a program loaded from memory 308 into random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the computing device 300. The processor 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0078] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows computing device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 A computing device 300 with various devices is shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0079] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 309, or installed from a memory 308, or installed from a ROM 302. When the computer program is executed by the processor 301, it performs the functions defined in the spacing measurement method of embodiments of this application.
[0080] It should be noted that the computer-readable medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0081] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0082] The aforementioned computer-readable medium may be included in the aforementioned computing device; or it may exist independently and not assembled into the computing device.
[0083] The aforementioned computer-readable medium carries one or more programs that, when executed by the computing device, cause the computing device to perform the aforementioned spacing measurement method.
[0084] The computing device may be programmed with computer program code for performing the operations of this application in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0086] The units described in the embodiments of this application can be implemented in software or hardware. The names of the units are not, in some cases, limiting the scope of the unit itself.
[0087] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0088] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0089] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
[0090] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0091] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for measuring spacing, characterized in that, The method includes: Acquire the first object and the second object to be measured, and determine the measurement position and measurement direction of the distance to be measured between the first object and the second object; Obtain a virtual feeler gauge and place it at the measurement position, aligning the thickness direction of the virtual feeler gauge along the measurement direction; Based on the measurement position and direction, the distance between the first object and the second object at the measurement position is obtained by using the aligned virtual feeler gauge.
2. The method according to claim 1, characterized in that, The first object is a three-dimensional model obtained from the actual scanning of the object under test, and the second object is a simulated fixture surface generated based on the design reference model of the object under test; Alternatively, the first object and the second object may be two components or two surfaces in a three-dimensional model obtained from the actual scanning of the object under test. Alternatively, the first object and the second object may be two 3D models obtained from actual scanning of the two objects to be tested.
3. The method according to claim 1, characterized in that, Based on the measurement position and direction, the distance between the first object and the second object at the measurement position is obtained using the aligned virtual feeler gauge, including: The initial thickness of the virtual feeler gauge is set to zero. The system checks whether the virtual feeler gauge with the current thickness collides with the second object. If no collision occurs, the thickness of the virtual feeler gauge is increased by a preset step size until a collision is detected. The thickness value of the virtual feeler gauge at the moment of first collision detection is used as the distance value between the first object and the second object at the measurement location.
4. The method according to claim 1, characterized in that, Based on the measurement position and direction, the distance between the first object and the second object at the measurement position is obtained using the aligned virtual feeler gauge, including: At the measurement location, the normal direction of the first object is determined as the measurement direction; Project the image onto the second object along the normal direction to determine the projection point; Calculate the distance between the measurement location and the projection point, and use the distance as the spacing value.
5. The method according to claim 2, characterized in that, The detection of whether the virtual feeler gauge of the current thickness collides with the second object is achieved in the following way: Construct a three-dimensional distance field for the second object; Query the distance value of the end position of the virtual feeler gauge along the measurement direction in the three-dimensional distance field; The distance value is determined as the current distance between the virtual feeler gauge and the second object; A collision is determined to have occurred if the current distance is less than or equal to zero.
6. The method according to any one of claims 1-5, characterized in that, The process of obtaining the virtual feeler gauge includes: Present the feeler gauge construction interface; in response to the feeler gauge construction command that triggers the feeler gauge construction interface, create a virtual feeler gauge with corresponding length and width; Alternatively, the first object and the second object can be identified using a preset deep learning model, and the simulated size of the virtual feeler gauge can be calculated based on the measurement position, and the virtual feeler gauge can be created using the simulated size; Alternatively, the first object and the second object can be identified by a preset deep learning model to determine multiple measurement positions, and the simulated dimensions of multiple virtual feeler gauges can be calculated based on the multiple measurement positions. Multiple virtual feeler gauges can then be created using the multiple simulated dimensions. Alternatively, the virtual feeler gauge can be retrieved based on pre-stored universal feeler gauge parameters; Alternatively, in response to triggering the feeler gauge selection command, the pre-stored feeler gauge parameters are retrieved according to the feeler gauge selection command, and the corresponding virtual feeler gauge is obtained.
7. The method according to claim 1, characterized in that, The method further includes: Based on the first object and the second object, determine the measurement path; The virtual feeler gauge is controlled to move along the measurement path and perform measurements on multiple points on the measurement path to obtain multiple spacing values.
8. The method according to claim 1, characterized in that, The measurement positions include multiple locations, and the virtual feeler gauges include multiple locations, with each virtual feeler gauge corresponding to one of the multiple measurement positions. The method further includes: Multiple spacing values are obtained by measuring the corresponding measurement positions using multiple virtual feeler gauges.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: A detection report is generated and displayed based on multiple of the aforementioned spacing values.
10. A spacing measuring device, characterized in that, The device includes: The first acquisition unit is used to acquire the first object to be measured and the second object, and to determine the measurement position and measurement direction of the distance to be measured between the first object and the second object; An alignment unit is used to acquire a virtual feeler gauge, place the virtual feeler gauge at the measurement position, and align the thickness direction of the virtual feeler gauge along the measurement direction. The second acquisition unit is used to acquire the distance value between the first object and the second object at the measurement position based on the measurement position and measurement direction using the aligned virtual feeler gauge.
11. A computing device, characterized in that, The computing device includes: a processor; a memory for storing executable instructions of the processor; the processor for reading the executable instructions from the memory and executing the instructions to implement the method as claimed in any one of claims 1-9.