Method and system for rapid quality detection of die forgings based on machine vision

By analyzing the local structural regularity and completeness of the die forging point cloud data, adaptively adjusting the neighborhood size, and improving the cloth filtering algorithm, the problem of low defect detection accuracy in the traditional method is solved, and efficient quality control of the die forgings is achieved. detection.

CN118470009BActive Publication Date: 2024-09-06DALIAN JINRUIDE MASCH MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410924139.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-06
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

When processing die forging point cloud data, the traditional cloth filtering algorithm has a fixed size neighborhood window, which results in poor filtering effect and affects the accuracy of defect detection. It is especially difficult to effectively separate defective parts when dealing with complex surface structures and uneven point cloud distribution. and normal parts.

Method used

By analyzing the local structural regularity and point cloud integrity in the die forging point cloud data, combined with the curvature conditions, the neighborhood size is adaptively adjusted, and the adaptive cloth filtering algorithm is used for defect detection to ensure accurate capture of small cracks and noise filtering. .

Benefits of technology

It improves the accuracy and adaptability of quality inspection of die forgings, avoids missed inspections and misjudgments, and enhances the ability to detect small cracks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470009B
    Figure CN118470009B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and specifically to a method and system for rapid detection of die forging quality based on machine vision. The method first obtains die forging point cloud data of the die forging; performs regularity and integrity analysis on the points in the local space of each point in the die forging point cloud data to obtain comprehensive structural regularity; based on the comprehensive structural regularity, combined with the curvature of each point in the local space, adjusts the overall structural regularity to obtain neighborhood adjustment weights; through the neighborhood adjustment weights, the initial preset neighborhood radius is adaptively adjusted to obtain an adaptive neighborhood of each point; based on the adaptive neighborhood, the die forging point cloud data is subjected to defect detection through a cloth filtering algorithm. This method improves the accuracy and adaptability of the cloth filtering algorithm to die forging quality detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image processing, and in particular to a method and system for quickly detecting die forging quality based on machine vision. Background Art

[0002] Die forgings are usually used to manufacture parts that require high strength, high wear resistance and high precision, such as automotive engine parts, aerospace parts, engineering machinery parts, etc. In the fields of automobiles, aerospace, etc., die forgings bear important safety responsibilities. If there are quality problems with die forgings, it may cause part failure, resulting in serious safety accidents. And die forgings usually need to have specific physical and mechanical properties, such as tensile strength, hardness, toughness, etc. Through quality inspection, it can be ensured that the die forgings meet the design requirements, thereby ensuring their performance. With the continuous improvement of the level of industrial production automation, the demand and requirements for quality inspection of die forgings are also getting higher and higher.

[0003] At present, when performing quality inspection on die forgings, the depth map and point cloud data of the die forgings are generally obtained through binocular cameras and other technologies, and the defective parts and normal parts are separated by cloth filtering algorithms to achieve the quality inspection of the die forgings. However, due to the small cracks that may exist in the die forgings and the random positions of the small cracks, the traditional cloth filtering algorithm may cause problems such as missed detection and false detection during inspection. At the same time, since the cloth filtering algorithm itself is generally fixed when setting the neighborhood window size parameters, it will lead to the definition of a fixed size neighborhood window to process point cloud data. For complex surface structures and uneven point cloud distribution, it cannot provide the best filtering effect, which will affect the technical problem of the accuracy of defect detection of die forgings. Summary of the invention

[0004] In order to solve the technical problem that when a fixed-size neighborhood window is used to process point cloud data in a cloth filtering algorithm, the filtering effect is poor, which in turn affects the accuracy of defect detection of die forgings, the purpose of the present invention is to provide a method and system for rapid quality detection of die forgings based on machine vision. The technical solutions adopted are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for rapid quality detection of die forgings based on machine vision, the method comprising:

[0006] Acquire die forging point cloud data of the die forging;

[0007] Performing regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point;

[0008] Combining the actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetrical point, the local point cloud integrity of each point is obtained; based on the local point cloud integrity and the local structural regularity, the comprehensive structural regularity of each point is obtained;

[0009] Based on the comprehensive structural regularity, combined with the curvature of each point in the local space, the overall structural regularity is adjusted to obtain a neighborhood adjustment weight, wherein the overall structural regularity is obtained from the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data;

[0010] The initial preset neighborhood radius is adaptively adjusted by the neighborhood adjustment weight to obtain an adaptive neighborhood of each point; based on the adaptive neighborhood, defect detection is performed on the die forging point cloud data by a cloth filtering algorithm.

[0011] Furthermore, the regularity analysis of the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point includes:

[0012] Acquire the local space of each point in the die forging point cloud data;

[0013] Taking any point in the die forging point cloud data as the target point, the regularization adjustment coefficient of the target point is determined according to the position distribution between different point categories in the local space of the target point and points of the same point category;

[0014] Determine the initial structural regularity of the target point based on the difference in the number of points in different point categories in the local space of the target point;

[0015] For each point in the die forging point cloud data, the initial structural regularity is adjusted by the regularity adjustment coefficient to obtain the local structural regularity of each point.

[0016] Furthermore, determining the regularization adjustment coefficient of the target point according to the position distribution between different point categories and points of the same point category in the local space of the target point includes:

[0017] Take any point category as the target point category; compare the position distance between the points in the target point category corresponding to the target point and the overall distance between the points in all point categories to determine the category scatter of the target point category;

[0018] The overall scatter of the target point is determined by combining the category scatter of all point categories corresponding to the target point; and the overall scatter is anti-correlatedly mapped to obtain a regularization adjustment coefficient of the target point.

[0019] Furthermore, determining the initial structural regularity of the target point according to the difference in the number of points in different point categories in the local space of the target point includes:

