[go: up one dir, main page]

CN106841673A - Device and method for measuring average flow velocity on river surface - Google Patents

Device and method for measuring average flow velocity on river surface Download PDF

Info

Publication number
CN106841673A
CN106841673A CN201710030722.5A CN201710030722A CN106841673A CN 106841673 A CN106841673 A CN 106841673A CN 201710030722 A CN201710030722 A CN 201710030722A CN 106841673 A CN106841673 A CN 106841673A
Authority
CN
China
Prior art keywords
motion
moment
average
river surface
time
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
CN201710030722.5A
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.)
Gansu Agricultural University
Original Assignee
Gansu Agricultural University
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 Gansu Agricultural University filed Critical Gansu Agricultural University
Priority to CN201710030722.5A priority Critical patent/CN106841673A/en
Publication of CN106841673A publication Critical patent/CN106841673A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P5/00Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft
    • G01P5/18Measuring speed of fluids, e.g. of air stream; Measuring speed of bodies relative to fluids, e.g. of ship, of aircraft by measuring the time taken to traverse a fixed distance

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

本发明提供一种测量河流表面的平均流速的方法和系统,所述方法包括:基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及基于比尺标定系数、所述一定时间内的平均位移以及帧间时间,获得一定时间内的平均流速。本发明不需要在水面投掷浮标,且可持续流速测量流速。

The present invention provides a method and system for measuring the average flow velocity of a river surface. The method includes: based on the river surface images at the current moment and the previous moment, obtaining the salient point or region of motion in the river surface image at the current moment ; Obtain the average displacement within a certain period of time based on the salient point of motion or the significant region of motion at each moment within a certain period of time; the average flow rate within. The invention does not need to throw buoys on the water surface, and can measure the flow velocity continuously.

Description

一种河流表面平均流速测量装置及方法Device and method for measuring average flow velocity on river surface

技术领域technical field

本发明涉及图像处理领域,更具体地,涉及河流表面平均流速测量装置及方法。The invention relates to the field of image processing, and more particularly, to a device and method for measuring the average flow velocity of a river surface.

背景技术Background technique

我国的河流众多,对于河流的综合利用,一直占据着我国国家经济与社会发展的重要地位。水文监测信息对预防治理洪涝和水旱灾害以及水资源调控具有重要作用。而流速测量是水文监测的重要工作之一,但是目前的流速测量方法用方面都有一定的局限性。常用的河水流速测量方法主要分为3类。There are many rivers in our country, and the comprehensive utilization of rivers has always occupied an important position in the national economic and social development of our country. Hydrological monitoring information plays an important role in the prevention and control of floods, floods and droughts, and the regulation of water resources. The flow rate measurement is one of the important tasks of hydrological monitoring, but the current flow rate measurement methods have certain limitations. The commonly used river flow velocity measurement methods are mainly divided into three categories.

第一类是传统的流速仪测量法,其主要原理是通过水流带动旋桨转动,记录旋桨转速,通过一定的映射关系可算出流速,但存在着当水质突变,含沙量变大时误差会变大,且水中漂浮物会影响其结果甚至损毁旋浆的问题。The first type is the traditional flow meter measurement method. Its main principle is to drive the propeller to rotate through the water flow, record the propeller speed, and calculate the flow velocity through a certain mapping relationship. However, when the water quality changes suddenly and the sediment concentration increases, the error will increase become larger, and the floating objects in the water will affect the result and even damage the propeller.

第二类是通过声学多普勒效应来测量流速,主要用于测量船,也存在着设备和人类投入比较大,成本比较高的问题。The second type is to measure the flow velocity through the acoustic Doppler effect, which is mainly used for measuring ships, but there are also problems of relatively large investment in equipment and human beings, and relatively high costs.

第三类是基于视频处理与浮标法结合的水流速度测量方法,频中浮标的运动轨迹结合摄像机标定来计算水流速度。The third category is the water velocity measurement method based on the combination of video processing and buoy method. The movement trajectory of the frequency mid-frequency buoy is combined with camera calibration to calculate the water velocity.

第三类方法的两个例子是:(1)发明专利“大范围表面流速长的图像处理系统及其同步实时测量方法”(申请号CN1289037A,2000年),(2)“基于视频处理的河水流速监测系统设计”(韩予皖,太原理工大学硕士论文,2010年)。两个例子均使用了浮标法与图像处理相结合的方案,在使用时需要投入浮标,然后在视频中跟踪浮标或示踪粒子的运动。这两个例子中,采用的跟踪原理都基于浮标与水面在颜色上有明显不同,以水面为背景,浮标为跟踪目标。但该方法需要向摄像机视场中投掷浮标,当浮标漂出摄像机的视场后,就无法检测流速,无法实现对水流速度的不间断实时测量;同时浮标的投掷和回收也是很麻烦的事情。Two examples of the third category of methods are: (1) Invention patent "Image processing system and its synchronous real-time measurement method for large-scale surface flow velocity" (application number CN1289037A, 2000), (2) "Video-based river water processing Flow Velocity Monitoring System Design" (Han Yuwan, Taiyuan University of Technology Master Thesis, 2010). Both examples use the combination of buoy method and image processing. When using it, you need to put in a buoy, and then track the movement of the buoy or tracer particles in the video. In these two examples, the tracking principle adopted is based on the obvious difference in color between the buoy and the water surface, with the water surface as the background and the buoy as the tracking target. However, this method needs to throw a buoy into the field of view of the camera. When the buoy floats out of the field of view of the camera, the flow velocity cannot be detected, and the uninterrupted real-time measurement of the water flow velocity cannot be realized. At the same time, the throwing and recovery of the buoy is also very troublesome.

