A method for detecting cable clamp slippage of suspension bridge based on binocular vision

Binocular vision technology is used to spray mark points and take images, and image processing technology is used to automatically measure the slippage of the cable clamps of the suspension bridge. This solves the problem of low accuracy of traditional detection methods and achieves high-precision and efficient cable clamp slippage detection.

CN117788583BActive Publication Date: 2024-09-17GUANGDONG HIGHWAY CONSTR CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311835524.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-17
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

Traditional suspension bridge cable clamp slip detection methods have low accuracy and are highly subjective. They cannot accurately measure the sliding distance of the cable clamp, which affects the durability of the structure.

Method used

A detection method based on binocular vision is adopted, by spraying marking points and taking images with a binocular camera, using image processing technology to calculate the slippage of the cable clip, and automatically measuring the slippage by correcting reprojection errors and distortion parameters.

Benefits of technology

It achieves high-precision, low-error cable clamp slip detection with high measurement efficiency, far exceeding traditional methods, and can accurately measure the sliding distance of the cable clamp.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117788583B
    Figure CN117788583B
Patent Text Reader

Abstract

The present invention discloses a method for detecting the slippage of a cable clamp of a suspension bridge based on binocular vision, which relates to the field of suspension bridge detection and includes the following steps: S1: spraying a second marking point and a first marking point on the cable clamp of the suspension bridge and the cable adjacent to the cable clamp respectively; S2: calibrating a binocular camera; S3: photographing the second marking point and the first marking point using the calibrated binocular camera, and calculating the initial interval distance between the two marking points after correction; S4: photographing the cable clamp and the cable again using the binocular camera, and calculating the re-inspection interval distance between the two marking points after correction, and the slippage of the cable clamp is the difference between the re-inspection interval distance and the initial interval distance. The method of the present invention adopts binocular vision and automatically calculates the slippage of the cable clamp by image processing, with small measurement error and high precision; it is much higher than traditional detection methods in terms of measurement precision and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of suspension bridge detection, and in particular to a suspension bridge cable clamp slippage detection method based on binocular vision. Background Art

[0002] As an important structure of the cable system of a suspension bridge, the cable clamp transfers the cable tension generated by the structural dead load and vehicle live load to the main cable. By applying a preload to the screw on the cable clamp, the force generated by the cable tension along the radial direction of the main cable can be resisted, thereby avoiding the slippage of the cable clamp. If the preload of the cable clamp screw is too small, the cable clamp will slip, causing the redistribution of the force of the adjacent cables, thereby changing the line shape of the main beam. This process has a divergent effect, the result is irreversible, and recovery is extremely difficult. At the same time, the slippage of the cable clamp will cause the protection of the cable clamp ring seam (especially the upper end ring seam) to be damaged, allowing rainwater to enter the main cable, causing corrosion of the main cable steel wire, and seriously affecting the durability of the structure.

[0003] Traditional detection methods are often completed manually, using calipers, feeler gauges and other means to detect the slippage of the cable clamp, and setting a torque wrench to measure and tighten the bolts. Currently, drones are also used to shoot the cable clamp and the slippage position, and then AutoCAD is used to zoom in, and the slippage is calibrated after selecting a reference, and then the ratio of the cable clamp length is measured and the slippage is calculated. There is also a method of using a displacement meter and a thermometer, using a displacement meter to measure the current slippage of the cable clamp, and combining it with a thermometer to correct the slippage to eliminate the influence of temperature on the displacement measurement. It has high operability, wide application, and low cost, but it has low accuracy and strong subjectivity, and cannot accurately detect the sliding distance of the cable clamp. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a cable clamp slippage detection method for a suspension bridge based on binocular vision, which can accurately measure the sliding distance of the cable clamp.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A method for detecting the slippage of a cable clamp of a suspension bridge based on binocular vision is provided, which comprises the following steps:

[0007] S1: spraying a second marking point and a first marking point on a cable clamp of a suspension bridge and a cable adjacent to the cable clamp respectively;

