Method and system for detecting surface damage of brake pad based on machine vision

By combining gradient interaction field and linear propagation potential energy model with morphological processing techniques, the accuracy problem of damage detection under surface noise interference of brake pads was solved, and high-precision damage feature extraction and detection were achieved.

CN121724971BActive Publication Date: 2026-06-23SHANDONG XINYI AUTO PARTS MFG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANDONG XINYI AUTO PARTS MFG CO LTD
Filing Date
2025-12-23
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively distinguish noise points from actual damage features on brake pad surfaces, especially for microcracks, where the detection accuracy and robustness are insufficient and significantly affected by lighting and surface undulations.

Method used

The principle of gradient interaction field is used to obtain structural saliency. Combined with the linear propagation potential energy model and the maximum inter-class variance method, the path search is performed along the local principal direction by calculating the gradient magnitude and orientation angle of the pixel. The threshold segmentation and connected component screening are combined with morphological processing techniques.

Benefits of technology

It improves the accuracy and robustness of brake pad surface damage detection, effectively suppresses background noise interference, connects discontinuous crack features, and ensures the stability and accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121724971B_ABST
    Figure CN121724971B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of image data processing, and particularly relates to a brake pad surface damage detection method and system based on machine vision, which comprises the following steps: acquiring an image of the brake pad surface and calculating the gradient vector of each pixel point; constructing a gradient interaction field based on the strength of the gradient amplitude and the gradient direction angle to obtain the structural saliency of each pixel point; performing path search along the local principal direction, accumulating the structural saliency and direction consistency weight of the pixel points on the path to obtain the linear propagation potential of each pixel point; and performing adaptive threshold segmentation and morphological processing based on the linear propagation potential map to realize accurate detection of the damage area on the brake pad surface. The present application solves the technical problems of strong noise interference on the brake pad surface and difficulty in detecting the intermittent characteristics of small cracks, and improves the robustness and accuracy of damage detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image data processing technology. More specifically, this invention relates to a machine vision-based method and system for detecting surface damage on brake pads. Background Technology

[0002] In the field of Digital Image Processing (DIP), machine vision (MV)-based industrial inspection technology has been widely applied to the quality control of precision parts. Brake pads, as a core component of the automotive braking system, directly impact driving safety due to their surface quality. On existing brake pad production lines, surface damage detection primarily faces complex environmental interference. Because the surface of brake pads is made of various composite materials, containing a large number of highly reflective metallic friction material particles, these particles generate numerous randomly distributed bright spots and noise in grayscale images captured by industrial cameras.

[0003] Traditional image processing methods typically employ edge detection or simple gradient thresholding algorithms to extract surface damage. However, the background texture of brake pad surfaces is highly complex, and the gradient amplitude generated by metal particles is often comparable to that of real microcracks. This makes amplitude-based detection algorithms difficult to distinguish between isolated noise points and genuine structural features. Furthermore, real surface damage, such as microcracks, often exhibits discontinuous features in images due to the influence of illumination angle and surface undulations, lacking spatial connectivity. This weak connectivity of micro-damage features results in traditional algorithms being insufficient in stitching together crack fragments and suppressing background interference. Consequently, the detection accuracy and system robustness fail to meet the demands of high-precision industrial quality inspection. Therefore, how to accurately extract topologically continuous damage features from a noisy background and effectively enhance discontinuous cracks has become a research focus in the field of component surface damage detection. Summary of the Invention

[0004] To address the technical problems of strong surface noise interference and difficulty in detecting discontinuous microcrack features on brake pads, the present invention provides solutions in the following aspects.

[0005] In a first aspect, the present invention provides a machine vision-based method for detecting surface damage on brake pads, comprising: acquiring and preprocessing an image of the brake pad surface; calculating the gradient magnitude and gradient direction angle of each pixel in the preprocessed image; for any target pixel, setting an interaction window, and obtaining the structural saliency of the target pixel based on the gradient magnitude and gradient direction angle of the target pixel and its neighboring pixels within the interaction window; obtaining the local principal direction of the target pixel, performing path search on the structural saliency map along the positive and negative directions of the local principal direction, and obtaining the linear propagation potential energy of the target pixel based on the structural saliency of the pixels on the search path and the angular consistency of the local principal direction; performing threshold segmentation on the linear propagation potential energy map based on the Otsu's method to obtain a binarized image, and performing morphological closing operation and connected component filtering on the binarized image to obtain the brake pad surface damage region.

