Vertical displacement image measurement method, controller and system

By setting up acquisition equipment, reference targets and measuring point targets in image measurement, and using image information to calculate the true vertical displacement, the problem of measurement errors caused by camera attitude changes is solved, high-precision vertical displacement measurement is achieved, and installation and solution are simplified. calculation process.

CN118293801BActive Publication Date: 2024-09-20FOSHAN HIGHWAY & BRIDGE ENG MONITORING STATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410718738.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-20
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively eliminate the vertical displacement measurement error caused by changes in camera posture in image measurement, especially in long-term monitoring scenarios, resulting in a large difference between the displacement measurement results and the actual displacement.

Method used

By setting the acquisition equipment and two benchmark targets on the target pier, and setting the measurement point target on the main beam, the image information is used to calculate the true vertical displacement of the measurement point target, ignoring the X-axis, Z-axis translation and Y-axis of the acquisition equipment. For errors caused by axis translation and rotation around the Y-axis, the true vertical displacement of the measuring point target is calculated based on the rotation of the device around the X-axis and Z-axis, and the triangle similarity principle is used to convert the position change into a true vertical displacement.

Benefits of technology

There is no need for additional sensors to monitor attitude changes, it can accurately process images, eliminate measurement errors caused by camera pitch and roll, simplify installation conditions and data calculation, and improve measurement accuracy and practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118293801B
    Figure CN118293801B
Patent Text Reader

Abstract

The present invention discloses a vertical displacement image measurement method, controller and system, which relates to the field of image measurement technology. The method comprises: setting a collection device on a target bridge pier, setting two reference targets on another target bridge pier, and the collection device and the reference targets are set opposite to each other; setting a measuring point target on the main beam between the two target bridge piers; the collection device collects image information in real time and calculates the real vertical displacement of the measuring point target in the physical world according to the image information, and the image information is used to record the real-time position of the measuring point target and the reference target. The present invention can accurately process the image, and can reversely calculate the change of the collection device posture by using two reference targets, thereby eliminating / correcting the vertical displacement measurement error caused by the change of the collection device posture, and can effectively meet the vertical displacement measurement accuracy requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image measurement technology, and in particular to a vertical displacement image measurement method, a controller and a system. Background Art

[0002] In recent years, with the development of image recognition technology, cameras have been increasingly used in displacement measurement scenarios such as bridge deflection, building displacement, and slope displacement. Existing image recognition technology can theoretically achieve sub-pixel accuracy. With the improvement of camera resolution, the accuracy of camera-based displacement measurement methods is getting higher and higher. However, during the measurement process, the camera is installed on a bridge pier, tripod or other fixed pedestal. Due to ground vibration, vehicle load impact, temperature change, etc., the pedestal on which the camera is located has a slight displacement or rotation, resulting in a change in the camera's posture. The change in camera posture will cause the imaging position of the target on the image to change, resulting in measurement errors, and as the measurement distance increases, the slight change in the camera's posture will also cause larger errors. In displacement measurement scenarios, especially long-term monitoring scenarios, the measurement error caused by the change in camera posture must be eliminated, otherwise the displacement measurement result may be very different from the actual displacement.

[0003] In order to eliminate the impact of camera posture changes, domestic and foreign scholars have adopted a variety of technical means, which can be summarized into the following categories:

[0004] (1) Using sensors to track camera posture changes and compensate for the errors caused by camera posture changes; however, this method has high requirements on sensor accuracy and is difficult to meet accuracy requirements when the camera posture changes are very small.

[0005] (2) Using a fixed reference point, the pixel displacement of the fixed point is subtracted from the pixel displacement of the measured point on the image plane to eliminate the measurement error of the vertical displacement of the measured point caused by the camera pitch. However, this method can only eliminate the measurement error of the vertical displacement of the measured point caused by the camera pitch. If the camera rolls horizontally or moves vertically at the same time, this method cannot effectively eliminate the error caused by the change in camera posture.

[0006] (3) Using multiple fixed reference points, reversely calculate the camera posture change, and use this to correct the vertical displacement measurement error of the measuring point caused by the camera posture change; however, most studies of this method use three or even more fixed points. These methods require a large number of fixed points, which is not easy to meet the installation conditions in actual measurement scenarios, and the error correction algorithm is more complicated. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a vertical displacement image measurement method, a controller and a system, which can accurately process the image and eliminate the vertical displacement measurement error caused by the change of the acquisition device posture.

[0008] In order to solve the above technical problems, the present invention provides a vertical displacement image measurement method, comprising: setting an acquisition device on a target pier, setting two reference targets on another target pier, and the acquisition device and the reference targets are arranged opposite to each other; setting a measuring point target on the main beam between the two target piers; the acquisition device acquires image information in real time and calculates the real vertical displacement of the measuring point target in the physical world based on the image information, and the image information is used to record the real-time positions of the measuring point target and the reference target.