发明内容Contents of the invention

本发明提供一种克服上述问题或者至少部分地解决上述问题的河流表面平均流速测量装置及方法。The present invention provides a device and method for measuring the average flow velocity of a river surface which overcomes the above-mentioned problems or at least partly solves the above-mentioned problems.

根据本发明的一个方面,提供一种测量河流表面的平均流速的方法,包括:According to one aspect of the present invention, there is provided a method of measuring the average flow velocity of a river surface, comprising:

S1、基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;S1. Based on the river surface image at the current moment and the previous moment, obtain the salient point or region of motion in the river surface image at the current moment;

S2、基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及S2. Obtain an average displacement within a certain period of time based on the significant points of movement or the significant regions of movement at each moment within a certain period of time; and

S3、基于比尺标定系数、所述一定时间内的平均位移以及帧间时间,获得一定时间内的平均流速。S3. Obtain an average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement within the certain period of time, and the time between frames.

根据本发明的另一个方面,还提供一种测量河流表面平均流速的系统,包括:According to another aspect of the present invention, there is also provided a system for measuring the average velocity of a river surface, comprising:

运动显著性检测装置,用于基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;A motion salience detection device, used to obtain a motion salience point or a motion salience area of the river surface image at the current moment based on the river surface image at the current moment and the previous moment;

平均位移检测装置,与所述运动显著性检测装置连接,基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及An average displacement detection device, connected to the motion salience detection device, based on the motion salience point or motion salience area at each moment within a certain period of time, to obtain the average displacement within a certain period of time; and

平均流速检测装置,与所述平均位移检测装置连接,所述平均流速检测装置用于基于比尺标定系数和一定时间内每个时刻的平均位移以及帧间时间,获得一定时间内的平均流速。The average flow velocity detection device is connected with the average displacement detection device, and the average flow velocity detection device is used to obtain the average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement at each moment within a certain period of time, and the time between frames.

本申请通过垂直于水面的摄像头获取河流视频,分析其中具有显著运动性的特征图,提取出其中的运动显著性区域或运动显著性点,跟踪各运动显著性区域或运动显著性点对应的位移,联立图像坐标系和与现实空间坐标系的位置映射关系以及帧间时间计算出河流表面实际流速。本申请不需要在水面投掷浮标,而是能利用河水流动过程中本身产生的波动纹理特征或自然漂浮物来测量河流表面平均流速的、且可持续流速测量流速。This application obtains river video through a camera perpendicular to the water surface, analyzes the feature map with significant motion, extracts the significant motion area or point, and tracks the displacement corresponding to each significant motion area or point , the actual flow velocity on the river surface is calculated by combining the image coordinate system and the position mapping relationship with the real space coordinate system and the time between frames. This application does not need to throw buoys on the water surface, but can use the fluctuating texture characteristics or natural floating objects generated during the flow of river water to measure the average flow velocity of the river surface, and the flow velocity can be measured continuously.

附图说明Description of drawings

图1为根据本发明实施例的一种测量河流表面的平均流速的方法流程图;Fig. 1 is a kind of flow chart of the method for measuring the average flow velocity of river surface according to the embodiment of the present invention;

图2为根据本发明实施例的测量河流表面的平均流速的方法的直方图;Fig. 2 is a histogram of a method for measuring the average velocity of a river surface according to an embodiment of the present invention;

图3为根据本发明实施例的测量河流表面平均流速的系统的结构框图。Fig. 3 is a structural block diagram of a system for measuring the average velocity of a river surface according to an embodiment of the present invention.

具体实施方式detailed description

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

为了克服现有技术中需要在水面上投掷浮标,导致的当浮标漂出摄像机的视场后无法检测流速的问题,以及投掷及回收麻烦的问题,本发明提供了一种利用河水流动过程中本身产生的波动纹理特征或自然漂浮物来测量河流表面平均流速的、且可持续流速测量流速的方法。In order to overcome the problem in the prior art that it is necessary to throw buoys on the water surface, the flow velocity cannot be detected when the buoy floats out of the field of view of the camera, and the problem of troublesome throwing and recovery, the present invention provides a method that utilizes the flow of river water itself It is a method of measuring the average velocity of the river surface by fluctuating texture features or natural floating objects, and continuously measuring the velocity of the velocity.

图1示出了根据本发明实施例的一种测量河流表面的平均流速的方法流程图,包括:Fig. 1 shows a flow chart of a method for measuring the average velocity of a river surface according to an embodiment of the present invention, including:

S1、基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;S1. Based on the river surface image at the current moment and the previous moment, obtain the salient point or region of motion in the river surface image at the current moment;

