CN109815865B - Water level identification method and system based on virtual water gauge - Google Patents

Water level identification method and system based on virtual water gauge Download PDF

Info

Publication number
CN109815865B
CN109815865B CN201910027350.XA CN201910027350A CN109815865B CN 109815865 B CN109815865 B CN 109815865B CN 201910027350 A CN201910027350 A CN 201910027350A CN 109815865 B CN109815865 B CN 109815865B
Authority
CN
China
Prior art keywords
water
water area
image
gauge
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910027350.XA
Other languages
Chinese (zh)
Other versions
CN109815865A (en
Inventor
周威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunyu Beijing Technology Co ltd
Original Assignee
Richway Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Richway Beijing Technology Co ltd filed Critical Richway Beijing Technology Co ltd
Priority to CN201910027350.XA priority Critical patent/CN109815865B/en
Publication of CN109815865A publication Critical patent/CN109815865A/en
Application granted granted Critical
Publication of CN109815865B publication Critical patent/CN109815865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention provides a water level identification method and a water level identification system based on a virtual water gauge, wherein the method comprises the following steps: selecting two initial points of known actual positions in a natural water area and image coordinates of the two initial points in a water area image corresponding to the natural water area; identifying a water area region in the water area image through a water area segmentation model; according to the water area, the actual positions of the two initial points and the image coordinates, the water surface elevation of the current water surface of the natural water area is determined.

Description

Water level identification method and system based on virtual water gauge
Technical Field
The invention relates to the technical field of water level identification, in particular to a water level identification method and system based on a virtual water gauge.
Background
With the development of computer vision and information technology and the massive growth of multimedia data such as video and images. People can further make a basis for decision by mining information in videos and images. Before data mining, the huge video and image data are classified and managed effectively. Image identification is a basic work and has important significance and value in the aspects of information extraction, information identification and information retrieval. Deep learning (deep learning), particularly Convolutional Neural Network (CNN), has attracted increasing attention as a research focus in image processing and pattern recognition in recent years, and is a new field in machine learning research, which is motivated to establish and simulate a neural network for human brain to analyze and learn, and to simulate the mechanism of human brain to interpret data, such as images, sounds and texts. The water level image identification based on the virtual water gauge is an automatic identification product for water level images specific to the water industry and the energy industry, water level readings can be automatically identified through a convolutional neural network and a visual calibration and calibration technology, and the virtual water gauge with corresponding scales is drawn in the images. In some complex scenes, the current water level height can be calculated only by obtaining the heights of the water level at two moments respectively. The traditional manual observation counting is replaced, so that the working efficiency of a user is improved, and manual operation is reduced.
Existing virtual water gauge-based water image recognition generally includes the following two types: the scale recognition method based on hough transformation and harris detection is characterized in that after noise is removed by using median filtering and gray level equalization, the position of a scribed line is calculated by using morphological thinning and contour extraction technology. The identification method adopts a traditional image processing method, is good in performance only on a small number of images, and cannot be well adapted to the changes of various water gauge models (such as water gauge color, scale, size and the like) and complex environments (such as illumination, angle and the like); and secondly, a water scale recognition algorithm based on target detection is trained by adopting a deep learning and convolution neural network structure, the position information of the water scale in the image is extracted, and the water scale reading is obtained by calculating the proportion of the pixel height of the water scale to the scale information. The water scale recognition algorithm based on target detection has the disadvantages that the algorithm cannot be well adapted to complex environments with various scenes, when stains, spots and damages exist on the scale or the color of the scale is various, the edge frame and the scale of the water scale are not recognized accurately, the accuracy of the algorithm is obviously reduced, and meanwhile, the robustness to various natural scenes is poor.
Disclosure of Invention
An object of the present invention is to provide a water level identification method based on a virtual water gauge, which can improve the accuracy of water level identification by obtaining the current water level of a natural water area through water area identification. Another object of the present invention is to provide a water level recognition system based on a virtual water gauge. It is a further object of this invention to provide such a computer apparatus. It is a further object of this invention to provide such a readable medium.
In order to achieve the above object, the present invention discloses a water level identification method based on a virtual water gauge, including:
selecting two initial points of known actual positions in a natural water area and image coordinates of the two initial points in a water area image corresponding to the natural water area;
identifying a water area region in the water area image through a water area segmentation model;
and determining the water surface elevation of the current water surface of the natural water area according to the water area, the actual positions of the two initial points and the image coordinates.
Preferably, the two initial points are two points of the top elevation and the initial water surface elevation of the actual water gauge in the natural water area.
Preferably, the method further comprises the step of forming the water area segmentation model.
Preferably, the forming the water area segmentation model specifically includes:
forming an image water area segmentation network model;
and training a plurality of water area images through an image segmentation algorithm according to the network model to obtain the water area segmentation model.
Preferably, the determining the water surface elevation of the current water surface of the natural water area according to the actual position of the water area and the image coordinates of the two initial points in the natural water area and the water area image respectively specifically includes:
obtaining the water level position coordinates of the current water surface in the water area image according to the water area and the image coordinates of the two initial points in the water area image;
and obtaining the water surface elevation according to the actual positions of the two initial points in the natural water area, the image coordinates of the water area image and the water level position coordinates of the current water surface.
Preferably, the method further comprises the step of forming a virtual water gauge image on the water area image.
Preferably, the forming of the virtual water gauge image on the water area image specifically includes:
obtaining the pixel size of a virtual water gauge according to the water surface elevation and the water area;
obtaining the initial position and the end position of the virtual water gauge through inverse perspective transformation;
and forming the virtual water gauge according to the starting position, the ending position and the pixel size and displaying the water surface elevation.
The invention also discloses a water level identification system based on the virtual water gauge, which comprises the following components:
the initial parameter module is used for selecting two initial points of known actual positions in the natural water area;
the water area identification module is used for identifying a water area in the water area image corresponding to the natural water area through a water area segmentation model;
and the water level identification module is used for determining the water surface elevation of the current water surface of the natural water area according to the actual position of the water area and the two initial points in the natural water area and the image coordinates of the water area image.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method as described above.
The invention also discloses a computer-readable medium, having stored thereon a computer program,
which when executed by a processor implements the method as described above.
The method comprises the steps of selecting two initial points of known actual positions in the natural waters and image coordinates of the two initial points in a water area image, identifying the water area in the water area image through a water area segmentation model based on depth learning, and determining the water surface elevation of the current water surface through the water area and the image coordinates of the two initial points. The method and the device have the advantages that the water area in the water area image is identified, the actual water gauge does not need to be subjected to image identification, the method and the device are suitable for water level identification under different water gauge models and complex environments, when the water gauge in the water area image cannot be identified due to the fact that the actual water gauge has stains, spots, damage or various scale colors, accurate virtual water gauges can be generated, accuracy of water level identification is improved, the traditional human eye judgment reading is replaced, labor input is reduced, and working efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart showing a water level identification method based on a virtual water gauge according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an embodiment of a water level identification method based on a virtual water gauge according to the present invention;
FIG. 3 is a third flow chart of an embodiment of a water level identification method based on a virtual water gauge according to the present invention;
FIG. 4 is a fourth flowchart illustrating a water level identification method based on a virtual water gauge according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart illustrating a water level identification method based on a virtual water gauge according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating one embodiment of a water level recognition system based on a virtual water gauge according to the present invention;
FIG. 7 is a second block diagram of an embodiment of a water level identification system based on a virtual water gauge according to the present invention;
FIG. 8 is a third block diagram of a water level recognition system based on a virtual water gauge according to an embodiment of the present invention;
FIG. 9 shows a schematic block diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to one aspect of the invention, the embodiment discloses a water level identification method based on a virtual water gauge. As shown in fig. 1, in this embodiment, the water level identification method includes:
s100: two initial points from known actual positions in natural waters and image coordinates of the two initial points in a water area image corresponding to the natural water area are selected.
S200: and identifying a water area region in the water area image through a water area segmentation model.
S300: and determining the water surface elevation of the current water surface of the natural water area according to the water area, the actual positions of the two initial points and the image coordinates.
The method comprises the steps of selecting two initial points of known actual positions in the natural waters and image coordinates of the two initial points in a water area image, identifying the water area in the water area image through a water area segmentation model based on depth learning, and determining the water surface elevation of the current water surface through the water area and the image coordinates of the two initial points. The method and the device have the advantages that the water area in the water area image is identified, the actual water gauge does not need to be subjected to image identification, the method and the device are suitable for water level identification under different water gauge models and complex environments, when the water gauge in the water area image cannot be identified due to the fact that the actual water gauge has stains, spots, damage or various scale colors, accurate virtual water gauges can be generated, accuracy of water level identification is improved, the traditional human eye judgment reading is replaced, labor input is reduced, and working efficiency is improved.
In a specific example, when monitoring a natural water area, the image acquisition device may acquire a monitoring video or a monitoring image of the natural water area, extract video or image data acquired by the image acquisition device to form a water area image, and analyze the water area image to obtain coordinate positions of two selected initial points on the water area image. It can be understood that the position and the angle of the image acquisition device do not change during the monitoring process, so that the coordinate positions of the two initial points in the natural water area on the water area image do not change correspondingly. When the position or the angle of the image acquisition equipment changes, the coordinate positions of two preselected initial points on the water area image need to be determined again.
In a preferred embodiment, the two initial points are two points of a top elevation and an initial surface elevation of an actual water gauge in the natural water area. By selecting two points of the top elevation and the initial water surface elevation of the actual water gauge as initial points, on one hand, the pixel size of the virtual water gauge can be determined according to the actual distance of the two initial points in the natural water area and the image distance on the water area image, and therefore the virtual water gauge can be generated on the water area image.
In a preferred embodiment, the method further comprises the step of forming the water-area segmentation model. The water area segmentation model is formed through a deep learning technology, the water area region on the water area image can be accurately identified through continuous iteration and optimization of the water area segmentation model, and the current water level of the water surface can be further determined according to the range of the water area region so as to realize real-time monitoring on the natural water area.
In a preferred embodiment, as shown in fig. 2, the forming the water area segmentation model may specifically include:
s210: and forming an image water area segmentation network model. In a preferred embodiment, multi-scale context information can be explored by taking multi-sampling rate expansion convolution, multi-receive field convolution or pooling on an input feature map (feature) by a spatial pyramid module. The clear water area boundary is captured by gradually recovering the spatial information through an encoder decoding (encoder-decoder), and a depth separable convolution (xception) algorithm is used in a water area segmentation task to obtain a powerful and fast network model. In other embodiments, other deep learning algorithms may be used to form the image-water area segmentation network model, which is not limited by the present invention.
S220: and training a plurality of water area images through an image segmentation algorithm according to the network model to obtain the water area segmentation model. Specifically, in a preferred embodiment, a depllabv 3+ image segmentation algorithm may be adopted to train a data set formed by a plurality of water area images in a natural scene, an initial learning rate lr is set to 1e-7, a momentum is set to 0.9, and a water area segmentation model is obtained after 300 epochs are iterated. In other embodiments, the water area segmentation model may be obtained by training a plurality of water area images through other image segmentation algorithms, which is not limited by the present invention.
In a preferred embodiment, as shown in fig. 3, the step S300 may specifically include:
s310: and obtaining the water level position coordinates of the current water surface in the water area image according to the water area and the image coordinates of the two initial points in the water area image.
S320: and obtaining the water surface elevation according to the actual positions of the two initial points in the natural water area, the image coordinates of the water area image and the water level position coordinates of the current water surface.
Specifically, in a preferred embodiment, the two initial points are the top elevation Hg and the initial water surface elevation Hc of the actual water gauge, respectively, wherein the coordinate of the top elevation Hg on the water area image is (x)1,y1) The coordinate of the initial water surface elevation Hc on the water area image is (x)2,y2)。
The water area can be Mask matrix obtained by a water area segmentation model, and water level position coordinate y of the current water level on the water area image is obtained by calculation according to the Mask matrix and two initial pointsnow,ynowBy performing y on Mask matrixnow=Mask[:,(x1+x2)/2]The min () algorithm is calculated. Further, the water surface elevation Hw of the current water surface in the natural water area is obtained through two initial actual positions in the natural water area, and the Hw can be calculated through the following formula: hw ═ Hg- [ (Hg-Hc)/(y)2-y1)]*(ynow-y1). According to the invention, the current water level is obtained by identifying the water area region of the water area image, so that the natural water area can be monitored according to the current water level condition, the identification accuracy of the monitored water area image under the condition of poor identification condition is improved, the water level change video image identification monitoring capability is better exerted, and the abnormity is found more timely and accurately. The labor monitoring resource investment is reduced, and the overall flood prevention capacity and the work efficiency are improved.
In a preferred embodiment, the method further includes a step S400 of forming a virtual water gauge image on the water area image, as shown in fig. 4. Through forming virtual water gauge image on the waters image can be when the water gauge is damaged or light is not enough to lead to the actual water gauge to see clearly, make the user can monitor current water level according to virtual water gauge, can monitor the waters water level more directly perceived, conveniently.
In a preferred embodiment, as shown in fig. 5, the S400 may specifically include:
s410: and obtaining the pixel size of the virtual water gauge according to the water surface elevation and the water area. Specifically, the position range of the virtual water gauge to be displayed may be determined according to a Mask matrix of the water area obtained by the water area segmentation model, for example, in one embodiment, the virtual water gauge extends from at least within the water area to a top elevation Hg of the actual water gauge, and in other embodiments, the pixel size of the formed virtual water gauge may also be flexibly selected according to actual requirements, so as to determine the position of the formed virtual water gauge.
S420: and obtaining the initial position and the final position of the virtual water gauge through inverse perspective transformation. Obtaining the initial position (x) of the virtual water gauge through inverse perspective transformation according to the determined pixel size of the virtual water gauge1’,y1') and termination position (x)2’,y2'), for example, the start location may be a point at which the top elevation of the actual water gauge is at or beside the corresponding point on the image of the water area, and the end location may be a point at which the current water level is at or beside the corresponding point on the image of the water area.
S430: and forming the virtual water gauge according to the starting position, the ending position and the pixel size and displaying the water surface elevation. Specifically, a virtual water gauge is formed on the water area image from the start position to the end position according to the pixel size of the virtual water gauge. Form virtual water gauge through the reverse perspective transform, can make the virtual water gauge of formation more three-dimensional, form the virtual water gauge that has space display effect, promote display effect and user experience.
Based on the same principle, the embodiment also discloses a water level identification system based on the virtual water gauge. As shown in fig. 6, in the present embodiment, the system includes an initial parameter module 11, a water area identification module 12, and a water level identification module 13.
The initial parameter module 11 is configured to select two initial points of known actual positions in a natural water area. The water area identification module 12 is configured to identify a water area region in the water area image corresponding to the natural water area through a water area segmentation model. The water level identification module 13 is configured to determine a water surface elevation of the current water surface of the natural water area according to the actual position of the water area and the two initial points in the natural water area and the image coordinates of the water area image.
The method comprises the steps of selecting two initial points of known actual positions in the natural waters and image coordinates of the two initial points in a water area image, identifying the water area in the water area image through a water area segmentation model based on depth learning, and determining the water surface elevation of the current water surface through the water area and the image coordinates of the two initial points. The method and the device have the advantages that the water area in the water area image is identified, the actual water gauge does not need to be subjected to image identification, the method and the device are suitable for water level identification under different water gauge models and complex environments, when the water gauge in the water area image cannot be identified due to the fact that the actual water gauge has stains, spots, damage or various scale colors, accurate virtual water gauges can be generated, accuracy of water level identification is improved, the traditional human eye judgment reading is replaced, labor input is reduced, and working efficiency is improved.
In a specific example, when monitoring a natural water area, the image acquisition device may acquire a monitoring video or a monitoring image of the natural water area, extract video or image data acquired by the image acquisition device to form a water area image, and analyze the water area image to obtain coordinate positions of two selected initial points on the water area image. It can be understood that the position and the angle of the image acquisition device do not change during the monitoring process, so that the coordinate positions of the two initial points in the natural water area on the water area image do not change correspondingly. When the position or the angle of the image acquisition equipment changes, the coordinate positions of two preselected initial points on the water area image need to be determined again.
In a preferred embodiment, the two initial points are two points of a top elevation and an initial surface elevation of an actual water gauge in the natural water area. By selecting two points of the top elevation and the initial water surface elevation of the actual water gauge as initial points, on one hand, the pixel size of the virtual water gauge can be determined according to the actual distance of the two initial points in the natural water area and the image distance on the water area image, and therefore the virtual water gauge can be generated on the water area image.
In a preferred embodiment, as shown in fig. 7, the system further comprises a model construction module 14 for forming a water segmentation model. The water area segmentation model is formed through a deep learning technology, the water area region on the water area image can be accurately identified through continuous iteration and optimization of the water area segmentation model, and the current water level of the water surface can be further determined according to the range of the water area region so as to realize real-time monitoring on the natural water area.
In a preferred embodiment, the model construction module 14 is specifically configured to form an image water area segmentation network model, and train a plurality of water area images according to the network model by using an image segmentation algorithm to obtain the water area segmentation model.
In a preferred embodiment, multi-scale context information can be explored by taking multi-sampling rate expansion convolution, multi-receive field convolution or pooling on an input feature map (feature) by a spatial pyramid module. The clear water area boundary is captured by gradually recovering the spatial information through an encoder decoding (encoder-decoder), and a depth separable convolution (xception) algorithm is used in a water area segmentation task to obtain a powerful and fast network model. In other embodiments, other deep learning algorithms may be used to form the image-water area segmentation network model, which is not limited by the present invention.
In a preferred embodiment, a data set formed by a plurality of water area images in a natural scene can be trained by adopting a depllabv 3+ image segmentation algorithm, an initial learning rate lr is set to be 1e-7, momentum is set to be 0.9, and a water area segmentation model is obtained after 300 epochs are iterated. In other embodiments, the water area segmentation model may be obtained by training a plurality of water area images through other image segmentation algorithms, which is not limited by the present invention.
In a preferred embodiment, the water level identification module 13 is further configured to obtain a water level position coordinate of the current water surface in the water area image according to the water area and the image coordinates of the two initial points in the water area image, and obtain the water level elevation according to the actual position of the two initial points in the natural water area, the image coordinates of the water area image, and the water level position coordinate of the current water surface.
Specifically, in a preferred embodiment, the two initial points are the top elevation Hg and the initial water surface elevation Hc of the actual water gauge, respectively, wherein the coordinate of the top elevation Hg on the water area image is (x)1,y1) The coordinate of the initial water surface elevation Hc on the water area image is (x)2,y2)。
The water area can be Mask matrix obtained by a water area segmentation model, and water level position coordinate y of the current water level on the water area image is obtained by calculation according to the Mask matrix and two initial pointsnow,ynowBy performing y on Mask matrixnow=Mask[:,(x1+x2)/2]The min () algorithm is calculated. Further, the water surface elevation Hw of the current water surface in the natural water area is obtained through two initial actual positions in the natural water area, and the Hw can be calculated through the following formula: hw ═ Hg- [ (Hg-Hc)/(y)2-y1)]*(ynow-y1). According to the invention, the current water level is obtained by identifying the water area region of the water area image, so that the natural water area can be monitored according to the current water level condition, the identification accuracy of the monitored water area image under the condition of poor identification condition is improved, the water level change video image identification monitoring capability is better exerted, and the abnormity is found more timely and accurately. The labor monitoring resource investment is reduced, and the overall flood prevention capacity and the work efficiency are improved.
In a preferred embodiment, as shown in fig. 8, the system further includes a virtual water gauge module 15 that forms a virtual water gauge image on the water area image. Through forming virtual water gauge image on the waters image can be when the water gauge is damaged or light is not enough to lead to the actual water gauge to see clearly, make the user can monitor current water level according to virtual water gauge, can monitor the waters water level more directly perceived, conveniently.
In a preferred embodiment, the virtual water gauge module 15 is specifically configured to obtain a pixel size of a virtual water gauge according to the water surface elevation and the water area, obtain a start position and an end position of the virtual water gauge through inverse perspective transformation, form the virtual water gauge according to the start position, the end position, and the pixel size, and display the water surface elevation.
Specifically, the position range of the virtual water gauge to be displayed may be determined according to a Mask matrix of the water area obtained by the water area segmentation model, for example, in one embodiment, the virtual water gauge extends from at least within the water area to a top elevation Hg of the actual water gauge, and in other embodiments, the pixel size of the formed virtual water gauge may also be flexibly selected according to actual requirements, so as to determine the position of the formed virtual water gauge.
Further, the initial position (x) of the virtual water gauge is obtained through inverse perspective transformation according to the determined pixel size of the virtual water gauge1’,y1') and termination position (x)2’,y2'), for example, the start location may be a point at which the top elevation of the actual water gauge is at or beside the corresponding point on the image of the water area, and the end location may be a point at which the current water level is at or beside the corresponding point on the image of the water area.
Further, a virtual water gauge is formed on the water area image from the start position to the end position according to the pixel size of the virtual water gauge. Form virtual water gauge through the reverse perspective transform, can make the virtual water gauge of formation more three-dimensional, form the virtual water gauge that has space display effect, promote display effect and user experience.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the computer device specifically comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method performed by the client as described above when executing the program, or the processor implementing the method performed by the server as described above when executing the program.
Referring now to FIG. 9, shown is a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 9, the computer apparatus 600 includes a Central Processing Unit (CPU)601 which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 606 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present 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 flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (6)