[0009] As an improvement of the above scheme, the step of calculating the vertical displacement of the measuring point target according to the image information includes: ignoring the vertical displacement measurement error caused to the measuring point target when the acquisition device is translated along the X-axis, translated along the Z-axis, translated along the Y-axis and rotated around the Y-axis in the device coordinate system; and calculating the real vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error caused to the measuring point target when the acquisition device is rotated around the X-axis and the Z-axis in the device coordinate system.

[0010] As an improvement of the above scheme, the step of calculating the real vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error caused by the acquisition device rotating around the X-axis and the Z-axis in the device coordinate system includes: rotating the acquisition device clockwise around the Z-axis in the device coordinate system is equivalent to the counterclockwise rotation of the imaging of the two reference targets in the image coordinate system around the Z-axis of the device coordinate system; calculating the reference rotation angle of the imaging of the line formed by the two reference targets in the image coordinate system around the Z-axis of the device coordinate system when the acquisition device rotates around the Z-axis in the device coordinate system, and using the reference rotation angle as the Z-axis rotation angle of the imaging of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system; constructing a reference rotation angle based on the two reference targets respectively. A group of vertical displacement equations of the measuring point target is obtained, and the vertical error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X axis of the device coordinate system is calculated according to the group of vertical displacement equations; the vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X axis and the Z axis of the device coordinate system is calculated according to the Z axis rotation angle and the vertical error of the rotation around the X axis; the change of the measuring point position of the measuring point target on the Y axis of the image coordinate system caused by the real vertical displacement of the measuring point target in the physical world is calculated according to the vertical displacement measurement error; according to the triangle similarity principle, the change of the measuring point position caused by the real vertical displacement of the measuring point target in the physical world is converted into the real vertical displacement of the measuring point target in the physical world.

[0011] As an improvement of the above solution, the Z-axis rotation angle of the imaging of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system is r Z:

[0012]

[0013] in, r 1 It is the image of a reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. r 2 It is the image of another reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. is the image of a reference target in the image coordinate system after the acquisition device changes its posture. It is the imaging of another reference target in the image coordinate system after the acquisition device posture changes.

[0014] As an improvement of the above scheme, the steps of respectively constructing a group of vertical displacement equations based on two reference targets, and calculating the vertical error of rotation around the X-axis caused by the rotation of the acquisition device around the X-axis of the device coordinate system of the imaging of the measuring point target in the image coordinate system according to the group of vertical displacement equations include: respectively constructing a group of vertical displacement equations based on two reference targets:

[0015] ;

[0016] According to the vertical displacement equation group, the X-axis rotation vertical error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis of the device coordinate system is calculated. :

[0017] ;

[0018] in, It is the vertical displacement measurement error of a reference target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. It is the vertical displacement measurement error of another reference target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. It is the vertical error of X-axis rotation caused by the rotation of the acquisition device around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the focal length of the acquisition device, r X To collect the rotation angle of the device around the X axis in the device coordinate system, X 1 To collect the X coordinate of the previous reference target in the image coordinate system before the device rotates around the X and Z axes in the device coordinate system, X 2It is the X coordinate of another reference target in the image coordinate system before the acquisition device rotates around the X axis and Z axis in the device coordinate system. Y 1 To collect the Y coordinate of the previous reference target in the image coordinate system before the device rotates around the X-axis and Z-axis in the device coordinate system, Y 2 To collect the Y coordinate of another reference target in the image coordinate system before the device rotates around the X-axis and Z-axis in the device coordinate system. r 1 It is the image of a reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis in the device coordinate system. r 2 It is the image of another reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis in the device coordinate system. is the image of a reference target in the image coordinate system after the acquisition device changes its posture. It is the imaging of another reference target in the image coordinate system after the acquisition device posture changes.

[0019] As an improvement of the above scheme, the vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system is :

[0020]

[0021] in, r Z The Z-axis rotation angle of the image of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system. It is the vertical error of X-axis rotation caused by the rotation of the acquisition device around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the focal length of the acquisition device, r X To collect the rotation angle of the device around the X axis in the device coordinate system, X To collect the X coordinate of the target point in the image coordinate system before the device rotates around the X and Z axes in the device coordinate system. Y To collect the Y coordinate of the target point in the image coordinate system before the device rotates around the X-axis and Z-axis in the device coordinate system.

[0022] As an improvement of the above solution, the change of the measuring point position of the measuring point target on the Y axis of the image coordinate system due to the real vertical displacement of the measuring point target in the physical world is: :

[0023]

[0024] in, It is the vertical displacement measurement error of the target point in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. is the position of the measuring point target on the Y axis of the image coordinate system at the initial moment, It is the current position on the Y axis of the image coordinate system.

[0025] As an improvement of the above solution, the change in the measuring point position of the measuring point target on the Y axis of the image coordinate system due to the real vertical displacement of the measuring point target in the physical world is converted into the real vertical displacement of the measuring point target in the physical world: :

[0026]

[0027] in, L is the vertical distance between the focus of the acquisition device and the measurement point target, f is the focal length of the acquisition device, It is the change in the measuring point position on the Y axis of the image coordinate system caused by the actual vertical displacement of the measuring point target in the physical world.

