Method for detecting drilling quality of workpiece, drilling device, and storage medium

CN120588019BActive Publication Date: 2026-08-18东莞市微振科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510713920.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2026-08-18
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

但是这种采用人工方式的检测效率低,漏检率大

Benefits of technology

[0007] The drilling quality inspection method, drilling apparatus, and storage medium for processed parts according to embodiments of this application have at least the following beneficial effects: By ensuring that the measuring tool and the machining tool have the same tool length after the target part is machined, it can be ensured that the captured target image data matches the actual drilled holes. At this time, the movement of the measuring tool holder is controlled by the target tool path to ensure that each drill hole is captured. Therefore, the drilling quality data determined based on the target image data can more realistically reflect the drilling situation on the target part and the quality of the drilled holes. This allows for fully automated drilling inspection of the target part. Compared with related technologies, embodiments of this application can efficiently inspect the hole processing quality of parts with a large number of micro-hole processing requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120588019B_ABST
    Figure CN120588019B_ABST
Patent Text Reader

Abstract

The application provides a drilling quality detection method and device for a workpiece and a storage medium, and belongs to the technical field of automatic control. The method comprises the following steps: after the target part is processed, the measuring tool handle is controlled to move to a preset height position, so that the length of the measuring tool is the same as that of the processing tool, the length of the measuring tool represents the vertical distance from the focusing point of the camera module of the measuring tool to the machine tool spindle reference surface; the measuring tool handle is controlled to pass through each discrete center point of the target tool path at the height position in sequence, so that the focusing point of the camera module is coincided with each discrete center point to form an overlapping field of view covering all expected drillings of the target part at the height position; the camera module is controlled to shoot the target part at each discrete center point to obtain target image data; and drilling quality data corresponding to the target image data is output. The embodiment of the application can realize efficient detection of the hole processing quality of a part with a large number of micro-hole processing requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to, but is not limited to, the field of automation control technology, and in particular to a method for detecting the drilling quality of a workpiece, a drilling processing device, and a storage medium. Background Technology

[0002] The manufacturing of precision components such as titanium alloy mobile phone cases and semiconductor sensors involves numerous micro-drilling processes, primarily completed using precision micro-drilling equipment (e.g., CNC machine tools). However, due to the small diameter of the cutting tools (e.g., tool diameter d < 0.5 mm) and the large quantity processed (often requiring over 1000 drilled holes for a single part), the tools are prone to wear after repeated processing. If worn parts are not detected and processed in time, the drilling quality will fail to meet requirements. Therefore, drilling quality inspection is necessary to reduce the probability of defective parts being rejected. In related technologies, drilling quality inspection typically involves three steps: the entire drilling process is completed, the spindle exits the processing area, and each hole is carefully inspected manually. However, this manual inspection method is inefficient and has a high rate of missed detections. Summary of the Invention

