Water level monitoring method and device based on front-end camera and computer equipment
By introducing intelligent water ruler reading cameras and image recognition technology into the water level monitoring system, water level data is collected and analyzed in real time, and the problems of unintuitive, untimely and passive response of traditional water level monitoring methods are solved, and efficient and safe water level monitoring and flood warning are achieved.
Patent Information
- Application Number
- CN202411704628.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-25
AI Technical Summary
Traditional water level monitoring methods have problems such as unintuitive, timely and passive response, and it is difficult to identify water level changes in real time, affecting emergency response capabilities.
The water level monitoring method based on the front-end camera is adopted, and the camera collects water surface and water ruler images through the intelligent water ruler, and the water level scale information is determined using image recognition technology, the water level height is calculated, and data analysis and alarm signal generation are carried out through the central server.
It realizes the automation and real-time implementation of water level monitoring, improves the accuracy and efficiency of monitoring, enhances the scientificity and safety of water resource management, reduces the cost and risks of manual monitoring, and provides a flood warning mechanism.
Smart Images

Figure CN119509646A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water level monitoring, and in particular to a water level monitoring method, device, computer equipment, computer-readable storage medium and computer program product based on a front-end camera. Background Art
[0002] In the power system, reservoir water level monitoring is a key link to ensure water supply security and flood control management. Traditional water level measurement methods mainly rely on float-type water level gauges or pressure sensors, which usually transmit data through analog signals.
[0003] However, the above methods have problems such as being unintuitive, untimely and passive. Specifically, traditional equipment can only provide numerical water level data. When managers receive these data, it is difficult to form a comprehensive understanding of the actual situation on site and cannot effectively identify shallow changes, such as rapidly rising or falling water levels. Most data transmissions rely on fixed-cycle collection, resulting in insufficient real-time performance. In extreme weather or emergency situations, delayed data updates may delay decision-making and affect emergency response capabilities. Traditional monitoring methods are usually scheduled automatic collection and lack active detection capabilities. When abnormal water level changes occur, managers can only passively learn about them when the data is updated. There is a lack of real-time warning mechanisms and the ability to achieve early warning and active monitoring.
[0004] It can be seen that the current water level monitoring method is not intuitive, timely and passive in its response to water level. When managers receive water accumulation monitoring data, they cannot intuitively understand the on-site situation, resulting in low effectiveness of water level monitoring for reservoirs. Summary of the invention
[0005] Based on this, it is necessary to provide a water level monitoring method, device, computer equipment, computer-readable storage medium and computer program product based on a front-end camera that can improve the effectiveness of reservoir water level monitoring in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides a water level monitoring method based on a front-end camera. The method comprises:
[0007] Acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0008] Based on the recognition of the water surface image by the intelligent water gauge reading camera, the position of the water level line is determined; and based on the recognition of the water gauge image by the intelligent water gauge reading camera, the scale information of the target water gauge is obtained, and the water level information corresponding to the monitoring point of the reservoir at the current time is calculated according to the corresponding position of the position of the water level line in the scale information;
[0009] Based on the transmission equipment, the water level information of each monitoring point of the reservoir and the sensor data are transmitted to the central server as data to be transmitted;
[0010] The water level information and the sensor data are statistically analyzed based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0011] In one embodiment, the method further comprises:
[0012] Based on the intelligent water gauge reading camera, the water surface image and the water gauge image are identified to obtain the position of the splicing line of each target water gauge;
[0013] Calculate the altitude information of each monitoring point of the reservoir according to the basic altitude of the splicing line position and the water level information of the target water gauge;
[0014] The altitude information is superimposed on the image information of each reservoir monitoring point on the monitoring display device to display the superimposed image information.
[0015] In one embodiment, the step of obtaining the scale information of the target water gauge by recognizing the water gauge image based on the intelligent water gauge reading camera includes:
[0016] In response to a confirmation operation of the target water gauge input by a user terminal, determining the target water gauge to be photographed from at least two water gauges;
[0017] Based on the position of the target water gauge and preset recognition pixel requirement information, the working parameters of the smart water gauge reading camera are adjusted, and the scale information of the target water gauge is obtained by recognition based on the adjusted smart water gauge reading camera.
[0018] In one embodiment, the method further comprises:
[0019] In response to a confirmation operation of a user on an alarm parameter, determining parameter values of each of the alarm parameters corresponding to the confirmation operation;
[0020] The alarm signal is generated according to the alarm standard indicated in the parameter value of each of the alarm parameters.
[0021] In one embodiment, the sensor data includes water volume information, and the method further includes:
[0022] Based on the water level meter in the front-end device, the water level information measured by the water level meter is detected to verify the water level information measured by the smart water gauge reading camera to obtain the verified water level information;
[0023] Based on the rain gauge in the front-end device, the rainfall information of the preset time is detected;
[0024] The water volume information of the target reservoir is calculated based on the rainfall information and the verified water level information.
[0025] In one embodiment, the method further comprises:
[0026] Based on the wind and wave detection device in the front-end device, the wind and wave parameters corresponding to the current time are detected;
[0027] The water surface image and the water gauge image are optimized according to the wind and wave parameters, so as to identify the optimized water surface image and the water gauge image.
[0028] In a second aspect, the present application also provides a water level monitoring device based on a front-end camera. The device comprises:
[0029] A sensor data acquisition module is used to acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0030] A water level information determination module, used to determine the position of the water level line based on the recognition of the water surface image by the intelligent water gauge reading camera, and to obtain the scale information of the target water gauge based on the recognition of the water gauge image by the intelligent water gauge reading camera, and to calculate the water level information corresponding to the monitoring point of the reservoir at the current time according to the corresponding position of the position of the water level line in the scale information;
[0031] A data transmission module, used to transmit the water level information of each reservoir monitoring point and the sensor data as data to be transmitted to a central server based on a transmission device;
[0032] The alarm signal generating module is used to perform statistical analysis on the water level information and the sensor data based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0033] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0034] Acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0035] Based on the recognition of the water surface image by the intelligent water gauge reading camera, the position of the water level line is determined; and based on the recognition of the water gauge image by the intelligent water gauge reading camera, the scale information of the target water gauge is obtained, and the water level information corresponding to the monitoring point of the reservoir at the current time is calculated according to the corresponding position of the position of the water level line in the scale information;
[0036] Based on the transmission equipment, the water level information of each monitoring point of the reservoir and the sensor data are transmitted to the central server as data to be transmitted;
[0037] The water level information and the sensor data are statistically analyzed based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0039] Acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0040] Based on the recognition of the water surface image by the intelligent water gauge reading camera, the position of the water level line is determined; and based on the recognition of the water gauge image by the intelligent water gauge reading camera, the scale information of the target water gauge is obtained, and the water level information corresponding to the monitoring point of the reservoir at the current time is calculated according to the corresponding position of the position of the water level line in the scale information;
[0041] Based on the transmission equipment, the water level information of each monitoring point of the reservoir and the sensor data are transmitted to the central server as data to be transmitted;
[0042] The water level information and the sensor data are statistically analyzed based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0043] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] Acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0045] Based on the recognition of the water surface image by the intelligent water gauge reading camera, the position of the water level line is determined; and based on the recognition of the water gauge image by the intelligent water gauge reading camera, the scale information of the target water gauge is obtained, and the water level information corresponding to the monitoring point of the reservoir at the current time is calculated according to the corresponding position of the position of the water level line in the scale information;
[0046] Based on the transmission equipment, the water level information of each monitoring point of the reservoir and the sensor data are transmitted to the central server as data to be transmitted;
[0047] The water level information and the sensor data are statistically analyzed based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0048] The above-mentioned water level monitoring method, device, computer equipment, storage medium and computer program product based on the front-end camera use the intelligent water gauge to read the sensor data of the reservoir monitoring point collected by the camera, including the water surface image and the water gauge image. Through the image recognition technology, the system determines the position of the water level line and extracts the scale information of the water gauge, thereby calculating the current water level height. The water level information and sensor data of each monitoring point are sent to the central server through the transmission equipment for centralized management and analysis. The central server performs statistical analysis on the data, generates data analysis results, and issues an alarm signal when the water level index reaches the preset warning threshold; the automation and real-time of water level monitoring are realized, the accuracy and efficiency of monitoring are improved, and by obtaining water level information in a timely manner, the management personnel can quickly respond to potential water level abnormalities, enhance the scientificity and safety of water resources management, and reduce the cost and risk of manual monitoring. At the same time, the system's alarm mechanism helps to prevent natural disasters such as floods, ensure the safe operation of the reservoir, and improve the effectiveness of the reservoir's water level monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] FIG1 is a diagram showing an application environment of a water level monitoring method based on a front-end camera in one embodiment;
[0051] Figure 2 A schematic diagram of a flow chart of a water level monitoring method based on a front-end camera in one embodiment;
[0052] Figure 3 A schematic diagram of a flow chart of a water level monitoring method based on a front-end camera in another embodiment;
[0053] Figure 4 A functional schematic diagram of a water gauge reading camera in a water level monitoring method based on a front-end camera in one embodiment;
[0054] Figure 5 is a structural block diagram of a water level monitoring device based on a front-end camera in one embodiment;
[0055] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0058] In one embodiment, as shown in FIG1 , a water level monitoring method based on a front-end camera is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0059] S201, obtaining sensor data collected by a front-end device.
[0060] Among them, the front-end equipment includes an intelligent water gauge reading camera, the sensor data includes the original water level image, the original water level image includes the water surface image and water gauge image corresponding to each reservoir monitoring point of the target reservoir, and the target reservoir is the reservoir to be monitored for water level.
[0061] For example, in a water level monitoring system, sensor data mainly includes water level height and rate of change, which are used to monitor the water surface status in real time. In addition, water quality data (such as turbidity, pH value and dissolved oxygen) provide information on water body conditions, and meteorological data (including temperature, humidity and precipitation) help understand environmental impacts. Flow rate and water temperature measurements can assess water flow conditions, while real-time images from smart water gauges or cameras enable visual monitoring. Finally, GPS location data supports spatial analysis of the monitoring area. Combining these sensor data can provide a comprehensive understanding of the status of the reservoir and its surrounding environment, thereby improving water resource management and emergency response capabilities.
[0062] S202, based on the intelligent water gauge reading camera, the water surface image is recognized to determine the position of the water level line, and based on the intelligent water gauge reading camera, the water gauge image is recognized to obtain the scale information of the target water gauge, and according to the corresponding position of the water level line in the scale information, the water level information corresponding to the reservoir monitoring point at the current time is calculated.
[0063] For example, the intelligent water gauge reading camera captures the water surface and water gauge images and uses computer vision technology to identify the water surface line and water gauge scale. First, the image is preprocessed to improve the quality, then the boundary between the water surface and the surrounding environment is extracted to determine the water level position. Then, the scale information of the water gauge is identified, and the corresponding scale of the water level line on the water gauge is mapped to calculate the current water level height. Finally, the real-time water level information is transmitted to the monitoring platform to provide accurate data support for water resource management.
[0064] S203, based on the transmission equipment, the water level information of each reservoir monitoring point and the sensor data are transmitted as data to be transmitted to the central server.
[0065] The transmission part collects the front-end sensor data through the data transmission terminal network port / IO port / RS485 / RS232 and other interfaces. The transmission terminal automatically conducts patrols and collects data at the set time, and reports the data to the safety monitoring center.
[0066] Among them, the central server is also called the central part. The server cloud computing detects the water volume, video images or pictures and other digital information of the water conservancy for statistical analysis.
[0067] S204, performing statistical analysis on the water level information and sensor data based on the central server to obtain data analysis results.
[0068] The data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning threshold.
[0069] For example, the system detects water level changes (such as crisis water level, warning water level, guaranteed water level, etc.) in real time, and automatically calculates the warning value. When a certain warning value is reached, an alarm signal is immediately generated to automatically trigger the alarm light, alarm sound, port output peripherals and other related alarms and share them. The monitoring center is equipped with an LCD splicing large screen system, and various online monitoring data, images, videos and other information can be intuitively displayed on the large screen. Monitoring personnel or relevant competent departments can understand the operation of the reservoir intuitively and conveniently.
[0070] In the above-mentioned water level monitoring method based on the front-end camera, the intelligent water gauge reading camera is used to collect sensor data of the reservoir monitoring point, including the water surface image and the water gauge image. Through the image recognition technology, the system determines the position of the water level line and extracts the scale information of the water gauge, thereby calculating the current water level height. The water level information and sensor data of each monitoring point are sent to the central server through the transmission equipment for centralized management and analysis. The central server performs statistical analysis on the data, generates data analysis results, and issues an alarm signal when the water level index reaches the preset warning threshold; the automation and real-time of water level monitoring are realized, the accuracy and efficiency of monitoring are improved, and by obtaining water level information in a timely manner, management personnel can quickly respond to potential water level abnormalities, enhance the scientificity and safety of water resources management, and reduce the cost and risk of manual monitoring. At the same time, the system's alarm mechanism helps to prevent natural disasters such as floods, ensure the safe operation of reservoirs, and improve the effectiveness of reservoir water level monitoring.
[0071] In one embodiment, the method also includes: identifying the water surface image and the water gauge image based on the intelligent water gauge reading camera to obtain the stitching line position of each target water gauge; calculating the altitude information of each reservoir monitoring point based on the basic altitude of the stitching line position and the water level information of the target water gauge; superimposing the altitude information with the image information of each reservoir monitoring point on the monitoring display device to display the superimposed image information.
[0072] The superposition is achieved by mapping the altitude information onto the image of the monitoring display device to synthesize the display result.
[0073] For example, the stitching line is used to mark the actual water level value at the splicing point of the water gauge. If the user wants to overlay the altitude on the OSD, the basic value must be set and the stitching line must be drawn on the screen. Click Draw stitching line and draw the splicing position of the water gauge. If there is no splicing of the water gauge, just set it below the water surface. If there is splicing of the water gauge, draw it at the junction of the two rulers.
[0074] In this embodiment, the intelligent water gauge reading camera is used to identify the water surface and water gauge image, calculate the altitude of the reservoir monitoring point, and superimpose it with the image information to achieve visual monitoring. This method improves the intuitiveness of water level monitoring, helps managers quickly obtain the actual situation of the reservoir, enhances the ability to respond to emergencies, and improves the efficiency and safety of water resources management.
[0075] In one embodiment, the scale information of the target water gauge is obtained by identifying the water gauge image based on the smart water gauge reading camera, including: in response to the confirmation operation of the target water gauge input by the user terminal, determining the target water gauge to be photographed from at least two water gauges; based on the position of the target water gauge and preset recognition pixel requirement information, adjusting the working parameters of the smart water gauge reading camera, and obtaining the scale information of the target water gauge by identifying based on the adjusted smart water gauge reading camera.
[0076] Among them, the target water level is the water level where the water surface line is located.
[0077] For example, the detection area refers to detecting only the water level in the detection area for a multi-water level scene. Click the detection area and select the area to be detected.
[0078] In this embodiment, by responding to the confirmation operation of the user terminal, the target water gauge is determined from multiple water gauges, and the parameters of the intelligent water gauge reading camera are adjusted according to its position and recognition pixel requirements. Subsequently, the system recognizes the scale information of the target water gauge to ensure accurate acquisition of water level data. This method improves the accuracy and flexibility of water level monitoring and enables users to select a specific water gauge for detection. Its effectiveness lies in reducing interference, optimizing the recognition process, improving the reliability and practicality of data acquisition, and facilitating accurate decision-making in water resource management.
[0079] In one embodiment, the method further includes: in response to a user's confirmation operation on the alarm parameter, determining parameter values of each alarm parameter corresponding to the confirmation operation; and generating an alarm signal according to an alarm standard indicated in the parameter values of each alarm parameter.
[0080] Among them, the user's confirmation operation on the alarm parameters can be a confirmation operation input by the user after adjusting the parameters, and the various alarm parameters can be the highest alarm water level, the lowest alarm water level, the water volume alarm threshold, the alarm method, the shooting method, etc.
[0081] In this embodiment, by responding to the user's confirmation operation on the alarm parameters, the values of various alarm parameters are determined, including the highest and lowest alarm water levels, water volume thresholds, alarm methods, etc. The system generates corresponding alarm signals based on these parameters to achieve timely feedback on the monitoring status. This method is highly flexible and allows users to adjust the alarm standards according to actual needs, improving the adaptability and response speed of the system. An effective alarm mechanism can help managers quickly identify potential risks and enhance the safety and efficiency of water resources management.
[0082] In one embodiment, the sensor data includes water volume information, and the method further includes: based on the water level meter in the front-end device, detecting and obtaining the water level information measured by the water level meter to verify the water level information measured by the smart water gauge reading camera to obtain the verified water level information; based on the rainfall monitoring meter in the front-end device, detecting and obtaining the rainfall information of a preset time; and calculating the water volume information of the target reservoir based on the rainfall information and the verified water level information.
[0083] Among them, the water level meter is a sensor used to measure the water level height of a water body in real time, providing accurate water level data; the rain gauge is a device used to measure rainfall, recording the amount of rainwater accumulation to assess precipitation conditions.
[0084] Among them, the calculation method of water volume information is based on the verified water level information and rainfall, and the water volume of the target reservoir is obtained by combining the area and water level changes through the reservoir capacity formula or volume calculation formula.
[0085] For example, information is collected through water level gauges, rain gauges, and industrial cameras. The water level gauge monitors the water depth, the camera can take photos of the water surface and upload them, or perform video monitoring, and the rain gauge monitors the rainfall. In seasons with frequent heavy rains, monitoring of water level and rainfall, as well as auxiliary monitoring by cameras, can provide a reliable assessment of the reservoir water level.
[0086] In this embodiment, the data of the water level meter and the rainfall monitoring meter are integrated through the front-end equipment to realize the verification of water level and calculation of water volume. This method ensures the accuracy of water resource management, helps decision makers understand the actual situation of the reservoir, optimizes water resource scheduling and flood control management, and significantly improves the efficiency and safety of the water conservancy system.
[0087] In one embodiment, the method further comprises:
[0088] Based on the wind and wave detection device in the front-end device, the wind and wave parameters corresponding to the current time are detected;
[0089] The water surface image and the water gauge image are optimized according to the wind and wave parameters, so as to perform recognition on the optimized water surface image and the water gauge image.
[0090] Among them, wind and wave detection equipment includes wave sensors, anemometers, wind vanes and weather stations, which jointly monitor data such as wind speed, wind direction, wave height and wave frequency on the water surface. Wind and wave parameters may include information such as wind speed, wave height, wave frequency and wind direction, which are used to evaluate wind and wave conditions on the water surface.
[0091] For example, the intelligent algorithm is set at the front end to adjust and optimize the image according to the environment, with high reading accuracy and strong environmental adaptability. Multiple video frames are used for recognition, and the average algorithm is used to eliminate the influence of wind and waves.
[0092] In this embodiment, the wind and wave detection equipment at the front end is used to obtain real-time wind and wave parameters, and the water surface image and water gauge image are optimized accordingly to improve the recognition accuracy. The image is adjusted at the front end through an intelligent algorithm, combined with the average algorithm of multiple video frames, to effectively eliminate the impact of wind and waves on recognition. This method not only improves the accuracy and environmental adaptability of image processing, but also ensures the reliability of water level monitoring, enhances the system's ability to respond to complex environments, and provides more accurate data support for water resource management and disaster prevention and mitigation.
[0093] In another embodiment, Figure 3 As shown, a water level monitoring method based on a front-end camera is provided, comprising the following steps:
[0094] S301, identifying the water surface image and the water gauge image based on the intelligent water gauge reading camera to obtain the stitching line position of each target water gauge.
[0095] S302, calculating the altitude information of each reservoir monitoring point according to the basic altitude of the splicing line position and the water level information of the target water gauge.
[0096] S303: superimpose the altitude information with the image information of each reservoir monitoring point on the monitoring display device to display the superimposed image information.
[0097] S304: In response to a confirmation operation of the user on the alarm parameters, parameter values of various alarm parameters corresponding to the confirmation operation are determined.
[0098] S305: Generate an alarm signal according to the alarm standard indicated in the parameter value of each alarm parameter.
[0099] S306: Based on the wind and wave detection device in the front-end device, the wind and wave parameters corresponding to the current time are detected.
[0100] S307, optimizing the water surface image and the water gauge image according to the wind and wave parameters, so as to perform recognition on the optimized water surface image and the water gauge image.
[0101] It should be noted that the specific limitations of the above steps can be found in the above specific limitations of a water level monitoring method based on a front-end camera, which will not be repeated here.
[0102] The traditional way of obtaining water levels is not intuitive, timely and passive. When managers receive waterlogging monitoring data, they cannot intuitively understand the on-site situation.
[0103] Based on this, the embodiment of the present application provides a water level monitoring method based on a front-end camera. To facilitate the understanding of those skilled in the art, Figure 4A water level monitoring method based on a front-end camera is provided. The following is a functional diagram of a water gauge reading camera. Figure 4 , a water level monitoring method based on a front-end camera is described in detail with a specific embodiment. It is worth noting that the following description is only an exemplary description and not a specific limitation of the application.
[0104] The water level monitoring method based on the front-end camera provided in the present application utilizes the intelligent water gauge reading camera to realize remote visual monitoring and automatic water level reading. When the water level reaches the set threshold, a real-time alarm is issued to help the urban management and flood control emergency departments to grasp the waterlogging situation of the entire city in real time and conduct drainage scheduling in a timely manner.
[0105] At the same time, for outdoor reservoirs, water level safety is of paramount importance. Each reservoir needs to concentrate on the water level conditions of different reservoirs, etc. The water conservancy department needs to conduct comprehensive regulation and management based on relevant data.
[0106] The water level reading camera has a built-in intelligent algorithm, strong environmental adaptability, 24-hour monitoring, accurate reading of water levels, no fear of wind and waves, and active early warning, and can be applied to various flood prevention scenarios.
[0107] A water level warning monitoring camera (water gauge reading camera) will have a built-in water gauge reading intelligent algorithm, automatically read the standard water level gauge, obtain water level data, and have a detection accuracy of ±2cm. In addition, the water level monitoring needs to be carried out at any time, so the camera has a good night vision effect, and the water level line can be clearly seen even at night. This camera is also suitable for dark scenes at night, with an infrared night vision of 150 meters.
[0108] In addition, the water level monitoring method based on the front-end camera provided in the present application can also be connected to an external rain gauge to form a water and rainfall telemetry station. The real-time water level and rainfall data can be directly superimposed on the video screen for more intuitive viewing. The spherical camera's automatic rotation and cruising characteristics are utilized to support automatic water level recognition of low-pile water gauges, and support real-time water level and rainfall data reporting for up to 20 scenes in accordance with the requirements of the "SL651-2014 Hydrological Monitoring Data Communication Protocol". It supports intelligent multi-purpose use: supports intelligent face detection, tracking, and capture, supports regional intrusion detection and other detection functions, and supports vehicle detection (license plate / vehicle model / body color / license plate color recognition). The resolution and bit rate can be intelligently adjusted through the NPQ protocol according to the network status to ensure smooth preview of the third bit stream.
[0109] In terms of water volume monitoring, information is collected through water level meters, rain gauges, and industrial cameras. The water level meter monitors the water depth, the camera can take photos of the water surface and upload them, and can also perform video monitoring, and the rain gauge monitors the rainfall. In seasons with frequent heavy rains, monitoring of water levels and rainfall, as well as auxiliary monitoring with cameras, can provide a reliable assessment of the reservoir water level.
[0110] The water level monitoring method based on the front-end camera provided in this application has the following characteristics:
[0111] (1) The types of water gauges that can be read support reading of standard water gauges, pure blue fonts on a white background, and pure red fonts on a white background; (2) The external wind and waves have limited impact on the reading accuracy. The intelligent algorithm is set at the front end to adjust and optimize the image according to the environment, with high reading accuracy and strong environmental adaptability. Multiple video frames are used for recognition, and the average algorithm is used to eliminate the impact of wind and waves; (3) Connecting with the central platform. A customized platform is used, which has the functions of receiving, displaying, querying, statistics, and trend curves of water level and rainfall data; (4) The main application areas of water gauge reading cameras are not only for reading water gauges, but also for routine monitoring. While taking into account water level monitoring, the camera can also be used for safety protection around water areas. It should be noted that there are at least two ways to determine the water level, such as Figure 4 As shown, the water level reading camera can be used for remote viewing and automatic monitoring using an electronic water level meter.
[0112] In terms of technical deployment, the water level monitoring method based on the front-end camera provided in this application provides a wireless monitoring solution for reservoir safety, which mainly consists of three parts: the front-end part, the transmission part, and the center part.
[0113] Among them, the front end is mainly composed of cameras and the entire front end lightning protection, mounting brackets and infrastructure.
[0114] The transmission part collects the front-end sensor data through the data transmission terminal network port / IO port / RS485 / RS232 and other interfaces. The transmission terminal automatically conducts patrols and collects data at the set time, and reports the data to the safety monitoring center. The data acquisition system collects and reports the monitoring data in each monitoring station, and then processes and analyzes the data at the data processing workstation and data analysis workstation, and stores the original data and processing results in the main database and backup database.
[0115] In the center, the server cloud computing detects the water volume, video images or pictures and other digital information of the water conservancy for statistical analysis. The system monitors the changes in water levels (such as crisis water level, warning water level, guaranteed water level, etc.) in real time and automatically calculates the warning value. When it is found that a certain warning value has been reached, an alarm signal is immediately generated to automatically trigger the warning light, alarm sound, port output peripherals and other related alarms and share them. There is an LCD splicing large screen system in the monitoring center, and various online monitoring data, images, videos and other information can be intuitively displayed on the large screen. Monitoring personnel or relevant competent departments can understand the operation of the reservoir intuitively and conveniently.
[0116] In terms of water level detection, the water level monitoring method based on the front-end camera provided in this application has the following characteristics:
[0117] (1) Enable water level detection: Select water level detection as the rule type.
[0118] (2) Drawing of stitching lines: stitching lines are used to mark the actual water level value at the splicing point of the water gauge. If the user wants to overlay the altitude on the OSD, the basic value must be set and the stitching line must be drawn on the screen (the stitching line is generally drawn at the junction of the two rulers. If there is only one ruler, it can be set below the water surface). Click to draw the stitching line and draw the splicing position of the water gauge. If there is no splicing of the water gauge, just set it below the water surface. If there is splicing of the water gauge, it is drawn at the junction of the two rulers.
[0119] (3) Detection area drawing: The detection area refers to the scene with multiple water gauges, and only the water gauge within the detection area is detected. Click the detection area and select the area to be detected.
[0120] (4) Calibration: Since the water level gauge has certain recognition pixel requirements, in order to help customers quickly know how much area of the water level gauge in the picture is most suitable for recognition, select the "Calibration" function, a red and yellow frame will appear, turn the pan and tilt, and move the water level gauge between the red and yellow frames.
[0121] (5) Parameter settings, including:
[0122] High water level alarm: When the actual water level is higher than the set water level range, an alarm will be triggered, with a value range of 0-299.99 meters, where the high alarm water level is higher than the low alarm water level; Low water level alarm: When the actual water level is lower than the set water level range, an alarm will be triggered, with a value range of 0-299.99 meters, where the high alarm water level is higher than the low alarm water level; Splicing line water level value: The actual water level value at the splicing line; Alarm upload interval: The alarm upload interval time can be set from 1 to 1440 minutes; Real-time data: If checked, the data will be uploaded to the background in real time; Data upload interval: The real-time data upload interval time can be set from 1 to 1440 minutes; Alarm output: If checked, the alarm will be output through channel 1 / 2, and the alarm delay can be set from 10 to 300 seconds; Capture setting: You can check the panoramic and detail capture respectively, and capture when the alarm is triggered.
[0123] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0124] Based on the same inventive concept, the embodiment of the present application also provides a water level monitoring device based on a front-end camera for implementing the water level monitoring method based on a front-end camera involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more water level monitoring devices based on a front-end camera provided below can refer to the limitations of the water level monitoring method based on a front-end camera above, and will not be repeated here.
[0125] In one embodiment, Figure 5 As shown, a water level monitoring device based on a front-end camera is provided, comprising: a sensor data acquisition module 501, a water level information determination module 502, a data transmission module 503, and an alarm signal generation module 504, wherein:
[0126] The sensor data acquisition module 501 acquires the sensor data collected by the front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of the target reservoir, and the target reservoir is a reservoir to be monitored for water level;
[0127] The water level information determination module 502 is used to determine the position of the water level line based on the recognition of the water surface image by the intelligent water gauge reading camera, and to obtain the scale information of the target water gauge based on the recognition of the water gauge image by the intelligent water gauge reading camera, and to calculate the water level information corresponding to the reservoir monitoring point at the current time according to the corresponding position of the water level line in the scale information;
[0128] The data transmission module 503 is used to transmit the water level information of each reservoir monitoring point and the sensor data as data to be transmitted to the central server based on the transmission equipment;
[0129] The alarm signal generating module 504 is used to perform statistical analysis on the water level information and sensor data based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
[0130] In one embodiment, the device is used to: identify the water surface image and the water gauge image based on the intelligent water gauge reading camera to obtain the stitching line position of each target water gauge; calculate the altitude information of each reservoir monitoring point based on the basic altitude of the stitching line position and the water level information of the target water gauge; superimpose the altitude information with the image information of each reservoir monitoring point on the monitoring display device to display the superimposed image information.
[0131] In one embodiment, the device is used to: determine the target water gauge to be photographed from at least two water gauges in response to a confirmation operation of the target water gauge input by a user terminal; adjust the working parameters of the smart water gauge reading camera based on the position of the target water gauge and preset recognition pixel requirement information, and obtain the scale information of the target water gauge by identifying the smart water gauge reading camera based on the adjusted target water gauge.
[0132] In one embodiment, the device is used to: in response to a user's confirmation operation on an alarm parameter, determine parameter values of each alarm parameter corresponding to the confirmation operation; and generate an alarm signal according to an alarm standard indicated in the parameter values of each alarm parameter.
[0133] In one embodiment, the device is used to: based on the water level meter in the front-end device, detect and obtain the water level information measured by the water level meter to verify the water level information measured by the smart water gauge reading camera to obtain the verified water level information; based on the rainfall monitoring meter in the front-end device, detect and obtain the rainfall information of the preset time; according to the rainfall information and the verified water level information, calculate and obtain the water volume information of the target reservoir.
[0134] In one embodiment, the device is used to: detect and obtain wind and wave parameters corresponding to the current time based on the wind and wave detection device in the front-end device; optimize the water surface image and water level image according to the wind and wave parameters to identify the optimized water surface image and water level image.
[0135] Each module in the water level monitoring device based on the front-end camera can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0136] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a water level monitoring method based on a front-end camera is implemented.
[0137] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] In one embodiment, a computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in the above method embodiments are implemented.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0140] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A water level monitoring method based on a front-end camera, characterized in that: The method comprises: Acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level; Based on the recognition of the water surface image by the intelligent water gauge reading camera, the position of the water level line is determined; and based on the recognition of the water gauge image by the intelligent water gauge reading camera, the scale information of the target water gauge is obtained, and the water level information corresponding to the monitoring point of the reservoir at the current time is calculated according to the corresponding position of the position of the water level line in the scale information; Based on the transmission equipment, the water level information of each monitoring point of the reservoir and the sensor data are transmitted to the central server as data to be transmitted; The water level information and the sensor data are statistically analyzed based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
2. The method according to claim 1, characterized in that The method further comprises: Based on the intelligent water gauge reading camera, the water surface image and the water gauge image are identified to obtain the position of the splicing line of each target water gauge; Calculate the altitude information of each monitoring point of the reservoir according to the basic altitude of the splicing line position and the water level information of the target water gauge; The altitude information is superimposed on the image information of each reservoir monitoring point on the monitoring display device to display the superimposed image information.
3. The method according to claim 1, characterized in that: The step of obtaining the scale information of the target water gauge by recognizing the water gauge image based on the intelligent water gauge reading camera includes: In response to a confirmation operation of the target water gauge input by a user terminal, determining the target water gauge to be photographed from at least two water gauges; Based on the position of the target water gauge and preset recognition pixel requirement information, the working parameters of the smart water gauge reading camera are adjusted, and the scale information of the target water gauge is obtained by recognition based on the adjusted smart water gauge reading camera.
4. The method according to claim 1, characterized in that The method further comprises: In response to a confirmation operation of a user on an alarm parameter, determining parameter values of each of the alarm parameters corresponding to the confirmation operation; The alarm signal is generated according to the alarm standard indicated in the parameter value of each of the alarm parameters.
5. The method according to claim 1, characterized in that The sensor data includes water volume information, and the method further includes: Based on the water level meter in the front-end device, the water level information measured by the water level meter is detected to verify the water level information measured by the smart water gauge reading camera to obtain the verified water level information; Based on the rain gauge in the front-end device, the rainfall information of the preset time is detected; The water volume information of the target reservoir is calculated based on the rainfall information and the verified water level information.
6. The method according to claim 1, characterized in that The method further comprises: Based on the wind and wave detection device in the front-end device, the wind and wave parameters corresponding to the current time are detected; The water surface image and the water gauge image are optimized according to the wind and wave parameters, so as to identify the optimized water surface image and the water gauge image.
7. A water level monitoring device based on a front-end camera, characterized in that: The device comprises: A sensor data acquisition module is used to acquire sensor data collected by a front-end device; the front-end device includes an intelligent water gauge reading camera, and the sensor data includes an original water level image; the original water level image includes a water surface image and a water gauge image corresponding to each reservoir monitoring point of a target reservoir, and the target reservoir is a reservoir to be monitored for water level; A water level information determination module, used to determine the position of the water level line based on the recognition of the water surface image by the intelligent water gauge reading camera, and to obtain the scale information of the target water gauge based on the recognition of the water gauge image by the intelligent water gauge reading camera, and to calculate the water level information corresponding to the monitoring point of the reservoir at the current time according to the corresponding position of the position of the water level line in the scale information; A data transmission module, used to transmit the water level information of each reservoir monitoring point and the sensor data as data to be transmitted to a central server based on a transmission device; The alarm signal generating module is used to perform statistical analysis on the water level information and the sensor data based on the central server to obtain data analysis results; the data analysis results are used to generate an alarm signal when the statistical indicators meet the preset warning thresholds.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.