[0008] S2: Calibrate the binocular camera, optimize the reprojection error of the binocular camera, and obtain the position transformation data and distortion parameters of the binocular camera;

[0009] S3: Use the calibrated binocular camera to shoot the second marking point and the first marking point, correct the position between the two marking points obtained by shooting by using the position parameter and the distortion parameter, and calculate the initial interval distance between the two marking points after correction;

[0010] S4: The cable clamp and the suspension cable are photographed again using the binocular camera, and the position between the two marking points obtained by the photography is corrected using the position parameters and distortion parameters again, and the re-inspection interval distance of the two marking points after correction is calculated; when the re-inspection interval distance is inconsistent with the initial interval distance, the cable clamp has slipped, and the slippage of the cable clamp is the difference between the re-inspection interval distance and the initial interval distance.

[0011] Furthermore, the specific steps of obtaining the position transformation data of the binocular camera include the following:

[0012] A1: Calibrate the left and right monocular cameras of the binocular camera respectively, and use the left and right monocular cameras to shoot the circular calibration plate respectively;

[0013] A2: According to the captured images, the left camera coordinate system of the left monocular camera and the left camera conversion relationship of the world coordinate system, and the right camera conversion relationship of the right monocular camera and the world coordinate system are constructed;

[0014] A3: Calculate the position transformation data of the left monocular camera based on the left camera transformation relationship Among them, R L is the left monocular camera rotation matrix; t L is the translation vector of the left monocular camera; the position transformation data of the right monocular camera is calculated according to the transformation relationship of the right camera Among them, R R is the rotation matrix of the right monocular camera; t R is the translation vector of the right monocular camera.

[0015] Furthermore, the specific steps for obtaining the distortion parameters of the binocular camera include the following:

[0016] B1: Use the right monocular camera to shoot the circular calibration plate to obtain n right distortion calibration images;

[0017] B2: Calculate the reprojection error of the right monocular camera:

[0018]

[0019] Among them, m R is the number of circle center points detected in the i-th right distortion calibration image; is the actual pixel coordinate of the jth circular point in the i-th right distortion calibration image; is the pixel coordinate of the circular point after the coordinate system is transformed; KR is the internal parameter matrix of the right monocular camera; is the rotation matrix from the world coordinate system to the right camera coordinate system in the i-th right distortion calibration image; is the translation vector from the world coordinate system to the right camera coordinate system in the i-th right distortion calibration image; (k 1R ,k 2R ,p 1R ,p 2R ) is the distortion parameter of the right monocular camera;

[0020] B3: Use the left monocular camera to shoot the circular calibration plate to obtain n left distortion calibration images;

[0021] B4: Calculate the reprojection error of the left monocular camera:

[0022]

[0023] Among them, m L is the number of circle center points detected in the i-th left distorted calibration image; is the actual pixel coordinate of the jth circular point in the i-th left distortion calibration image; is the pixel coordinate of the circular point after the coordinate system is transformed; K L is the internal parameter matrix of the left monocular camera; (k 1L ,k 2L ,p 1L ,p 2L ) is the distortion parameter of the left monocular camera; T R2L is the position transformation relationship from the right camera coordinate system to the left camera coordinate system; T L T is the position transformation data from the world coordinate system to the left camera coordinate system; R Position transformation data from the world coordinate system to the right camera coordinate system;

[0024] B5: By summing and minimizing the reprojection error of the right monocular camera and the reprojection error of the left monocular camera, the distortion parameters of the left monocular camera and the right monocular camera are optimized.

[0025] Furthermore, step S3 includes the following specific steps:

[0026] C1: Use a calibrated binocular camera to capture a marked point image containing a first marked point and a second marked point;

[0027] C2: Preprocessing image of the marker point image;

[0028] C3: The optimal segmentation threshold is calculated using the maximum inter-class variance method;

[0029] C4: Use the optimal segmentation threshold to segment the preprocessed image into a binary image;

[0030] C5: After morphological processing of the binary image, edge detection is used to extract contour information;