[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a method, drilling apparatus, and storage medium for inspecting the drilling quality of machined parts, which can efficiently inspect the drilling quality of parts with a large number of micro-hole machining needs.

[0004] In a first aspect, embodiments of this application provide a method for detecting the drilling quality of a machined part, the method comprising: After the target part is machined by the machining tool, the measuring tool is controlled to move to a preset height position so that the measuring tool has the same length as the machining tool. The measuring tool includes a measuring tool holder and a camera module installed below the measuring tool holder. The length of the measuring tool represents the vertical distance from the focal point of the camera module to the reference plane of the machine tool spindle. Obtain the target tool path at the specified height position; the target tool path consists of at least one discrete center point; the heights of the discrete center points under the same target tool path are the same; The measuring tool holder is controlled to pass through each of the discrete center points in sequence, so that the superimposed field of view formed when the focal point of the camera module coincides with each of the discrete center points covers all the expected drilling holes of the target part at the same height position. The camera module is controlled to capture images of the target part at each of the discrete center points to obtain target image data; The drilling quality data of the target part is determined and output based on the target image data.

[0005] Secondly, embodiments of this application provide a drilling apparatus, including a drilling body, a measuring tool, and a control component, wherein: The drilling body is used for drilling the target part; The measuring tool includes a measuring handle and a camera module mounted below the measuring handle; the measuring handle is connected to the drilling body so that the measuring handle can be moved by the drilling body. The control unit is communicatively connected to both the camera module and the drilling body, and the control unit performs the drilling quality inspection method for the workpiece as described in any of the first aspects.

[0006] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a drilling quality inspection method for a workpiece as described in any of the first aspects.

[0007] The drilling quality inspection method, drilling apparatus, and storage medium for processed parts according to embodiments of this application have at least the following beneficial effects: By ensuring that the measuring tool and the machining tool have the same tool length after the target part is machined, it can be ensured that the captured target image data matches the actual drilled holes. At this time, the movement of the measuring tool holder is controlled by the target tool path to ensure that each drill hole is captured. Therefore, the drilling quality data determined based on the target image data can more realistically reflect the drilling situation on the target part and the quality of the drilled holes. This allows for fully automated drilling inspection of the target part. Compared with related technologies, embodiments of this application can efficiently inspect the hole processing quality of parts with a large number of micro-hole processing requirements. Attached Figure Description

[0008] Figure 1 This is a schematic flowchart of a drilling quality inspection method for a machined part provided in one embodiment of this application; Figure 2 This is a schematic diagram of a scenario of an embodiment of the drilling quality inspection method for a machined part provided in this application; Figure 3 This is a schematic diagram illustrating an application scenario of the drilling quality inspection method for a machined part provided in one embodiment of this application; Figure 4 This is a schematic diagram of the drilling apparatus provided in one embodiment of this application. Detailed Implementation

[0009] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0010] In the description of this application, "multiple" means two or more; "greater than," "less than," and "exceeding" are understood to exclude the stated number; "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0011] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.

[0012] The manufacturing of precision components such as titanium alloy mobile phone cases and semiconductor sensors involves a large number of micro-drilling processes, which are mainly completed using precision micro-drilling equipment (such as CNC machine tools). However, due to the small diameter of the cutting tools (e.g., tool diameter d < 0.5 mm) and the large number of parts processed (often more than 1000 holes for a single part), the tools are prone to wear after repeated processing. If worn parts are not detected and processed in time, the drilling quality of the workpieces will not meet the requirements. Therefore, it is necessary to inspect the drilling quality to reduce the probability of defective parts being processed. In related technologies, the inspection of drilling quality usually includes the following three steps: the entire drilling process is completed, the spindle exits the processing area, and each hole is carefully inspected manually. However, this manual inspection method is inefficient and has a high rate of missed detections. Based on this, the embodiments of this application provide a method, drilling device, and storage medium for inspecting the drilling quality of processed parts, which can efficiently inspect the drilling quality of parts with a large number of micro-hole processing requirements.

[0013] Understandably, referring to Figure 1 As shown, a drilling quality inspection method for a machined part according to an embodiment of this application includes: Step S100: After the target part is machined by the machining tool, the measuring tool is controlled to move to a preset height position so that the measuring tool and the machining tool have the same tool length. The measuring tool includes a measuring tool holder and a camera module installed below the measuring tool holder. The tool length of the measuring tool represents the vertical distance from the focal point of the camera module to the reference plane of the machine tool spindle. Step S200: Obtain the target tool path at the height position; the target tool path consists of at least one discrete circle center point; the height of each discrete circle center point under the same target tool path is the same; Step S300: Control the measuring tool holder to pass through each discrete center point in sequence, so that the superimposed field of view formed when the focus point of the camera module coincides with each discrete center point covers all the expected drilling holes of the target part at the same height position. Step S400: Control the camera module to capture images of the target part at each discrete center point to obtain target image data; Step S500: Determine and output the drilling quality data of the target part based on the target image data.

[0014] Therefore, by ensuring that the measuring tool and the machining tool have the same tool length after the target part is machined, it can be ensured that the captured target image data matches the actual drilled holes. At this point, the movement of the measuring tool holder is controlled by the target tool path to ensure that each drill hole is captured. The drill quality data determined based on the target image data can then more accurately reflect the drilling status and quality of the drilled holes on the target part. This allows for fully automated inspection of drilled holes on the target part. The embodiments of this application enable efficient inspection of the hole machining quality of parts with a large number of micro-hole machining requirements.

[0015] The machining process of the target part includes at least milling holes. The machining tool is the tool used to drill holes in the target part.