S2、基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及S2. Obtain an average displacement within a certain period of time based on the significant points of movement or the significant regions of movement at each moment within a certain period of time; and

S3、基于比尺标定系数、所述一定时间内的平均位移以及帧间时间,获得一定时间内的平均流速。S3. Obtain an average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement within the certain period of time, and the time between frames.

本发明通过垂直于水面的摄像头获取河流视频(序列图像),分析其中具有显著运动性的特征图,提取出其中的运动显著性特征点,跟踪各运动显著性特征点对应的像素位移,联立图像坐标系和与现实空间坐标系的位置映射关系以及帧间时间计算出河流表面实际流速。The present invention obtains river video (sequence images) through a camera perpendicular to the water surface, analyzes the feature map with significant motion, extracts the motion salient feature points, tracks the pixel displacement corresponding to each motion salient feature point, and simultaneously The image coordinate system and the position mapping relationship with the real space coordinate system and the time between frames are used to calculate the actual flow velocity of the river surface.

在一个实施例中,本发明提供了一种基于运动显著性区域获得平均位移的方法,其中,所述步骤S1包括:In one embodiment, the present invention provides a method for obtaining an average displacement based on a motion salient area, wherein the step S1 includes:

S1.1、基于t时刻的河流表面图像Pt和t-1时刻的河流表面图像Pt-1的帧差,获得t时刻的运动显著性特征图xt。同理,基于t+1时刻的河流表面图像Pt+1和t时刻的河流表面图像Pt,获得t+1时刻的运动显著性特征图xt+1S1.1. Based on the frame difference between the river surface image P t at time t and the river surface image P t-1 at time t-1 , obtain the motion saliency feature map x t at time t . Similarly, based on the river surface image P t+1 at time t+1 and the river surface image P t at time t, the motion saliency feature map x t+ 1 at time t+1 is obtained.

帧差,也称之为帧间差分,是一种通过对视频图像序列中相邻两帧作差分运算来获得运动目标轮廓的方法,它可以很好地适用于存在多个运动目标和摄像机移动的情况。当监控场景中出现异常物体运动时,帧与帧之间会出现较为明显的差别,两帧相减,得到两帧图像亮度差的绝对值,判断它是否大于阈值来分析视频或图像序列的运动特性,确定图像序列中有无物体运动。Frame difference, also known as inter-frame difference, is a method of obtaining the outline of a moving target by performing a differential operation on two adjacent frames in a video image sequence, which can be well suited for multiple moving targets and camera movement Case. When abnormal objects move in the monitoring scene, there will be obvious differences between frames. Subtract the two frames to get the absolute value of the brightness difference between the two frames, and judge whether it is greater than the threshold to analyze the motion of the video or image sequence. feature to determine the presence or absence of object motion in an image sequence.

S1.2、基于所述当前时刻的运动显著性特征图,获得当前时刻的河流表面图像的运动显著性区域。S1.2. Based on the motion saliency feature map at the current moment, obtain the motion saliency region of the river surface image at the current moment.

在一个实施例中,所述步骤S1.2包括:In one embodiment, the step S1.2 includes:

S1.2.1、将t时刻的运动显著性特征图二值化,获得二值图。图像的二值化,就是将图像上的像素点的灰度值设置为0或255,也就是将整个图像呈现出明显的只有黑和白的视觉效果。最常用的方法就是设定一个阈值T,用T将图像的数据分成两部分:大于T的像素群和小于T的像素群。S1.2.1. Binarize the motion saliency feature map at time t to obtain a binary map. The binarization of the image is to set the gray value of the pixels on the image to 0 or 255, that is, to present the entire image with an obvious visual effect of only black and white. The most commonly used method is to set a threshold T, and use T to divide the data of the image into two parts: the pixel group larger than T and the pixel group smaller than T.

S1.2.2、在所述二值图上选取Nt,1个连通域,任意一个所述连通域为长度或宽度为20-100像素点的矩形。二值图像分析最重要的方法就是连通区域标记,它是所有二值图像分析的基础,它通过对二值图像中白色像素(目标)的标记,让每个单独的连通区域形成一个被标识的块,即为连通域。S1.2.2. Select N t,1 connected domains on the binary image, and any one of the connected domains is a rectangle with a length or width of 20-100 pixels. The most important method of binary image analysis is connected area marking, which is the basis of all binary image analysis. It allows each individual connected area to form a marked by marking the white pixels (targets) in the binary image. A block is a connected domain.

S1.2.3、将所述连通域作为蒙版,蒙版就是选框的外部(选框的内部就是选区),查找t时刻的运动显著性特征图中对应所述连通域的位置,作为所述运动显著性区域,这些运动显著性区域的集合记为{ft,i}(i=1,2,…,Nt,1|t=1,2,…)。S1.2.3, using the connected domain as a mask, the mask is the outside of the marquee (the inside of the marquee is the constituency), find the position corresponding to the connected domain in the motion saliency feature map at time t, as the Motion salient regions, the set of these motion salient regions is denoted as {ft ,i }(i=1,2,...,N t,1 |t=1,2,...).