[0006] This invention calculates the gradient magnitude and gradient direction angle of each pixel and further obtains structural saliency and linear propagation potential energy. It uses the gradient cooperation relationship between pixels to suppress background texture interference caused by metal particles on the brake pad surface. At the same time, it uses the cumulative characteristics of potential energy along the local principal direction to connect discontinuous micro-crack features, thereby realizing the detection of damaged areas on the brake pad surface in complex backgrounds and improving the robustness of detection.

[0007] Preferably, the step of acquiring and preprocessing the image of the brake pad surface includes: applying a Gaussian kernel with a size of [missing information]. Standard deviation is A Gaussian filter is used to smooth the image.

[0008] This invention uses a Gaussian filter of a specific size and standard deviation to smooth the image. By weighted averaging of the image grayscale data, it smooths the noise caused by tiny rough particles on the brake pad surface while preserving the main damage edge features, thus providing a better data foundation for the subsequent accurate calculation of gradient magnitude and gradient direction angle.

[0009] Preferably, the structural saliency satisfies the expression: ;in, Indicates coordinates as The structural saliency of the target pixel; Representing the interaction window Remove target pixels The total number of neighboring pixels outside of the specified range; Represents the interaction window; This represents the neighboring pixels within the interaction window; This represents the gradient magnitude of the target pixel. Represents neighboring pixels The gradient magnitude; Indicates the gradient direction angle of the target pixel; Represents neighboring pixels The gradient direction angle; It is a constant used to prevent the denominator from being zero.

[0010] This invention comprehensively considers the intensity affinity of gradient magnitude and the synergy of gradient direction angle when obtaining structural saliency. It uses the difference in gradient characteristics between neighboring pixels and target pixels to evaluate their structural importance, thereby enhancing the real damage features with spatial regularity and suppressing the random background texture, thus highlighting the potential damage features on the brake pad surface.

[0011] Preferably, the constant for preventing the denominator from being zero is set to... The size of the interaction window is set to... .

[0012] Preferably, the local principal direction of the target pixel is the direction perpendicular to the gradient direction angle of the target pixel.

[0013] Preferably, the linear propagation potential energy satisfies the expression: ;in, Indicates coordinates as The linear propagation potential energy of the target pixel; Indicates the structural saliency of the target pixel; Indicates the length of a one-sided search path; Indicates the first position on the search path along the positive direction of the local principal direction. 1 pixel; Indicates the first position on the search path in the opposite direction of the local principal direction. 1 pixel; Represents pixels Structural salience; Represents pixels Structural salience; The angle representing the local principal direction of the target pixel; Represents pixels The angle of the local principal direction; Represents pixels The angle of the local principal direction; The base of the natural logarithm; Represents the absolute value symbol.

[0014] This invention searches for paths in both the positive and negative directions along the local principal direction and obtains linear propagation potential energy. It uses angle consistency weights to accumulate the structural saliency on the search path, so that discontinuous crack features with spatial extension trends can obtain higher potential energy values, thereby reducing the missed detection caused by weak or discontinuous damage features on the brake pad surface.

[0015] Preferably, the length of the one-sided search path is set to Pixel.

[0016] Preferably, the step of thresholding the linear propagation potential map to obtain a binarized image based on the maximum inter-class variance method includes: calculating the optimal segmentation threshold of the linear propagation potential map using the maximum inter-class variance method; marking pixels in the linear propagation potential map that are greater than the optimal segmentation threshold as candidate damage points, and marking pixels that are less than or equal to the optimal segmentation threshold as background, thereby obtaining a binarized image.

[0017] Preferably, the morphological closing operation and connected component filtering of the binarized image includes: selecting... Perform morphological closing operations on the rectangular kernel; filter out areas smaller than Pixels or aspect ratio smaller than Connected components.

[0018] This invention performs morphological closing operations and connected component filtering on binarized images. It uses rectangular kernels to fill the tiny holes inside the damaged area and connect adjacent breakpoints. At the same time, it filters out pseudo-damage interference that does not conform to the crack morphology based on the area and aspect ratio features of the connected components, ensuring that the damaged area on the surface of the brake pad in the final output is more consistent with the physical characteristics of real damage in terms of shape and size.

[0019] Secondly, the present invention provides a machine vision-based brake pad surface damage detection system, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned machine vision-based brake pad surface damage detection method is implemented.

[0020] By adopting the above technical solution, the above-mentioned machine vision-based brake pad surface damage detection method is generated into a computer program and stored in a memory for loading and execution by a processor. This allows for the creation of a terminal device based on the memory and processor, making it convenient to use.

