CN101900687B - Method for monitoring and early warning water bloom in small water area based on image processing - Google Patents
Method for monitoring and early warning water bloom in small water area based on image processing Download PDFInfo
- Publication number
- CN101900687B CN101900687B CN2010102185112A CN201010218511A CN101900687B CN 101900687 B CN101900687 B CN 101900687B CN 2010102185112 A CN2010102185112 A CN 2010102185112A CN 201010218511 A CN201010218511 A CN 201010218511A CN 101900687 B CN101900687 B CN 101900687B
- Authority
- CN
- China
- Prior art keywords
- area
- bloom
- water
- early warning
- color lump
- 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.)
- Expired - Fee Related
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 92
- 241000192710 Microcystis aeruginosa Species 0.000 title claims abstract description 44
- 238000012544 monitoring process Methods 0.000 title claims abstract description 44
- 238000012545 processing Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 title claims abstract description 21
- 241000195493 Cryptophyta Species 0.000 claims abstract description 57
- 239000003643 water by type Substances 0.000 claims abstract description 28
- 230000008859 change Effects 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 11
- 230000000007 visual effect Effects 0.000 claims description 7
- 238000013519 translation Methods 0.000 claims description 5
- 239000003086 colorant Substances 0.000 claims description 4
- 230000008569 process Effects 0.000 claims description 4
- 238000013139 quantization Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 3
- 238000012417 linear regression Methods 0.000 claims description 3
- 238000012360 testing method Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims 1
- 238000005259 measurement Methods 0.000 claims 1
- 238000004364 calculation method Methods 0.000 abstract description 7
- 239000003651 drinking water Substances 0.000 abstract description 6
- 235000020188 drinking water Nutrition 0.000 abstract description 6
- 238000011144 upstream manufacturing Methods 0.000 abstract description 4
- 239000005422 algal bloom Substances 0.000 description 14
- 230000006870 function Effects 0.000 description 10
- 238000012423 maintenance Methods 0.000 description 5
- 238000007781 pre-processing Methods 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000007613 environmental effect Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 241000192700 Cyanobacteria Species 0.000 description 3
- 238000010606 normalization Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- IJGRMHOSHXDMSA-UHFFFAOYSA-N Atomic nitrogen Chemical compound N#N IJGRMHOSHXDMSA-UHFFFAOYSA-N 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000013505 freshwater Substances 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 241000195628 Chlorophyta Species 0.000 description 1
- OAICVXFJPJFONN-UHFFFAOYSA-N Phosphorus Chemical compound [P] OAICVXFJPJFONN-UHFFFAOYSA-N 0.000 description 1
- 239000002154 agricultural waste Substances 0.000 description 1
- 231100000357 carcinogen Toxicity 0.000 description 1
- 239000003183 carcinogenic agent Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000010791 domestic waste Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003344 environmental pollutant Substances 0.000 description 1
- 238000012851 eutrophication Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 239000002440 industrial waste Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000116 mitigating effect Effects 0.000 description 1
- 229910052757 nitrogen Inorganic materials 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 229910052698 phosphorus Inorganic materials 0.000 description 1
- 239000011574 phosphorus Substances 0.000 description 1
- 231100000719 pollutant Toxicity 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 239000003053 toxin Substances 0.000 description 1
- 231100000765 toxin Toxicity 0.000 description 1
- 108700012359 toxins Proteins 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
一种基于图像处理的小型水域水华监测预警方法,涉及小型水域的水华监测预警方法。本发明利用摄像头和计算机,通过程序进行计算,实现小型水域的水华监测预警。本发明具有监测设备简单,对环境适用能力强;算法计算量小、速度快,对硬件要求低,能直接植入现有的水面视频监测系统或开发成嵌入式设备或直接在计算机上运行,均能实时快速有效地进行水华预警;灵活方便,成本低,便于维护等特点。本发明可广泛地应用于江、河上游水库、城镇饮用水源的水库、城镇取水区河段或常发生水华的江、河、湖泊区及景观水域等的小型水域的水华监测预警。
An image processing-based monitoring and early warning method for algal blooms in small water areas relates to the monitoring and early warning methods for algal blooms in small water areas. The invention utilizes a camera and a computer to perform calculation through a program to realize monitoring and early warning of algae blooms in small water areas. The invention has the advantages of simple monitoring equipment and strong adaptability to the environment; the calculation amount of the algorithm is small, the speed is fast, and the hardware requirements are low, and it can be directly implanted into the existing water surface video monitoring system or developed into an embedded device or run directly on the computer. All can carry out early warning of water bloom quickly and effectively in real time; flexible and convenient, low cost, easy to maintain and so on. The invention can be widely used in monitoring and early warning of water blooms in rivers, upstream reservoirs of rivers, reservoirs of urban drinking water sources, river sections of urban water intake areas, or small water areas such as rivers, rivers, lake areas and landscape waters where algal blooms often occur.
Description
技术领域 technical field
本发明属于水环境监测技术领域,具体涉及小型水域(即江、河上游水库、城镇饮用水源的水库、城镇取水区河段、常发生水华的江、河、湖泊区及景观水域等)的水华监测预警方法。The invention belongs to the technical field of water environment monitoring, and in particular relates to small water areas (namely, rivers, upstream reservoirs of rivers, reservoirs of urban drinking water sources, river sections of urban water intake areas, rivers, rivers, lake areas and landscape water areas where algal blooms often occur) Water bloom monitoring and early warning method.
背景技术 Background technique
近年来,随着工业、科技的飞速发展,大量的含有大量氮、磷的工、农业及生活废弃物排入水中,致使江、河、湖泊等水域的淡水出现富营养化而暴发水华(如绿藻水华、蓝藻水华等),我国的太湖、滇池、巢湖、洪泽湖都发生过水华,水华造成是最大危害是:①藻类毒素通过食物链间接影响人类的健康或藻类的产生的致癌物质直接威胁人类的健康和生存,污染水源;②自来水厂的过滤装置被藻类“水华”填塞,影响取水;③漂浮在水面上的“水华”影响景观,而且有难闻的臭味,污染环境等。可见水华现象频繁出现,不仅造成大面积水环境的破坏,而且也带来了巨大的经济损失。因此,在江、河上游的源头水域、地方湖泊以及特定功能水域(城镇取水区、饮用水源和景观水域等)等淡水源头进行监测,对该水域水华的发生、变化及灾情趋势进行监测预警是非常有意义的。In recent years, with the rapid development of industry and science and technology, a large number of industrial, agricultural and domestic wastes containing a large amount of nitrogen and phosphorus have been discharged into the water, resulting in eutrophication of fresh water in rivers, rivers, lakes and other waters and the outbreak of algal blooms ( Such as green algae bloom, cyanobacteria bloom, etc.) Water blooms have occurred in Taihu Lake, Dianchi Lake, Chaohu Lake, and Hongze Lake in China. The biggest harm caused by water blooms is: ① algae toxins indirectly affect human health or algae through the food chain The carcinogens produced directly threaten human health and survival, and pollute water sources; ②The filter devices of waterworks are filled with algae "blooms", affecting water intake; ③"Water blooms" floating on the water surface affect the landscape, and there are unpleasant Odor, pollute the environment, etc. It can be seen that algae blooms occur frequently, which not only causes damage to large areas of water environment, but also brings huge economic losses. Therefore, monitor fresh water sources such as source waters in the upper reaches of rivers, local lakes, and specific functional waters (urban water intake areas, drinking water sources, landscape waters, etc.), and monitor the occurrence, changes, and disaster trends of algal blooms in these water areas Early warning is very meaningful.
现有水华监测预警方法,如2008年8月6日公开的,公开号为CN101236519A的“用于蓝藻监测及蓝藻水华预警的浮标”专利,公开的浮标由浮标载体、仪器舱、监测传感器集合体(由五种不同的传感器集合而成)、通讯天线、太阳能电池板构成。应用时,将一定数量的浮标布置在被测水域的特定位置,对水体的不同深度进行监测,并将监测的数据通过天线传输到监测中心,进行数据分析后实时预警。该专利的主要缺点是:Existing water bloom monitoring and early warning methods, as published on August 6, 2008, the publication number is CN101236519A "buoy for cyanobacteria monitoring and cyanobacteria bloom early warning" patent, the disclosed buoy is composed of a buoy carrier, an instrument cabin, a monitoring sensor The assembly (composed of five different sensors), communication antennas, and solar panels. In application, a certain number of buoys are arranged at specific positions in the measured waters to monitor different depths of the water body, and the monitored data are transmitted to the monitoring center through the antenna for real-time early warning after data analysis. The main disadvantages of this patent are:
1.监测的局限性大。该专利只将一定数量的浮标布置在被测水域的特定位置,对水体中的不同深度进行监测(即水下监测),不能对较大面积的水域进行监测,也不能对水面污染物的扩散规律、分布范围、污染程度等进行监测;浮标在监测的时候需要与水体直接接触,而且占据一定的水域空间,不适合在一些特定功能的水域(如饮用水源、景观水域等)直接应用。因此,浮标监测的局限性较大。1. The limitations of monitoring are large. This patent only arranges a certain number of buoys at specific positions in the measured waters to monitor different depths in the water (that is, underwater monitoring). It cannot monitor large areas of water, nor can it monitor the spread of pollutants on the water surface Regularity, distribution range, pollution degree, etc.; buoys need to be in direct contact with water bodies during monitoring, and occupy a certain amount of water space, so they are not suitable for direct application in water areas with specific functions (such as drinking water sources, landscape water areas, etc.). Therefore, the limitations of buoy monitoring are relatively large.
2.维护费用高,监测成本高。该专利在实际应用中,需要专门的技术人员定期到监测现场对浮标进行维护,耗时耗人力,从而较大地增加了维护成本。为了获取准确的水质信息,就必须用昂贵的高精度监测传感器,并且该专利的传感器量大,种类多,从而提高了监测成本。2. High maintenance costs and high monitoring costs. In the practical application of this patent, specialized technicians are required to regularly go to the monitoring site to maintain the buoy, which is time-consuming and manpower-consuming, thereby greatly increasing the maintenance cost. In order to obtain accurate water quality information, expensive high-precision monitoring sensors must be used, and the sensors in this patent have a large quantity and various types, thereby increasing the monitoring cost.
3.普及性差。由于该专利的成本高,结构复杂,使用、操作和维护的专业性较强强,不利于在管理部门、企业和科研单位普及使用。3. Poor popularity. Because the cost of this patent is high, the structure is complex, and the use, operation and maintenance are highly specialized, it is not conducive to popularization and use in management departments, enterprises and scientific research units.
发明内容 Contents of the invention
本发明的目的是针对现有水华监测预警方法的不足,提供一种基于图像处理的小型水域水华监测预警方法,具有成本低,对环境适用能力强,能实时获取水面污染信息并能自动识别水华进行报警,便于推广应用等特点。The purpose of the present invention is to address the shortcomings of the existing water bloom monitoring and early warning methods, and provide a small-scale water bloom monitoring and early warning method based on image processing, which has low cost, strong environmental adaptability, real-time acquisition of water surface pollution information and automatic It can identify algal blooms and give an alarm, which is convenient for popularization and application.
本发明的机理:本发明首先以被测水域的历史水华区域图像为样本图建立颜色先验模型,即将样本图的每个象素从三原色(RGB)空间转换到色、亮分离(HSV)空间,为了在各种光照情况下都能锁定水华区域,因此摒弃HSV色彩空间中的饱和度(S)和亮度(V)分量,只采用色调(H)分量。HSV模型是最贴近人类对色彩的感知方式,而颜色信息对该空间的H(色调)分量比较敏感,且H(色调)分量很大程度地去除了光照的影响,因此建立的颜色先验模型不受环境光线变化的影响。Mechanism of the present invention: the present invention is at first set up color prior model with the historical algae bloom region image of measured waters as sample figure, is about to convert each pixel of sample figure from three primary colors (RGB) space to color, brightness separation (HSV) Space, in order to lock the bloom area under various lighting conditions, the saturation (S) and brightness (V) components in the HSV color space are discarded, and only the hue (H) component is used. The HSV model is the closest to the human perception of color, and the color information is sensitive to the H (hue) component of this space, and the H (hue) component largely removes the influence of light, so the established color prior model Unaffected by changes in ambient light.
先建立水华区域的颜色先验模型,设{x′j}j=1,2...n为历史样本图的水华区域的n个像素,在颜色模型中,当H(色调)分量的离散化取值为i(i=1,2...,360)的色调概率为:First establish the color prior model of the water bloom area, set {x′ j } j=1, 2...n as the n pixels of the water bloom area of the historical sample map, in the color model, when the H (hue) component The discretization value of is i (i=1, 2..., 360) and the hue probability is:
p={pi}i=1,2…m;
式(1)中:p是颜色模型,pi是色调值为i的概率,δ为δ函数,函数b(x′j)为空间R2→{1,2…m}的索引,即位于位置x′j的像素向直方图量化特征空间的索引。In formula (1): p is the color model, p i is the probability of the hue value i, δ is the δ function, and the function b(x′ j ) is the index of the space R 2 →{1, 2…m}, that is, in The index of the pixel at position x′ j to the histogram quantization feature space.
再用连续自适应性均值漂移(Camshift)算法来检测水华色块,连续自适应性均值漂移算法是由均值漂移(MeanShift)算法演变而来,均值漂移(MeanShift)算法的过程就是通过核G上的采样均值平移矢量Mh,G(x)(即核K上的密度梯度的估计)更新核G中心的一个递归过程。均值漂移算法应用在连续序列时,由核G的位置的初始中心开始不断地计算均值平移向量,迭代更新目标位置,直到收敛于最优匹配点。Then use the continuous adaptive mean shift (Camshift) algorithm to detect the bloom color block, the continuous adaptive mean shift algorithm is evolved from the mean shift (MeanShift) algorithm, the process of the mean shift (MeanShift) algorithm is through the kernel A recursive process of updating the center of the kernel G by sampling the mean translation vector M h on G(x) (ie, the estimate of the density gradient on the kernel K). When the mean shift algorithm is applied to a continuous sequence, the mean shift vector is continuously calculated from the initial center of the position of the kernel G, and the target position is updated iteratively until it converges to the optimal matching point.
Mh,G(x)(即核K上的密度梯度的估计)计算公式如下:M h, G(x) (that is, the estimation of the density gradient on the kernel K) is calculated as follows:
其中:h为带宽度,C为归一化常数,可见核G上的采样均值平移矢量为核K上的密度梯度的估计。为核K上带宽度为h的多变量密度估计:Among them: h is the band width, C is the normalization constant, it can be seen that the sampling mean translation vector on the kernel G is the estimation of the density gradient on the kernel K. is the multivariate density estimate of band width h over kernel K:
集合{x′j}j=1,2…n是d维欧氏空间Rd的n个点,k(x)表示该像素点的核函数:The set {x′ j } j=1, 2...n is n points in the d-dimensional Euclidean space R d , and k(x) represents the kernel function of the pixel point:
其中:cd为d维单位球体体积。Among them: c d is the volume of the d-dimensional unit sphere.
连续自适应性均值漂移算法就是在视频图像的处理区域内进行方向投影和均值漂移计算,以当前帧搜索窗口的质心和面积作为下一帧搜索窗口的初始值,再进行迭代以实现对目标的检测跟踪。The continuous adaptive mean shift algorithm is to perform directional projection and mean shift calculation in the processing area of the video image, take the centroid and area of the search window of the current frame as the initial value of the search window of the next frame, and then iterate to achieve the goal. Detection tracking.
然后用改进的连续自适应性均值漂移算法过滤干扰色块,即在应用Camshift算法前,首先将概率分布图进行腐蚀、膨胀处理,去掉噪声块,然后检测目标色块的内外轮廓,找到目标色块中的空洞进行填充。然而进行以上预处理后,可能仍然存有干扰色块,所以在应用于水华检测的时候有必要改进一下Camshift算法的适应性。Then use the improved continuous adaptive mean shift algorithm to filter the interference color blocks, that is, before applying the Camshift algorithm, firstly corrode and expand the probability distribution map to remove the noise blocks, and then detect the inner and outer contours of the target color block to find the target color block. Holes in the blocks are filled. However, after the above preprocessing, there may still be interference color blocks, so it is necessary to improve the adaptability of the Camshift algorithm when it is applied to the detection of water blooms.
从水面出现藻类聚集到水华全面爆发,通常需要15天左右的时间,所以在较短时间内,水面上出现绿色区域变化是缓慢的,相比而言,相邻两帧图像时间间隔是非常短的(几十毫秒),那么目标色块在帧间的面积变化是非常小的,基于这种变化规律,我们就能通过预测特征面积的方法来过虑干扰色块。It usually takes about 15 days from the appearance of algae on the water surface to the full-scale outbreak of the water bloom. Therefore, in a short period of time, the change of the green area on the water surface is slow. In comparison, the time interval between two adjacent frames of images is very Short (tens of milliseconds), then the change in the area of the target color block between frames is very small. Based on this change rule, we can filter out the interference color blocks by predicting the area of the feature.
设当前帧图像中色块的面积为Sn,下一帧的预测面积为S′n+1,那么Suppose the area of the color block in the current frame image is S n , and the predicted area of the next frame is S′ n+1 , then
S′n+1=Sn+A (5)S' n+1 =S n +A (5)
其中,常数A是一个经验值(根据具体情况设置),表示帧间目标色块面积的增量。根据式(5)就能预测下一帧图像中目标色块的面积,如果满足Among them, the constant A is an empirical value (set according to the specific situation), which represents the increment of the area of the target color block between frames. According to formula (5), the area of the target color block in the next frame image can be predicted, if it satisfies
|Sn+1-S′n+1|≤ξ (6)|S n+1 -S′ n+1 |≤ξ (6)
Sn+1表示下一帧色块的实际测量面积,ξ为允许的误差范围,说明当前检测到的色块符合帧间色块面积的变化规律;如果|Sn+1-S′n+1|超出允许的误差范围内时,则认为下一帧实际检测到的色块面积不符合帧间水华区域面积的变化规律,将多余部分定义为干扰色块并将其滤掉。S n+1 represents the actual measured area of the color block in the next frame, and ξ is the allowable error range, indicating that the currently detected color block conforms to the change rule of the color block area between frames; if |S n+1 -S′ n+ 1 | When it exceeds the allowable error range, it is considered that the area of the color block actually detected in the next frame does not conform to the change law of the area of the bloom area between frames, and the excess part is defined as the interference color block and filtered out.
实现本发明目的的技术方案是:一种基于图像处理的小型水域水华监测预警方法,利用摄像头和计算机,通过程序,依据历史数据建立先验颜色模型,运用改进的连续自适应性均值漂移(Camshift)算法过滤掉干扰色块并检测出水华区域,通过该区域面积的变化分析灾情趋势,并建立类似于气象灾害的预警模型,来监测并预警水华。具体步骤如下:The technical scheme that realizes the object of the present invention is: a kind of small-scale water area algae bloom monitoring and early warning method based on image processing, utilizes camera and computer, by program, establishes priori color model according to historical data, uses improved continuous self-adaptive mean drift ( Camshift) algorithm filters out the interference color blocks and detects the algae bloom area, analyzes the disaster trend through the change of the area area, and establishes an early warning model similar to meteorological disasters to monitor and warn of algal blooms. Specific steps are as follows:
(1)建立颜色先验模型(1) Establish a color prior model
首先根据被测水域的历史水华区域的样本图或视频数据,建立颜色先验模型,即:Firstly, based on the sample image or video data of the historical algal bloom area of the measured water area, a color prior model is established, namely:
设{x′j}j=1,2…n为样本图或视频数据的n个像素,将每个象素从RGB(三原色)空间转换到HSV(色、亮分离)空间,将H(色调)分量的离散化取值为i(i=1,2...,360),把H(色调)分量的范围[0,360]缩放到[0,255],以便取值范围的值能用一个字节(byte)来表示。通过计算机按下式计算H分量的色调概率:Let {x′ j } j=1, 2...n be n pixels of the sample image or video data, convert each pixel from RGB (three primary colors) space to HSV (color, bright separation) space, and convert H (hue ) component's discretization value is i (i=1, 2..., 360), and the range [0, 360] of the H (hue) component is scaled to [0, 255], so that the value of the value range can be Represented by a byte (byte). The hue probability of the H component is calculated by the computer according to the following formula:
p={pi}i=12…m;
其中:p是颜色模型,pi是色调值为i的概率,δ为δ函数,函数b(x′j)为空间R2→{1,2…m}的索引,即位于位置x′j的像素向直方图量化特征空间的索引。Where: p is the color model, p i is the probability of the hue value i, δ is the δ function, and the function b(x′ j ) is the index of the space R 2 →{1, 2…m}, that is, at the position x′ j The pixels of are indexed into the histogram quantization feature space.
(2)对水华区域进行检测(2) Detect the bloom area
①对小型水域进行监测①Monitoring of small waters
第(1)步完成后,在小型水域(即江、河的上游水库或城镇饮用水源的水库或城镇取水区的河段或常发生水华的江、河、湖泊水域或景观水域等)的岸边架设摄像头,并通过视频传输线与计算机连接。摄像头架设的具体位置、数量及高度,根据被测水域的具体情况确定。用以监测被测水域的水面情况(因水域的水华暴发最显著的变化是水面视觉特征的变化)并摄取水面的视频图像,达到实时监测水面图像的目的。After step (1) is completed, in small waters (that is, upstream reservoirs of rivers or rivers or reservoirs of urban drinking water sources or river sections of urban water intake areas or rivers, rivers, lakes or landscape waters where algal blooms often occur) A camera is set up on the shore, and is connected with a computer through a video transmission line. The specific position, quantity and height of the camera installation shall be determined according to the specific conditions of the water area to be measured. It is used to monitor the water surface conditions of the measured water area (the most significant change due to the outbreak of algal blooms in the water area is the change of the visual characteristics of the water surface) and capture video images of the water surface to achieve the purpose of real-time monitoring of water surface images.
②反向投影处理② Reverse projection processing
第(2)-①步完成后,对第(2)-①步输入的每一帧视频图像进行反向投影处理(BackProjection),即对视频图像处理区域中的每一个像素,通过计算机查询该像素与第(1)步建立的颜色先验模型(即H分量色调概率模型)的匹配程度,就得到该像素为目标像素的概率(此区域之外的其他区域的概率为0,图像中每一个像素的值就变成了目标颜色信息出现在此处的可能性的一种离散化度量,此处出现的可能性越大,像素的值就越大,反之则越小)。经过上述处理,就得到每帧图像的目标颜色反向投影图。After the (2)-① step is completed, carry out back projection processing (BackProjection) to each frame of video image input in the (2)-① step, that is, for each pixel in the video image processing area, query the image by computer The degree of matching between the pixel and the color prior model established in step (1) (i.e., the H-component tone probability model) can obtain the probability that the pixel is the target pixel (the probability of other areas outside this area is 0, and each The value of a pixel becomes a discretized measure of the possibility of the target color information appearing here, the greater the possibility of appearing here, the larger the value of the pixel, and vice versa). After the above processing, the target color back-projection map of each frame image is obtained.
③检测分割水华色块并滤掉干扰色块③Detect and segment the water bloom color blocks and filter out the interfering color blocks
第(2)-②步完成后,进行检测水华色块和滤掉干扰色块处理,即:After step (2)-② is completed, detect the bloom color block and filter out the interference color block processing, namely:
先对第(2)-②步得到的反向投影图进行腐蚀、膨胀,检测目标色块的内外轮廓及找到目标色块中的空洞进行填充等预处理,这样就能去掉一部分干扰色块,在一定程度上避免噪声干扰。First, corrode and expand the back projection image obtained in step (2)-②, detect the inner and outer contours of the target color block and find the holes in the target color block for filling and other preprocessing, so that part of the interfering color blocks can be removed. Avoid noise interference to a certain extent.
再检测分割水华色块区域,即通过计算机按下式不断地对经过上述预处理之后的反向投影图计算均值平移向量Mh,G(x):Then detect and segment the water bloom color block area, that is, calculate the mean translation vector M h, G (x) continuously to the back projection image after the above-mentioned preprocessing through the computer according to the formula:
其中:h为带宽度,C为归一化常数,为核K上带宽度为h的多变量密度估计:Where: h is the band width, C is the normalization constant, is the multivariate density estimate of band width h over kernel K:
集合{x′j}j=1,2…n是d维欧氏空间Rd的n个点,k(x)表示该像素点的核函数:The set {x′ j } j=1, 2...n is n points in the d-dimensional Euclidean space R d , and k(x) represents the kernel function of the pixel point:
其中:cd为d维单位球体体积。用以迭代更新目标色块的位置,直到收敛于的最优匹配点,该匹配点的区域就是当前帧图像中的目标色块(即水华色块区域)。Among them: c d is the volume of the d-dimensional unit sphere. It is used to iteratively update the position of the target color block until it converges to the optimal matching point, and the area of the matching point is the target color block (that is, the water bloom color block area) in the current frame image.
进行判断:当没有检测到目标色块时,则认为水面未出现水华,返回第(2)-①步获取下一帧继续进行检测;当有检测到目标色块时,则以当前帧最优匹配点的质心和面积作为下一帧搜索窗口的初始值,继续进行迭代计算找到最优匹配点。如此循环迭代至程序结束为止,就检测分割出每帧图像的目标色块。Judgment: When the target color block is not detected, it is considered that there is no bloom on the water surface, and return to step (2)-① to obtain the next frame to continue detection; when the target color block is detected, the current frame is the most The centroid and area of the optimal matching point are used as the initial value of the search window in the next frame, and the iterative calculation is continued to find the optimal matching point. This loop iterates until the end of the program, and the target color block of each frame image is detected.
然后过滤干扰色块,即计算上步得到的当前帧和下一帧的目标色块的面积,根据水华区域面积的帧间变化规律,利用当前帧的目标色块面积来预测下一帧图像中的目标色块面积,即计算下一帧色块实际检测面积和下一帧预测面积之间的差值(即多余部分),根据下式进行判断:Then filter the interference color block, that is, calculate the area of the target color block in the current frame and the next frame obtained in the previous step, and use the area of the target color block in the current frame to predict the image of the next frame according to the inter-frame variation law of the area of the bloom area The area of the target color block in , that is, calculate the difference between the actual detection area of the color block in the next frame and the predicted area of the next frame (i.e. the redundant part), and judge according to the following formula:
|Sn+1-S′n+1|≤ξ (5)|S n+1 -S′ n+1 |≤ξ (5)
其中:Sn+1为下一帧色块的实际测量面积,S′n+1为下一帧的预测面积,ξ为允许的误差范围。Among them: S n+1 is the actual measured area of the color block in the next frame, S′ n+1 is the predicted area of the next frame, and ξ is the allowable error range.
当|Sn+1-S′n+1|≤ξ时,则认为下一帧实际检测到的色块面积符合水华区域面积的帧间变化规律并将其作为检测结果;当|Sn+1-S′n+1|>ξ,即差值超出允许的误差范围内时,则认为下一帧实际检测到的色块面积不符合帧间水华区域面积的变化规律,将多余部分定义为干扰色块并将其滤掉。When |S n+1 -S′ n+1 |≤ξ, it is considered that the area of the color patch actually detected in the next frame conforms to the inter-frame variation law of the area of the bloom area and takes it as the detection result; when |S n +1 -S′ n+1 |>ξ, that is, when the difference exceeds the allowable error range, it is considered that the area of the color block actually detected in the next frame does not conform to the change law of the area of the bloom area between frames, and the redundant part Define it as an interference color block and filter it out.
经过上述的处理后,就检测分割出滤掉干扰色块后的水华色块,得到水华色块在图像中的像素面积。然后对每帧图像中的水华色块区域进行标定并输出检测结果。After the above-mentioned processing, the water bloom color block after filtering out the interference color block is detected and segmented, and the pixel area of the water bloom color block in the image is obtained. Then the water bloom color block area in each frame of image is calibrated and the detection result is output.
(3)水华预警(3) Water bloom warning
①计算水华区域实际面积:① Calculate the actual area of the algae bloom area:
第(2)步完成后,先计算第(2)步得到的水华色块在图像中的像素面积占视野像素总面积的百分比,乘以视野的实际总面积就能得到水华区域实际面积。再通过摄像机标定,计算视野的实际总面积,即将已知面积的参照物置于摄像头下的水域位置,计算它在图像中的像素面积占视野像素总面积的比值,用该已知参照物的实际面积除以该比值就得到视野的实际总面积,并将得到的水华区域实际面积输出到计算机软件界面上,以便用户直观的了解水华区域的实际面积。After step (2) is completed, first calculate the percentage of the pixel area of the water bloom color block obtained in step (2) in the image to the total area of the field of view pixels, and multiply it by the actual total area of the field of view to obtain the actual area of the water bloom area . Then through the camera calibration, the actual total area of the field of view is calculated, that is, the reference object with a known area is placed in the water area under the camera, and the ratio of its pixel area in the image to the total area of the field of view pixels is calculated, and the actual area of the known reference object is used. Divide the area by the ratio to obtain the actual total area of the field of view, and output the obtained actual area of the algae bloom area to the computer software interface, so that the user can intuitively understand the actual area of the algae bloom area.
②建立预警模型:②Establish an early warning model:
第(3)-①步完成后,根据第(3)-①步得到的水华区域实际面积,先按6~10小时为间隔,计算每个时间间隔内的水华区域实际面积的均值,再通过计算机分析该实际面积的均值变化规律建立一元线性回归预测模型,来预测下一个时间间隔的实际面积的均值,并计算该实际面积的均值占水域总面积的百分比,然后以该百分比代表的水华灾害程度为依据,将水华暴发的预警等级划分为蓝色、黄色、橙色和红色四个等级,对应的预警区间分别是一般、较重、严重和特别严重四个等级,并进行判断:当代表的水华灾害程度的百分比小于预警值(预警值的大小根据被测水域的具体情况和应用需求确定,本发明取5%)时,则返回到返回第(2)-①步获取下一帧继续进行检测;当代表的水华灾害程度的百分比大于预警值时,则根据划分的预警等级进行预警。水华暴发预警等级的具体划分如下:After the (3)-1. step is completed, according to the actual area of the algae bloom area obtained by the (3)-1. step, the mean value of the actual area of the algae bloom area in each time interval is calculated at an interval of 6 to 10 hours. Then, analyze the change law of the mean value of the actual area by computer to establish a linear regression forecasting model to predict the mean value of the actual area of the next time interval, and calculate the percentage of the mean value of the actual area in the total area of the water area, and then represent it with this percentage Based on the degree of algae bloom disaster, the early warning levels of algae bloom outbreaks are divided into four levels: blue, yellow, orange and red, and the corresponding early warning intervals are general, heavy, serious and particularly severe, and judged : when the percentage of the representative algal bloom disaster degree is less than the early warning value (the size of the early warning value is determined according to the specific situation and application requirements of the measured water area, and the present invention gets 5%), then return to return (2)-1. step acquisition Continue to detect in the next frame; when the percentage of the representative algal bloom disaster degree is greater than the warning value, the warning will be given according to the divided warning level. The specific classification of algal bloom outbreak warning levels is as follows:
一般蓝色预警(即零星性水华):水华零星集聚,主要水域区藻类生物密度小于3000万个/L,水华面积大于等于水体总面积的5%。General blue warning (i.e. sporadic algae bloom): sporadic accumulation of algal blooms, algae biodensity in the main water area is less than 30 million/L, and the area of algae bloom is greater than or equal to 5% of the total area of the water body.
较重黄色预警(即局部性水华):藻类在局部水域集聚,主要水域区藻类生物密度介于3000~5000万个/L之间,水华面积大于等于水体总面积的10%。Heavy yellow warning (localized algae bloom): Algae gather in local waters, the density of algae in the main water area is between 30 million and 50 million/L, and the area of algae bloom is greater than or equal to 10% of the total area of the water body.
严重橙色预警(即区域性水华):当发生区域性水华,主要水域区藻类生物密度介于5000~8000万个/L之间,水华面积大于等于水体总面积的40%。Severe orange warning (i.e. regional algal bloom): When regional algal bloom occurs, the density of algae in the main water area is between 50 and 80 million/L, and the area of algae bloom is greater than or equal to 40% of the total area of the water body.
特别严重红色预警(即全面性水华):水华全面性暴发,主要水域区的藻类生物密度大于8000万个/L,水华面积大于等于水体总面积的60%。Especially serious red warning (i.e. comprehensive algae bloom): Algae blooms are all-round outbreaks, the algae density in the main water area is greater than 80 million/L, and the area of algal blooms is greater than or equal to 60% of the total area of the water body.
本发明采用上述技术方案后,主要有以下效果:After the present invention adopts above-mentioned technical scheme, mainly have following effect:
1.具有良好的普及性。本发明提供了一种快速有效的水华监测预警方法,能自动识别水华区域并实时计算出该区域的实际面积,能按照预警等级进行预警以便通知相关部门实时了解水华灾害程度并采取相应的治理措施。在实际应用中,直接植入传统的水面视频监测系统中或开发成嵌入式设备都能实现对水华的监测预警,具有智能化、易操作等特点,便于在管理部门、企业和科研单位普及使用。1. It has good popularity. The invention provides a fast and effective water bloom monitoring and early warning method, which can automatically identify the water bloom area and calculate the actual area of the area in real time, and can perform early warning according to the early warning level so as to notify relevant departments to understand the degree of water bloom disaster in real time and take corresponding measures. governance measures. In practical applications, it can be directly implanted into the traditional water surface video monitoring system or developed into an embedded device to realize the monitoring and early warning of algal blooms. It has the characteristics of intelligence and easy operation, and is easy to popularize in management departments, enterprises and scientific research units. use.
2.成本低。本发明采用的算法计算量小、速度快,对硬件要求较低。实际应用中,无论直接在计算机上运行还是开发成嵌入式设备,能实时快速有效的实现水华监测预警,很大程度上节约了监测成本,灵活方便。2. Low cost. The algorithm adopted in the present invention has small calculation amount and high speed, and has low requirements on hardware. In practical applications, whether it is run directly on a computer or developed into an embedded device, it can quickly and effectively realize algal bloom monitoring and early warning in real time, which greatly saves monitoring costs and is flexible and convenient.
3.对环境适应能力强。本发明利用摄像头监测水面并很大程度上去除光照的影响,能有效避免了水面环境的复杂性和环境光线变化等带来的噪声干扰,从而能很好地适应环境变化,因此监测设备简单,成本低,便于维护,并能实时有效地进行监测。3. Strong ability to adapt to the environment. The present invention uses a camera to monitor the water surface and removes the influence of light to a large extent, which can effectively avoid the noise interference caused by the complexity of the water surface environment and the change of ambient light, so that it can well adapt to environmental changes, so the monitoring equipment is simple, Low cost, easy maintenance, and effective real-time monitoring.
本发明能直接植入传统的水面视频监测系统中或开发成嵌入式设备,广泛地应用于江、河上游水库、城镇饮用水源的水库、城镇取水区河段或常发生水华的江、河、湖泊区及景观水域等的小型水域的水华监测预警。The present invention can be directly implanted into a traditional water surface video monitoring system or developed into an embedded device, and is widely used in rivers, upstream reservoirs of rivers, reservoirs of urban drinking water sources, river sections in urban water intake areas or rivers where algal blooms often occur, Water bloom monitoring and early warning of small waters such as rivers, lakes and landscape waters.
附图说明 Description of drawings
图1为本发明方法的程序流程框图。Fig. 1 is a program flow diagram of the method of the present invention.
具体实施方式 Detailed ways
下面结合具体实施方式,进一步说明本发明。The present invention will be further described below in combination with specific embodiments.
实施例Example
如图1所示,一种基于图像处理的小型水域水华监测预警方法,对重庆市开县澎溪河(位于三峡库区腹心地带的长江一级支流)的水库进行水华监测预警,该段水域的总面积约6.3万平方米,具体步骤如下:As shown in Figure 1, a method for monitoring and early warning of water blooms in small waters based on image processing is used to monitor and early warning of water blooms in the Pengxi River (the first-level tributary of the Yangtze River located in the heart of the Three Gorges Reservoir Area) in Kaixian County, Chongqing City. The total area of the water area is about 63,000 square meters. The specific steps are as follows:
(1)建立颜色先验模型(1) Establish a color prior model
首先根据被测水域的历史水华区域的样本图或视频数据,建立颜色先验模型,即:Firstly, based on the sample image or video data of the historical algal bloom area of the measured water area, a color prior model is established, namely:
设{x′j}j=1,2…n为样本图或视频数据的n个像素,将每个象素从RGB(三原色)空间转换到HSV(色、亮分离)空间,将H(色调)分量的离散化取值为i(i=1,2...,360),把H(色调)分量的范围[0,360]缩放到[0,255],以便取值范围的值能用一个字节(byte)来表示。通过计算机按下式计算H分量的色调概率:Let {x′ j } j=1, 2...n be n pixels of the sample image or video data, convert each pixel from RGB (three primary colors) space to HSV (color, bright separation) space, and convert H (hue ) component's discretization value is i (i=1, 2..., 360), and the range [0, 360] of the H (hue) component is scaled to [0, 255], so that the value of the value range can be Represented by a byte (byte). The hue probability of the H component is calculated by the computer according to the following formula:
p={pi}i=1,2…m;
其中:p是颜色模型,pi是色调值为i的概率,δ为δ函数,函数b(x′j)为空间R2→{1,2…m}的索引,即位于位置x′j的像素向直方图量化特征空间的索引。Where: p is the color model, p i is the probability of the hue value i, δ is the δ function, and the function b(x′ j ) is the index of the space R 2 →{1, 2…m}, that is, at the position x′ j The pixels of are indexed into the histogram quantization feature space.
(2)对水华区域进行检测(2) Detect the bloom area
①对小型水域进行监测①Monitoring of small waters
第(1)步完成后,在重庆市开县澎溪河水库的小型水域岸边的水塔上架设一个摄像头,摄像头视野覆盖整个水域,并通过视频传输线与计算机连接。摄像头架设的具体位置、数量及高度,根据被测水域的具体情况确定。用以监测被测水域的水面情况(因水域的水华暴发最显著的变化是水面视觉特征的变化)并摄取水面的视频图像,达到实时监测水面图像的目的。After step (1) is completed, set up a camera on the water tower on the bank of the small water area of the Pengxi River Reservoir in Kaixian County, Chongqing City. The camera field of view covers the entire water area and is connected to the computer through a video transmission line. The specific position, quantity and height of the camera installation shall be determined according to the specific conditions of the water area to be measured. It is used to monitor the water surface conditions of the measured water area (the most significant change due to the outbreak of algal blooms in the water area is the change of the visual characteristics of the water surface) and capture video images of the water surface to achieve the purpose of real-time monitoring of water surface images.
②反向投影处理② Reverse projection processing
第(2)-①步完成后,对第(2)-①步输入的每一帧视频图像进行反向投影处理(BackProjection),即对视频图像处理区域中的每一个像素,通过计算机查询该像素与第(1)步建立的颜色先验模型(即H分量色调概率模型)的匹配程度,就得到该像素为目标像素的概率(此区域之外的其他区域的概率为0,图像中每一个像素的值就变成了目标颜色信息出现在此处的可能性的一种离散化度量,此处出现的可能性越大,像素的值就越大,反之则越小)。经过上述处理,就得到每帧图像的目标颜色反向投影图。After the (2)-① step is completed, carry out back projection processing (BackProjection) to each frame of video image input in the (2)-① step, that is, for each pixel in the video image processing area, query the image by computer The degree of matching between the pixel and the color prior model established in step (1) (i.e. the H-component tone probability model) can obtain the probability that the pixel is the target pixel (the probability of other areas outside this area is 0, and each The value of a pixel becomes a discretized measure of the possibility of the target color information appearing here, the greater the possibility of appearing here, the larger the value of the pixel, and vice versa). After the above processing, the target color back-projection map of each frame image is obtained.
③检测分割水华色块并滤掉干扰色块③Detect and segment the water bloom color blocks and filter out the interfering color blocks
第(2)-②步完成后,进行检测水华色块和滤掉干扰色块处理,即:After step (2)-② is completed, detect the bloom color block and filter out the interference color block processing, namely:
先对第(2)-②步得到的反向投影图进行腐蚀、膨胀,检测目标色块的内外轮廓及找到目标色块中的空洞进行填充等预处理,这样就能去掉一部分干扰色块,在一定程度上避免噪声干扰。First, corrode and expand the back projection image obtained in step (2)-②, detect the inner and outer contours of the target color block and find the holes in the target color block for filling and other preprocessing, so that part of the interfering color blocks can be removed. Avoid noise interference to a certain extent.
再检测分割水华色块区域,即通过计算机按下式不断地对经过上述预处理之后的反向投影图计算均值平移向量Mh,G(x):Then detect and segment the water bloom color block area, that is, calculate the mean translation vector M h, G(x) continuously for the back projection image after the above preprocessing through the computer according to the following formula:
其中:h为带宽度,C为归一化常数,为核K上带宽度为h的多变量密度估计:Where: h is the band width, C is the normalization constant, is the multivariate density estimate of band width h over kernel K:
集合{x′j}j=1,2…n是d维欧氏空间Rd的n个点,k(x)表示该像素点的核函数:The set {x′ j } j=1, 2...n is n points in the d-dimensional Euclidean space R d , and k(x) represents the kernel function of the pixel point:
其中:cd为d维单位球体体积。用以迭代更新目标色块的位置,直到收敛于的最优匹配点,该匹配点的区域就是当前帧图像中的目标色块(即水华色块区域)。Among them: c d is the volume of the d-dimensional unit sphere. It is used to iteratively update the position of the target color block until it converges to the optimal matching point, and the area of the matching point is the target color block (that is, the water bloom color block area) in the current frame image.
进行判断:当没有检测到目标色块时,则认为水面未出现水华,返回第(2)-①步获取下一帧继续进行检测;当有检测到目标色块时,则以当前帧最优匹配点的质心和面积作为下一帧搜索窗口的初始值,继续进行迭代计算找到最优匹配点。如此循环迭代至程序结束为止,就检测分割出每帧图像的目标色块。Judgment: When the target color block is not detected, it is considered that there is no bloom on the water surface, and return to step (2)-① to obtain the next frame to continue detection; when the target color block is detected, the current frame is the most The centroid and area of the optimal matching point are used as the initial value of the search window in the next frame, and the iterative calculation is continued to find the optimal matching point. This loop iterates until the end of the program, and the target color block of each frame image is detected.
然后过滤干扰色块,即计算上步得到的当前帧和下一帧的目标色块的面积,根据水华区域面积的帧间变化规律,利用当前帧的目标色块面积来预测下一帧图像中的目标色块面积,即计算下一帧色块实际检测面积和下一帧预测面积之间的差值(即多余部分),根据下式进行判断:Then filter the interference color block, that is, calculate the area of the target color block in the current frame and the next frame obtained in the previous step, and use the area of the target color block in the current frame to predict the image of the next frame according to the inter-frame variation law of the area of the bloom area The area of the target color block in , that is, calculate the difference between the actual detection area of the color block in the next frame and the predicted area of the next frame (i.e. the redundant part), and judge according to the following formula:
|Sn+1-S′n+1|≤ξ (5)|S n+1 -S′ n+1 |≤ξ (5)
其中:Sn+1为下一帧色块的实际测量面积,S′n+1为下一帧的预测面积,ξ为允许的误差范围。Among them: S n+1 is the actual measured area of the color block in the next frame, S′ n+1 is the predicted area of the next frame, and ξ is the allowable error range.
当|Sn+1-S′n+1|≤ξ时,则认为下一帧实际检测到的色块面积符合水华区域面积的帧间变化规律并将其作为检测结果;当|Sn+1-S′n+1|>ξ,即差值超出允许的误差范围内时,则认为下一帧实际检测到的色块面积不符合帧间水华区域面积的变化规律,将多余部分定义为干扰色块并将其滤掉。When |S n+1 -S′ n+1 |≤ξ, it is considered that the area of the color patch actually detected in the next frame conforms to the inter-frame variation law of the area of the bloom area and takes it as the detection result; when |S n +1 -S′ n+1 |>ξ, that is, when the difference exceeds the allowable error range, it is considered that the area of the color block actually detected in the next frame does not conform to the change law of the area of the bloom area between frames, and the redundant part Define it as an interference color block and filter it out.
经过上述的处理后,就检测分割出滤掉干扰色块后的水华色块,得到水华色块在图像中的像素面积。然后对每帧图像中的水华色块区域进行标定并输出检测结果。After the above-mentioned processing, the water bloom color block after filtering out the interference color block is detected and segmented, and the pixel area of the water bloom color block in the image is obtained. Then the water bloom color block area in each frame of image is calibrated and the detection result is output.
(3)水华预警(3) Water bloom warning
①计算水华区域实际面积:① Calculate the actual area of the algae bloom area:
第(2)步完成后,先计算第(2)步得到的水华色块在图像中的像素面积占视野像素总面积的百分比,乘以视野的实际总面积就能得到水华区域实际面积。再通过摄像机标定,计算视野的实际总面积,即将已知面积的参照物置于摄像头下的水域位置,计算它在图像中的像素面积占视野像素总面积的比值,用该已知参照物的实际面积除以该比值就得到视野的实际总面积,并将得到的水华区域实际面积输出到计算机软件界面上,以便用户直观的了解水华区域的实际面积。After step (2) is completed, first calculate the percentage of the pixel area of the water bloom color block obtained in step (2) in the image to the total area of the field of view pixels, and multiply it by the actual total area of the field of view to obtain the actual area of the water bloom area . Then through the camera calibration, the actual total area of the field of view is calculated, that is, the reference object with a known area is placed in the water area under the camera, and the ratio of its pixel area in the image to the total area of the field of view pixels is calculated, and the actual area of the known reference object is used. Divide the area by the ratio to obtain the actual total area of the field of view, and output the obtained actual area of the algae bloom area to the computer software interface, so that the user can intuitively understand the actual area of the algae bloom area.
②建立预警模型:②Establish an early warning model:
第(3)-①步完成后,根据第(3)-①步得到的水华区域实际面积,先按8小时为间隔,计算每个时间间隔内的水华区域实际面积的均值,再通过计算机分析该实际面积的均值变化规律建立一元线性回归预测模型,来预测下一个时间间隔的实际面积的均值,并计算该实际面积的均值占水域总面积的百分比,然后以该百分比代表的水华灾害程度为依据,将水华暴发的预警等级划分为蓝色、黄色、橙色和红色四个等级,对应的预警区间分别是一般、较重、严重和特别严重四个等级,并进行判断:当代表的水华灾害程度的百分比小于预警值(预警值的大小根据被测水域的具体情况和应用需求确定,本发明取5%)时,则返回到返回第(2)-①步获取下一帧继续进行检测;当代表的水华灾害程度的百分比大于预警值时,则根据划分的预警等级进行预警。水华暴发预警等级的具体划分如下:After the (3)-① step is completed, according to the actual area of the algae bloom area obtained in the (3)-① step, the average value of the actual area of the algae bloom area in each time interval is calculated at an interval of 8 hours, and then passed The computer analyzes the change law of the mean value of the actual area to establish a linear regression prediction model to predict the mean value of the actual area in the next time interval, and calculate the percentage of the mean value of the actual area in the total area of the water area, and then represent the bloom with this percentage Based on the degree of disaster, the early warning levels of algae bloom outbreaks are divided into four levels: blue, yellow, orange and red. When the percentage of the representative algal bloom disaster degree is less than the early warning value (the size of the early warning value is determined according to the specific conditions and application requirements of the measured water area, the present invention gets 5%), then return to the return (2)-1. step to obtain the next step The frame continues to be detected; when the percentage of the represented algal bloom disaster degree is greater than the warning value, the warning is given according to the divided warning level. The specific classification of algal bloom outbreak warning levels is as follows:
一般蓝色预警(即零星性水华):水华零星集聚,主要水域区藻类生物密度小于3000万个/L,水华面积大于等于水体总面积的5%。General blue warning (i.e. sporadic algae bloom): sporadic accumulation of algal blooms, algae biodensity in the main water area is less than 30 million/L, and the area of algae bloom is greater than or equal to 5% of the total area of the water body.
较重黄色预警(即局部性水华):藻类在局部水域集聚,主要水域区藻类生物密度介于3000~5000万个/L之间,水华面积大于等于水体总面积的10%。Heavy yellow warning (localized algae bloom): Algae gather in local waters, the density of algae in the main water area is between 30 million and 50 million/L, and the area of algae bloom is greater than or equal to 10% of the total area of the water body.
严重橙色预警(即区域性水华):当发生区域性水华,主要水域区藻类生物密度介于5000~8000万个/L之间,水华面积大于等于水体总面积的40%。Severe orange warning (i.e. regional algal bloom): When regional algal bloom occurs, the density of algae in the main water area is between 50 and 80 million/L, and the area of algae bloom is greater than or equal to 40% of the total area of the water body.
特别严重红色预警(即全面性水华):水华全面性暴发,主要水域区的藻类生物密度大于8000万个/L,水华面积大于等于水体总面积的60%。Especially serious red warning (i.e. comprehensive algae bloom): Algae blooms are all-round outbreaks, the algae density in the main water area is greater than 80 million/L, and the area of algal blooms is greater than or equal to 60% of the total area of the water body.
对该基于图像处理的小型水域水华监测预警方法进行测试后,可以得到以下结论:After testing the image processing-based algal bloom monitoring and early warning method in small water areas, the following conclusions can be drawn:
①在监测过程中,被测水域(重庆市开县澎溪河水库)水面发生水华,本发明方法能实时检测出水华色块区域并计算出该区域的实际面积,能准确按照预警等级进行预警,在水华暴发前期,重庆市环保局能及时掌握该水域的水华灾情并通知相关部门采取相应措施进行治理(在零星性水华时进行打捞),有力的配合了防灾减灾工作。①During the monitoring process, algae bloom occurred on the water surface of the measured water area (Pengxi River Reservoir, Kaixian County, Chongqing City). The method of the present invention can detect the area of the algae bloom color block in real time and calculate the actual area of the area, and can accurately carry out early warning according to the early warning level , in the early stage of algae bloom outbreak, Chongqing Municipal Environmental Protection Bureau was able to grasp the algae bloom disaster situation in the water area in time and notify relevant departments to take corresponding measures to control it (salvage in sporadic algae bloom), effectively cooperating with disaster prevention and mitigation work.
②本发明方法仅仅使用计算机和一个摄像头就能快速有效的实现水华监测预警,很大程度上节约了监测成本,而且用户使用方便,维护成本低,监测效果能够满足重庆市环保局的实际需求,从而便于推广应用。②The method of the present invention can quickly and effectively realize algae bloom monitoring and early warning by only using a computer and a camera, which greatly saves monitoring costs, is convenient for users to use, and has low maintenance costs. The monitoring effect can meet the actual needs of the Chongqing Municipal Environmental Protection Bureau , so as to facilitate the promotion and application.
③本发明采用改进的连续自适应性均值漂移算法来检测分割水华色块并过滤干扰色块,能有效抑制水面背景复杂性和环境光线变化等带来的噪声干扰。该算法计算量小、速度快,是保证水华监测预警实时性的基础。③ The present invention adopts the improved continuous self-adaptive mean shift algorithm to detect and divide the water bloom color blocks and filter the interference color blocks, which can effectively suppress the noise interference caused by the complexity of the water surface background and the change of ambient light. The algorithm has a small amount of calculation and high speed, which is the basis for ensuring the real-time monitoring and early warning of algal blooms.
上述结论说明利用本发明方法实现的基于图像处理的小型水域水华监测预警能够实现水华实时监测预警,监测结果符合水华区域的实际分布范围,监测效果能够满足使用部门的实际需求,监测成本低,对环境适应能力强,便于推广应用,因此本发明能应用于实际的项目中。The above conclusions illustrate that the monitoring and early warning of water blooms in small water areas based on image processing realized by the method of the present invention can realize real-time monitoring and early warning of water blooms. Low, strong adaptability to the environment, easy to popularize and apply, so the present invention can be applied in actual projects.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102185112A CN101900687B (en) | 2010-07-06 | 2010-07-06 | Method for monitoring and early warning water bloom in small water area based on image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102185112A CN101900687B (en) | 2010-07-06 | 2010-07-06 | Method for monitoring and early warning water bloom in small water area based on image processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101900687A CN101900687A (en) | 2010-12-01 |
CN101900687B true CN101900687B (en) | 2012-01-04 |
Family
ID=43226406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102185112A Expired - Fee Related CN101900687B (en) | 2010-07-06 | 2010-07-06 | Method for monitoring and early warning water bloom in small water area based on image processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101900687B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102998664A (en) * | 2012-10-29 | 2013-03-27 | 中国科学院对地观测与数字地球科学中心 | Method and device for identifying water bloom on basis of synthetic aperture radar |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135531A (en) * | 2010-12-24 | 2011-07-27 | 中国科学院南京地理与湖泊研究所 | Method for forecasting blue-green algae water bloom in large-scale shallow lake within 72 hours |
CN104459071B (en) * | 2014-12-05 | 2016-04-27 | 河海大学 | The simulation system of regulation and control wawter bloom of meeting an urgent need under changing environment and operation method |
CN104699979B (en) * | 2015-03-24 | 2018-03-20 | 北京工商大学 | Urban lake storehouse algal bloom Study on prediction technology of chaotic series based on complex network |
CN106855949A (en) * | 2016-11-29 | 2017-06-16 | 广州视源电子科技股份有限公司 | Identification method and device of mark points |
CN106909898A (en) * | 2017-02-24 | 2017-06-30 | 北京惠达智农科技有限公司 | Image intelligent analysing terminal and method in straw-returning monitoring |
CN107271367B (en) * | 2017-05-05 | 2019-06-28 | 北京师范大学 | A kind of identifying water boy method and device |
CN108334865B (en) * | 2018-03-12 | 2019-03-12 | 贵州迦太利华信息科技有限公司 | Big data analysis device based on image |
CN109118548A (en) * | 2018-07-17 | 2019-01-01 | 浙江大学 | A kind of comprehensive intelligent water quality recognition methods |
CN110836706B (en) * | 2018-08-15 | 2020-11-03 | 珠海格力电器股份有限公司 | Liquid level detection method and device |
CN109447984B (en) * | 2018-11-14 | 2021-05-04 | 重庆交通大学 | Anti-interference landslide monitoring method based on image processing |
CN110399774B (en) * | 2019-04-18 | 2021-05-25 | 张亦军 | Fishery monitoring management system |
CN110371279B (en) * | 2019-06-03 | 2020-12-25 | 中国水产科学研究院南海水产研究所 | Fishing ground trapping information acquisition device |
CN111122816B (en) * | 2019-12-30 | 2022-07-05 | 重庆商勤科技有限公司 | Water bloom early warning system and method based on combination of online monitoring and image recognition |
CN111103416A (en) * | 2019-12-30 | 2020-05-05 | 重庆商勤科技有限公司 | Water source pollution early warning method and system |
CN111239050A (en) * | 2020-03-12 | 2020-06-05 | 高永飞 | River and lake water ecological environment monitoring method based on Internet of things |
CN115147403A (en) * | 2021-08-03 | 2022-10-04 | 嘉洋智慧安全生产科技发展(北京)有限公司 | Method and device for detecting liquid pollutants, electronic equipment and medium |
CN115695738A (en) * | 2022-12-30 | 2023-02-03 | 北京世纪农丰土地科技有限公司 | Monitoring system for water body eutrophication problem in ecological protection restoration |
CN116768336A (en) * | 2023-08-04 | 2023-09-19 | 北京世纪农丰土地科技有限公司 | Monitoring system for water eutrophication problem in ecological protection restoration |
CN117085969B (en) * | 2023-10-11 | 2024-02-13 | 中国移动紫金(江苏)创新研究院有限公司 | Artificial Intelligence Industrial Vision Inspection Methods, Devices, Equipment and Storage Media |
CN117808900B (en) * | 2024-02-29 | 2024-05-14 | 云南省农业科学院质量标准与检测技术研究所 | Method and device for classifying color development intensity of maize anthocyanin |
CN117911878B (en) * | 2024-03-20 | 2024-06-07 | 江西三思检测技术有限公司 | Pollutant early warning method and device for intelligent environment-friendly housekeeper |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08194876A (en) * | 1995-01-17 | 1996-07-30 | Hitachi Ltd | Water surface monitoring device |
US6119630A (en) * | 1997-05-26 | 2000-09-19 | 3042015 Nova Scotia Limited | Installation for in situ monitoring the quality of habitat of aquatic organisms |
CN101706494A (en) * | 2009-11-11 | 2010-05-12 | 清华大学 | Method for judging and early warning outbreak potential of water bloom of water body |
-
2010
- 2010-07-06 CN CN2010102185112A patent/CN101900687B/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102998664A (en) * | 2012-10-29 | 2013-03-27 | 中国科学院对地观测与数字地球科学中心 | Method and device for identifying water bloom on basis of synthetic aperture radar |
CN102998664B (en) * | 2012-10-29 | 2014-10-22 | 中国科学院对地观测与数字地球科学中心 | Method and device for identifying water bloom on basis of synthetic aperture radar |
Also Published As
Publication number | Publication date |
---|---|
CN101900687A (en) | 2010-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101900687B (en) | Method for monitoring and early warning water bloom in small water area based on image processing | |
Yang et al. | Spatial and temporal variations in the relationship between lake water surface temperatures and water quality-A case study of Dianchi Lake | |
Hu et al. | Eutrophication state in the Eastern China based on Landsat 35-year observations | |
CN108597189B (en) | distributed medium and small watershed geological disaster and flood early warning method based on critical rainfall | |
CN105139585B (en) | A kind of soil-slope dangerous situation intelligent early-warning forecasting procedure | |
CN107657348A (en) | A kind of comprehensive water quality intelligent supervision method and its system based on Internet of Things | |
CN106709212B (en) | Multi-parameter evaluation method for rapidly identifying soil organic carbon key output area | |
CN106779418A (en) | Water contamination accident Intelligent Decision-making Method based on neutral net and evidence theory | |
CN112215525B (en) | A method for inversion and visual evaluation of lake and reservoir water quality | |
CN115409741A (en) | A Machine Vision Recognition Algorithm for Measuring Sediment Content Using River Surface Color Difference | |
CN107563597A (en) | The intelligent early-warning method of gross contamination emission | |
CN117491585A (en) | Water ecological pollution monitoring method, device and system based on time sequence network | |
CN115789527A (en) | Analysis system and method based on water environment informatization treatment | |
CN116307265B (en) | A method and system for water ecological governance analysis and decision-making based on water flow model | |
CN116994410A (en) | River basin water environment ecological safety early warning method | |
CN102081033A (en) | Suspended sand concentration calculating method based on coastal zone imager | |
Fan et al. | Loss of tidal creek ecosystem vitality caused by tidal flat narrowing on the central Jiangsu coast, China | |
CN115965878B (en) | A GEE-based inversion monitoring method for suspended sediment in rivers on the Qinghai-Tibet Plateau | |
CN117853938A (en) | Ecological monitoring system and method based on image recognition | |
Chen et al. | Research on marine disaster prevention and mitigation information platform system based on big data | |
CN116631169B (en) | Multifunctional marine environment monitoring and early warning intelligent system | |
CN117196305A (en) | Meteorological hydrologic early warning method suitable for plain water network area | |
Yue et al. | A new strategy for environmental flow management by using the remote sensing method | |
Zhang et al. | Temporal–spatial distribution characteristics and combinatorial risk probabilities of water pollutants in the Guo River Basin, China | |
Ren et al. | Analysis on driving factors and prediction of dynamic change of Poyang lake area |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120104 Termination date: 20140706 |
|
EXPY | Termination of patent right or utility model |