Next Article in Journal
A Multi-Model Ontological System for Intelligent Assistance in Laser Additive Processes
Previous Article in Journal
Dynamic Monitoring of Goaf Stress Field and Rock Deformation Driven by Optical Diber Sensing Technology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Concentricity Detection Method of Automobile Brake Piston Parts Based on Improved Canny Algorithm

School of Mechanical and Vehicle Engineering, Changchun University, Changchun 130022, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(8), 4397; https://doi.org/10.3390/app15084397
Submission received: 15 March 2025 / Revised: 6 April 2025 / Accepted: 15 April 2025 / Published: 16 April 2025

Abstract

:
The automotive brake piston component is an important part of the automotive brake system, and the concentricity detection of the first piston component is crucial to ensure driving safety. In this paper, an improved Canny algorithm is proposed for non-contact detection of spring concentricity of the first piston component. Firstly, the traditional Canny algorithm is improved by replacing the Gaussian filter with a bilateral filter to fully retain the edge information, and accurate edge detection results are obtained by constructing a multi-scale analysis. After obtaining the edge images, a sub-pixel edge detection method with gray moments is introduced to optimize these edges; secondly, a circle is fitted to the extracted edge points by using the RANSAC algorithm to determine the center position and radius of the circle; and finally, the concentricity of the first piston part is calculated based on the fitting results. The experimental results are compared with those of the CMM and the traditional Canny algorithm, and the results show that the improved Canny algorithm reduces the coaxiality error by 4% and enables effective measurement of the concentricity of the first piston assembly spring.

1. Introduction

In the field of mechanical processing, concentricity is an important technical indicator for evaluating the alignment accuracy of cylindrical workpieces. The quality of concentricity directly affects the assembly quality, performance, operational stability, and lifespan of the entire mechanical system. The most crucial step in concentricity detection is circle fitting, and scholars at home and abroad have conducted extensive research on circle fitting algorithms. Zhehong Guo from Nanchang University proposed an edge point screening method [1] and combined sub-pixel edge detection with circle center positioning. This algorithm has high detection accuracy and anti-noise ability. Lei Zhu et al. achieved real-time measurement and adjustment of the coaxiality of parts by improving methods such as one-dimensional measurement of rectangles to find boundary points [2]. This method has the characteristics of high speed, high robustness, and high precision. Jiawen Wang et al. proposed an image edge detection method using sinusoidal moving fitting [3], which has the characteristics of high measurement accuracy and good stability compared to the traditional random Hough transform. Yongzhi Peng et al. proposed a multi-bottle mouth positioning algorithm based on DBSCAN random circle detection [4], which has high accuracy and real-time performance. Chengli Zhao et al. proposed an optimization method for circle center fitting based on photogrammetry and Hough transform [5], which effectively solved the problem of the inability to directly measure the circle center on construction machinery. Jianfeng Guo et al. proposed an iterative method for robust circle fitting [6], and the proposed iterative procedure can reduce the impact of abnormal values on the estimation of circle parameters. Maja Michałowska et al. combined Hough transform, the de-noising process, and the robust least squares circle fitting method [7] to extract the position of tree stem segments from terrestrial laser scanning data. Yun Ou et al. proposed a fast circle detection algorithm based on information compression [8]. Xianen Zhou et al. proposed a new circle detection MFLS algorithm based on model fitting and the least squares technique [9], which has strong anti-interference ability. Shuyi Guo et al. addressed the issue of circular projections becoming elliptical in optical CCD detection and proposed a circle detection algorithm based on ellipse de-noising [10]. At present, modern methods based on image processing, laser measurement, and three-coordinate detection have become research hotspots, but they have certain limitations. For example, algorithms based on Canny edge detection and Hough transform are susceptible to noise interference and require a large amount of computation. Laser measuring instruments [11] have high precision but expensive costs and poor environmental adaptability. Although the coordinate measuring machine (CMM) [12] has excellent accuracy, it has low detection efficiency and complex operation. The existing concentricity detection of piston components mostly adopts manual eye inspection, which has low efficiency and large subjective error. Therefore, how to optimize existing methods or explore new detection techniques to achieve high precision, high efficiency, and low-cost concentricity measurement is still an urgent problem to be solved.
Aiming at the problems of low efficiency and large subjective error of manual eye inspection in concentricity detection of piston components, this study proposes an improved Canny algorithm for non-contact detection of the concentricity of the spring in the first piston component. The improved Canny algorithm can effectively suppress false edges and retain more edge information, and, at the same time, the improved Canny algorithm reduces the concentricity error by 4%, resulting in an effective non-contact measurement of the spring concentricity of the first piston component.