在一个实施例中,所述二值化的阈值为所述运动显著性特征图的灰度最大值的0.9倍。In one embodiment, the binarization threshold is 0.9 times the maximum gray value of the motion saliency feature map.

在一个实施例中,所述步骤S2包括:In one embodiment, the step S2 includes:

S2.1、在t时刻的显著性特征图中搜索与t-1时刻的每个运动显著性区域匹配的匹配区域;S2.1. Search for a matching region that matches each motion salient region at time t-1 in the salient feature map at time t;

S2.2、计算所述匹配区域在t-1时刻至t时刻在运动显著性特征图中相对位移;以及S2.2. Calculate the relative displacement of the matching region in the motion saliency feature map from time t-1 to time t; and

S2.3、基于一定时间内每一时刻对应的匹配区域的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为所述一定时间内的平均位移。S2.3. Obtain a histogram of relative displacement based on the relative displacement of the corresponding matching area at each moment within a certain period of time, and use the average value of the peak value in the histogram and a certain range of values near the peak value as the certain Average displacement over time.

对于一个模板ft,i,若能在运动显著性特征图xt+1中搜索到其匹配区域,计算该匹配区域坐标与ft,i在xt中坐标的相对位移,若所有在xt+1中能找到匹配区域的模板个数为Nt,2,则得到各运动显著性区域的相对位移集合{st+1,j}(i=1,2,…,Nt,2|t=1,2,…)。For a template f t,i , if the matching area can be found in the motion saliency feature map x t+1 , calculate the relative displacement between the coordinates of the matching area and the coordinates of f t,i in x t , if all in x The number of templates that can find matching regions in t+1 is N t,2 , then the relative displacement set {s t+1,j } (i=1,2,...,N t,2 |t=1, 2, ...).

在一个实施例中,本发明还提供了一种基于运动显著性点获得平均位移的方法,其中,所述步骤S1包括:In one embodiment, the present invention also provides a method for obtaining an average displacement based on a motion salient point, wherein the step S1 includes:

S1.1、基于t时刻和t-1时刻的河流表面图像的帧差,获得当前时刻的运动显著性特征图;S1.1. Based on the frame difference between the river surface images at time t and time t-1, obtain the motion saliency feature map at the current time;

S1.2、基于角点检测法(如Harris算子),检测所述运动显著性特征图中的关键点,获得t时刻的所述运动显著性点,其集合记为{ft,i}(i=1,2,…,Nt,1|t=1,2,…)。S1.2. Based on the corner point detection method (such as the Harris operator), detect the key points in the motion saliency feature map, and obtain the motion salience points at time t, whose set is denoted as {ft , i } (i=1, 2, . . . , N t, 1 | t=1, 2, . . . ).

在一个实施例中,所述步骤S2包括:In one embodiment, the step S2 includes:

S2.1、对一定时间内每个时刻的运动显著性特征图中所述运动显著性点的sift特征,从t时刻的运动显著性点中搜索与t-1时刻的运动显著性点的sift特征匹配的点,作为匹配点。S2.1. For the SIFT feature of the motion salient point in the motion salient feature map at each moment within a certain period of time, search for the SIFT of the motion salient point at time t-1 from the motion salient points at time t The points where the features match are used as matching points.

在一个实施例中,对于所述匹配点进行消噪处理(如采用Ransac算法),去除错误匹配的匹配点,保留正确的匹配点。In one embodiment, denoising processing (for example, using Ransac algorithm) is performed on the matching points to remove incorrect matching points and retain correct matching points.

S2.2、计算所述匹配点在t-1时刻至t时刻在运动显著性特征图中相对位移,若所有在xt中能找到匹配点个数为Nt,m,则得到t时刻各运动显著性点的相对位移集合{st,k}(k=1,2,…,Nt,m|t=1,2,…)。S2.2. Calculate the relative displacement of the matching points in the motion saliency feature map from time t-1 to time t. If the number of matching points that can be found in x t is N t,m , then each The set of relative displacements {s t, k } (k=1, 2, ..., N t, m |t = 1, 2, ...) of the motion salient points.

S2.3、基于一定时间内每一时刻对应的匹配点的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为一定时间内的平均位移。S2.3. Based on the relative displacement of the corresponding matching point at each moment within a certain period of time, obtain a histogram of relative displacement, and use the average value of the peak value in the histogram and the value of a certain range of areas near the peak value as a certain period of time the average displacement.

在一个实施例中,所述步骤S3包括:在一段时间内获得很多时刻的匹配点或者匹配区域的位移,然后做出这些位移的直方图,通常会形成一个单峰的图形,我们找到峰值(p)的位置,此处是在一段时间内计算得到位移最集中的区域。不过我们还是考虑了p之外的位移对总平均位移的贡献,可在p周围取一段范围(±⊿p),即取区间[p-⊿p,p+⊿p],将计算时间段内所有帧间位移在此范围内的位移统统加起来平均,也就是平均位移是算的总平均位移,这样有助于消除后续用模板匹配法时某些帧间的匹配错误造成的误差。In one embodiment, the step S3 includes: obtaining the displacement of matching points or matching regions at many moments in a period of time, and then making a histogram of these displacements, which usually forms a single-peak graph, and we find the peak ( p), which is the area where the calculated displacement is most concentrated within a period of time. However, we still consider the contribution of displacements other than p to the total average displacement. We can take a range (±⊿p) around p, that is, take the interval [p-⊿p, p+⊿p], and calculate all The inter-frame displacements within this range are all added up and averaged, that is, the average displacement is the total average displacement, which helps to eliminate errors caused by some inter-frame matching errors in the subsequent template matching method.