1. A water level identification method based on a virtual water gauge is characterized in that,
the water level recognition system for implementing the method includes,
the initial parameter module is used for selecting two initial points of known actual positions in the natural water area;
the water area identification module is used for identifying a water area in the water area image corresponding to the natural water area through a water area segmentation model;
the water level identification module is used for determining the water surface elevation of the current water surface of the natural water area according to the actual position of the water area and the two initial points in the natural water area and the image coordinates of the water area image;
the method comprises the following steps:
s100, selecting two initial points of known actual positions in a natural water area and image coordinates of the two initial points in a water area image corresponding to the natural water area;
s200, identifying a water area region in the water area image through a water area segmentation model;
s300, determining the water surface elevation of the current water surface of the natural water area according to the actual positions and the image coordinates of the water area and the two initial points;
the S200 includes the steps of:
s210, an image water area segmentation network model is constructed by arranging a space pyramid module, an encoder-decoder and a depth convolution algorithm, wherein the space pyramid module is used for adopting multi-sampling rate expansion convolution, multi-receiving field convolution or pooling on an input feature map to explore multi-scale context information, the encoder-decoder is used for capturing clear water area boundaries by gradually restoring spatial information, and the depth convolution algorithm is used in a water area segmentation task;
s220, constructing a water area segmentation model according to depeplabv 3+ image segmentation algorithm based on the image water area segmentation network model;
the S300 includes the steps of:
s310, obtaining water level position coordinates of the current water surface in the water area image according to the water area and the image coordinates of the two initial points in the water area image;
s320, obtaining the water surface elevation according to the actual positions of the two initial points in the natural water area, the image coordinates of the water area image and the water level position coordinates of the current water surface;
forming a virtual water gauge image on the water area image specifically includes:
obtaining the pixel size of a virtual water gauge according to the water surface elevation and the water area;
obtaining the initial position and the end position of the virtual water gauge through inverse perspective transformation;
and forming the virtual water gauge according to the starting position, the ending position and the pixel size and displaying the water surface elevation.
2. The water level recognition method according to claim 1,
the S310 is comprised of the steps of,
obtaining a Mask matrix according to the water area segmentation model;
and calculating to obtain the water level position coordinate of the current water level on the water area image according to the Mask matrix and the two initial points.
3. The water level recognition method according to claim 2,
the two initial points are respectively the top elevation Hg and the initial water surface elevation Hc of the actual water gauge, wherein the coordinate of the top elevation Hg on the water area image is (x)1,y1) The coordinate of the initial water surface elevation Hc on the water area image is (x)2,y2);
The water level position coordinate obtaining algorithm comprises the following steps:
ynow=Mask[:,(x1+x2)/2].min()
wherein, ynowIndicating the water level position coordinates, and Mask indicates a Mask matrix.
4. The water level recognition method according to claim 3,
the algorithm for obtaining the water surface elevation comprises the following steps:
Hw=Hg-[(Hg-Hc)/(y2-y1)]*(ynow-y1)
where Hw represents the water surface elevation.
5. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method of any of claims 1-4.
6. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
CN201910027350.XA 2019-01-11 2019-01-11 Water level identification method and system based on virtual water gauge Active CN109815865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910027350.XA CN109815865B (en) 2019-01-11 2019-01-11 Water level identification method and system based on virtual water gauge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910027350.XA CN109815865B (en) 2019-01-11 2019-01-11 Water level identification method and system based on virtual water gauge