[0020] Arrange the point categories corresponding to the target point in order of size to obtain a sequential point category sequence;

[0021] Compare the difference in the number of points in adjacent point categories in the sequential point category sequence to determine the category regularity; calculate the aggregation of all category regularities corresponding to the sequential point category sequence to determine the initial structural regularity of the target point.

[0022] Furthermore, the actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetric point is combined to obtain the local point cloud integrity of each point, including:

[0023] Take any point in the die forging point cloud data as the target point;

[0024] Obtaining a point to be analyzed in the local space of the target point and a spatially symmetrical point corresponding to the point to be analyzed; wherein each point to be analyzed corresponds to at least two spatially symmetrical points;

[0025] Obtain the overall distance difference between the point to be analyzed and all corresponding spatial symmetric points;

[0026] The completeness of the local point cloud of the target point is determined by comparing the distance between the point to be analyzed and each corresponding spatial symmetric point in the local space of the target point with the overall distance difference between the point to be analyzed and all corresponding spatial symmetric points.

[0027] Furthermore, the comprehensive structural regularity of each point is obtained according to the local point cloud completeness and the local structural regularity, including:

[0028] The local structural regularity is weightedly adjusted according to the local completeness to obtain the comprehensive structural regularity of each point.

[0029] Furthermore, based on the comprehensive structural regularity, combined with the curvature of each point in the local space, the overall structural regularity is adjusted to obtain the neighborhood adjustment weight, including:

[0030] Analyze the number and distribution of points in the local space of each point to obtain the distribution characteristic value of each point;

[0031] Get the curvature of each point, analyze the difference between the curvature of each point and the global curvature, and get the curvature eigenvalue;

[0032] Determine a curvature adjustment value by combining the distribution characteristic value and the curvature characteristic value;

[0033] The overall structural regularity is adjusted in combination with the curvature adjustment value to obtain a neighborhood adjustment weight.

[0034] Furthermore, the overall structural regularity is adjusted in combination with the curvature adjustment value to obtain a neighborhood adjustment weight, including:

[0035] The difference between the comprehensive structural regularity and the overall structural regularity is adjusted through the curvature adjustment value to obtain weighted integrity; the combination of the weighted integrity and the overall structural regularity is used as the neighborhood adjustment weight.

[0036] Furthermore, the defect detection of the die forging point cloud data is performed based on the adaptive neighborhood by using a cloth filtering algorithm, including:

[0037] The residual between each point in the die forging point cloud data and the local surface model fitted by the corresponding adaptive neighborhood is calculated; points greater than or equal to a preset residual threshold are regarded as abnormal defect points.

[0038] In a second aspect, a rapid quality detection system for die forgings based on machine vision is provided, the system comprising the following modules:

[0039] An acquisition module, used for acquiring die forging point cloud data of the die forging;

[0040] A first analysis module is used to perform regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point;

[0041] The second analysis module is used to obtain the local point cloud integrity of each point in the die forging point cloud data in combination with the actual distribution of the spatial symmetric point corresponding to each point; and obtain the comprehensive structural regularity of each point based on the local point cloud integrity and the local structural regularity;

[0042] A weight determination module is used to adjust the overall structural regularity based on the comprehensive structural regularity and the curvature of each point in the local space to obtain a neighborhood adjustment weight, wherein the overall structural regularity is obtained from the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data;

[0043] The defect detection module is used to adaptively adjust the initial preset neighborhood radius through the neighborhood adjustment weight to obtain the adaptive neighborhood of each point; based on the adaptive neighborhood, defect detection is performed on the die forging point cloud data through a cloth filtering algorithm.

[0044] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, various possible embodiments of the first aspect are implemented.

[0045] In a fourth aspect, an embodiment of the present invention provides a computer program product, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0046] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute various possible implementations of the first aspect.

[0047] The embodiments of the present invention have at least the following beneficial effects:

[0048] The embodiment of the present invention determines the possibility of the existence of small cracks by analyzing the structural regularity and integrity of the die forgings in the local space of each point of the die forging point cloud data; and by analyzing the distribution density and curvature of the point cloud data, comprehensively considering the influence of the density of the die forging point cloud data on the neighborhood size of each point, and adjusting the overall structural regularity of the internal die forgings in the local space of each point, and determining the neighborhood adjustment weight of each point, and realizing the self-adaptation of the neighborhood size of each point, which is mainly based on the structural characteristics of the die forging products, and adopts the adaptive improvement of the neighborhood size in the cloth filter algorithm, so that the improved cloth filter algorithm can better separate the defective part point cloud and the normal part point cloud; finally, by running the complete cloth filter algorithm, the defect detection is realized. Through this method, the local details of small cracks can be captured for the adaptation of the neighborhood size, avoiding the omission and misjudgment of small cracks under the traditional method, and improving the accuracy and adaptability of the cloth filter algorithm to the quality detection of die forgings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A method flow chart of a method for rapid quality detection of die forgings based on machine vision provided by an embodiment of the present invention;

[0051] Figure 2 A method flow chart of a method for obtaining local structural regularity provided by one embodiment of the present invention;

[0052] Figure 3 A method flow chart of a method for obtaining a regularization adjustment coefficient provided by an embodiment of the present invention;

[0053] Figure 4 A method flow chart of a method for obtaining initial structural regularity provided by one embodiment of the present invention;

[0054] Figure 5 A method flow chart of a method for obtaining the completeness of a local point cloud of each point provided by an embodiment of the present invention;

[0055] Figure 6 A method flow chart of a method for obtaining neighborhood adjustment weights provided by an embodiment of the present invention;

[0056] Figure 7 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following, in combination with the accompanying drawings and preferred embodiments, a method and system for rapid detection of die forging quality based on machine vision proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail as follows.

[0058] In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0059] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there may be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.

