A method for detecting the height and length of the cutter mark of a flat web
Through point cloud data processing technology, the height and length of the cutter marks on the web surface are automatically identified and calculated, which solves the problem of difficulty in detection in the existing technology, enables precise planning of the robot grinding path, and improves the surface quality of aircraft parts.
Patent Information
- Application Number
- CN202410663956.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-27
AI Technical Summary
The existing technology is difficult to automatically detect and identify the height, length and direction of the knife marks on the web surface of metal parts, which makes it difficult for the robot to polish the intensity and path planning, affecting the safety of aircraft flight.
By obtaining the web surface point cloud data, filtering, calculating the main direction, dividing the unit grid, calculating the flatness, and using the least squares method to identify the height and length of the cutter mark, automatic detection is achieved.
It provides a method to automatically identify the height and length of cutter marks, provides data basis for robot grinding strategies and path planning, improves detection accuracy and efficiency, and ensures the surface finish of aircraft parts.
Smart Images

Figure CN118247332B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of intelligent manufacturing, and specifically relates to a method for detecting the height and length of a plane web joint cutter mark. Background Art
[0002] After CNC machining of metal parts, the surface finish is an important part of the part quality, especially for aviation structural parts. Macro defects such as the cutter marks on the belly surface of the parts can easily cause stress concentration, paint peeling, etc., threatening the flight safety of aircraft. The traditional treatment method requires bench grinding after CNC machining to eliminate the cutter marks on the belly surface, but the grinding operation has a harsh working environment and high labor intensity, which is extremely harmful to the health of the operator. Using robots to replace manual grinding of cutter marks can avoid harm to the human body, but how to detect the depth, length and direction of the cutter marks, so as to adjust the strength and trajectory of the robot grinding, is one of the key issues that need to be solved in robot grinding.
[0003] Image processing technology is one of the commonly used technologies to solve this type of problem. However, due to the high reflectivity of the metal parts surface and the small size of the cutter mark height, it is difficult to identify and measure the cutter mark using image processing technology. Line laser sensors can obtain high-precision morphology of the part surface and can easily calculate surface quality characterization quantities such as surface roughness and waviness. However, no relevant methods have been found for how to automatically identify and calculate the height and length of the cutter mark. The measurement range of equipment such as contact surface roughness meters and waviness meters is microscopic morphology, and cutter marks belong to macroscopic morphology, which is beyond the measurement range of the above instruments. In addition, contact surface roughness meters and waviness meters can only measure the height of the contour, but not the length of the contour.
[0004] Existing patents include invention patent ZL111168136B, "Method and system for segmenting knife marks on face milling surfaces based on high-definition measurement", which converts point cloud data into grayscale images and then uses image processing algorithms to identify knife marks. However, the basis of this method is that the milling surface needs to be segmented according to the tool path, which is difficult to apply when the tool path is unknown. Another example is invention patent ZL107909573B, "Method and device for detecting knife marks on the annular surface of a metal workpiece", which obtains an image of the machined surface, then unfolds it in a plane, and then obtains suspected knife marks by deriving the grayscale value, and confirms the suspected knife marks through statistical analysis. However, the image accuracy of the machined surface is often low due to reflective lighting, which affects the application effect of the method. Summary of the invention
[0005] In order to solve the problem of automated detection of web joint mark height and length, the present invention provides a method for detecting web joint mark height and length, which is used to quickly detect web joint mark height, joint mark direction and joint mark length, thereby providing data basis for subsequent formulation of robot grinding strategy.
[0006] In order to achieve the above-mentioned invention object, the technical solution provided by this application is as follows:
[0007] A method for detecting the height and length of a flat web joint cut mark comprises the following steps:
[0008] Step (1). Obtain the web surface point cloud data and initialize the threshold: input the height threshold and length threshold of the cutter mark to be detected;
[0009] Step (2) filtering the point cloud data;
[0010] Step (3) calculating the main direction of the web surface point cloud;
[0011] Step (4) dividing the unit grid according to the main direction;
[0012] Step (5) calculating the unit grid flatness;
[0013] Step (6) Identify the cutting mark on the web surface and calculate the height and length of the cutting mark.
[0014] Furthermore, step (1) is specifically as follows:
[0015] Get web surface point cloud data , enter the height threshold of the cutting mark to be detected With length threshold ; P1, P2…P n is the first point to the nth point in the point cloud.
[0016] Furthermore, step (2) is specifically as follows:
[0017] Gaussian filtering is performed on the point cloud data. The mean of the filtering function is 0 and the standard deviation is Meet the following requirements:
[0018]
[0019] In the formula, The average spacing of the profile micro-roughness, is the arithmetic mean deviation of the contour.
[0020] Furthermore, step (3) is specifically as follows:
[0021] The principal component analysis method is used to calculate the main directions of the point cloud, and the first main direction is set as the u-axis and the second main direction is set as the v-axis.
[0022] Furthermore, step (4) comprises the following steps:
[0023] S41: Calculate the minimum enclosing rectangle of point cloud P in the u and v directions. The side length of the enclosing rectangle in the u direction is , the side length of the enclosing rectangle in the v direction is ;
[0024] S42: Divide the enclosing rectangle into A rectangular grid of units, the side length of the unit grid in the u direction is , the side length in the v direction is , and the following conditions should be met:
[0025]
[0026] S43: Number the unit rectangles, and number the unit grid at any vertex of the enclosing rectangle as , and then number the unit grids in the u direction and v direction in sequence as .
[0027] Furthermore, step (5) is specifically as follows:
[0028] Use the least squares method to fit each grid plane and obtain the flatness of each unit grid. .
[0029] Furthermore, step (6) is specifically as follows:
[0030] S61: Initialize the list A to be analyzed, add all unit grids to the list to be analyzed; initialize the cutter mark list B, the state is empty;
[0031] S62: Initialize the following temporary data storage: the unit grid C currently being processed, the height of the cutting mark =0, the number of cells that the cut marks span =0, direction of the knife mark entrance =(0,0), direction of exit of cutter mark =(0,0), length of cutting mark =0;
[0032] S63: Take the unit grid with the smallest number in the list A to be analyzed as C, and read the flatness of the grid ,like < , then there is no cut mark in the grid, C is deleted from the list A to be analyzed, and S69 is executed; otherwise, S64 is executed;
[0033] S64: Order = , =1, =(0,0), delete C from the list A to be analyzed;
[0034] S65: Read the cell grid with the smallest number in the first-order neighborhood of C If the flatness of Flatness < , then there is no cut mark in the grid, and it is deleted from the list A to be analyzed , go to step S67, otherwise, execute S66;
[0035] S66: Update the temporary data storage, = + , = +1, =(x1-x,y1-y), , are the components of the direction vector of the cutting mark in the u and v directions respectively, =(x1-x,y1-y), C= , delete from the list A to be analyzed , execute S67; It refers to the cell with the smallest number in the first-order neighborhood of C, x1 is the number of the cell with the smallest number in the first-order neighborhood in the u direction, and y1 is the number of the cell with the smallest number in the first-order neighborhood in the v direction;
[0036] S67: If the first-order neighborhood unit grid of C is not empty, execute S65, otherwise, execute S68;
[0037] S68: Update the cutting mark height = / , =(0,0), ,Will Store the cutter mark list B and execute S69;
[0038] S69: If the list A to be analyzed is not empty, execute S62; otherwise, end.
[0039] Furthermore, the unit mesh in the first-order neighborhood of C in S65 is a unit mesh that has a common edge or a common vertex with C.
[0040] The beneficial effects of the present invention are:
[0041] 1. This method provides a method for detecting the height and length of the flat web joint mark, which can automatically identify the joint mark and calculate the height of the joint mark through the web point cloud data, providing a basis for setting the robot grinding force; it can automatically identify the direction and length of the joint mark, providing a basis for planning the robot grinding path.
[0042] 2. This method not only obtains the height of the tool mark, but also measures the length, position, and trend of the tool mark greater than this height. It can plan the robot's grinding path according to this trend and guide the robot to grind. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The overall flow chart of this method is shown in FIG.
[0044] Figure 2 This is a schematic diagram of the web surface measurement data.
[0045] Figure 3 A bounding rectangle for the measurement data.
[0046] Figure 4 Schematic diagram of unit grid division.
[0047] Figure 5 This is the flow chart of knife mark recognition.
[0048] Figure 6 Schematic diagram of the knife mark recognition process. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is to explain the present invention rather than to limit the present invention. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0050] The specific implementation method of the present invention is described below with reference to the accompanying drawings and examples, but the present invention is not limited to this embodiment.
[0051] Example 1
[0052] like Figure 1 As shown, a method for detecting the height and length of a flat web joint cut mark comprises the following steps:
[0053] Step (1). Obtain the web surface point cloud data and initialize the threshold: input the height threshold and length threshold of the cutter mark to be detected;
[0054] Step (2) filtering the point cloud data;
[0055] Step (3) calculating the main direction of the web surface point cloud;
[0056] Step (4) dividing the unit grid according to the main direction;
[0057] Step (5) calculating the unit grid flatness;
[0058] Step (6) Identify the cutting mark on the web surface and calculate the height and length of the cutting mark.
[0059] Furthermore, step (1) is specifically as follows:
[0060] Get web surface point cloud data , enter the height threshold of the cutting mark to be detected With length threshold ; P1, P2…P n is the first point to the nth point in the point cloud.
[0061] Furthermore, step (2) is specifically as follows:
[0062] Gaussian filtering is performed on the point cloud data. The mean of the filtering function is 0 and the standard deviation is Meet the following requirements:
[0063]
[0064] In the formula, The average spacing of the profile micro-roughness, is the arithmetic mean deviation of the contour.
[0065] Furthermore, step (3) is specifically as follows:
[0066] The principal component analysis method is used to calculate the main directions of the point cloud, and the first main direction is set as the u-axis and the second main direction is set as the v-axis.
[0067] Furthermore, step (4) comprises the following steps:
[0068] S41: Calculate the minimum enclosing rectangle of point cloud P in the u and v directions. The side length of the enclosing rectangle in the u direction is , the side length of the enclosing rectangle in the v direction is ;
[0069] S42: Divide the enclosing rectangle into A rectangular grid of units, the side length of the unit grid in the u direction is , the side length in the v direction is , and the following conditions should be met:
[0070]
[0071] S43: Number the unit rectangles, and number the unit grid at any vertex of the enclosing rectangle as , and then number the unit grids in the u direction and v direction in sequence as .
[0072] Furthermore, step (5) is specifically as follows:
[0073] Use the least squares method to fit each grid plane and obtain the flatness of each unit grid. .
[0074] Furthermore, step (6) is specifically as follows:
[0075] S61: Initialize the list A to be analyzed, add all unit grids to the list to be analyzed; initialize the cutter mark list B, the state is empty;
[0076] S62: Initialize the following temporary data storage: the unit grid C currently being processed, the height of the cutting mark =0, the number of cells that the cut marks span =0, direction of the knife mark entrance =(0,0), direction of exit of cutter mark =(0,0), length of cutting mark =0;
[0077] S63: Take the unit mesh with the smallest number (the smallest y number under the premise of the smallest x number) in the list A to be analyzed as C, and read the flatness of the mesh ,like < , then there is no cut mark in the grid, C is deleted from the list A to be analyzed, and S69 is executed; otherwise, S64 is executed;
[0078] S64: Order = , =1, =(0,0), delete C from the list A to be analyzed;
[0079] S65: Read the cell grid with the smallest number in the first-order neighborhood of C (the smallest number in y under the premise of the smallest number in x) If the flatness of Flatness < , then there is no cut mark in the grid, and it is deleted from the list A to be analyzed , go to step S67, otherwise, execute S66;
[0080] S66: Update the temporary data storage, = + , = +1, =(x1-x,y1-y), , are the components of the direction vector of the cutting mark in the u and v directions respectively, =(x1-x,y1-y), C= , delete from the list A to be analyzed , execute S67;
[0081] S67: If the first-order neighborhood unit grid of C is not empty, execute S65, otherwise, execute S68;
[0082] S68: Update the cutting mark height = / , =(0,0), ,Will Store the cutter mark list B and execute S69;
[0083] S69: If the list A to be analyzed is not empty, execute S62; otherwise, end.
[0084] The unit mesh in the first-order neighborhood of C in S65 is a unit mesh that has a common edge or a common vertex with C.
[0085] This method provides a method for detecting the height and length of the flat web joint marks, which can automatically identify the joint marks and calculate the height of the joint marks through the web point cloud data, providing a basis for setting the robot grinding force; it can automatically identify the direction and length of the joint marks, providing a basis for planning the robot grinding path. This method not only obtains the height of the joint marks, but also measures the length, position, and trend of the joint marks greater than this height, and can complete the planning of the robot grinding path according to this trend to guide the robot grinding.
[0086] Example 2
[0087] The web surface in this embodiment is as follows Figure 2 As shown, the web surface is rectangular, and the web point cloud is evenly distributed. After measurement, the surface roughness of the web surface is =0.006mm, =0.01mm:
[0088] (1) Obtain the web surface point cloud data P and input the height threshold of the cutter mark to be detected. =0.05mm and length threshold =5mm;
[0089] (2) Perform Gaussian filtering on the point cloud data. The mean of the filter function is 0 and the standard deviation is Requirements to be met: ,Pick =1.
[0090] (3) The principal direction of the point cloud is calculated using the principal component analysis method. After calculation, the first principal direction (u-axis) is the long side of the web surface, and the second principal direction (v-axis) is the short side of the web surface.
[0091] (4) Divide the unit grid according to the main direction, which mainly includes the following steps:
[0092] S31: In the u and v directions, the minimum enclosing rectangle of the point cloud P is calculated. The relationship between the u axis, the v axis, the minimum enclosing rectangle and the web point cloud is as follows: Figure 3 As shown, the side length of the enclosing rectangle is =18mm, the side length in the v direction is =12mm;
[0093] S32: Take the side length of the unit grid in the direction =3mm, side length in v direction =3mm, satisfying ,but =6, =4.
[0094] S33: Number the unit rectangles, and number the unit grid at the lower left vertex of the enclosing rectangle as , the unit grid numbering is as follows Figure 4 .
[0095] (5) Use the least squares method to fit each grid plane and obtain the unit grid The flatness of the grid (x, y are the numbers of the unit grid in the u and v directions respectively).
[0096] (6) Figure 5 and Figure 6 As shown, follow the steps below to identify the cutter mark on the web surface and calculate the cutter mark height and length:
[0097] S61: Initialize the list A to be analyzed, add all unit grids to the list to be analyzed, and initialize the cutter mark list B, which is empty;
[0098] S62: Initialize the following temporary data storage: cutting mark height =0, the number of cells that the cut marks span =0, direction of the knife mark entrance =(0,0), direction of exit of cutter mark =(0,0), length of cutting mark =0;
[0099] S63: , ;
[0100] S64: Order =0.51mm, =1, =(0,0), delete from the list A to be analyzed ;
[0101] S65: Read The cell grid with the smallest number in the first-order neighborhood (the smallest y number under the premise of the smallest x number) Flatness ;
[0102] S66: , ( are the components of the direction vector of the cutting mark in the u and v directions respectively), , =(0,-1), , delete from the list A to be analyzed ;
[0103] S67: In the first-order neighborhood cell grid, Flatness , delete from A ;
[0104] S68: In the first-order neighborhood cell grid, Flatness< , delete from A ;
[0105] S69: In the first-order neighborhood cell grid, Flatness ;
[0106] S610: =0.98+ =1.47mm, =3, =(1,0), , , =(-1,0), , delete from the list A to be analyzed ;
[0107] S611: In the first-order neighborhood cell grid, Flatness ;
[0108] S612: =1.47+ =2mm, =4, =(0,1), , , =(0,-1), , delete from the list A to be analyzed ;
[0109] S613: In the first-order neighborhood cell grid, Flatness , delete from A ;
[0110] S614~S618: Delete from A in sequence First-order neighborhood cell grid ;
[0111] S619: The first-order neighborhood cell grid of is empty, =2 / 4=0.5mm, =(0,0), , The knife mark recognition is completed. The knife mark height is about 0.5mm and the knife mark length is about 7.24mm. Store in the cut mark list B;
[0112] S620: If the unit grid in A is not empty, return to S62 to identify whether the remaining unit grids have cutting marks.
[0113] S621: After identification, no other knife marks were found.
[0114] S622: The unit grid in A is empty, end, and output a piece of tool mark information.
Claims
1. A method for detecting the height and length of the cut marks on the flat web. It is characterized in that The following steps are involved: Step (1) Obtain the web surface point cloud data and initialize the threshold: input the height threshold and length threshold of the cutter mark to be detected; Step (2) filtering the point cloud data; Step (3) calculating the main direction of the web surface point cloud; Step (4) dividing the unit grid according to the main direction; Step (5) calculating the unit grid flatness; Step (6) identifying the cutting mark in the web surface and calculating the height and length of the cutting mark; Step (6) is as follows: S61: Initialize the list A to be analyzed, add all unit grids to the list to be analyzed; initialize the cutter mark list B, the state is empty; S62: Initialize the following temporary data storage: the unit grid C currently being processed, the height of the cutting mark =0, the number of cells that the cut marks span =0, direction of the knife mark entrance =(0,0), direction of exit of cutter mark =(0,0), length of cutting mark =0; S63: Take the unit grid with the smallest number in the list A to be analyzed as C, and read the flatness of the grid ,like <Knife mark height threshold , then there is no cut mark in the grid, C is deleted from the list A to be analyzed, and S69 is executed; otherwise, S64 is executed; S64: Order = , =1, =(0,0), delete C from the list A to be analyzed; S65: Read the cell grid with the smallest number in the first-order neighborhood of C If the flatness of Flatness <Knife mark height threshold , then there is no cut mark in the grid, and it is deleted from the list A to be analyzed , go to step S67, otherwise, execute S66; S66: Update the temporary data storage, = + , = +1, =(x1-x,y1-y), , are the components of the direction vector of the cutting mark in the u and v directions respectively, =(x1-x,y1-y), C= , delete from the list A to be analyzed , execute S67; It refers to the cell with the smallest number in the first-order neighborhood of C, x1 is the number of the cell with the smallest number in the first-order neighborhood in the u direction, and y1 is the number of the cell with the smallest number in the first-order neighborhood in the v direction; S67: If the first-order neighborhood unit grid of C is not empty, execute S65, otherwise, execute S68; S68: Update the cutting mark height = / , =(0,0), ,Will Store the cutter mark list B and execute S69; S69: If the list A to be analyzed is not empty, execute S62; otherwise, end.
2. A method for detecting the height and length of a flat web joint cut mark according to claim 1, It is characterized in that Step (1) is as follows: Get web surface point cloud data , enter the height threshold of the cutting mark to be detected With length threshold ;P 1 , P 2 …P n is the first point to the nth point in the point cloud.
3. A method for detecting the height and length of a flat web joint cut mark according to claim 2, It is characterized in that Step (2) is as follows: Gaussian filtering is performed on the point cloud data. The mean of the filtering function is 0 and the standard deviation is Meet the following requirements: ; In the formula, The average spacing of the profile micro-roughness, is the arithmetic mean deviation of the contour.
4. A method for detecting the height and length of a flat web joint cut mark according to claim 3, It is characterized in that Step (3) is as follows: The principal component analysis method is used to calculate the main directions of the point cloud, and the first main direction is set as the u-axis and the second main direction is set as the v-axis.
5. A method for detecting the height and length of a flat web joint cut mark according to claim 4, It is characterized in that Step (4) includes the following steps: S41: Calculate the minimum enclosing rectangle of point cloud P in the u and v directions. The side length of the enclosing rectangle in the u direction is , the side length of the enclosing rectangle in the v direction is ; S42: Divide the enclosing rectangle into A rectangular grid of units, the side length of the unit grid in the u direction is , the side length in the v direction is , and the following conditions should be met: ; S43: Number the unit rectangles, and number the unit grid at any vertex of the enclosing rectangle as , and then number the unit grids in the u direction and v direction in sequence as .
6. A method for detecting the height and length of a flat web joint cut mark according to claim 5, It is characterized in that Step (5) is as follows: Use the least squares method to fit each grid plane and obtain the flatness of each unit grid. .
7. A method for detecting the height and length of a flat web joint cut mark according to claim 6, It is characterized in that The unit mesh in the first-order neighborhood of C in S65 is a unit mesh that has a common edge or a common vertex with C.