[0016] This application embodiment does not limit the initial horizontal position of the measuring tool in step S100; those skilled in the art can selectively set it according to actual needs. For example, it can be fixed at a certain position, such as when the tool path is predetermined, using the start or end point of the tool path as the initial horizontal position.

[0017] Different height positions can have different target tool paths, which makes it easier for the measuring tool holder to move in a straight line based on the target tool path, making control simpler and more efficient.

[0018] This application does not limit how the target toolpath is set. Those skilled in the art can use other devices to simulate and calculate the target toolpath and then configure it. Alternatively, it can be calculated in real time, or the first target part of the same type can be calculated and saved, and subsequent target parts can use the saved target toolpath. Those skilled in the art can selectively set it according to actual needs.

[0019] The superimposed field of view is the visual region formed by superimposing the fields of view corresponding to each focal point. The expected drill hole is the hole to be drilled on the target part, which can be determined by drawings or a 3D model.

[0020] Discrete center points are the points that the camera module is expected to capture. In some embodiments, the target tool path also includes the direction of the discrete center points to determine the order in which each discrete center point arrives. In practical applications, the target tool path may only include discrete center points, with path planning performed in real time based on two adjacent discrete center points to ensure that each discrete center point is covered.

[0021] Each discrete center point can be captured at least once, such as multiple shots of the same location under different lighting conditions. Each time the camera module captures a shot, there is at least one expected drill hole within its field of view.

[0022] This application does not limit the type of camera module. For example, it can be set as a microscope (such as a wireless rechargeable microscope) or other cameras that meet the pixel requirements.

[0023] This application does not limit how the drilling quality data is ultimately determined from the target image data. For example, it can be determined using a neural network model, or by comparing images taken at the same location as a standard part, etc. Those skilled in the art can selectively set the parameters according to actual needs.

[0024] The blade length of the camera module can be determined through the following steps: 1) Place a standard block of known height (such as a 100mm gauge block) on the workbench.

[0025] 2) Manually move the camera handle so that the focus position of the handle is on the upper surface of the standard block.

[0026] 3) Record the current Z-axis mechanical coordinate value in the CNC system (e.g., Z=-200.0).

[0027] 4) Calculate the tool length: Tool length = Current Z coordinate - Standard block height (e.g. -200.0 - 100 = -300.0mm).

[0028] 5) Input this value into the tool length compensation table. During control, the measuring tool can be moved using the tool length compensation table to make its length the same as the machining tool.

[0029] For example, using a small, wirelessly rechargeable microscope that can be remotely connected to a computer, the height of the top surface of each expected drill hole on the standard part can be obtained based on the original 3D model of the drill hole corresponding to the target part. By setting the "tool length" of the camera module, and with the spindle speed at 0, the camera module is used to create a circle (the center of the circle is the focal point) based on the field of view at the focal point, ensuring that the drilling positions of all expected drill holes are captured during the movement of the camera module. After all drill holes are quickly captured, the machine vision program compares the ideal hole position with the hole morphology in the actual photograph to quickly detect the integrity of the hole processing quality, achieving efficient inspection of the quality of micro-hole processing. The method of this application embodiment can replace human intervention in the inspection of hole processing quality for parts with a large number of micro-hole processing needs at low cost and high efficiency.

[0030] Understandably, obtaining the target toolpath at the height position includes: Obtain the part model parameters of the target part; Search for the toolpath that matches the part model parameters from the preset storage path; If a matching toolpath exists, the matching toolpath will be used as the target toolpath. When no matching toolpath exists, the target toolpath is determined by the field of view of the camera module.

[0031] By acquiring the part model parameters of the target part in real time, automated drilling quality inspection of various types of parts can be achieved in the same processing device.

[0032] Different field-of-view sizes cover different areas. For example, in this embodiment, the movement step can be determined by the field-of-view size so that the moving camera module's field of view can cover the entire expected borehole. In other embodiments, an algorithm can be used to perform path planning based on the expected borehole location and the field-of-view size. Those skilled in the art can selectively configure these settings according to actual needs.

