A method for locating reducer faults based on augmented reality technology
Through the method based on augmented reality technology, the edge characteristics and position distribution characteristics of the bearing grayscale image are used to solve the problem of inaccurate fault location under the influence of light in the traditional method, and improve the accuracy and stability of the fault location on the reducer bearing surface. .
Patent Information
- Application Number
- CN202410719782.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Traditional methods are greatly affected by light in locating surface faults on reducer bearings, resulting in low positioning accuracy.
Using the reducer fault location method based on augmented reality technology, by obtaining the analysis area in the bearing grayscale image, adjusting the initial possibility based on the gradient value, position distribution and shape of the edge pixels, screening out the suspected spalling area, and passing the location The distribution characteristics are screened twice, and sub-areas are finally divided to determine the actual spalling area.
It improves the accuracy and stability of fault location on the reducer bearing surface, effectively eliminates the illuminated area and outer convex ring area, and ensures the accurate representation of the peeling area.
Smart Images

Figure CN118314124B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image analysis, and in particular to a method for locating a reducer fault based on augmented reality technology. Background Art
[0002] The reducer bearing is the core component of the reducer. During the transmission process of the reducer, the bearing supports the operation of the shaft. While ensuring the normal operation of the reducer, it can also play a role in reducing wear and reducing the failure rate. Spalling refers to the phenomenon that the metal layer on the surface of the bearing rolling element or raceway falls off partially due to fatigue or overload. Spalling failure will cause the bearing to run unsteadily. Therefore, it is very important to locate the fault on the surface of the reducer bearing.
[0003] Traditional methods obtain the defective area on the bearing surface through gradient-based edge detection methods, grayscale-based threshold segmentation methods, and similarity-based region growing methods. The core idea of these methods is to perform image segmentation based on grayscale values. However, since the bearing is a metal product, different light irradiation angles can easily lead to reflective areas on the bearing surface, and the position of the reflective areas is not fixed. At the same time, the intensity of light has a large difference in the grayscale and other appearance characteristics of the defective area on the bearing surface. Therefore, the fault location on the bearing surface is greatly affected by light, resulting in a low accuracy rate for fault location on the reducer bearing surface. Summary of the invention
[0004] In order to solve the technical problem that the grayscale characteristics of the defect position of the bearing surface of the reducer are affected by illumination, resulting in inaccurate fault location on the bearing surface of the reducer, the purpose of the present invention is to provide a reducer fault location method based on augmented reality technology, and the technical solution adopted is as follows:
[0005] The present invention proposes a reducer fault location method based on augmented reality technology, the method comprising:
[0006] Obtaining the analysis area in the grayscale image of the reducer bearing;
[0007] According to the gradient value of each edge pixel point of each analysis area, the position distribution of the edge pixel point and its adjacent edge pixel points, and the shape of each analysis area, the initial possibility of each analysis area in the bearing grayscale image being a peeling area is obtained;
[0008] The initial probability is adjusted according to the difference between the gray values of the pixels in each analysis area to obtain the correction probability that each analysis area in the bearing gray image is a peeling area; the suspected first peeling area in the bearing gray image is screened based on the correction probability;
[0009] According to the position distribution of each suspected first spalling region and other suspected first spalling regions in the bearing grayscale image, the correction possibility is to select the suspected second spalling region from the suspected first spalling region in the bearing grayscale image;
[0010] The suspected second peeling area is divided into different sub-areas; based on the grayscale difference between each pixel point in each sub-area and the pixel points in its preset window, and the grayscale distribution of the sub-area, the actual peeling area in the bearing grayscale image is obtained.
[0011] Furthermore, the method for acquiring the analysis area in the bearing grayscale image comprises:
[0012] Edge detection is performed on the bearing grayscale image, and a closed area formed by edges obtained in the bearing grayscale image through edge detection is used as an original area; morphological operations are performed on the original area to obtain an analysis area in the bearing grayscale image.
[0013] Furthermore, the method for obtaining the initial possibility that each analysis area in the bearing grayscale image is a peeling area based on the gradient value of each edge pixel point in each analysis area, the position distribution of the edge pixel point and its adjacent edge pixel points, and the shape of each analysis area includes:
[0014] Obtaining the suspected peeling degree of each edge pixel point in each analysis area according to the gradient value of each edge pixel point in each analysis area and the position distribution of the edge pixel point and its adjacent edge pixel points;
[0015] Calculate the cumulative sum of the suspected peeling degrees of all edge pixels in each analysis area as the edge roughness index of each analysis area; obtain the minimum circumscribed rectangle of each analysis area in the bearing grayscale image, and obtain the shape judgment index of each analysis area in the bearing grayscale image based on the length and width of the minimum circumscribed rectangle;
[0016] According to the edge roughness index and the shape judgment index, the initial possibility that each analysis area in the bearing grayscale image is a peeling area is obtained; the edge roughness index is positively correlated with the initial possibility, and the shape judgment index is negatively correlated with the initial possibility.
[0017] Furthermore, the method for obtaining the suspected peeling degree of each edge pixel point of each analysis area includes:
[0018] For each analysis area in the bearing grayscale image, the adjacent previous edge pixel point and the adjacent next edge pixel point of each edge pixel point in the analysis area are recorded as the neighboring points of each edge pixel point in the analysis area; each edge pixel point in the analysis area is connected with each of the neighboring points respectively to obtain the analysis line segment corresponding to the edge pixel point; the angle formed by the two analysis line segments of each edge pixel point in the analysis area is taken as the angle value of the corresponding edge pixel point;
[0019] Obtain the gradient value of each edge pixel point of the analysis area; obtain the suspected peeling degree of each edge pixel point of each analysis area based on the angle value and the gradient value of each edge pixel point of each analysis area; the angle value is negatively correlated with the suspected peeling degree, and the gradient value is positively correlated with the suspected peeling degree.
[0020] Furthermore, the method of adjusting the initial possibility according to the difference between the grayscale values of the pixels in each analysis area to obtain the corrected possibility that each analysis area in the bearing grayscale image is a peeling area includes:
[0021] The texture density of each analysis area is obtained according to the difference between the gray values of the pixels in each analysis area;
[0022] The product of the initial probability that the analysis area is a peeling area and the texture density is normalized to obtain a revised probability that the analysis area is a peeling area.
[0023] Furthermore, the method for screening the suspected first spalling area in the bearing grayscale image based on the correction possibility comprises:
[0024] In the bearing grayscale image, the analysis area whose correction possibility is greater than the first preset threshold is taken as a suspected first spalling area.
[0025] Furthermore, the method of selecting the suspected second spalling region from the suspected first spalling region in the bearing grayscale image according to the position distribution of each suspected first spalling region and the other suspected first spalling regions in the bearing grayscale image and the correction possibility includes:
[0026] Obtain the position feature points of each suspected first peeling area in the grayscale image of the bearing; select any two suspected first peeling areas, record one of the suspected first peeling areas as the area to be tested, and record the other suspected first peeling area as the target area; use the slope between the position feature points of the area to be tested and the target area as the position distribution value of the area to be tested and the target area; draw a straight line with a preset direction through the position feature points of the area to be tested as the analysis straight line of the area to be tested, and use the intersection of the analysis straight line and the preset reference edge as the reference point of the area to be tested; obtain the slope of the reference point on the preset reference edge, and record it as the reference value of the area to be tested; record the difference between the position distribution value and the reference value as the position difference value between the area to be tested and the target area;
[0027] According to the correction possibility and the position difference value of the target area, a position judgment value between the area to be measured and the target area is obtained; the position difference value is negatively correlated with the position judgment value, and the correction possibility is positively correlated with the position judgment value;
[0028] The cumulative sum of the position judgment values between the area to be tested and the other suspected first peeling areas in the bearing grayscale image except the area to be tested is used as the comprehensive distribution value of the area to be tested; the product of the comprehensive distribution value of the area to be tested and the correction possibility is normalized to obtain the final possibility that the area to be tested is a peeling area;
[0029] For the suspected first spalling region in the bearing grayscale image, the suspected first spalling region whose final probability is greater than the second preset threshold is used as the suspected second spalling region.
[0030] Furthermore, the method of dividing the suspected second spalling area into different sub-areas includes:
[0031] The edges of all the suspected second peeling areas in the bearing grayscale image and the edges of the original areas are recorded as analysis edges, and the closed area formed by the analysis edges in the bearing grayscale image is taken as a sub-area.
[0032] Furthermore, the method for obtaining the actual peeling area in the bearing grayscale image based on the grayscale difference between each pixel in each sub-region and the pixel in its preset window, and the grayscale distribution of the sub-region, includes:
[0033] For each sub-region in the bearing grayscale image, the initial concave-convex value of each pixel in the sub-region is obtained according to the difference in the grayscale value of each pixel in the sub-region and the pixel in the preset window; the cumulative sum of the initial concave-convex values of all the pixels in the sub-region is recorded as the comprehensive concave-convex value of the sub-region;
[0034] Obtaining the grayscale concentration value of the sub-region according to the grayscale distribution of the pixels in the sub-region;
[0035] Obtaining a peeling judgment index of the sub-region according to the comprehensive concavo-convex value and the grayscale concentration value of the sub-region; the comprehensive concavo-convex value and the peeling judgment index are negatively correlated, and the grayscale concentration value and the peeling judgment index are positively correlated;
[0036] In the bearing grayscale image, a sub-region where the peeling judgment index is less than or equal to the third preset threshold is taken as the actual peeling region.
[0037] Furthermore, the method for performing edge detection on the bearing grayscale image is a Sobel operator.
[0038] The present invention has the following beneficial effects:
[0039] In the embodiment of the present invention, the gradient value of the edge pixel points of the analysis area, the position distribution of the adjacent edge pixel points and the shape of the analysis area are used to obtain the initial possibility that the analysis area is a peeling area from the three characteristics of the edge position grayscale change of the peeling area, the edge roughness and the clustered area; and the initial possibility is first corrected according to the different texture features of the peeling area, the illumination area and the outer convex ring area of the bearing. The difference between the grayscale values of the pixels in the analysis area presents the texture features of the analysis area, so that most of the illumination area and the outer convex ring area of the bearing can be effectively eliminated based on the obtained correction possibility; then, according to the position distribution characteristics of the peeling area on the bearing surface A second screening is performed on the suspected first peeling area. This feature does not involve features such as grayscale values that change with light. The suspected second peeling area is roughly the actual peeling area on the bearing surface. By screening the analysis area multiple times, the accuracy and stability of fault locating on the bearing surface of the reducer are improved. In order to further improve the accuracy of the peeling area, the suspected second peeling area is divided into different sub-areas. The grayscale distribution of the sub-area is analyzed based on the grayscale difference between each pixel point in the sub-area and the pixel point in its preset window. The normal area that is mistakenly identified as the peeling area during the acquisition of the analysis area is eliminated, so that the actual peeling area can accurately represent the position of the peeling area on the bearing surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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.
[0041] Figure 1 A method flow chart of a method for locating a reducer fault based on augmented reality technology provided by one embodiment of the present invention;
[0042] Figure 2 A partial schematic diagram of an initial grayscale image of a bearing provided by an embodiment of the present invention;
[0043] Figure 3 A partial schematic diagram of an edge detection result of a bearing grayscale image provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of an analysis area in a bearing grayscale image provided by an embodiment of the present invention;
[0045] Figure 5 A simplified schematic diagram of a bearing grayscale image provided by an embodiment of the present invention;
[0046] Figure 6 A flow chart of a method for selecting a suspected second spalling area provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a reducer fault location method based on augmented reality technology proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does 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.
[0048] 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.
[0049] The specific scenario targeted by the present invention is as follows: During the use of the reducer, the rolling elements and the inner and outer ring raceways of the reducer bearing are subjected to periodic pulsating loads. When the number of stress cycles reaches a certain value, fatigue peeling occurs on the rolling elements or the inner and outer ring raceway working surfaces. If the load on the bearing is too large, this fatigue will be aggravated. In addition, improper installation of the bearing and bending of the shaft will also cause raceway peeling. Based on the combination of an automatic image acquisition device, this solution can spontaneously identify the peeling position on the surface of the reducer bearing.
[0050] The specific scheme of the reducer fault location method based on augmented reality technology provided by the present invention is described in detail below with reference to the accompanying drawings.
[0051] See also Figure 1 , which shows a method flow chart of a method for locating a reducer fault based on augmented reality technology provided by an embodiment of the present invention, the method comprising:
[0052] Step S1: Acquire the analysis area in the grayscale image of the reducer bearing.
[0053] Specifically, this solution locates the peeling fault on the reducer bearing. The bearing of the reducer is photographed by an industrial camera to obtain a bearing image, which is an RGB image. The bearing image is grayscaled and denoised to obtain an initial grayscale image of the bearing. Figure 2 A partial schematic diagram of an initial grayscale image of a bearing provided by an embodiment of the present invention. The initial grayscale image of the bearing includes a background area and a bearing surface area. In order to eliminate the influence of irrelevant areas on subsequent analysis, semantic segmentation is used to remove irrelevant background areas, and the remaining bearing surface area is used as the bearing grayscale image.
[0054] It should be noted that in the embodiment of the present invention, a weighted average grayscale algorithm is used for grayscale processing, a Gaussian filter is used for denoising, and semantic segmentation. The specific methods are not introduced here, and they are all technical means well known to those skilled in the art. In other embodiments of the present invention, other image acquisition devices and image preprocessing algorithms can also be used, and a neural network is used to obtain a grayscale image of the bearing. Image acquisition and image preprocessing algorithms are both technical means well known to those skilled in the art and are not limited here.
[0055] The normal area of the bearing surface of the reducer is brighter, and the peeling area is darker. There is a large grayscale difference between the normal area and the peeling area of the bearing surface. The edge detection of the bearing grayscale image is performed. Figure 3 A partial schematic diagram of the edge detection result of a bearing grayscale image provided by an embodiment of the present invention, wherein the closed area formed by the edges obtained by edge detection in the bearing grayscale image is used as the original area. When the bearing is too fatigued, the bearing surface will produce peeling phenomenon, and the peeling area will appear in the shape of fish scales and uneven. If the degree of unevenness in the peeling area is large, different positions in the peeling area reflect light to different degrees. During the edge detection process, the position with a large degree of unevenness in the peeling area is easily mistakenly identified as the edge of the peeling area, resulting in an original area corresponding to a smaller area of unevenness in the original area corresponding to the actual peeling area. In order to avoid the above situation, a morphological closing operation is performed on the original area to obtain the analysis area in the bearing grayscale image. Figure 4 A schematic diagram of the analysis area in a bearing grayscale image provided by an embodiment of the present invention. Some positions on the bearing surface will reflect light under light, causing a grayscale difference between the reflective position and the surrounding area; and some bearings have an outer convex ring, and edge detection will also detect the edge of the outer convex ring of the bearing. The analysis area in this solution includes: the peeling area on the bearing surface, the illuminated area, and the outer convex ring area of the bearing.
[0056] This embodiment uses the Sobel operator to perform edge detection on the bearing grayscale image. In other embodiments, the Canny operator, Prewitt operator and Laplacian operator may also be used for edge detection. Among them, the Sobel operator and morphological closing operation are well-known technologies for those skilled in the art and will not be described in detail here.
[0057] Step S2: Based on the gradient value of each edge pixel on the edge of each analysis area, the position distribution of the edge pixel and its adjacent edge pixel, and the shape of each analysis area, obtain the initial possibility that each analysis area in the bearing grayscale image is a peeling area.
[0058] Specifically, compared with the grayscale difference between the illumination area and the outer convex ring area of the bearing and the surrounding area, the grayscale difference between the peeling area and the surrounding area on the bearing surface is larger; the outer contour of the peeling area is relatively rough and clustered, the illumination area is irregular and the edge is relatively smooth, and the edge of the outer convex ring area of the bearing is relatively smooth and strip-shaped. The gradient value shows the grayscale difference of the edge pixels, and the position distribution of the edge pixels of the analysis area and its adjacent edge pixels shows the roughness of the edge of the analysis area. The shape characteristics of the peeling area are combined for analysis, so that the accuracy of the initial possibility that the analysis area is a peeling area is higher.
[0059] Step S210: Obtain the suspected spalling degree of each edge pixel point in each analysis area according to the gradient value of each edge pixel point in each analysis area and the position distribution of the edge pixel point and its adjacent edge pixel points.
[0060] The gradient value of the edge pixel shows the grayscale change degree of the local position. The position distribution of each edge pixel and its adjacent edge pixel shows the smoothness of the local position on the edge of the analysis area. The two factors are combined to obtain the suspected spalling degree, which is used to quantify the possibility that the edge pixels of the analysis area meet the characteristics of the spalling area.
[0061] It should be noted that the edge pixel points of the analysis area are the outermost pixel points in the analysis area.
[0062] Step S211: For each analysis area in the bearing grayscale image, the adjacent previous edge pixel point and the adjacent next edge pixel point of each edge pixel point in the analysis area are recorded as the neighboring points of each edge pixel point in the analysis area; each edge pixel point in the analysis area is connected to each neighboring point respectively to obtain the analysis line segment of the corresponding edge pixel point; the angle formed by the two analysis line segments of each edge pixel point in the analysis area is used as the angle value of the corresponding edge pixel point.
[0063] It should be noted that each edge pixel point in the analysis area has two analysis line segments, and the two analysis line segments have a common endpoint, and the common endpoint is the edge pixel point; the angle value range is .
[0064] In the case of smooth edges, the directions of the lines connecting three adjacent pixels on the edge are generally similar, usually close to a straight line; in the case of rough edges, the directions of the lines connecting three adjacent pixels on the edge may change dramatically. The smaller the angle value of the edge pixel, the rougher the edge of the analysis area is at the edge pixel position; the larger the angle value of the edge pixel, the smoother the edge of the analysis area is at the edge pixel position. Since the outer contour of the peeling area is relatively rough, the edge pixel with a smaller angle value is more likely to be at the edge of the peeling area.
[0065] Step S212: Obtain the gradient value of each edge pixel point of the analysis area; obtain the suspected peeling degree of each edge pixel point of each analysis area based on the angle value and gradient value of each edge pixel point of each analysis area; the angle value is negatively correlated with the suspected peeling degree, and the gradient value is positively correlated with the suspected peeling degree.
[0066] It is known that the grayscale difference between the peeling area and the surrounding area of the bearing surface is larger than that between the illumination area and the outer convex ring area of the bearing and the surrounding area respectively; the outer contour of the peeling area is relatively rough, while the edges of the illumination area and the outer convex ring area of the bearing are relatively smooth. The larger the gradient value of the edge pixel point, the greater the possibility that the edge pixel point is at the edge of the peeling area, making the angle value negatively correlated with the suspected peeling degree; the smaller the angle value of the edge pixel point, the rougher the edge of the analysis area at the edge pixel point position, and the greater the possibility that the edge pixel point is at the edge of the peeling area, making the gradient value positively correlated with the suspected peeling degree; specifically, the ratio and difference of the gradient value and the angle value of the edge pixel point in the analysis area can be used as the suspected peeling degree.
[0067] As an example, the calculation formula of the suspected peeling degree of each edge pixel point in the analysis area is specifically exemplified as follows:
[0068] ; Where BL is the suspected peeling degree of each edge pixel in each analysis area, is the angle value of each edge pixel point in each analysis area, a is the preset reference angle, T is the gradient value of each edge pixel point in each analysis area, e is a natural constant, is the absolute value function.
[0069] It should be noted that since the angle value range is , then a takes the empirical value When the angle value The smaller the time, the The larger the value, the smaller the possibility that the edge pixel and its adjacent edge pixel positions are close to a straight line, the greater the possibility that the edge pixel is at a rough edge, the greater the possibility that the edge pixel is at the edge of a peeling area, and the greater the suspected peeling degree BL. When the gradient value is larger, the more drastic the grayscale change at the edge pixel position, the greater the possibility that the edge pixel is at the edge of a peeling area, and the greater the suspected peeling degree BL.
[0070] Step S220: Calculate the cumulative sum of the suspected peeling degrees of all edge pixels in each analysis area as the edge roughness index of each analysis area; obtain the minimum circumscribed rectangle of each analysis area in the bearing grayscale image, and obtain the shape judgment index of each analysis area in the bearing grayscale image based on the length and width of the minimum circumscribed rectangle.
[0071] The suspected spalling degree presents the probability that a single pixel is located at the edge of the spalling area. The cumulative sum of the suspected spalling degrees of all edge pixels in the analysis area is used as the edge roughness index. The edge roughness degree presents the probability that the analysis area is a spalling area. The larger the edge roughness index, the rougher the overall edge of the analysis area, and the greater the possibility that the analysis area is a spalling area.
[0072] Since the peeling area is in clusters, the illumination area is irregular, and the outer convex ring area of the bearing is in strips, the minimum circumscribed rectangle of the peeling area can roughly reflect the shape of the analysis area. The length and width of the minimum circumscribed rectangle of the peeling area are relatively close, while the length and width of the minimum circumscribed rectangle of the outer convex ring area of the bearing are quite different. In this embodiment, the absolute value of the difference between the length and width of the minimum circumscribed rectangle of the analysis area is used as the shape judgment index of the corresponding analysis area; the smaller the shape judgment index, the closer the minimum circumscribed rectangle of the analysis area is to a square, the greater the possibility that the analysis area is in clusters, and thus the greater the possibility that the analysis area is a peeling area.
[0073] In other embodiments, the absolute value of the difference between the ratio of the length to the width of the minimum circumscribed rectangle of the analysis area and a constant 1 may be used as a shape determination index of the analysis area.
[0074] Step S230: Based on the edge roughness index and the shape judgment index, obtain the initial possibility that each analysis area in the bearing grayscale image is a peeling area; the edge roughness index is positively correlated with the initial possibility, and the shape judgment index is negatively correlated with the initial possibility.
[0075] The edge roughness index reflects the possibility that the analysis area is a peeling area from the edge roughness, and the shape judgment index reflects the possibility that the analysis area is a peeling area from the regional shape. The initial possibility that the analysis area is a peeling area is obtained by combining the edge roughness characteristics and shape characteristics, and the possibility that the analysis area is a peeling area is quantified.
[0076] If the edge roughness index is larger, the edge of the analysis area is rougher overall, then the possibility that the analysis area is a peeling area is greater, so that the edge roughness index and the initial possibility are positively correlated; if the shape judgment index is smaller, the possibility that the analysis area is clustered is greater, then the possibility that the analysis area is a peeling area is greater, and the shape judgment index and the initial possibility are negatively correlated. In this embodiment, the edge roughness index of each analysis area is used as the numerator, and the ratio of the shape judgment index and the sum of the preset positive number is used as the denominator is used as the initial possibility of the corresponding analysis area being a peeling area. In other embodiments, the difference between the edge roughness index of the analysis area and the shape judgment index can also be used as the initial possibility of the analysis area being a peeling area.
[0077] It should be noted that the preset positive number takes the empirical value of 0.1, which is used to prevent the denominator from being 0, making the fraction meaningless.
[0078] This step combines the edge roughness characteristics, edge grayscale change characteristics and shape characteristics of the peeling area to analyze, thereby improving the accuracy of the initial possibility that the analysis area is a peeling area.
[0079] Step S3: adjusting the initial possibility according to the difference between the grayscale values of the pixels in each analysis area to obtain the corrected possibility that each analysis area in the bearing grayscale image is a peeling area; and screening the suspected first peeling area in the bearing grayscale image based on the corrected possibility.
[0080] Specifically, the peeling area produced by the peeling of the bearing surface presents the shape of fish scales, which is uneven. The texture of the illuminated area and the outer convex ring area of the bearing usually presents a relatively uniform and consistent surface without obvious structure or details, so that the peeling area of the bearing surface has different texture characteristics from the illuminated area and the outer convex ring area of the bearing. The texture of the peeling area is denser, and the texture of the illuminated area and the outer convex ring area of the bearing is more uniform. The difference between the grayscale values of the pixels in the analysis area shows the density of the texture of the analysis area. This feature is used to make the first adjustment to the initial possibility that the analysis area is a peeling area, thereby improving the accuracy of the analysis area being a peeling area.
[0081] Step S310: obtaining the texture density of each analysis area according to the difference between the grayscale values of the pixels in each analysis area.
[0082] Preferably, in this embodiment, the method for obtaining the texture density of the analysis area is: for each analysis area in the bearing grayscale image, a grayscale co-occurrence matrix of the analysis area is constructed, and the contrast of the analysis area is obtained based on the grayscale co-occurrence matrix, which is recorded as the texture density of the analysis area. The higher the contrast, that is, the higher the texture density, the stronger the contrast between different grayscale pairs in the analysis area, the denser the texture of the analysis area, and the greater the possibility that the analysis area is a peeling area. Among them, the method for constructing the grayscale co-occurrence matrix and the method for obtaining the contrast based on the grayscale co-occurrence matrix are existing well-known technologies and will not be repeated.
[0083] In other embodiments, the variance, standard deviation, and other indicators reflecting the density of texture, which are the grayscale values of pixels in the analysis area, can be used as the texture density of the analysis area. The result of negative correlation mapping of the inverse gap of the grayscale co-occurrence matrix of the analysis area can also be used as the texture density of the analysis area. Since the larger the inverse gap, the less variation in the grayscale of the analysis area, and the more uniform the local area, the need to negatively correlate the inverse gap is. Specifically, the exp(-) function can be used to negatively correlate the inverse gap.
[0084] Step S320: normalizing the product of the initial probability that the analysis area is a peeling area and the texture density to obtain a revised probability that the analysis area is a peeling area.
[0085] This scheme adjusts the probability that the analysis area is a peeling area, that is, the initial possibility, through the texture features of the peeling area. The texture density presents the texture features of the analysis area. The initial possibility is adjusted by using the texture density by multiplying the initial possibility that the analysis area is a peeling area by the texture density, and the product result is normalized as the corrected possibility that the analysis area is a peeling area.
[0086] It should be noted that, in this embodiment, the product of the initial probability and the texture density is normalized using the Norm() normalization function. In this embodiment, other normalization methods may also be selected, such as function transformation, maximum and minimum normalization, Sigmoid function, etc., which are not limited here.
[0087] The greater the correction possibility, the greater the possibility that the analysis area is a peeling area; in the bearing grayscale image, the analysis area with a correction possibility greater than the first preset threshold is regarded as a suspected first peeling area. In this embodiment, the first preset threshold is an empirical value of 0.7, and the implementer can set it according to the specific situation.
[0088] In this step, the initial probability is corrected by the texture features of the peeling area, so that the screened suspected first peeling area can effectively eliminate most of the illuminated area and the outer convex ring area of the bearing.
[0089] Step S4: According to the position distribution of each suspected first peeling region and the other suspected first peeling regions in the bearing grayscale image, the possibility is corrected, and the suspected second peeling region is selected from the suspected first peeling region in the bearing grayscale image.
[0090] Specifically, during the operation of the reducer, some parts of the bearing may be subjected to a greater load. Especially when the load is not evenly distributed, specific areas of the bearing may suffer surface spalling due to stress concentration. Therefore, the spalling area on the bearing surface is basically distributed on a straight line. The above-mentioned position distribution characteristics of the spalling area are used to make a second adjustment to the possibility that the analysis area is a spalling area, thereby further improving the accuracy of the analysis area being a spalling area.
[0091] See also Figure 6 , which shows a flow chart of a method for selecting a suspected second peeling area provided by an embodiment of the present invention, the method comprising:
[0092] Step S410: Obtain the position feature points of each suspected first peeling area in the bearing grayscale image; select any two suspected first peeling areas, record one of the suspected first peeling areas as the area to be tested, and record the other suspected first peeling area as the target area; use the slope between the position feature points of the area to be tested and the target area as the position distribution value of the area to be tested and the target area; draw a straight line with a preset direction through the position feature points of the area to be tested, record it as the analysis line of the area to be tested, and use the intersection of the analysis line and the preset reference edge as the reference point of the area to be tested; obtain the slope of the reference point on the preset reference edge, record it as the reference value of the area to be tested; record the difference between the position distribution value and the reference value as the position difference value between the area to be tested and the target area.
[0093] The position feature point reflects the approximate position of the suspected first peeling area. In the present embodiment, the centroid of the suspected first peeling area is used as the position feature point of the corresponding area. In other embodiments, the centroid of the suspected first peeling area or the center of the minimum circumscribed circle of the suspected first peeling area can also be used as the position feature point of the corresponding area. The centroid of the area and the center of the minimum circumscribed circle of the area can both reflect the approximate position of the area.
[0094] The slope between the position feature points of the test area and the target area shows the position distribution relationship of the two suspected first peeling areas. The specific area of the bearing causes surface peeling due to stress concentration, so that the peeling area on the bearing surface is basically distributed on a curve, and due to the special shape of the bearing, the above curve is approximately parallel to the edge of the bearing; on the other hand, Figure 2 As shown, in Figure 2 The spalling area on the surface of the middle bearing is closer to the lower edge of the bearing. The edge below the bearing is used to measure the position distribution characteristics of the spalling area, thereby increasing the accuracy of the position distribution characteristic analysis of the spalling area. Figure 5 A simple schematic diagram of a bearing grayscale image provided by an embodiment of the present invention is shown as follows: Figure 5 As shown, Figure 5 The middle cylinder is the bearing, and the curve L is the lower edge of the bearing. The curve L is used as the preset reference edge.
[0095] Since the peeling area on the bearing surface is basically distributed on a curve, and the above curve is approximately parallel to the edge of the bearing, the point corresponding to the position feature point of the area to be measured is obtained on the preset reference edge, that is, the reference point. The slope direction of the reference point on the preset reference edge can roughly reflect the position distribution direction of the peeling area. In this embodiment, the preset direction is the vertical direction. The difference between the position distribution value of the area to be measured and the target position and the reference value of the area to be measured is recorded as the position difference value between the area to be measured and the target area. The smaller the position difference value, the more the area to be measured and the target area conform to the position distribution characteristics of the peeling area on the bearing surface, and the greater the possibility that the area to be measured is a peeling area.
[0096] It should be noted that the slope between two position feature points is obtained through the pixel coordinates of the pixel points; the slope of the reference point on the preset reference edge of the measured area is obtained through the pixel coordinates of the reference point and its adjacent previous edge pixel point. Among them, the pixel coordinates are well known to those skilled in the art and will not be described in detail here.
[0097] Step S420: Correction possibility and position difference value of the target area, and obtain the position judgment value between the area to be measured and the target area; the position difference value and the position judgment value are negatively correlated, and the correction possibility and the position judgment value are positively correlated.
[0098] The smaller the position difference value, the closer the position distribution direction of the measured area and the target area is to the direction of the reference point on the preset reference edge, and the more the position distribution of the measured area and the target area conforms to the position distribution characteristics of the peeling area, so that the position difference value is negatively correlated with the position judgment index; the greater the correction possibility of the target area, the greater the possibility that the target area is a peeling area, and the accuracy of the position difference value is improved. In this embodiment, the ratio of the correction possibility of the target area to the position difference value is used as the position judgment value of the measured area and the target area. In other embodiments, the difference between the correction possibility of the target area and the position difference value is used as the position judgment value.
[0099] It should be noted that the method for obtaining the position judgment value between the area to be tested and the remaining suspected first peeling areas in the bearing grayscale image except the area to be tested and the target area is the same as the method for obtaining the position judgment value between the area to be tested and the target area. The difference between the two is that the target area is replaced by the remaining suspected first peeling areas except the area to be tested and the target area.
[0100] Step S430: The cumulative sum of the position judgment values between the area to be tested and the remaining suspected first peeling areas in the bearing grayscale image except the area to be tested is taken as the comprehensive distribution value of the area to be tested; the product of the comprehensive distribution value of the area to be tested and the correction possibility is normalized to obtain the final possibility that the area to be tested is a peeling area.
[0101] As an example, the final probability that the area to be tested is a peeling area is calculated as follows:
[0102] ; In the formula, is the final probability that the area to be tested is a peeling area, D is the area to be tested, is the possibility of correction that the area to be tested is a peeling area, is the correction possibility of the bth suspected first peeling area in the bearing grayscale image except the area to be tested, B is the total number of suspected first peeling areas in the bearing grayscale image, is the reference value of the area to be measured, is the position distribution value of the bth suspected first peeling area in the grayscale image of the bearing except the area to be tested, It is a preset positive number with an empirical value of 0.1. It is used to prevent the denominator from being 0, which makes the fraction meaningless. Norm is the normalization function. is the absolute value function.
[0103] It should be noted that when The smaller it is, the more the position distribution of the tested area and the bth suspected first spalling area in the bearing grayscale image other than the tested area conforms to the position distribution characteristics of the spalling area on the bearing surface, and the greater the possibility that the tested area is a spalling area; When it is larger, the accuracy of the position difference value will be higher; The possibility of the tested area being a peeling area is measured by comprehensive analysis of the position distribution of the tested area and other suspected first peeling areas, and the possibility of correction that the tested area is a peeling area is also measured. , further improving the accuracy of the area to be tested being a peeling area.
[0104] It should be noted that the method for obtaining the final possibility that each suspected first peeling area in the bearing grayscale image is a peeling area is the same as the method for obtaining the final possibility that the area to be tested is a peeling area. The difference between the two is that the area to be tested is replaced by each suspected first peeling area in the bearing grayscale image.
[0105] Step S440: For the suspected first spalling region in the bearing grayscale image, the suspected first spalling region whose final probability is greater than the second preset threshold is used as the suspected second spalling region.
[0106] The greater the final probability, the greater the possibility that the area to be tested is a peeling area; the suspected first peeling area with a final probability greater than the second preset threshold is taken as the suspected second peeling area. It should be noted that in this embodiment, the second preset threshold is an empirical value of 0.8, and the implementer can set it according to the specific situation.
[0107] In this step, the correction possibility is adjusted according to the position distribution characteristics of the spalling area on the bearing surface, so that the screened suspected second spalling area is roughly the actual spalling area on the bearing surface.
[0108] Step S5: Divide the suspected second peeling area into different sub-areas; obtain the actual peeling area in the bearing grayscale image based on the grayscale difference between each pixel in each sub-area and the pixel in its preset window, and the grayscale distribution of the sub-area.
[0109] Specifically, in the process of performing the closing operation on the original area, some originally unconnected peeling areas are connected together, so that some normal areas are mistakenly identified as peeling areas. In order to eliminate these normal areas, the suspected second peeling areas are segmented. In this embodiment, the edges of all suspected second peeling areas in the bearing grayscale image and the edges of the original area are recorded as analysis edges, and the closed area formed by the analysis edges in the bearing grayscale image is used as a sub-area.
[0110] In other embodiments, each suspected second peeling region may be randomly divided into different sub-regions, or the sub-regions may be obtained by super-pixel segmentation.
[0111] During the morphological closing operation, some originally unconnected peeling areas are connected together, causing some normal areas to be mistakenly identified as peeling areas. These normal areas have higher grayscale values than the peeling areas, and the peeling areas are more concave and convex, but the grayscale changes in the normal areas are relatively gentle.
[0112] Step S510: For each sub-region in the bearing grayscale image, obtain the initial concave-convex value of each pixel in the sub-region based on the difference in grayscale value between each pixel in the sub-region and the pixel in its preset window; add up the initial concave-convex values of all pixels in the sub-region and record it as the comprehensive concave-convex value of the sub-region.
[0113] The difference in grayscale value between a pixel and the pixels in its preset window shows the degree of concavity of the pixel compared to the surrounding area. If the difference in grayscale value between a pixel and the pixels in its preset window is greater, the degree of concavity around the pixel is greater, and the possibility that the pixel is located in the actual peeling area is greater; conversely, the grayscale distribution around the pixel is uniform, and the possibility that the pixel is located in the normal area that is mistakenly identified as the peeling area during the morphological operation is greater.
[0114] In this embodiment, for each sub-region, the sum of the absolute values of the grayscale value differences between each pixel in the sub-region and the pixel in the preset window is used as the initial concave-convex value of each pixel in the sub-region. In another embodiment, the difference between the grayscale value of each pixel in the sub-region and the average grayscale value of the pixel in the preset window can be used as the initial concave-convex value of each pixel in the sub-region. It should be noted that the pixel is located at the center of its preset window. In this embodiment, the size of the preset window is , implementers can set it according to specific circumstances.
[0115] The cumulative sum of the initial concave-convex values of all pixels in the sub-region is recorded as the comprehensive concave-convex value of the sub-region, and the possibility that the sub-region is a peeling region is measured by the overall concave-convex degree of the pixels in the sub-region.
[0116] Step S520: Obtaining a grayscale concentration value of the sub-region according to the grayscale distribution of the pixels in the sub-region.
[0117] In this embodiment, the mean grayscale value of all pixels in the sub-region is used as the grayscale concentration value of the sub-region. In other embodiments of the present invention, the median and mode of the grayscale values of all pixels in the sub-region, which are indicators for measuring the concentration trend of a set of data, can be used as the grayscale concentration value of the sub-region. The larger the grayscale concentration value of the sub-region, the higher the overall grayscale value of the sub-region, and the greater the possibility that the sub-region is a normal region that is mistakenly identified as a peeling region during the morphological operation.
[0118] Step S530: Obtain the peeling judgment index of the sub-region based on the comprehensive concave-convex value and the grayscale concentration value of the sub-region; the comprehensive concave-convex value is negatively correlated with the peeling judgment index, and the grayscale concentration value is positively correlated with the peeling judgment index; in the bearing grayscale image, the sub-region whose peeling judgment index is less than or equal to the third preset threshold is taken as the actual peeling region.
[0119] The peeling judgment index is used to quantify the degree to which the sub-region conforms to the normal region that is mistakenly identified as the peeling region during the morphological operation. If the comprehensive concavoconvex value is larger, the sub-region conforms to the concavoconvex characteristics of the peeling region more, and the sub-region is more likely to be a peeling region, so that the comprehensive concavoconvex value and the peeling judgment index are negatively correlated; if the grayscale concentration value is smaller, the sub-region conforms to the grayscale characteristics of the peeling region more, and the sub-region is more likely to be a peeling region, so that the grayscale concentration value and the peeling judgment index are positively correlated. In this embodiment, the product of the inverse of the comprehensive concavoconvex value and the grayscale concentration value of each sub-region is calculated, and the product is normalized using the normalization function Norm(), and the normalized result is used as the sub-region peeling judgment index; in other embodiments, the result of normalizing the difference between the grayscale concentration value and the comprehensive concavoconvex value of each sub-region is used as the peeling judgment index.
[0120] The smaller the peeling judgment index is, the greater the possibility that the sub-region is an actual peeling region; in the bearing grayscale image, the sub-region whose peeling judgment index is less than or equal to the third preset threshold is regarded as the actual peeling region. In this embodiment, the third preset threshold is an empirical value of 0.85, and the implementer can set it according to the specific situation.
[0121] So far, the present invention is completed.
[0122] In summary, in the embodiment of the present invention, the initial possibility that the analysis area is a peeling area is obtained according to the gradient value and position distribution of the edge pixel points of the analysis area, and the shape of the analysis area, and the grayscale difference of the pixel points in the analysis area is used to adjust the initial possibility to obtain the suspected first peeling area; the suspected second peeling area is obtained according to the position distribution and correction possibility of each suspected first peeling area and the remaining peeling areas; the suspected second peeling area is divided into sub-areas, and the actual peeling area in the grayscale image of the bearing is obtained according to the grayscale difference between the pixel points in the sub-area and its surroundings, and the grayscale distribution of the sub-area. The present invention performs a secondary correction on the initial possibility based on the grayscale distribution characteristics and position distribution characteristics of the peeling area, thereby improving the accuracy and stability of the positioning of the peeling area on the bearing surface.
[0123] 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.
[0124] 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.
Claims
1. A method for locating reducer faults based on augmented reality technology, characterized in that: The method includes: Obtaining the analysis area in the grayscale image of the reducer bearing; According to the gradient value of each edge pixel point of each analysis area, the position distribution of the edge pixel point and its adjacent edge pixel points, and the shape of each analysis area, the initial possibility of each analysis area in the bearing grayscale image being a peeling area is obtained; The initial probability is adjusted according to the difference between the gray values of the pixels in each analysis area to obtain the correction probability that each analysis area in the bearing gray image is a peeling area; the suspected first peeling area in the bearing gray image is screened based on the correction probability; According to the position distribution of each suspected first spalling region and other suspected first spalling regions in the bearing grayscale image, the correction possibility is to select the suspected second spalling region from the suspected first spalling region in the bearing grayscale image; Divide the suspected second peeling area into different sub-areas; obtain the actual peeling area in the bearing grayscale image according to the grayscale difference between each pixel point in each sub-area and the pixel points in its preset window, and the grayscale distribution of the sub-area; The method for acquiring the analysis area in the bearing grayscale image comprises: Performing edge detection on the bearing grayscale image, and taking the closed area formed by the edges obtained in the bearing grayscale image through edge detection as the original area; performing morphological operation on the original area to obtain the analysis area in the bearing grayscale image; The method of selecting a suspected second spalling region from the suspected first spalling region in the bearing grayscale image according to the position distribution of each suspected first spalling region and other suspected first spalling regions in the bearing grayscale image and the correction possibility includes: Obtain the position feature points of each suspected first peeling area in the grayscale image of the bearing; select any two suspected first peeling areas, record one of the suspected first peeling areas as the area to be tested, and record the other suspected first peeling area as the target area; use the slope between the position feature points of the area to be tested and the target area as the position distribution value of the area to be tested and the target area; draw a straight line with a preset direction through the position feature points of the area to be tested as the analysis straight line of the area to be tested, and use the intersection of the analysis straight line and the preset reference edge as the reference point of the area to be tested; obtain the slope of the reference point on the preset reference edge, and record it as the reference value of the area to be tested; record the difference between the position distribution value and the reference value as the position difference value between the area to be tested and the target area; According to the correction possibility and the position difference value of the target area, a position judgment value between the area to be measured and the target area is obtained; the position difference value is negatively correlated with the position judgment value, and the correction possibility is positively correlated with the position judgment value; The cumulative sum of the position judgment values between the area to be tested and the other suspected first peeling areas in the bearing grayscale image except the area to be tested is used as the comprehensive distribution value of the area to be tested; the product of the comprehensive distribution value of the area to be tested and the correction possibility is normalized to obtain the final possibility that the area to be tested is a peeling area; For the suspected first spalling region in the bearing grayscale image, taking the suspected first spalling region whose final probability is greater than the second preset threshold as the suspected second spalling region; The method of dividing the suspected second spalling area into different sub-areas comprises: The edges of all the suspected second peeling areas in the bearing grayscale image and the edges of the original area are recorded as analysis edges, and the closed area formed by the analysis edges in the bearing grayscale image is taken as a sub-area; The method for obtaining the actual peeling area in the bearing grayscale image based on the grayscale difference between each pixel point in each sub-area and the pixel points in its preset window, and the grayscale distribution of the sub-area, comprises: For each sub-region in the bearing grayscale image, the initial concave-convex value of each pixel in the sub-region is obtained according to the difference in the grayscale value of each pixel in the sub-region and the pixel in the preset window; the cumulative sum of the initial concave-convex values of all the pixels in the sub-region is recorded as the comprehensive concave-convex value of the sub-region; Obtaining the grayscale concentration value of the sub-region according to the grayscale distribution of the pixels in the sub-region; Obtaining a peeling judgment index of the sub-region according to the comprehensive concavo-convex value and the grayscale concentration value of the sub-region; the comprehensive concavo-convex value and the peeling judgment index are negatively correlated, and the grayscale concentration value and the peeling judgment index are positively correlated; In the bearing grayscale image, a sub-region where the peeling judgment index is less than or equal to the third preset threshold is taken as the actual peeling region.
2. The method for locating reducer faults based on augmented reality technology according to claim 1, characterized in that: The method for obtaining the initial possibility that each analysis area in the bearing grayscale image is a peeling area based on the gradient value of each edge pixel point in each analysis area, the position distribution of the edge pixel point and its adjacent edge pixel points, and the shape of each analysis area includes: Obtaining the suspected peeling degree of each edge pixel point in each analysis area according to the gradient value of each edge pixel point in each analysis area and the position distribution of the edge pixel point and its adjacent edge pixel points; Calculate the cumulative sum of the suspected peeling degrees of all edge pixels in each analysis area as the edge roughness index of each analysis area; obtain the minimum circumscribed rectangle of each analysis area in the bearing grayscale image, and obtain the shape judgment index of each analysis area in the bearing grayscale image based on the length and width of the minimum circumscribed rectangle; According to the edge roughness index and the shape judgment index, the initial possibility that each analysis area in the bearing grayscale image is a peeling area is obtained; the edge roughness index is positively correlated with the initial possibility, and the shape judgment index is negatively correlated with the initial possibility.
3. The method for locating reducer faults based on augmented reality technology according to claim 2, characterized in that: The method for obtaining the suspected peeling degree of each edge pixel point of each analysis area includes: For each analysis area in the bearing grayscale image, the adjacent previous edge pixel point and the adjacent next edge pixel point of each edge pixel point in the analysis area are recorded as the neighboring points of each edge pixel point in the analysis area; each edge pixel point in the analysis area is connected with each of the neighboring points respectively to obtain the analysis line segment corresponding to the edge pixel point; the angle formed by the two analysis line segments of each edge pixel point in the analysis area is taken as the angle value of the corresponding edge pixel point; Obtain the gradient value of each edge pixel point of the analysis area; obtain the suspected peeling degree of each edge pixel point of each analysis area based on the angle value and the gradient value of each edge pixel point of each analysis area; the angle value is negatively correlated with the suspected peeling degree, and the gradient value is positively correlated with the suspected peeling degree.
4. The method for locating reducer faults based on augmented reality technology according to claim 1, characterized in that: The method of adjusting the initial possibility according to the difference between the grayscale values of the pixels in each analysis area to obtain the corrected possibility that each analysis area in the bearing grayscale image is a peeling area includes: The texture density of each analysis area is obtained according to the difference between the gray values of the pixels in each analysis area; The product of the initial probability that the analysis area is a peeling area and the texture density is normalized to obtain a revised probability that the analysis area is a peeling area.
5. The method for locating reducer faults based on augmented reality technology according to claim 1, characterized in that: The method for screening the suspected first spalling area in the bearing grayscale image based on the correction possibility comprises: In the bearing grayscale image, the analysis area whose correction possibility is greater than the first preset threshold is taken as a suspected first spalling area.
6. The method for locating reducer faults based on augmented reality technology according to claim 1, characterized in that: The method for performing edge detection on the bearing grayscale image is a Sobel operator.
Citation Information
Patent Citations
Stainless steel product quality detection method based on image recognition
CN115375676A
Visual detection method and system for surface defects of battery cover plate
CN117152129A
Tablet computer quality detection method and system
CN117611589A
Image processing method and device therefor
JP2002230562A
Inspection device, image forming apparatus, and inspection method
US20200058115A1