[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0061] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0062] The embodiments of the present invention are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0063] The specific scheme of a method and system for rapid quality detection of die forgings based on machine vision provided by the present invention is described in detail below with reference to the accompanying drawings.

[0064] See also Figure 1 , which shows a flowchart of a method for rapid quality detection of die forgings based on machine vision provided by an embodiment of the present invention, the method comprising the following steps:

[0065] Step S100, obtaining die forging point cloud data of the die forging.

[0066] The embodiment of the present invention adapts the local space of each point of the die forging in the material distribution filtering algorithm, thereby ensuring its smoothing effect while retaining details, making the algorithm more accurate in detecting small crack defects that randomly appear in the die forging, and improving the accuracy of die forging quality detection.

[0067] In view of the tiny cracks existing in the die forgings and their random positions, which may lead to missed detection and misjudgment during detection, the embodiment of the present invention pays attention to the tiny cracks, and at the same time considers the distribution density and surface curvature of the local area of ​​each point to adapt the neighborhood window size of each point, so as to retain the local details while maintaining the smoothing effect, thereby improving the final accuracy of the die forging quality detection.

[0068] First, the die forging to be inspected is photographed by a binocular camera to obtain the original image of the die forging.

[0069] In the embodiment of the present invention, the die forging to be inspected is photographed by a binocular camera because the binocular camera can provide images from different perspectives, which is helpful for subsequent stereoscopic vision processing.

[0070] In other embodiments of the present invention, multiple cameras may be installed at multiple angles to photograph the die forgings to be inspected, so as to obtain images from different perspectives.

[0071] The collected original image is preprocessed, such as a denoising filter operation, to remove noise from the collected original image of the die forging.

[0072] Finally, the preprocessed original image is processed using the Python programming language to obtain the depth map and point cloud information model of the die forging to be inspected for subsequent operations.

[0073] In other embodiments, the depth map and point cloud data of the die forging to be inspected may also be directly acquired by using a binocular depth camera.

[0074] Step S200, performing regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point.

[0075] When the traditional cloth filtering algorithm is used to detect die forgings, it is easy to miss detections, misdetections, etc. because the small crack defects that may exist in the die forgings are difficult to capture and their positions are random. Therefore, the above situation can be avoided by adjusting the neighborhood size of each point in the die forging point cloud data. This is because a neighborhood that is too small may ignore some small cracks, and a neighborhood that is too large may cause over-smoothing, making it impossible to detect cracks correctly. The embodiment of the present invention aims to achieve adaptive neighborhood size of each point in the die forging point cloud data, and ensure sufficient filtering of noise and irregularities while retaining sufficient local features. This can better capture the subtle features of the die forging surface, including possible small cracks, and at the same time improve the sensitivity and accuracy of detecting small cracks.

[0076] For the die forging itself, its structure is regular and relatively neat, which is different from the scattered distribution of small cracks. Therefore, when the neighborhood size of each point in the die forging point cloud data is adaptively adjusted, the higher the regularity, the larger the neighborhood size of the corresponding point should be adjusted to ensure the elimination of noise in the die forging point cloud data, making the data smoother and continuous; conversely, the smaller the corresponding neighborhood size should be adjusted to capture local detail features. At the same time, it is also necessary to consider the impact of local distribution density and curvature on neighborhood size.

[0077] In the embodiment of the present invention, steps S200 to S500 are used to implement adaptive adjustment of the neighborhood of each point in the die forging point cloud data.

[0078] In some embodiments, the regularity of the die forging in the local space of each point in the die forging point cloud data is analyzed to obtain the corresponding local structural regularity, that is, the above step S200 can be performed by Figure 2 The steps shown achieve:

[0079] Step S210, obtaining the local space of each point in the die forging point cloud data.

[0080] First, the local space of each point in the die forging point cloud data is determined. In the embodiment of the present invention, the local space of each point in the die forging point cloud data is constructed with a preset neighborhood radius as the radius of the local space and each point as the center point.

[0081] In the embodiment of the present invention, the value of the preset neighborhood radius can be set by the implementer according to the experience value or the actual situation.

[0082] Step S220, taking any point in the die forging point cloud data as a target point, and determining a regularization adjustment coefficient of the target point according to different point categories in the local space of the target point and the position distribution between points of the same point category.

[0083] The possibility of small cracks in the local space is analyzed through the local space of each point. Due to the regular structure of the die forging itself and the scattered distribution of small cracks, the distribution of points in the local space of normal die forgings has a certain continuity. If there are small cracks in the local space, the degree of the above characteristics is low. At the same time, it is also necessary to consider the completeness of the corresponding point cloud data obtained by the binocular camera. This means that when the resolution and sampling rate of the binocular camera, as well as factors such as ambient lighting and material reflectivity, may cause data acquisition to be missing somewhere, the point cloud density of the area with missing data may be low, which may lead to inaccurate evaluation of local structural regularity. Therefore, it is also necessary to analyze the relative completeness of the data for the local space and consider its impact on the local structural regularity.

[0084] In some possible implementations, the step of determining the regularization adjustment coefficient by analyzing the point category and position distribution in the local space of the point, that is, the above step S220 can be performed by Figure 3 The following steps S221 to S222 are implemented as shown:

[0085] Step S221, taking any point category as the target point category; comparing the position distance between points in the target point category corresponding to the target point and the overall distance between points in all point categories, to determine the category scatter of the target point category of the target point.

[0086] For a target point, the distance between each point in the local space of the target point and the target point is calculated, and the distances are arranged in ascending order, and the points with the same distance are classified into the same category, so as to obtain multiple point categories based on the target point. It should be noted that the distance between each point in the local space of the target point and the target point is the Euclidean distance, and other distances can also be used in other embodiments. The distance reflects the position distribution of each point in the local space of the target point and the target point.