2. Traditional Canny Algorithm and Its Improvement

2.1. Traditional Canny Algorithm

2.1.1. Algorithm Principle

The Canny algorithm is a classical edge detection algorithm [13], the core idea of which is to accurately locate the edge of the image through multi-stage processing, while suppressing noise. The algorithm consists of the following four steps:
(1)
Gaussian filtering: Firstly, the original image is smoothed by Gaussian to eliminate high-frequency noise and avoid interference in subsequent gradient calculation.
(2)
Gradient calculation and direction extraction: The Sobel operator (two small matrices) is used to calculate the gradient of the image in the horizontal (x) and vertical (y) directions, respectively. Based on the gradients in the x and y directions, calculate the gradient intensity (how sharp the edge is) and the direction (whether the edge is facing left/right/up/down) for each pixel. The gradient amplitude reflects the edge strength, and the direction indicates the potential direction of the edge.
(3)
Non-maximum suppression: The amplitude is locally compared in the gradient direction, only the pixels with the largest amplitude are retained, and the edge width is refined to the single pixel level to eliminate redundant responses.
(4)
Double threshold detection and edge connection: Candidate edges are screened by high and low thresholds: strong edges are determined by high thresholds, weak edges are retained by low thresholds, and weak edges are connected to strong edges in combination with connectivity analysis to ensure the continuity and integrity of edges.

2.1.2. Limitations

The advantage of the traditional Canny algorithm is that it can balance noise suppression and edge location accuracy, but there are some difficult problems to solve. The oversmoothing problem of the Gaussian filter: the standard Gaussian filter will blur the step edge while reducing noise, resulting in the loss of weak edge; limitations of fixed thresholds: global thresholds can produce broken edges when illumination is uneven; and pixel level accuracy is insufficient: the error of traditional methods in sub-micron level measurement tasks can reach 5–8% [14].

2.2. Improved Canny Algorithm

The traditional Canny algorithm uses Gaussian filtering for preprocessing in the filtering and noise removal part, and in the process of removing noise, it will overly clean the edge information of the image, Some edge information may be lost. In this regard, this paper replaces the Gaussian filter with a bilateral filter for image preprocessing to retain more edge information. The Sobel operator in the Canny algorithm usually performs edge detection at a single scale, which will lead to the loss of some details and affect the edge detection accuracy. To solve this problem, this paper adopts multi-scale analysis, detects edges at different scales by constructing an image pyramid, and then fuses the results to obtain more comprehensive and accurate edge information. To further improve the edge detection accuracy, this paper introduces the sub-pixel edge detection method based on the gray moment in the Canny algorithm, upgrading the Canny algorithm from full-pixel accuracy to sub-pixel accuracy, providing a guarantee for the accuracy of subsequent circle fitting and concentricity calculation.

2.2.1. Bilateral Filtering

Bilateral filtering is a non-linear filtering method [15]. It combines the information of spatial neighborhood and gray value similarity and can retain edge information while removing noise. This method is particularly suitable for noise reduction scenarios where edges need to be retained. The bilateral filter is composed of two Gaussian filters. One is used to calculate the weight of the spatial proximity of the image, and the other is used to calculate the weight of the similarity of the image pixel values [16]. The expression of the bilateral filter is shown in Equation (1).
B i , j , k , l = exp i k 2 + j l 2 2 σ s 2 × exp M i , j M k , l 2 2 σ r 2
In the equation, i , j and k , l denote the coordinates of the center pixel and neighboring pixels, respectively; M i , j and M k , l denote their pixel values, respectively; σ s and σ r are the standard deviations of the null and value domains, respectively; and exp represents the exponential function with the natural logarithm e as the base.

2.2.2. Multi-Scale Analysis

