# Noncontact Defect Detection Method of Automobile Cylinder Block Based on SVM Algorithm

Authors: Juncen Yan
Journal: Mobile Information Systems
 (2022)

---

## Abstract

Based on the problems encountered in the gateway system, this article developed the SVM algorithm support vector machine auxiliary system based on the function of the hybrid network gateway to help the gateway dynamically adjust its operating status to ensure the stability of the gateway system and the real-time internal data. This paper studies the noncontact defect detection system of automobile cylinder block on the basis of the SVM algorithm. There are many thin holes in the wall of automobile engine cylinder block, the structure is complex, and the processing is easy to deform. In order to solve the problem of deformation of the automobile engine cylinder block during the milling process, this paper uses a combination of simulation and experiment to analyze the clamping deformation and milling deformation during the machining of the top surface of the automobile cylinder block and proposes the control of the milling deformation profile error measure. Aiming at the problems of backward detection technology, low detection efficiency, and low detection accuracy for the detection of defects on the inner surface of the master cylinder of automobile brakes, this paper uses the machine vision technology to choose the noncontact method of measurement. The use of laser nonultrasonic contact systems is not limited to workpieces having regular shapes, such as planes and cylinders. It is limited to workpieces with regular shapes such as planes and cylinders. In the automotive and other industrial fields, for various curved parts with free-form surfaces, nondestructive testing techniques of laser nonultrasonic contact systems are generally required to find defects. In the research of the noncontact defect detection method of the automobile cylinder block based on the SVM algorithm, this paper hopes that the detection efficiency and detection accuracy of the inner surface of the brake cylinder can be improved, and the defect location can be accurately found.


---

## Body

## 1. Introduction

With the development of automobiles, consumers have gradually increased their requirements for automobiles, and continuous breakthroughs in current technical barriers have become the core competitiveness of current auto companies. In this article, the gateway load prediction node is constructed to support the gateway system. Based on the SVM algorithm, the time attention mechanism, the space attention mechanism, and the recently strengthened network structure optimization model are designed to improve the prediction accuracy of the gateway load. In order to eliminate the influence of the fuzzy mode, the fuzzy samples are subdivided to further improve the prediction accuracy [1]. In the machining automation industry, affected by the characteristics of the workpiece material, mechanical vibration, and machining technology, various defects will appear on the surface of the parts. These defects not only destroy the appearance of the parts but also reduce the performance of the parts, mainly reflected in the loose sealing, easy wear, and fatigue strength reduction of the parts. These defects will not only affect the performance of the component but also affect the operation of the component’s equipment, thereby shortening the service life of the equipment and ultimately bringing greater safety risks. In order to ensure the quality of products in the industrial production process, the surface inspection technology of mechanical parts is widely used [2]. The research content of this article includes the compensation hole of the master cylinder of the automobile brake. When inspecting the automobile cylinder, the nondestructive detection of defects using the noncontact method is to use some scientific treatment without damaging the performance of the inspected object and its microstructure, such as the method and special equipment for detecting the change of the characteristics of the object to be measured [3]. The noncontact method of defect detection occupies an important position in industrial production, and it has an irreplaceable guarantee for the safety of production and the reliability of products. As a new generation of nondestructive testing methods, the laser ultrasonic defect nondestructive testing technology has played an important role in industrial production [4]. Laser ultrasonic defect detection technology uses laser pulses to irradiate the surface of the test sample to excite ultrasonic waves and uses contact or noncontact methods to detect the ultrasonic waves that carry effective information about the test object. Through postsignal processing and analysis, the test object is finally realized [5]. Compared with traditional ultrasonic defect detection methods, laser ultrasonic defect detection technology has the advantages of noncontact, broadband, high time, and space resolution. In addition, the technology can be applied to harsh environments such as high temperature, high pressure, and severe corrosion [6]. Laser ultrasonic technology also shows more and more obvious advantages in nondestructive inspection of test objects with complex curved surfaces. This method overcomes the shortcomings of manual visual inspection and ultrasonic inspection methods, such as low detection efficiency, complex detection process, low detection accuracy, and high false detection rate, and realizes the high-precision, noncontact, high-speed measurement, and intelligentization required for modern measurement [7]. The characteristics provide a certain effect for improving production efficiency, controlling product quality, and testing automated production.


## 2. Related Work

The application of the SVM algorithm based on the statistical learning theory in classification and prediction was introduced. The penalty factor and kernel function parameters directly affect its accuracy. Usually, it is necessary to optimize the SVM parameter settings. It is carried out by combining optimization techniques, including genetic algorithms and particle algorithms. These methods have a good effect on improving the classification accuracy [8]. The simulation analysis of the top surface deformation of the cylinder block caused by the combined action of the milling force and the clamping force in the milling of the engine block and establishes the relationship between the top surface of the cylinder block and the profile [9]. Orthogonal experiment was used to calibrate the coefficients of each parameter in the cutting force model, and the cutting force model during the milling process of the top surface of the cylinder block was established to provide the required cutting force value for the simulation process of the top surface of the cylinder block milling deformation [10]. Through the simulation of milling deformation, the deformation law of the top surface of the cylinder body was analyzed, and the relationship between the milling deformation of the top surface of the cylinder body and the profile was established. In actual industrial production, the equipment under test often does not have a known contour model. To detect such a complex surface object, it is first necessary to obtain the contour information of the surface object under test [11]. The three-dimensional reconstruction of the object shell based on the monocular camera multicontour occlusion technology used in this paper can obtain the three-dimensional information of the measured surface object, extract the normal displacement of each detection point, and finally realize the automatic nondestructive laser ultrasound in the complex surface component [12]. The application in testing provides key technical achievements. The manual sampling visual inspection method is not only difficult to observe but also very exhausting after working for a long time, which leads to an increase in the false detection rate, and the detection quality cannot be guaranteed, and there are certain hidden safety hazards [13]. In view of this, some companies have tried to use ultrasonic, electromagnetic wave, and other measurement techniques for the research of new detection methods, but the effect is not very satisfactory [14]. This type of detection method has low accuracy and slow detection speed, but it has high requirements for environmental factors and is not suitable for rapid and accurate detection of compensation hole surface defects [15, 16]. The more and more important role of automobile braking system in the safe driving of vehicles was introduced. As the main component of the braking system, the processing quality of the inner surface of the master cylinder is particularly important. Therefore, the demand for braking is constantly increasing [17]. There are more stringent requirements on the quality of brakes. The development of technology provides a solid backing for this emerging detection technology and promotes the wide application of this technology in modern industrial production, especially for quality inspection and processing control products [18].


## 3. Car Network-Related Theories Based on SVM Algorithm

### 3.1. Optimization Principle of Support Vector Machine

