Object detection method and device, equipment and storage medium
By constructing simulated gauges and feeler gauges on a preset model of the workpiece to be tested, the problem of low detection efficiency of cutting and binding points is solved, realizing efficient object detection, which is suitable for automatic detection of sheet metal parts.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHINING 3D TECH CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, the detection efficiency of cutting points and edge binding points is low, traditional inspection tools are expensive to manufacture and not suitable for frequent changes, and coordinate measuring machine (CMM) inspection is inefficient.
The test surface is determined on a preset model of the workpiece. An auxiliary plane is determined by combining the test surface and a preset distance. A simulated gauge and feeler gauge are constructed. The thickness of the gap between the test point and the simulated gauge is measured using the simulated feeler gauge to determine the deviation of the test point.
It improves the positional accuracy of the simulated inspection fixture, simplifies the inspection process, and increases the efficiency of object inspection. It is suitable for automatic inspection of similar workpieces.
Smart Images

Figure CN122065458A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of workpiece inspection technology, and in particular to an object inspection method, apparatus, equipment and storage medium. Background Technology
[0002] Cutting and edge sealing are important processes in sheet metal parts, and their inspection is extremely important. Currently, the inspection of cutting / edge sealing points mainly uses traditional inspection tools or coordinate measuring machines (CMMs).
[0003] Among them, compared with the traditional inspection tool method, the three-coordinate method can accurately obtain the deviation of the detection point by comparing the detection point with the model, but the detection efficiency is low. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides an object detection method, apparatus, device and storage medium.
[0005] This disclosure provides an object detection method, which includes: determining a surface to be measured on a preset model of a workpiece to be measured; determining an auxiliary plane by combining the surface to be measured and a preset distance; and constructing a simulated gauge on the auxiliary plane; determining a feeler gauge direction based on a constraint plane of the preset model; and constructing a simulated feeler gauge according to the feeler gauge direction; determining a point to be measured on the surface to be measured; and measuring the gap thickness from the point to be measured on the workpiece to be measured to the simulated gauge using the simulated feeler gauge; the point to be measured includes a cutting edge point or a binding edge point, and the gap thickness is used to determine the deviation of the point to be measured.
[0006] This disclosure also provides an object detection device, which includes: The first construction module is used to determine the surface to be measured on the preset model of the workpiece to be measured, determine the auxiliary plane by combining the surface to be measured and the preset distance, and construct a simulated gauge on the auxiliary plane; the second construction module is used to determine the feeler gauge direction based on the constraint plane of the preset model, and construct a simulated feeler gauge according to the feeler gauge direction; the measurement module is used to determine the point to be measured on the surface to be measured, and use the simulated feeler gauge to measure the gap thickness from the point to be measured on the workpiece to be measured to the simulated gauge; the point to be measured includes the cutting edge point or the binding edge point, and the gap thickness is used to determine the deviation of the point to be measured.
[0007] This disclosure 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 object detection method provided in this disclosure.
[0008] This disclosure also provides a computer-readable storage medium storing a computer program for performing the object detection method provided in this disclosure.
[0009] In this implementation, by determining the simulated fixture based on the plane to be measured, the positional accuracy of the simulated fixture can be improved. Furthermore, a method for constructing the simulated fixture and simulated feeler gauge is proposed, which simplifies the overall scanning and inspection workflow. The gap thickness between the actual scanning data and the simulated fixture is further calculated. Compared to traditional inspection based on 3D scanning data, the simulated fixture and simulated feeler gauge can automatically inspect similar workpieces, thus improving object inspection efficiency. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure 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 This is a schematic flowchart of an object detection method provided in an embodiment of the present disclosure; Figure 2 A schematic diagram illustrating a method for constructing a simulated inspection fixture according to an embodiment of this disclosure; Figure 3 A schematic diagram of a cutting point detection method provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of an edge detection method provided in an embodiment of the present disclosure; Figure 5 This is a schematic diagram of an object detection device provided in an embodiment of the present disclosure; Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of the present disclosure. Detailed Implementation
[0012] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure 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 disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0013] It should be understood that the steps described in the method embodiments of this disclosure 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 disclosure 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 disclosure are used only 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 disclosure 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 messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0018] Trimming, also known as edge trimming or punching, refers to the process of removing excess material (process supplement) from the edges of sheet metal parts after stamping, using a special die (trimming die) to achieve the accurate contour and dimensions required by the final design. Hemming, also known as folding or rolling, is a joining process where the edge of one sheet metal part is bent and wrapped around the edge of another sheet metal part (or reinforcement), thus firmly joining the two together. It is a typical cold forming process that does not require welding.
[0019] Inspection tools are special tooling fixtures used to check whether the dimensions, geometry, and positional relationships of workpieces meet the design requirements.
[0020] Existing traditional inspection tools rely on specialized fixtures, requiring operators to use tools such as go / no-go gauges, height gauges, and feeler gauges. However, these fixtures are expensive to manufacture and unsuitable for frequent changes. In contrast, using a coordinate measuring machine (CMM) to compare the probe points with the model can accurately determine the deviation of the probe points, but the efficiency is low due to the need for repeated comparisons each time.
[0021] To address the aforementioned problems, this disclosure provides an object detection method, comprising: determining a surface to be measured on a preset model of the workpiece to be measured; determining an auxiliary plane based on the surface to be measured and a preset distance; and constructing a simulated fixture on the auxiliary plane; determining a feeler gauge direction based on a constraint plane of the preset model; and constructing a simulated feeler gauge according to the feeler gauge direction; determining a point to be measured on the surface to be measured; and measuring the gap thickness from the point to be measured to the simulated fixture using the simulated feeler gauge; the point to be measured includes a cutting edge point or a binding edge point, and the gap thickness is used to determine the deviation of the point to be measured. By determining the simulated fixture based on the plane to be measured, the positional accuracy of the simulated fixture can be improved. Furthermore, a method for constructing the simulated fixture and the simulated feeler gauge is proposed, which simplifies the overall scanning detection workflow. Further calculation of the gap thickness from the actual scanning data to the simulated fixture is used to determine the deviation of the point to be measured. Compared with traditional detection based on three-dimensional scanning data, the simulated fixture and simulated feeler gauge can automatically detect the same type of workpiece, thus improving the efficiency of object detection.
[0022] The method will be described below with reference to specific embodiments.
[0023] Figure 1 This is a flowchart illustrating an object detection method provided in an embodiment of the present disclosure. The method can be executed by an object detection device, which can be implemented using software and / or hardware, and is generally integrated into a computing device. Figure 1 As shown, the method includes: S101. Determine the surface to be measured on the preset model of the workpiece to be measured, determine the auxiliary plane by combining the surface to be measured and the preset distance, and construct a simulated inspection tool on the auxiliary plane.
[0024] The computing device determines the surface to be measured on the preset model of the workpiece, determines the auxiliary plane by combining the surface to be measured and the preset distance, and constructs a simulated inspection tool on the auxiliary plane.
[0025] The workpiece to be tested can be a variety of assembly workpieces in the sheet metal industry. For example, the workpiece is a car door in the assembly of a car body.
[0026] The preset model of the workpiece to be tested refers to a digital three-dimensional model that can reproduce the geometric features, dimensional parameters, structural details, and reference information of the workpiece, and is used for comparison with the actual scanning data of the workpiece to be tested later. In one possible implementation, the preset model is a CAD model.
[0027] Based on the installation space of the workpiece to be measured and the corresponding fixture, an auxiliary plane is generated by offsetting outwards. In this implementation, an auxiliary plane is generated for each surface to be measured on the preset model. The surface to be measured can be a plane or a curved surface, such as a cylindrical surface.
[0028] Specifically, the surface to be tested is selected in the preset model, and the surface is offset outward by a preset distance according to the set fixture installation distance to obtain the corresponding auxiliary plane, which is then used as the plane where the simulated fixture is located.
[0029] In one possible implementation, an auxiliary plane is constructed based on any point on the surface to be tested. Specifically, by combining the surface to be tested and the constraint plane, a target point is determined on the surface to be tested, and the position and normal of the target point are obtained. Based on the position of the target point, an auxiliary plane is determined at a preset distance along the direction of the normal of the target point, and a simulated fixture is constructed on the auxiliary plane.
[0030] Optionally, the target point can be the center point of the surface to be measured or a point near a reference feature.
[0031] In one example, the workpiece to be measured is a cuboid, and the surface to be measured is the plane to be measured. For an example, please refer to... Figure 2 , Figure 2 This is a schematic diagram of a method for constructing a simulated inspection fixture according to an embodiment of this disclosure. Figure 2 As shown in the figure, the cuboid is the CAD model of the workpiece to be measured. The right side is selected as the surface to be measured. A point is selected as the target point on the surface to be measured. The three-dimensional coordinates of the target point are obtained. The direction of the target point perpendicular to both the surface to be measured and the normal of the constraint plane is obtained. The normal vector of the target point is obtained. Taking the position coordinates of the target point as the starting point, a linear offset is made along the direction of the normal vector according to the preset distance d1 to determine the reference point of the auxiliary plane. The auxiliary plane is generated according to the reference point and the normal vector. The distance between the generated auxiliary plane and the surface to be measured is the preset distance.
[0032] In another example, the workpiece to be measured is a cylinder, and the surface to be measured is the cylindrical surface to be measured. For example, a point is determined on the cylindrical surface to be measured, and this point is projected onto the cylindrical axis of the cylinder to be measured, obtaining a projection point. This projection point is extended along a direction that is simultaneously perpendicular to the cylindrical axis and the normal direction of the constraint plane, and the intersection point with the cylindrical surface to be measured is found. This intersection point is taken as the target point, and the position of the target point is obtained. The normal direction of the extended projection point is taken as the normal direction of the target point. Further, starting from the position coordinates of the target point, an auxiliary plane is determined at a preset distance along the direction of the normal direction.
[0033] Furthermore, a three-dimensional simulated fixture is generated on an auxiliary plane according to the model parameters of the simulated fixture.
[0034] S102. Determine the feeler gauge direction based on the constraint plane of the preset model, and construct a simulated feeler gauge according to the feeler gauge direction.
[0035] The computing device can construct a simulated feeler gauge based on the constraint plane of a preset model.
[0036] A feeler gauge, also known as a thickness gauge, is a thin, precision measuring tool used to measure minute gaps between two planes or to check the fit of mating surfaces. It is a commonly used basic tool in mechanical inspection. For example, a feeler gauge can be composed of a set of thin steel sheets of different thicknesses, each sheet with a clearly marked thickness, ranging from 0.01mm to 1mm.
[0037] By combining the working plane of the feeler gauge between the workpiece to be tested and the simulated fixture, a constraint plane is determined on the preset model of the workpiece to be tested. Then, based on the constraint plane, a simulated feeler gauge is constructed between the preset model and the simulated fixture.
[0038] In one possible implementation, the orientation information of the simulated feeler gauge is determined based on the constraint plane of the preset model, the size information of the simulated feeler gauge is determined based on the preset length and preset width, and the simulated feeler gauge is constructed by combining the orientation information and size information of the simulated feeler gauge.
[0039] Specifically, based on the actual inspection requirements of the workpiece to be tested, the preset length and preset width of the feeler gauge are preset to obtain the dimensional information of the constructed simulated feeler gauge; the directional information of the simulated feeler gauge, i.e. the measurement direction of the feeler gauge, is obtained according to the direction of the constraint plane; and the simulated feeler gauge is constructed between the preset model and the simulated fixture by combining the directional information and the dimensional information.
[0040] For example, please refer to Figure 2 A simulated feeler gauge is constructed between the rectangular workpiece to be tested and the simulated inspection tool.
[0041] S103. Determine the test point on the test surface, and use a simulated feeler gauge to measure the gap thickness from the test point of the workpiece to the simulated gauge.
[0042] The computing device can determine the test point on the surface to be measured, and use a simulated feeler gauge to measure the gap thickness from the test point of the workpiece to the simulated gauge.
[0043] Select a test point on the test surface of the preset model. When the process of the test surface is edge cutting, the test point is the edge cutting point. When the process of the test surface is edge wrapping, the test point is the edge wrapping point.
[0044] As can be seen from the above-described construction process of the simulated fixture, the distance between the preset model of the workpiece to be tested and the corresponding simulated fixture is a preset distance. However, during the actual workpiece manufacturing process, the distance between the actual workpiece and the simulated fixture may deviate. The gap thickness between the actual scan data of the workpiece to be tested and the simulated fixture is measured using a simulated feeler gauge.
[0045] Specifically, a simulated feeler gauge is used to fit between the point to be measured and the simulated gauge in the actual scanning data according to the detection logic, ensuring that the two working surfaces of the feeler gauge are completely fitted with the two constraint surfaces respectively, so as to obtain the gap thickness.
[0046] The gap thickness can be used to determine the deviation of the test point. In one possible implementation, the deviation value of the test point is determined based on a preset distance and the gap thickness.
[0047] Specifically, the actual scanning data of the test point of the workpiece to be tested and the gap thickness of the simulated fixture are obtained. The gap thickness reflects the true fit thickness between the actual scanning data of the workpiece to be tested and the simulated fixture. The preset distance between the preset model and the simulated fixture is obtained. The preset distance is the ideal fit thickness between the workpiece to be tested and the fixture during the design stage. The gap thickness and the preset distance are compared to obtain the actual deviation of the workpiece to be tested.
[0048] In one possible implementation, the deviation value of the test point is obtained by subtracting a preset distance from the gap thickness. When the deviation value is 0, it indicates that the actual thickness is completely consistent with the design standard, and the test point meets the design requirements. When the deviation value is positive, it indicates that the actual thickness is greater than the preset distance, and that the test point is shifted away from the simulated fixture, resulting in a larger gap between the workpiece and the fixture. When the deviation value is negative, it indicates that the actual thickness is less than the preset distance, and that the test point is shifted closer to the simulated fixture, resulting in a smaller gap between the workpiece and the fixture.
[0049] Furthermore, the quality of the workpiece under test can be determined based on the deviation value of the cutting edge or the edge binding point. Understandably, when the deviation value is within the design tolerance range, the cutting edge or edge binding of the workpiece under test is considered acceptable.
[0050] Furthermore, the deviation value of a single test point may have random errors. Multiple test points are selected on the test surface to calculate the deviation value, and the overall trend is used to determine whether the workpiece is qualified.
[0051] In this embodiment, by determining the simulated fixture based on the plane to be measured, the positional accuracy of the simulated fixture can be improved. Furthermore, a method for constructing the simulated fixture and simulated feeler gauge is proposed, which simplifies the overall scanning and inspection workflow. The gap thickness between the actual scanning data and the simulated fixture is further calculated. Compared to traditional inspection based on 3D scanning data, the simulated fixture and simulated feeler gauge can automatically inspect similar workpieces. This application can improve the detection efficiency of cutting edges and edge binding points.
[0052] This application can also utilize 3D software to implement object detection methods.
[0053] In one possible implementation, the 3D software includes a first interface.
[0054] The first interface is presented in the 3D software. The preset model of the workpiece to be measured is imported and loaded in the first interface. The surface to be measured is selected on the preset model based on the user's first operation command. The preset distance input by the user is received. The second operation command of the user is received. The auxiliary plane is generated in the first interface using the above method. The 3D simulation fixture is drawn on the auxiliary plane.
[0055] Furthermore, based on the user's third operation command, a constraint plane is selected in the first interface, and based on the user's fourth operation command, a simulated feeler gauge is generated in the first interface. Specifically, the preset length and preset width of the feeler gauge are received from the user, and the simulated feeler gauge is generated in the first interface using the above method. At this time, the generated simulated fixture and simulated feeler gauge can be saved as a fixture and feeler gauge template.
[0056] Furthermore, the actual scan data of the workpiece to be tested is imported into the 3D software system. Based on the user's operation instructions, the point to be tested is selected in the system interface. The actual gap thickness between the scan data of the point to be tested and the simulated gauge is measured using a simulated feeler gauge. The deviation value of the point to be tested is then output using the method described above. At this point, the detection method is also saved as a detection method template and synchronized to the equipment.
[0057] Furthermore, when it is necessary to inspect the same workpiece, the actual scanning data of the new workpiece is imported, and the template gauge and simulated feeler gauge in the gauge and feeler gauge template are used. The method in the inspection method template is used to obtain the deviation of the new workpiece and generate the final inspection result report. This inspection result report can show the inspection results of the cutting edge point or the edge wrapping point.
[0058] For example, please refer to Figure 3 and Figure 4 , Figure 3 This is a schematic diagram of a cutting edge detection method provided in an embodiment of this disclosure. Figure 4 This is a schematic diagram of an edge detection method provided in an embodiment of the present disclosure.
[0059] like Figure 3 and Figure 4 All of these are the first interface, such as Figure 3 and Figure 4 As shown, the user imports the CAD model of the workpiece to be measured into the reference model on the first interface, imports the actual scanning data of the workpiece to be measured into the measurement model, and selects the surface to be measured in the object to be measured option on the first interface. Figure 3 The object to be measured is a plane. Figure 4 The object to be measured is a cylindrical surface. Enter the preset distance in the gauge distance option, select the constraint plane in the constraint plane option, and select the feeler gauge size in the feeler gauge height and feeler gauge width options. Use the simulated feeler gauge to measure the scanning data of the point to be measured to the actual gap thickness of the simulated gauge, and display it at the position of the corresponding point to be measured.
[0060] In one possible implementation, the 3D software includes a second interface.
[0061] A second interface is presented in the 3D software. Based on the user's fifth operation command, a test result report is generated in the second interface. The test result report includes gap thickness and / or deviation value.
[0062] Optionally, the test results report can be re-exported from the 3D software system for further viewing, analysis, and archiving.
[0063] In this implementation, the simulated inspection fixture can be viewed intuitively on the mobile software. For traditional inspection personnel, it allows for easy integration of traditional inspection methods with the software's inspection methods, improving the user experience. Furthermore, compared to traditional inspection based on 3D scanning data, efficiency is significantly improved. After creating an inspection template, users can directly and automatically inspect similar workpieces on the device without cross-device data transmission, greatly enhancing inspection efficiency.
[0064] To achieve the above embodiments, this disclosure also proposes an object detection device, which can generally be integrated into a computing device. Figure 5 This is a schematic diagram of an object detection device provided in an embodiment of the present disclosure, such as... Figure 5 As shown, the object detection device includes: The first construction module 501 is used to determine the surface to be measured on the preset model of the workpiece to be measured, determine the auxiliary plane by combining the surface to be measured and the preset distance, and construct a simulated inspection tool on the auxiliary plane.
[0065] The second construction module 502 is used to determine the feeler gauge direction based on the constraint plane of the preset model, and to construct a simulated feeler gauge according to the feeler gauge direction.
[0066] The measurement module 503 is used to determine the measurement point on the surface to be measured, and to measure the gap thickness from the measurement point to the simulated gauge using a simulated feeler gauge; the measurement point includes the cutting edge point or the edge binding point, and the gap thickness is used to determine the deviation of the measurement point.
[0067] In one possible implementation, the first building module 501 includes: The first determining unit is used to combine the surface to be measured and the constraint plane to determine the position and normal of the target point on the surface to be measured.
[0068] The second determining unit is used to determine an auxiliary plane at a preset distance based on the position of the target point and along the direction of the normal of the target point.
[0069] In one possible implementation, the second building module 502 includes: The first determining unit is used to determine the orientation information of the simulated feeler gauge based on the constraint plane of the preset model.
[0070] The second determining unit is used to determine the size information of the simulated feeler gauge based on the preset length and preset width.
[0071] The building unit is used to construct a simulated feeler gauge by combining the orientation and size information of the simulated feeler gauge.
[0072] In one possible implementation, the object detection device further includes: The calculation unit is used to subtract a preset distance from the gap thickness to obtain the deviation value of the test point.
[0073] In one possible implementation, the object detection device further includes: The first interface module is used to present the first interface; load the preset model of the workpiece to be measured in the first interface; select the surface to be measured on the preset model based on the user's first operation command; receive the preset distance input by the user; generate a simulated gauge in the first interface based on the user's second operation command; select the constraint plane on the preset model based on the user's third operation command; and generate a simulated feeler gauge in the first interface based on the user's fourth operation command.
[0074] In one possible implementation, the object detection device further includes: The second interface module is used to present the second interface; based on the user's fifth operation command, a detection result report is generated in the second interface, and the detection result report includes the gap thickness.
[0075] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implements the object detection method in the above embodiments.
[0076] Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of the present disclosure.
[0077] The following is a detailed reference. Figure 6 The diagram illustrates a structural schematic suitable for implementing the computing device 600 in the embodiments of this disclosure. The computing device 600 in the embodiments of this disclosure 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 6 The computing device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0078] like Figure 6 As shown, computing device 600 may include a processor (e.g., central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of computing device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0079] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows computing device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 A computing device 600 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.
[0080] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure 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 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the object detection method of embodiments of this disclosure.
[0081] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. 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 disclosure, 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 disclosure, 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.
[0082] 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.
[0083] 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.
[0084] The aforementioned computer-readable medium carries one or more programs, which, when executed by the computing device, cause the computing device to perform the aforementioned object detection method.
[0085] The computing device can be programmed with computer program code in one or more programming languages or a combination thereof to perform the operations of this disclosure. These programming languages include, but are 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 can 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 can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0086] 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 disclosure. 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.
[0087] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0088] 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.
[0089] In the context of this disclosure, 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. A machine-readable medium 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0090] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure 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 disclosed in this disclosure that have similar functions.
[0091] 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. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. 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.
[0092] 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. An object detection method, characterized in that, The method includes: The surface to be measured is determined on a preset model of the workpiece to be measured, and an auxiliary plane is determined by combining the surface to be measured and a preset distance, and a simulated inspection fixture is constructed on the auxiliary plane; The feeler gauge direction is determined based on the constraint plane of the preset model, and a simulated feeler gauge is constructed according to the feeler gauge direction; A test point is determined on the surface to be tested, and the gap thickness from the test point to the simulated gauge is measured using the simulated feeler gauge; the test point includes a cutting edge point or a binding edge point, and the gap thickness is used to determine the deviation of the test point.
2. The object detection method according to claim 1, characterized in that, The step of determining the auxiliary plane by combining the plane to be measured and the preset distance includes: By combining the surface to be measured and the constraint plane, the position and normal of the target point on the surface to be measured are determined; Based on the position of the target point, the auxiliary plane is determined at the preset distance along the direction of the normal of the target point.
3. The object detection method according to claim 1, characterized in that, The step of determining the feeler gauge direction based on the constraint plane of the preset model and constructing a simulated feeler gauge according to the feeler gauge direction includes: The orientation information of the simulated feeler gauge is determined based on the constraint plane of the preset model; The size information of the simulated feeler gauge is determined based on a preset length and a preset width; The simulated feeler gauge is constructed by combining the orientation information and the size information of the simulated feeler gauge.
4. The object detection method according to claim 1, characterized in that, The method further includes: The deviation value of the test point is obtained by subtracting the preset distance from the gap thickness.
5. The object detection method according to claim 1, characterized in that, The first screen is displayed; Load the preset model of the workpiece to be tested in the first interface; Based on the user's first operation command, the surface to be tested is selected on the preset model; The simulated inspection tool is generated on the first interface based on the user's second operation command; Based on the user's third operation command, the constraint plane is selected on the preset model; The simulated feeler gauge is generated in the first interface based on the user's fourth operation command.
6. The object detection method according to claim 1, characterized in that, Presents a second interface; Based on the user's fifth operation command, a detection result report is presented on the second interface, and the detection result report includes the gap thickness.
7. An object detection device, characterized in that, The device includes: The first construction module is used to determine the surface to be measured on a preset model of the workpiece to be measured, determine an auxiliary plane by combining the surface to be measured and a preset distance, and construct a simulated inspection fixture on the auxiliary plane; The second construction module is used to determine the feeler gauge direction based on the constraint plane of the preset model, and to construct a simulated feeler gauge according to the feeler gauge direction; The measurement module is used to determine the test point on the test surface and to measure the gap thickness from the test point to the simulated gauge using the simulated feeler gauge; the test point includes a cutting edge point or a binding edge point, and the gap thickness is used to determine the deviation of the test point.
8. The object detection device according to claim 7, characterized in that, The first building module includes: The first determining unit is used to determine the position and normal of the target point on the surface to be measured by combining the surface to be measured and the constraint plane. The second determining unit is used to determine the auxiliary plane at the preset distance based on the position of the target point and along the direction of the normal of the target point.
9. A computing device, characterized in that, The computing device includes: 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 object detection method as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the object detection method according to any one of claims 1 to 6.