Edges in an image may exist at different scales. Small scales can detect detailed edges in the image, but are more sensitive to noise; large scales can detect the main edge structures in the image, and are relatively less sensitive to noise, but may lose some details. The purpose of multi-scale analysis is to integrate edge information at different scales to obtain more comprehensive and accurate edge detection results. The image pyramid is a very intuitive multi-scale representation structure, and multi-scale analysis is obtained by analyzing a series of images with different resolutions.
By constructing an image pyramid, images with different resolutions (scales) can be obtained. The Sobel operator is applied to these images at different scales for edge detection, and then the results of these edge detections are fused so that while retaining edge details, the main edge structures can also be obtained.
For the original image I 0 x , y , an image pyramid is constructed. The calculation method of the k-th layer image I k x , y is shown in Equation (2).
I k x , y = I k 1 x , y = I k 1 x , y B i , j , k , l
In the equation, I k 1 x , y denotes the bilateral filtering of I k 1 x , y , denotes the convolution operation, and B i , j , k , l is the bilateral filtering function.
Downsampling is then performed to obtain I k x , y . Downsampling usually involves reducing the rows and columns of the image by a certain percentage, taking one pixel point per row and column. In general, as k increases, the scale of the image becomes smaller.
For each layer of the image I k x , y in the pyramid, the Sobel operator is applied to compute the gradient magnitude and direction. The Sobel operator has a horizontal template G x = 1 0 1 2 0 2 1 0 1 and a vertical template G y = 1 2 1 0 0 0 1 2 1 .
For image I k x , y , calculate the horizontal gradient G x , k = I k x , y     G x , the vertical gradient G y , k = I k x , y     G y (here also indicates convolution operation), the gradient magnitude G k x , y = G x , k 2 + G y , k 2 , and the gradient direction θ k = arctan G y , k G x , k .
The gradient magnitudes obtained at different scales are weighted and summed. Set G final x , y = k = 0 N 1 ω k G k x , y , where N is the number of layers of the image pyramid and ω k is the weight of the k-th layer, so that images at larger scales (lower layers) are weighted more heavily to emphasize major edge structures, while images at smaller scales (higher layers) are weighted less heavily to preserve detailed edges.

2.2.3. Gray Moment Sub-Pixel Edge Detection Algorithm

The gray moment sub-pixel edge detection method refers to the edge detection of an image based on the principle of gray moment invariance, i.e., it is assumed that the edge distribution in the actual image is consistent with the gray moments of the ideal step edge model [17]. A gray moment algorithm is applied to each edge point found by the improved Canny algorithm for sub-pixel level localization, and the edge map of the Canny algorithm is updated or corrected based on the results of the gray moment algorithm. The method flowchart is shown in Figure 1.

Calculation of Gray Moments

Gray moments are statistical quantities that describe the distribution of gray levels in an image and can be used to characterize the local features of an image. The first-order moments reflect the average gray value of the image, the second-order moments reflect the degree of gray fluctuation of the image, and the third-order moments reflect the degree of skewness of the image’s grayscale. The k-th order gray moment is defined as shown in Equation (3). In this paper, a 7 × 7 operator template is used, i.e., k = 7 .
m k = x = 1 N y = 1 N I x , y · x k · y k
In the equation, I x , y is the gray value of the image at point x , y and N is the size of the template.
The diagram of the ideal edge model for the gray moments is shown in Figure 2. The normalized parameter model E x , y , ρ , θ is jointly determined by four parameters, such as gray values of h 1 and h 2 , edge position ρ , and edge direction θ . The representation is shown in Equation (4).
E x , y , ρ , θ = h 1 ,                       x cos θ + y cos θ ρ h 2 ,                       x cos θ + y cos θ > ρ
The proportion of pixel points with gray values of h 1 and h 2 to the total number of pixel points in the entire edge is set to ω 1 and ω 2 , respectively, and ω 1 + ω 2 = 1 . So, the first three orders of gray moments m k can be expressed as Equation (5).
m k = h 1 k ω 1 + h 2 k ω 2   k = 1 , 2 , 3
Therefore, finding the gray moments of the first three orders is finding the weighted sum of the gray values of each pixel point with the expression shown in Equation (6). It should provide a concise and precise description of the experimental results, their interpretation, as well as the experimental conclusions that can be drawn.
m k = i = 1 N ω i G i k   k = 1 , 2 , 3
In the equation, G i is the gray value of the i-th pixel point in the unit circle; N is the size of the template; and ω i is the weight value corresponding to the i-th pixel point.
The collation can be obtained as ω 1 , ω 2 , h 1 , and h 2 , with the formula shown in Equation (7).
ω 1 = 1 + s 1 / 4 + s 2 2 ω 2 = 1 ω 1 h 1 = m 1 σ ω 2 ω 1 h 2 = m 1 σ ω 1 ω 2
In the equation, σ = m 2 m 1 2 , s = m 3 + 2 m 1 3 3 m 1 · m 2 σ 3 .
Therefore, the edge position ρ and edge direction θ can be obtained, and the expressions are shown in Equations (8) and (9), which are, respectively, as follows:
  ρ = cos θ  