[0031] C6: Perform ellipse fitting on the contour information to obtain the center coordinates of the first marking point and the second marking point, thereby calculating the distance between the first marking point and the second marking point.

[0032] Furthermore, the preprocessing includes sequentially performing median filtering and gamma correction.

[0033] Furthermore, step C5 includes the following specific steps:

[0034] C51: Use the edge detection operator kernel to scan the binary image after morphological processing to obtain the edge image;

[0035] C52: Perform connected domain analysis on the edge image to obtain the contours of each object in the image;

[0036] C53: Filter the contour to obtain the contours of the first marking point and the second marking point.

[0037] Further, step C52 includes the following specific steps:

[0038] C521: Traverse the edge image. If the pixel value at the current position is 0, assign the pixel a label value of 0. If the pixel value at the current position is not 0 and the pixel values ​​in the eight regions around the pixel are all 0, assign the pixel a label label and set label = label + 1. If the current pixel value is not zero and there are pixels with label label in the eight regions around the pixel, assign the pixel the smallest label value in the eight regions. Obtain the label image.

[0039] C522: Traverse the label image, replace the pixels with label label in the label image with connected areas, and obtain the contours of each object.

[0040] Furthermore, step C53 includes the following specific steps:

[0041] C531: Calculate the contour area A of each object i , remove those that do not belong to the screening range [A min , A max ] outline;

[0042] C532: Construct the minimum enclosing rectangle of each retained contour, making the length of the minimum enclosing rectangle greater than the width, and calculate the aspect ratio R of the minimum enclosing rectangle of each contour i ; Eliminate those that do not belong to the screening range [Rmin , R max ] outline;

[0043] C533: Calculate the circularity C of each retained contour i ; Eliminate those that are not included in the screening range [C min , C max ]'s outline; complete the outline screening.

[0044] Further, step C54 includes the following specific steps:

[0045] C541: The equation of the ellipse to set the contour is:

[0046] Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0;

[0047] Among them, A, B, C, D, E, F are the coefficient constants of the ellipse equation; (x, y) are the coordinates of the point on the ellipse;

[0048] C542: Define each point on the contour as:

[0049] f(α,X i )=αX i =Ax i 2 +Bx i y i +Cy i 2 +Dx i +Ey i +F;

[0050] Among them, the vector Vector α = (A, B, C, D, E, F);

[0051] C543: Obtain the ellipse fitting distance error f(n) of all contour points on a single contour according to the least squares method;

[0052]

[0053] Where i is the i-th contour point on a single contour; n is the number of contour points of a single contour;

[0054] C544: The coefficients A, B, C, D, E, and F of the best fitting ellipse equation are calculated based on the extreme value equation. The extreme value equation is:

[0055]

[0056] C545: Calculate the center point of the ellipse (x c,y c ):

[0057]

[0058] Furthermore, the calculation of the initial interval distance in step S4 includes the following steps:

[0059] S41: Set the coordinates of the first marking point in the image taken by the left monocular camera to The coordinates of the first marker point in the image taken by the right monocular camera are The coordinates of the second marker in the image taken by the right monocular camera are The coordinates of the second marker in the image taken by the right monocular camera are

[0060] S42: Calculate the three-dimensional space point coordinates (X1, Y1, Z1) of the first marking point in the camera coordinate system and the three-dimensional space point coordinates (X2, Y2, Z2) of the second marking point in the camera coordinate system according to the coordinates of the first marking point and the second marking point in the image taken by the left monocular camera and the image taken by the right monocular camera:

[0061]

[0062] in, is the disparity of the first marker point in the left and right monocular cameras; is the disparity of the first marker point in the left and right monocular cameras; B′ is the baseline distance between the two cameras; f x , f y is the scaling factor of the left monocular camera; (u0, v0) is the image pixel center coordinate of the left monocular camera;

[0063] S43: Calculate the initial spatial distance d between the first marking point and the second marking point init :

[0064]

[0065] The beneficial effects of the present invention are:

