River surface flow velocity calculation method based on regression convolutional neural network

The river surface flow velocity calculation method based on regression convolutional neural network solves the problems of long flow velocity calculation, low accuracy and poor real-time performance in the existing technology, and achieves high accuracy and high timeliness of river surface flow velocity measurement, which is suitable for In hydrological monitoring and other industries.

CN118552855APending Publication Date: 2024-08-27XIAN CENTN TECH

Patent Information

Application Number
CN202410788928.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing river surface flow velocity calculation methods have problems such as long single test time, large manual investment, difficulty in ensuring accuracy, high cost, poor real-time performance, and limited spatial resolution. In particular, traditional methods rely on manual setting of filter parameters, which affects the timeliness of the algorithm. performance and recognition accuracy.

Method used

Using a method based on regression convolutional neural network, through the calculation of the main direction of spatiotemporal image texture, down-sampling convolution compression and up-sampling convolution expansion are designed, combined with feature information block extraction and parameter equivalent conversion, to achieve high accuracy and high Timeliness, reducing computing overhead and improving real-time performance.

Benefits of technology

It achieves high-accuracy, high-timeliness, non-contact, and unattended calculation of river surface flow velocity. It is suitable for deployment on edge computing devices, simplifies maintenance, and is suitable for hydrological monitoring and other related industries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552855A
    Figure CN118552855A
Patent Text Reader

Abstract

The invention belongs to the technical field of hydrologic monitoring in the water conservancy industry, and relates to a river surface flow velocity calculation method based on a regression convolutional neural network, comprising the following steps: step 1, generating a water flow velocity space-time image; step 2, making a time-space image texture principal direction regression data set; 3, designing a regression convolutional neural network, and training the network to obtain a space-time image texture principal direction angle recognition model file; step 4, reasoning to obtain angle information according to the model file obtained by training; step 5, according to camera calibration, obtaining a world coordinate plane actual distance represented by each pixel in the image plane; step 6, obtaining the flow velocity of the river surface according to a water flow velocity calculation method; according to the method, the river surface flow velocity can be simply calculated online or offline in a high-accuracy, high-timeliness, non-contact and unattended manner, and deployment on edge computing equipment is facilitated; the algorithm is safe and reliable, is convenient to maintain, and can be widely applied to hydrological monitoring and other related industries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of hydrological monitoring in the water conservancy industry, and specifically relates to a method for calculating river surface flow velocity based on a regression convolutional neural network. Background Art

[0002] Currently, the methods used in the water conservancy industry to calculate river surface flow velocity include the velocity meter method, the buoy method, the acoustic Doppler current profiler method, the acoustic time difference method, the radar velocity method, the large-scale particle image velocimetry method, and the space-time image velocimetry method. The velocity meter method has a long single test time, is prone to entanglement in floating objects, and contact velocity measurement is dangerous. The buoy method is difficult to implement, requires a large amount of labor, and is difficult to guarantee accuracy. The acoustic Doppler current profiler method requires a large investment, is easily affected by water level fluctuations, and is affected by water debris, making subsequent operation and maintenance somewhat difficult. The acoustic time difference method is costly and requires the installation of equipment and instrument protection on both sides of the river, making it difficult to power the equipment. The radar velocity method can only obtain the flow velocity at a certain point on the surface, which is quite restrictive.

[0003] Large-scale particle image velocimetry has a long calculation time, requires a large storage space, relies on the visibility of tracers on the water surface, and has poor real-time performance.

[0004] Although the spatiotemporal image velocimetry method can only obtain a one-dimensional velocity distribution parallel to the flow direction, its spatial resolution can reach the single-pixel level and the algorithm is highly efficient. The core of this method is to detect the main texture direction of the spatiotemporal image.

[0005] The current methods for detecting the main texture direction of spatiotemporal images include traditional methods and classification convolutional neural network methods.

[0006] Traditional methods include the gradient tensor method, the two-dimensional autocorrelation function method, and the fast Fourier transform method. Among them, the fast Fourier transform method performs better, but it cannot adaptively select the parameters of the filter in the algorithm. It relies heavily on manual settings and requires many parameters to be set. Manual parameter adjustment is difficult to take into account the settings of filter parameters in various complex scenarios.