The Volterra series model can effectively meet the description requirements and achieve a more accurate description process through the description of the nonlinear system. After the analog circuit fails, the core of the Volterra series will change accordingly. It can be described as(1)yk=∑n=1∞∑m1=0∞⋯∑mn=0∞hnm1,m2,…,mnuk−m1,…,uk−mn.The specific expressions of the first three-order time-domain kernels are(2)y1k=∑m1=0L1−1h1m1uk−m1,y2k=∑m1=L2−1∑m2=L2−1h2m1,m2uk−m1uk−m2,y3k=∑m1=0m2=0L3−1∑m3=023−1h3m1,m2,m3,uk−m1uk−m2uk−m3.Breeding: there is the lowest and highest fitness among all individuals in the population. When determining the number of seeds produced by each weed, in addition to these two fitness values, the fitness value of a single weed must also be considered when determining the seed. The expression for the calculation amount is(3)ωn=f−fminfmax−fminsmax−smin+smin.Spatial distribution: the average value of the individual weed seeds during the reproduction process is the location of the individual, and the calculation expression of the specific relationship is(4)σcur=itermax−iternitermaxnσinit−σfinal+σfinal.Variation: this paper adopts the optimal difference strategy to produce the specific expression of the intermediate individual as(5)Vik=Xbestk+G×Xr1k−Xr2k.The expression of the cross operation is(6)Ui,jk=Vi,jk,ifrand1≤CRorj=jrandXi,jk,otherwise..Choose to judge the superiority of the fitness value. The specific expression is(7)Xik+1=Uik,iffUik≤fXik,Xik,otherwise.Considering that the IWO algorithm lacks a diverse late-stage weed population, the global search ability is reduced, and it is easy to fall into the local optimum. To this end, this paper integrates the DE algorithm into the IWO algorithm to obtain the DEIWO algorithm. The specific operation steps are as follows: firstly, after each generation of individuals in the weed population completes the reproduction and elimination operations, the individuals with the optimal fitness value are processed by differential mutation. Realize the generation of intermediate individuals and then complete the generation of test individuals by cross-processing the original population and the intermediate population, complete the generation of the test population, and finally screen the test population. The expressions of these two functions are(8)fx=∑i=1nxi2,(9)fx=∑i=1nxi2−10cos2πxi+10.The convergence process of the DEIWO algorithm under the Rastrigin function is faster and more accurate in higher dimensions and effectively solves the problem of the IWO algorithm that is easy to fall into the local optimum and can obtain the global optimum solution.


### 3.2. Simulation Training of SVM Model

Although the simple two-way LSTM network has a more accurate prediction of the 0 and 1 load, the prediction performance of the 2 load is extremely poor. Compared with the two-way LSTM network, although the optimized network greatly improves the shortcomings of the former, the classification of load levels 1 and 2 is still relatively rough. According to analysis, this situation is said to be unable to resolve the boundary of fuzzy samples. The problem caused the error in the prediction result. Therefore, this article will perform simulation tests on the basic SVM model and the fusion model to verify its feasibility.After training the input training set of the established SVM model, the confusion matrix diagram shown in Figure1 can be obtained.Figure 1
SVM model confusion matrix diagram: (a) confusion matrix diagram; (b) confusion matrix normalization diagram.The SVM model roughly predicts the gateway load 0, 1, and 2. At the same time, combined with the ROC (Figure2) after training, it can be seen that the SVM model has relatively general convergence for the prediction of load levels 0, 1, and 2. The prediction result is not bad. Although the actual gateway load forecasting does not satisfy people, it is enough that the fusion model eliminates the problem of fuzzy sample boundary. People are satisfied, but it is enough that the fusion model eliminates the problem of fuzzy sample boundaries.Figure 2
SVM model ROC curve.After completing the training of all SVMs and optimized network models, it is necessary to determine the final weight ratio of the fusion model to achieve the best prediction effect. During the experiment, during the simulation data input process of the two models, the weight ratio of different combinations was continuously verified, and the actual prediction results of different combinations were recorded. Some weight combinations obtained after repeated training are shown in Table1:Table 1
Fusion model weight test table.
Wr/Ws0.680.550.480.370.250.110.320.76—————0.45—0.82————0.52——0.88———0.63———0.97——0.75————0.96—0.89—————0.94As shown in Table1, when the weight of Wr is low and the weight of Ws is high, the prediction success rate is significantly reduced; when the weight of Wr is relatively high and the weight of Ws is low, although the predicted gateway increases significantly, the forecast rate will remain at a fixed value without significant changes.


## 3.1. Optimization Principle of Support Vector Machine

The Volterra series model can effectively meet the description requirements and achieve a more accurate description process through the description of the nonlinear system. After the analog circuit fails, the core of the Volterra series will change accordingly. It can be described as(1)yk=∑n=1∞∑m1=0∞⋯∑mn=0∞hnm1,m2,…,mnuk−m1,…,uk−mn.The specific expressions of the first three-order time-domain kernels are(2)y1k=∑m1=0L1−1h1m1uk−m1,y2k=∑m1=L2−1∑m2=L2−1h2m1,m2uk−m1uk−m2,y3k=∑m1=0m2=0L3−1∑m3=023−1h3m1,m2,m3,uk−m1uk−m2uk−m3.Breeding: there is the lowest and highest fitness among all individuals in the population. When determining the number of seeds produced by each weed, in addition to these two fitness values, the fitness value of a single weed must also be considered when determining the seed. The expression for the calculation amount is(3)ωn=f−fminfmax−fminsmax−smin+smin.Spatial distribution: the average value of the individual weed seeds during the reproduction process is the location of the individual, and the calculation expression of the specific relationship is(4)σcur=itermax−iternitermaxnσinit−σfinal+σfinal.Variation: this paper adopts the optimal difference strategy to produce the specific expression of the intermediate individual as(5)Vik=Xbestk+G×Xr1k−Xr2k.The expression of the cross operation is(6)Ui,jk=Vi,jk,ifrand1≤CRorj=jrandXi,jk,otherwise..Choose to judge the superiority of the fitness value. The specific expression is(7)Xik+1=Uik,iffUik≤fXik,Xik,otherwise.Considering that the IWO algorithm lacks a diverse late-stage weed population, the global search ability is reduced, and it is easy to fall into the local optimum. To this end, this paper integrates the DE algorithm into the IWO algorithm to obtain the DEIWO algorithm. The specific operation steps are as follows: firstly, after each generation of individuals in the weed population completes the reproduction and elimination operations, the individuals with the optimal fitness value are processed by differential mutation. Realize the generation of intermediate individuals and then complete the generation of test individuals by cross-processing the original population and the intermediate population, complete the generation of the test population, and finally screen the test population. The expressions of these two functions are(8)fx=∑i=1nxi2,(9)fx=∑i=1nxi2−10cos2πxi+10.The convergence process of the DEIWO algorithm under the Rastrigin function is faster and more accurate in higher dimensions and effectively solves the problem of the IWO algorithm that is easy to fall into the local optimum and can obtain the global optimum solution.