[0028] Correspondingly, the present invention also provides a vertical displacement image measurement controller, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned vertical displacement image measurement method when executing the computer program.

[0029] Correspondingly, the present invention also provides a vertical displacement image measurement control system, comprising an acquisition device, two reference targets, a measuring point target and the above-mentioned vertical displacement image measurement controller; the acquisition device is arranged on a target bridge pier, two reference targets are arranged on another target bridge pier, and the acquisition device and the reference targets are arranged opposite to each other; the measuring point target is arranged on a main beam between the two target bridge piers; the vertical displacement image measurement controller is embedded in the acquisition device, and the acquisition device acquires image information in real time so that the vertical displacement image measurement controller calculates the real vertical displacement of the measuring point target in the physical world according to the image information, and the image information is used to record the real-time positions of the measuring point target and the reference target.

[0030] The implementation of the present invention has the following beneficial effects:

[0031] (1) The present invention does not require additional sensors to monitor the posture changes of the acquisition device;

[0032] (2) In the scenario where the acquisition device is used to measure vertical displacement, the present invention can not only accurately process the image and eliminate the measurement error caused by the pitch of the acquisition device, but also eliminate the measurement error caused by the roll of the acquisition device;

[0033] (3) The present invention can inversely calculate the change in the attitude of the acquisition device by using only two fixed points (reference targets) that are equidistant from the acquisition device, thereby eliminating / correcting the vertical displacement measurement error caused by the change in the attitude of the acquisition device. It is easier to meet the installation conditions in actual measurement scenarios. In addition, the formula of the present invention is simple, the solution is explicit, and the data solution is fast.

[0034] (4) The calculation formula of the present invention is simple, the solution is explicit, and the data solution is fast, which can effectively reduce the complexity of the measurement system (including point selection, equipment installation and data solution), and improve the practicality of measuring vertical displacement using acquisition equipment;

[0035] (5) The present invention has a good effect in correcting the vertical displacement measurement error caused by the change of the acquisition equipment posture, and can meet the vertical displacement measurement accuracy requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow chart of an embodiment of the vertical displacement image measurement method of the present invention;

[0037] Figure 2 It is a layout diagram of the acquisition equipment, reference targets and measuring point targets in the present invention;

[0038] Figure 3 It is a schematic diagram of the degree of freedom of camera posture change in the present invention;

[0039] Figure 4 is a schematic diagram of the camera moving along the Y axis in the present invention;

[0040] Figure 5 is a schematic diagram of the camera moving along the Z axis in the present invention;

[0041] Figure 6 is a schematic diagram of the camera rotating around the X-axis in the present invention;

[0042] Figure 7 is a schematic diagram of the camera rotating around the Z axis in the present invention;

[0043] Figure 8 It is a flow chart of an embodiment of calculating the real vertical displacement of the measuring point target in the physical world in the present invention;

[0044] Fig. 9 It is a diagram of imaging changes before and after the camera rotates around the Z axis in the present invention;

[0045] Fig.10 It is a schematic diagram of vertical movement imaging of the measuring point target in the present invention. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0047] See also Figure 1 , Figure 1 The flowchart of an embodiment of the vertical displacement image measurement method of the present invention is shown, which includes:

[0048] S101, setting a collection device on a target bridge pier, and setting two reference targets on another target bridge pier, with the collection device and the reference targets being arranged facing each other;

[0049] The acquisition device may be a camera with an image sensor built in, but is not limited thereto.

[0050] Among them, the acquisition equipment and the reference target are respectively set on different target piers. The two target piers can be set adjacent to each other or separated by multiple piers, as long as the real-time position of the measurement point target and the reference target collected by the acquisition equipment is not affected.

[0051] S102, setting a measuring point target on the main beam between two target piers;

[0052] Generally, the measuring point target can be set at the mid-span of the main beam; accordingly, when the span of the main beam 2 is large, multiple measuring point targets 4 can also be set at each section such as 1 / 4, 3 / 4, etc. of the main beam span.

[0053] like Figure 2 As shown, in the present invention, the camera 3 can be arranged at the top of the target pier 1a, and the measuring point target 4 can be arranged at the mid-span position of the main beam 2. At the same time, in order to eliminate the influence of the camera posture change, two reference targets are arranged on the other target pier 1b, namely, the reference target 5 and the reference target 6.

[0054] S103, the acquisition device acquires image information in real time and calculates the actual vertical displacement of the measuring point target in the physical world according to the image information;

[0055] The image information is used to record the real-time positions of the measuring point targets and the reference targets.

[0056] Unlike the prior art, the present invention does not require additional sensors to monitor the changes in the camera's posture; at the same time, the present invention accurately processes the image and only needs to use two reference targets with equal distances from the camera to inversely calculate the camera's posture changes, thereby eliminating / correcting the vertical displacement measurement error caused by the camera's posture changes, and can meet the vertical displacement measurement accuracy requirements.

[0057] It should be noted that when measuring the vertical displacement of the measuring point target by using a camera, the change in the camera's posture will affect the measurement result. Therefore, in order to obtain the true vertical displacement of the measuring point target, the vertical displacement measurement error caused by the change in the camera's posture must be eliminated.

[0058] like Figure 3As shown, the camera's posture changes have a total of six degrees of freedom, including three translational displacements (translational displacement along the X axis t X , translational displacement along the Y axis t Y , translational displacement along the Z axis t Z ) and three rotation angles (rotation angles around the X axis r X , rotation angle around the Y axis r Y , rotation angle around the Z axis r Z ).

[0059] Obviously, the influence of the camera's translation along the X-axis and rotation around the Y-axis in the device coordinate system on the imaging position of the measuring point target on the Y-axis of the image coordinate system can be ignored. The following is an analysis of the influence of the camera's translation along the Y-axis and Z-axis and rotation around the X-axis and Z-axis in the device coordinate system on the vertical displacement measurement error:

[0060] (1) Camera translation along the Y axis of the device coordinate system t Y

[0061] like Figure 4 As shown in the figure, the imaging position of target T (measurement point target or reference target) changes on the Y axis of the image coordinate system due to the translation of the camera along the Y axis of the device coordinate system. The calculation process is as follows:

[0062] According to the principle of similar triangles:

[0063]

[0064]

[0065] So:

[0066]

[0067] in,

[0068] O It is the center of the image coordinate system before the camera is translated along the Y axis of the device coordinate system;

[0069] O’ It is the center of the image coordinate system after the camera is translated along the Y axis of the device coordinate system;

[0070] OZ It is the optical axis of the camera before translation along the Y axis of the device coordinate system, that is, the axis passing through the center of the image coordinate system and perpendicular to the plane of the image coordinate system;

[0071] O'Z' It is the optical axis after the camera is translated along the Y axis of the device coordinate system;

[0072] t The imaging of the target T in the image coordinate system before the camera is translated along the Y axis of the device coordinate system;

[0073] t’ It is the image of the target T in the image coordinate system after the camera is translated along the Y axis of the device coordinate system;

[0074] p is the foot of the target T on the plane of the image coordinate system;

[0075] f is the camera focal length;

[0076] t Y The camera's translational displacement along the Y axis of the device coordinate system;

[0077] L The vertical distance T from the camera focus to the target.

[0078] (2) Camera translation along the Z axis of the device coordinate system t Z

[0079] like Figure 5 As shown in the figure, the imaging position of target T changes on the Y axis of the image coordinate system due to the translation of the camera along the Z axis of the device coordinate system. The calculation process is as follows:

[0080] According to the principle of similar triangles:

[0081]

[0082]

[0083] Op=O'p' ,So:

[0084]

[0085] in,

[0086] O It is the center of the image coordinate system before the camera is translated along the Z axis of the device coordinate system;

[0087] O’ It is the center of the image coordinate system after the camera is translated along the Z axis of the device coordinate system;

[0088] F It is the focus of the camera before translation along the Z axis of the device coordinate system;

[0089] F’ It is the focus of the camera after translation along the Z axis of the device coordinate system;

[0090] OZ It is the optical axis of the camera before translation along the Z axis of the device coordinate system;

[0091] O'Z' It is the optical axis after the camera is translated along the Z axis of the device coordinate system;

[0092] t The imaging of the target T in the image coordinate system before the camera is translated along the Z axis of the device coordinate system;

[0093] t’ It is the image of the target T in the image coordinate system after the camera is translated along the Z axis of the device coordinate system;

[0094] p It is the foot of the perpendicular of the target T on the plane of the image coordinate system before the camera is translated along the Z axis of the device coordinate system;

[0095] p’ It is the foot of the perpendicular of target T on the plane of image coordinate system after the camera is translated along the Z axis of device coordinate system;

[0096] f is the camera focal length;

[0097] t Z The camera's translational displacement along the Z axis of the device coordinate system;

[0098] L It is the vertical distance between the camera focus and the target T before the camera is translated along the Z axis of the device coordinate system.

[0099] (3) The camera's rotation angle around the X-axis of the device coordinate system r X

[0100] like Figure 6 As shown in the figure, the imaging position of target T changes on the Y axis of the image coordinate system due to the rotation of the camera around the X axis of the device coordinate system. The calculation process is as follows:

[0101]

[0102]

[0103]

[0104] when α and r X are relatively small, tan( α+r X )-tanα ≈tan r X , the above formula can be simplified to:

[0105]

[0106] in,

[0107] O It is the center of the image coordinate system before the camera rotates around the X axis of the device coordinate system;

[0108] O’ It is the center of the image coordinate system after the camera rotates around the X axis of the device coordinate system;

[0109] OZ It is the optical axis of the camera before rotating around the X axis of the device coordinate system;

[0110] O'Z' It is the optical axis after the camera rotates around the X axis of the device coordinate system;

[0111] t The imaging of the target T in the image coordinate system before the camera rotates around the X-axis of the device coordinate system;

[0112] t’ It is the image of the target T in the image coordinate system after the camera rotates around the X-axis of the device coordinate system;

[0113] α The angle between the horizontal plane and the line connecting the front target T and the camera focus when the camera rotates around the X-axis of the device coordinate system;