sin θ = y 0 x 0 2 + y 0 2 cos θ = x 0 x 0 2 + y 0 2
In the equation, x 0 , y 0 are the grayscale center of gravity coordinates of the unit circle.
If the gray moments around a pixel point vary significantly, then the point is likely to be located on an edge. If h 1 h 2 > 2 σ is satisfied, the point is considered to be an edge point. The location of the edge at the sub-pixel level is obtained by solving beyond Equation (10).
x 1 2 sin 2 x A π = 0
In the equation, A = min ω 1 , ω 2 .

3. RANSAC Algorithm

RANSAC is an algorithm for data fitting, also known as Random Sampling Consistency [18], especially in the presence of outliers in the data, which is effective in identifying interior points in the data and fitting the model based on these interior points [19]. The mathematical principle is as follows: for a total sample set of N, of which M data are interior points, the probability of taking an interior point each time is P = M / N ; K sample points are needed for the design calculation model; the probability of taking all the sample points in the interior point at one time is P K , and then the probability that at least one sample point in the sampling points is an outlier is 1 P K .
If n samples are taken, the probability that all n samples include at least one out-of-bounds point is 1 P K n . Then, the rate of the opposite event of this event, i.e., the rate of a good model (where all the points taken are out-of-bounds) that has appeared at least once in the n samples, is 1 1 P K n . By the limit, it is known that when n , 1 P K n 0 ; the intuitive interpretation is that when the number of samples is sufficiently high, a good model is sure to appear.
In this paper, a small number of data points were randomly selected from all data points as parameters for an initial model, and then the consistency of the model with all data points was calculated. If the consistency exceeded a certain threshold, a feasible model was considered to be found. Next, the initial model was replaced with this feasible model and the consistency was recalculated. This process was performed iteratively until the stopping condition was met. During the iterative process, the fitting parameters were constantly updated and data points that were not consistent with the current model were eliminated. Taking this approach, the most appropriate circle can be found gradually.
The coordinates of the center of a uniquely determined circle and its mean radius can be calculated from the coordinates of three points in the plane. Three points, P 1 x 1 , y 1 , P 2 x 2 , y 2 , P 3 x 3 , y 3 , are taken in the set of points and the difference, z 1 , z 2 , z 3 , which is the squared difference of the distance of each point from the origin, is calculated as shown in Equation (11).
z 1 = x 2 2 + y 2 2 x 1 2 y 1 2 z 2 = x 3 2 + y 3 2 x 1 2 y 1 2   z 3 = x 3 2 + y 3 2 x 2 2 y 2 2  
The matrix A and the vector B are created. The matrix A reflects the relative positional relationship between the three points and the vector B is constructed from the previously calculated z 1 , z 2 , z 3 , after reduction by 0.5. A system of linear equations is constructed to solve for the coordinates of the center of the circle through matrix A and vector B, as shown in Equation (12).
  A = x 2 x 1 ,   y 2 y 1 ;   x 3 x 1 ,   y 3 y 1 ;   x 3 x 2 ,   y 3 y 2 B = 0.5 z 1 ;   z 2 ;   z 3
The principle of least squares is utilized to solve the optimal solution of the system of linear equations Ax = B . First, A is transposed and left multiplied to obtain A A , and then the left division operation is performed on the augmented matrix A B to obtain the optimized center of the circle P 0 , with the expression shown in Equation (13).
P 0 = A A \ A B
The distances from the known center of the circle P 0 to the three points P 1 , P 2 , P 3 , are calculated separately and the average of the three is taken as the final radius value; the expression is shown in Equation (14). It should be noted that the ideal calculation method should be to directly take the actual distance from any point to the center of the circle, and the average value is taken here to eliminate possible measurement errors.
  R 1 = P 0 1 P 1 1 2 + P 0 2 P 1 2 2 R 2 = P 0 1 P 2 1 2 + P 0 2 P 2 2 2   R 3 = P 0 1 P 3 1 2 + P 0 2 P 3 2 2   R = R 1 + R 2 + R 3 / 3