Publications (2)

Publication Number Publication Date
CN109815865A CN109815865A (en) 2019-05-28
CN109815865B true CN109815865B (en) 2021-11-16

Family

ID=66603417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910027350.XA Active CN109815865B (en) 2019-01-11 2019-01-11 Water level identification method and system based on virtual water gauge

Country Status (1)

Country Link
CN (1) CN109815865B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115359430A (en) * 2022-10-19 2022-11-18 煤炭科学研究总院有限公司 Water pump protection method and device and electronic equipment

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428416B (en) * 2019-08-06 2024-01-23 广东工业大学 Liquid level visual detection method and device
CN113819972A (en) * 2020-07-07 2021-12-21 湖北亿立能科技股份有限公司 Artificial intelligence surface of water detecting system based on virtual scale
CN113822104B (en) * 2020-07-07 2023-11-03 湖北亿立能科技股份有限公司 Artificial intelligence surface of water detecting system based on virtual scale of many candidates
CN112508986B (en) * 2020-12-04 2022-07-05 武汉大学 Water level measurement method based on deep convolutional network and random field
CN112465061B (en) * 2020-12-10 2023-03-24 厦门四信通信科技有限公司 Water level identification method, device, equipment and storage medium
CN113074797A (en) * 2021-02-20 2021-07-06 武汉依迅北斗时空技术股份有限公司 Water level measuring device without water gauge and water level calibration method
CN112985542A (en) * 2021-02-23 2021-06-18 天地伟业技术有限公司 Water level monitor without water gauge
CN112991425B (en) * 2021-04-28 2021-08-06 武汉光谷信息技术股份有限公司 Water area water level extraction method and system and storage medium
CN113516081A (en) * 2021-07-16 2021-10-19 廖佳庆 Method for realizing water level identification of virtual water gauge through deep learning image identification technology
CN116399418B (en) * 2023-05-29 2023-10-27 陕西省水利电力勘测设计研究院 Water level identification method and system based on fixed camera
CN117372451A (en) * 2023-09-20 2024-01-09 中山大学 Water body water level monitoring method based on SAM image segmentation model

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145830A (en) * 2018-08-24 2019-01-04 浙江大学 A kind of intelligence water gauge recognition methods

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103487033B (en) * 2013-09-22 2015-05-06 河海大学 River surface photographic surveying method based on height-change homography
US10159196B2 (en) * 2015-04-24 2018-12-25 Skavis Corporation Mobile tree canopy treatment system
CN106228579B (en) * 2016-08-25 2019-05-10 河海大学 A kind of video image dynamic water table information extracting method based on geographical space-time scene
CN107588823B (en) * 2017-09-18 2019-05-31 河海大学 Water gauge water level measurement method based on dual-waveband imaging
CN108318101A (en) * 2017-12-26 2018-07-24 北京市水利自动化研究所 Water gauge water level video intelligent monitoring method based on deep learning algorithm and system
CN108470338B (en) * 2018-02-12 2019-09-20 南京邮电大学 A kind of water level monitoring method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145830A (en) * 2018-08-24 2019-01-04 浙江大学 A kind of intelligence water gauge recognition methods

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115359430A (en) * 2022-10-19 2022-11-18 煤炭科学研究总院有限公司 Water pump protection method and device and electronic equipment
CN115359430B (en) * 2022-10-19 2023-02-28 煤炭科学研究总院有限公司 Water pump protection method and device and electronic equipment