[0114] f is the camera focal length;

[0115] r X The rotation angle of the camera around the X axis of the device coordinate system;

[0116] L is the vertical distance from the camera focus to the target T.

[0117] (4) The camera's rotation angle around the Z axis of the device coordinate system r Z

[0118] like Figure 7 As shown in the figure, the imaging position of target T changes on the Y axis of the image coordinate system due to the rotation of the camera around the Z axis of the device coordinate system. The calculation process is as follows:

[0119]

[0120]

[0121]

[0122] in,

[0123] O is the center of the image coordinate system;

[0124] OX Rotate the camera around the Z axis of the device coordinate system to the front X axis;

[0125] OY Rotate the camera around the Z axis of the device coordinate system to the front Y axis;

[0126] OX' The camera rotates around the Z axis of the device coordinate system after the X axis;

[0127] OY' The camera rotates around the Z axis of the device coordinate system and then rotates to the Y axis.

[0128] t is the imaging of target T in the image coordinate system;

[0129] q The camera rotates around the Z axis of the device coordinate system. t The foot of the perpendicular on the X axis of the image coordinate system;

[0130] q’ After the camera rotates around the Z axis of the device coordinate system t The foot of the perpendicular on the X' axis of the image coordinate system;

[0131] φ The camera rotates around the Z axis of the device coordinate system. t and the center of the image coordinate system O The angle between the line connecting the two axes and the OX axis;

[0132] r for t To the center of the image coordinate system O distance;

[0133] X The camera rotates around the Z axis of the device coordinate system. t X coordinate in the image coordinate system;

[0134] Y The camera rotates around the Z axis of the device coordinate system. t Y coordinate in the image coordinate system;

[0135] r Z The rotation angle of the camera around the Z axis of the device coordinate system.

[0136] Combining the vertical displacement measurement errors caused by the above four types of posture changes, the change in the imaging position of target T on the Y axis of the image coordinate system due to the rotation of the camera around the X axis of the device coordinate system is The most significant difference is that the position change of the target point on the Y axis of the image coordinate system caused by the other three types of posture changes is The ratio is shown in the following formula:

[0137]

[0138]

[0139]

[0140] From the above formula, we can know that In comparison, the vertical displacement measurement error caused by the camera's translation along the Z axis of the device coordinate system is It is very small and can be ignored. In addition, in the bridge main beam deflection measurement scenario, the camera and the reference target are generally installed on the bridge pier. The pier structure of the two is generally the same, and the installation height is basically the same. The vertical translation displacement of the camera and the reference target is mainly caused by the thermal expansion and contraction of the pier due to temperature changes. Since the piers are in similar environmental conditions, the vertical translation displacement of the camera and the reference target is basically the same. Therefore, in the bridge main beam deflection measurement scenario, the vertical displacement measurement error caused by the vertical translation of the camera Can be ignored.

[0141] Therefore, the steps of calculating the vertical displacement of the measuring point target according to the image information include:

[0142] (1) Ignore the vertical displacement measurement error caused by the camera moving along the X-axis, Z-axis, Y-axis, and rotating around the Y-axis in the device coordinate system.

[0143] (2) Based on the vertical displacement measurement error caused by the camera rotating around the X-axis and the Z-axis in the device coordinate system, the actual vertical displacement of the measuring point target in the physical world is calculated.

[0144] Therefore, the present invention effectively screens the movement mode of the camera according to the characteristics of the vertical displacement, thereby effectively reducing the calculation difficulty while ensuring the calculation accuracy.

[0145] See also Figure 8 , Figure 8 The flowchart of an embodiment of the present invention for calculating the real vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error caused by the measuring point target when the camera rotates around the X-axis and the Z-axis in the device coordinate system is shown, including:

[0146] S201, rotating the acquisition device clockwise around the Z axis in the device coordinate system is equivalent to rotating the images of the two reference targets in the image coordinate system counterclockwise around the Z axis of the device coordinate system;

[0147] like Fig. 9 As shown, the camera rotates clockwise around the Z axis of the device coordinate system This is equivalent to the imaging of the two reference targets in the image coordinate system rotating counterclockwise around the Z axis of the device coordinate system. ;

[0148] in,

[0149] The clockwise rotation angle of the camera around the Z axis of the device coordinate system;

[0150] r 1 The reference target R 1 The imaging in the image coordinate system before the camera rotates around the X-axis and Z-axis of the device coordinate system. It should be noted that the “before the camera rotates around the X-axis and Z-axis of the device coordinate system” mentioned in the present invention refers to “before the camera posture changes”;

[0151] r 2 The reference target R 2 Imaging in the image coordinate system before the camera rotates around the X and Z axes of the device coordinate system;

[0152] r 1 r 2 The camera rotates around the X and Z axes of the device coordinate system. 1 With r 2 The connection;

[0153] The reference target R 1 Imaging in the image coordinate system after the camera posture changes;

[0154] The reference target R 2 Imaging in the image coordinate system after the camera posture changes;

[0155] After the camera posture changes and connection.

