Image rule flow device and image rule flow method
By installing a spherical camera and an image regular flow device with a movable bracket on the bridge deck, the deficiencies of radar flow measurement in ultra-wide sections and bridge deck structures are solved, and accurate monitoring and safe maintenance of river and lake flow are achieved. It is suitable for many applications. A complex river flow test.
Patent Information
- Application Number
- CN202410072905.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-03
AI Technical Summary
Existing radar flow measurement methods have cumulative errors when monitoring the flow of rivers and lakes with ultra-wide cross-sections, and facilities such as poles and cross arms are not suitable for bridge deck structures, making maintenance difficult and dangerous.
An image rule flow device is designed, which uses a spherical camera and a movable bracket. The motor drives the support rod and cantilever to rotate, so that the spherical camera can be installed horizontally or vertically, reducing the difficulty of maintenance. The water level is calculated through line-by-line scanning and SIFT feature detection. Flow rate, providing accurate real-time traffic data.
It achieves accurate monitoring of ultra-wide cross-section flow, reduces the difficulty of maintenance and installation, is suitable for flow testing of high flood flow and large sediment-containing rivers, and provides stable and efficient flow monitoring data.
Smart Images

Figure CN118583226A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of hydrological facilities, and in particular to an image rule flow device and an image rule flow method. Background Art
[0002] Online monitoring of the flow of inland rivers, lakes and reservoirs is of great significance. For example, online river flow monitoring can help us grasp the available water resources in real time, allocate water volume in county-level and city-level river basins through sluice gates, and grasp the flow of each river during mountain torrents and typhoons to prevent natural disasters.
[0003] There are many existing methods for online flow monitoring, such as the radar flow measurement method, which is currently more commonly used. The hardware facilities include poles, cross arms, chassis, solar power supply system, collection equipment, radar current meter, radar water level meter, etc. It uses the length to fix the sensor radar current meter and radar water level meter above the river surface, facing the water flow, and can monitor the surface flow velocity and real-time water level of the river at the same time. Then use the collection and transmission device RTU in the chassis to receive and process the real-time data and transmit it to the remote platform through wireless. You can set the time for real-time viewing, threshold alarm, etc.
[0004] However, the above radar flow measurement is less effective when applied to rivers and lakes with wider cross-sections. For example, for ultra-wide cross-sections of more than 1 km, multiple radar sensors will produce cumulative errors and cannot accurately reflect the cross-sectional flow. In addition, the existing poles, cross arms, chassis, etc. are not suitable for bridge deck structures and are not easy to install. If fixed brackets are used, subsequent maintenance and repair work will be suspended high-altitude operations, which are dangerous and difficult. Summary of the invention
[0005] Aiming at the defects in the prior art, the accuracy of flow monitoring is improved and the difficulty of subsequent maintenance work is reduced. The present invention provides an image law flow device, including a spherical camera and a movable bracket; the spherical camera is provided in plurality, each spherical camera is installed on the left side or right side of the bridge body through a movable bracket, so that all the spherical cameras are evenly spaced and distributed on a straight line;
[0006] The movable bracket includes a support rod, a cantilever and a motor; the lower end of the cantilever is fixedly connected to the bridge body and the upper end of the cantilever is provided with a rotatable first gear, one end of the support rod is fixedly connected to the side of the first gear, the housing of the motor is fixed to the cantilever, and the output shaft of the motor is transmission-connected to the first gear; the other end of each support rod is provided with a sleeve, and the sleeve is radially locked by a top screw, a connecting rod is provided on the side of each sleeve, and a spherical camera is installed at the end of each connecting rod;
[0007] The motor drives the corresponding first gear to rotate, thereby making the support rod horizontal and the spherical camera vertically downward, or making the support rod vertical and the spherical camera horizontal.
[0008] Preferably, one end of the support rod is provided with a threaded rod and a matching nut, and the sleeve is sleeved on the threaded rod and axially locked by the nut. In order to prevent the spherical camera from rotating around the support rod, the nut and the top screw are doubly locked and connected firmly without falling off.
[0009] Preferably, the lower end of the cantilever is fixedly connected to the bridge body through an anchor plate, and two cantilevers are provided, and the first gear is rotatably connected between the two cantilevers through a rotating shaft. The rotating shaft and the first gear are rotatably connected through a bearing. The paired cantilever is sufficient to bear the total weight of the spherical camera and the L-shaped tube, and the support is firm and stable, and long-term support will not cause problems such as image misalignment and jitter.
[0010] Preferably, an equipment box is provided between the two cantilevers, and the motor is sealed in the equipment box. A rotatable second gear is provided in the equipment box, the second gear meshes with the first gear, and the diameter of the first gear is ten times the diameter of the second gear; the second gear is connected to the output shaft of the motor by driving. The output shaft of the motor is provided with a coaxially fixed worm, the central axis of the second gear is provided with a turbine, and the second gear rotates synchronously with the turbine; the worm meshes with the turbine, so that the motor drives the second gear to rotate. The worm-turbine transmission has the characteristics of one-way transmission, and the turbine can only be driven by the motor to rotate, while the turbine cannot drive the motor to rotate. The motor adopts a brake-type servo motor, and its output shaft is locked after stopping or power failure, so that the spherical camera can be fixed in a certain state, such as maintaining a vertical state or a horizontal state.
[0011] Preferably, a battery and an electric control board are provided in the equipment box, and the motor and the battery are electrically connected to the output end and the input end of the electric control board respectively. A travel switch electrically connected to the input end of the electric control board is provided on the side of the equipment box, and a lever opposite to the travel switch is provided on the side of the first gear. The motor drives the L-shaped tube to be in a horizontal state, so that the lever touches the travel switch; a receiver electrically connected to the input end of the electric control board is provided on the top of the equipment box.
[0012] The beneficial effects of this device are:
[0013] 1. Install multiple spherical cameras at equal intervals along the length of the bridge, with one spherical camera installed every 100 meters. The specific number of spherical cameras depends on the length of the bridge. All spherical cameras are connected to the imaging flow measurement system. Each spherical camera uses line-by-line scanning to capture characteristic point information such as water bubbles, floating objects, and water ripples. A special algorithm is used to calculate the distance it moves per unit time, thereby generating the flow velocity of each vertical line, and the monitored water surface image information is sent to the back-end imaging flow measurement system. The average flow velocity calculated by all spherical cameras is summarized and calculated, and the cross-sectional area is determined based on the water level information, providing accurate real-time data for the imaging flow measurement system. After data processing, accurate real-time flow can be obtained.
[0014] 2. Each support rod is connected to the cantilever by rotation, and the motor can be rotated to drive the support rod to a horizontal state. At this time, the camera end of the spherical camera faces downward, that is, the working state. If the spherical camera needs to be maintained or repaired, the motor can be reversed to make the support rod face vertically upward, so that the spherical camera can be swung to a position above the bridge guardrail. The staff can easily complete the repair and maintenance work while standing on the bridge deck, avoiding suspended operations and high-altitude operations, which reduces the difficulty of installation and maintenance.
[0015] The present invention also provides an image flow method, which is applied to the above-mentioned image flow device, including a remote server, and all the electric control panels are electrically connected to the remote server respectively, and the steps are as follows:
[0016] S1. Send instructions to the electric control board through a remote server or a wireless remote controller matched with a receiver, and the motor of each movable bracket rotates forward, the worm drives the turbine to rotate, and the second gear rotating coaxially with the turbine drives the second gear to rotate, and the second gear makes the corresponding support rod horizontal and the spherical camera vertically downward;
[0017] S2, the remote server or wireless remote controller adjusts the camera range of each spherical camera so that the images of all spherical cameras are connected in sequence and cover the entire water surface horizontally;
[0018] S3, each spherical camera sends the real-time images to the remote server;
[0019] S4, the remote server performs internal parameter calibration on all spherical cameras, and obtains the internal parameters of the spherical cameras through the world coordinates and their corresponding image coordinates, including the acquisition of calibration images under each zoom, the calculation of internal parameters under each zoom, and data fitting.
[0020] S41, acquisition of calibration image is to acquire the calibration plate image;
[0021] S42, after obtaining the calibration image, the internal parameter parameters of the spherical camera under this zoom are calculated based on the relationship between the four coordinate systems of the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system in the camera model, and the required internal parameters f_x, f_y, u_0, v_0 are calculated according to the coordinate system relationship diagram in the camera model;
[0022] S43, through S42, the internal parameters of the spherical camera under different zooms are calibrated to obtain multiple sets of internal parameter data under zoom. By statistically analyzing these data, it can be concluded that f_x and f_y are linearly related to the zoom Z, u_0 and v_0 are constants, and the values of f_x and f_y are linearly fitted to obtain two linear equations, which are used to calculate the internal parameter parameters of the camera under each zoom. The equations are as follows:
[0023] f_x=a_1 "Z"+b_1 (1)
[0024] f_y=a_2 "Z"+b_2 (2)
[0025] Where Z is the current camera zoom factor;
[0026] S5. Detection and matching of river surface feature points. The corner point detection method based on SIFT features is used to detect the corner points formed by floating objects, bubbles or obvious ripples on two adjacent frames of water surface images. Then SIFT feature extraction is performed on the detected feature points to obtain the corresponding descriptors. The SIFT feature descriptors are used to match the corner points detected in the previous and next frames. After obtaining the matching feature points, the feature points are screened. The screening is divided into three steps.
[0027] S51, sorting according to the matching degree obtained based on SIFT feature matching, taking the top n points with higher matching degree for the next step of screening;
[0028] S52, calculating the slope of the line connecting each pair of matching points. Since the water flow velocity is in the horizontal direction, the point with a larger slope will affect the calculation of the flow velocity and the slope of most correctly matched points will not be too large, so the matching points are sorted according to the slope, and the first m points with the smaller slope are selected for the next step of screening;
[0029] S53, calculating the Euclidean distance of each pair of matching points, clustering the matching points according to the Euclidean distance, and selecting points contained in a class with the largest number of points from the obtained classes for the next step of calculation;
[0030] S6, image coordinates are converted into world coordinates, which is to convert the pixel coordinates of the point obtained in S4 on the image into world coordinates. According to the relationship between the various coordinate systems in the camera model, the conversion relationship between the pixel coordinate system and the world coordinate system can be derived as follows:
[0031]
[0032] Where Zc is an arbitrary parameter, (u,v,1) T represents the coordinate value of the pixel end on the image, K represents the internal parameter matrix, represents the rotation matrix, (x w ,y w ,z w ,1) T Indicates the coordinate value of the point in the world coordinate system; the intrinsic parameter matrix under the current zoom can be calculated through the equation fitted during camera calibration, and the extrinsic parameter matrix can be obtained through actual measurement. Solving the equation can convert the image coordinates of the point into world coordinates;
[0033] S7. The actual physical distance of each pair of matching points can be calculated through the world coordinates of each pixel point, and the time difference between the two matching points can be calculated through the video frame rate. The movement speed of each pair of matching points can be calculated according to the speed calculation formula v=d / t, in units of m / s. The speeds of all matching points are sorted, and the median speed is used as the flow velocity of the water surface in this frame.
[0034] The beneficial effect of this method is that it is suitable for measuring stations that can establish flow calculation models based on river sections and water flow characteristics, and is particularly suitable for high flood flow tests, shallow water flow tests, boundary river flow tests and emergency monitoring, etc. It has good adaptability to rivers with high sand content and many surface floating objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0036] Figure 1 This is a schematic diagram of the structure of the first embodiment;
[0037] Figure 2 for Figure 1 Schematic diagram of the structure of the mid-spherical camera and the movable bracket;
[0038] Figure 3 for Figure 2 Right view of;
[0039] Figure 4 for Figure 3 The enlarged view of point A in the middle;
[0040] Figure 5 for Figure 3 Schematic diagram of the internal structure of the equipment box;
[0041] Figure 6 for Figure 3 Schematic diagram of the middle support rod after it swings 90° clockwise;
[0042] Figure 7 The calibration plate image in Example 2;
[0043] Figure 8 This is a coordinate system relationship diagram in Example 2.
[0044] In the attached drawings, there are a spherical camera 1, a movable bracket 2, a support rod 3, a cantilever 4, a motor 5, an anchor plate 6, a first gear 7, a rotating shaft 8, a bearing 9, an equipment box 10, a second gear 11, a worm 12, a turbine 13, a battery 14, an electric control board 15, a travel switch 16, a lever 17, a receiver 18, a guardrail 19, a bridge deck 20, a connecting rod 21, a threaded rod 22, a nut 23, a top screw 24, and a sleeve 25. DETAILED DESCRIPTION
[0045] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
[0046] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.
[0047] like Figure 1 , Figure 2 As shown, the first embodiment provides an image law flow device, including a spherical camera 1 and a movable bracket 2; the spherical camera 1 is provided in plurality, and each spherical camera 1 is installed on the left side or the right side of the bridge body through a movable bracket 2, so that all the spherical cameras 1 are evenly spaced and distributed on a straight line. Specifically, the plurality of spherical cameras 1 are evenly spaced and installed along the length direction of the bridge body, and the specific number of the spherical cameras 1 is determined according to the length of the bridge body.
[0048] In order to facilitate later maintenance and installation, the specific structure of the movable bracket 2 in this embodiment is as follows:
[0049] like Figure 3 , Figure 4As shown, the movable bracket 2 includes a support rod 3, a cantilever 4 and a motor 5. The lower end of the cantilever 4 is fixedly connected to the bridge body, and the upper end of the cantilever 4 is provided with a rotatable first gear 7. Specifically, the lower end of the cantilever 4 is fixedly connected to the bridge body through an anchor plate 6, and the cantilever 4 is provided with two, and the first gear 7 is rotatably connected between the two cantilevers 4 through a rotating shaft 8. The rotating shaft 8 and the first gear 7 are rotatably connected through a bearing 9. The paired cantilever 4 is sufficient to bear the total weight of the spherical camera 1 and the L-shaped tube, and the support is firm and stable. Long-term support will not cause problems such as image misalignment and jitter.
[0050] like Figure 4 , Figure 5 As shown, one end of the support rod 3 is fixedly connected to the side of the first gear 7, the housing of the motor 5 is fixed to the cantilever 4, and the output shaft of the motor 5 is connected to the first gear 7 in a transmission manner. The specific transmission relationship is: an equipment box 10 is provided between the two cantilevers 4, and the motor 5 is sealed in the equipment box 10. A rotatable second gear 11 is provided in the equipment box 10, and the second gear 11 is meshed with the first gear 7, and the diameter of the first gear 7 is ten times the diameter of the second gear 11; the second gear 11 is connected to the output shaft of the motor 5 in a transmission manner. The output shaft of the motor 5 is provided with a coaxially fixed worm 12, and the central axis of the second gear 11 is provided with a turbine 13, and the second gear 11 rotates synchronously with the turbine 13; the worm 12 is meshed with the turbine 13, so that the motor 5 drives the second gear 11 to rotate. A sleeve 25 is provided at the other end of each support rod 3, and the sleeve 25 is radially locked by a top screw 24, and a connecting rod 21 is provided on the side of each sleeve 25, and a spherical camera 1 is installed at the end of each connecting rod 21. Specifically, one end of the support rod 3 is provided with a threaded rod 22 and a matching nut 23, and the sleeve 25 is sleeved on the threaded rod 22 and axially locked by the nut 23. In order to prevent the spherical camera 1 from rotating around the support rod 3, the nut 23 and the top screw 24 are doubly locked and firmly connected without falling off.
[0051] The transmission of the worm 12 and the worm gear 13 has the characteristic of one-way transmission, and the worm gear 13 can only be driven by the motor 5 to rotate, while the worm gear 13 cannot drive the motor 5 to rotate. The motor 5 adopts a brake-type servo motor 5, and its output shaft is locked after stopping or power failure, so that the spherical camera 1 can be fixed in a certain state, such as maintaining a vertical state or a horizontal state. The corresponding first gear 7 is driven to rotate by the motor 5, so that the support rod 3 is horizontal and the spherical camera 1 is vertically downward, or the support rod 3 is vertical and the spherical camera 1 is horizontal.
[0052] If maintenance is required, such as cleaning the lens of the spherical camera 1, replacing the spherical camera 1, etc., the motor 5 can be reversed to make the support rod 3 face vertically upward, so that the spherical camera 1 can be swung to a position above the bridge guardrail 19, and then the nut 23 and the top screw 24 are loosened, and the connecting rod 21 is rotated 180°. The staff can easily complete the maintenance and repair work while standing on the bridge deck 20, avoiding suspended operations and high-altitude operations, which reduces the difficulty of installation and maintenance.
[0053] In addition, if Figure 6 As shown, a battery 14 and an electric control board 15 are provided in the equipment box 10, and the motor 5 and the battery 14 are electrically connected to the output end and the input end of the electric control board 15, respectively. A travel switch 16 electrically connected to the input end of the electric control board 15 is provided on the side of the equipment box 10, and a lever 17 opposite to the travel switch 16 is provided on the side of the first gear 7. The motor 5 drives the L-shaped tube to be in a horizontal state, so that the lever 17 touches the travel switch 16; a receiver 18 electrically connected to the input end of the electric control board 15 is provided on the top of the equipment box 10. After approaching the corresponding spherical camera 1, the receiver 18 is wirelessly connected to a one-to-one wireless remote controller, and the wireless remote controller can realize the forward and reverse rotation of the motor 5, the rotation of the spherical camera 1, and other operations. A one-to-many method can also be adopted, using a universal wireless remote controller, but the receiving range of the receiver 18 needs to be limited, for example, limited to 5 meters or 10 meters, to avoid interference between two adjacent spherical cameras 1.
[0054] Embodiment 2:
[0055] Embodiment 2 provides an image streaming method, which is applied to the image streaming device of embodiment 1, including a remote server, and all electric control boards are electrically connected to the remote server respectively, and the steps are as follows:
[0056] S1. Send instructions to the electric control board through a remote server or a wireless remote controller matched with a receiver, and the motor of each movable bracket rotates forward, the worm drives the turbine to rotate, and the second gear rotating coaxially with the turbine drives the second gear to rotate, and the second gear makes the corresponding support rod horizontal and the spherical camera vertically downward;
[0057] S2, the remote server or wireless remote controller adjusts the camera range of each spherical camera so that the images of all spherical cameras are connected in sequence and cover the entire water surface horizontally;
[0058] S3, each spherical camera sends the real-time images to the remote server;
[0059] S4, the remote server performs internal parameter calibration on all spherical cameras, and obtains the internal parameters of the spherical cameras through the world coordinates and their corresponding image coordinates, including the acquisition of calibration images under each zoom, the calculation of internal parameters under each zoom, and data fitting.
[0060] S41, the acquisition of the calibration image is to collect the calibration plate image (such as Figure 7 As shown) for collection;
[0061] S42, after obtaining the calibration image, the internal parameter parameters of the spherical camera under this zoom are calculated based on the relationship between the four coordinate systems of the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system in the camera model, and the required internal parameters f_x, f_y, u_0, v_0 are calculated according to the coordinate system relationship diagram in the camera model (such as Figure 8 shown);
[0062] S43, through S42, the internal parameters of the spherical camera under different zooms are calibrated to obtain multiple sets of internal parameter data under zoom. By statistically analyzing these data, it can be concluded that f_x and f_y are linearly related to the zoom Z, u_0 and v_0 are constants, and the values of f_x and f_y are linearly fitted to obtain two linear equations, which are used to calculate the internal parameter parameters of the camera under each zoom. The equations are as follows:
[0063] f_x=a_1 "Z"+b_1 (1)
[0064] f_y=a_2 "Z"+b_2 (2)
[0065] Where Z is the current camera zoom factor;
[0066] S5. Detection and matching of river surface feature points. The corner point detection method based on SIFT features is used to detect the corner points formed by floating objects, bubbles or obvious ripples on two adjacent frames of water surface images. Then SIFT feature extraction is performed on the detected feature points to obtain the corresponding descriptors. The SIFT feature descriptors are used to match the corner points detected in the previous and next frames. After obtaining the matching feature points, the feature points are screened. The screening is divided into three steps.
[0067] S51, sorting according to the matching degree obtained based on SIFT feature matching, taking the top n points with higher matching degree for the next step of screening;
[0068] S52, calculating the slope of the line connecting each pair of matching points. Since the water flow velocity is in the horizontal direction, the point with a larger slope will affect the calculation of the flow velocity and the slope of most correctly matched points will not be too large, so the matching points are sorted according to the slope, and the first m points with the smaller slope are selected for the next step of screening;
[0069] S53, calculating the Euclidean distance of each pair of matching points, clustering the matching points according to the Euclidean distance, and selecting points contained in a class with the largest number of points from the obtained classes for the next step of calculation;
[0070] S6, image coordinates are converted into world coordinates, which is to convert the pixel coordinates of the point obtained in S4 on the image into world coordinates. According to the relationship between the various coordinate systems in the camera model, the conversion relationship between the pixel coordinate system and the world coordinate system can be derived as follows:
[0071]
[0072] Where Zc is an arbitrary parameter, (u,v,1) T represents the coordinate value of the pixel end on the image, K represents the internal parameter matrix, represents the rotation matrix, (x w ,y w , z w , 1) T Indicates the coordinate value of the point in the world coordinate system; the intrinsic parameter matrix under the current zoom can be calculated through the equation fitted during camera calibration, and the extrinsic parameter matrix can be obtained through actual measurement. Solving the equation can convert the image coordinates of the point into world coordinates;
[0073] S7. The actual physical distance of each pair of matching points can be calculated through the world coordinates of each pixel point, and the time difference between the two matching points can be calculated through the video frame rate. The movement speed of each pair of matching points can be calculated according to the speed calculation formula v=d / t, in units of m / s. The speeds of all matching points are sorted, and the median speed is used as the flow velocity of the water surface in this frame.
[0074] The beneficial effect of this method is that it is suitable for measuring stations that can establish flow calculation models based on river sections and water flow characteristics, and is particularly suitable for high flood flow tests, shallow water flow tests, boundary river flow tests and emergency monitoring, etc. It has good adaptability to rivers with high sand content and many surface floating objects.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. An image law flow device, characterized in that: It includes a spherical camera and a movable bracket; there are multiple spherical cameras, each of which is installed on the left side or the right side of the bridge body through a movable bracket, so that all the spherical cameras are evenly spaced and distributed on a straight line; The movable bracket includes a support rod, a cantilever and a motor; the lower end of the cantilever is fixedly connected to the bridge body and the upper end of the cantilever is provided with a rotatable first gear, one end of the support rod is fixedly connected to the side of the first gear, the housing of the motor is fixed to the cantilever, and the output shaft of the motor is transmission-connected to the first gear; the other end of each support rod is provided with a sleeve, and the sleeve is radially locked by a top screw, a connecting rod is provided on the side of each sleeve, and a spherical camera is installed at the end of each connecting rod; The motor drives the corresponding first gear to rotate, thereby making the support rod horizontal and the spherical camera vertically downward, or making the support rod vertical and the spherical camera horizontal.
2. The image law flow device according to claim 1, characterized in that: A threaded rod and a matching nut are provided at one end of the support rod, and the sleeve is sleeved on the threaded rod and axially locked by the nut.
3. The image law flow device according to claim 1, characterized in that: The lower end of the cantilever is fixedly connected to the bridge body via an anchor plate, and two cantilevers are provided. The first gear is rotatably connected between the two cantilevers via a rotating shaft.
4. The image law flow device according to claim 3, characterized in that: The rotating shaft and the first gear are rotatably connected via a bearing.
5. The image law flow device according to claim 1, characterized in that: An equipment box is arranged between the two cantilevers, and the motor is sealed in the equipment box.
6. The image law flow device according to claim 5, characterized in that: A rotatable second gear is arranged in the equipment box, the second gear is meshed with the first gear, and the diameter of the first gear is ten times the diameter of the second gear; the second gear is drivingly connected to the output shaft of the motor.
7. The image law flow device according to claim 6, characterized in that: The output shaft of the motor is provided with a coaxially fixed worm, the central axis of the second gear is provided with a turbine, and the second gear rotates synchronously with the turbine; the worm meshes with the turbine, thereby causing the motor to drive the second gear to rotate.
8. The image law flow device according to claim 7, characterized in that: A storage battery and an electric control board are arranged in the equipment box, and the motor and the storage battery are electrically connected to the output end and the input end of the electric control board respectively.
9. The image law flow device according to claim 8, characterized in that: A travel switch electrically connected to the input end of the electric control board is provided on the side of the equipment box, and a lever opposite to the travel switch is provided on the side of the first gear. The L-shaped tube is driven to a horizontal state by a motor, so that the lever touches the travel switch; a receiver electrically connected to the input end of the electric control board is provided on the top of the equipment box.
10. An image streaming method, characterized in that: The image rule flow device according to claim 9 includes a remote server, and all the electric control panels are electrically connected to the remote server respectively, and the steps are as follows: S1. Send instructions to the electric control board through a remote server or a wireless remote controller matched with a receiver, and the motor of each movable bracket rotates forward, the worm drives the turbine to rotate, and the second gear rotating coaxially with the turbine drives the second gear to rotate, and the second gear makes the corresponding support rod horizontal and the spherical camera vertically downward; S2, the remote server or wireless remote controller adjusts the camera range of each spherical camera so that the images of all spherical cameras are connected in sequence and cover the entire water surface horizontally; S3, each spherical camera sends the real-time images to the remote server; S4, the remote server performs internal parameter calibration on all spherical cameras, and obtains the internal parameters of the spherical cameras through the world coordinates and their corresponding image coordinates, including the acquisition of calibration images under each zoom, the calculation of internal parameters under each zoom, and data fitting. S41, acquisition of calibration image is to acquire the calibration plate image; S42, after obtaining the calibration image, the internal parameter parameters of the spherical camera under this zoom are calculated based on the relationship between the four coordinate systems of the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system in the camera model, and the required internal parameters f_x, f_y, u_0, v_0 are calculated according to the coordinate system relationship diagram in the camera model; S43, through S42, the internal parameters of the spherical camera under different zooms are calibrated to obtain multiple sets of internal parameter data under zoom. By statistically analyzing these data, it can be concluded that f_x and f_y are linearly related to the zoom Z, u_0 and v_0 are constants, and the values of f_x and f_y are linearly fitted to obtain two linear equations, which are used to calculate the internal parameter parameters of the camera under each zoom. The equations are as follows: f_x=a_1"Z"+b_1; f_y=a_2"Z"+b_2; Where Z is the current camera zoom factor; S5. Detection and matching of river surface feature points. The corner point detection method based on SIFT features is used to detect the corner points formed by floating objects, bubbles or obvious ripples on two adjacent frames of water surface images. Then SIFT feature extraction is performed on the detected feature points to obtain the corresponding descriptors. The SIFT feature descriptors are used to match the corner points detected in the previous and next frames. After obtaining the matching feature points, the feature points are screened. The screening is divided into three steps. S51, sorting according to the matching degree obtained based on SIFT feature matching, taking the top n points with higher matching degree for the next step of screening; S52, calculating the slope of the line connecting each pair of matching points. Since the water flow velocity is in the horizontal direction, the point with a larger slope will affect the calculation of the flow velocity and the slope of most correctly matched points will not be too large, so the matching points are sorted according to the slope, and the first m points with the smaller slope are selected for the next step of screening; S53, calculating the Euclidean distance of each pair of matching points, clustering the matching points according to the Euclidean distance, and selecting points contained in a class with the largest number of points from the obtained classes for the next step of calculation; S6, image coordinates are converted into world coordinates, which is to convert the pixel coordinates of the point obtained in S4 on the image into world coordinates. According to the relationship between the various coordinate systems in the camera model, the conversion relationship between the pixel coordinate system and the world coordinate system can be derived as follows: Where Zc is an arbitrary parameter, (u, v, 1) T represents the coordinate value of the pixel end on the image, K represents the internal parameter matrix, represents the rotation matrix, (x w ,y w , z w , 1) T Indicates the coordinate value of the point in the world coordinate system; the intrinsic parameter matrix under the current zoom can be calculated through the equation fitted during camera calibration, and the extrinsic parameter matrix can be obtained through actual measurement. Solving the equation can convert the image coordinates of the point into world coordinates; S7. The actual physical distance of each pair of matching points can be calculated through the world coordinates of each pixel point, and the time difference between the two matching points can be calculated through the video frame rate. The movement speed of each pair of matching points can be calculated according to the speed calculation formula v=d / t, in units of m / s. The speeds of all matching points are sorted, and the median speed is used as the flow velocity of the water surface in this frame.