## 3.2. Simulation Training of SVM Model

Although the simple two-way LSTM network has a more accurate prediction of the 0 and 1 load, the prediction performance of the 2 load is extremely poor. Compared with the two-way LSTM network, although the optimized network greatly improves the shortcomings of the former, the classification of load levels 1 and 2 is still relatively rough. According to analysis, this situation is said to be unable to resolve the boundary of fuzzy samples. The problem caused the error in the prediction result. Therefore, this article will perform simulation tests on the basic SVM model and the fusion model to verify its feasibility.After training the input training set of the established SVM model, the confusion matrix diagram shown in Figure1 can be obtained.Figure 1
SVM model confusion matrix diagram: (a) confusion matrix diagram; (b) confusion matrix normalization diagram.The SVM model roughly predicts the gateway load 0, 1, and 2. At the same time, combined with the ROC (Figure2) after training, it can be seen that the SVM model has relatively general convergence for the prediction of load levels 0, 1, and 2. The prediction result is not bad. Although the actual gateway load forecasting does not satisfy people, it is enough that the fusion model eliminates the problem of fuzzy sample boundary. People are satisfied, but it is enough that the fusion model eliminates the problem of fuzzy sample boundaries.Figure 2
SVM model ROC curve.After completing the training of all SVMs and optimized network models, it is necessary to determine the final weight ratio of the fusion model to achieve the best prediction effect. During the experiment, during the simulation data input process of the two models, the weight ratio of different combinations was continuously verified, and the actual prediction results of different combinations were recorded. Some weight combinations obtained after repeated training are shown in Table1:Table 1
Fusion model weight test table.
Wr/Ws0.680.550.480.370.250.110.320.76—————0.45—0.82————0.52——0.88———0.63———0.97——0.75————0.96—0.89—————0.94As shown in Table1, when the weight of Wr is low and the weight of Ws is high, the prediction success rate is significantly reduced; when the weight of Wr is relatively high and the weight of Ws is low, although the predicted gateway increases significantly, the forecast rate will remain at a fixed value without significant changes.


## 4. Research on Noncontact Defect Detection Method of Automobile Cylinder Block

### 4.1. Correlation Analysis of Automobile Cylinder Profile

The basic parameters of the process system of the cylinder block production line of a company’s production base are shown in Table2.Table 2
The basic parameters of the process system of the cylinder block production line.
Process systemParameterArtifactN12 gray cast iron HT250 rough parts produced by a foundryMachine toolA five-axis CNC machining center produced by a German company, the CNC system is fanuc, the maximum speed is 10000r/min, the maximum power is 60kw, and the maximum feed speed is 60 m/minKnivesThe main models are guhring, ingesol, SADVIK, seco, etc. The detection method of the tool status is generally to detect 50 pieces at a time and determine the degree of wear of the tool according to the flatness, profile, and tool marks of the workpiece surface, so as to determine whether to change the tool.FixtureDesigned by a German company and integrated with a five-axis CNC machining centerApply the correct contact pair in the finite element model by understanding the cylinder clamping process. This article will introduce in detail the OP190 station clamping layout and clamping force calculation and the establishment of the cylinder clamping deformation, which provides the corresponding clamping information and clamping force information for the finite element model.“Profile” is used to evaluate the change between the actual measured profile and the ideal profile of the part. The contour tolerance zone is generally the upper and lower envelopes of a series of spheres with a diameter oft, the center of which is in the reference plane. The area defined by the surface is shown in Figure 3.Figure 3
Contour tolerance zone chart.The evaluation object of N12 cylinder block top surface contour is the cylinder block top surface. The defined tolerance is 0.1 mm, taking the bottom surface of the cylinder block as a reference, and the distance value is related to the actual shape of the top surface itself. Since the theoretical contour of the cylinder top surface is a plane parallel to the reference plane, the contour value of the cylinder top surface is only related to the distance between the top surface of the cylinder block and the bottom surface of the cylinder block and the reference plane. If the distanceL between the top surface of the cylinder block and the bottom surface is too large or too small, the tolerance zone will not surround the actually machined top surface, resulting in contour error. In the machining process, the milling deformation of the top surface of the cylinder block is the main reason for the fluctuation of the distance L value. Therefore, the deformation of the top surface of the cylinder block can be used to reflect the contour error of the workpiece. The deformation of the top surface of the cylinder block is equal to the contour error, and the symbol is opposite.In order to check whether the deformation of the top surface of the cylinder block can reflect the contour error of the top surface of the cylinder block, the actual statistical data Q-DAS data of op190 station of M1 and M2 production lines of engine cylinder block in a base are shown in Table3.Table 3
Profile data of the cylinder top surface.
Experiment numberContour of point 1Contour of point 2Contour of point 3Contour of point 4Actual valueError valueActual valueError valueActual valueError valueActual valueError value1236.00340.0034236.02840.0284236.00050.0005235.976−0.0262236.00960.0096236.01780.0178235.9985−0.0017235.9878−0.01223236.00230.0023236.01660.0166235.995−0.007235.9847−0.01554236.00580.0058236.02850.0285236.00760.0076235.9792−0.02085236.01080.0108236.02170.0215235.9886−0.0116235.9853−0.01476235.9937−0.0065236.02070.0207235.9966−0.0036235.9787−0.02137236.00010.0001236.01980.0198235.9955−0.0047235.9835−0.01678236.00880.0088236.01640.0164235.9948−0.0054235.986−0.0169235.9983−0.0019236.02050.0203235.9875−0.0127235.974−0.02910235.9983−0.0019236.01880.0188235.9947−0.0053235.983−0.018Average value236.00310.0031236.02090.0209235.9959−0.0044235.9818−0.0190In order to make the new tool processing more intuitively reflect the data law of the top surface profile of the N12 cylinder, the above data are drawn into a chart, as shown in Figure4.Figure 4
Data law of the cylinder top surface profile.It can be seen from Table3 and Figure 4 that when the T22096 turning needle mills the top surface of the N12 cylinder, the average profile data of point 1 is 236.0031 mm, and the average profile error is 0.0031 mm; the average profile data of point 2 is 236.0209 mm, and the average profile error is 0.0209 mm; the average data of the point 3 profile is 235.9959 mm, and the average profile error is −0.0044 mm; the average data of the point 4 profile is 235.9818 mm, and the average profile error is −0.0190 mm.


### 4.2. Analysis of the Principle of Noncontact Defect Detection

