CN117333795A - River surface flow velocity measurement method and system based on screening post-treatment - Google Patents

River surface flow velocity measurement method and system based on screening post-treatment Download PDF

Info

Publication number
CN117333795A
CN117333795A CN202311187885.6A CN202311187885A CN117333795A CN 117333795 A CN117333795 A CN 117333795A CN 202311187885 A CN202311187885 A CN 202311187885A CN 117333795 A CN117333795 A CN 117333795A
Authority
CN
China
Prior art keywords
result
flow rate
tracer
river surface
flow velocity
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.)
Pending
Application number
CN202311187885.6A
Other languages
Chinese (zh)
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.)
Wuhan Dashuiyun Technology Co ltd
Original Assignee
Wuhan Dashuiyun 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 Wuhan Dashuiyun Technology Co ltd filed Critical Wuhan Dashuiyun Technology Co ltd
Priority to CN202311187885.6A priority Critical patent/CN117333795A/en
Publication of CN117333795A publication Critical patent/CN117333795A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)

Abstract

The invention provides a river surface flow velocity measurement method and system based on screening post-treatment, comprising the following steps: preprocessing river video data to obtain tracer existence information, tracer particle size and tracer density of a video image; calculating the river surface flow velocity according to different distribution density intervals in which the tracer density is located by adopting different velocity measurement methods to obtain a first flow velocity result; according to different distribution speed intervals in which the first flow speed result is located, calculating the river surface flow speed by adopting different speed measuring methods to obtain a second flow speed result; and integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result. According to the invention, the characteristic points of the river cross section are extracted by comparing the differences of various river surface velocity measurement methods by utilizing the characteristics, so that the states of the characteristic points are obtained, the obtained river surface flow velocity is judged in a flow velocity interval, the result comparison is carried out according to the optimal method of the current flow velocity interval, the comprehensive flow velocity result is output, and the accuracy of the flow measurement result is effectively improved.

Description