[0007] The concept behind the classification convolutional neural network algorithm is to treat the calculation of the principal texture direction of spatiotemporal images as a classification problem. The principal texture direction angle ranges from 0 to 180 degrees. If the angle is classified by 1 degree, there are 180 categories; if the angle is classified by 0.5 degrees, there are 360 ​​categories. And so on. For higher accuracy, more categories are needed. However, the more categories there are, the lower the accuracy of the classification convolutional neural network recognition and the longer the recognition time, which affects the algorithm's timeliness and accuracy.

[0008] Therefore, the current method for calculating river surface velocity in the water conservancy industry has obvious deficiencies and defects. Summary of the Invention

[0009] To address the above technical issues, the present invention provides a method for calculating river surface velocity based on a regression convolutional neural network. This method employs a regression convolutional neural network algorithm to calculate the principal direction of spatiotemporal image texture, leveraging the high accuracy of the regression convolutional neural network. The design of the regression convolutional neural network utilizes downsampling convolution compression, followed by upsampling convolution expansion, feature information block extraction, equivalent conversion of convolution parameters, and feature information regression processing. This method not only achieves high accuracy but also reduces computational overhead, increases computational speed, and improves the real-time performance of river surface velocity calculations.

[0010] The present invention provides the following technical solution: a method for calculating river surface flow velocity based on a regression convolutional neural network, comprising the following steps:

[0011] Step 1: Generate a spatiotemporal image of water flow velocity based on a water flow video image dataset;

[0012] Step 2: Clean the spatiotemporal image data of water velocity generated in step 1, annotate the samples, and prepare a spatiotemporal image texture main direction regression dataset;

[0013] Step 3: Based on the designed regression convolutional neural network, the spatiotemporal image texture main direction regression dataset generated in step 2 is trained to obtain a spatiotemporal image texture main direction angle recognition model file;

[0014] Step 4: According to the spatiotemporal image texture main direction angle recognition model file obtained in step 3, angle information is inferred;

[0015] Step 5: According to the camera calibration, the actual distance of the world coordinate plane represented by each pixel in the image plane is obtained;

[0016] Step 6: Based on the angle information obtained in step 4, the actual distance in the world coordinate plane represented by each pixel in the image plane obtained in step 5, and the camera frame rate, the flow velocity on the river surface is obtained according to the water flow velocity calculation method.

[0017] Preferably, in step 3, the regression convolutional neural network is divided into 6 parts, the first to fifth parts are feature information extraction, and the sixth part is feature information regression.

[0018] More preferably, in step 3, the second part of the regression convolutional neural network consists of 4 blocks, the third part consists of 6 blocks, and the fourth part consists of 16 blocks.

[0019] Preferably, in step 3, the recurrent convolutional neural network uses downsampling convolution compression and then uses upsampling convolution expansion method.

[0020] Preferably, in step 3, the three parallel convolution branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution of the regression convolutional neural network are equivalent to a multi-branch structure during network training; when the regression convolutional neural network is inferring, the three branches are equivalently converted into a single-path 3x3 convolution.

[0021] More preferably, in step 4, the spatiotemporal graph of water flow velocity to be identified is input, and the regression convolutional neural network training model file is called for model inference; during inference, the three branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution can be equivalently converted into a single 3x3 convolution; the main direction angle information of the spatiotemporal image texture is obtained by inference, and the angle is recorded as θ.

[0022] Preferably, in step 3, in the regression convolutional neural network, the optimizer is AdamW with weight decay, the loss function is the smoothed mean absolute error Huber, the initial learning rate is 0.001, and the input image size is 224x224.

[0023] Preferably, in step 5, the camera calibration involves three coordinate systems including: pixel coordinate system, camera coordinate system, and world coordinate system, which are represented by three transformations: affine transformation, projection transformation, and rigid body transformation; the transformation from the world coordinate system to the camera coordinate system is a rigid body transformation, that is, a rotation and translation transformation; the transformation from the camera coordinate system to the pixel coordinate system is an affine transformation and a projection transformation; through these transformations, the point coordinates (X w ,Y w ,Z w ) through the point coordinates (X c ,Y c ,Z c ), corresponding to the point coordinates (u, v) in the two-dimensional pixel coordinate system; where (X w ,Y w ,Z w ) represents the point coordinates in the world coordinate system, (X c ,Y c ,Z c ) represents the point coordinates in the camera coordinate system, and (u,v) represents the point coordinates in the two-dimensional pixel coordinate system.