[0021] The beneficial effects of this invention are as follows:

[0022] This invention utilizes the principle of gradient interaction fields to obtain structural saliency. By evaluating the synergistic relationship between gradient magnitude and direction between pixels, it reduces noise interference caused by the reflection of metal friction material particles on the brake pad surface, enabling the detection algorithm to focus more on real damage with specific structural features.

[0023] This invention introduces a linear propagation potential energy model to process the structural saliency map, searches for and integrates the energy along the local principal direction of the texture, and numerically connects the originally discontinuously distributed micro-cracks or scratches, thereby improving the ability to detect weak and discontinuous damage on the brake pad surface.

[0024] This invention combines the Otsu's method with morphological processing techniques to analyze linear propagation potential energy maps, adaptively obtains segmentation thresholds, and performs geometric screening on the binarized connected components. This reduces the uncertainty caused by manually set parameters and ensures the stability of brake pad surface damage detection results under different production environments. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating the machine vision-based brake pad surface damage detection method of the present invention;

[0026] Figure 2 This is a schematic diagram showing the grayscale image after noise reduction preprocessing;

[0027] Figure 3 This is a schematic diagram illustrating the distribution of structural saliency.

[0028] Figure 4 This is a schematic diagram illustrating the damage identification results. Detailed Implementation

[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0031] This invention discloses a machine vision-based method for detecting surface damage on brake pads, referring to... Figure 1 This includes steps S1-S4:

[0032] S1: Acquire an image of the brake pad surface and preprocess it; calculate the gradient magnitude and gradient direction angle of each pixel in the preprocessed image.

[0033] It should be noted that in order to extract the subtle features of the brake pad surface from the image, this invention requires acquiring high-quality image data and converting it into gradient field data that can reflect the drastic changes in grayscale. Since the brake pad surface contains a large number of tiny friction material particles, directly processing the original image would introduce a significant amount of noise. Therefore, this invention first calculates gradient information as the basis for subsequent texture analysis.

[0034] Specifically, raw images of the brake pad surface are acquired using an industrial camera and a coaxial light source, and then converted into single-channel images. Gaussian smoothing is then applied to the images to obtain the smoothed images. The Gaussian kernel size for the smoothing process is set to... Standard deviation Set as .

[0035] Furthermore, for any pixel in the image, the Sobel operator is used to calculate its gray-level derivatives in the horizontal and vertical directions, respectively, to obtain the horizontal and vertical gradient components of that pixel. These components form the gradient vector of the pixel, and the gradient magnitude and gradient direction angle are calculated. The gradient vectors of all pixels constitute the gradient vector field of the entire image.

[0036] For example, Figure 2 This is a grayscale illustration after denoising preprocessing. The image shows the true state of the surface to be detected, revealing uneven background texture. Through enhancement processing, the crack details in the image become clearer, and the contrast between the crack area and the surrounding background is improved, providing a clear base image for accurate crack identification.

[0037] S2: For any target pixel, set an interaction window, and obtain the structural saliency of the target pixel based on the gradient magnitude and gradient direction angle of the target pixel and its neighboring pixels within the interaction window.

[0038] It should be noted that traditional gradient magnitude methods or vector summation methods are easily affected by noise, as some bright metal particles on the brake pad surface can also generate extremely large gradient amplitudes. To more fundamentally distinguish between disordered textures and ordered damage through physical properties, this invention introduces the concept of a gradient interaction field. This invention treats each pixel as a particle with a specific gradient amplitude and gradient direction angle, calculating the cooperative interaction force between the target pixel and all its neighboring pixels within its interaction window. This interaction force is significantly enhanced only when neighboring pixels are close to the target pixel in gradient amplitude and highly cooperative in gradient direction angle, exhibiting parallelism or antiparallelism, thereby effectively suppressing isolated bright noise and cluttered texture backgrounds.

[0039] Specifically, for any target pixel in the image, an interaction window centered on that target pixel is defined to obtain the structural saliency of that target pixel. The size of the interaction window is set to... .

[0040] The structural saliency satisfies the expression:

[0041]

[0042] In the formula, Indicates coordinates as The structural saliency of the target pixel; Representing the interaction window Remove target pixels The total number of neighboring pixels outside of the specified range; Represents the interaction window; This represents the neighboring pixels within the interaction window; This represents the gradient magnitude of the target pixel. Represents neighboring pixels The gradient magnitude; Indicates the gradient direction angle of the target pixel; Represents neighboring pixels The gradient direction angle; It is a constant to prevent the denominator from being zero; an empirical value. .