图2示出了本发明实施例中的直方图,图中横坐标是以像素为单位的位移,纵坐标是在某个位移上的区域数量。从图2可以看出,位移是27像素左右时堆积的区域数量最多,因此将27视为峰值,在其周围取一个范围,如±5像素,则只对在[22,32]范围内的位移进行平均,可以计算出一段时间内的平均位移。图2中看出有些位移是很大的(如43以后的),我们将其视为在模板匹配时错误匹配造成的,或者是噪声。FIG. 2 shows a histogram in an embodiment of the present invention, where the abscissa in the figure is the displacement in units of pixels, and the ordinate is the number of regions at a certain displacement. It can be seen from Figure 2 that when the displacement is about 27 pixels, the number of accumulated areas is the largest, so 27 is regarded as the peak value, and a range is taken around it, such as ±5 pixels, only for the range of [22, 32] The displacement is averaged to calculate the average displacement over a period of time. It can be seen from Figure 2 that some displacements are very large (such as those after 43), and we regard them as caused by mismatching during template matching, or noise.

在一个实施例中,所述步骤S3之前还包括;In one embodiment, before the step S3, it also includes;

基于摄像距离、摄像角度以及摄像焦距,获得所述比尺标定系数:Based on the camera distance, camera angle and camera focal length, the scale calibration coefficient is obtained:

fn=z/aff n =z/af

其中,fn为比尺标定系数,z为摄像机镜头焦点至水面的距离,α为成像平面到图像平面的放大倍数,f为摄像机镜头的焦距。Among them, f n is the scale calibration coefficient, z is the distance from the focal point of the camera lens to the water surface, α is the magnification from the imaging plane to the image plane, and f is the focal length of the camera lens.

在一个实施例中,所述基于比尺标定系数和一定时间内每个时刻的平均位移以及帧间时间,获得一定时间内的平均流速的计算表达式为:In one embodiment, the calculation expression for obtaining the average flow velocity within a certain period of time based on the scale calibration coefficient and the average displacement at each moment within a certain period of time and the time between frames is:

其中,fn为比尺标定系数,为平均位移,△t为帧间时间,v为平均河流表面速度。Among them, fn is the scale calibration coefficient, is the average displacement, Δt is the time between frames, and v is the average river surface velocity.

图3示出了本发明的一种测量河流表面平均流速的系统的结构框图,包括:Fig. 3 shows a kind of structural block diagram of the system of measuring river surface average velocity of the present invention, comprises:

运动显著性检测装置,用于基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;A motion salience detection device, used to obtain a motion salience point or a motion salience area of the river surface image at the current moment based on the river surface image at the current moment and the previous moment;

平均位移检测装置,与所述运动显著性检测装置连接,基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及An average displacement detection device, connected to the motion salience detection device, based on the motion salience point or motion salience area at each moment within a certain period of time, to obtain the average displacement within a certain period of time; and

平均流速检测装置,与所述平均位移检测装置连接,所述平均流速检测装置用于基于比尺标定系数和一定时间内每个时刻的平均位移以及帧间时间,获得一定时间内的平均流速。The average flow velocity detection device is connected with the average displacement detection device, and the average flow velocity detection device is used to obtain the average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement at each moment within a certain period of time, and the time between frames.

在一个实施例中,所述运动显著性检测装置包括:In one embodiment, the motion salience detection device includes:

特征图生成模块,用于基于当前时刻和前一时刻的河流表面图像的帧差,获得当前时刻的运动显著性特征图;以及A feature map generation module, used to obtain a motion saliency feature map at the current moment based on the frame difference between the current moment and the river surface image at the previous moment; and

显著性检测模块,与所述特征图生成模块连接,所述显著性检测模块基于所述当前时刻的运动显著性特征图,获得当前时刻的河流表面图像的运动显著性区域。The saliency detection module is connected with the feature map generation module, and the salience detection module obtains the motion salience area of the river surface image at the current moment based on the motion saliency feature map at the current moment.

在一个实施例中,所述平均位移检测装置包括:In one embodiment, the average displacement detection device includes:

匹配区域检查模块,与所述特征图生成模块和显著性检测模块连接,所述匹配区域检查模块用于在当前时刻的显著性特征图中搜索与前一时刻的每个运动显著性区域匹配的匹配区域;A matching area checking module, connected with the feature map generation module and the saliency detection module, the matching area checking module is used to search the saliency feature map at the current moment and each motion saliency area matching at the previous moment matching area;

相对位移计算模块,与所述匹配区域检查模块连接,所述相对位移计算模块用于计算所述匹配区域在前一时刻至当前时刻在运动显著性特征图中相对位移;以及A relative displacement calculation module, connected to the matching area inspection module, the relative displacement calculation module is used to calculate the relative displacement of the matching area in the motion salience feature map from the previous moment to the current moment; and