[0033] For example, refer to Figure 2As shown, assuming parts A1 to AN are processed and inspected sequentially on the same production line, where A1 to AM belong to type 1, AM+1 to AK belong to type 2, and AK+1 to AN belong to type 3, after A1 to AN are processed, the toolpath corresponding to type 1 needs to be obtained. After AM+1 to AK are processed, the toolpath corresponding to type 2 needs to be obtained so that when AM+1 to AK are processed, the target image data can be acquired using the toolpath corresponding to type 2. Similarly, for AK+1 to AN, the target image data is acquired using the toolpath corresponding to type 3. For A1, if no matching toolpath exists, it can be generated in real time. For A2, since it is of the same type as A1 and A1 already has a toolpath, A2 can directly use the same toolpath for inspection.

[0034] The embodiments of this application do not limit the specific content of the part model parameter. It can be a model number, a product identifier, a batch number, or other identifiers that can be used to identify whether multiple parts are of the same type.

[0035] Understandably, the steps involved in determining the target toolpath using the camera module's field of view include: Obtain the machining model data of the standard part corresponding to the target part; Based on the standard part machining model data, determine the drilling position information of each expected hole at the height position; Based on the field of view of the camera module and the borehole location information, at least one expected focus position is determined, wherein the superimposed field of view corresponding to at least one expected focus position covers each expected borehole; The target tool path is formed by using each expected focus position as a discrete center point.

[0036] The standard part machining model data refers to the machining model data of the standard part corresponding to the target part. This machining model data can be drawings, 3D models, etc., and can be selectively set by those skilled in the art according to actual needs. The standard part is a workpiece of the same type as the target part that is expected to be machined into.

[0037] The expected focus position is the location of the focal point when the camera module takes a picture.

[0038] The superimposed field of view represents the area covered by the field of view constructed with each expected focus position as the focal point. If there are multiple expected focus positions, namely Loc1, Loc2, and Loc3, then the total area covered by the field of view corresponding to Loc1, Loc2, and Loc3 is the superimposed field of view.

[0039] Understandably, based on the camera module's field of view and drilling location information, at least one expected focus position is determined, including: The field of view and drilling position information of the camera module are input into a preset greedy algorithm model or heuristic algorithm model to obtain at least one expected focus position.

[0040] This application does not restrict how the greedy algorithm model or the heuristic algorithm model is specifically operated. By setting the corresponding constraint model, the outer contour of the standard part corresponding to the target part and the expected drilling position are used as input parameters to select the superimposed field of view that can cover all expected drilling positions corresponding to at least one expected focus position.

[0041] Understandably, the constraints of greedy and heuristic algorithm models include at least one of the following: the total number of expected focus positions, the total length of the trajectory path, and the runtime.

[0042] The expected total number of focus positions limits the number of discrete center points used for imaging within the toolpath. The total length of the path limits the travel distance of the toolpath, and the runtime limits its efficiency.

[0043] In some embodiments, when the volume of the target part is larger than a preset value, or when its contour and drilling position result in a long linear tool travel time, the runtime can be constrained by the expected performance. In other embodiments, the total number of expected focal positions can be constrained by the expected number of focal points, thereby minimizing the number of expected focal positions. In still other embodiments, a corresponding algorithm can be used to construct constraints in each iteration by comparing the total length of the shortest trajectory path formed by generating the expected focal positions with the expected path length. This application does not limit the scope of these constraints, and those skilled in the art can selectively set one or more combinations according to actual needs.

[0044] Understandably, before controlling the measuring tool to move to the preset height position, the method also includes: Obtain the expected drilling location data corresponding to the target part; Determine the height of each expected borehole in the expected borehole location data, and classify expected boreholes at the same height into the same category to obtain a set of expected boreholes of at least one category; The vertical height of each expected borehole set is taken as the height position.

[0045] The expected drilling location data are the drilling location parameters of the standard part corresponding to the target part, including but not limited to the expected drilling coordinates, number, depth, etc.

[0046] By dividing the path into sections at each height, it becomes possible to perform straight-line planning based on the horizontal plane when planning the toolpath, making path planning simpler and more efficient.

[0047] Understandably, multiple height positions are set, and the height of each discrete center point under the same target toolpath is the same. The method also includes: Determine the unmeasured height position from multiple height positions; Control the measuring tool holder to move to the initial horizontal position of the unmeasured height position.

[0048] The initial horizontal position at each height position can be the same or different. For example, in some embodiments, the tool path at different height positions corresponding to the target part is consistent. In this case, the starting point or ending point of the shortest path formed by the discrete center points of the tool path at the corresponding height position can be used as the initial horizontal position. In other embodiments, a position point can also be preset. This application does not limit this, and those skilled in the art can selectively set it according to actual needs.