[0024] More preferably, in step 5, the point coordinates (X w ,Y w ,Z w ) to the point coordinates (u, v) in the two-dimensional pixel coordinate system:

[0025]

[0026] According to the world coordinates (X w ,Yw ,Z w ) and the corresponding pixel coordinates (u, v) values ​​are substituted into formula (1) to obtain multiple equations. By solving the equation system composed of these multiple equations, the unknown parameter f in the formula can be calculated. x ,f y ,q x ,q y ,r1,r2,r3,r4,r5,r6,r7,r8,r9,t x ,t y ,t z , where f x ,f y Indicates the focal length of the camera in the x and y directions, q x ,q y Indicates the principal point of the camera in the x, y direction. The focal length is in pixels per millimeter (or meter). The principal point is in pixels. x ,t y ,t z represents the conversion coefficient of translation transformation in rigid body transformation, r1, r2, r3, r4, r5, r6, r7, r8, r9 represent the conversion coefficient of rotation transformation in rigid body transformation; the unknown parameters in formula (1) have been obtained, so according to the coordinates of a point (u, v) in the two-dimensional pixel coordinate system, the corresponding point coordinates in the world coordinate system (X w ,Y w ,Z w ); Assume that the pixel coordinates of the two points are (a1, b1) and (a2, b1), a2 is one pixel larger than a1, and the two points are respectively substituted into formula (1) to calculate the point coordinates in the world coordinate system (X a1 ,Y a1 ,Z a1 ), (X a2 ,Y a2 ,Z a2 ), and then the actual distance represented by a pixel can be calculated The beneficial effects of the present invention are:

[0027] Compared with the existing river surface velocity calculation method, the present invention adopts a river surface velocity calculation method based on a regression convolutional neural network, which can calculate the river surface velocity with high accuracy, high timeliness, non-contact, unattended, simple, online or offline, and is easy to deploy on edge computing devices; therefore, the algorithm of the present invention is safe and reliable, easy to maintain, and can be widely used in hydrological monitoring, reservoir scheduling management, irrigation district irrigation management and scheduling and other related industries. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a flow chart of a method for calculating river surface velocity based on regression convolutional neural network;

[0029] Figure 2 It is a design diagram of the regression convolutional neural network structure;

[0030] Figure 3 It is a schematic diagram of the water flow direction. DETAILED DESCRIPTION

[0031] The following will provide a clear and complete description of the relevant technologies in the present invention in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0032] This embodiment aims to provide a method for calculating river surface velocity based on a regression convolutional neural network, comprising the following steps:

[0033] Step 1: Generate spatiotemporal images of water flow velocity based on water flow video image dataset;

[0034] Step 2: Clean the spatiotemporal image data of water velocity generated in step 1, annotate the samples, and prepare a spatiotemporal image texture main direction regression dataset;

[0035] Step 3: Based on the designed regression convolutional neural network, the spatiotemporal image texture main direction regression dataset generated in step 2 is trained to obtain a spatiotemporal image texture main direction angle recognition model file;

[0036] Step 4: According to the spatiotemporal image texture main direction angle recognition model file obtained in step 3, angle information is inferred;

[0037] Step 5: According to the camera calibration, the actual distance of the world coordinate plane represented by each pixel in the image plane is obtained;

[0038] Step 6: Based on the angle information obtained in step 4, the actual distance in the world coordinate plane represented by each pixel in the image plane obtained in step 5, and the camera frame rate, the flow velocity on the river surface is obtained according to the water flow velocity calculation method.

[0039] Furthermore, in step 3, the regression convolutional neural network is divided into 6 parts, the first to fifth parts are feature information extraction, and the sixth part is feature information regression.

[0040] Furthermore, in step 3, the second part of the regression convolutional neural network consists of 4 blocks, the third part consists of 6 blocks, and the fourth part consists of 16 blocks. The multi-block design of the network helps to improve the ability to extract feature information.

[0041] Furthermore, in step 3, the regression convolutional neural network uses downsampling convolution compression and then uses upsampling convolution expansion method to learn feature information between multiple channels.

[0042] Furthermore, in step 3, the three parallel convolution branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution of the regression convolutional neural network are equivalent to a multi-branch structure during network training, which helps to improve the representation ability; during reasoning of the regression convolutional neural network, the three branches are equivalently converted into a single-path 3x3 convolution, which greatly improves the reasoning speed.