The measurement method based on pulse echo and the time-of-flight analysis method based on diffraction are two traditional methods that use ultrasonic laser technology to detect material defects. Taking surface defects as an example, when the depth of the sample defect is less than the center wavelength of the ultrasonic wave, most of the ultrasonic energy will be diffracted from the bottom of the defect, resulting in small changes in the reflected echo signal and transmitted surface wave signal, and it is not easy to find. Therefore, these two methods are not suitable for detecting surface defects whose depth is less than the wavelength of sound waves. Aiming at the problem that the defect is too small to be accurately detected, the researchers based on the characteristics of the ultrasonic laser technology proposed a method of scanning the laser source. This technology makes full use of the ultrasonic advantages of laser excitation, transforms the original detection mechanism based on the interaction of surface acoustic waves with defects into a detection mechanism based on the interaction of the laser source with the defects and the use of shape changes, and then analyzes the defects. The focal size of the laser source is much smaller than the wavelength of ultrasound. Therefore, the laser source scanning method can greatly improve the ability of laser ultrasound to detect small defects. At the same time, this method has high signal-to-noise ratio and response sensitivity.The scanning process of the laser source scanning method is shown in Figure5.Figure 5
Scanning laser source method.During the scanning process of the laser beam along the sample surface from the far field to the near field and then to the defect area, the laser beam gradually approaches the defect until it passes over the defect. In this process, the interaction between the laser beam and the defect causes the detected surface wave signal to change significantly in terms of amplitude, peak value, and frequency components. Small defects with a depth less than the center wavelength of the ultrasound can also cause significant changes in the ultrasound signal. The study found that when the relative position of the laser beam and the defect changes, the amplitude of the received surface acoustic wave signal also changes significantly. By analyzing the change of the ultrasonic signal during the laser beam scanning process, information such as the position and size of the defect can be obtained.The laser ultrasonic excitation system and the ultrasonic signal detection system are the main components of the laser ultrasonic noncontact nondestructive testing system. The detection principle is shown in Figure6.Figure 6
Schematic diagram of the laser ultrasonic noncontact detection system.The excitation system is mainly composed of a laser and a scanning mirror. The pulsed laser is used to generate ultrasonic signals on the surface of the material to be measured, and then the scanning mirror is used to instruct the laser beam to scan. Ultrasonic laser detection system mainly includes focal Fabry–Perot interferometer, signal amplifier circuit, and other parts. Detect the ultrasonic surface displacement signal generated by the optical interference detection method. The ultrasonic detection system realizes the advantages of noncontact excitation, noncontact reception of ultrasonic signals, and good detection reliability and is suitable for rapid detection in industrial sites.


### 4.3. Image Acquisition System Design

MER-500-7UM/UC series digital camera is a newly developed digital camera with USB 2.0 interface developed by Daheng Imaging. It adopts 1/2.5 line exposure CMOS sensor chip. The appearance is extremely small and compact, only 29 × 29 × 29 mm, with built-in I/O interface. Cable locking device is provided, which can work stably in various harsh environments. The main performance parameters of the industrial digital camera with high reliability and cost performance are shown in Table 4. Its main performance parameters are shown in Table4.Table 4
Industrial camera performance parameter table.
ModelMER-500-7UM/UCResolution2592 (H) × 1944 (V)Frame rate7 fpsSensor type1/2.5 “line exposure CMOSPixel size2.2μm × 2.2 μmSpectrumBlack and white/colorImage data formatMONO8/RAW8 (Bayer)/MONO12/RAW12 (Bayer)Data interfaceMini USB2.0Power consumptionRated < 1 W (@5V DC)Lens interfaceCMechanical dimensions29 mm × 29 mm × 29 mm, without connectorsWeight41 gThe lens uses a 5-megapixel low-distortion zoom lens, model MG3Z1228FC-MP. Its main performance parameters are shown in Table5.Table 5
Lens performance parameter table.
ModelMG3Z1228FC-MPTarget surface size2/3”Focal length12∼36 mmMaximum imaging size8.8 × 6.6 (Φ11) mmAperture rangeF2.8∼F360 CWorking distance0.2∼inf mAperture controlDC automatic apertureFilter threadM358 × P0.5 mmInterfaceCMechanical dimensionsΦ 41.6 × 52 × 53 mmThe automatic rotating table adopted by the system is a precision electric rotating table, and the model is ZT300-X. The turntable adopts a precisely developed worm gear structure, which is convenient to move and can be rotated back and forth in any direction. Its main performance parameters are shown in Table6.Table 6
Turntable performance parameter table.
ModelZT300-XAngle range360° aroundX, Y, Z axesResolution0.005°Positioning accuracy0.005°Table size150 × 150 mmTransmission ratio180:1E body materialAluminium alloyCenter bearer10 kgWeight25 kgMechanical dimensionsΦ 41.6 × 52 × 53 mmThe internal parameter model of the camera reflects the conversion relationship between the pixel coordinate system and the camera coordinate system. From the above model analysis of the camera internal parameters, it can be seen that the camera internal parameters mainly include the focal length, the pixel spacing along theX-axis and Y-axis directions. The origin coordinates are transformed from the image coordinate system to the pixel coordinate system and the first-order radial distortion coefficient.The position of the world coordinate system can be selected arbitrarily, so for the convenience of calculation, the world coordinate system is defined to match the camera coordinate system, and the plane of the calibration board is on the Zw = 0 plane of the world coordinate system. Usepi to represent each column vector of the rotation matrix R, and σ represents the scale factor (σ is a parameter introduced to facilitate matrix operations. For homogeneous coordinates, the existence of σ will not change the coordinate value). For any point on the plane, there are(10)σuv1=Mp1p2p3txwyw01=Mp1p2txwyw1=Axwyw1,(11)M=αγu00βv0001A=a11a12a13a21a22a23a31a321.If the space coordinates and image coordinates of some characteristic points on the calibration plate are known, the unique mapping matrix A can be solved. Substituting formulas (11) into (12),(12)σu=a11xw+a12yw+a13σv=a21xw+a22yw+a23σ=a31xw+a32yw+1.Leta′ = [a11a12a13a21a22a23a31a32], then(13)uv=xwyw1000−uxw−uyw000xwyw1−vxw−vywa′.After obtaining the homography matrixA, the internal parameters of the camera need to be further analyzed. Use ai to represent the column vector of A, and then(14)A=a1,a2,a3=εMp1,p2,t.Substitutep1 and p2 into the combination of a1, a2, and M as an expression, that is, p1 = a1M−1, p2 = a2M−1. Based on these two constraints, the following two constraint equations are obtained:(15)a1TM−TM−1a2=0,a1TM−TM−1a1=a2TM−TM−1a2.Order:(16)G=M−TM−1=G11G12G13G21G22G23G31G32G33=1α2−γα2βγv0−βu0α2β−γα2βγα2β2+1β2−γγv0−βu0α2β2−v0β2γv0−βu0α2β−γγv0−βu0α2β2−v0β2γv0−βu02α2β2+v02β2+1.According to formula (16), G is a symmetric matrix. Let: g = [G11G12G22G13G23G33] T. Suppose the vector of A is ai = [ai1, ai2, ai3] T, then(17)aiTGaj=VijTg,of which(18)Vij=ai1aj1ai1aj2+ai2aj1ai2aj2ai3aj1+ai1aj3ai3aj2+ai2aj3ai3aj3.Using constraint conditions, the following equations can be obtained:(19)V12TV11T−V22Tg=0.Suppose the number of calibration images isN, and the equations corresponding to N images are superimposed, then:(20)V×g=0.Among them,V is a 2N × 6 matrix.Perform coordinate conversion calculations: assuming that the translation transformation matrix from the camera coordinate system to the rotating coordinate system is TCA, the rotation transformation matrix is RCA, and the coordinate transformation matrix is MCA, then(21)MCA=RCA×TCA=RCA100−XA010−YA001−ZA0001.Suppose the transformation matrix that rotatesθ° counterclockwise around the OAYA axis of the rotation axis coordinate system is Ryθ, then(22)Ryθ=cosθ0−sinθ00100sinθ0cosθ00001.Assuming that the translation transformation matrix from the rotating coordinate system to the initial camera coordinate system isTAC, the rotation transformation matrix is RAC, and the coordinate transformation matrix is MAC, then(23)MAC=TAC×RAC=100XA010YA001ZA0001RAC.In this way, the point of the objectP is rotated clockwise by θ from the coordinates P0 (x0, y0, z0) in the camera coordinate system around the rotation axis, thereby obtaining the three-dimensional coordinates Pθ (xw, yw, zw) in the initial camera coordinate system. Assuming that the total conversion matrix is Rθ, then(24)Pθ=Rθ×P0=MACRyθMCA×P0=MAC×Ryθ×MCAP0,of which(25)Rθ=TACRAC×Ryθ×RCATCA=TAC×W×TCA.And, the rotation transformation matrixRAC and RCA are orthogonal matrices; then, RCA = RAC−1 = RACT.Make(26)RAC=a1b1c10a2b2c20a3b3c300001,RCA=a1a2a30b1b2b30c1c2c300001.Among them, [a1a2a3] T, [b1b2b3] T, and [c1c2c3] T are the unit direction vectors of the coordinate axes OAXA, OAYA, and OAZA of the rotating coordinate system, which are satisfied by the following formulae:(27)a1=b2c3−b3c2a2=b3c1−b1c3a3=b1c2−b2c1,b1=c2a3−c3a2b2=c3a1−c1a3b3=c1a2−c2a1,c1=a2b3−a3b2c2=a3b1−a1b3c3=a1b2−a2b1.Organize the formula into(28)W=RAC×Ryθ×RCA=a1b1c10a2b2c20a3b3c300001cosθ0−sinθ00100sinθ0cosθ00001a1a2a30b1b2b30c1c2c300001.In the formula, [b1b2b3] T is the unit direction vector of the rotation axis L in the camera coordinate system. After finishing,(29)b12+1−b12cosθX0−XA+b1b21−cosθ+b3sinθY0−YA+b1b31−cosθ−b2sinθZ0−ZA+XAb1b21−cosθ−b3sinθX0−XA+b22+1−b22cosθY0−YA+b2b31−cosθ+b1sinθZ0−ZA+YAb1b31−cosθ+b2sinθX0−XA+b2b31−cosθ−b1sinθY0−YA+b32+1−b32cosθZ0−ZA+ZA1.It can be seen that given the unit direction vector [b1b2b3] T of the axis of rotation line L in the camera coordinate system and the three-dimensional coordinates of any point on the line, the three-dimensional coordinates of the object point in the camera coordinate system can be obtained by formulas. The three-dimensional coordinates in the initial camera coordinate system, which is the world coordinate system, after the rotating shaft rotates a certain angle, confirms the external parameter model of the image acquisition system.


