Fuzzy monitoring video structure vibration response information extraction method based on line matching
Through the fuzzy monitoring video structural vibration response information extraction method based on line matching, the problem of acceleration measurement noise and visual measurement being unsuitable for earthquake monitoring in traditional post-earthquake structural damage assessment is solved, and high-precision inter-story displacement monitoring is achieved, which is suitable for civil use. Surveillance cameras reduce the need for traditional sensors.
Patent Information
- Application Number
- CN202411106692.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-13
AI Technical Summary
In the traditional post-earthquake structural damage status assessment method, acceleration-based measurement has the problem of low-frequency noise distortion, and the vision-based measurement method is not suitable for earthquake monitoring because the industrial camera is independent of the shaking table.
A fuzzy monitoring video structure vibration response information extraction method based on line matching is used to obtain the camera internal parameters and distortion coefficients through the checkerboard calibration plate. The line segment descriptor step-by-step filtering algorithm is used to filter feature points, and the SQPnP algorithm is combined with the camera pose estimation and extraction. Relative displacement between layers when the structure vibrates.
It achieves structural response monitoring suitable for civilian surveillance cameras, maintains an accuracy of more than 90%, is suitable for earthquake monitoring, improves post-earthquake video processing efficiency, and reduces the number of traditional sensors and manpower and material resources.
Smart Images