[0043] In the formula, It is a normalization coefficient used to eliminate the influence of window size on the magnitude of the calculation result; It is a normalized weight based on the harmonic average principle. When the gradient magnitude of the target pixel is closer to that of its neighboring pixels, this term approaches 1. When the gradient magnitudes of the two pixels are significantly different, this term approaches 0. This results in the suppression of isolated, highly reflective particle noise. The square of the cosine is used to evaluate the consistency of direction. The squaring operation eliminates the positive and negative differences in direction, so that gradients that are 180 degrees apart can also be regarded as highly coordinated, which leads to the enhancement of the features of the edges on both sides of the crack.

[0044] For example, Figure 3 This is a schematic diagram of the structural saliency distribution. The bright areas represent the crack skeleton with significant extension, while the dark areas represent irregular background noise that has been smoothed and suppressed. This invention effectively filters out the interference of fine surface textures and preliminarily locates the main structural morphology of the crack.

[0045] S3: Obtain the local principal direction of the target pixel, perform path search on the structural saliency map along the positive and negative directions of the local principal direction, and obtain the linear propagation potential of the target pixel based on the structural saliency of the pixels on the search path and the angular consistency of the local principal direction.

[0046] It should be noted that, after structural saliency calculations, most random textures in the image have been suppressed, but discontinuous damage features or tiny scratch fragments may still exist. Real cracks or scratches have significant topological continuity in space. To stitch together fracture features and further amplify real damage, this invention utilizes the concept of linearly propagating potential energy, performing energy integration along the potential extension direction of the texture.

[0047] Specifically, for any target pixel, the local principal direction of that target pixel is obtained. The local principal direction is the direction perpendicular to the gradient direction angle of that target pixel.

[0048] Furthermore, along the positive and negative directions of the local principal direction, path searches are performed on the structural saliency map, and the weighted cumulative value of the structural saliency of all pixels on the search path is calculated to obtain the linear propagation potential of the target pixel. The structural saliency map is an image composed of the structural saliency of all pixels.

[0049] The linear propagation potential energy satisfies the expression:

[0050]

[0051] In the formula, Indicates coordinates as The linear propagation potential energy of the target pixel; Indicates the structural saliency of the target pixel; Indicates the length of a one-sided search path; Indicates the first position on the search path along the positive direction of the local principal direction. 1 pixel; Indicates the first position on the search path in the opposite direction of the local principal direction. 1 pixel; Represents pixels Structural salience; Represents pixels Structural salience; The angle representing the local principal direction of the target pixel; Represents pixels The angle of the local principal direction; Represents pixels The angle of the local principal direction; The base of the natural logarithm; Represents the absolute value symbol.

[0052] In the formula, if the pixels on the search path not only have high structural saliency, but also have an angle deviation between the local principal direction and the local principal direction of the target pixel, then... If the exponent is very small, then the exponent term Approaching 1 results in a linear propagation potential energy. Significant cumulative enhancement is achieved. This means that the linear propagation potential energy is conducted in space, allowing continuous real damage to obtain extremely high potential energy values, while isolated pseudo-features are suppressed because they cannot achieve path accumulation.

[0053] It should be further noted that the length of the unilateral search path in this invention... Set as Pixels. This length is set based on the discontinuous intervals of a typical crack. If the length is too short, the broken crack segments cannot be stitched together; if the length is too long, it will increase the computational load and may introduce incorrect connections.

[0054] S4: Threshold segmentation of the linear propagation potential energy map is performed based on the Otsu's method to obtain a binarized image. Morphological closing operation and connected component filtering are then performed on the binarized image to obtain the damage area on the brake pad surface.

[0055] It should be noted that, after potential energy accumulation, the actual damaged area appears as a bright connected region in the linear propagation potential energy map, while background texture and noise are significantly suppressed to low grayscale areas. At this point, the contrast between the damaged features and the background has been greatly increased, allowing for segmentation using a thresholding method.

[0056] Specifically, the optimal segmentation threshold of the linear propagation potential map is automatically calculated using the Otsu's method. Pixels in the linear propagation potential map with a value greater than the optimal segmentation threshold are marked as candidate damage points, while pixels with a value less than or equal to the optimal segmentation threshold are marked as background, thus generating a binarized image. The linear propagation potential map is an image composed of the linear propagation potential of all pixels.