### 4.4. Design of Noncontact Defect Detection Process for Automobile Cylinders

The detection system cannot be completely separated from manual participation, and the system must manually participate in the preparatory work before it works. First of all, the system cannot distinguish between different types of workpieces to be tested, or even if it can be automatically identified through programming, it is a complex and arduous task. Therefore, the system uses manual participation to change the positioning position and limit of the fixture according to different types of workpieces. Therefore, the system uses manual participation to change the positioning position of the fixture and the position of the baffle according to different types of workpieces. The system also needs to change the corresponding initial parameter settings in the system software. Secondly, the clamping work of the workpiece also requires manual participation. Compared with the use of motor control to achieve workpiece clamping, manual participation is more convenient and faster. Finally, the initialization of many hardware devices also requires manual participation, such as the power supply of the motor and the turning on of the light source.After the preparatory work is completed, the detection method of the detection system will be introduced in detail. The system function has been visually presented on the main interface of the inspection system. The specific inspection steps are as follows: fix the fixture for the rainbow, and enter the workpiece number in the corresponding position on the main interface of the inspection system. According to the model of the part to be tested, set the step length and stop position of the endoscope moving motor in the main interface and set the step length and stop position of the endoscope rotating motor according to the angle of view of the selected endoscope. People click the forward button on the endoscope motion motor module on the main interface, send the endoscope into the brake iris body, and stop moving forward within the maximum coverage of the endoscope. At the same time, the system cooperates with the grating ruler to calculate the position of the endoscope at this time. At this time, select the “capture image” command to take the image at this time. Click the forward button on the endoscope rotating motor module to make the endoscope rotate clockwise, and stop when it reaches the next step to perform the operation. In this process, the system will run the image processing program in the background to detect the image in the image and save the results. The rotating motor continues to rotate the endoscope and stops when it reaches the next step length, and the system runs the image processing program in the background. Repeat the operation until the moving motor reaches the initial stop position and stops. The moving motor pushes the oscilloscope forward and stops when it reaches the next set step. During this process, the rotating motor returns to its initial position in a counterclockwise direction. Repeat four steps until the running motor reaches the stop position and stops. After checking the inner surface of the entire part, move the motor out of the brake cylinder and return to its initial position. At this point, the detection of defects on the inner surface of the entire part is completed, and finally the system saves the entire detection result for printing and reference. For defective parts, the system will also send out an audible and visual alarm, and the entire discovery process takes about two minutes.There is a “measurement kit” command in the graphics menu of the main interface of the system. Clicking this command, the system will open a measurement suite dialog box; in this dialog box, you can directly manually manipulate the collected images. The picture has a small flaw. You can use the “ellipse” command in the “operation” menu to roughly wrap the fault area in an ellipse and then click the “measurement manager” command in the “measurement” menu to open the measurement manager dialog box and measure. The manager will list the measurement operations performed on the image, select the ellipse measurement operation, and click the “view” button, you can view the detailed information of the area, such as the center point coordinates, perimeter, and area. Of course, what operation is performed on a certain area of the defect in the image depends on the characteristic shape of the defect. The principle of selection is to ensure that the selected operation can be consistent with the shape of the defect, so as to minimize the error of the defect information of the detected defect. Through the measurement setting dialog box, you can intuitively and vividly obtain the general information of the defect, and at the same time, you can compare these data with the system measurement result to verify the feasibility of the system measurement.