The obtained P 0 also needs to be transposed to maintain the consistency of the data structure and to facilitate subsequent calls.
After completing all the iterations, the final edge position was determined based on all the fitted obtained circles. Specifically, for each fitted obtained circle, its distance from all data points in the image was calculated. Then, based on the size of the distance, whether each data point belongs to the edge was determined. If the distance of a data point was less than a certain threshold, it was considered as part of that edge. Finally, all data points belonging to the same edge were connected to form the final edge profile.

4. Experimental Objects and Analysis of Results

4.1. First Piston Component

The first piston part is an important part of the automobile braking system, which connects the brake cylinder and the brake. The performance of the first piston part directly affects the braking effect and safety performance of the automobile. Figure 3a shows the first piston component, which mainly detects the concentricity of the component spring and the outer wall, and the parts to be detected are shown in Figure 3b.
The images were acquired using a Hikvision MV-CU20-10GC color 12-megapixel CMOS face-matrix camera (Camera and Lens Sourcing with Changchun, China), with a resolution of 3036 × 4024, and the lens was a Hikvision MVL-KF1228M-12MPE-type lens with a focal length of 12 mm. The pixel accuracy in the horizontal and vertical directions was about 0.04 mm/pixel. The captured original image is shown in Figure 3b.

4.2. Edge Image Extraction

The traditional Canny algorithm and the improved Canny algorithm were applied to the concentricity detection of the first piston part using machine vision software, respectively. The extracted edges are shown in Figure 4a,b, and the inner and outer edge images were obtained by removing the interference points as shown in Figure 4c,d.
In Figure 4, it can be seen that the improved Canny algorithm edge detection algorithm has a good edge detection effect compared to the traditional Canny algorithm, which can retain the edge information in a more complete way, and can suppress the interference information near the edge line.

4.3. Analysis of Fitting Results

Five images were collected at the same location for the first piston part, and after extracting the edges using the improved Canny algorithm, the RANSAC algorithm was applied to fit them 10 times, respectively. The average value of the processed results was used as the detection value of concentricity of the first piston part after the improved algorithm. The average value of concentricity after the improved algorithm was obtained as 0.6475 mm and the data are shown in Table 1.
After extracting the edges using the traditional Canny algorithm, the same fitting was carried out, and the average value of concentricity was obtained as 0.6024 mm. The concentricity of this part was measured as 0.6405 mm using the coordinate measuring machine.
Taking the concentricity results measured by the coordinate measuring machine as the benchmark, the error value between the results of the traditional Canny algorithm and the benchmark is more than 0.035 mm, and the relative error is more than 5%, while the error value between the results of the improved Canny algorithm and the benchmark is within 0.01 mm, and the relative error is less than 0.5%, which verifies the validity of the improved Canny algorithm. The improved Canny algorithm reduces the concentricity error by 4%, which has high accuracy, and also proves that the improved Canny algorithm can obtain good solution accuracy in engineering applications.

5. Conclusions

Aiming at the problems of low efficiency of manual eye inspection and large subjective error in the concentricity detection of piston components, an improved Canny algorithm is proposed in this paper, which realizes high-precision automatic measurement through bilateral filtering, multi-scale analysis, and sub-pixel positioning optimization. The improved Canny algorithm is applied to the first piston component spring concentricity detection, and the results are compared with those of CMM. The main conclusions are as follows:
(1)
Algorithm improvement: The two-sided filter is applied to the Canny algorithm to solve the problem of image edge information loss during image preprocessing. Multi-scale analysis is introduced, an image pyramid is constructed, and the problem of detail loss caused by the Sobel operator in the Canny algorithm in a single-scale edge detection is solved, and thus the edge detection accuracy is improved.
(2)
Measurement performance: The concentricity detection error in the laboratory environment is less than ±0.01 mm, which meets the ISO 1938-2015 standard [20]. The deviation is reduced by 4%, and the repeatability is significantly better than manual detection.
(3)
Application potential: The method is compatible with the existing structure of the riveting machine testing station and has the engineering conditions of non-contact real-time measurement. It provides a reliable technical solution to replace manual eye inspection. The next step will be to carry out the adaptation verification of the production line.

Author Contributions

W.Z. conceived the experiments; W.Z. and S.C. performed the experiments; and Q.L. and Y.J. analyzed the results. All authors have read and agreed to the published version of the manuscript.

Funding