[0049] Understandably, determining the drilling quality data of the target part based on the target image data includes: Obtain the standard image data corresponding to the target part; By comparing the standard image data and the target image data of the same discrete center point, the actual drilling quality indicators of each expected borehole can be obtained. Based on the actual quality indicators of each borehole, borehole quality data were obtained.

[0050] This application does not limit how images are compared. For example, they can be compared by pixels or by image features. Those skilled in the art can selectively set this method according to the complexity of the actual application scenario.

[0051] Standard image data can be a collection of images taken of a standard workpiece under the same toolpath. In other embodiments, target image data of a target part that meets quality requirements can also be selected as standard image data.

[0052] For example, taking machining by machine tools as an example, refer to Figure 3 As shown, the detection method of this application embodiment includes the following steps: S1.1 Determine the cutting length of the camera module. Taking the fixed focal length of the camera module as an example, the camera module is supported by a bracket, the height of the camera module is adjusted to achieve focusing of the workpiece in the camera module, the vertical distance between the lowest point of the camera module and the workpiece is measured, and this distance is determined as the cutting length for compensation.

[0053] S1.2 Determine the field of view diameter at the blade length, that is, the diameter of the visual circular area centered on the focal point.

[0054] S2.1 Obtain the geometric model of the standard workpiece corresponding to the target workpiece; the geometric model may be a 3D model data or a 2D drawing.

[0055] S2.2 Obtain the location coordinates of all expected boreholes from the ensemble model data; S2.3. Classify the boreholes according to their location coordinates to obtain multiple sets of expected boreholes at different heights, such as... Figure 3 As shown, all expected boreholes can be classified into three categories: height 1 borehole, height 2 borehole, and height 3 borehole.

[0056] S3. Based on the field of view diameter, select the number of circles with the smallest field of view diameter that cover all expected boreholes to obtain the set of circle centers for each different category. For example, such as... Figure 3 As shown, the center set 1 of the scattered circles corresponding to hole 1, the center set 2 of the scattered circles corresponding to hole 2, and the center set 3 of the scattered circles corresponding to hole 3 are generated; S4. Generate the tool path for each set of scattered element centers, such as... Figure 3 As shown, toolpath 1 corresponding to hole height 1, toolpath 2 corresponding to hole height 2, and toolpath 3 corresponding to hole height 3 are generated.

[0057] S5. Perform multi-hole micro-milling on the target part; S6. After the target part machining process is completed, call the measuring tool holder of the measuring tool and move it on the machine tool table at zero speed. S7. Starting from the lowest drilling height, take center-based images of each height position of the target part according to the corresponding tool path to obtain target image data. For example, starting from hole height 1, control the measuring tool holder to move through all discrete center points on the tool path using a simple linear tool path. At each discrete center point, pause for about 1 second to acquire and capture the image, and then move to the next discrete center point. After all the discrete center points at this height position have been reached, image set 1 is obtained. Then, automatically move up one height (i.e., reach the height position corresponding to hole height 2) and execute the same process to obtain image set 2 until the tool path corresponding to hole height 3 has been reached, resulting in image set 3.

[0058] S8. Compare the view with the standard image data. The specific steps are as follows: Compare each photo with the standard photo of the standard part to identify whether there is a "no hole" in the position where the hole should appear, or to determine whether the tool is broken.

[0059] The standard image data can be obtained by taking images of all the stopping positions (i.e., discrete points on the tool path) of the corresponding standard parts of the same type after determining the tool path based on the geometric model of the hole position of the part, and taking each photo as a standard photo.

[0060] Understandably, referring to Figure 4As shown, a drilling apparatus according to this application includes: Drilling body, used for drilling the target part; The measuring tool includes a measuring tool holder and a camera module mounted below the measuring tool holder; the measuring tool holder is connected to the drilling body so as to drive the measuring tool holder to move through the drilling body; The control unit is communicatively connected to both the camera module and the drilling body, and executes the aforementioned drilling quality inspection method for the processed parts.

[0061] This application does not limit what the drilling body is. If machine tool processing is used, then the drilling body is the machine tool body.