[0066] The present invention detects the slippage of the cable clamp of the suspension bridge by using binocular vision. First, a pair of marking points are sprayed at the position to be measured, and then a group of images containing the marking points are captured by a binocular camera. The subsequent measurement is compared with the initial value to obtain the slippage of the current suspension bridge cable clamp. The method of the present invention uses binocular vision and image processing to automatically calculate the slippage of the cable clamp, with small measurement error and high accuracy; it is much higher than traditional detection methods in terms of measurement accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1It is a schematic diagram of the process of the present invention;

[0068] Figure 2 The vertical operator kernel used for edge detection;

[0069] Figure 3 The horizontal operator kernel used for edge detection. DETAILED DESCRIPTION

[0070] The specific implementation modes of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0071] like Figure 1 As shown, a method for detecting the slippage of a cable clamp of a suspension bridge based on binocular vision comprises the following steps:

[0072] S1: spraying a second marking point and a first marking point on the cable clamp of the suspension bridge and the cable adjacent to the cable clamp respectively; in specific implementation, the marking point is a double-layer ellipse shape with black in the middle and white outside;

[0073] S2: Calibrate the binocular camera, optimize the reprojection error of the binocular camera, and obtain the position transformation data and distortion parameters of the binocular camera;

[0074] S3: Use the calibrated binocular camera to shoot the second marking point and the first marking point, correct the position between the two marking points obtained by shooting by using the position parameter and the distortion parameter, and calculate the initial interval distance between the two marking points after correction;

[0075] S4: The cable clamp and the suspension cable are photographed again using the binocular camera, and the position between the two marking points obtained by the photography is corrected using the position parameters and distortion parameters again, and the re-inspection interval distance of the two marking points after correction is calculated; when the re-inspection interval distance is inconsistent with the initial interval distance, the cable clamp has slipped, and the slippage of the cable clamp is the difference between the re-inspection interval distance and the initial interval distance.

[0076] The specific steps for obtaining the position transformation data of the binocular camera include the following:

[0077] A1: Calibrate the left and right monocular cameras of the binocular camera respectively, and use the left and right monocular cameras to shoot the circular calibration plate respectively;

[0078] A2: According to the captured images, the left camera coordinate system of the left monocular camera and the left camera conversion relationship of the world coordinate system, and the right camera conversion relationship of the right monocular camera and the world coordinate system are constructed;

[0079] A3: Calculate the position transformation data of the left monocular camera based on the left camera transformation relationship Among them, R L is the left monocular camera rotation matrix; t L is the translation vector of the left monocular camera; the position transformation data of the right monocular camera is calculated according to the transformation relationship of the right camera Among them, R R is the rotation matrix of the right monocular camera; t R is the translation vector of the right monocular camera.

[0080] In specific implementation, the calibration of the monocular camera uses the mapping relationship between the spatial three-dimensional points of the world coordinate system and the two-dimensional points of the image to achieve the purpose of calibrating the camera's internal parameters K. K is expressed as:

[0081]

[0082] where f x , f y is the scaling factor, u0 and v0 are the coordinates of the center of the image pixels, both in pixels. s is the non-vertical factor; the specific mapping relationship from the three-dimensional point in the space to the two-dimensional point in the image is shown in the following formula:

[0083]

[0084] Among them, (X wi ,Y wi ,Z wi ) is the coordinate value of the center position of each dot on the circular calibration plate in the world coordinate system, i is the serial number of the dot, and since the dot is located on the plane of the calibration plate, there is Z wi =0;(X wi ,Y wi ,0,1) is the homogeneous coordinate of the point; (u i ,v i ) is the pixel position of the center of the dot in the image. Similarly, (u i ,v i ,1) is the homogeneity of the dot image coordinates; r1, r2, r3 are all 3*1 rotation vectors in space, which are orthogonal, t is a 3*1 translation vector in space; H is a projection matrix that combines the above intrinsic matrix, rotation and translation vectors, and its size is 3*3; λ is a scale factor constant;

[0085] Let the projection matrix H be:

[0086]

[0087] According to the overdetermined equation:

[0088]

[0089] And obtain the parameters of the H matrix through SVD (Singular Value Decomposition); thus obtaining the r1, r2 rotation vectors and t translation vector:

[0090]

[0091] Since r3 is orthogonal to r1 and r2, we can get r3 = r1 × r2

[0092] The specific steps for obtaining the distortion parameters of the binocular camera include the following:

[0093] B1: Use the right monocular camera to shoot the circular calibration plate to obtain n right distortion calibration images;

[0094] B2: Calculate the reprojection error of the right monocular camera:

[0095]

[0096] Among them, m R is the number of circle center points detected in the i-th right distortion calibration image; is the actual pixel coordinate of the jth circular point in the i-th right distortion calibration image; is the pixel coordinate of the circular point after the coordinate system is transformed; K R is the internal parameter matrix of the right monocular camera; is the rotation matrix from the world coordinate system to the right camera coordinate system in the i-th right distortion calibration image; is the translation vector from the world coordinate system to the right camera coordinate system in the i-th right distortion calibration image; (k 1R ,k 2R ,p 1R ,p 2R ) is the distortion parameter of the right monocular camera;

[0097] B3: Use the left monocular camera to shoot the circular calibration plate to obtain n left distortion calibration images;

[0098] B4: Calculate the reprojection error of the left monocular camera:

[0099]

[0100] Among them, m L is the number of circle center points detected in the i-th left distorted calibration image; is the actual pixel coordinate of the j-th circular point in the i-th left distortion calibration image; is the pixel coordinate of the circular point after coordinate transformation; K L is the internal parameter matrix of the left monocular camera; (k 1L , k 2L , p 1L , p 2L ) are the distortion parameters of the left monocular camera; T R2L is the position transformation relationship from the right camera coordinate system to the left camera coordinate system; T L is the position transformation data from the world coordinate system to the left camera coordinate system; T R is the position transformation data from the world coordinate system to the right camera coordinate system;

[0101] B5: By summing and minimizing the reprojection errors of the right monocular camera and the left monocular camera, the distortion parameters of the left monocular camera and the right monocular camera are optimized.

[0102] Step S3 includes the following specific steps:

[0103] C1: Use the calibrated binocular camera to capture a marker point image containing the first marker point and the second marker point;

[0104] C2: Preprocess the marker point image to obtain a preprocessed image;

[0105] C3: Use the maximum inter-class variance method to calculate the optimal segmentation threshold;

[0106] Specifically, first calculate the maximum gray value L of the image, and assume that the segmentation threshold in the image is T (0 < T < L - 1), and the probability that a pixel with a gray value of i (0 ≤ i ≤ L) appears is p i . Let C0 be the background target and C1 be the foreground target, then there are: where P0(T) represents the probability that the target is the background, P1(T) represents the probability that the target is the foreground, and P0(T) + P1(T) = 1. Then the average gray value μ0 of the background and the average gray value μ1 of the foreground are respectively: The average gray value of the entire image is: μ = P0(T)μ0 + P1(T)μ1; the inter-class variance is: When the inter-class variance is larger, it indicates that the difference between the foreground and the background is larger. Therefore, for each segmentation threshold T (0 < T < L - 1), calculate its inter-class variance value and save it, and then find the corresponding threshold T with the largest inter-class variance value as the segmentation threshold.

[0107] C4: Use the optimal segmentation threshold to segment the preprocessed image to obtain a binary image;

[0108] C5: After morphological processing of the binary image, edge detection is used to extract contour information;

[0109] C6: Perform ellipse fitting on the contour information to obtain the center coordinates of the first marking point and the second marking point, thereby calculating the distance between the first marking point and the second marking point.

[0110] The preprocessing includes median filtering and gamma correction in sequence.

[0111] In specific implementation, the median filtering steps are as follows:

[0112] 1. By sliding the internal rectangular box, for each k*k area in the image, the size of each pixel value in the rectangular box is obtained and stored in the memory;

[0113] 2. Sort all pixel values ​​to obtain the sorted pixel median;