[0043] Furthermore, in step 4, the spatiotemporal graph of the water flow rate to be identified is input, and the regression convolutional neural network training model file is called for model inference. During inference, the three branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution can be equivalently converted into a single 3x3 convolution, greatly improving the inference speed. The main direction angle information of the spatiotemporal image texture is obtained by inference, and the angle is recorded as θ.

[0044] Furthermore, in step 3, in the regression convolutional neural network, the optimizer is AdamW with weight decay, the loss function is the smoothed mean absolute error Huber, the initial learning rate is 0.001, and the input image size is 224x224.

[0045] Furthermore, in step 5, the camera calibration involves three coordinate systems: pixel coordinate system, camera coordinate system, and world coordinate system, which are represented by three transformations: affine transformation, projection transformation, and rigid body transformation; from the world coordinate system to the camera coordinate system is a rigid body transformation, that is, a rotation and translation transformation; from the camera coordinate system to the pixel coordinate system is an affine transformation and a projection transformation; through these transformations, the point coordinates (X w ,Y w ,Z w ) through the point coordinates (X c ,Y c ,Z c ), which corresponds to the point coordinates (u, v) in the two-dimensional pixel coordinate system.

[0046] Furthermore, in step 5, the point coordinates (X w ,Y w ,Z w ) to the point coordinates (u, v) in the two-dimensional pixel coordinate system:

[0047]

[0048] According to the world coordinates of the collected multiple calibration points and the corresponding pixel coordinates, the unknown parameter f in the formula can be calculated by substituting it into formula (1): x ,f y ,q x ,q y ,r1,r2,r3,r4,r5,r6,r7,r8,r9,t x ,t y ,t z ; Thus, according to the coordinates of a point (u, v) in the two-dimensional pixel coordinate system, the corresponding point coordinates in the world coordinate system (X w ,Y w ,Z w ); and then the actual distance p represented by a pixel can be calculated.

[0049] Example

[0050] like Figure 1 As shown in FIG, a spatiotemporal image set of water flow velocity is generated based on a water flow video image dataset.

[0051] like Figure 1 As shown in the figure, the water velocity spatiotemporal image set is cleaned and a spatiotemporal image texture main direction regression dataset is constructed.

[0052] like Figure 1 As shown, a regression convolutional neural network is designed, and the structure of the regression convolutional neural network is shown in Figure 2 As shown in the figure, the network is divided into six parts. The first to fifth parts are for feature information extraction, and the sixth part is for feature information regression. Using downsampling convolution compression and then upsampling convolution expansion, feature information between multiple channels can be learned. During network training, the three parallel convolution branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution are equivalent to a multi-branch structure, which helps improve representation capabilities. However, during inference, the three branches can be equivalently converted into a single 3x3 convolution, significantly improving inference speed. The second part of the network consists of 4 blocks, the third part consists of 6 blocks, and the fourth part consists of 16 blocks. The multi-block design of the network helps improve the ability to extract feature information.

[0053] like Figure 1 As shown in the figure, the regression convolutional neural network training, the optimizer is AdamW with weight decay, the loss function is the smoothed mean absolute error Huber, the initial learning rate is 0.001, and the input image size is 224x224.

[0054] like Figure 1As shown in the figure, the spatiotemporal image of water flow velocity to be identified is input, and the regression convolutional neural network training model file is called for model inference. During inference, the three branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution can be equivalently converted into a single 3x3 convolution, significantly improving inference speed. The inference obtains the main direction angle information of the spatiotemporal image texture, denoted as θ.

[0055] like Figure 1 As shown, camera calibration is performed to calculate the actual distance represented by one pixel. Camera calibration involves three coordinate systems: pixel coordinate system, camera coordinate system, and world coordinate system. It can be represented by three transformations: affine transformation, projection transformation, and rigid body transformation. From the world coordinate system to the camera coordinate system is a rigid body transformation, that is, a rotation and translation transformation. From the camera coordinate system to the pixel coordinate system is an affine transformation and a projection transformation. Through these transformations, the point coordinates (X w ,Y w ,Z w ) through the point coordinates (X c ,Y c ,Z c ), which corresponds to the point coordinates (u, v) in the two-dimensional pixel coordinate system.