## 4.1. Correlation Analysis of Automobile Cylinder Profile

The basic parameters of the process system of the cylinder block production line of a company’s production base are shown in Table2.Table 2
The basic parameters of the process system of the cylinder block production line.
Process systemParameterArtifactN12 gray cast iron HT250 rough parts produced by a foundryMachine toolA five-axis CNC machining center produced by a German company, the CNC system is fanuc, the maximum speed is 10000r/min, the maximum power is 60kw, and the maximum feed speed is 60 m/minKnivesThe main models are guhring, ingesol, SADVIK, seco, etc. The detection method of the tool status is generally to detect 50 pieces at a time and determine the degree of wear of the tool according to the flatness, profile, and tool marks of the workpiece surface, so as to determine whether to change the tool.FixtureDesigned by a German company and integrated with a five-axis CNC machining centerApply the correct contact pair in the finite element model by understanding the cylinder clamping process. This article will introduce in detail the OP190 station clamping layout and clamping force calculation and the establishment of the cylinder clamping deformation, which provides the corresponding clamping information and clamping force information for the finite element model.“Profile” is used to evaluate the change between the actual measured profile and the ideal profile of the part. The contour tolerance zone is generally the upper and lower envelopes of a series of spheres with a diameter oft, the center of which is in the reference plane. The area defined by the surface is shown in Figure 3.Figure 3
Contour tolerance zone chart.The evaluation object of N12 cylinder block top surface contour is the cylinder block top surface. The defined tolerance is 0.1 mm, taking the bottom surface of the cylinder block as a reference, and the distance value is related to the actual shape of the top surface itself. Since the theoretical contour of the cylinder top surface is a plane parallel to the reference plane, the contour value of the cylinder top surface is only related to the distance between the top surface of the cylinder block and the bottom surface of the cylinder block and the reference plane. If the distanceL between the top surface of the cylinder block and the bottom surface is too large or too small, the tolerance zone will not surround the actually machined top surface, resulting in contour error. In the machining process, the milling deformation of the top surface of the cylinder block is the main reason for the fluctuation of the distance L value. Therefore, the deformation of the top surface of the cylinder block can be used to reflect the contour error of the workpiece. The deformation of the top surface of the cylinder block is equal to the contour error, and the symbol is opposite.In order to check whether the deformation of the top surface of the cylinder block can reflect the contour error of the top surface of the cylinder block, the actual statistical data Q-DAS data of op190 station of M1 and M2 production lines of engine cylinder block in a base are shown in Table3.Table 3
Profile data of the cylinder top surface.
Experiment numberContour of point 1Contour of point 2Contour of point 3Contour of point 4Actual valueError valueActual valueError valueActual valueError valueActual valueError value1236.00340.0034236.02840.0284236.00050.0005235.976−0.0262236.00960.0096236.01780.0178235.9985−0.0017235.9878−0.01223236.00230.0023236.01660.0166235.995−0.007235.9847−0.01554236.00580.0058236.02850.0285236.00760.0076235.9792−0.02085236.01080.0108236.02170.0215235.9886−0.0116235.9853−0.01476235.9937−0.0065236.02070.0207235.9966−0.0036235.9787−0.02137236.00010.0001236.01980.0198235.9955−0.0047235.9835−0.01678236.00880.0088236.01640.0164235.9948−0.0054235.986−0.0169235.9983−0.0019236.02050.0203235.9875−0.0127235.974−0.02910235.9983−0.0019236.01880.0188235.9947−0.0053235.983−0.018Average value236.00310.0031236.02090.0209235.9959−0.0044235.9818−0.0190In order to make the new tool processing more intuitively reflect the data law of the top surface profile of the N12 cylinder, the above data are drawn into a chart, as shown in Figure4.Figure 4
Data law of the cylinder top surface profile.It can be seen from Table3 and Figure 4 that when the T22096 turning needle mills the top surface of the N12 cylinder, the average profile data of point 1 is 236.0031 mm, and the average profile error is 0.0031 mm; the average profile data of point 2 is 236.0209 mm, and the average profile error is 0.0209 mm; the average data of the point 3 profile is 235.9959 mm, and the average profile error is −0.0044 mm; the average data of the point 4 profile is 235.9818 mm, and the average profile error is −0.0190 mm.


## 4.2. Analysis of the Principle of Noncontact Defect Detection

The measurement method based on pulse echo and the time-of-flight analysis method based on diffraction are two traditional methods that use ultrasonic laser technology to detect material defects. Taking surface defects as an example, when the depth of the sample defect is less than the center wavelength of the ultrasonic wave, most of the ultrasonic energy will be diffracted from the bottom of the defect, resulting in small changes in the reflected echo signal and transmitted surface wave signal, and it is not easy to find. Therefore, these two methods are not suitable for detecting surface defects whose depth is less than the wavelength of sound waves. Aiming at the problem that the defect is too small to be accurately detected, the researchers based on the characteristics of the ultrasonic laser technology proposed a method of scanning the laser source. This technology makes full use of the ultrasonic advantages of laser excitation, transforms the original detection mechanism based on the interaction of surface acoustic waves with defects into a detection mechanism based on the interaction of the laser source with the defects and the use of shape changes, and then analyzes the defects. The focal size of the laser source is much smaller than the wavelength of ultrasound. Therefore, the laser source scanning method can greatly improve the ability of laser ultrasound to detect small defects. At the same time, this method has high signal-to-noise ratio and response sensitivity.The scanning process of the laser source scanning method is shown in Figure5.Figure 5
Scanning laser source method.During the scanning process of the laser beam along the sample surface from the far field to the near field and then to the defect area, the laser beam gradually approaches the defect until it passes over the defect. In this process, the interaction between the laser beam and the defect causes the detected surface wave signal to change significantly in terms of amplitude, peak value, and frequency components. Small defects with a depth less than the center wavelength of the ultrasound can also cause significant changes in the ultrasound signal. The study found that when the relative position of the laser beam and the defect changes, the amplitude of the received surface acoustic wave signal also changes significantly. By analyzing the change of the ultrasonic signal during the laser beam scanning process, information such as the position and size of the defect can be obtained.The laser ultrasonic excitation system and the ultrasonic signal detection system are the main components of the laser ultrasonic noncontact nondestructive testing system. The detection principle is shown in Figure6.Figure 6
Schematic diagram of the laser ultrasonic noncontact detection system.The excitation system is mainly composed of a laser and a scanning mirror. The pulsed laser is used to generate ultrasonic signals on the surface of the material to be measured, and then the scanning mirror is used to instruct the laser beam to scan. Ultrasonic laser detection system mainly includes focal Fabry–Perot interferometer, signal amplifier circuit, and other parts. Detect the ultrasonic surface displacement signal generated by the optical interference detection method. The ultrasonic detection system realizes the advantages of noncontact excitation, noncontact reception of ultrasonic signals, and good detection reliability and is suitable for rapid detection in industrial sites.