平均位移计算模块,基于一定时间内每一时刻对应的匹配区域的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为所述一定时间内的平均位移。The average displacement calculation module obtains a histogram of relative displacement based on the relative displacement of the corresponding matching area at each moment within a certain period of time, and the average value of the peak value in the histogram and a certain range of values around the peak value is used as the Average displacement over time.

在一个实施例中,河流表面图像是在结合水平仪的情况下,将摄像机的主光轴垂直于水面、并且镜头对准河流拍摄的。In one embodiment, the image of the river surface is taken with the main optical axis of the camera perpendicular to the water surface and the lens aimed at the river in combination with a level.

在一个实施例中,摄像机镜头焦点至水面的距离是通过微波测距仪获得的。In one embodiment, the distance from the focal point of the camera lens to the water surface is obtained through a microwave range finder.

最后,本申请的方法仅为较佳的实施方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, the method of the present application is only a preferred embodiment, and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种测量河流表面的平均流速的方法,其特征在于,包括:1. A method for measuring the average velocity of a river surface, characterized in that, comprising: S1、基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;S1. Based on the river surface image at the current moment and the previous moment, obtain the salient point or region of motion in the river surface image at the current moment; S2、基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及S2. Obtain an average displacement within a certain period of time based on the significant points of movement or the significant regions of movement at each moment within a certain period of time; and S3、基于比尺标定系数、所述一定时间内的平均位移以及帧间时间,获得一定时间内的平均流速。S3. Obtain an average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement within the certain period of time, and the time between frames. 2.如权利要求1所述的测量河流表面平均流速的方法,其特征在于,所述步骤S1包括:2. the method for measuring river surface average velocity as claimed in claim 1, is characterized in that, described step S1 comprises: S1.1、基于当前时刻和前一时刻的河流表面图像的帧差,获得当前时刻的运动显著性特征图;以及S1.1. Obtain the motion saliency feature map at the current moment based on the frame difference between the river surface image at the current moment and the previous moment; and S1.2、基于所述当前时刻的运动显著性特征图,获得当前时刻的河流表面图像的运动显著性区域。S1.2. Based on the motion saliency feature map at the current moment, obtain the motion saliency region of the river surface image at the current moment. 3.如权利要求2所述的测量河流表面平均流速的方法,其特征在于,所述步骤S1.2包括:3. the method for measuring river surface average velocity as claimed in claim 2, is characterized in that, described step S1.2 comprises: S1.2.1、将当前时刻的运动显著性特征图二值化,获得二值图;S1.2.1. Binarize the motion saliency feature map at the current moment to obtain a binary map; S1.2.2、在所述二值图上选取若干个连通域,任意一个所述连通域为长度或宽度为20-100像素点的矩形;以及S1.2.2. Select several connected domains on the binary image, any one of which is a rectangle with a length or width of 20-100 pixels; and S1.2.3、将所述连通域作为蒙版,查找当前时刻的运动显著性特征图中对应所述连通域的位置,作为所述运动显著性区域。S1.2.3. Using the connected domain as a mask, find the position corresponding to the connected domain in the motion saliency feature map at the current moment, and use it as the motion saliency region. 4.如权利要求3所述的测量河流表面平均流速的方法,其特征在于,所述步骤S2包括:4. the method for measuring river surface average velocity as claimed in claim 3, is characterized in that, described step S2 comprises: S2.1、在当前时刻的显著性特征图中搜索与前一时刻的每个运动显著性区域匹配的匹配区域;S2.1. Search for a matching region that matches each motion salient region at the previous moment in the salient feature map at the current moment; S2.2、计算所述匹配区域在前一时刻至当前时刻在运动显著性特征图中相对位移;以及S2.2. Calculate the relative displacement of the matching region in the motion saliency feature map from the previous moment to the current moment; and S2.3、基于一定时间内每一时刻对应的匹配区域的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为所述一定时间内的平均位移。S2.3. Obtain a histogram of relative displacement based on the relative displacement of the corresponding matching area at each moment within a certain period of time, and use the average value of the peak value in the histogram and a certain range of values near the peak value as the certain Average displacement over time. 5.如权利要求1所述的测量河流表面平均流速的方法,其特征在于,所述步骤S1包括:5. the method for measuring river surface average velocity as claimed in claim 1, is characterized in that, described step S1 comprises: S1.1、基于当前时刻和前一时刻的河流表面图像的帧差,获得当前时刻的运动显著性特征图;S1.1. Obtain the motion saliency feature map at the current moment based on the frame difference between the river surface image at the current moment and the previous moment; S1.2、基于角点检测法,检测所述运动显著性特征图中的关键点,获得该时刻的所述运动显著性点。S1.2. Based on a corner point detection method, detect key points in the motion saliency feature map, and obtain the motion salience point at this moment. 6.如权利要求5所述的测量河流表面平均流速的方法,其特征在于,所述步骤S2包括:6. the method for measuring river surface average velocity as claimed in claim 5, is characterized in that, described step S2 comprises: S2.1、对一定时间内每个时刻的运动显著性特征图中所述运动显著性点的sift特征,从当前时刻的运动显著性点中搜索与前一时刻的运动显著性点的sift特征匹配的点,作为匹配点;S2.1. For the SIFT feature of the motion salient point in the motion salient feature map at each moment within a certain period of time, search for the SIFT feature of the motion salient point at the previous moment from the motion salient points at the current moment Matching points, as matching points; S2.2、计算所述匹配点在前一时刻至当前时刻在运动显著性特征图中相对位移;以及S2.2. Calculate the relative displacement of the matching point in the motion saliency feature map from the previous moment to the current moment; and S2.3、基于一定时间内每一时刻对应的匹配点的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为一定时间内的平均位移。S2.3. Based on the relative displacement of the corresponding matching point at each moment within a certain period of time, obtain a histogram of relative displacement, and use the average value of the peak value in the histogram and the value of a certain range of areas near the peak value as a certain period of time the average displacement. 7.如权利要求1所述的测量河流表面平均流速的方法,其特征在于,所述步骤S3之前还包括:7. the method for measuring river surface average velocity as claimed in claim 1, is characterized in that, also comprises before described step S3: 基于摄像距离、摄像角度以及摄像焦距,获得所述比尺标定系数。The scale calibration coefficient is obtained based on the camera distance, camera angle and camera focal length. 8.一种测量河流表面平均流速的系统,其特征在于,包括:8. A system for measuring the average velocity of a river surface, comprising: 运动显著性检测装置,用于基于当前时刻和前一时刻的河流表面图像,获得当前时刻的河流表面图像的运动显著性点或运动显著性区域;A motion salience detection device, used to obtain a motion salience point or a motion salience area of the river surface image at the current moment based on the river surface image at the current moment and the previous moment; 平均位移检测装置,与所述运动显著性检测装置连接,基于一定时间内每一时刻的运动显著性点或运动显著性区域,获得一定时间内的平均位移;以及An average displacement detection device, connected to the motion salience detection device, based on the motion salience point or motion salience area at each moment within a certain period of time, to obtain the average displacement within a certain period of time; and 平均流速检测装置,与所述平均位移检测装置连接,所述平均流速检测装置用于基于比尺标定系数和一定时间内每个时刻的平均位移以及帧间时间,获得一定时间内的平均流速。The average flow velocity detection device is connected with the average displacement detection device, and the average flow velocity detection device is used to obtain the average flow velocity within a certain period of time based on the scale calibration coefficient, the average displacement at each moment within a certain period of time, and the time between frames. 9.如权利要求8所述的测量河流表面平均流速的系统,其特征在于,所述运动显著性检测装置包括:9. The system for measuring the average velocity of the river surface as claimed in claim 8, wherein the motion significance detection device comprises: 特征图生成模块,用于基于当前时刻和前一时刻的河流表面图像的帧差,获得当前时刻的运动显著性特征图;以及A feature map generation module, used to obtain a motion saliency feature map at the current moment based on the frame difference between the current moment and the river surface image at the previous moment; and 显著性检测模块,与所述特征图生成模块连接,所述显著性检测模块基于所述当前时刻的运动显著性特征图,获得当前时刻的河流表面图像的运动显著性区域。The saliency detection module is connected with the feature map generation module, and the salience detection module obtains the motion salience area of the river surface image at the current moment based on the motion saliency feature map at the current moment. 10.如权利要求9所述的测量河流表面平均流速的系统,其特征在于,所述平均位移检测装置包括:10. the system of measuring river surface average flow velocity as claimed in claim 9, is characterized in that, described average displacement detection device comprises: 匹配区域检查模块,与所述特征图生成模块和显著性检测模块连接,所述匹配区域检查模块用于在当前时刻的显著性特征图中搜索与前一时刻的每个运动显著性区域匹配的匹配区域;A matching area checking module, connected with the feature map generation module and the saliency detection module, the matching area checking module is used to search the saliency feature map at the current moment and each motion saliency area matching at the previous moment matching area; 相对位移计算模块,与所述匹配区域检查模块连接,所述相对位移计算模块用于计算所述匹配区域在前一时刻至当前时刻在运动显著性特征图中相对位移;以及A relative displacement calculation module, connected to the matching area inspection module, the relative displacement calculation module is used to calculate the relative displacement of the matching area in the motion salience feature map from the previous moment to the current moment; and 平均位移计算模块,基于一定时间内每一时刻对应的匹配区域的相对位移,获得相对位移的直方图,对所述直方图内峰值以及峰值附近一定范围的区域的值的平均值,作为所述一定时间内的平均位移。The average displacement calculation module obtains a histogram of relative displacement based on the relative displacement of the corresponding matching area at each moment within a certain period of time, and the average value of the peak value in the histogram and a certain range of values around the peak value is used as the Average displacement over time.
CN201710030722.5A 2017-01-16 2017-01-16 Device and method for measuring average flow velocity on river surface Pending CN106841673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710030722.5A CN106841673A (en) 2017-01-16 2017-01-16 Device and method for measuring average flow velocity on river surface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710030722.5A CN106841673A (en) 2017-01-16 2017-01-16 Device and method for measuring average flow velocity on river surface