[0114] 3. Replace the pixel value in the center area of ​​the current rectangular frame with the pixel median;

[0115] 4. Use a rectangular frame to slide the entire image until the last pixel is processed and the median filter is completed.

[0116] The steps for gamma correction are as follows:

[0117] ① Normalize all pixels of the original image I and convert the pixel values ​​into real numbers ranging from 0 to 1;

[0118] ② Perform exponential operation on each normalized image pixel value with γ as the size, and obtain the pixel value size of the corresponding position after correction according to the Gamma correction mapping formula;

[0119] ③. Denormalize the corrected image, that is, multiply each pixel value by 255 to obtain the final Gamma-corrected image.

[0120] The gamma correction mapping formula is: f(x,y) = I(x,y)^γ; where I(x,y) is the pixel value at the coordinate (x,y) in the original image, γ is the coefficient constant in the gamma correction, and f(x,y) is the image pixel value at the corresponding position after correction;

[0121] Step C5 includes the following specific steps:

[0122] C51: Use edge detection operator kernel to scan the binary image after morphological processing to obtain edge image; edge detection operator kernel includes: Figure 2 The vertical operator kernel shown in Figure 3 The horizontal operator kernel shown;

[0123] C52: Perform connected domain analysis on the edge image to obtain the contours of each object in the image;

[0124] C53: Filter the contour to obtain the contours of the first marking point and the second marking point.

[0125] Step C52 includes the following specific steps:

[0126] C521: Traverse the edge image. If the pixel value at the current position is 0, assign the pixel a label value of 0. If the pixel value at the current position is not 0 and the pixel values ​​in the eight regions around the pixel are all 0, assign the pixel a label label and set label = label + 1. If the current pixel value is not zero and there are pixels with label label in the eight regions around the pixel, assign the pixel the smallest label value in the eight regions. Obtain the label image.

[0127] C522: Traverse the label image, replace the pixels with label label in the label image with connected areas, and obtain the contours of each object.

[0128] Step C53 includes the following specific steps:

[0129] C531: Calculate the contour area A of each object i , remove those that do not belong to the screening range [A min , A max ] outline;

[0130] C532: Construct the minimum enclosing rectangle of each retained contour, making the length of the minimum enclosing rectangle greater than the width, and calculate the aspect ratio R of the minimum enclosing rectangle of each contour i ; Eliminate those that do not belong to the screening range [R min , R max ] outline;

[0131] C533: Calculate the circularity C of each retained contour i ; Eliminate those that are not included in the screening range [C min , C max ]'s outline; complete the outline screening.

[0132] Step C54 includes the following specific steps:

[0133] C541: The equation of the ellipse to set the contour is:

[0134] Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0;

[0135] Among them, A, B, C, D, E, F are the coefficient constants of the ellipse equation; (x, y) are the coordinates of the point on the ellipse;

[0136] C542: Define each point on the contour as:

[0137] f(α,X i )=αX i =Ax i 2 +Bx i y i +Cy i 2 +Dx i +Ey i +F;

[0138] Among them, the vector Vector α = (A, B, C, D, E, F);

[0139] C543: Obtain the ellipse fitting distance error f(n) of all contour points on a single contour according to the least squares method;

[0140]

[0141] Where i is the i-th contour point on a single contour; n is the number of contour points of a single contour;

[0142] C544: The coefficients A, B, C, D, E, and F of the best fitting ellipse equation are calculated based on the extreme value equation. The extreme value equation is:

[0143]

[0144] C545: Calculate the center point of the ellipse (x c ,y c ):

[0145]

[0146] Step S4 calculates the initial interval distance and includes the following steps:

[0147] S41: Set the coordinates of the first marking point in the image taken by the left monocular camera to The coordinates of the first marker point in the image taken by the right monocular camera are The coordinates of the second marker in the image taken by the right monocular camera are The coordinates of the second marker in the image taken by the right monocular camera are