[0087] For a point in the target point category corresponding to a target point, the point in the target point category closest to the point is taken as the neighboring point of the point, and the distance between the point and the neighboring point is taken as the position distance of the point. For example, for point a in the target point category corresponding to a target point, point a1 in the target point category closest to point a is taken as the neighboring point of point a, and the distance between point a and point a1 is taken as the position distance of a.

[0088] Furthermore, the overall distance between points in all point categories corresponding to the target point is determined.

[0089] In the embodiment of the present invention, the overall distance may be the mean of the position distances of the points in all point categories corresponding to the target point, because the mean can better reflect the overall situation of a set of data.

[0090] In other embodiments of the invention, the overall distance may also be the mode of the position distances of points within all point categories corresponding to the target point, because the mode can also reflect the central tendency of a set of data.

[0091] Compare the position distance between the points in the target point category corresponding to the target point and the overall distance between the points in all point categories. When the position distance is closer to the overall distance, the ratio of the corresponding position distance to the overall distance is closer to 1. Therefore, the average of the difference between the ratio of the position distance to the overall distance of all points in the target point category corresponding to the target point and the constant 1 is calculated as the category scatter. When the category scatter is larger, the difference between the corresponding position distance and the overall distance is larger.

[0092] Step S222, combining the category scatter of all point categories corresponding to the target point to determine the overall scatter of the target point; performing anti-correlation mapping on the overall scatter to obtain a regularization adjustment coefficient of the target point.

[0093] The regularity adjustment coefficient of the target point is used to analyze the local structural regularity of the die forging from a local perspective; in each point category, the point distribution representing the center point based on the current distance is the continuity of the focus point, and the position distance of the adjacent point is compared with the overall distance of the points in the current point category. The closer the ratio is to 1, the higher the continuity of the points in the current point category, that is, the smaller the possibility of the existence of small cracks; the regularity adjustment coefficient of the die forging analyzed from a local perspective is comprehensively determined by accumulating the point continuity performance of each point category.

[0094] The overall situation of the category scatter of all point categories corresponding to the target point is analyzed to determine the overall scatter corresponding to the target point. In one embodiment of the present invention, the overall scatter may be the average of the category scatter of all point categories corresponding to the target point.

[0095] In another embodiment of the invention, the overall scatter may also be the mode of the category scatter of all point categories corresponding to the target point.

[0096] In other embodiments of the invention, the overall scatter may also be the median of the category scatter of all point categories corresponding to the target point.

[0097] The overall scatter is inversely normalized, and the result value after inversely normalized is used as the regularization adjustment coefficient.

[0098] In the embodiment of the present invention, the inverse proportional normalization of the overall scatter can be achieved by using an exponential function with a natural constant as the base and a negative overall scatter as the exponent.

[0099] In other embodiments of the invention, the overall scatter may be firstly negatively correlated and then normalized. The negative correlation mapping may be performed by taking the inverse and taking the negative number.

[0100] In an optional embodiment of the present invention, taking the i-th point in the die forging point cloud data as the target point as an example, the calculation formula of the regularization adjustment coefficient of the target point is: ;in, is the regularization adjustment coefficient of the i-th point; norm is the normalization function; N is the number of point categories in the local space of the i-th point; is the number of points in the nth point category in the local space of the i-th point; is the distance between the sth point in the nth point category in the local space of the ith point and the adjacent point in the point category, that is, the position distance of the sth point in the nth point category in the local space of the ith point; is the overall distance of all points in the nth point category in the local space of the i-th point; is the category scatter of the nth point category in the local space of the i-th point; is the overall scatter of the ith point.

[0101] Step S230, determining the initial structural regularity of the target point according to the difference in the number of points in different point categories in the local space of the target point.

[0102] The initial structural regularity is used as the benchmark value of the local structural regularity as a whole. The structural regularity of the die forging is analyzed from the overall perspective. The distances from the remaining points to the i-th point in the local space of the i-th point are calculated to obtain multiple point categories based on the center point. The distribution of point cloud data of normal die forgings in the absence of fine cracks shows a certain regularity, that is, the ratio of the number of samples of adjacent point categories in the local space is relatively consistent. Each point category can reflect the points corresponding to the current distance of the center point, which can be understood as similar to spherical distribution, based on the spherical expansion of the center point. Therefore, the structural regularity of the current die forging is reflected by the corresponding standard deviation of the number of points in the adjacent point categories. The smaller the corresponding standard deviation value, the better the structural regularity of the die forging analyzed from the overall perspective, and the smaller the possibility of the existence of fine cracks.

[0103] In some possible implementations, by analyzing points in different point categories in the local space of the target point, the step of determining the initial structural regularity of the target point, that is, the above step S230, can be performed by Figure 4The following steps S231 to S232 are implemented as shown:

[0104] Step S231, the point categories corresponding to the target point are arranged in order of the distance from the point within the point category to the target point, to obtain a sequential point category sequence. It should be noted that the arrangement in order of size is for the subsequent comparison of the difference in the number of points between two point categories with adjacent distances, so the points can be arranged in order from large to small in terms of the distance from the point within the point category to the target point, or in order from small to large in terms of the distance from the point within the point category to the target point.

[0105] Step S232, comparing the difference in the number of points in adjacent point categories in the sequential point category sequence to determine the category regularity; calculating the aggregation of all category regularities corresponding to the sequential point category sequence to determine the initial structural regularity of the target point.

[0106] As an embodiment of the present invention, the ratio of the number of points in adjacent point categories in the sequential point category sequence corresponding to the target point may be calculated as the category regularity.

[0107] As another embodiment of the present invention, the difference in the number of points in adjacent point categories in the sequential point category sequence corresponding to the target point may be calculated, and the normalized difference may be used as the category regularity.