[0057] Furthermore, morphological closing operations are performed on the binarized image, and the structuring element for the morphological closing operation is selected as... A rectangular kernel is then constructed. Connectivity analysis is performed, calculating the area and aspect ratio of each connected component. Components with areas smaller than [a certain value] are filtered out. Pixels or aspect ratio smaller than The remaining connected components are the final determined areas of brake pad surface damage.

[0058] For example, Figure 4 This is a schematic diagram of the damage identification results. The diagram shows the final crack detection results after processing.

[0059] This invention also discloses a machine vision-based brake pad surface damage detection system, including a processor and a memory. The memory stores computer program instructions, which, when executed by the processor, implement the machine vision-based brake pad surface damage detection method according to this invention.

[0060] The system also includes other components well known to those skilled in the art, such as communication buses and communication interfaces, the settings and functions of which are known in the art and will not be described in detail here.

Claims

1. A machine vision-based method for detecting surface damage on brake pads, characterized in that, include: Acquire and preprocess an image of the brake pad surface; Calculate the gradient magnitude and gradient direction angle of each pixel in the preprocessed image; For any target pixel, an interaction window is set, and the structural saliency of the target pixel is obtained based on the gradient magnitude and gradient direction angle between the target pixel and the neighboring pixels within the interaction window. Structural saliency is satisfied: ; Indicates coordinates as The structural saliency of the target pixel; Representing the interaction window Remove target pixels The total number of neighboring pixels outside of the specified range; Represents the interaction window; This represents the neighboring pixels within the interaction window; This represents the gradient magnitude of the target pixel. Represents neighboring pixels The gradient magnitude; Indicates the gradient direction angle of the target pixel; Represents neighboring pixels The gradient direction angle; It is a constant used to prevent the denominator from being zero; Obtain the local principal direction of the target pixel, perform path search on the structure saliency map along the positive and negative directions of the local principal direction, and obtain the linear propagation potential of the target pixel based on the structural saliency of the pixels on the search path and the angular consistency of the local principal direction. The linear propagation potential energy map is thresholded using the Otsu's method to obtain a binarized image. Morphological closing operations and connected component filtering are then performed on the binarized image to obtain the damage area on the brake pad surface.

2. The machine vision-based brake pad surface damage detection method according to claim 1, characterized in that, The process of acquiring and preprocessing the image of the brake pad surface includes: Using a Gaussian kernel size of Standard deviation is A Gaussian filter is used to smooth the image.

3. The machine vision-based brake pad surface damage detection method according to claim 1, characterized in that, The constant used to prevent the denominator from being zero is set as follows: The size of the interaction window is set to... .

4. The machine vision-based brake pad surface damage detection method according to claim 1, characterized in that, The local principal direction of the target pixel is the direction perpendicular to the gradient direction angle of the target pixel.

5. The machine vision-based brake pad surface damage detection method according to claim 4, characterized in that, The linear propagation potential energy satisfies the expression: ; in, Indicates coordinates as The linear propagation potential energy of the target pixel; Indicates the structural saliency of the target pixel; Indicates the length of a one-sided search path; Indicates the first position on the search path along the positive direction of the local principal direction. 1 pixel; Indicates the first position on the search path in the opposite direction of the local principal direction. 1 pixel; Represents pixels Structural salience; Represents pixels Structural salience; The angle representing the local principal direction of the target pixel; Represents pixels The angle of the local principal direction; Represents pixels The angle of the local principal direction; The base of the natural logarithm; Represents the absolute value symbol.

6. The machine vision-based brake pad surface damage detection method according to claim 5, characterized in that, The length of the one-sided search path is set to Pixel.

7. The machine vision-based brake pad surface damage detection method according to claim 1, characterized in that, The step of thresholding the linear propagation potential map using the maximum inter-class variance method to obtain a binarized image includes: The optimal segmentation threshold of the linear propagation potential map is calculated using the Otsu's method. Pixels in the linear propagation potential map that are greater than the optimal segmentation threshold are marked as candidate damage points, and pixels that are less than or equal to the optimal segmentation threshold are marked as background, thus obtaining a binarized image.

8. The machine vision-based brake pad surface damage detection method according to claim 1, characterized in that, The morphological closing operation and connected component filtering of the binarized image include: Select Perform morphological closing operations on the rectangular kernel; filter out areas smaller than Pixels or aspect ratio smaller than Connected components.

9. A machine vision-based brake pad surface damage detection system, characterized in that, include: A processor and a memory, the memory storing computer program instructions that, when executed by the processor, implement the machine vision-based brake pad surface damage detection method according to any one of claims 1-8.