[0148] S42: Calculate the three-dimensional space point coordinates (X1, Y1, Z1) of the first marking point in the camera coordinate system and the three-dimensional space point coordinates (X2, Y2, Z2) of the second marking point in the camera coordinate system according to the coordinates of the first marking point and the second marking point in the image taken by the left monocular camera and the image taken by the right monocular camera:

[0149]

[0150] in, is the disparity of the first marker point in the left and right monocular cameras; is the disparity of the first marker point in the left and right monocular cameras; B′ is the baseline distance between the two cameras; f x , f y is the scaling factor of the left monocular camera, in pixels; (u0, v0) is the image pixel center coordinate of the left monocular camera, and is the calibration parameter in the internal parameter K matrix of the left monocular camera;

[0151] S43: Calculate the initial spatial distance d between the first marking point and the second marking point init :

[0152]

Claims

1. A method for detecting cable clamp slippage of a suspension bridge based on binocular vision, characterized in that: The steps include: S1: spraying a second marking point and a first marking point on a cable clamp of a suspension bridge and a cable adjacent to the cable clamp respectively; S2: Calibrate the binocular camera, optimize the reprojection error of the binocular camera, and obtain the position transformation data and distortion parameters of the binocular camera; S3: Use the calibrated binocular camera to shoot the second marking point and the first marking point, correct the position between the two marking points obtained by shooting by using the position parameter and the distortion parameter, and calculate the initial interval distance between the two marking points after correction; S4: The cable clamp and the suspension cable are photographed again using the binocular camera, and the position between the two marking points obtained by the photography is corrected again using the position parameter and the distortion parameter, and the re-inspection interval distance of the two marking points after correction is calculated; when the re-inspection interval distance is inconsistent with the initial interval distance, the cable clamp has slipped, and the slippage of the cable clamp is the difference between the re-inspection interval distance and the initial interval distance; The calculation of the initial interval distance in step S4 includes the following steps: S41: Set the coordinates of the first marking point in the image taken by the left monocular camera to ; The coordinates of the first marker in the image taken by the right monocular camera are ; The coordinates of the second marker in the image taken by the right monocular camera are ; The coordinates of the second marker in the image taken by the right monocular camera are ; S42: Calculate the three-dimensional space point coordinates of the first marking point in the camera coordinate system according to the coordinates of the first marking point and the second marking point in the image taken by the left monocular camera and the image taken by the right monocular camera. And the 3D space coordinates of the second marker point in the camera coordinate system : ; ; in, is the disparity of the first marker point in the left and right monocular cameras; is the disparity of the first marker point in the left and right monocular cameras; is the baseline distance between the two cameras; , is the scaling factor of the left monocular camera; is the image pixel center coordinate of the left monocular camera; S43: Calculate the initial spatial distance between the first marking point and the second marking point : 。 2. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 1 is characterized in that: The specific steps of obtaining the position transformation data of the binocular camera include the following: A1: Calibrate the left and right monocular cameras of the binocular camera respectively, and use the left and right monocular cameras to shoot the circular calibration plate respectively; A2: According to the captured images, the left camera coordinate system of the left monocular camera and the left camera conversion relationship of the world coordinate system, and the right camera conversion relationship of the right monocular camera and the world coordinate system are constructed; A3: Calculate the position transformation data of the left monocular camera based on the left camera transformation relationship ,in, is the rotation matrix of the left monocular camera; is the translation vector of the left monocular camera; the position transformation data of the right monocular camera is calculated according to the transformation relationship of the right camera ,in, is the rotation matrix of the right monocular camera; is the translation vector of the right monocular camera.

3. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 1, characterized in that: The specific steps of obtaining the distortion parameters of the binocular camera include the following: B1: Use the right monocular camera to shoot the circular calibration plate n Zhang You distortion calibration map; B2: Calculate the reprojection error of the right monocular camera: ; in, For the i The number of circle center points detected in the right distortion calibration image; For the i The right distortion calibration image j The actual pixel coordinates of the circular points; The pixel coordinates of the circular point after the coordinate system conversion; is the internal parameter matrix of the right monocular camera; For the i The rotation matrix from the world coordinate system to the right camera coordinate system in the right distortion calibration image; For the i The translation vector from the world coordinate system to the right camera coordinate system in the right distortion calibration image; is the distortion parameter of the right monocular camera; B3: Use the left monocular camera to shoot the circular calibration plate n Zhang Zuo distortion calibration map; B4: Calculate the reprojection error of the left monocular camera: ; ; in, For the i The number of circle center points detected in the left distortion calibration image; For the i The left distortion calibration image j The actual pixel coordinates of the circular points; The pixel coordinates of the circular point after the coordinate system conversion; is the internal parameter matrix of the left monocular camera; is the distortion parameter of the left monocular camera; is the position transformation relationship from the right camera coordinate system to the left camera coordinate system; Position transformation data from the world coordinate system to the left camera coordinate system; Position transformation data from the world coordinate system to the right camera coordinate system; B5: By summing and minimizing the reprojection error of the right monocular camera and the reprojection error of the left monocular camera, the distortion parameters of the left monocular camera and the right monocular camera are optimized.

4. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 1, characterized in that: The step S3 comprises the following specific steps: C1: Use a calibrated binocular camera to capture a marked point image containing a first marked point and a second marked point; C2: Preprocessing image of the marker point image; C3: The optimal segmentation threshold is calculated using the maximum inter-class variance method; C4: Use the optimal segmentation threshold to segment the preprocessed image into a binary image; C5: After morphological processing of the binary image, edge detection is used to extract contour information; C6: Perform ellipse fitting on the contour information to obtain the center coordinates of the first marking point and the second marking point, thereby calculating the distance between the first marking point and the second marking point.

5. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 4 is characterized in that: The preprocessing includes sequentially performing median filtering and Gamma correction.

6. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 4, characterized in that: The step C5 comprises the following specific steps: C51: Use the edge detection operator kernel to scan the binary image after morphological processing to obtain the edge image; C52: Perform connected domain analysis on the edge image to obtain the contours of each object in the image; C53: Filter the contour to obtain the contours of the first marking point and the second marking point.

7. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 6, characterized in that: The step C52 comprises the following specific steps: C521: Traverse the edge image. If the pixel value at the current position is 0, assign the pixel a label value of 0. If the pixel value at the current position is not 0, and the pixel values ​​in the eight regions around the pixel are all 0, assign the pixel a label label, and set label=label+1. If the current pixel value is not zero, and there are pixels with label label in the eight-dimensional area around the pixel, the smallest label value in the eight-dimensional area is assigned to the pixel; Get the label image; C522: Traverse the label image, replace the pixels with label label in the label image with connected areas, and obtain the contours of each object.

8. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 6, characterized in that: The step C53 comprises the following specific steps: C531: Calculate the contour area A of each object i , remove those that do not belong to the screening range [A min , A max ] outline; C532: Construct the minimum enclosing rectangle of each retained contour, making the length of the minimum enclosing rectangle greater than the width, and calculate the aspect ratio R of the minimum enclosing rectangle of each contour i ; Eliminate those that do not belong to the screening range [R min , R max ] outline; C5 33: Calculate the circularity C of each retained contour i ; Eliminate those that are not included in the screening range [C min , C max ]'s outline; complete the outline screening.

9. The method for detecting cable clamp slippage of a suspension bridge based on binocular vision according to claim 6, characterized in that: The step C54 comprises the following specific steps: C541: The equation of the ellipse to establish the contour is: ; in, is the coefficient constant of the elliptic equation; are the coordinates of the points on the ellipse; C542: Define each point on the contour as: ; Among them, the vector ,vector ; C543: Obtain the ellipse fitting distance error of all contour points on a single contour according to the least squares method ; ; in, For a single contour contour points; is the number of contour points of a single contour; C544: Calculate the coefficients of the best-fit ellipse equation based on the extreme value equation , the extreme value equation is: ; C545: Coefficients of the equation of the fitted ellipse Calculate the center point of the ellipse : 。