Publications (1)

Publication Number Publication Date
CN106841673A true CN106841673A (en) 2017-06-13

Family

ID=59123284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710030722.5A Pending CN106841673A (en) 2017-01-16 2017-01-16 Device and method for measuring average flow velocity on river surface

Country Status (1)

Country Link
CN (1) CN106841673A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187142A (en) * 2019-06-13 2019-08-30 上海彩虹鱼海洋科技股份有限公司 Flow monitoring method and system
CN110632339A (en) * 2019-10-09 2019-12-31 天津天地伟业信息系统集成有限公司 Water flow testing method of video flow velocity tester
CN113077488A (en) * 2021-04-02 2021-07-06 昆明理工大学 River surface flow velocity detection method and device
CN113822909A (en) * 2021-09-30 2021-12-21 中科(厦门)数据智能研究院 Water flow velocity measurement method based on motion enhancement features
CN116679080A (en) * 2023-05-30 2023-09-01 广州伏羲智能科技有限公司 River surface flow velocity determining method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202502107U (en) * 2012-03-20 2012-10-24 河海大学 A device for monitoring river surface velocity based on feature tracking
CN104036522A (en) * 2014-04-16 2014-09-10 嘉兴博海信息科技有限公司 Water flowing speed monitoring method based on moving target identification in videos
CN104777327A (en) * 2015-03-17 2015-07-15 河海大学 Time-space image speed measuring system and method based on auxiliary laser calibration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202502107U (en) * 2012-03-20 2012-10-24 河海大学 A device for monitoring river surface velocity based on feature tracking
CN104036522A (en) * 2014-04-16 2014-09-10 嘉兴博海信息科技有限公司 Water flowing speed monitoring method based on moving target identification in videos
CN104777327A (en) * 2015-03-17 2015-07-15 河海大学 Time-space image speed measuring system and method based on auxiliary laser calibration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李刚: "基于图像处理的山溪性河流流速测量研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187142A (en) * 2019-06-13 2019-08-30 上海彩虹鱼海洋科技股份有限公司 Flow monitoring method and system
CN110632339A (en) * 2019-10-09 2019-12-31 天津天地伟业信息系统集成有限公司 Water flow testing method of video flow velocity tester
CN113077488A (en) * 2021-04-02 2021-07-06 昆明理工大学 River surface flow velocity detection method and device
CN113077488B (en) * 2021-04-02 2022-07-01 昆明理工大学 Method and device for detecting flow velocity on a river surface
CN113822909A (en) * 2021-09-30 2021-12-21 中科(厦门)数据智能研究院 Water flow velocity measurement method based on motion enhancement features
CN113822909B (en) * 2021-09-30 2023-12-08 中科(厦门)数据智能研究院 Water flow velocity measurement method based on motion enhancement features
CN116679080A (en) * 2023-05-30 2023-09-01 广州伏羲智能科技有限公司 River surface flow velocity determining method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN113012195B (en) Method for river surface flow velocity estimation based on optical flow calculation and readable storage medium
CN106841673A (en) Device and method for measuring average flow velocity on river surface
CN108805904B (en) A moving ship detection and tracking method based on satellite image sequence
CN105354541B (en) The SAR image object detection method of view-based access control model attention model and constant false alarm rate
CN105427342B (en) A kind of underwater Small object sonar image target detection tracking method and system
Stolle et al. Optical tracking of floating shipping containers in a high-velocity flow
CN109859247B (en) Near-ground scene infrared small target detection method
CN105225229B (en) Device and method for locating fish trajectories over dams based on video signals
CN104301712B (en) Monitoring camera shake detection method based on video analysis
CN104036522A (en) Water flowing speed monitoring method based on moving target identification in videos
CN109636758A (en) A kind of floating on water object detecting method based on space-time dynamic operator
AU2018282347A1 (en) Method and apparatus for monitoring vortex-induced vibration of wind turbine
Zhen et al. Design and evaluation of an FFT-based space-time image velocimetry (STIV) for time-averaged velocity measurement
Yongshou et al. Sea-sky-line detection based on local Otsu segmentation and Hough transform
Cao et al. Airborne Feature Matching Velocimetry for surface flow measurements in rivers
CN111914695A (en) A Tide Monitoring Method Based on Machine Vision
CN110852992A (en) Ship trail detection method based on top hat transformation and Radon transformation
Zhen et al. IP camera-based LSPIV system for on-line monitoring of river flow
Cao et al. River surface velocity estimation using optical flow velocimetry improved with attention mechanism and position encoding
CN116466104A (en) Video current measurement method and device based on LK tracking and gray statistics feature method
Chen et al. Dust particle detection in traffic surveillance video using motion singularity analysis
Li et al. A robust filtering algorithm based on the estimation of tracer visibility and stability for large scale particle image velocimetry
Tung-Ching Segmentation of crack and open joint in sewer pipelines based on CCTV inspection images
Wu et al. River surface velocimetry based on virtual river dataset and modulated-RAFT
CN105869108B (en) A kind of method for registering images in the mobile target detecting of moving platform

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613

RJ01 Rejection of invention patent application after publication