[0108] As an embodiment of the present invention, the clustering of the category regularity can be determined by the standard deviation; the clustering of the category regularity can also be determined by the variance.

[0109] As an embodiment of the present invention, the standard deviation of the category regularity of all adjacent point categories may be calculated, and the negatively correlated normalized value of the standard deviation of the category regularity may be used as the initial structural regularity of the target point.

[0110] As another embodiment of the present invention, the variance of the category regularity of all adjacent point categories may be calculated, and the negatively correlated normalized value of the variance of the category regularity may be used as the initial structural regularity of the target point.

[0111] In an optional embodiment of the present invention, taking the i-th point in the die forging point cloud data as the target point as an example, the calculation formula for the initial structural regularity of the target point is: ;in, is the initial structural regularity of the i-th point; exp is an exponential function with a natural constant as the base; is the standard deviation; N is the number of point categories in the local space of the i-th point; is the number of points of the nth point category in the local space of the i-th point; is the number of points of the n+1th point category in the local space of the i-th point.

[0112] Step S240, for each point in the die forging point cloud data, the initial structural regularity is adjusted by the regularity adjustment coefficient to obtain the local structural regularity of each point.

[0113] By comprehensively analyzing the structural regularity of the die forging in the local space of the points in the die forging point cloud data from the overall and local perspectives, the higher the structural regularity, the smaller the possibility of small cracks existing in the current local space.

[0114] For each point in the die forging point cloud data, the regularity adjustment coefficient is used as the weight to weight the initial structural regularity and obtain the local structural regularity of each point.

[0115] Step S300, combining the actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetric point, obtain the local point cloud completeness of each point; based on the local point cloud completeness and the local structural regularity, obtain the comprehensive structural regularity of each point.

[0116] Due to factors such as the resolution and sampling rate of the binocular camera, ambient lighting, and material reflectivity, the corresponding point cloud data is not fully acquired, which may affect the local structural regularity of the die forgings in the local space analyzed above. Therefore, the completeness of the data in the local space is further analyzed here. The higher the completeness, the more accurate the structural regularity of the die forgings analyzed above; otherwise, it is less accurate.

[0117] For the analysis of data integrity in local space, we can use the distribution of points. This is because when the die forgings are processed by the binocular camera, some points may not be collected due to the influence of resolution, lighting, etc., resulting in local loss. Then we analyze the mutation loss of points in the local space. If we analyze the mutation loss characteristics based on each point in the local space, the greater the mutation characteristics in the local space, the lower the data integrity in the current local space.

[0118] In some possible implementations, the local point cloud integrity of each point is obtained through the actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetric point, that is, the above step S300 can be performed by Figure 5 The following steps S310 to S330 are implemented as shown:

[0119] Step S310, obtaining the points to be analyzed in the local space of the target point and the spatially symmetrical points corresponding to the points to be analyzed; wherein each point to be analyzed corresponds to at least two spatially symmetrical points.

[0120] Based on each point in the current local space, the shortest distance from the center point to the point in its local space is the first space radius, and the mutation characteristics of each point in the current local space in the first local space with a radius of the first space radius are analyzed, wherein the remaining points in the first local space of each point are extracted and used as points to be analyzed, so as to filter out the points to be analyzed from the local space of the center point. Traversing the spatial symmetric points of each point to be analyzed means traversing the three spatial symmetric points under the three-dimensional coordinates of the point to be analyzed, that is, the spatial symmetric points based on the spatial coordinate axis, wherein the center point of the local space is the origin under the three-dimensional coordinates. However, the actual distribution of the points may not be so idealized, so if there is no point at the coordinate position of the spatial symmetric point, the point closest to the coordinate position of the spatial symmetric point is selected as the spatial symmetric point. In this way, the spatial symmetric points of each point to be analyzed in each current local space are obtained. Among them, each point to be analyzed corresponds to at least two spatial symmetric points. In the embodiment of the present invention, since the spatial symmetric points under the three-dimensional coordinates are analyzed, there are three spatial symmetric points corresponding to the point to be analyzed.

[0121] Step S320, obtaining the overall distance difference between the point to be analyzed and all corresponding spatially symmetrical points.

[0122] As an embodiment of the present invention, the mean of the distances between the point to be analyzed and each corresponding spatial symmetrical point is calculated as the overall distance difference. As an embodiment of the present invention, the median of the distances between the point to be analyzed and each corresponding spatial symmetrical point is also calculated as the overall distance difference.

[0123] Step S330, comparing the distance between the point to be analyzed and each corresponding spatial symmetric point in the local space of the target point with the overall distance difference between the point to be analyzed and all corresponding spatial symmetric points, to determine the completeness of the local point cloud of the target point.

[0124] The local point cloud integrity body reflects the integrity of the local space point cloud data by analyzing the difference in coordinate Euclidean distance between the point to be analyzed and its spatial symmetric point in the local space of the i-th point. The smaller the difference in coordinate Euclidean distance between the point to be analyzed and its spatial symmetric point, the higher the integrity of the local space point cloud data. This is analyzed within the first spatial radius of each point to be analyzed in the local space to ensure the relative consistency of the point cloud density within a small local range, and then by analyzing the symmetry between the point to be analyzed and the spatial symmetric point, the better the symmetry, the smaller the corresponding distance difference, which means the smaller the possibility of data defects.

[0125] In an optional embodiment of the present invention, the i-th point in the die forging point cloud data is used as the target point, and the calculation formula for the local point cloud completeness of the target point is: ;in, is the local point cloud completeness of the target point; norm is the normalization function; is the number of points to be analyzed in the local space of the i-th point; is the distance between the coordinates of the zth point to be analyzed and its xth spatial symmetric point; is the average distance between the zth point to be analyzed and the spatial symmetric point. The distance can be the Euclidean distance.