## 4.3. Image Acquisition System Design

MER-500-7UM/UC series digital camera is a newly developed digital camera with USB 2.0 interface developed by Daheng Imaging. It adopts 1/2.5 line exposure CMOS sensor chip. The appearance is extremely small and compact, only 29 × 29 × 29 mm, with built-in I/O interface. Cable locking device is provided, which can work stably in various harsh environments. The main performance parameters of the industrial digital camera with high reliability and cost performance are shown in Table 4. Its main performance parameters are shown in Table4.Table 4
Industrial camera performance parameter table.
ModelMER-500-7UM/UCResolution2592 (H) × 1944 (V)Frame rate7 fpsSensor type1/2.5 “line exposure CMOSPixel size2.2μm × 2.2 μmSpectrumBlack and white/colorImage data formatMONO8/RAW8 (Bayer)/MONO12/RAW12 (Bayer)Data interfaceMini USB2.0Power consumptionRated < 1 W (@5V DC)Lens interfaceCMechanical dimensions29 mm × 29 mm × 29 mm, without connectorsWeight41 gThe lens uses a 5-megapixel low-distortion zoom lens, model MG3Z1228FC-MP. Its main performance parameters are shown in Table5.Table 5
Lens performance parameter table.
ModelMG3Z1228FC-MPTarget surface size2/3”Focal length12∼36 mmMaximum imaging size8.8 × 6.6 (Φ11) mmAperture rangeF2.8∼F360 CWorking distance0.2∼inf mAperture controlDC automatic apertureFilter threadM358 × P0.5 mmInterfaceCMechanical dimensionsΦ 41.6 × 52 × 53 mmThe automatic rotating table adopted by the system is a precision electric rotating table, and the model is ZT300-X. The turntable adopts a precisely developed worm gear structure, which is convenient to move and can be rotated back and forth in any direction. Its main performance parameters are shown in Table6.Table 6
Turntable performance parameter table.
ModelZT300-XAngle range360° aroundX, Y, Z axesResolution0.005°Positioning accuracy0.005°Table size150 × 150 mmTransmission ratio180:1E body materialAluminium alloyCenter bearer10 kgWeight25 kgMechanical dimensionsΦ 41.6 × 52 × 53 mmThe internal parameter model of the camera reflects the conversion relationship between the pixel coordinate system and the camera coordinate system. From the above model analysis of the camera internal parameters, it can be seen that the camera internal parameters mainly include the focal length, the pixel spacing along theX-axis and Y-axis directions. The origin coordinates are transformed from the image coordinate system to the pixel coordinate system and the first-order radial distortion coefficient.The position of the world coordinate system can be selected arbitrarily, so for the convenience of calculation, the world coordinate system is defined to match the camera coordinate system, and the plane of the calibration board is on the Zw = 0 plane of the world coordinate system. Usepi to represent each column vector of the rotation matrix R, and σ represents the scale factor (σ is a parameter introduced to facilitate matrix operations. For homogeneous coordinates, the existence of σ will not change the coordinate value). For any point on the plane, there are(10)σuv1=Mp1p2p3txwyw01=Mp1p2txwyw1=Axwyw1,(11)M=αγu00βv0001A=a11a12a13a21a22a23a31a321.If the space coordinates and image coordinates of some characteristic points on the calibration plate are known, the unique mapping matrix A can be solved. Substituting formulas (11) into (12),(12)σu=a11xw+a12yw+a13σv=a21xw+a22yw+a23σ=a31xw+a32yw+1.Leta′ = [a11a12a13a21a22a23a31a32], then(13)uv=xwyw1000−uxw−uyw000xwyw1−vxw−vywa′.After obtaining the homography matrixA, the internal parameters of the camera need to be further analyzed. Use ai to represent the column vector of A, and then(14)A=a1,a2,a3=εMp1,p2,t.Substitutep1 and p2 into the combination of a1, a2, and M as an expression, that is, p1 = a1M−1, p2 = a2M−1. Based on these two constraints, the following two constraint equations are obtained:(15)a1TM−TM−1a2=0,a1TM−TM−1a1=a2TM−TM−1a2.Order:(16)G=M−TM−1=G11G12G13G21G22G23G31G32G33=1α2−γα2βγv0−βu0α2β−γα2βγα2β2+1β2−γγv0−βu0α2β2−v0β2γv0−βu0α2β−γγv0−βu0α2β2−v0β2γv0−βu02α2β2+v02β2+1.According to formula (16), G is a symmetric matrix. Let: g = [G11G12G22G13G23G33] T. Suppose the vector of A is ai = [ai1, ai2, ai3] T, then(17)aiTGaj=VijTg,of which(18)Vij=ai1aj1ai1aj2+ai2aj1ai2aj2ai3aj1+ai1aj3ai3aj2+ai2aj3ai3aj3.Using constraint conditions, the following equations can be obtained:(19)V12TV11T−V22Tg=0.Suppose the number of calibration images isN, and the equations corresponding to N images are superimposed, then:(20)V×g=0.Among them,V is a 2N × 6 matrix.Perform coordinate conversion calculations: assuming that the translation transformation matrix from the camera coordinate system to the rotating coordinate system is TCA, the rotation transformation matrix is RCA, and the coordinate transformation matrix is MCA, then(21)MCA=RCA×TCA=RCA100−XA010−YA001−ZA0001.Suppose the transformation matrix that rotatesθ° counterclockwise around the OAYA axis of the rotation axis coordinate system is Ryθ, then(22)Ryθ=cosθ0−sinθ00100sinθ0cosθ00001.Assuming that the translation transformation matrix from the rotating coordinate system to the initial camera coordinate system isTAC, the rotation transformation matrix is RAC, and the coordinate transformation matrix is MAC, then(23)MAC=TAC×RAC=100XA010YA001ZA0001RAC.In this way, the point of the objectP is rotated clockwise by θ from the coordinates P0 (x0, y0, z0) in the camera coordinate system around the rotation axis, thereby obtaining the three-dimensional coordinates Pθ (xw, yw, zw) in the initial camera coordinate system. Assuming that the total conversion matrix is Rθ, then(24)Pθ=Rθ×P0=MACRyθMCA×P0=MAC×Ryθ×MCAP0,of which(25)Rθ=TACRAC×Ryθ×RCATCA=TAC×W×TCA.And, the rotation transformation matrixRAC and RCA are orthogonal matrices; then, RCA = RAC−1 = RACT.Make(26)RAC=a1b1c10a2b2c20a3b3c300001,RCA=a1a2a30b1b2b30c1c2c300001.Among them, [a1a2a3] T, [b1b2b3] T, and [c1c2c3] T are the unit direction vectors of the coordinate axes OAXA, OAYA, and OAZA of the rotating coordinate system, which are satisfied by the following formulae:(27)a1=b2c3−b3c2a2=b3c1−b1c3a3=b1c2−b2c1,b1=c2a3−c3a2b2=c3a1−c1a3b3=c1a2−c2a1,c1=a2b3−a3b2c2=a3b1−a1b3c3=a1b2−a2b1.Organize the formula into(28)W=RAC×Ryθ×RCA=a1b1c10a2b2c20a3b3c300001cosθ0−sinθ00100sinθ0cosθ00001a1a2a30b1b2b30c1c2c300001.In the formula, [b1b2b3] T is the unit direction vector of the rotation axis L in the camera coordinate system. After finishing,(29)b12+1−b12cosθX0−XA+b1b21−cosθ+b3sinθY0−YA+b1b31−cosθ−b2sinθZ0−ZA+XAb1b21−cosθ−b3sinθX0−XA+b22+1−b22cosθY0−YA+b2b31−cosθ+b1sinθZ0−ZA+YAb1b31−cosθ+b2sinθX0−XA+b2b31−cosθ−b1sinθY0−YA+b32+1−b32cosθZ0−ZA+ZA1.It can be seen that given the unit direction vector [b1b2b3] T of the axis of rotation line L in the camera coordinate system and the three-dimensional coordinates of any point on the line, the three-dimensional coordinates of the object point in the camera coordinate system can be obtained by formulas. The three-dimensional coordinates in the initial camera coordinate system, which is the world coordinate system, after the rotating shaft rotates a certain angle, confirms the external parameter model of the image acquisition system.


