Motor bearing surface defect identification method based on image processing
By segmenting the motor bearing image into superpixel blocks, correcting and combining feature values, and calculating the probability of crack areas based on the area changes of adjacent frame images, the identification difficulty caused by the similar grayscale value of the light-shaded area and the crack area in the prior art is solved, and the accurate identification of motor bearing surface defects is achieved.
Patent Information
- Application Number
- CN202510468617.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-15
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-04-15
AI Technical Summary
The prior art is difficult to accurately identify surface defects of motor bearings, especially when the illuminated shadow area is similar to the gray value of the crack area, the threshold segmentation algorithm or edge detection algorithm cannot effectively divide the crack area.
Using an image processing-based method, each frame of bearing image is divided into superpixel blocks. By acquiring and correcting the characteristic values of each superpixel block, the crack area is merged, and finally, the probability of it being a crack area is calculated based on the area changes of the target superpixel block in the adjacent frame images.
Effectively identify and merge complete crack areas, avoid the influence of light, and improve the accuracy of crack areas in bearing images.
Smart Images

Figure CN119991707A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and more specifically, to a method for identifying surface defects of motor bearings based on image processing. Background Art
[0002] When the motor is running for a long time, the rolling elements and raceways of the bearings will be constantly subjected to alternating loads. This repeated extrusion and friction will gradually fatigue the metal material of the bearing. At the microscopic level, the metal lattice structure will dislocate and slip. Over time, these tiny damages continue to accumulate. When the fatigue limit of the material is exceeded, microcracks will occur. For example, the bearings of some large motors that run continuously are more likely to have fatigue cracks on the surface after a long period of alternating stress. Cracks will destroy the smoothness of the bearings, increase the friction between the rolling elements and the raceways, and generate more heat. If the heat cannot be dissipated in time, the bearing temperature will continue to rise, further deteriorating the working conditions of the bearings and eventually causing the bearings to burn out. Therefore, it is necessary to detect crack defects on the motor bearings to determine whether the bearings need to be replaced.
[0003] When collecting each frame of bearing images, the influence of light will cause the existence of light shadow area in each frame of bearing images collected, and the grayscale value of the light shadow area is similar to the crack area in the bearing, and the grayscale value in the crack area is also different. Therefore, the threshold segmentation algorithm or edge detection algorithm cannot accurately segment the crack area in each frame of bearing images. Summary of the invention
[0004] In order to solve the problem that the grayscale values of the illuminated shadow area and the crack area of the bearing are similar, and the grayscale values in the crack area are also different, and the crack area in the bearing image cannot be accurately segmented using a threshold segmentation algorithm or an edge detection algorithm, the present invention proposes a motor bearing surface defect recognition method based on image processing, the method comprising the following steps: Collect each frame of bearing image and perform superpixel segmentation to obtain each superpixel block of each frame of bearing image; record any frame of bearing image as the current frame of bearing image; obtain the corrected feature value of each superpixel block of the current frame of bearing image: , is the corrected eigenvalue of the i-th superpixel block; is the variance of the gradient direction of all edge pixels of the i-th superpixel block; as well as is the characteristic value of the i-th superpixel block and the number of reference superpixel blocks; as well as is the grayscale mean of all reference superpixel blocks of the i-th superpixel block and the grayscale mean of the a-th reference superpixel block; as well as Respectively represent the gradient trend angle and the trend angle of the i-th super pixel block; exp() represents an exponential function with a natural constant as the base; || represents the absolute value symbol; According to the modified eigenvalue, the target super pixel block of the current frame bearing image is obtained; Get the probability that the cth target superpixel block of the current frame bearing image is a crack area: ; is the area variance between the cth target superpixel block and its reference area; as well as is the area of the cth target superpixel block and the area of the dth reference area of the cth target superpixel block; D is the number of reference areas of the cth target superpixel block; based on the probability, the crack defect of each frame of the bearing image is obtained.
[0005] The innovation of the present invention lies in dividing each frame of bearing image into various super-pixel blocks, obtaining the characteristic values of each super-pixel block of each frame of bearing image according to the grayscale characteristics of each illuminated shadow area and crack area, and then correcting the characteristic values according to the contrast and direction characteristics of the crack area and the normal area around it to obtain the corrected characteristic values of each super-pixel block of each frame of bearing image, and then merging the super-pixel blocks to merge the crack area as completely as possible, thus solving the incomplete segmentation caused by the different grayscales of the crack area. Next, according to the area change of the target super-pixel block of each frame of bearing image in its adjacent frame of bearing image, the probability that each target super-pixel block of each frame of bearing image is a crack area is obtained, and the accurate crack area is identified, avoiding the influence of light.
[0006] Preferably, obtaining the characteristic value of the i-th super pixel block includes: ; In the formula, Represents the feature value of the i-th superpixel block of the pin axis image of the current frame; as well as Represents the gradient mean of the pixel points on the edge of the i-th super-pixel block of the pin axis image of the current frame and the grayscale mean of the i-th super-pixel block; as well as Represents the gradient mean and grayscale mean in the current pin image; norm() represents the normalization function; It is convenient to distinguish the crack area from the normal area according to the characteristic value.
[0007] Preferably, the step of obtaining each superpixel block of each frame of the bearing image includes: The number of super-pixel blocks N is preset, and each frame of the bearing image is segmented into super-pixels using a super-pixel segmentation algorithm to obtain a number of super-pixel blocks.
[0008] This facilitates the subsequent merging and analysis of superpixel blocks.
[0009] Preferably, obtaining the reference super pixel block of the i-th super pixel block includes: A difference threshold T is preset to obtain the adjacent superpixel blocks of the i-th superpixel block of the current frame bearing image. If the absolute value of the difference between the characteristic values of the i-th superpixel block of the current frame bearing image and its j-th adjacent superpixel block is greater than or equal to the difference threshold T, the j-th adjacent superpixel block of the i-th superpixel block of the current frame bearing image is recorded as the reference pixel block of the i-th superpixel block of the current frame bearing image.
[0010] It is convenient to correct the characteristic value of the super pixel block according to the grayscale contrast between the super pixel block and its reference pixel block.
[0011] Preferably, the acquisition of the strike angle includes: Get the similar pixel block of the i-th superpixel block of the current frame bearing image, merge the i-th superpixel block of the current frame bearing image with its similar pixel block to get the target area, use the morphological processing method to extract the skeleton of the target area, use the least squares method to fit the pixel points on the skeleton of the target area into a straight line, and get the angle between the straight line and the horizontal axis as the strike angle of the i-th superpixel block of the current frame bearing image.
[0012] Preferably, the acquisition of the gradient trend angle of the i-th super pixel block includes: Get the gradient directions of all edge pixels of the i-th superpixel block of the current frame bearing image, and take the angle between the gradient direction with the highest number of occurrences and the horizontal axis as the gradient direction angle of the i-th superpixel block of the current frame bearing image.
[0013] Preferably, the step of obtaining a target superpixel block of a bearing image of a current frame includes: A preset eigenvalue threshold T1 is set. If the corrected eigenvalue of any superpixel block of the current frame bearing image is greater than the eigenvalue threshold T1, the superpixel block is recorded as a representative superpixel block, and all adjacent representative superpixel blocks are merged and recorded as the target superpixel block of the current frame bearing image.
[0014] Preferably, obtaining the reference area of the c-th target superpixel block includes: The r frame bearing images before the current frame bearing image and the r frame bearing images after the current frame bearing image are recorded as adjacent frame bearing images of the current frame bearing image, the central pixel point of the c-th target superpixel block of the current frame bearing image is corresponded to any of its adjacent frame bearing images, and the target superpixel block or superpixel block where the central pixel point is located in the adjacent frame bearing image is recorded as a reference area of the c-th target superpixel block of the current frame bearing image, and several reference areas of the c-th target superpixel block of the current frame bearing image are obtained.
[0015] It is convenient to subsequently reflect the area change of the target superpixel block in its adjacent frame pin shaft image according to the area change of the target superpixel block and its reference area in each frame of the bearing surface image, so as to obtain the probability that each target superpixel block in each frame of the bearing surface image is a crack area.
[0016] Preferably, the collecting of each frame of bearing image comprises: The bearing to be tested on the motor is rotated one circle, and a video of the bearing rotation is captured by a camera, which is recorded as a bearing video. The bearing video is processed by dividing the frames to obtain an RGB image of each frame of the bearing. Each frame of the bearing RGB image is grayscaled and recorded as a bearing image of each frame.
[0017] The present invention has the following beneficial effects: the purpose of the present invention is to divide each frame of bearing image into various super-pixel blocks, obtain the characteristic values of each super-pixel block of each frame of bearing image according to the grayscale characteristics of each illuminated shadow area and crack area, and then correct the characteristic values according to the contrast and direction characteristics of the crack area and its surrounding normal area to obtain the corrected characteristic values of each super-pixel block of each frame of bearing image, and then merge the super-pixel blocks to merge the crack area as completely as possible, thereby solving the incomplete segmentation caused by the different grayscales of the crack area, and then according to the area change of the target super-pixel block of each frame of bearing image in its adjacent frame of bearing image, obtain the probability that each target super-pixel block of each frame of bearing image is a crack area, identify the accurate crack area, and avoid the influence of light. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein: Figure 1 It is a flowchart of the steps of a method for identifying surface defects of a motor bearing based on image processing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0021] See also Figure 1 , which shows a flowchart of a method for identifying surface defects of a motor bearing based on image processing provided by an embodiment of the present invention, the method comprising the following steps: S001. Collect each frame of bearing image.
[0022] In the embodiment of the present invention, the bearing to be tested on the motor is rotated one circle, and a video of the bearing rotation is taken with a camera, which is recorded as a bearing video. The bearing video is processed by frame division to obtain an RGB image of each frame of the bearing. Each frame of the bearing RGB image is grayed and recorded as a bearing image of each frame. It should be noted that the bearing images of adjacent frames are continuous. S002. Perform superpixel segmentation on each frame of the bearing image to obtain each superpixel block of each frame of the bearing image, and obtain the characteristic value of each superpixel block of each frame of the bearing image based on the grayscale characteristics of each superpixel block; correct the characteristic value of each superpixel block to obtain the corrected characteristic value of each superpixel block of each frame of the bearing image.
[0023] It should be noted that when collecting each frame of bearing images, the influence of lighting will cause the existence of lighting shadow areas in each frame of bearing images collected, and the grayscale values of the lighting shadow areas and the crack areas in the bearings are similar, and the grayscale values in the crack areas are also different. Therefore, the use of threshold segmentation algorithms or edge detection algorithms cannot accurately segment the crack areas in the bearing images. Therefore, in an embodiment of the present invention, a larger number of superpixel blocks are first set, and superpixel segmentation is performed on each frame of bearing images. The crack areas are divided into separate superpixel blocks as much as possible, and the features of each superpixel block are subsequently analyzed and merged, and the complete crack areas are merged together. Finally, the accurate crack area is obtained based on the area performance of the crack area in adjacent frames of bearing images.
[0024] In the embodiment of the present invention, the number of super pixel blocks N is preset, and each frame of the bearing image is subjected to super pixel segmentation using a super pixel segmentation algorithm to obtain a plurality of super pixel blocks; In an embodiment of the present invention, the preset number of superpixel blocks N=100. In other embodiments, the implementer may preset the value of the superpixel block number N according to the specific implementation situation. It should be noted that when presetting the number of superpixel blocks, a larger number should be preset to divide the crack area into each superpixel block as much as possible, so as to facilitate the subsequent merging and analysis of each superpixel block.
[0025] It should be noted that it is known that the grayscale value of the crack area is smaller than that of the normal area, and the gradient value of the edge of the crack area is larger than that of the normal area. Therefore, based on this feature, the characteristic value of each superpixel block of each frame of the bearing image is first obtained.
[0026] Record any frame bearing image as the current frame bearing image, and obtain the feature value of each superpixel block of each frame bearing image: ; In the formula, Represents the feature value of the i-th superpixel block of the bearing image of the current frame; Represents the mean gradient of the pixel points on the edge of the i-th superpixel block of the bearing image of the current frame; Represents the mean gradient in the bearing image of the current frame; Represents the grayscale mean of the bearing image of the current frame; Represents the grayscale mean of the i-th superpixel block of the current frame bearing image; norm() represents the normalization function; Represents the grayscale feature of the i-th superpixel block of the bearing image of the current frame. It is known that the grayscale value of the crack area is smaller than that of the normal area. Therefore, When the value of is large, it means that the gray value of the i-th superpixel block is small. At this time, the i-th superpixel block is more likely to be a crack area, that is, the characteristic value of the i-th superpixel block is large; represents the gradient feature of the pixel point in the i-th superpixel block. It is known that the gradient value of the crack defect edge is larger than that of the normal area. Therefore, if The larger the value and the larger the eigenvalue, the greater the possibility that the i-th superpixel block is the crack area, and the larger the eigenvalue of the i-th superpixel block.
[0027] It should be noted that the above steps obtain the characteristic value of each superpixel block of each frame of the bearing image, that is, the larger the characteristic value of the superpixel block, the more likely the superpixel block is to be a crack area. However, due to the influence of illumination when obtaining each frame of the bearing image, an illuminated shadow area will appear in each frame of the bearing image, and the grayscale values of the illumination-affected area and the crack area are similar. Therefore, it is difficult to distinguish the illuminated shadow area from the crack area based solely on the characteristic value of the superpixel block.
[0028] It should be further explained that the grayscale contrast between the known illuminated shadow area and the normal area around it is relatively low, especially in the illuminated shadow area, the grayscale changes are relatively gentle, and the edge shape of the illuminated shadow area is usually irregular. Affected by the illumination angle and the surrounding environment, the gradient direction of the edge pixel points in the illuminated shadow area is relatively scattered, and there is no obvious unified direction; while the grayscale contrast between the crack area and the normal area around it is high, which can clearly highlight the shape and boundary of the crack, and the gradient direction of the edge pixel points in the crack area is relatively consistent. Therefore, in an embodiment of the present invention, firstly, according to the difference in eigenvalues between the superpixel blocks of each frame of the bearing image, the reference pixel block of each superpixel block of each frame of the bearing image is obtained, that is, the superpixel block and its reference pixel block are not similar. Therefore, if the grayscale contrast between any superpixel block of any frame of the bearing image and its reference superpixel block is greater and the eigenvalue of the superpixel block is greater, it means that the superpixel block of the frame of the bearing image is more likely to be a crack area; Since the gradient direction of the edge of the crack area is usually perpendicular to the direction of the crack, this is because at the edge of the crack, the change in grayscale value is mainly along the direction perpendicular to the crack. It is necessary to analyze the direction of the crack area and compare it with the gradient direction of the edge of the crack area. Therefore, first, based on the difference in eigenvalues between the superpixel blocks of each frame of the bearing image, similar pixel blocks of each superpixel block of each frame of the bearing image are obtained, that is, the similarity between the superpixel block and its similar pixel block, and then the direction of the superpixel block is analyzed based on the superpixel block and its similar pixel block to identify the crack area.
[0029] In an embodiment of the present invention, a difference threshold value T is preset, and the adjacent superpixel blocks of the i-th superpixel block of the current frame bearing image are obtained. If the absolute value of the difference between the characteristic values of the i-th superpixel block of the current frame bearing image and its j-th adjacent superpixel block is less than the difference threshold value T, the j-th adjacent superpixel block of the i-th superpixel block of the current frame bearing image is recorded as a similar pixel block of the i-th superpixel block of the current frame bearing image. Otherwise, the j-th adjacent superpixel block of the i-th superpixel block of the current frame bearing image is recorded as a reference pixel block of the i-th superpixel block of the current frame bearing image. In an embodiment of the present invention, the difference threshold value T is preset to 0.2. In other embodiments, the implementer may preset the value of the difference threshold value T according to the specific implementation method.
[0030] The i-th superpixel block of the current frame bearing image is merged with its similar pixel blocks to obtain the target area, and the skeleton of the target area is extracted using the morphological processing method. The pixel points on the skeleton of the target area are fit into a straight line using the least squares method, and the angle between the straight line and the horizontal axis is obtained as the direction angle of the i-th superpixel block of the current frame bearing image. It should be noted that if the superpixel block has no similar pixel block, only the superpixel block needs to be analyzed.
[0031] Get the gradient directions of all edge pixels of the i-th superpixel block of the current frame bearing image, and take the angle between the gradient direction with the highest number of occurrences and the horizontal axis as the gradient direction angle of the i-th superpixel block of the current frame bearing image.
[0032] Get the corrected feature value of each superpixel block of the current frame bearing image: ; In the formula, Represents the corrected eigenvalue of the i-th superpixel block of the bearing image of the current frame; Represents the feature value of the i-th superpixel block of the bearing image of the current frame; Represents the grayscale mean of the ath reference superpixel block of the i-th superpixel block of the bearing image of the current frame; The grayscale mean of all reference superpixel blocks representing the i-th superpixel block of the bearing image of the current frame; The number of reference superpixel blocks representing the i-th superpixel block of the bearing image of the current frame; Represents the variance of the gradient direction of all edge pixels of the i-th superpixel block of the bearing image of the current frame; Represents the gradient direction angle of the i-th superpixel block of the current frame bearing image; Represents the direction angle of the i-th superpixel block of the bearing image of the current frame; exp() represents an exponential function with a natural constant as the base.
[0033] The larger the value of is, the more likely the i-th superpixel block of the bearing image in the current frame is to be a crack area, and the larger its corrected eigenvalue is; Represents the grayscale contrast between the i-th superpixel block of the current frame bearing image and its reference superpixel block. The larger its value is, the more likely the i-th superpixel block of the current frame bearing image is to be a crack area, so its corrected eigenvalue is larger; The smaller is, the more consistent the gradient direction of the edge pixels of the i-th superpixel block of the current frame bearing image is, which means that the i-th superpixel block of the current frame bearing image is more likely to be a crack area, so its corrected eigenvalue is larger; Represents the trend feature of the i-th superpixel block in the bearing image of the current frame. The smaller the value, the more likely the i-th superpixel block is to be a crack area.
[0034] The eigenvalue threshold T1 is preset. If the corrected eigenvalue of any superpixel block of the current frame bearing image is greater than the eigenvalue threshold T1, it means that the superpixel block of the current frame bearing image is likely to be a crack area, and the superpixel block is recorded as a representative superpixel block, and all adjacent representative superpixel blocks are merged and recorded as a target superpixel block. In an embodiment of the present invention, the eigenvalue threshold T1 is preset to 0.6. In other embodiments, the implementer can preset the value of the eigenvalue threshold T1 according to the specific implementation method.
[0035] At this point, the target superpixel block of each frame of the bearing image is obtained.
[0036] S003. According to the area change of the target super pixel block of each frame of the bearing image in its adjacent frame of the bearing image, obtain the probability that each target super pixel block of each frame of the bearing image is a crack area.
[0037] It should be noted that it is known that the target superpixel block in each frame of the bearing image may be a crack area, and the target superpixel block is obtained by analyzing the grayscale features in the image and setting a threshold. If the target superpixel block in the bearing image is directly used as the crack area, it is inaccurate. In addition, since each frame of the bearing image is acquired when the bearing is rolled, and the crack appears or disappears when the bearing rotates, the area of the crack area in the consecutive frames of the bearing image is inconsistent. However, the illumination of each frame of the bearing image is consistent. Because the area change of the illuminated shadow area in each frame of the bearing image is small, the probability that each target superpixel block in each frame of the bearing image is a crack area is obtained first according to the area change of each target superpixel block in each frame of the bearing image in its adjacent frame of the bearing image.
[0038] In an embodiment of the present invention, the r frame bearing images before the current frame bearing image and the r frame bearing images after the current frame bearing image are recorded as adjacent frame bearing images of the current frame bearing image, and the central pixel point of the cth target superpixel block of the current frame bearing image is corresponded to any of its adjacent frame bearing images, and the target superpixel block or superpixel block where the central pixel point is located in the adjacent frame bearing image is recorded as a reference area of the cth target superpixel block of the current frame bearing image. Similarly, several reference areas of the cth target superpixel block of the current frame bearing image are obtained.
[0039] It should be noted that the preset number of adjacent frame images r=4, and in other embodiments, implementers may preset the value of the number of adjacent frame images r according to specific implementation conditions.
[0040] Get the probability that each target superpixel block in the current frame bearing image is a crack area: ; In the formula, Represents the probability that the cth target superpixel block of the bearing image of the current frame is a crack area; Represents the variance of the area of the cth target superpixel block of the current frame bearing image and its reference area; Represents the area of the cth target superpixel block in the current frame bearing image; represents the area of the reference region of the cth target superpixel block of the current frame bearing image; D represents the number of reference regions of the cth target superpixel block of the current frame bearing image; Represents the area change rate of the cth target superpixel block of the current frame bearing image in its adjacent frame bearing image. The larger the value, the greater the probability that the cth target superpixel block of the current frame bearing image is a crack area; Represents the area consistency of the cth target superpixel block of the current frame bearing image in its adjacent frame bearing image. The larger the value, the greater the probability that the cth target superpixel block of the current frame bearing image is a crack area.
[0041] S004. Obtain the crack defect of each frame of the bearing image according to the probability that each target superpixel block of each frame of the bearing image is a crack area.
[0042] In an embodiment of the present invention, the preset probability threshold T3=0.7. If the probability that any target superpixel block of any frame bearing image is a crack area is greater than or equal to the probability threshold T3, the target superpixel block of the frame bearing image is a crack area, and the staff is notified to replace the current bearing in time. In other embodiments, the implementers may preset the value of the probability threshold T3 according to the specific implementation method.
[0043] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying surface defects of motor bearings based on image processing, characterized in that: include: Collect each frame of bearing image and perform superpixel segmentation to obtain each superpixel block of each frame of bearing image; record any frame of bearing image as the current frame of bearing image; obtain the corrected feature value of each superpixel block of the current frame of bearing image: , is the corrected eigenvalue of the i-th superpixel block; is the variance of the gradient direction of all edge pixels of the i-th superpixel block; as well as is the characteristic value of the i-th superpixel block and the number of reference superpixel blocks; as well as is the grayscale mean of all reference superpixel blocks of the i-th superpixel block and the grayscale mean of the a-th reference superpixel block; as well as Respectively represent the gradient trend angle and the trend angle of the i-th super pixel block; exp() represents an exponential function with a natural constant as the base; || represents the absolute value symbol; According to the modified eigenvalue, the target super pixel block of the current frame bearing image is obtained; Get the probability that the cth target superpixel block of the current frame bearing image is a crack area: ; is the area variance between the cth target superpixel block and its reference area; as well as is the area of the cth target superpixel block and the area of the dth reference area of the cth target superpixel block; D is the number of reference areas of the cth target superpixel block; Based on the probability, the crack defect of each frame of the bearing image is obtained.
2. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The acquisition of the characteristic value of the i-th super pixel block includes: ; In the formula, Represents the feature value of the i-th superpixel block of the pin axis image of the current frame; as well as Represents the gradient mean of the pixel points on the edge of the i-th super-pixel block of the pin axis image of the current frame and the grayscale mean of the i-th super-pixel block; as well as Represents the gradient mean and grayscale mean in the current pin image; norm() represents the normalization function.
3. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The step of obtaining each super pixel block of each frame of the bearing image comprises: The number of super-pixel blocks N is preset, and each frame of the bearing image is segmented into super-pixels using a super-pixel segmentation algorithm to obtain a number of super-pixel blocks.
4. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The obtaining of the reference super pixel block of the i-th super pixel block comprises: A difference threshold T is preset to obtain the adjacent superpixel blocks of the i-th superpixel block of the current frame bearing image. If the absolute value of the difference between the characteristic values of the i-th superpixel block of the current frame bearing image and its j-th adjacent superpixel block is greater than or equal to the difference threshold T, the j-th adjacent superpixel block of the i-th superpixel block of the current frame bearing image is recorded as the reference pixel block of the i-th superpixel block of the current frame bearing image.
5. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The acquisition of the strike angle includes: Get the similar pixel block of the i-th superpixel block of the current frame bearing image, merge the i-th superpixel block of the current frame bearing image with its similar pixel block to get the target area, use the morphological processing method to extract the skeleton of the target area, use the least squares method to fit the pixel points on the skeleton of the target area into a straight line, and get the angle between the straight line and the horizontal axis as the strike angle of the i-th superpixel block of the current frame bearing image.
6. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The acquisition of the gradient trend angle of the i-th super pixel block includes: Get the gradient directions of all edge pixels of the i-th superpixel block of the current frame bearing image, and take the angle between the gradient direction with the highest number of occurrences and the horizontal axis as the gradient direction angle of the i-th superpixel block of the current frame bearing image.
7. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The step of obtaining a target super pixel block of a bearing image of a current frame includes: A preset eigenvalue threshold T1 is set. If the corrected eigenvalue of any superpixel block of the current frame bearing image is greater than the eigenvalue threshold T1, the superpixel block is recorded as a representative superpixel block, and all adjacent representative superpixel blocks are merged and recorded as the target superpixel block of the current frame bearing image.
8. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The obtaining of the reference area of the c-th target superpixel block comprises: The r frame bearing images before the current frame bearing image and the r frame bearing images after the current frame bearing image are recorded as adjacent frame bearing images of the current frame bearing image, the central pixel point of the c-th target superpixel block of the current frame bearing image is corresponded to any of its adjacent frame bearing images, and the target superpixel block or superpixel block where the central pixel point is located in the adjacent frame bearing image is recorded as a reference area of the c-th target superpixel block of the current frame bearing image, and several reference areas of the c-th target superpixel block of the current frame bearing image are obtained.
9. The method for identifying surface defects of motor bearings based on image processing according to claim 1, characterized in that: The collecting of each frame of bearing image comprises: The bearing to be tested on the motor is rotated one circle, and a video of the bearing rotation is captured by a camera, which is recorded as a bearing video. The bearing video is processed by dividing the frames to obtain an RGB image of each frame of the bearing. Each frame of the bearing RGB image is grayscaled and recorded as a bearing image of each frame.
Citation Information
Patent Citations
Bearing wear degree evaluation method based on image processing
CN114140462A
Gear defect detection method and system based on computer vision
CN114723701A
Road quality identification and detection method
CN115457041A
Remote sensing image-based land parcel segmentation method
CN115661173A
Intelligent defect detection method for aero-engine parts based on machine vision
CN117522870A