[0126] After obtaining the local point cloud completeness and local structural regularity, the comprehensive structural regularity of each point is obtained by combining these two features. Among them, the local point cloud completeness and local structural regularity are both positively correlated with the comprehensive structural regularity, where the positive correlation can be a multiplication and addition relationship, but the result value of the comprehensive structural regularity obtained needs to be normalized. It can be understood as adjusting the local structural regularity through the local point cloud completeness. More specifically: the local structural regularity is weightedly adjusted by the local completeness to obtain the comprehensive structural regularity of each point. The greater the local point cloud completeness, the more complete the corresponding point cloud data obtained by the binocular camera, and the less interference from factors such as resolution and lighting, so the degree of adjustment of the local structural regularity is small, thereby obtaining the comprehensive structural regularity of the die forging in the local space of the final i-th point.

[0127] Step S400, based on the comprehensive structural regularity, combined with the curvature of each point in the local space, the overall structural regularity is adjusted to obtain a neighborhood adjustment weight, and the overall structural regularity is obtained by the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data.

[0128] Based on steps S200 to S300, the comprehensive structural regularity of the die forging in the local space of each point of the point cloud data is determined. The greater the comprehensive structural regularity, the smaller the possibility of small cracks in the local space. For such a definition, the smaller the neighborhood size should be, so as to better capture local details and avoid defects being covered during smoothing operations due to excessively large neighborhoods. In addition, in determining the neighborhood size of each point, the point cloud density of the actual die forging also needs to be considered. For areas with higher density, a smaller neighborhood size can be selected to retain more details; and for areas with lower density, a larger neighborhood size can be selected to ensure the smoothing effect.

[0129] At the same time, the neighborhood size should also take into account the curvature of the die forging surface, because the curvature change of the die forging surface will cause some areas to distribute point cloud data more densely than other areas. For example, in areas with larger curvature, the point cloud density may increase. Because the comprehensive structural regularity of the die forging in the local space of each point affects the size of the neighborhood corresponding to each subsequent point, but in order to avoid errors caused by too large or too small neighborhoods, the comprehensive structural regularity of the die forging in each point space is corrected by analyzing the density distribution characteristics of the local spatial structure.

[0130] In some possible implementations, the overall structural regularity is adjusted by combining the curvature of each point in the local space to obtain the neighborhood adjustment weight, that is, the above step S400 can be achieved by Figure 6 The following steps S410 to S440 are implemented as shown:

[0131] Step S410, analyzing the number of points and point distribution in the local space of each point to obtain a distribution characteristic value of each point.

[0132] Because only through structural regularity analysis, there may be a situation where the adaptive neighborhood is too large or too small. After all, the determination of the neighborhood size also needs to consider the distribution density and other characteristics of the actual point cloud data. Therefore, in an embodiment of the present invention, the distribution of the point cloud is analyzed to obtain the distribution characteristic value of each point. The denser the point distribution, the smaller the neighborhood size should be selected to retain more detail information.

[0133] For a point, the more points there are in the local space of the point, the denser the point distribution is, and the larger the distance of the point distribution is, the more discrete the corresponding point distribution is. Therefore, the ratio between the number of points in the local space of the point and the average distance from each point in the local space of the point to the point is taken as the initial distribution characteristic value. The initial distribution characteristic value is normalized to obtain the distribution characteristic value of the point.

[0134] In an optional embodiment of the present invention, the i-th point in the die forging point cloud data is used as the target point, and the calculation formula of the distribution characteristic value of the target point is: ;in, is the distribution characteristic value of the i-th point; is the number of points existing in the local space of the i-th point; Represents the average distance from each point to the i-th point in the local space of the i-th point; is the initial distribution eigenvalue of the i-th point.

[0135] Step S420, obtaining the curvature of each point, analyzing the difference between the curvature of each point and the global curvature, and obtaining the curvature characteristic value.

[0136] At the same time, since the determination of the neighborhood size also needs to consider the distribution density and other characteristics of the actual point cloud data, and the curvature corresponding to the point can reflect the characteristics of the distribution density to a certain extent, the change of its curvature also affects the neighborhood size. When the point cloud density is larger, a smaller neighborhood size should be selected to retain more detailed information. At the same time, since the point cloud density may increase in the area with larger curvature, we first analyze the point cloud density, and then analyze the curvature size based on the point cloud density and adjust the point cloud density.

[0137] In an optional embodiment of the present invention, the i-th point in the die forging point cloud data is used as the target point, and the calculation formula of the curvature characteristic value of the target point is: ;in, is the curvature eigenvalue of the i-th point; is the difference between the average curvature of the i-th point and the mean of the average curvature of each point in the local space; max is the maximum value function.

[0138] Step S430: Determine a curvature adjustment value by combining the distribution characteristic value and the curvature characteristic value.

[0139] As an embodiment of the present invention, a negative correlation normalized value of the product of the distribution characteristic value and the curvature characteristic value may be used as the curvature adjustment value.

[0140] As another embodiment of the present invention, a negatively correlated normalized value of the sum of the distribution characteristic value and the curvature characteristic value may be used as a curvature adjustment value.

[0141] Step S440: adjusting the overall structural regularity in combination with the curvature adjustment value to obtain a neighborhood adjustment weight.

[0142] The difference between the comprehensive structural regularity and the overall structural regularity is adjusted by the curvature adjustment value to obtain weighted integrity; the combination of the weighted integrity and the overall structural regularity is used as the neighborhood adjustment weight. More specifically: the curvature adjustment value is used as a weight to weight the difference between the comprehensive structural regularity and the overall structural regularity to adjust the difference between the comprehensive structural regularity and the overall structural regularity to obtain weighted integrity. The normalized value of the sum of the weighted integrity and the overall structural regularity is used as the neighborhood adjustment weight.

