Loosening detection method of turbine cover bolts in pumped storage power station based on video analysis
Real-time monitoring of the looseness of the pumped storage turbine top cover bolts through video analysis technology solves the problems of low detection efficiency and reliance on human subjective will in the existing technology, and achieves high-precision and efficient bolt looseness detection.
Patent Information
- Application Number
- CN202410911419.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The existing technology cannot monitor the looseness of the top cover bolts of pumped storage turbines in real time. The detection efficiency is low and relies on human subjective will, which poses certain operational risks.
Using a method based on video analysis, the top cover bolt position image is obtained in real time, grayscale processing and bolt outline identification are performed, the angle change between the bolt and the top cover center is calculated, and the looseness of the bolt is monitored in real time.
It achieves real-time monitoring and high-precision detection of loose top cover bolts, improves detection efficiency and accuracy, and reduces operational risks.
Smart Images

Figure CN118470609B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of health monitoring of electromechanical equipment in pumped-storage power stations, and relates to a method for detecting loosening of top cover bolts of a turbine in a pumped-storage power station based on video analysis. Background Art
[0002] As a new type of hydropower business that my country has vigorously developed in the early stage, pumped storage power stations have multiple functions such as peak regulation, valley filling, frequency regulation, phase regulation, energy storage, emergency standby and black start. They are an important part of my country's construction of a clean, low-carbon, safe, reliable, smart, flexible, economical and efficient new power system. As the most core component of a pumped storage power station, the pumped storage power station turbine uses the electricity in the low load period of the power grid to pump water from the lower reservoir to the upper reservoir through the turbine for energy storage. When the power grid is at peak load, the water in the upper reservoir is pumped through the turbine to the lower reservoir for power generation. Compared with other electromechanical equipment in pumped storage power stations, ensuring the safe and reliable operation of the pumped storage power station turbine is the primary factor that all pumped storage power stations need to consider.
[0003] As an important part of the pumped-storage turbine, the turbine cover of the pumped-storage power station is used to isolate the waterwheel chamber from the runner chamber to prevent water from backflowing into the waterwheel chamber. At present, the top cover of the pumped-storage turbine is mainly connected to the cylinder body by bolts. However, with the operation of the pumped-storage turbine, the vibration during the operation of the unit will induce the loosening of the top cover bolts. In severe cases, the water in the turbine cylinder will overflow from the top cover, causing major accidents such as flooding the plant, endangering the lives and property of the hydropower station staff and the people downstream. Therefore, it is of great significance to propose a method for detecting the loosening of the top cover bolts of the pumped-storage turbine, monitor the loosening of the bolts in real time, realize the early warning of the loosening of the bolts, and ensure the normal service of the turbine.
[0004] The existing technology mainly uses manual inspection to detect the loose bolts of the top cover of pumped-storage turbines, that is, during a specific maintenance cycle, the operation and maintenance personnel check the looseness of the top cover bolts by hammering, visual inspection, etc. However, for the top cover of the pumped-storage turbine, the number of fixing bolts usually reaches about 150. The manual method alone is time-consuming and labor-intensive. More importantly, this regular maintenance and inspection method cannot grasp the real-time status of the bolts, and the detection effect depends on the subjective will of the operation and maintenance personnel, which makes the operation process of the pumped-storage turbine have certain risks. Summary of the invention
[0005] The purpose of the present invention is to provide a method for detecting loosening of turbine top cover bolts in a pumped storage power station based on video analysis, so as to solve the problems that the loosening of turbine top cover bolts in a hydropower station based on manual operation cannot be monitored in real time, the monitoring efficiency is low and the detection effect depends on the subjective will of humans.
[0006] The technical solution adopted by the present invention is a method for detecting loose bolts of a turbine top cover of a pumped storage power station based on video analysis, which is implemented according to the following steps:
[0007] Step 1, obtaining a bolt position image on a pumped storage turbine top cover in real time;
[0008] Step 2: grayscale the image obtained in step 1, perform preliminary identification of the bolt profile, and confirm the bolt center point position and bolt morphology through geometric analysis of the bolt pattern;
[0009] Step 3, calculating the pixel coordinates of the center point of the pumped storage turbine top cover;
[0010] Step 4, calculate the angle between different bolts and the center of the top cover, and record it as the initial angle; realize bolt loosening detection by real-time calculation of the angle change between the bolts at different positions and the center point of the top cover;
[0011] Step 5. Repeat steps 2 to 4 to calculate the current angles between the current different bolt positions and the center point of the top cover in real time. By comparing the difference between the current angle and the initial angle, the position of the loose bolt is identified.
[0012] The present invention is also characterized in that:
[0013] The specific process of step 2 is:
[0014] Step 2.1: The image captured in step 1 is an RGB color image. The RGB color image is processed with three channels. The image grayscale processing is the result of the integration of the three RGB channels.
[0015] Step 2.2, the top cover bolts of the pumped storage turbine are different from the surrounding structures in color. The texture gradient at the junction between the top cover bolts and the surrounding structures is large. The gradient amplitude is used to detect the edge contour of the bolts, and the initial contour of the bolts is preliminarily identified based on the clustering algorithm; the bolt edge pixels are distinguished from other pixels by the clustering algorithm, that is, the initial contour pixel distribution of the bolt structure is obtained;
[0016] Step 2.3: Combined with the pixel distribution of the initial bolt contour obtained in step 2.2, the bolt center point position and bolt morphology are confirmed by geometric analysis of the bolt pattern.
[0017] Step 2.1 grayscales the RGB image:
[0018] (1)
[0019] In the formula, is the pixel coordinate ( x , y ), , , are the pixel coordinates ( x , y ) are the values of the three channels.
[0020] Step 2.2 is as follows:
[0021] Step 2.2.1, calculate the grayscale gradient of the image pixels in the horizontal and vertical directions;
[0022] Construct gradient operators in the horizontal and vertical directions respectively, and calculate the gradients of image pixels in the horizontal and vertical directions;
[0023] (2)
[0024] In the formula, and are the grayscale gradients of image pixels in the horizontal and vertical directions, respectively. f is the grayscale matrix of image pixels, represents the convolution operation of the gradient operator and the image, H x and H y are the gradient operators in the horizontal and vertical directions respectively;
[0025] H x and H y Respectively expressed as;
[0026] (3).
[0027] Step 2.2.2, calculate the pixel gradient amplitude;
[0028] Based on the gradient magnitudes of different image pixels in the horizontal and vertical directions in step 2.2.1, the gradient amplitude is calculated;
[0029] (4)
[0030] In the formula, and The image pixels u Grayscale gradients in horizontal and vertical directions, Pixel u Gradient magnitude.
[0031] Step 2.2.3: Preliminary identification of bolt contour based on gradient amplitude. To effectively identify the bolt contour, the image gradient amplitude set calculated is designed as follows:
[0032] (5)
[0033] In the formula, g is the image gradient amplitude set, n is the number of image pixels, g n For the n The gradient magnitude of each image pixel;
[0034] The K-means clustering algorithm is used to cluster the image pixel gradient amplitude;
[0035] (6)
[0036] In the formula, E x is the image pixel grayscale gradient clustering result, The function minimum symbol, that is, when the clustering result E x When is the minimum value, it is the best clustering. i is the type of clustering, i =2, namely the bolt body and the surrounding structure, is the mean gray gradient of image pixels, Pixel j The gradient magnitude, j=1, 2... n -1, n , represents the pixel number, n is the number of image pixels; finally, the initial contour of the bolt structure is identified through the clustering results of the image pixels.
[0037] Step 2.3 Based on the obtained pixel distribution of the initial outline of the bolt structure, two bolt edges with high recognition accuracy and good integrity are selected as the basis. Considering that the bolt has a hexagonal head geometry, the center point of the bolt is located by using the intersection of the perpendicular bisectors of the bolt edge. The six fixed points of the bolt are considered to be a standard circumscribed circle, and the angle between the vertex and the center is 60 o , that is, obtaining high-precision pixel coordinates of bolt vertices.
[0038] Step 2.3 is as follows:
[0039] Step 2.3.1, set the center point of the bolt Q The pixel coordinates of O x , O y ), find the vertex P The coordinates are ( P x , P y ), bolt center point Q With Vertex P The straight lineQP equation y = kx + b satisfy;
[0040] (7)
[0041] At the same time, use any two known pixel coordinates of the edge pixels of the bolt vertex to find K ( K x , K y )and M ( M x , M y ), the calculated marginal equation satisfy;
[0042] (8).
[0043] Step 2.3.2, due to the pixel K and M The pixel coordinates of are known, that is, the equation The explicit expression of , further, given the equation y = kx + b With equation The angle between o ,Right now;
[0044] (9).
[0045] Step 2.3.3, due to the slope It is known that the slope can be obtained by solving equation (9): k , and then combined with formula (7) to calculate the intercept b , and then obtain the equation y = kx + b explicit expression; on the other hand, the vertex P required also satisfies the equation y = kx + b With equation ,Right now:
[0046] (10)
[0047] Considering the equation y = kx + b With equation All are display expressions to obtain accurate bolt vertices PBy repeating steps 2.3.1 to 2.3.3, the center points of all bolts and the precise vertex coordinates of the bolts are obtained.
[0048] The specific process of step 3 is as follows:
[0049] The pixel coordinates of the center points of the bolts at different positions on the top cover of the pumped storage turbine are used to calculate the pixel coordinates of the center points of the top cover by the least square fitting method. Assuming that the number of bolts on the top cover of the pumped storage turbine is N , the pixel coordinates of the bolt center point Q at different positions are described as:
[0050] (11)
[0051] In the formula, Q is the center point of the bolt, For the number m The pixel coordinates of the bolt center point Q in the horizontal direction, For the number m The pixel coordinate of the bolt center point Q in the vertical direction of the bolt;
[0052] Assume that the equation of the circular curve formed by the bolts of the pumped storage turbine top cover is:
[0053] (12)
[0054] In the formula, and are the pixel coordinates of the bolt center point Q in the horizontal and vertical directions, , , are the coefficients of the circular curve equation;
[0055] Using the calculated pixel coordinates of the bolt center point Q, the least squares method is used to solve the coefficients of the set circular curve equation, namely:
[0056] (13)
[0057] In the formula, N is the number of bolts, and They are numbered i The pixel coordinates of the bolt center point Q in the horizontal and vertical directions; The function minimum symbol is used to obtain the circular curve equation of the bolts on the top cover around the center of the top cover through the least squares fitting method. Finally, the pixel coordinates of the center point O of the top cover of the pumped storage turbine are calculated through the fitting circular curve equation, which is recorded as .
[0058] The specific process of step 4 is: number the vertices of the bolts at different positions, and set the pixel coordinate of the center point O of the pumped storage turbine top cover as , No. r Bolt No. e The vertex coordinates are labeled , the angle between it and the center point O of the top cover Calculated as:
[0059] (14)
[0060] In the formula, and No. r Bolt No. e The pixel coordinates of the vertices are taken, and the angles between the vertices of the bolts at different positions and the center point O of the top cover when they are not loosened are recorded as the initial angles.
[0061] Step 5: Set t Time top cover r Bolt No. e The vertex coordinates are , the vertex coordinates after the bolt is loosened are marked as , the angle change with the center point O of the top cover Calculated as:
[0062] (15)
[0063] Where: for t Moment r Bolt No. e The angle between the vertices and the center point O of the top cover, for Moment r Bolt No. e The angles between each vertex and the center point O of the top cover are calculated by formula (14); finally, bolt loosening monitoring is achieved by real-time monitoring of angle changes.
[0064] The beneficial effects of the present invention are that the method for detecting loose bolts of a turbine top cover of a pumped-storage power station based on video analysis solves the problems of low efficiency of existing loose detection based on manual timing and inability to understand the status of the bolts in real time in practical applications; in terms of detection accuracy, the method proposed in the present invention can not only monitor in real time whether the bolts are loose, but also analyze the degree of looseness through changes in the bolt angle; in terms of detection efficiency, the method proposed in the present invention is image-based and has the characteristics of high spatial resolution, and can monitor all bolts of the top cover at the same time, thereby improving the accuracy and reliability of loose detection of high-strength bolts and having high monitoring efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a flow chart of a method for detecting loosening of turbine top cover bolts of a pumped storage power station based on video analysis of the present invention;
[0066] Figure 2 It is a schematic diagram of the spatial layout of the top cover bolts of the pumped storage turbine of the present invention;
[0067] Figure 3 This is a schematic diagram of bolt center positioning and vertex positioning according to the present invention;
[0068] Figure 4 It is a schematic diagram of the fitting of the center point position of the top cover bolt of the pumped storage turbine of the present invention;
[0069] Figure 5 It is a schematic diagram of the angle between the top cover bolts and the center position of the turbine of the present invention;
[0070] Figure 6 It is a schematic diagram of the change of the angle before and after the top cover bolts of the turbine of the present invention are loosened.
[0071] In the figure, 1. cylinder head main shaft, 2. turbine cylinder head bolts. DETAILED DESCRIPTION
[0072] Example 1
[0073] The present invention discloses a method for detecting loose bolts of a pumped-storage power station turbine top cover based on video analysis. The method obtains a bolt distribution image by photographing an image of the pumped-storage turbine top cover bolts, and confirms the bolt center point position and bolt contour morphology by image grayscale processing and bolt edge detection. The top cover center position is calculated, and the angle change of bolts at different positions is calculated in real time. Whether the bolts are loose is identified based on the angle change.
[0074] Example 2
[0075] The method for detecting loosening of top cover bolts of a pumped storage power station turbine based on video analysis of the present invention is implemented according to the following steps:
[0076] Step 1, obtaining a bolt position image on a pumped storage turbine top cover in real time;
[0077] Step 2: grayscale the image obtained in step 1, use the image edge detection algorithm to preliminarily identify the bolt contour, and confirm the bolt center point position and bolt morphology through geometric analysis of the bolt pattern;
[0078] Step 3, calculating the pixel coordinates of the center point of the pumped storage turbine top cover;
[0079] Step 4, calculate the angle between different bolts and the center of the top cover, and record it as the initial angle; realize bolt loosening detection by real-time calculation of the angle change between the bolts at different positions and the center point of the top cover;
[0080] Step 5. Repeat steps 2 to 4 to calculate the current angles between the current different bolt positions and the center point of the top cover in real time. By comparing the difference between the current angle and the initial angle, the position of the loose bolt is identified.
[0081] Example 3
[0082] The present invention is a method for detecting loose bolts on the top cover of a pumped storage power station turbine based on video analysis, and the flow chart is as follows: Figure 1 As shown, the implementation is carried out according to the following steps:
[0083] Step 1: Install a camera above the top cover of the pumped storage turbine, use the camera to shoot the top cover bolt position, and obtain the bolt position image in real time; Schematic diagram of the spatial layout of the pumped storage turbine top cover bolts, as shown in Figure 2 As shown, it includes a cylinder head main shaft 1, and a plurality of turbine cylinder head bolts 2 are evenly arranged around the circumferential edge of the cylinder head main shaft 1.
[0084] Step 2: Grayscale the image and use the image edge detection algorithm to preliminarily identify the bolt contour. By analyzing the geometry of the bolt pattern, confirm the bolt center point position and bolt morphology.
[0085] The specific process is:
[0086] Step 2.1: The image captured in step 1 is an RGB color image. The RGB color image is processed with three channels. The image grayscale processing is the result of the integration of the three RGB channels.
[0087] The grayscale processing of RGB image is as follows;
[0088] (1)
[0089] In the formula, is the pixel coordinate ( x , y ), , , are the pixel coordinates ( x , y ) are the values of the three channels.
[0090] Step 2.2: The top cover bolts of the pumped storage turbine are different from the surrounding structures in color. The texture gradient at the junction between the top cover bolts and the surrounding structures is large. The gradient amplitude is used to detect the edge contour of the bolts, and the initial contour of the bolts is preliminarily identified based on the clustering algorithm.
[0091] Step 2.2.1, calculate the grayscale gradient of the image pixels in the horizontal and vertical directions;
[0092] Construct gradient operators in the horizontal and vertical directions respectively, and calculate the gradients of image pixels in the horizontal and vertical directions;
[0093] (2)
[0094] In the formula, and are the grayscale gradients of image pixels in the horizontal and vertical directions, respectively. f is the grayscale matrix of image pixels, represents the convolution operation of the gradient operator and the image, H x and H y are the gradient operators in the horizontal and vertical directions respectively;
[0095] H x and H y Respectively expressed as;
[0096] (3).
[0097] Step 2.2.2, calculate the pixel gradient amplitude;
[0098] Based on the gradient magnitudes of different image pixels in the horizontal and vertical directions in step 2.2.1, the gradient amplitude is calculated;
[0099] (4)
[0100] In the formula, and The image pixels u Grayscale gradients in horizontal and vertical directions, Pixel u Gradient magnitude.
[0101] Step 2.2.3: Preliminary identification of bolt contour based on gradient amplitude. To effectively identify the bolt contour, the image gradient amplitude set calculated is designed as follows:
[0102] (5)
[0103] In the formula, g is the image gradient amplitude set, n is the number of image pixels; g n For the n The gradient magnitude of each image pixel;
[0104] The K-means clustering algorithm is used to cluster the image pixel gradient amplitude;
[0105] (6)
[0106] E x is the image pixel grayscale gradient clustering result, The function minimum symbol, that is, when the clustering result E x When is the minimum value, it is the best clustering. i is the type of clustering, i =2, namely the bolt body and the surrounding structure, is the mean gray gradient of image pixels, Pixel j The gradient magnitude, j=1, 2... n -1, n , represents the pixel number, n is the number of image pixels; finally, the initial contour of the bolt structure is identified through the clustering results of the image pixels.
[0107] Step 2.3: Combined with the pixel distribution of the initial bolt contour obtained in step 2.2, the bolt center point position and bolt morphology are confirmed by geometric analysis of the bolt pattern.
[0108] Based on the pixel distribution of the initial contour of the bolt structure, two bolt edges with high recognition accuracy and good integrity are selected as the basis. Considering that the bolt has a hexagonal head geometry, the center point of the bolt is located by using the intersection of the perpendicular bisectors of the bolt edges, such as Figure 3 As shown, the six fixed points of the bolt are considered to be a standard circumscribed circle, and the angle between the vertex and the center is 60 o , that is, obtaining high-precision pixel coordinates of bolt vertices.
[0109] Step 2.3.1, set the center point of the bolt Q The pixel coordinates of O x , O y ), find the vertex P The coordinates are ( P x , P y ), bolt center point Q With Vertex P The straight line QP equation y = kx + b satisfy;
[0110] (7)
[0111] At the same time, use any two known pixel coordinates of the edge pixels of the bolt vertex to find K ( K x , K y )and M ( M x , M y ), the calculated marginal equation satisfy;
[0112] (8).
[0113] Step 2.3.2, due to the pixel K and M The pixel coordinates of are known, that is, the equation The explicit expression of , further, given the equation y = kx + b With equation The angle between o ,Right now;
[0114] (9).
[0115] Step 2.3.3, due to the slope It is known that the slope can be obtained by solving equation (9): k , and then combined with formula (7) to calculate the intercept b , and then obtain the equation y = kx + b explicit expression; on the other hand, the vertex P required also satisfies the equation y = kx + b With equation ,Right now:
[0116] (10)
[0117] Considering the equation y = kx + b With equation All are display expressions to obtain accurate bolt vertices P By repeating steps 2.3.1 to 2.3.3, the center points of all bolts and the precise vertex coordinates of the bolts are obtained.
[0118] Step 3: Calculate the pixel coordinates of the center point of the pumped storage turbine top cover according to the center point position coordinates of different bolts.
[0119] The specific process is:
[0120] The pixel coordinates of the center points of bolts at different positions on the top cover of the pumped storage turbine are used to calculate the pixel coordinates of the center point of the top cover by the least squares fitting method, as shown in the figure. Figure 4 As shown, the number of bolts on the top cover of the pumped storage turbine is N , the pixel coordinates of the bolt center point Q at different positions are described as:
[0121] (11)
[0122] In the formula, Q is the center point of the bolt, For the number m The pixel coordinates of the bolt center point Q in the horizontal direction, For the number m The pixel coordinate of the bolt center point Q in the vertical direction of the bolt;
[0123] Assume that the equation of the circular curve formed by the bolts of the pumped storage turbine top cover is:
[0124] (12)
[0125] In the formula, and are the pixel coordinates of the bolt center point Q in the horizontal and vertical directions, , , are the coefficients of the circular curve equation;
[0126] Using the calculated pixel coordinates of the bolt center point Q, the least squares method is used to solve the coefficients of the set circular curve equation, namely:
[0127] (13)
[0128] In the formula, N is the number of bolts, and They are numbered i The pixel coordinates of the bolt center point Q in the horizontal and vertical directions; The function minimum symbol is used to obtain the circular curve equation of the bolts on the top cover around the center of the top cover through the least squares fitting method. Finally, the pixel coordinates of the center point O of the top cover of the pumped storage turbine are calculated through the fitting circular curve equation, which is recorded as .
[0129] Step 4: Combine the different bolt positions in step 3 and the center position of the pumped storage turbine top cover to calculate the angle between different bolts and the center of the top cover, and record it as the initial angle; bolt loosening detection is achieved by real-time calculation of the angle change between the bolts at different positions and the center point O of the top cover.
[0130] Number the vertices of bolts at different positions, such as Figure 5 As shown, the pixel coordinate of the center O of the pumped storage turbine top cover is , No. r Bolt No. e The vertex coordinates are labeled , the angle between the center of the top cover O Calculated as:
[0131] (14)
[0132] In the formula, and No. r Bolt No. e The pixel coordinates of the vertices are taken, and the angles between the vertices of the bolts at different positions and the center of the top cover when they are not loosened are recorded as the initial angles.
[0133] Step 5. Repeat steps 2 to 4 to calculate the current angles between the current different bolt positions and the center point O of the top cover in real time. By comparing the difference between the current angle and the initial angle, the position of the loose bolt is identified.
[0134] like Figure 6 As shown, t Time top cover r Bolt No. e The vertex coordinates are , after the bolt is loosened, its vertex coordinates are marked as , the angle change with the center point O of the top cover Calculated as:
[0135] (15)
[0136] Where: for t Moment r Bolt No. e The angle between the vertices and the center of the cap O, for Moment r Bolt No. e The angles between each vertex and the center O of the top cover are calculated by formula (14); finally, bolt loosening monitoring is achieved by real-time monitoring of angle changes.
[0137] The invention discloses a method for detecting bolt loosening of a pumped-storage power station turbine top cover based on video analysis, and the steps include: step 1, obtaining a bolt position image on the pumped-storage turbine top cover in real time; step 2, graying the image, using an image edge detection algorithm to preliminarily identify the bolt outline, and confirming the bolt center point position and bolt morphology by geometric analysis of the bolt pattern; step 3, calculating the pixel coordinates of the center point position of the pumped-storage turbine top cover; step 4, calculating the angle between different bolts and the center of the top cover, and recording it as the initial angle; bolt loosening detection is achieved by calculating the angle change between the bolts at different positions and the center point of the top cover in real time. Step 5, repeating steps 2 to 4, calculating the existing angle between the current different bolt positions and the center point of the top cover in real time, and identifying the position of the loose bolt by comparing the difference between the existing angle and the initial angle. The present invention provides a method for detecting loose bolts on a turbine cover of a pumped-storage power station based on video analysis, which realizes real-time detection of the turbine cover bolts on a pumped-storage power station, changes the traditional situation of requiring manual regular inspections, improves detection accuracy while ensuring detection efficiency, and improves the reliability of detection results.
Claims
1. A method for detecting loose bolts on the top cover of a pumped storage power station turbine based on video analysis. It is characterized in that Follow these steps to implement: Step 1, obtaining a bolt position image on a pumped storage turbine top cover in real time; Step 2: grayscale the image obtained in step 1, perform preliminary identification of the bolt profile, and confirm the bolt center point position and bolt morphology through geometric analysis of the bolt pattern; Step 3, calculating the pixel coordinates of the center point of the pumped storage turbine top cover; Step 4, calculate the angles between different bolts and the center of the top cover, and record them as the initial angles; bolt loosening detection is achieved by real-time calculation of the angle changes between the bolts at different positions and the center point of the top cover; Step 5, repeat steps 2 to 4, calculate the current angle between the current different bolt positions and the center point of the top cover in real time, and identify the position of the loose bolt by comparing the difference between the current angle and the initial angle; The specific process of step 2 is: Step 2.1: The image captured in step 1 is an RGB color image. The RGB color image is processed with three channels. The image grayscale processing is the result of the integration of the three RGB channels. Step 2.2, the top cover bolts of the pumped storage turbine are different from the surrounding structures in color. The texture gradient at the junction between the top cover bolts and the surrounding structures is large. The gradient amplitude is used to detect the edge contour of the bolts, and the initial contour of the bolts is preliminarily identified based on the clustering algorithm; the bolt edge pixels are distinguished from other pixels by the clustering algorithm, that is, the initial contour pixel distribution of the bolt structure is obtained; Step 2.3, combining the pixel distribution of the initial bolt contour obtained in step 2.2, and confirming the bolt center point position and bolt morphology through geometric analysis of the bolt pattern; Step 2.1 grayscales the RGB image: (1) In the formula, is the pixel coordinate ( x , y ), , , are the pixel coordinates ( x , y ) at the values of the three channels; Step 2.2 is as follows: Step 2.2.1, calculate the grayscale gradient of the image pixels in the horizontal and vertical directions; Construct gradient operators in the horizontal and vertical directions respectively, and calculate the gradients of image pixels in the horizontal and vertical directions; (2) In the formula, and are the grayscale gradients of image pixels in the horizontal and vertical directions, respectively. f is the grayscale matrix of image pixels, represents the convolution operation of the gradient operator and the image, H x and H y are the gradient operators in the horizontal and vertical directions respectively; H x and H y Respectively expressed as; (3); Step 2.2.2, calculate the pixel gradient amplitude; Based on the gradient magnitudes of different image pixels in the horizontal and vertical directions in step 2.2.1, the gradient amplitude is calculated; (4) In the formula, and The image pixels u Grayscale gradients in horizontal and vertical directions, Pixel u Gradient amplitude; Step 2.2.3: Preliminary identification of bolt contour based on gradient amplitude. To effectively identify the bolt contour, the image gradient amplitude set calculated is designed as follows: (5) In the formula, g is the image gradient amplitude set, n is the number of image pixels, g n For the n The gradient magnitude of each image pixel; The K-means clustering algorithm is used to cluster the image pixel gradient amplitude; (6) E x is the image pixel grayscale gradient clustering result, The function minimum symbol, that is, when the clustering result E x When is the minimum value, it is the best clustering. i is the type of clustering, i =2, namely the bolt body and the surrounding structure, is the mean gray gradient of image pixels, Pixel j The gradient magnitude, j=1, 2... n -1, n , represents the pixel number, n is the number of image pixels; Finally, the initial contour of the bolt structure is identified through the clustering results of the image pixels; Step 2.3 Based on the obtained pixel distribution of the initial outline of the bolt structure, two bolt edges with high recognition accuracy and good integrity are selected as the basis. Considering that the bolt has a hexagonal head geometry, the center point of the bolt is located by using the intersection of the perpendicular bisectors of the bolt edge. The six fixed points of the bolt are considered to be a standard circumscribed circle, and the angle between the vertex and the center is 60 o , that is, obtaining high-precision pixel coordinates of bolt vertices; Step 2.3 is as follows: Step 2.3.1, set the center point of the bolt Q The pixel coordinates of O x , O y ), find the vertex P The coordinates are ( P x , P y ), bolt center point Q With Vertex P The straight line QP equation y = kx + b satisfy; (7) At the same time, use any two known pixel coordinates of the edge pixels of the bolt vertex to find K ( K x , K y )and M ( M x , M y ), the calculated marginal equation satisfy; (8); Step 2.3.2, due to the pixel K and M The pixel coordinates of are known, that is, the equation The explicit expression of , further, given the equation y = kx + b With equation The angle between o ,Right now; (9); Step 2.3.3, due to the slope It is known that the slope can be obtained by solving equation (9): k , and then combined with formula (7) to calculate the intercept b , and then obtain the equation y = kx + b explicit expression; on the other hand, the vertex P required also satisfies the equation y = kx + b With equation ,Right now: (10) Considering the equation y = kx + b With equation All are display expressions to obtain accurate bolt vertices P By repeating steps 2.3.1 to 2.3.3, the center points of all bolts and the precise vertex coordinates of the bolts are obtained; The specific process of step 3 is as follows: The pixel coordinates of the center points of the bolts at different positions on the top cover of the pumped storage turbine are used to calculate the pixel coordinates of the center points of the top cover by the least square fitting method. Assuming that the number of bolts on the top cover of the pumped storage turbine is N , the pixel coordinates of the bolt center point Q at different positions are described as: (11) In the formula, Q is the center point of the bolt, For the number m The pixel coordinates of the bolt center point Q in the horizontal direction, For the number m The pixel coordinate of the bolt center point Q in the vertical direction of the bolt; Assume that the equation of the circular curve formed by the bolts of the pumped storage turbine top cover is: (12) In the formula, and are the pixel coordinates of the bolt center point Q in the horizontal and vertical directions, , , are the coefficients of the circular curve equation; Using the calculated pixel coordinates of the bolt center point Q, the least squares method is used to solve the coefficients of the set circular curve equation, namely: (13) In the formula, N is the number of bolts, and They are numbered i The pixel coordinates of the bolt center point Q in the horizontal and vertical directions; The function minimum symbol is used to obtain the circular curve equation of the bolts on the top cover around the center of the top cover through the least squares fitting method. Finally, the pixel coordinates of the center point O of the top cover of the pumped storage turbine are calculated through the fitting circular curve equation, which is recorded as ; The specific process of step 4 is: number the vertices of the bolts at different positions, and set the pixel coordinate of the center point O of the pumped storage turbine top cover as , No. r Bolt No. e The vertex coordinates are labeled , the angle between it and the center point O of the top cover Calculated as: (14) In the formula, and No. r Bolt No. e The pixel coordinates of the vertices are recorded as the initial angles. Step 5: Set t Time top cover r Bolt No. e The vertex coordinates are , the vertex coordinates after the bolt is loosened are marked as , the angle change with the center point O of the top cover Calculated as: (15) Where: for t Moment r Bolt No. e The angle between the vertex and the center point O of the top cover, for Moment r Bolt No. e The angles between each vertex and the center point O of the top cover are calculated by formula (14); finally, bolt loosening monitoring is achieved by real-time monitoring of angle changes.