River surface flow velocity measurement method and system based on screening post-treatment
Technical Field
The invention relates to the technical field of hydrological flow measurement, in particular to a river surface flow velocity measurement method and system based on screening post-treatment.
Background
In the current non-contact measuring river water flow velocity process, a non-contact measuring method is mainly adopted, and compared with the traditional method for placing instruments and related equipment in a river, the method has the advantages of low implementation cost, higher accuracy, environmental influence resistance and the like.
Currently, the non-contact method mainly includes: optical flow velocimetry (Optical Flow Velocimetry, OPV), large-scale particle image velocimetry (Large Scale Particle Image Velocimetry, LSPIV), spatiotemporal image velocimetry (Spatiotemporal Image Velocimetry, STIV), scale-invariant feature transform velocimetry (Scale Invariant Feature Transform Velocimetry, SIFTV), particle tracking velocimetry (Particle Tacking Velocimetry, PTV), and particle image velocimetry (Particle Image Velocimetry, PIV). However, when faced with different scenarios, the above methods have different drawbacks, such as the inability of OPV to measure high flow rates, and the accuracy of flow measurement of STIV is inferior to PIV, SIFTV and PTV when natural trace particles are present on the river cross-section.
Therefore, when facing different river section states, how to select an optimal flow velocity calculation method according to the scene so as to ensure that the obtained speed measurement result is accurate, and no effective solution exists yet.
Disclosure of Invention
The invention provides a river surface flow velocity measurement method and system based on screening post-treatment, which are used for solving the defect that flow velocity information cannot be effectively and accurately obtained by adopting a single velocity measurement method when the river section state in the river surface velocity measurement is complex in the prior art.
In a first aspect, the present invention provides a river surface flow rate measurement method based on screening post-treatment, including:
step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image;
step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300;
step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400;
step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result;
step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result;
and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
According to the river surface flow velocity measurement method based on screening post-treatment provided by the invention, step 100 comprises the following steps:
intercepting river video data with preset duration based on a preset video frame rate and a preset video frame size;
extracting frames from the river video data to obtain image frames, and converting the image frames into gray level images;
image segmentation is carried out on the gray level diagram, a river surface tracer and a background in the gray level diagram are separated, the river surface tracer is classified by adopting a convolutional neural network, and the particle size and the number of the tracer are counted;
and carrying out grid division on the gray level map, and counting grid division results through a convolutional neural network to obtain tracer density.
According to the river surface flow velocity measurement method based on screening post-treatment provided by the invention, the gray scale image is subjected to grid division, and the grid division result is counted through a convolutional neural network to obtain the tracer density, which comprises the following steps:
dividing the gray scale image into a plurality of grids based on a preset grid division size;
removing grid results with 0 in the grids by using the convolutional neural network, and calculating the average value of the characteristic points of the residual grids in the grids to obtain the number of the characteristic points in the unit grid;
the tracer density is determined from the number of feature points within the unit grid.
According to the river surface flow velocity measurement method based on screening post-treatment provided by the invention, step 400 comprises the following steps:
if the tracer density is determined to be in the first distribution density space, calculating the river surface flow velocity by adopting an optical flow velocity measuring OPV to obtain a first flow velocity result;
if the tracer density is determined to be in the second distribution density space, calculating the river surface flow velocity by adopting particle image velocimetry PIV to obtain a first flow velocity result;
if the tracer density is determined to be in the third distribution density space, calculating the river surface flow velocity by adopting the large-scale particle image velocimetry LSPIV to obtain a first flow velocity result;
the first distribution density space, the second distribution density space and the third distribution density space are adjacent density intervals, and the values are sequentially reduced.
According to the river surface flow velocity measurement method based on screening post-treatment provided by the invention, step 500 comprises the following steps:
if the first flow rate result is determined to be located in the first distribution speed interval, calculating the river surface flow rate by adopting an optical flow velocity (OPV) measuring method to obtain a second flow rate result;
if the first flow rate result is determined to be located in the second distribution speed interval, calculating the river surface flow rate by adopting the space-time image velocity measurement STIV to obtain a second flow rate result;
if the first flow rate result is determined to be located in the third distribution speed interval, calculating the river surface flow rate by adopting scale invariant feature transform velocity measurement SIFTV to obtain a second flow rate result;
the first distribution speed interval, the second distribution speed interval and the third distribution speed interval are adjacent speed intervals, and the values are sequentially increased.
According to the river surface flow velocity measurement method based on screening post-treatment provided by the invention, step 600 comprises the following steps:
comparing the first flow rate result with the second flow rate result to obtain a speed error calculation result;
and if the speed error calculation result is determined to be within a preset error percentage range, taking the first flow speed result as the comprehensive flow speed result, otherwise, carrying out weighting processing on the first flow speed result and the second flow speed result to obtain the comprehensive flow speed result.
In a second aspect, the present invention also provides a river surface flow rate measurement system based on screening post-treatment, including:
the acquisition processing module is used for acquiring river video data, preprocessing the river video data and acquiring tracer existence information, tracer particle size and tracer density of a video image;
the first calculation module is used for calculating the river surface flow rate by adopting the space-time image velocity measurement STIV if the video image is determined to have no tracer, so as to obtain a first flow rate result, otherwise, the first calculation module enters a tracer particle size judgment step;
the second calculation module is used for calculating the river surface flow velocity by adopting particle tracking velocity measurement PTV if the particle size of the tracer is determined to be larger than the preset particle size threshold value, so as to obtain a first flow velocity result, otherwise, entering a tracer density judgment step;
the third calculation module is used for calculating the river surface flow velocity according to different distribution density intervals in which the tracer density is positioned by adopting different velocity measurement methods to obtain a first flow velocity result;
the fourth calculation module is used for calculating the river surface flow velocity according to different distribution velocity intervals in which the first flow velocity result is located by adopting different velocity measurement methods to obtain a second flow velocity result;
and the synthesis module is used for synthesizing the first flow rate result and the second flow rate result and outputting a synthesized flow rate result.
In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing a river surface flow rate measurement method based on a post-screening treatment as described in any one of the above when executing the program.
In a fourth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of measuring river surface flow based on post-screening treatment as described in any one of the above.
In a fifth aspect, the invention also provides a computer program product comprising a computer program which when executed by a processor implements a river surface flow rate measurement method based on a post-screening treatment as described in any one of the above.
According to the river surface flow rate measuring method and system based on the screening post-treatment, through comparing the differences of various river surface speed measuring methods, the characteristic points of the river cross section are extracted by utilizing the characteristics, the states of the characteristic points are further obtained, the obtained river surface flow rate is judged in the flow rate interval, the result comparison is carried out according to the optimal method in the current flow rate interval, the comprehensive flow rate result is output, the influence of the characteristics of a single flow rate algorithm on the flow rate result is avoided, and the accuracy of the flow measuring result is effectively improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a river surface flow rate measurement method based on screening post-treatment provided by the invention;
FIG. 2 is a schematic diagram of meshing provided by the present invention;
FIG. 3 is a flow chart illustrating the selection of different flow measurement methods provided by the present invention;
FIG. 4 is a flow chart of verification of different flow measurement methods provided by the present invention;
FIG. 5 is a schematic structural diagram of a river surface flow rate measurement system based on post-screening treatment provided by the invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic flow chart of a river surface flow rate measurement method based on screening post-treatment according to an embodiment of the present invention, as shown in fig. 1, including:
step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image;
step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300;
step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400;
step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result;
step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result;
and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
In the embodiment of the invention, the river video data is acquired by the professional acquisition equipment erected on the side of the target river, and the acquired river video data is preprocessed to obtain the tracer existence information, the tracer particle size and the tracer density in the video image.
Then according to the obtained information, judging multiple dimensions, selecting a proper river velocity measuring method, firstly judging whether a tracer exists in an image, if not, selecting an STIV method to calculate the river surface velocity, obtaining a first velocity result, and marking as v a And (3) after calculation, entering a step of identifying a flow velocity result interval, and if the tracer exists in the image, entering a step of judging the particle size of the tracer in the image.
In the step of judging the particle size of the tracer in the image, if the particle size of the tracer is larger than the preset particle size threshold according to the preset particle size threshold, calculating the river surface flow velocity by adopting the PTV to obtain a first flow velocity result v a Otherwise, if the particle diameter is smaller than the preset particle diameterAnd (4) a threshold value, and a step of judging the distribution density of the tracer is carried out.
In the step of judging the distribution density of the tracer in the image, calculating by adopting different river velocity measuring methods according to three different distribution density intervals in which the tracer density is positioned to obtain a first flow velocity result v a
Further, for the first flow rate result v a The second flow velocity result v is calculated by adopting different river velocity measurement methods in three different distribution velocity intervals b
Finally, the first flow rate result v is compared a And a second flow rate result v b And outputting the comprehensive flow rate result.
According to the invention, the characteristic points of the river cross section are extracted by comparing the differences of various river surface velocity measurement methods by utilizing the characteristics, so that the states of the characteristic points are obtained, the obtained river surface flow velocity is judged in a flow velocity interval, the result comparison is carried out according to the optimal method of the current flow velocity interval, the comprehensive flow velocity result is output, and the accuracy of the flow measurement result is effectively improved.
Based on the above embodiment, step 100 includes:
intercepting river video data with preset duration based on a preset video frame rate and a preset video frame size;
extracting frames from the river video data to obtain image frames, and converting the image frames into gray level images;
image segmentation is carried out on the gray level diagram, a river surface tracer and a background in the gray level diagram are separated, the river surface tracer is classified by adopting a convolutional neural network, and the particle size and the number of the tracer are counted;
and carrying out grid division on the gray level map, and counting grid division results through a convolutional neural network to obtain tracer density.
The method for classifying the gray level image by using the convolutional neural network comprises the steps of:
dividing the gray scale image into a plurality of grids based on a preset grid division size;
removing grid results with 0 in the grids by using the convolutional neural network, and calculating the average value of the characteristic points of the residual grids in the grids to obtain the number of the characteristic points in the unit grid;
the tracer density is determined from the number of feature points within the unit grid.
Specifically, the embodiment of the invention is aimed at preprocessing river video images, and video data with a section of preset duration, such as one minute, is intercepted, wherein the video frame rate is 30fps/s, and the size of each frame is 1920 x 1080;
performing frame extraction processing on the video, converting the video image subjected to the frame extraction processing into a gray level image, separating a river surface tracer from a background through image segmentation, classifying the tracer by adopting a common convolutional neural network, and counting the particle size and the number of the tracer;
and dividing grids according to 100 x 100 in the current frame picture, removing grid results with the statistical value of 0 through a convolutional neural network, and calculating the average value of the feature points in the n remaining grids. Let the number of feature points in a unit be x, the distribution density in the unit be x/10000 (p/px 2 ) The average density of the image is then obtained and the meshing is as shown in figure 2.
Based on the above embodiment, after the image preprocessing is completed, the flow rate selection logic flow shown in fig. 3 is entered:
s1, judging whether a tracer exists in the image, if not, selecting an STIV method to calculate the river surface flow velocity, and obtaining a flow velocity result v a Step S4 is carried out after calculation; if the tracer is present in the image, step S2 is entered.
S2, judging the particle size of the tracer in the image, and if the particle size of the tracer is larger than 5cm, selecting a PTV method to calculate the river surface flow velocity to obtain a flow velocity result v a Step S4 is carried out after calculation; if the particle size of the tracer is less than or equal to 5cm, entering a step S3; the tracer particle size herein is generally the average particle size of a plurality of tracers.
S3, judging the distribution density of the tracer in the image, if the distribution density is more than 30/px 2 Then selectOPV, obtain flow velocity result v a The method comprises the steps of carrying out a first treatment on the surface of the If the distribution density is between 10 and 30 per px 2 If so, selecting PIV to obtain flow velocity result v a The method comprises the steps of carrying out a first treatment on the surface of the If the distribution density is less than 10/px 2 Then select LSPIV to obtain flow velocity result v a The method comprises the steps of carrying out a first treatment on the surface of the The different calculation methods are chosen here according to the different densities because: the OPV can calculate dense pixel motion, can estimate the offset of a single pixel, more sampling calculations can bring more effective values, the pixels of the PIV calculation are relatively sparse, and the LSPIV is more sparse.
S4, convection speed result v a Speed result interval identification is carried out, v a <0.5m/s, v is obtained by OPV calculation b ;0.5m/s<v a <5m/s, v is obtained by calculation using STIV b ;v a >5m/s, v is obtained by SIFTV calculation b The method comprises the steps of carrying out a first treatment on the surface of the According to v a The OPV is suitable for estimating the pixel tiny offset in different intervals of the speed distribution, so that smaller flow velocity values can be calculated, the STIV is required to calculate gray gradient change on one velocity measurement line, the gradient change is not obvious and difficult to estimate when the flow velocity is small, systematic errors caused by calculated angles when the flow velocity is large can be unstable due to rapid increase of slope change (tan value), and the STFTV can be matched with large characteristic displacement.
S5, comparing the flow velocity result difference value, calculating an error result, if the error is caused<5%, then directly output v a The method comprises the steps of carrying out a first treatment on the surface of the On the contrary, for v a And v b Weighting to obtain v c Output v c For the final flow rate calculation result, the two calculation results are combined for comparison, and the verification logic flow is shown in fig. 4.
It can be understood that the invention extracts the characteristic points of the river cross section by utilizing the characteristics by comparing the differences among various flow velocity calculation methods, and further obtains the states of the characteristic points, such as the size and the distribution density of the characteristic points, and performs the step-by-step screening of a proper method for measuring the flow velocity of the river surface; judging the obtained river surface flow velocity in a flow velocity interval, comparing results according to the current flow velocity interval optimal method, and obtaining a final result by adopting weighted average when the error result exceeds a set threshold value; and when the error result does not exceed the set threshold, directly outputting the original flow velocity result, and improving the accuracy of the flow measurement result.
The river surface flow rate measuring system based on the screening post-treatment provided by the invention is described below, and the river surface flow rate measuring system based on the screening post-treatment described below and the river surface flow rate measuring method based on the screening post-treatment described above can be correspondingly referred to each other.
Fig. 5 is a schematic structural diagram of a river surface flow rate measurement system based on screening post-treatment according to an embodiment of the present invention, as shown in fig. 5, including: the collection processing module 51, the first calculation module 52, the second calculation module 53, the third calculation module 54, the fourth calculation module 55, and the integration module 56, wherein:
the acquisition processing module 51 is used for acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image;
the first calculation module 52 is configured to calculate a river surface flow rate by using a spatio-temporal image velocimetry STIV if it is determined that the tracer does not exist in the video image, and obtain a first flow rate result, otherwise, enter a tracer particle size determination step; the second calculation module 53 is configured to calculate a river surface flow rate by using a particle tracking velocity measurement PTV if it is determined that the particle size of the tracer is greater than the preset particle size threshold, to obtain a first flow rate result, and if not, to enter a tracer density determination step; the third calculation module 54 is configured to calculate a river surface flow rate according to different distribution density intervals in which the tracer density is located by using different velocity measurement methods, so as to obtain a first flow rate result; the fourth calculation module 55 is configured to calculate a river surface flow rate according to different distribution speed intervals in which the first flow rate result is located by using different speed measurement methods, so as to obtain a second flow rate result; the integrating module 56 is configured to integrate the first flow rate result and the second flow rate result and output an integrated flow rate result.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. Processor 610 may invoke logic instructions in memory 630 to perform a river surface flow rate measurement method based on post-screening treatment, the method comprising: step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image; step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300; step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400; step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result; step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result; and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the river surface flow rate measuring method based on post-screening treatment provided by the above methods, the method comprising: step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image; step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300; step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400; step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result; step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result; and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for measuring river surface flow rate based on post-screening treatment provided by the above methods, the method comprising: step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image; step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300; step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400; step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result; step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result; and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A river surface flow rate measurement method based on screening post-treatment, comprising:
step 100, acquiring river video data, preprocessing the river video data, and acquiring tracer existence information, tracer particle size and tracer density of a video image;
step 200, if the video image is determined to have no tracer, calculating the river surface flow rate by adopting a space-time image velocity measurement (STIV) to obtain a first flow rate result, otherwise, entering step 300;
step 300, if the particle size of the tracer is determined to be larger than a preset particle size threshold, calculating the river surface flow velocity by adopting a particle tracking velocity measurement PTV to obtain a first flow velocity result, otherwise, entering step 400;
step 400, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution density intervals in which the tracer density is positioned, so as to obtain a first flow velocity result;
step 500, calculating the river surface flow velocity by adopting different velocity measurement methods according to different distribution velocity intervals in which the first flow velocity result is positioned, so as to obtain a second flow velocity result;
and 600, integrating the first flow rate result and the second flow rate result, and outputting an integrated flow rate result.
2. The method for measuring river surface flow rate based on post-screening treatment of claim 1, wherein step 100 comprises:
intercepting river video data with preset duration based on a preset video frame rate and a preset video frame size;
extracting frames from the river video data to obtain image frames, and converting the image frames into gray level images;
image segmentation is carried out on the gray level diagram, a river surface tracer and a background in the gray level diagram are separated, the river surface tracer is classified by adopting a convolutional neural network, and the particle size and the number of the tracer are counted;
and carrying out grid division on the gray level map, and counting grid division results through a convolutional neural network to obtain tracer density.
3. The method for measuring river surface flow rate based on post-screening treatment according to claim 2, wherein the step of performing mesh division on the gray scale map, and counting mesh division results through a convolutional neural network to obtain tracer density comprises the steps of:
dividing the gray scale image into a plurality of grids based on a preset grid division size;
removing grid results with 0 in the grids by using the convolutional neural network, and calculating the average value of the characteristic points of the residual grids in the grids to obtain the number of the characteristic points in the unit grid;
the tracer density is determined from the number of feature points within the unit grid.
4. The method for measuring river surface flow rate based on post-screening treatment of claim 1, wherein step 400 comprises:
if the tracer density is determined to be in the first distribution density space, calculating the river surface flow velocity by adopting an optical flow velocity measuring OPV to obtain a first flow velocity result;
if the tracer density is determined to be in the second distribution density space, calculating the river surface flow velocity by adopting particle image velocimetry PIV to obtain a first flow velocity result;
if the tracer density is determined to be in the third distribution density space, calculating the river surface flow velocity by adopting the large-scale particle image velocimetry LSPIV to obtain a first flow velocity result;
the first distribution density space, the second distribution density space and the third distribution density space are adjacent density intervals, and the values are sequentially reduced.
5. The method for measuring river surface flow rate based on post-screening treatment of claim 1, wherein step 500 comprises:
if the first flow rate result is determined to be located in the first distribution speed interval, calculating the river surface flow rate by adopting an optical flow velocity (OPV) measuring method to obtain a second flow rate result;
if the first flow rate result is determined to be located in the second distribution speed interval, calculating the river surface flow rate by adopting the space-time image velocity measurement STIV to obtain a second flow rate result;
if the first flow rate result is determined to be located in the third distribution speed interval, calculating the river surface flow rate by adopting scale invariant feature transform velocity measurement SIFTV to obtain a second flow rate result;
the first distribution speed interval, the second distribution speed interval and the third distribution speed interval are adjacent speed intervals, and the values are sequentially increased.
6. The method for measuring river surface flow rate based on post-screening treatment of claim 1, wherein step 600 comprises:
comparing the first flow rate result with the second flow rate result to obtain a speed error calculation result;
and if the speed error calculation result is determined to be within a preset error percentage range, taking the first flow speed result as the comprehensive flow speed result, otherwise, carrying out weighting processing on the first flow speed result and the second flow speed result to obtain the comprehensive flow speed result.
7. A river surface flow rate measurement system based on screening post-treatment, comprising:
the acquisition processing module is used for acquiring river video data, preprocessing the river video data and acquiring tracer existence information, tracer particle size and tracer density of a video image;
the first calculation module is used for calculating the river surface flow rate by adopting the space-time image velocity measurement STIV if the video image is determined to have no tracer, so as to obtain a first flow rate result, otherwise, the first calculation module enters a tracer particle size judgment step;
the second calculation module is used for calculating the river surface flow velocity by adopting particle tracking velocity measurement PTV if the particle size of the tracer is determined to be larger than the preset particle size threshold value, so as to obtain a first flow velocity result, otherwise, entering a tracer density judgment step;
the third calculation module is used for calculating the river surface flow velocity according to different distribution density intervals in which the tracer density is positioned by adopting different velocity measurement methods to obtain a first flow velocity result;
the fourth calculation module is used for calculating the river surface flow velocity according to different distribution velocity intervals in which the first flow velocity result is located by adopting different velocity measurement methods to obtain a second flow velocity result;
and the synthesis module is used for synthesizing the first flow rate result and the second flow rate result and outputting a synthesized flow rate result.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the post-screening treatment based river surface flow rate measurement method of any one of claims 1 to 6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the post-screening treatment based river surface flow rate measurement method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements a river surface flow rate measurement method based on post-screening treatment according to any one of claims 1 to 6.
CN202311187885.6A 2023-09-13 2023-09-13 River surface flow velocity measurement method and system based on screening post-treatment Pending CN117333795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311187885.6A CN117333795A (en) 2023-09-13 2023-09-13 River surface flow velocity measurement method and system based on screening post-treatment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311187885.6A CN117333795A (en) 2023-09-13 2023-09-13 River surface flow velocity measurement method and system based on screening post-treatment