[0156] S202, calculating a reference rotation angle of the image of the connection line formed by the two reference targets in the image coordinate system around the Z axis of the device coordinate system when the acquisition device rotates around the Z axis in the device coordinate system, and using the reference rotation angle as the Z axis rotation angle of the image of the measuring point target in the image coordinate system around the Z axis of the device coordinate system;

[0157] In various camera posture changes, the camera's translation in all directions and the rotation around the X-axis and Y-axis of the device coordinate system are 1 r 2 The effect of the angle with the horizontal plane can be ignored. Only the rotation of the camera around the Z axis of the device coordinate system has an effect on r. 1 r 2 The influence of the angle with the horizontal plane is more significant. Therefore, even if the camera undergoes a variety of posture changes, the rotation angle of the camera around the Z axis of the device coordinate system and r 1 r 2 and The angles are basically the same, so the Z-axis rotation angle of the image of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system is r Z :

[0158] (1)

[0159] in,

[0160] r 1 The reference target R 1 Imaging in the image coordinate system before the camera rotates around the X and Z axes of the device coordinate system;

[0161] r 2 The reference target R 2 Imaging in the image coordinate system before the camera rotates around the X and Z axes of the device coordinate system;

[0162] The reference target R 1 Imaging in the image coordinate system after the camera posture changes;

[0163] The reference target R 2 Imaging in the image coordinate system after the camera pose changes.

[0164] S203, constructing a vertical displacement equation group based on the two reference targets respectively, and calculating the vertical rotation error around the X-axis caused by the rotation of the acquisition device around the X-axis of the device coordinate system in the imaging of the measuring point target in the image coordinate system according to the vertical displacement equation group;

[0165] Assume that the total change of the imaging position of the measuring point target on the Y axis of the image coordinate system caused by the change of the camera posture is , where the position change caused by the rotation of the camera around the X axis of the device coordinate system is , the position change caused by rotation around the Z axis of the device coordinate system is ,So:

[0166]

[0167] in, , ;

[0168] Therefore:

[0169] (2)

[0170] Substituting formula (1) into formula (2), we get:

[0171] (3)

[0172] Further, the step of calculating the vertical error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the camera around the X-axis of the device coordinate system includes:

[0173] (1) For two reference targets, the vertical displacement equations based on the two reference targets can be constructed according to formula (3):

[0174]

[0175] (2) Calculate the vertical error of the X-axis rotation caused by the camera rotating around the X-axis of the device coordinate system based on the vertical displacement equation group. .

[0176] The only vertical displacement equation in the system is is an unknown quantity, so the vertical displacement equations can be obtained separately , and take the average of the two as The results:

[0177]

[0178] in,

[0179] The reference target R 1 The vertical displacement measurement error caused by the camera rotating around the X-axis and Z-axis of the device coordinate system in the image coordinate system;

[0180] The reference target R 2 The vertical displacement measurement error caused by the camera rotating around the X-axis and Z-axis of the device coordinate system in the image coordinate system;

[0181] It is the vertical error of the X-axis rotation caused by the camera rotating around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the camera focal length, r XThe rotation angle of the camera around the X axis of the device coordinate system in the device coordinate system;

[0182] X 1 The camera rotates around the X-axis and Z-axis of the device coordinate system before the reference target R 1 X coordinate in the image coordinate system;

[0183] X 2 The camera rotates around the X-axis and Z-axis of the device coordinate system before the reference target R 2 X coordinate in the image coordinate system;

[0184] Y 1 The camera rotates around the X-axis and Z-axis of the device coordinate system before the reference target R 1 Y coordinate in the image coordinate system;

[0185] Y 2 The camera rotates around the X-axis and Z-axis of the device coordinate system before the reference target R 2 Y coordinate in the image coordinate system;

[0186] r 1 The reference target R 1 Imaging in the image coordinate system before the camera rotates around the X and Z axes of the device coordinate system;

[0187] r 2 The reference target R 2 Imaging in the image coordinate system before the camera rotates around the X and Z axes of the device coordinate system;

[0188] The reference target R 1 Imaging in the image coordinate system after the camera posture changes;

[0189] The reference target R 2 Imaging in the image coordinate system after the camera pose changes.

[0190] S204, calculating the vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system according to the Z-axis rotation angle and the vertical error of the rotation around the X-axis;

[0191] Accordingly, combined with the calculation results of step S202 and step S203, the vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the camera around the X-axis and Z-axis of the device coordinate system can be obtained as follows: :

[0192]

[0193] in,

[0194] r Z The Z-axis rotation angle of the image of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system;

[0195] It is the vertical error of the X-axis rotation caused by the camera rotating around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the camera focal length, r X The rotation angle of the camera around the X axis in the device coordinate system;

[0196] X The X coordinate of the target point in the image coordinate system before the camera rotates around the X and Z axes in the device coordinate system;

[0197] Y It is the Y coordinate of the target point in the image coordinate system before the camera rotates around the X-axis and Z-axis in the device coordinate system.

[0198] S205, calculating the change in the position of the measuring point target on the Y axis of the image coordinate system due to the actual vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error;

[0199] Assume that the initial position of the measuring point target on the Y axis of the image coordinate system is , the current position on the Y axis of the image coordinate system is , the position change of the measuring point target on the Y axis of the image coordinate system caused by the rotation of the camera around the X axis and the Z axis of the device coordinate system is , then the change in the measuring point position of the measuring point target on the Y axis of the image coordinate system caused by the movement of the measuring point target itself is :

[0200]

[0201] in,

[0202] It is the vertical displacement measurement error caused by the rotation of the camera around the X-axis and Z-axis of the device coordinate system when the target is imaged in the image coordinate system.

[0203] is the position of the measuring point target on the Y axis of the image coordinate system at the initial moment;

[0204] It is the current position of the measuring point target on the Y axis of the image coordinate system.

[0205] S206, according to the triangle similarity principle, converting the measurement point position change caused by the real vertical displacement of the measurement point target in the physical world into the real vertical displacement of the measurement point target in the physical world.

[0206] like Fig.10 As shown, the actual vertical displacement of the measuring point target in the physical world is , its position change on the Y axis of the image coordinate system is .

[0207] According to the triangle similarity principle:

[0208]

[0209]

[0210] but:

[0211]

[0212] therefore:

[0213]

[0214] in,

[0215] L is the vertical distance between the camera focus and the measuring point target;

[0216] f is the camera focal length;

[0217] It is the change in the measuring point position on the Y axis of the image coordinate system caused by the actual vertical displacement of the measuring point target in the physical world.

[0218] As can be seen from the above, the present invention does not need to add additional sensors to monitor the posture change of the camera; in the scene of using the camera to measure the vertical displacement, the present invention accurately processes the image, which can not only eliminate the measurement error caused by the camera pitch, but also eliminate the measurement error caused by the camera roll; the present invention only needs to use two fixed points (reference targets) with equal distances from the camera to inversely calculate the camera posture change, thereby eliminating / correcting the vertical displacement measurement error caused by the camera posture change, and it is easier to meet the installation conditions in the actual measurement scene, and the formula of the present invention is simple, the solution is explicit, and the data solution is fast; the calculation formula of the present invention is simple, the solution is explicit, and the data solution is fast, which can effectively reduce the complexity of the measurement system (including point selection, equipment installation and data solution, etc.), and improve the practicability of using the camera to measure the vertical displacement; the present invention has a better effect in correcting the vertical displacement measurement error caused by the camera posture change, and can meet the vertical displacement measurement accuracy requirements.

[0219] Correspondingly, the present invention also discloses a vertical displacement image measurement controller, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned vertical displacement image measurement method when executing the computer program.

[0220] See also Figure 2 The present invention also discloses a vertical displacement image measurement system, which includes a camera, two reference targets, a measuring point target and the vertical displacement image measurement controller. Specifically:

[0221] The camera is set on a target bridge pier, and two reference targets are set on another target bridge pier, and the camera and the reference targets are set facing each other;

[0222] The measuring point target is set on the main beam between the two target bridge piers; when the span of the main beam is large, multiple measuring point targets can also be set;

[0223] The vertical displacement image measurement controller is embedded in the camera. The camera collects image information in real time so that the vertical displacement image measurement controller calculates the real vertical displacement of the measuring point target in the physical world based on the image information. The image information is used to record the real-time position of the measuring point target and the reference target.

[0224] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A vertical displacement image measurement method, characterized in that: include: A collection device is arranged on a target bridge pier, and two reference targets are arranged on another target bridge pier, wherein the collection device and the reference targets are arranged facing each other; Set a measuring point target on the main beam between two target bridge piers; The acquisition device acquires image information in real time and calculates the real vertical displacement of the measuring point target in the physical world according to the image information, and the image information is used to record the real-time position of the measuring point target and the reference target; The step of calculating the real vertical displacement of the measuring point target in the physical world according to the image information comprises: ignoring the vertical displacement measurement error caused to the measuring point target when the acquisition device translates along the X-axis, translates along the Z-axis, translates along the Y-axis and rotates around the Y-axis in the device coordinate system; calculating the real vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error caused to the measuring point target when the acquisition device rotates around the X-axis and the Z-axis in the device coordinate system; The step of calculating the real vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error caused by the acquisition device rotating around the X-axis and the Z-axis in the device coordinate system to the measuring point target comprises: Rotating the acquisition device clockwise around the Z axis in the device coordinate system is equivalent to rotating the images of the two reference targets in the image coordinate system counterclockwise around the Z axis of the device coordinate system; Calculate the reference rotation angle of the image of the connection line formed by the two reference targets in the image coordinate system around the Z axis of the device coordinate system when the acquisition device rotates around the Z axis in the device coordinate system, and use the reference rotation angle as the Z axis rotation angle of the image of the measuring point target in the image coordinate system around the Z axis of the device coordinate system; A vertical displacement equation group based on two reference targets is respectively constructed, and a vertical rotation error around the X-axis caused by the rotation of the acquisition device around the X-axis of the device coordinate system of the imaging of the measuring point target in the image coordinate system is calculated according to the vertical displacement equation group; According to the Z-axis rotation angle and the vertical error of rotation around the X-axis, the vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and the Z-axis of the device coordinate system is calculated; Calculating the change in the measuring point position of the measuring point target on the Y axis of the image coordinate system due to the actual vertical displacement of the measuring point target in the physical world according to the vertical displacement measurement error; According to the triangle similarity principle, the change in the measuring point position caused by the real vertical displacement of the measuring point target in the physical world is converted into the real vertical displacement of the measuring point target in the physical world.

2. The vertical displacement image measurement method according to claim 1, characterized in that: The Z-axis rotation angle of the imaging of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system is r Z : in, r 1 is the image of a reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. r 2 is the image of another reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. is the image of a reference target in the image coordinate system after the acquisition device changes its posture. It is the imaging of another reference target in the image coordinate system after the acquisition device posture changes.

3. The vertical displacement image measurement method according to claim 1, characterized in that: The steps of respectively constructing a group of vertical displacement equations based on two reference targets, and calculating the vertical rotation error around the X-axis caused by the rotation of the acquisition device around the X-axis of the device coordinate system of the imaging of the measuring point target in the image coordinate system according to the group of vertical displacement equations include: The vertical displacement equations based on the two benchmark targets are constructed separately: ; According to the vertical displacement equation group, the X-axis rotation vertical error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis of the device coordinate system is calculated. : ; in, It is the vertical displacement measurement error of a reference target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. It is the vertical displacement measurement error of another reference target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. It is the vertical error of X-axis rotation caused by the rotation of the acquisition device around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the focal length of the acquisition device, r X To collect the rotation angle of the device around the X axis in the device coordinate system, X 1 is the X coordinate of the previous reference target in the image coordinate system after the acquisition device rotates around the X axis and Z axis in the device coordinate system. X 2 is the X coordinate of another reference target in the image coordinate system before the acquisition device rotates around the X axis and Z axis in the device coordinate system, Y 1 is the Y coordinate of the previous reference target in the image coordinate system after the acquisition device rotates around the X-axis and Z-axis in the device coordinate system. Y 2 is the Y coordinate of another reference target in the image coordinate system before the acquisition device rotates around the X axis and Z axis in the device coordinate system. r 1 is the image of a reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. r 2 is the image of another reference target in the image coordinate system before the acquisition device rotates around the X-axis and Z-axis of the device coordinate system. is the image of a reference target in the image coordinate system after the acquisition device changes its posture. It is the imaging of another reference target in the image coordinate system after the acquisition device posture changes.

4. The vertical displacement image measurement method according to claim 3, characterized in that: The vertical displacement measurement error of the imaging of the measuring point target in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system is : in, r Z The Z-axis rotation angle of the image of the measuring point target in the image coordinate system around the Z-axis of the device coordinate system. It is the vertical error of X-axis rotation caused by the rotation of the acquisition device around the X-axis of the device coordinate system when the target is imaged in the image coordinate system. f is the focal length of the acquisition device, r X To collect the rotation angle of the device around the X axis in the device coordinate system, X To collect the X coordinate of the target point in the image coordinate system before the device rotates around the X and Z axes in the device coordinate system. Y To collect the Y coordinate of the target point in the image coordinate system before the device rotates around the X-axis and Z-axis in the device coordinate system.

5. The vertical displacement image measurement method according to claim 4, characterized in that: The change in the position of the measuring point target on the Y axis of the image coordinate system due to the real vertical displacement of the measuring point target in the physical world is: : in, It is the vertical displacement measurement error of the target point in the image coordinate system caused by the rotation of the acquisition device around the X-axis and Z-axis of the device coordinate system. is the position of the measuring point target on the Y axis of the image coordinate system at the initial moment, It is the current position on the Y axis of the image coordinate system.

6. The vertical displacement image measurement method according to claim 5, characterized in that: The change in the measuring point position of the measuring point target on the Y axis of the image coordinate system due to the real vertical displacement of the measuring point target in the physical world is converted into the real vertical displacement of the measuring point target in the physical world: : in, L is the vertical distance between the focus of the acquisition device and the measurement point target, f is the focal length of the acquisition device, It is the change in the measuring point position on the Y axis of the image coordinate system caused by the actual vertical displacement of the measuring point target in the physical world.

7. A vertical displacement image measurement controller, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

8. A vertical displacement image measurement system, characterized in that: It includes an acquisition device, two reference targets, a measuring point target and the vertical displacement image measurement controller according to claim 7; The acquisition device is arranged on a target bridge pier, and two reference targets are arranged on another target bridge pier, and the acquisition device and the reference targets are arranged facing each other; The measuring point target is arranged on the main beam between two target bridge piers; The vertical displacement image measurement controller is embedded in the acquisition device, and the acquisition device acquires image information in real time so that the vertical displacement image measurement controller calculates the actual vertical displacement of the measuring point target in the physical world based on the image information. The image information is used to record the real-time positions of the measuring point target and the reference target.