[0143] The overall neighborhood adjustment weight formula is to compare the comprehensive structural regularity corresponding to the i-th point with the mean structural regularity of the die forging in the local space. It can also be understood as a comparison with the overall structural regularity of the die forging in the local space. The more deviation from the mean, the more it is necessary to consider the curvature adjustment value determined by analyzing the point cloud distribution density and curvature of the local space of the current point. The offset is corrected to achieve convergence and avoid the situation where the final neighborhood is too large or too small.

[0144] In an optional embodiment of the present invention, the i-th point in the die forging point cloud data is used as the target point, and the neighborhood adjustment weight of the target point is The calculation formula is: ; Among them, norm is the normalization function; For the overall structural regularity; is the comprehensive structural regularity of the i-th point; The curvature adjustment value of the i-th point.

[0145] Thus, the comprehensive neighborhood adjustment weight of the i-th point can be obtained, and the neighborhood adjustment weight of each point in the die forging point cloud data can also be obtained.

[0146] Step S500, adaptively adjusting the initial preset neighborhood radius through the neighborhood adjustment weight to obtain an adaptive neighborhood of each point; based on the adaptive neighborhood, performing defect detection on the die forging point cloud data through a cloth filtering algorithm.

[0147] The size of the neighborhood adjustment weight of each point is comprehensively determined through the above process, which is based on the structural regularity of the die forging and the distribution density of the point cloud data, and then the size of the neighborhood corresponding to each point can be adaptively adjusted. ;in, is the adaptive neighborhood of the i-th point; is the preset neighborhood radius; Adjust weights for neighborhoods.

[0148] In this way, the adaptive neighborhood of each point can be obtained.

[0149] Through the above process, the adaptive neighborhood of each point can be obtained, so as to better obtain the information characteristics of the local area of ​​each point. Here, for each point, the residual between each point in the die forging point cloud data and the local surface model fitted by the corresponding adaptive neighborhood is calculated. It should be noted that for each point, its corresponding adaptive neighborhood is determined to obtain a local point set, and then a surface fitting algorithm is used to fit the local surface model. The surface fitting algorithm is such as the least squares method for fitting a plane, curvature minimization, etc. The fitting method of the local surface model is a step in the cloth filter algorithm, which will not be repeated here. Among them, the residual represents the degree of deviation between the point and the fitting surface. Points greater than or equal to the residual threshold are regarded as abnormal defect points. In this way, the defective part point cloud and the normal part point cloud are separated to realize the defect detection of the die forging. In the embodiment of the present invention, the preset residual threshold value is 10, and in other embodiments, the value can also be adjusted by the implementer according to the actual situation.

[0150] The embodiment of the present invention provides a rapid quality detection system for die forgings based on machine vision, the system comprising:

[0151] An acquisition module, used for acquiring die forging point cloud data of the die forging;

[0152] A first analysis module is used to perform regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point;

[0153] The second analysis module is used to obtain the local point cloud integrity of each point in the die forging point cloud data in combination with the actual distribution of the spatial symmetric point corresponding to each point; and obtain the comprehensive structural regularity of each point based on the local point cloud integrity and the local structural regularity;

[0154] A weight determination module is used to adjust the overall structural regularity based on the comprehensive structural regularity and the curvature of each point in the local space to obtain a neighborhood adjustment weight, wherein the overall structural regularity is obtained from the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data;

[0155] The defect detection module is used to adaptively adjust the initial preset neighborhood radius through the neighborhood adjustment weight to obtain the adaptive neighborhood of each point; based on the adaptive neighborhood, defect detection is performed on the die forging point cloud data through a cloth filtering algorithm.

[0156] Optionally, the transmission medium may be a wired link, such as but not limited to coaxial cable, optical fiber, and digital subscriber line, or a wireless link, such as but not limited to Wireless Fidelity (WIFI), Bluetooth, and mobile device network.

[0157] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the shopping guide device provided in the above embodiment and the image extension method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0158] Figure 7 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Figure 7As shown, the computer device 700 includes: a memory 710, a processor 720, and a computer program 730 stored in the memory 710 and running on the processor 720, wherein when the processor 720 executes the computer program 730, the computer device can execute any of the aforementioned machine vision-based rapid die forging quality detection methods.

[0159] In addition, an embodiment of the present invention also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to execute the machine vision-based rapid detection method for die forging quality provided by an embodiment of the present invention.

[0160] The embodiment of the present invention can divide the functional modules of the device according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0161] In the case of dividing each module according to each function, the device may also include a signal uploading module and an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0162] It should be understood that the device provided in the embodiment of the present invention is used to execute the above-mentioned method for rapid quality detection of die forgings based on machine vision, and thus can achieve the same effect as the above-mentioned implementation method.

[0163] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a device, the processing module may be used to control and manage the actions of the device. The storage module may be used to support the device to execute mutual program codes, etc. The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0164] In addition, the device provided in an embodiment of the present invention may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the rapid detection method of die forging quality based on machine vision provided in the above embodiment.

[0165] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement the machine vision-based rapid detection method for die forging quality provided in the above embodiment.

[0166] An embodiment of the present invention further provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the rapid detection method of die forging quality based on machine vision provided in the above embodiment.

[0167] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present invention are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Through the description of the above implementation methods, technicians in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways.

[0168] The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. There may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.