## 4.4. Design of Noncontact Defect Detection Process for Automobile Cylinders

The detection system cannot be completely separated from manual participation, and the system must manually participate in the preparatory work before it works. First of all, the system cannot distinguish between different types of workpieces to be tested, or even if it can be automatically identified through programming, it is a complex and arduous task. Therefore, the system uses manual participation to change the positioning position and limit of the fixture according to different types of workpieces. Therefore, the system uses manual participation to change the positioning position of the fixture and the position of the baffle according to different types of workpieces. The system also needs to change the corresponding initial parameter settings in the system software. Secondly, the clamping work of the workpiece also requires manual participation. Compared with the use of motor control to achieve workpiece clamping, manual participation is more convenient and faster. Finally, the initialization of many hardware devices also requires manual participation, such as the power supply of the motor and the turning on of the light source.After the preparatory work is completed, the detection method of the detection system will be introduced in detail. The system function has been visually presented on the main interface of the inspection system. The specific inspection steps are as follows: fix the fixture for the rainbow, and enter the workpiece number in the corresponding position on the main interface of the inspection system. According to the model of the part to be tested, set the step length and stop position of the endoscope moving motor in the main interface and set the step length and stop position of the endoscope rotating motor according to the angle of view of the selected endoscope. People click the forward button on the endoscope motion motor module on the main interface, send the endoscope into the brake iris body, and stop moving forward within the maximum coverage of the endoscope. At the same time, the system cooperates with the grating ruler to calculate the position of the endoscope at this time. At this time, select the “capture image” command to take the image at this time. Click the forward button on the endoscope rotating motor module to make the endoscope rotate clockwise, and stop when it reaches the next step to perform the operation. In this process, the system will run the image processing program in the background to detect the image in the image and save the results. The rotating motor continues to rotate the endoscope and stops when it reaches the next step length, and the system runs the image processing program in the background. Repeat the operation until the moving motor reaches the initial stop position and stops. The moving motor pushes the oscilloscope forward and stops when it reaches the next set step. During this process, the rotating motor returns to its initial position in a counterclockwise direction. Repeat four steps until the running motor reaches the stop position and stops. After checking the inner surface of the entire part, move the motor out of the brake cylinder and return to its initial position. At this point, the detection of defects on the inner surface of the entire part is completed, and finally the system saves the entire detection result for printing and reference. For defective parts, the system will also send out an audible and visual alarm, and the entire discovery process takes about two minutes.There is a “measurement kit” command in the graphics menu of the main interface of the system. Clicking this command, the system will open a measurement suite dialog box; in this dialog box, you can directly manually manipulate the collected images. The picture has a small flaw. You can use the “ellipse” command in the “operation” menu to roughly wrap the fault area in an ellipse and then click the “measurement manager” command in the “measurement” menu to open the measurement manager dialog box and measure. The manager will list the measurement operations performed on the image, select the ellipse measurement operation, and click the “view” button, you can view the detailed information of the area, such as the center point coordinates, perimeter, and area. Of course, what operation is performed on a certain area of the defect in the image depends on the characteristic shape of the defect. The principle of selection is to ensure that the selected operation can be consistent with the shape of the defect, so as to minimize the error of the defect information of the detected defect. Through the measurement setting dialog box, you can intuitively and vividly obtain the general information of the defect, and at the same time, you can compare these data with the system measurement result to verify the feasibility of the system measurement.


## 5. Conclusion

This paper proposes a noncontact measurement scheme in view of the backward detection technology, low detection efficiency, and low detection accuracy of the surface defect detection of the automobile brake master cylinder. It is based on machine vision. It has done certain research on the clamping deformation, milling deformation, and contour error control of the top surface of the automobile engine cylinder, and has achieved some results. However, the machining process of the cylinder block of an automobile engine is very complicated, and the machining quality of the cylinder block is affected by many factors. The milling contour error of the top surface of the cylinder block is controlled; from the point of view of machining optimization, during the machining process, the contour error of the cylinder top surface can be controlled by optimizing the clamping force, multipass or variable path machining; considering machining optimization and machining compensation comprehensively, through the joint optimization of clamping force and machining parameters, the contour error of the upper surface of the cylinder is controlled. Experimental results show that different optimization strategies have different error control effects. Among them, the upper surface contour error control effect based on the optimization of clamping force and processing parameters is the most ideal.



---

*Source: 5849422-2022-08-29.xml*