[0062] The drilling body includes a driving component that can drive the measuring tool holder. The measuring tool and the machining tool can share the same tool holder or be independent of each other. This application does not limit this, and those skilled in the art can selectively control it according to actual needs.

[0063] The control unit is a terminal component containing buttons or a display screen, which enables control of the drilling body.

[0064] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described drilling quality inspection method for the processed workpiece.

[0065] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate, and may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0066] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0067] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A method for inspecting the drilling quality of a machined part, characterized in that, The method includes: After the target part is machined by the machining tool, the measuring tool is controlled to move to a preset height position so that the measuring tool has the same length as the machining tool. The measuring tool includes a measuring tool holder and a camera module installed below the measuring tool holder. The length of the measuring tool represents the vertical distance from the focal point of the camera module to the reference plane of the machine tool spindle. Obtain the target tool path at the specified height position; the target tool path consists of at least one discrete center point; the heights of the discrete center points under the same target tool path are the same; The measuring tool holder is controlled to pass through each of the discrete center points in sequence, so that when the focal point of the camera module coincides with each of the discrete center points, the superimposed field of view formed covers all the expected drilling holes of the target part at the same height position; the superimposed field of view is the total area that the field of view corresponding to each focal point can cover. The camera module is controlled to capture images of the target part at each of the discrete center points to obtain target image data; The drilling quality data of the target part is determined based on the target image data and output. Determining the drilling quality data of the target part based on the target image data includes: Obtain the standard image data corresponding to the target part; By comparing the standard image data and the target image data at the same discrete center point, the actual drilling quality index of each expected borehole is obtained. The borehole quality data are obtained based on the actual quality indicators of each borehole.

2. The method for detecting the drilling quality of a machined part according to claim 1, characterized in that, The process of obtaining the target tool path at the height position includes: Obtain the part model parameters of the target part; Search for the tool path that matches the part model parameters from the preset storage path; When a matching toolpath exists, the matched toolpath is used as the target toolpath. When no matching tool path exists, the target tool path is determined by the field of view of the camera module.

3. The method for detecting the drilling quality of a machined part according to claim 1 or 2, characterized in that, The steps for determining the target tool path through the field of view of the camera module include: Obtain the standard part machining model data corresponding to the target part; Based on the standard part machining model data, determine the drilling position information of each expected hole at the height position; Based on the field of view of the camera module and the borehole location information, at least one expected focus position is determined, wherein the superimposed field of view corresponding to the at least one expected focus position covers each of the expected boreholes; The target tool path is formed by using each of the expected focus positions as discrete center points.

4. The drilling quality inspection method for machined parts according to claim 3, characterized in that, Determining at least one expected focus position based on the field of view of the camera module and the drilling position information includes: The field of view of the camera module and the drilling position information are input into a preset greedy algorithm model or heuristic algorithm model to obtain at least one expected focus position.

5. The method for detecting the drilling quality of a machined part according to claim 4, characterized in that, The constraints of the greedy algorithm model and the heuristic algorithm model include at least one of the following: the total number of expected focus positions, the total length of the trajectory path, and the runtime.

6. The method for detecting the drilling quality of a machined part according to claim 1, characterized in that, Before the controlled measuring tool moves to a preset height position, the method further includes: Obtain the expected drilling location data corresponding to the target part; Determine the height of each expected borehole in the expected borehole location data, and divide the expected boreholes at the same height into the same category to obtain at least one category of expected borehole set; The vertical height of each of the expected borehole sets is taken as the height position.

7. The method for detecting the drilling quality of a machined part according to claim 1, characterized in that, The height positions are set in multiple ways, and the method further includes: Determine the unmeasured height position from among the multiple height positions; Control the measuring tool holder to move to the initial horizontal position of the unmeasured height position.

8. A drilling apparatus, characterized in that, include: A drilling body, which is used for drilling the target part; A measuring tool, comprising a measuring handle and a camera module mounted below the measuring handle; the measuring handle is connected to the drilling body so as to drive the measuring handle to move through the drilling body; A control unit, which is communicatively connected to both the camera module and the drilling body, performs the drilling quality inspection method for the workpiece as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the drilling quality inspection method for a workpiece as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Detection method for pore size and pore size distribution of diaphragm

    CN104121859A

  • Film thickness measurement system and method

    CN107036539A