We need to thank the following organization for its strong support: the Natural Science Foundation of Jilin Province—General Project, 20220201043GX.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data on spring concentricity detection of automobile first piston parts in this study mainly come from experimental measurements. In the experimental process, we used the improved Canny algorithm for detection and compared the results with those measured by CMM and the traditional Canny algorithm. These experimental data were obtained under strictly controlled experimental conditions to ensure the accuracy and reliability of the data. Since the experimental data relate to a specific automotive brake piston component inspection study, the disclosure of some of the data may be limited by the agreements of the relevant partners. However, upon reasonable request and in compliance with relevant regulations, we will consider providing aggregated data results to support the reproducibility of the results of this research and further scientific exploration. To request the data from this study, please contact the corresponding author via email at liqh@ccu.edu.cn (Q.L.).

Acknowledgments

The authors would like to thank the members of the project team for their dedication and effort and the teachers and schools for their help.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviation

The following abbreviation is used in this manuscript:
RANSACRandom Sampling Consistency

References

  1. Guo, Z. Research and Application of Circle Center Location Technology Based on Sub-Pixel Edge Detection. Master’s Thesis, Nanchang University, Nanchang, China, 2023. [Google Scholar] [CrossRef]
  2. Zhu, L.; Zhang, J.; Dian, S. Design of coaxiality detection and fine-tuning system based on machine vision. J. Transducer Microsyst. Technol. 2022, 41, 94–98+102. [Google Scholar]
  3. Wang, J.; Wang, X.; Cheng, B.; Dong, Z.; Zhai, Z.; Yang, L. Circle detection method based on moving sine fitting. J. China Instrum. 2021, 9, 56–61. [Google Scholar]
  4. Peng, Y.; Xiao, J.; Mao, J.; Dai, Y.; Zhang, M. A multi-bottle-mouth positioning algorithm based on DBSCAN random circle detection. J. Electron. Meas. Instrum. 2021, 35, 43–52. [Google Scholar]
  5. Zhao, C.; Fan, C.; Zhao, Z. The center of the circle fitting optimization algorithm based on the hough transform for crane. Appl. Sci. 2022, 12, 10341. [Google Scholar] [CrossRef]
  6. Guo, J.; Yang, J. An iterative procedure for robust circle fitting. Commun. Stat.-Simul. Comput. 2019, 48, 1872–1879. [Google Scholar] [CrossRef]
  7. Michałowska, M.; Rapiński, J.; Janicka, J. Tree position estimation from TLS data using hough transform and robust least-squares circle fitting. Remote Sens. Appl. Soc. Environ. 2023, 29, 100863. [Google Scholar] [CrossRef]
  8. Ou, Y.; Deng, H.; Liu, Y.; Zhang, Z.; Ruan, X.; Xu, Q.; Peng, C. A fast circle detection algorithm based on information compression. Sensors 2022, 22, 7267. [Google Scholar] [CrossRef] [PubMed]
  9. Zhou, X.; Wang, Y.; Zhu, Q.; Zhang, H.; Chen, Q. Circle detection with model fitting in polar coordinates for glass bottle mouth localization. Int. J. Adv. Manuf. Technol. 2022, 120, 1041–1051. [Google Scholar] [CrossRef]
  10. Guo, S.; Yang, S.; Zhang, P. A circle detection algorithm based on ellipse removal. J. Image Process. Theory Appl. 2021, 4, 42–50. [Google Scholar]
  11. Guo, P. Detection technology and application of parallelism and coaxiality of wind tower flanges based on laser measuring instrument. Electr. Appar. Ind. 2024, 10, 19–21+30. [Google Scholar]
  12. Qing, Y.; Yanru, Z.; Wen, L. Design of Dynamic Parameter Acquisition Module of Field CMM. Meas. Control Technol. 2014, 33, 45–47+51. [Google Scholar]
  13. Chen, Z.; Liu, Z. Research on underwater image edge detection method based on improved canny and gray-level moment. J. Agric. Equip. Veh. Eng. 2024, 62, 107–110+120. [Google Scholar]
  14. van Kempen, G.M.P.; van Vliet, L.J.; Verveer, P.J.; van der Voort, H.T.M. A quantitative evaluation of image sharpness criteria for microscope autofocusing. IEEE Trans. Instrum. Meas. 2018, 67, 309–320. [Google Scholar]
  15. Du, X.; Chen, D.; Ma, Z.; Liu, F. Improved image edge detection algorithm based on canny operator. Comput. Digit. Eng. 2022, 50, 410–413, 457. [Google Scholar]
  16. Wang, D.; Tang, C.; E, S.; Gao, C.; Ge, B. Image edge detection based on guided filter Retinex and adaptive Canny. J. Opt. Precis. Eng. 2021, 29, 443–451. [Google Scholar] [CrossRef]
  17. Zhang, M. Research on Sub-Pixel Edge Detection Technology. Master’s Thesis, Shenyang Ligong University, Shenyang, China, 2013. [Google Scholar]
  18. Ren, Y.; Tu, D.; Han, S. Diesel engine cylinder liner size detection based on machine vision. J. Modul. Mach. Tool Autom. Manuf. Technol. 2020, 9, 151–153. [Google Scholar]
  19. Shang, H.; Han, X.; Ji, C.; Peng, X. Application of circle fitting algorithm based on RANSAC in threaded hole detection. J. Mod. Manuf. Eng. 2024, 2, 112–119. [Google Scholar]
  20. ISO 1938-2015; Geometrical Product Specifications (GPS)—Dimensional Measuring Equipment. ISO: Geneva, Switzerland, 2015.