Also Published As

Publication number Publication date
CN109815865A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109815865B (en) Water level identification method and system based on virtual water gauge
CN109325437B (en) Image processing method, device and system
CN111243093B (en) Three-dimensional face grid generation method, device, equipment and storage medium
CN111161349B (en) Object posture estimation method, device and equipment
CN107256225B (en) Method and device for generating heat map based on video analysis
CN105139004B (en) Facial expression recognizing method based on video sequence
GB2607749A (en) Fine-grained visual recognition in mobile augmented reality
CN111598998A (en) Three-dimensional virtual model reconstruction method and device, computer equipment and storage medium
JP2021093161A (en) Computer vision system for digitization of industrial equipment gauge and alarm
CN108564120B (en) Feature point extraction method based on deep neural network
CN111539938B (en) Method, system, medium and electronic terminal for detecting curvature of rolled strip steel strip head
CN111144325A (en) Fault identification and positioning method, device and equipment for power equipment of transformer substation
KR20150027291A (en) Optical flow tracking method and apparatus
CN110832542B (en) Identification processing device, identification processing method, and program
CN104978012A (en) Pointing interactive method, device and system
CN109325996B (en) Method and device for generating information
CN112818925A (en) Urban building and crown identification method
CN111932552B (en) Aorta modeling method and device
CN112652015A (en) BIM-based pavement disease marking method and device
CN115908988B (en) Defect detection model generation method, device, equipment and storage medium
CN112734747B (en) Target detection method and device, electronic equipment and storage medium
CN111723688B (en) Human body action recognition result evaluation method and device and electronic equipment
CN109961060B (en) Method and apparatus for generating crowd density information
CN110533663B (en) Image parallax determining method, device, equipment and system
CN113034420B (en) Industrial product surface defect segmentation method and system based on frequency space domain characteristics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100097 Beijing city Haidian District landianchang Road No. 2 Building No. 2 hospital (Jin Yuan era business center building 2) 9 Unit 2 (B) 10E

Applicant after: RICHWAY (BEIJING) TECHNOLOGY Co.,Ltd.

Address before: 100085 Haidian District information road, Haidian District, Beijing, No. 28, 7 layer and 7 layer A646

Applicant before: RICHWAY (BEIJING) TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB03 Change of inventor or designer information

Inventor after: Zhou Wei

Inventor before: Zhou Wei

Inventor before: Tian Ding

Inventor before: Li Pan

Inventor before: Shu Wei

Inventor before: Chen Pengfei

Inventor before: Lin Zuoyong

Inventor before: Ding Feng

Inventor before: Zou Yu

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100097 room 10e, unit 2 (block B), 9 / F, building 2, yard 2, lantianchang East Road, Haidian District, Beijing (Building 2, Jinyuan times business center)

Patentee after: Kunyu (Beijing) Technology Co.,Ltd.

Address before: 100097 room 10e, unit 2 (block B), 9 / F, building 2, yard 2, lantianchang East Road, Haidian District, Beijing (Building 2, Jinyuan times business center)

Patentee before: RICHWAY (BEIJING) TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder