Method and system for observing tide level through floating pier video image
By using video image recognition and function relationship calculation at the floating dock, combined with RTK equipment and draft correction, the complexity and accuracy problems of existing tide level observation methods have been solved, realizing high-precision automated tide level observation in the floating dock scenario.
Patent Information
- Application Number
- CN202410198368.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-22
AI Technical Summary
Existing tidal level observation methods suffer from problems such as complex site selection, high cost, low accuracy, and complicated operation, making it difficult to achieve automated and high-precision tidal level observation.
By identifying the location of the floating dock pontoon through video images, a functional relationship between the video images and the tide level is established. Combining RTK equipment and image recognition models, the real-time tide level is calculated, and high-precision tide level observation is achieved by correcting the data through draft depth.
It enables automated, rapid, and accurate tide level observation in floating dock scenarios, reducing errors and providing economic and social benefits.
Smart Images

Figure CN118037842B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of tide observation technology, and in particular to a method and system for observing tide levels using video images from a floating dock. Background Technology
[0002] Tide level observation refers to the measurement of changes in sea level over time. It is an important aspect of marine scientific research and a crucial foundation for marine engineering construction. There are many methods for tide level observation, including tide gauges, pressure tide gauges, ultrasonic tide gauges, and artificial water gauges. The changing reference point is a fixed coastal structure or marker.
[0003] The principle of a tide gauge is that a float on the water surface moves with the rise and fall of the water level inside the gauge, driving a recorder to record changes in the water level. The disadvantages of tide gauges include complex site selection requirements, high engineering costs, and long construction periods. Furthermore, if the conduit connecting the tide gauge to the seawater outside the gauge is blocked, it will severely affect the tide level measurement results.
[0004] A pressure tide gauge measures water level by measuring pressure changes caused by changes in sea surface pressure. Pressure tide gauges obtain seawater depth using pressure sensors, measuring the elevation relationship between the sea surface and the fixed seabed. When observation is needed, the instrument is placed on the seabed. Its working principle is to convert seawater pressure signals into electrical signals, which are then converted into water level data. It is an indirect measurement method, and long-term observations require pressure correction. It is complex to operate and relatively expensive.
[0005] An ultrasonic tide gauge works by transmitting sound signals downwards from a transmitter fixed high above the seawater. The signals echo back to the water surface, and the round-trip time of the echo is recorded to determine the water level. Ultrasonic tide gauges measure the elevation relationship between the seawater surface and the sensor using an ultrasonic sensor fixed at a high position. The instrument must be placed above the water surface to transmit ultrasonic signals downwards and observe the distance between the water surface and the instrument, requiring precise installation.
[0006] Manual tide gauge readings involve fixing a gauge board to a pier, rock face, or beach and manually reading the water level. The accuracy of manual tide gauge readings is easily affected by factors such as human experience and sea waves, resulting in lower precision and making long-term automated monitoring difficult.
[0007] The purpose of this invention is to design a method and system for observing tide levels using video images from a floating dock, addressing the problems existing in the prior art. Summary of the Invention
[0008] In view of this, the purpose of this invention is to provide a method and system for observing tide levels through video images of floating docks, which can automatically and continuously perform high-precision tide level observations in sea areas with floating docks.
[0009] This invention provides a method for observing tide levels using video images from a floating dock, comprising: Acquire real-time side video images of the floating dock, and identify and mark the positions of the floating dock pontoons in the side video images; Establish a functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; The real-time tide level is calculated based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship.
[0010] Furthermore, the identification and marking of the location of the floating dock pontoon in the side video image of the floating dock includes: The location of the floating dock pontoon in the side video image of the floating dock is identified and marked by a pre-trained image recognition model; The coordinates of the center of the floating dock's position are calculated from the position of the pontoon in the side video image of the floating dock.
[0011] Furthermore, the step of identifying the position of the floating dock pontoon in the side video image of the floating dock using a pre-trained image recognition model includes: The image recognition model identifies the location of the floating dock pontoon based on the shape and color features of the pontoon in the side video image of the floating dock.
[0012] Furthermore, the calculation of the image center coordinates of the floating dock's position from the floating dock's position in the side video image includes: An image coordinate system is constructed with the corner of the frame of the video image on the side of the floating dock as the origin; The location of the floating dock pontoon is marked with a rectangle in the side video image of the floating dock; The height h and width w of the rectangle, as well as the coordinates of each vertex, are calculated based on the pixel count of the video image on the side of the floating dock. The center coordinates (center_x, center_y) of the rectangular frame are calculated using the height h, width w, and arbitrary vertex coordinates of the rectangular frame, thus obtaining the image center coordinates of the floating dock pontoon's position.
[0013] Furthermore, establishing the functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the corresponding tide level includes: A linear correlation formula is constructed through regression analysis: t=k*y+b, where t is the tide level and y is the ordinate of the image center of the floating dock at the same moment as t. Multiple elevation measurements were performed at different times using RTK equipment on the floating dock to obtain several tidal level data t. The function relationship parameters are fitted using several simultaneous tide level data t and the ordinate y of the image center of the floating dock / pontoon position.
[0014] Furthermore, after acquiring real-time side video images of the floating dock and identifying and marking the positions of the floating dock pontoons in the side video images, the following steps are performed: If the location of the floating dock pontoon cannot be identified in the side video image of the floating dock, the real-time tide level is predicted by using historical measured tide level data.
[0015] Furthermore, the prediction of real-time tide levels using historical measured tide level data includes: A tidal harmonic analysis function is constructed, and the constants of the tidal harmonic analysis function are calculated using historical measured tide level data; Obtain the current time and calculate the astronomical tide height at the corresponding time based on the tidal harmonic analysis function; The astronomical tide height at the corresponding time is corrected for datum and water level based on recent measured tide data to obtain the current tide level.
[0016] Furthermore, after calculating the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship, the following steps are performed: If people or goods are detected on the floating dock in the side video image, the real-time tide level is corrected by the change in draft.
[0017] Furthermore, the correction of the real-time tide level by changes in draft includes: Identify the current draft h1 of the floating dock pontoon in the side video image of the floating dock; The change in the current draft of the floating dock pontoon is calculated based on the current draft h1 of the floating dock pontoon and the draft h0 of the floating dock pontoon when it is unmanned or carrying cargo. The tide level data is corrected by the change in draft Δh of the floating dock pontoon.
[0018] This invention provides a system for observing tide levels using video images from a floating dock, comprising: The identification module is used to acquire real-time video images of the side of the floating dock, and to identify and mark the position of the floating dock pontoon in the video images of the side of the floating dock; The function module is used to establish the functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; The calculation module is used to calculate the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship.
[0019] The beneficial effects of this invention are: Firstly, image recognition technology can accurately identify and mark the position of the floating dock pontoon in the side video image of the floating dock. Then, based on the side video image of the floating dock, an image coordinate system can be established to accurately obtain the image center coordinates of the floating dock pontoon. The real-time image center coordinates of the floating dock pontoon can be automatically identified by computer software, without the need for manual on-site measurement.
[0020] Secondly, by establishing a functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the corresponding tide level, the real-time tide level can be directly calculated by identifying the image center coordinates of the floating dock pontoon position in real time through computer image recognition. This can be quickly deployed to scenes with floating docks to provide tide level observation technology services for production and daily life, and can achieve certain economic and social benefits.
[0021] Third, the observed tide level data is corrected by increasing the weight of the floating dock. The depth of the floating dock submerged in the water is identified by computer images to assess the change in weight above the floating dock, and the calculated tide level data is corrected to reduce the error in tide level observation. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method according to an embodiment of the present invention.
[0024] Figure 2 This is a schematic diagram of the image coordinate system according to an embodiment of the present invention.
[0025] Figure 3 This is a function relationship diagram of an embodiment of the present invention.
[0026] Figure 4 This is a process curve diagram comparing the measured tide level with the predicted tide level according to an embodiment of the present invention.
[0027] Figure 5 This is a system block diagram of an embodiment of the present invention. Detailed Implementation
[0028] To facilitate understanding by those skilled in the art, the structure of the present invention will now be described in further detail with reference to the accompanying drawings. It should be understood that, unless otherwise specified, the order of the steps mentioned in this embodiment can be adjusted according to actual needs, and they can even be executed simultaneously or partially simultaneously.
[0029] like Figure 1 As shown, this embodiment of the invention provides a method for observing tide levels using video images from a floating dock, comprising: S1 acquires real-time side video images of the floating dock, and identifies and marks the position of the floating dock pontoon in the side video images of the floating dock; In this step, a high-definition night vision camera is installed at a suitable location near the floating dock. This invention uses a camera with a resolution of 8 megapixels or higher and equipped with night vision functionality. The camera's shooting angle is adjusted to face the side of the floating dock as it moves up and down, ensuring that the floating dock pontoon appears to be floating up and down in the video image. After determining the functional relationship in step S2, the camera's position and angle must remain fixed; otherwise, the parameters of the functional relationship need to be recalibrated. The front view is usually closer, and to cover the high and low tide range, a wide-angle lens is typically required. However, wide-angle lenses exhibit greater image distortion near the edges, leading to a larger relative error in tide level measurement. Therefore, using a side view allows for a greater distance to be set, resulting in a smaller error.
[0030] S101 identifies and marks the position of the floating dock pontoon in the side video image of the floating dock using a pre-trained image recognition model; Specifically, the image recognition model identifies the location of the floating dock pontoon based on the shape and color features of the pontoon in the side video image of the floating dock.
[0031] In this step, computer software reads the side video images of the floating dock acquired by the camera, and uses a neural network model of computer deep learning to build an image recognition model. Based on the shape, color and other features of the floating dock, the position of the floating dock pontoon in the image is identified. This invention trains the image recognition model using historical side video images of the floating dock acquired by the camera, ensuring the accuracy of the floating dock pontoon position identification.
[0032] S102 calculates the image center coordinates of the floating dock's position based on the position of the floating dock's pontoon in the side video image of the floating dock.
[0033] S1021 constructs an image coordinate system with the corner of the frame of the video image on the side of the floating dock as the origin; S1022 marks the position of the floating dock pontoon in the side video image of the floating dock using a rectangular frame; S1023 calculates the height h and width w of the rectangle and the coordinates of each vertex based on the pixel count of the video image on the side of the floating dock; S1024 calculates the center coordinates (center_x, center_y) of the rectangle using the height h and width w of the rectangle and the coordinates of any of the vertices, and obtains the image center coordinates of the floating dock pontoon position.
[0034] In this step, the image coordinate system is as follows: Figure 2 As shown, the barge is enclosed by a rectangle in the video image. (center_x, center_y) represents the horizontal and vertical coordinates of the center point of the rectangle in the image, and width and height represent the width and height of the rectangle. If the coordinates of the top left vertex (x, y) are selected to calculate the values of center_x and center_y, center_x = x + 1 / 2 width, center_y = y + 1 / 2 height. Algorithmically speaking, the rectangle method requires less computation and the computer needs less time to process. The values of each coordinate can be obtained by using the number of pixels in the image.
[0035] Furthermore, since weather and other conditions can affect the clarity of images captured by the camera, which in turn affects the identification of the pontoon's location, the clarity of the camera at night and in rainy weather can meet the requirements of software recognition under conditions where the camera has night vision function and the dock streetlights are normally lit.
[0036] In foggy conditions, depending on the distance between the camera and the floating dock, video image acquisition is unaffected when visibility exceeds this distance. However, in foggy conditions where visibility is below this distance, the video images captured by the camera are unusable. If video is temporarily unavailable in foggy conditions—meaning the floating dock's pontoon location cannot be identified in the side video image—the real-time tide level is predicted using historical measured tide data. Specifically, the steps for predicting the real-time tide level using historical measured tide data are as follows: A tidal harmonic analysis function is constructed, and the constants of the tidal harmonic analysis function are calculated using historical measured tide level data; Obtain the current time and calculate the astronomical tide height at the corresponding time based on the tidal harmonic analysis function; The astronomical tide height at the corresponding time is corrected for datum and water level based on recent measured tide data to obtain the current tide level.
[0037] In this step, based on hourly tide data from the observed sea area for at least one consecutive month (the more data collected, the better), tidal harmonic analysis is performed to calculate the constant of the tidal harmonic function. The astronomical tide height at the corresponding time is predicted based on the tidal harmonic function, and then corrections for datum and water level changes are made based on recent measured tide data. Tidal harmonic analysis, also called harmonic analysis, is a specific application of Fourier analysis. Fourier analysis refers to a set of mathematical methods that expand any periodic function into a Fourier series and express any non-periodic function as a Fourier integral. Fourier analysis is existing technology and will not be elaborated upon here.
[0038] S2 establishes a functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; S201 constructs a linear correlation formula through regression analysis: t=k*y+b, where t is the tide level and y is the ordinate of the image center of the floating dock at the same moment as t. S202 used RTK equipment to perform multiple elevation measurements at different times on the floating dock, obtaining several tidal data t. S203 fits the function relationship parameters by using several t-level data points t at the same time and the ordinate of the image center of the floating dock pontoon position.
[0039] In this step, such as Figure 3 As shown, the vertical coordinate center_y of the floating dock in the video image has a strong linear correlation with the tide level t. Regression analysis yields the linear function formula: t = k * center_y + b. Multiple elevation measurements were performed at different times on the floating dock using RTK equipment to obtain a series of tide level data t corresponding to the video images. The elevation measurements needed to cover the vicinity of high tide, mid-tide, and low tide. Based on practical application tests, the tide level accuracy can reach the pixel level. Figure 2 One pixel in the image represents approximately 1 cm in reality, and the accuracy of tide level observation is 1 cm.
[0040] S3 calculates the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship.
[0041] After calculating the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship, the following steps are performed: If S301 detects that there are people or goods on the floating dock in the side video image of the floating dock, it corrects the real-time tide level by changing the draft.
[0042] S3011 identifies the current draft h1 of the floating dock pontoon in the side video image of the floating dock; S3012 calculates the current draft change value Δh of the floating dock pontoon based on the current draft h1 of the floating dock pontoon and the draft h0 of the floating dock pontoon when there are no people or cargo. S3013 corrects the tide level data using the change value Δh of the draft of the floating dock pontoon.
[0043] In this step, the presence of people or cargo on the floating dock increases the weight of the pontoon and causes it to sink, affecting the accuracy of the tide level readings. The change in draft, Δh = h1 - h0, is calculated, where h1 is the draft at time t, and h0 is the draft when the pontoon is empty or carrying cargo. The measured tide level data is corrected using a linear function formula: t = k*center_y + b + Δh, to reduce the error in tide level observations.
[0044] like Figure 4 As shown, the average error between the predicted tide level and the measured tide level at the corresponding time obtained by the method in this embodiment is 1 cm.
[0045] This invention provides a system for observing tide levels using video images from a floating dock, comprising: The identification module is used to acquire real-time video images of the side of the floating dock, and to identify and mark the position of the floating dock pontoon in the video images of the side of the floating dock; The function module is used to establish the functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; The calculation module is used to calculate the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship.
[0046] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0047] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0048] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0049] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0050] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0051] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.
[0052] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
[0053] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0054] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms should not be construed as necessarily referring to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
Claims
1. A method for observing tide levels using video images from a floating dock, characterized in that, include: Acquire real-time side video images of the floating dock, and identify and mark the positions of the floating dock pontoons in the side video images, including: The location of the floating dock pontoon in the side video image of the floating dock is identified and marked by a pre-trained image recognition model; The image center coordinates of the floating dock's position are calculated from the floating dock's pontoon position in the side video image, including: An image coordinate system is constructed with the corner of the frame of the video image on the side of the floating dock as the origin; The location of the floating dock pontoon is marked with a rectangle in the side video image of the floating dock; The height h and width w of the rectangle, as well as the coordinates of each vertex, are calculated based on the pixel count of the video image on the side of the floating dock. The center coordinates (center_x, center_y) of the rectangle are calculated using the height h and width w of the rectangle and the coordinates of any of the vertices, thus obtaining the image center coordinates of the floating dock pontoon's location. Establish a functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; The real-time tide level is calculated based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship. If people or goods are detected on the floating dock in the video image of the side of the floating dock, the real-time tide level is corrected based on changes in draft, including: Identify the current draft h1 of the floating dock pontoon in the side video image of the floating dock; The change in the current draft of the floating dock pontoon is calculated based on the current draft h1 of the floating dock pontoon and the draft h0 of the floating dock pontoon when it is unmanned and without cargo. The tide level data is corrected by the change in draft Δh of the floating dock pontoon.
2. The method for observing tide levels using video images from a floating dock according to claim 1, characterized in that, The step of identifying the position of the floating dock pontoon in the side video image of the floating dock using a pre-trained image recognition model includes: The image recognition model identifies the location of the floating dock pontoon based on the shape and color features of the pontoon in the side video image of the floating dock.
3. The method for observing tide levels using video images from a floating dock according to claim 1, characterized in that, The functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the corresponding tide level includes: A linear correlation formula is constructed using regression analysis: t=k y+b, where t is the tide level and y is the ordinate of the image center of the floating dock at the same moment as t; Multiple elevation measurements were performed at different times using RTK equipment on the floating dock to obtain several tidal level data t. The function relationship parameters are fitted using several simultaneous tide level data t and the ordinate y of the image center of the floating dock / pontoon position.
4. The method for observing tide levels using video images from a floating dock according to claim 1, characterized in that, After acquiring real-time side video images of the floating dock, identifying and marking the positions of the floating dock pontoons in the side video images, the following steps are performed: If the location of the floating dock pontoon cannot be identified in the side video image of the floating dock, the real-time tide level is predicted by using historical measured tide level data.
5. The method for observing tide levels using video images from a floating dock according to claim 4, characterized in that, The method of predicting real-time tide levels using historical measured tide level data includes: A tidal harmonic analysis function is constructed, and the constants of the tidal harmonic analysis function are calculated using historical measured tide level data; Obtain the current time and calculate the astronomical tide height at the corresponding time based on the tidal harmonic analysis function; The astronomical tide height at the corresponding time is corrected for datum and water level based on recent measured tide data to obtain the current tide level.
6. A system for observing tide levels using video images from a floating dock, characterized in that, The method for observing tide levels via video images from a floating dock according to any one of claims 1-5 includes: The identification module is used to acquire real-time video images of the side of the floating dock, and to identify and mark the position of the floating dock pontoon in the video images of the side of the floating dock; The function module is used to establish the functional relationship between the position of the floating dock pontoon in the side video image of the floating dock and the tide level at the corresponding time; The calculation module is used to calculate the real-time tide level based on the position of the floating dock pontoon in the side video image of the floating dock and its functional relationship.