[0169] It should also be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0170] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0171] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0172] The above contents are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A rapid detection method for die forging quality based on machine vision, characterized in that: The method comprises the following steps: Acquire die forging point cloud data of the die forging; Performing regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point; Combining the actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetrical point, the local point cloud integrity of each point is obtained; based on the local point cloud integrity and the local structural regularity, the comprehensive structural regularity of each point is obtained; Based on the comprehensive structural regularity, combined with the curvature of each point in the local space, the overall structural regularity is adjusted to obtain a neighborhood adjustment weight, wherein the overall structural regularity is obtained from the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data; By adjusting the neighborhood weight, the initial preset neighborhood radius is adaptively adjusted to obtain an adaptive neighborhood of each point; based on the adaptive neighborhood, defect detection is performed on the die forging point cloud data by a cloth filtering algorithm; Among them, the method for obtaining the local structural regularity of each point is: obtaining the local space of each point in the die forging point cloud data; taking any point in the die forging point cloud data as the target point, and determining the regularity adjustment coefficient of the target point according to the different point categories in the local space of the target point and the position distribution between points of the same point category; determining the initial structural regularity of the target point according to the difference in the number of points in different point categories in the local space of the target point; for each point in the die forging point cloud data, adjusting the initial structural regularity by the regularity adjustment coefficient to obtain the local structural regularity of each point.

2. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: Determining the regularization adjustment coefficient of the target point according to the position distribution between different point categories and points of the same point category in the local space of the target point includes: Take any point category as the target point category; compare the position distance between the points in the target point category corresponding to the target point and the overall distance between the points in all point categories to determine the category scatter of the target point category; The overall scatter of the target point is determined by combining the category scatter of all point categories corresponding to the target point; and the overall scatter is anti-correlatedly mapped to obtain a regularization adjustment coefficient of the target point.

3. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: Determining the initial structural regularity of the target point according to the difference in the number of points in different point categories in the local space of the target point includes: Arrange the point categories corresponding to the target point in order of size to obtain a sequential point category sequence; Compare the difference in the number of points in adjacent point categories in the sequential point category sequence to determine the category regularity; calculate the aggregation of all category regularities corresponding to the sequential point category sequence to determine the initial structural regularity of the target point.

4. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: The actual distribution of each point in the die forging point cloud data and its corresponding spatial symmetrical point is combined to obtain the local point cloud integrity of each point, including: Take any point in the die forging point cloud data as the target point; Obtaining a point to be analyzed in the local space of the target point and a spatially symmetrical point corresponding to the point to be analyzed; wherein each point to be analyzed corresponds to at least two spatially symmetrical points; Obtain the overall distance difference between the point to be analyzed and all corresponding spatial symmetric points; The completeness of the local point cloud of the target point is determined by comparing the distance between the point to be analyzed and each corresponding spatial symmetric point in the local space of the target point with the overall distance difference between the point to be analyzed and all corresponding spatial symmetric points.

5. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: The comprehensive structural regularity of each point is obtained according to the local point cloud completeness and the local structural regularity, including: The local structural regularity is weightedly adjusted according to the local point cloud completeness to obtain the comprehensive structural regularity of each point.

6. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: Based on the comprehensive structural regularity, combined with the curvature of each point in the local space, the overall structural regularity is adjusted to obtain the neighborhood adjustment weight, including: Analyze the number and distribution of points in the local space of each point to obtain the distribution characteristic value of each point; Get the curvature of each point, analyze the difference between the curvature of each point and the global curvature, and get the curvature eigenvalue; Determine a curvature adjustment value by combining the distribution characteristic value and the curvature characteristic value; The overall structural regularity is adjusted in combination with the curvature adjustment value to obtain a neighborhood adjustment weight.

7. The method for rapid quality detection of die forgings based on machine vision according to claim 6 is characterized in that: The step of adjusting the overall structural regularity in combination with the curvature adjustment value to obtain a neighborhood adjustment weight includes: The difference between the comprehensive structural regularity and the overall structural regularity is adjusted through the curvature adjustment value to obtain weighted integrity; the combination of the weighted integrity and the overall structural regularity is used as the neighborhood adjustment weight.

8. The method for rapid quality detection of die forgings based on machine vision according to claim 1 is characterized in that: The defect detection of the die forging point cloud data is performed based on the adaptive neighborhood by using a cloth filtering algorithm, including: The residual between each point in the die forging point cloud data and the local surface model fitted by the corresponding adaptive neighborhood is calculated; points greater than or equal to a preset residual threshold are regarded as abnormal defect points.

9. A rapid quality detection system for die forgings based on machine vision, characterized in that: The system includes the following modules: An acquisition module, used for acquiring die forging point cloud data of the die forging; A first analysis module is used to perform regularity analysis on the local space points of each point in the die forging point cloud data to obtain the local structural regularity of each point; The method for obtaining the local structural regularity of each point is as follows: obtaining the local space of each point in the die forging point cloud data; taking any point in the die forging point cloud data as the target point, and determining the regularity adjustment coefficient of the target point according to the position distribution between different point categories in the local space of the target point and the points of the same point category; determining the initial structural regularity of the target point according to the difference in the number of points in different point categories in the local space of the target point; for each point in the die forging point cloud data, adjusting the initial structural regularity by the regularity adjustment coefficient to obtain the local structural regularity of each point; The second analysis module is used to obtain the local point cloud integrity of each point in the die forging point cloud data in combination with the actual distribution of the spatial symmetric point corresponding to each point; and obtain the comprehensive structural regularity of each point based on the local point cloud integrity and the local structural regularity; A weight determination module is used to adjust the overall structural regularity based on the comprehensive structural regularity and the curvature of each point in the local space to obtain a neighborhood adjustment weight, wherein the overall structural regularity is obtained from the overall situation of the comprehensive structural regularity of all points in the die forging point cloud data; The defect detection module is used to adaptively adjust the initial preset neighborhood radius through the neighborhood adjustment weight to obtain the adaptive neighborhood of each point; based on the adaptive neighborhood, the defect detection is performed on the die forging point cloud data through the cloth filtering algorithm.