Figure CN118865261A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of structural health monitoring. Background Art
[0002] The damage state of the structure after an earthquake is crucial for post-disaster assessment. To accurately assess this state, it is necessary to monitor its response to external stimuli. Most traditional monitoring methods use wired or wireless sensors to collect structural response data. The displacement and inter-story displacement ratio of the structure are crucial for structural integrity assessment. Traditionally, linear variable differential transformers, string potentiometers, or dials are used for measurement. However, these methods usually require fixed attachment points or calculate displacement based on double integration of acceleration. However, acceleration-based measurements are often distorted due to low-frequency noise.
[0003] In order to overcome the limitations of traditional monitoring methods, vision-based measurement methods have been introduced in recent years, using cameras as displacement or strain measurement sensors. This method measures displacement or deformation by installing cameras on the outside of the structure and tracking targets or natural feature points on the structure. However, these industrial cameras are expensive and usually independent of the vibration table, making them unsuitable for earthquake monitoring. Summary of the invention
[0004] The present invention aims to solve the problem that when assessing the damage state of a post-earthquake structure, the collected structural response data have low-frequency noise and distortion due to acceleration-based measurement, while the vision-based measurement has the problem that the industrial camera is independent of the vibration table and is not suitable for earthquake monitoring. A method for extracting structural vibration response information from fuzzy monitoring video based on line matching is now provided.
[0005] The method for extracting structural vibration response information from fuzzy surveillance video based on line matching includes:
[0006] Calibrate the surveillance camera using a checkerboard calibration plate to obtain an internal reference information matrix and distortion coefficient of the surveillance camera;
[0007] Performing distortion correction on the surveillance camera using the distortion coefficient;
[0008] The earthquake images captured by the monitoring camera are divided into independent frames, and the line segments matching the tracked object are screened out in each frame of the image using a matching algorithm of step-by-step filtering of line segment descriptors, and the intersection points of the intersecting line segments are used as feature points to extract the sub-pixel coordinates of the feature points;
[0009] The sub-pixel coordinates of the feature points and the intrinsic parameter information matrix of the monitoring camera are input into the SQPnP algorithm to estimate the camera pose and solve the inter-layer relative displacement to realize the extraction of response information in the blurred monitoring video when the structure vibrates.
[0010] Furthermore, the internal parameter information matrix K of the above surveillance camera is:
[0011]
[0012] Where, f is the focal length of the surveillance camera, d x and d y They represent the physical size of the pixel in the x and y directions respectively, and (u0, v0) represents the coordinates of the principal point.
[0013] Furthermore, the above-mentioned use of the distortion coefficient to correct the distortion of the surveillance camera includes:
[0014] The surveillance camera is subjected to distortion correction by the following formula:
[0015]
[0016] Among them, (x dist ,y dist ) and (x undist ,y undist ) represent the coordinates of the same point in the distorted image and the image after distortion correction, r represents the coordinate point (x dist ,y dist ) to the center of the distorted image, and
[0017] Furthermore, the method for obtaining the above tracking object is:
[0018] Select any frame of the surveillance video in a normal state, detect the image using a line segment detection method, obtain the descriptor information of each natural line segment in the image, number each natural line segment, and take the natural line segment of interest as the tracking object;
[0019] The descriptor information includes: line segment length, line segment position, line segment direction and line segment average pixel gradient.
[0020] Furthermore, the matching algorithm using the line segment descriptor for step-by-step filtering selects line segments matching the tracked object in each frame of the image, including:
[0021] Any line segment in the tracking object is recorded as line segment A, and any line segment in a frame image during earthquake is recorded as line segment B. The matching algorithm includes the following four inequality relationships:
[0022] Line segment length information matching:
[0023]
[0024] Among them, L length-A and L length-B are the lengths of line segments A and B respectively, is the length threshold;
[0025] Line segment direction information matching:
[0026] |L direction-A -L direction-B |≤β,
[0027] Among them, L direction-A and L direction-B are the direction angles of line segment A and line segment B respectively, and β is the direction angle threshold;
[0028] Line segment position information matching:
[0029] |x A -x B |≤μ1,|y A -y B |≤μ2,
[0030] Among them, (x A ,y A ) and (x B ,y B ) are the midpoint coordinates of line segment A and line segment B, μ1 and μ2 are the position thresholds in the x and y directions, respectively;
[0031] Line segment pixel average gradient matching:
[0032]
[0033] Where ω is the tolerance threshold of pixel gradient, E(i) is the Euclidean distance of pixel gradient at the i-th pixel point on line segment A and line segment B, AGE represents the average Euclidean distance of pixel gradient of all pixels on line segment A and line segment B, i = 1, 2, ..., N, N is a positive integer.
[0034] Furthermore, the expression of the Euclidean distance E(i) of the pixel gradient at the i-th pixel point on the above line segment A and line segment B is:
[0035]
[0036] Among them, I Ax (i) and I Ay (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment A, respectively. Bx (i) and I By (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment B, respectively.
[0037] Furthermore, the sub-pixel coordinates of at least four feature points are input into the SQPnP algorithm.
[0038] Furthermore, the above method of calibrating the surveillance camera using the checkerboard calibration plate is the Zhang Zhengyou calibration method.
[0039] The beneficial effects of the method for extracting structural vibration response information from fuzzy surveillance video based on line matching of the present invention are:
[0040] 1. Structural response monitoring ideas suitable for civil surveillance cameras: Extract camera intrinsic parameters based on the calibration plate and perform distortion correction. Determine the line segments and feature points to be tracked based on line segment detection. Match the seismic video frame by frame to obtain the sub-pixel coordinates of the feature points. Combine the SQPnP algorithm to estimate the camera pose and extract the relative displacement between layers.
[0041] 2. Extract inter-layer relative displacement information based on fuzzy surveillance video: Extract line segment descriptor information based on the lines in the surveillance camera image, assign numbers, set four-layer matching relationships regarding line segment length, line segment position, line segment direction, and line segment pixel average gradient, which are used for line segment matching in earthquake images. Combined with the structural response monitoring idea of civil surveillance cameras, inter-layer displacement information is extracted, which can maintain an accuracy of more than 90% even in fuzzy videos.
[0042] 3. Pre-select the line segments of interest before the earthquake and realize automatic processing after the earthquake, ensuring accuracy while improving efficiency. By setting a reasonable threshold in the line segment descriptor step-by-step filtering algorithm, it is ensured that even if there is an acceptable difference between the images at the time of the earthquake and the images at the time of pre-selection, accurate line segment matching can be achieved. This method greatly improves the efficiency of processing numerous surveillance videos and extracting the required information after the earthquake. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is the overall framework diagram of this application;
[0044] Figure 2 Design a flow chart for the simulation experiment;
[0045] Figure 3 Design a flow chart for a shaking table test;
[0046] Figure 4 It is a line segment matching detection diagram for simulation test;
[0047] Figure 5 It is the line segment matching detection diagram for the vibration table test;
[0048] Figure 6 This is the calculation result diagram of inter-story displacement in the simulation test;
[0049] Figure 7 This is the calculation result diagram of inter-story displacement of the shaking table test. DETAILED DESCRIPTION
[0050] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0051] During an earthquake, a large number of civil buildings lack sensors for collecting structural vibration responses. Considering the widespread distribution of surveillance cameras in modern buildings, which were originally used for safety inspections, they can be used as sensors in this field without the need to install additional auxiliary sensors. They can also replace some expensive earthquake monitoring sensors, reduce the number of traditional sensors, and reduce manpower and material resources. In addition, data extraction from blurred images is usually divided into indirect and direct methods. The indirect method is to make the features of blurred images clear by special processing of the image, including feature enhancement technology and super-resolution reconstruction technology. Feature enhancement technology makes the data of blurred images easier to identify by strengthening edge and texture features. Super-resolution reconstruction technology aims to make blurred images reach or approach the quality of clear images by improving image resolution. The direct method is to directly perform feature detection and template matching on blurred images to find key data. Line matching technology is an important method in the field of image matching. It focuses on the detection, extraction and matching of line features in images to achieve alignment or recognition between images. This technology first uses edge detection algorithms to identify areas with significant brightness changes in the image, that is, the boundaries or lines of objects. Subsequently, image processing technology is used to connect these edge pixels into lines with clear geometric meanings, such as straight lines and curves. Finally, by calculating the similarity or distance between the lines, such as matching based on feature descriptors, matching based on geometric constraints, etc., a matching relationship between the lines of the two images is established.
[0052] Based on the above ideas, this embodiment proposes a method for extracting structural vibration response information from fuzzy monitoring video based on line matching, including:
[0053] Step 1: Calibrate the surveillance camera using the checkerboard calibration board and extract the intrinsic parameter information matrix K of the surveillance camera:
[0054]
[0055] Where f represents the focal length of the camera, that is, the distance from the camera lens to the image plane, in millimeters;
[0056] d x and d y Respectively represent the physical size of the pixel in the x and y directions, in millimeters;
[0057] (u0, v0) represents the coordinates of the principal point (optical center position), that is, the coordinates of the intersection of the optical axis and the image plane, in pixels.
[0058] Step 2: The distortion correction of the camera is divided into radial distortion and tangential distortion. The surveillance camera is a wide-angle surveillance camera, which often has pincushion distortion in tangential distortion. This distortion needs to be corrected by the distortion coefficient obtained by calibration. In this step, the distortion coefficients k1, k2, and k3 are obtained through the checkerboard calibration plate, and the camera imaging picture is corrected for distortion:
[0059]
[0060] Among them, (x dist ,y dist ) and (x undist ,y undist ) represent the coordinates of the same point in the distorted image and the image after distortion correction, r represents the coordinate point (x dist ,y dist ) to the center of the distorted image, and
[0061] Step 3: In the pre-earthquake stage, extract a still picture from the surveillance video, use the line segment detection method to detect the line segments of the whole picture, and obtain the number and descriptor information of each natural line segment in the still picture. The descriptor information includes: line segment length, line segment position, line segment direction, and line segment average pixel gradient. Select the line segment of interest from all the line segments as the tracking object.
[0062] Step 5: During the epicenter phase, use surveillance cameras to record epicenter surveillance video.
[0063] Step 6: In the post-earthquake stage, the epicenter surveillance video is segmented into independent frames, and a line descriptor hierarchical filtering (LDHF) matching algorithm is used for each frame to perform line segment matching with the tracked object.
[0064] The matching algorithm of segment descriptor level-by-level filtering contains the following four levels of inequality relations:
[0065] Line segment length information matching:
[0066]
[0067] Line segment direction information matching:
[0068] |L direction-A -L direction-B |≤β.
[0069] Line segment position information matching:
[0070] |x A -x B |≤μ1,|y A -y B |≤μ2.
[0071] Line segment pixel average gradient matching:
[0072]
[0073] β, μ, ω represent the tolerance thresholds of length, direction, position and pixel gradient respectively, and the units are pixel, degree, pixel and none respectively. These thresholds can be set according to the actual application, line segment distribution, image resolution and matching accuracy. The recommended ranges are 10% to 20% of the line segment length, 5° to 15°, within 5% of the image pixel value, and 5% to 10% of the average pixel gradient value of the line segment.
[0074] A represents a line segment in the line segment set of interest, where L length-A , L direction-A 、(x A ,y A ) represent the length, direction angle, and midpoint coordinates of line segment A, respectively. Ax (i) and I Ay (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment A respectively.
[0075] B represents a line segment in the monitoring image during the earthquake, where L length-B , L direction-B 、(x B ,y B ) represent the length, direction angle, and midpoint coordinates of line segment B, respectively. Bx (i) and I By (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment B, respectively.
[0076] E(i) is the Euclidean distance between the pixel gradients at the i-th pixel on line segments A and B.
[0077] AGE represents the average Euclidean distance of pixel gradients of all pixels between line segment A and line segment B.
[0078] i=1,2,...,N, where N is a positive integer.
[0079] The simulation test results after using the line segment description sub-matching algorithm are as follows Figure 4 shown.
[0080] The results of the vibration table test after the line segment descriptor matching algorithm are as follows Figure 5 shown.
[0081] Step 7: For the matched line segments, take the intersection of every two line segments in the imaging image as the feature point and extract the sub-pixel coordinates of the feature point.
[0082] Step 8: The PNP (Perspective-n-Point) solution for camera pose estimation is to calculate the camera pose through N pairs of matching image coordinates and their world coordinates, given the known camera intrinsic parameters. This is a 3D-2D problem, which uses points in three-dimensional space and their projection points on two-dimensional images to estimate the position and pose of the camera.
[0083] SQPNP (Sequential Quadratic Programming for Perspective-n-Point) is an efficient method that transforms the nonlinear constraint optimization part of the PNP problem into a series of simple quadratic programming sub-problems for solution. This method not only utilizes the high computational efficiency of the SQP algorithm in solving small and medium-scale problems, but also retains the accuracy of the PNP algorithm in camera pose estimation. By inputting the camera intrinsic parameters, distortion coefficients, and coordinates of 2D and 3D points, SQPNP can effectively handle optimization problems with complex boundary constraints and nonlinear characteristics while maintaining high solution accuracy, thereby solving the relative position of the camera more accurately.
[0084] In order to extract the inter-layer relative displacement from the blurred surveillance video, the technical solution adopted in this step is: input the calibrated camera intrinsic parameter matrix, distortion coefficient and sub-pixel coordinates of the feature points into SQPnP to calculate the camera pose estimation. The camera is fixedly connected to the upper floor, and the feature points are the tracking targets with the lower floor as the main body, so the inter-layer relative displacement is calculated.
[0085] In order to verify the accuracy of the method proposed in Specific Implementation Method 1, two experiments were designed for verification, namely a simulation experiment based on Blender and a real experiment based on a vibration table. The steps of the two experiments are as follows:
[0086] like Figure 2 and Figure 4 As shown, the simulation experiment based on Blender includes:
[0087] Simulation test step 1: First, build a 3D model of an indoor room in Blender software. Then, place the camera model in the room and make sure it is connected to the upper floor so that the effect of the camera moving with the floor can be simulated in the subsequent steps.
[0088] Simulation test step 2: Set detailed parameters of the camera, including adjusting the focal length to obtain a suitable viewing angle, setting the frame rate to ensure the smoothness of the video, and adjusting the resolution to achieve the required clarity. The settings of these parameters will directly affect the quality of the final simulation video.
[0089] Simulation test step 3: Use Ansys software to simulate the earthquake motion and calculate a set of displacement data of the floor in the earthquake. At the same time, according to the connection relationship between the camera and the floor, the displacement information of the camera is derived. Then, these displacement data are imported into Blender through the Python-API interface to update the position of the camera in real time during the simulation process.
[0090] Step 4 of the simulation test: Start the simulation in Blender and record the motion video of the camera and the structure under the earthquake. To increase the realism of the video, you can add Gaussian noise to the video after exporting it to simulate the image jitter and blur effects that may occur in an actual earthquake. Finally, this processed video will be used as an earthquake simulation video.
[0091] like Figure 3 and Figure 5 As shown, real tests based on a shaker table include:
[0092] Vibration table test step 1: Make a small three-layer frame structure model and ensure its structural stability. Then, accurately install this model on the vibration table to ensure that it can stably receive vibration during the test. And install a surveillance camera on the upper layer of the model.
[0093] Vibration table test step 2: Set the vibration table excitation data, appropriately reduce the light brightness to simulate a blurred scene, and turn on the surveillance camera to record the surveillance video when the vibration table is shaking.
[0094] Both of the above tests introduce Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) to evaluate the blurriness of blurry videos. PSNR mainly measures the degree of image distortion or quality loss. A high PSNR value usually means better image quality and less distortion. SSIM focuses on image structural information. The closer the value is to 1, the better the image structure is preserved and the higher the visual quality. The two are used together to more comprehensively evaluate the blurriness and overall quality of the image.
[0095] In order to fully compare the advantages of the Line descriptor hierarchical filtering (LDHF) algorithm, the Harris corner detection algorithm is introduced to compare with the LK optical flow algorithm. When the video noise is large (PSNR value is low), the LK optical flow algorithm has a large cumulative error, and the Harris corner detection algorithm has tracking points disappearing and cannot track the detection results. However, the LDHF algorithm still maintains an accuracy of more than 92% in highly blurred videos. The specific performance is as follows: Figure 6 , 7 shown.
[0096] In summary, this embodiment is a method for extracting structural vibration response information from fuzzy surveillance videos based on line matching technology, which enables the machine to quickly and adaptively extract the relative displacement between structural layers through fuzzy surveillance videos; extract camera intrinsic parameters through camera calibration and perform distortion correction on the imaging screen; determine feature tracking points through line segment intersection, and automatically extract the sub-pixel coordinates of the intersection points in the imaging screen; perform pose estimation based on the PnP method of sequential quadratic programming to quickly solve the relative displacement between layers.
[0097] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that the features described in conjunction with a single embodiment may be used in other described embodiments.
Claims
1. A method for extracting structural vibration response information from fuzzy surveillance video based on line matching, characterized in that: include: Calibrate the surveillance camera using a checkerboard calibration plate to obtain an internal reference information matrix and distortion coefficient of the surveillance camera; Performing distortion correction on the surveillance camera using the distortion coefficient; The earthquake images captured by the monitoring camera are divided into independent frames, and the line segments matching the tracked object are screened out in each frame of the image using a matching algorithm of step-by-step filtering of line segment descriptors, and the intersection points of the intersecting line segments are used as feature points to extract the sub-pixel coordinates of the feature points; The sub-pixel coordinates of the feature points and the intrinsic parameter information matrix of the monitoring camera are input into the SQPnP algorithm to estimate the camera pose and solve the inter-layer relative displacement to realize the extraction of response information in the blurred monitoring video when the structure vibrates.
2. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 1 is characterized in that: The internal parameter information matrix K of the surveillance camera is: Where, f is the focal length of the surveillance camera, d x and dy represent the physical size of the pixel in the x and y directions respectively, and (u0,v0) represents the coordinates of the principal point.
3. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 1 is characterized in that: The method of using the distortion coefficient to perform distortion correction on the surveillance camera includes: The surveillance camera is subjected to distortion correction by the following formula: Among them, (x dist ,y dist ) and (x undist ,y undist ) represent the coordinates of the same point in the distorted image and the image after distortion correction, r represents the coordinate point (x dist ,y dist ) to the center of the distorted image, and 4. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 1, 2 or 3, characterized in that: The method for obtaining the tracking object is: Select any frame of the surveillance video in a normal state, detect the image using a line segment detection method, obtain the descriptor information of each natural line segment in the image, number each natural line segment, and take the natural line segment of interest as the tracking object; The descriptor information includes: line segment length, line segment position, line segment direction and line segment average pixel gradient.
5. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 4 is characterized in that: The matching algorithm using the line segment descriptor for step-by-step filtering selects line segments matching the tracked object in each frame of the image, including: Any line segment in the tracking object is recorded as line segment A, and any line segment in a frame image during earthquake is recorded as line segment B. The matching algorithm includes the following four inequality relationships: Line segment length information matching: Among them, L length-A and L length-B are the lengths of line segments A and B respectively, is the length threshold; Line segment direction information matching: |L direction-A -L direction-B |≤β, Among them, L direction-A and L direction-B are the direction angles of line segment A and line segment B respectively, and β is the direction angle threshold; Line segment position information matching: |x A -x B |≤μ1,|and A -and B |≤μ2, Among them, (x A ,y A ) and (x B ,y B ) are the midpoint coordinates of line segment A and line segment B, μ1 and μ2 are the position thresholds in the x and y directions, respectively; Line segment pixel average gradient matching: Where ω is the tolerance threshold of pixel gradient, E(i) is the Euclidean distance of pixel gradient at the i-th pixel point on line segment A and line segment B, AGE represents the average Euclidean distance of pixel gradient of all pixels on line segment A and line segment B, i = 1, 2, ..., N, N is a positive integer.
6. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 5 is characterized in that: The expression of the Euclidean distance E(i) of the pixel gradient at the i-th pixel point on the line segment A and the line segment B is: Among them, I Ax (i) and I Ay (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment A, respectively. Bx (i) and I By (i) represents the pixel gradient in the x and y directions of the i-th pixel on line segment B, respectively.
7. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 1, 2, 3, 5 or 6, characterized in that: The sub-pixel coordinates of at least four feature points are input into the SQPnP algorithm.
8. The method for extracting structural vibration response information from fuzzy surveillance video based on line matching according to claim 7 is characterized in that: The method for calibrating a surveillance camera using a checkerboard calibration plate is the Zhang Zhengyou calibration method.
Citation Information
Patent Citations
A floor relative displacement measurement method based on surveillance camera
CN109035343A
Shooting-measurement-based on-line detection system and method for mechanical faults of wind turbine blade
CN109900712A
Lightweight monocular vision positioning method based on dot-line features and depth filter
CN110807809A
Structural vibration displacement measuring method and device
CN112146834A
Inclinometry monitoring device and method for coupling optical positioning and real-time updating
CN114332362A
Cited By
Method for automatically monitoring earthquake response of structure by using monitoring video
CN119516439A
Structure line segment matching method and structure earthquake response monitoring method based on bionic DNA
CN121074788A
A biomimetic DNA-based structural segment matching method and a structural seismic response monitoring method
CN121074788B
Single metering mechanism assembling method and system
CN121339907A