Publications (1)

Publication Number Publication Date
CN117333795A true CN117333795A (en) 2024-01-02

Family

ID=89276357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311187885.6A Pending CN117333795A (en) 2023-09-13 2023-09-13 River surface flow velocity measurement method and system based on screening post-treatment

Country Status (1)

Country Link
CN (1) CN117333795A (en)

Similar Documents

Publication Publication Date Title
CN110378844B (en) Image blind motion blur removing method based on cyclic multi-scale generation countermeasure network
CN106683048B (en) Image super-resolution method and device
CN109272509B (en) Target detection method, device and equipment for continuous images and storage medium
CN111160210B (en) Video-based water flow rate detection method and system
CN112017192B (en) Glandular cell image segmentation method and glandular cell image segmentation system based on improved U-Net network
CN110956615B (en) Image quality evaluation model training method and device, electronic equipment and storage medium
CN113658192B (en) Multi-target pedestrian track acquisition method, system, device and medium
CN110598613B (en) Expressway agglomerate fog monitoring method
CN111401387B (en) Abnormal sample construction method, device, computer equipment and storage medium
CN112818969A (en) Knowledge distillation-based face pose estimation method and system
CN113139489A (en) Crowd counting method and system based on background extraction and multi-scale fusion network
CN115661459A (en) 2D mean teacher model using difference information
CN113780110A (en) Method and device for detecting weak and small targets in image sequence in real time
CN112766123A (en) Crowd counting method and system based on criss-cross attention network
CN113111716A (en) Remote sensing image semi-automatic labeling method and device based on deep learning
CN112802076A (en) Reflection image generation model and training method of reflection removal model
CN111915595A (en) Image quality evaluation method, and training method and device of image quality evaluation model
CN114972339A (en) Data enhancement system for bulldozer structural member production abnormity detection
CN115908142A (en) Contact net tiny part damage testing method based on visual recognition
CN111507919A (en) Denoising processing method for three-dimensional point cloud data
Babu et al. An efficient image dahazing using Googlenet based convolution neural networks
Ljubičić et al. SSIMS-Flow: Image velocimetry workbench for open-channel flow rate estimation
CN115830514B (en) Whole river reach surface flow velocity calculation method and system suitable for curved river channel
CN113393385A (en) Unsupervised rain removal method, system, device and medium based on multi-scale fusion
CN116385281A (en) Remote sensing image denoising method based on real noise model and generated countermeasure network

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