[0056] The rigid body transformation matrix is ​​set to G, the translation transformation matrix is ​​set to Q, and the rotation transformation matrix is ​​set to R, then:

[0057]

[0058] t x ,t y ,t z represents the conversion coefficient of the translation transformation,

[0059]

[0060] r1, r2, r3, r4, r5, r6, r7, r8, and r9 represent conversion coefficients of the rotation transformation.

[0061]

[0062] The coordinates of a point in the world coordinate system (X w ,Y w ,Z w ) to the point coordinates (X c ,Y c ,Z c ) is converted to:

[0063]

[0064] The transformation from the camera coordinate system to the pixel coordinate system is a projection transformation and an affine transformation. This is a coordinate transformation from a three-dimensional point coordinate to a two-dimensional plane. Let the focal length of the camera in the x and y directions be f respectively. x ,f y The principal points are q x ,q y The unit of focal length is pixels per millimeter (or meter), and the unit of principal point is pixel. Then the conversion from camera coordinate system to pixel coordinate system is:

[0065]

[0066] The point coordinates in the world coordinate system (X w ,Y w ,Z w ) to the point coordinates (u, v) in the two-dimensional pixel coordinate system:

[0067]

[0068] According to the world coordinates of the collected multiple calibration points and the corresponding pixel coordinates, the unknown parameter f in the formula can be calculated by substituting it into the above formula x ,f y ,q x ,q y ,r1,r2,r3,r4,r5,r6,r7,r8,r9,t x ,t y ,t z Therefore, according to the coordinates of a point (u, v) in the two-dimensional pixel coordinate system, the corresponding point coordinates in the world coordinate system (X w ,Y w ,Z w ). Then the actual distance p represented by a pixel can be calculated.

[0069] like Figure 3 As shown in the water flow direction diagram,

[0070] Assume that in the world coordinate plane, the distance that the water ripple moves along a certain speed measurement line is B, and the time it takes is A. Correspondingly, in the pixel coordinate system, the water ripple moves along a certain speed measurement line at an angle of θ, and the distance it moves within framet is plen pixels. The corresponding flow velocity d on the speed measurement line is calculated as follows:

[0071]

[0072] In the above formula, p represents the actual distance represented by one pixel, h represents the time taken for one frame, and η represents the frame rate of the camera.

[0073] like Figure 1As shown in FIG, the water flow velocity value is calculated based on the actual distance p represented by a pixel, the main direction angle θ of the spatiotemporal image texture, and the frame rate η of the camera.

[0074] In summary, compared with the existing river surface velocity calculation method, the present invention adopts a river surface velocity calculation method based on a regression convolutional neural network, which can calculate the river surface velocity with high accuracy, high timeliness, non-contact, unattended, simple, online or offline, and is easy to deploy on edge computing devices; therefore, the algorithm of the present invention is safe and reliable, easy to maintain, and can be widely used in hydrological monitoring, reservoir scheduling management, irrigation district irrigation management and scheduling and other related industries.

[0075] It should be emphasized that the above are only preferred embodiments of the present invention and do not limit the present invention in any form. Any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A method for calculating river surface velocity based on a regression convolutional neural network, characterized in that: The following steps are involved: Step 1: Generate a spatiotemporal image of water flow velocity based on a water flow video image dataset; Step 2: Clean the water velocity spatiotemporal image data generated in step 1, annotate the samples, and prepare a spatiotemporal image texture main direction regression data set; Step 3: Based on the designed regression convolutional neural network, the spatiotemporal image texture main direction regression data set generated in step 2 is trained to obtain a spatiotemporal image texture main direction angle recognition model file; Step 4, according to the spatiotemporal image texture main direction angle recognition model file obtained in step 3, infer the angle information; Step 5: According to the camera calibration, the actual distance of the world coordinate plane represented by each pixel in the image plane is obtained; Step 6: According to the angle information obtained in step 4, the actual distance in the world coordinate plane represented by each pixel in the image plane obtained in step 5, and the camera frame rate, the flow velocity on the river surface is obtained according to the water flow velocity calculation method.

2. A method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 1, characterized in that: In step 3, the designed regression convolutional neural network is divided into 6 parts, the first to fifth parts are feature information extraction, and the sixth part is feature information regression.

3. A method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 2, characterized in that: In step 3, the second part of the recurrent convolutional neural network consists of 4 blocks, the third part consists of 6 blocks, and the fourth part consists of 16 blocks.

4. The method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 1, characterized in that: In step 3, the recurrent convolutional neural network uses downsampling convolution compression and then uses upsampling convolution expansion method.

5. The method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 1, characterized in that: In the step 3, the three parallel convolution branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution of the regression convolutional neural network are equivalent to a multi-branch structure during network training; when the regression convolutional neural network is inferred, the three branches are equivalently converted into a single-channel 3x3 convolution.

6. A method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 5, characterized in that: In the step 4, the spatiotemporal graph of water flow velocity to be identified is input, and the regression convolutional neural network training model file is called to perform model inference; during inference, the three branches of 3x3 convolution, 1x1 convolution, and identity mapping convolution are equivalently converted into a single-channel 3x3 convolution; the main direction angle information of the spatiotemporal image texture is obtained by inference, and the angle is recorded as θ.

7. The method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 1, characterized in that: In step 3, in the regression convolutional neural network, the optimizer is AdamW with weight decay, the loss function is the smoothed mean absolute error Huber, the initial learning rate is 0.001, and the input image size is 224x224.

8. The method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 1, characterized in that: In step 5, the camera calibration involves three coordinate systems: pixel coordinate system, camera coordinate system, and world coordinate system, which are represented by three transformations: affine transformation, projection transformation, and rigid body transformation; from the world coordinate system to the camera coordinate system is a rigid body transformation, that is, a rotation and translation transformation; from the camera coordinate system to the pixel coordinate system is an affine transformation and a projection transformation; through these transformations, the point coordinates (X w ,Y w ,Z w ) through the point coordinates (X c ,Y c ,Z c ), corresponding to the point coordinates (u, v) in the two-dimensional pixel coordinate system; where (X w ,Y w ,Z w ) represents the point coordinates in the world coordinate system, (X c ,Y c ,Z c ) represents the point coordinates in the camera coordinate system, and (u,v) represents the point coordinates in the two-dimensional pixel coordinate system.

9. A method for calculating river surface velocity based on a recurrent convolutional neural network according to claim 8, characterized in that: In step 5, the point coordinates (X w ,Y w ,Z w ) to the point coordinates (u,v) in the two-dimensional pixel coordinate system: According to the world coordinates (X w ,Y w ,Z w ) and the corresponding pixel coordinates (u, v) are substituted into equation (1) to obtain multiple equations. By solving the equation system composed of these multiple equations, the unknown parameter f in the equation can be calculated. x ,f y ,q x ,q y ,r1,r2,r3,r4,r5,r6,r7,r8,r9,t x ,t y ,t z , where f x ,f y Indicates the focal length of the camera in the x and y directions, q x ,q y Indicates the principal point of the camera in the x and y directions. The focal length is in pixels per millimeter (or meter). The principal point is in pixels. x ,t y ,t z represents the conversion coefficient of translation transformation in rigid body transformation, r1, r2, r3, r4, r5, r6, r7, r8, r9 represent the conversion coefficient of rotation transformation in rigid body transformation; the unknown parameters in formula (1) have been obtained, so according to the coordinates of a point (u, v) in the two-dimensional pixel coordinate system, the corresponding point coordinates in the world coordinate system (X w ,Y w ,Z w ); Assume the pixel coordinates of the two points are (a1, b1) and (a2, b1), a2 is one pixel larger than a1, and the two points are respectively substituted into formula (1) to calculate the point coordinates in the world coordinate system (X a1 ,Y a1 ,Z a1 ), (X a2 ,Y a2 ,Z a2 ), and then the actual distance represented by a pixel can be calculated

Citation Information

Patent Citations

  • Space-time image texture direction detection method and system based on DCNN and transfer learning

    CN113222976A

  • Construction method for rapid recognition model of complex road surface

    CN117115778A

  • River surface flow velocity measurement method and device based on space-time image

    CN117890625A

  • System and Method for Measuring Real Time River Discharge based on thermal image and multivariate coordinate transformation

    KR102519606B1

  • Method and device for calculating river surface flow velocity based on variational principle

    US11544857B1

Cited By

  • River surface space-time image validity identification and speed measurement method based on deep learning

    CN119445370A

  • River surface flow velocity identification method and system based on direction constraint deformable convolution

    CN122313131A