Figure 1. Flowchart of the gray moment sub-pixel edge detection method.
Figure 1. Flowchart of the gray moment sub-pixel edge detection method.
Applsci 15 04397 g001
Figure 2. Diagram of the ideal edge model.
Figure 2. Diagram of the ideal edge model.
Applsci 15 04397 g002
Figure 3. (a) Piston component; (b) image of the part to be detected.
Figure 3. (a) Piston component; (b) image of the part to be detected.
Applsci 15 04397 g003
Figure 4. The results of edge image extraction: (a) edges extracted by the traditional Canny algorithm; (b) edges extracted by the improved Canny algorithm; (c) inner and outer edge images obtained by removing interference points with the traditional Canny algorithm; and (d) inner and outer edge images obtained by removing interference points with the improved Canny algorithm.
Figure 4. The results of edge image extraction: (a) edges extracted by the traditional Canny algorithm; (b) edges extracted by the improved Canny algorithm; (c) inner and outer edge images obtained by removing interference points with the traditional Canny algorithm; and (d) inner and outer edge images obtained by removing interference points with the improved Canny algorithm.
Applsci 15 04397 g004aApplsci 15 04397 g004b
Table 1. Fitting data (unit: mm).
Table 1. Fitting data (unit: mm).
Fitting TimesOriginal Image 1Original Image 2Original Image 3Original Image 4Original Image 5
First time0.618720.665290.703290.636030.64464
Second time0.785960.505140.656600.612280.59718
Third time0.602050.642230.652530.613420.63857
Fourth time0.726090.608710.639060.640460.40322
Fifth time0.619120.643330.574180.619360.64323
Sixth time0.660310.699230.609230.645420.65148
Seventh time0.618430.603550.740160.610780.50514
Eighth time0.669680.662740.632180.628000.89484
Ninth time0.480280.718460.653260.762180.81706
Tenth time0.651960.707280.686410.722810.65236
Average of ten times0.643260.64560.654690.649070.64477
Overall average0.6475
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, Q.; Zhao, W.; Cheng, S.; Ji, Y. Research on Concentricity Detection Method of Automobile Brake Piston Parts Based on Improved Canny Algorithm. Appl. Sci. 2025, 15, 4397. https://doi.org/10.3390/app15084397

AMA Style

Li Q, Zhao W, Cheng S, Ji Y. Research on Concentricity Detection Method of Automobile Brake Piston Parts Based on Improved Canny Algorithm. Applied Sciences. 2025; 15(8):4397. https://doi.org/10.3390/app15084397

Chicago/Turabian Style

Li, Qinghua, Wanting Zhao, Siyuan Cheng, and Yi Ji. 2025. "Research on Concentricity Detection Method of Automobile Brake Piston Parts Based on Improved Canny Algorithm" Applied Sciences 15, no. 8: 4397. https://doi.org/10.3390/app15084397

APA Style

Li, Q., Zhao, W., Cheng, S., & Ji, Y. (2025). Research on Concentricity Detection Method of Automobile Brake Piston Parts Based on Improved Canny Algorithm. Applied Sciences, 15(8), 4397. https://doi.org/10.3390/app15084397

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop