CN109242861A - A kind of monitoring water quality method based on image procossing - Google Patents
A kind of monitoring water quality method based on image procossing Download PDFInfo
- Publication number
- CN109242861A CN109242861A CN201810963925.4A CN201810963925A CN109242861A CN 109242861 A CN109242861 A CN 109242861A CN 201810963925 A CN201810963925 A CN 201810963925A CN 109242861 A CN109242861 A CN 109242861A
- Authority
- CN
- China
- Prior art keywords
- water body
- image
- floating material
- monitoring
- original
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30181—Earth observation
- G06T2207/30184—Infrastructure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The monitoring water quality method based on image procossing that the invention discloses a kind of, shows water body variable condition in such a way that space-time data and geographic mapping combine.The present invention realizes the monitoring to floating material in water body and water body color by the processing of image procossing and visualization technique, can significant change to water body or gradual change make emergency response, and is carried out to the transformation situation of water body temporal show.The present invention effectively realizes the monitoring to water body, grasps the spatiality of water body in time convenient for related personnel, and generate strategy in time for the variation of water body state.
Description
Technical field
The invention belongs to monitoring water quality technical fields, and in particular to a kind of monitoring water quality method based on image procossing is set
Meter.
Background technique
Currently, commonly to certain section of river/river monitoring water quality method, primarily directed to water temperature, flow, transparency with
And the chemical index such as ammonia nitrogen, total phosphorus are acquired analysis, and provide change procedure curve for analysis result, then impose column
The various ways such as shape figure, pie chart, list carry out data exhibiting.But based on this kind of mode needs to possess permanent data, and
Being aided with corresponding Judging index could complete, and monitors direction and focus on detection to microcosmic particle, for river, lake, river
The significant changes such as the obvious floating material in face and water body color are but ignored, and can not accomplish to notify in time when water quality changes
Related personnel.
Summary of the invention
The monitoring water quality method based on image procossing that the purpose of the present invention is to propose to a kind of, by means of image processing techniques,
Monitoring and warning are realized to the variation in water quality presentation.
The technical solution of the present invention is as follows: a kind of monitoring water quality method based on image procossing, comprising the following steps:
S1, Image Acquisition is carried out to the water body that needs monitor at interval of time T, obtains original water body image, and deposited
It is stored in distributed data base.
S2, floating material identification is carried out to the original water body image stored in distributed data base, obtains the floating in water body
Object quantity.
S3, the identification of water body color is carried out to the original water body image stored in distributed data base, obtains original water body figure
The RGB difference percentage of picture and normal water body image.
S4, in conjunction with WEB front-end visualization technique and Online Map service technology, construct visualization human-computer interaction in terminal
Interface.
Whether the RGB difference percentage that S5, the floating material quantity obtained according to step S2 and step S3 are obtained judges water body
There is exception, if then entering step S6, otherwise enters step S7.
S6, will occur abnormal region in original water body image and carry out label label, and obtain label water body image, and can
It is shown depending on changing human-computer interaction interface, terminates monitoring process.
S7, original water body image is shown in visualization human-computer interaction interface, terminates monitoring process.
Further, the distributed data base in step S1 is MongoDB database.
Further, step S2 include it is following step by step:
S21, image dividing processing is carried out to original water body image, removes letter unrelated with water body in original water body image
Breath retains information related with water body, image after being divided.
S22, gray proces are carried out to image after segmentation, is gray level image format by colored water body image procossing, obtains
Water body gray level image.
S23, the floating material in water body gray level image is identified using edge detection algorithm, obtains the floating in water body
Object quantity.
Further, step S23 specifically:
Calculate the gradient direction angle of each pixel in water body gray level image, calculation formula are as follows:
Wherein a indicates gradient direction angle, GxAnd GyThe image array through horizontal and vertical edge detection is respectively indicated, and:
A indicates original water body gray level image;
Using pixel where the extreme value of gradient direction angle as edge pixel point, edge contour frame is constituted, detects edge wheel
The quantity of wide frame, the floating material quantity as in water body.
Further, step S3 include it is following step by step:
S31, the rgb value for reading original water body image respectively and waiting each pixel in the normal water body images of sizes, and
16 binary datas are converted into, are deposited into two arrays of a height of size of the wide * of image.
S32, the data of same position in two arrays are compared, are counted as 0 if two data are identical, otherwise count
Number is 1.
S33, statistical counting are 1 number, and obtain initial condition multiplied by 100% divided by the total pixel number of image
The RGB difference percentage of body image and normal water body image.
Further, to judge whether water body occurs in step S5 abnormal method particularly includes:
Floating material amount threshold and RGB difference percentage threshold is respectively set, when the floating material quantity that step S2 is obtained
Reach floating material amount threshold or when RGB difference percentage that step S3 is obtained reaches RGB difference percentage threshold, then determines water
Body occurs abnormal.
The beneficial effects of the present invention are: the present invention mainly shows in such a way that space-time data and geographic mapping combine
Water body variable condition.The present invention is realized by the processing of image procossing and visualization technique to floating material in water body and water body
The monitoring of color, can significant change to water body or gradual change make emergency response, and the transformation situation of water body was carried out on the time
Show.The present invention effectively realizes the monitoring to water body, grasps the spatiality of water body in time convenient for related personnel, and is directed to
The variation of water body state is generated strategy in time.
Detailed description of the invention
Fig. 1 show a kind of monitoring water quality method flow diagram based on image procossing provided in an embodiment of the present invention.
Specific embodiment
Carry out detailed description of the present invention illustrative embodiments with reference to the drawings.It should be appreciated that shown in attached drawing and
The embodiment of description is only exemplary, it is intended that is illustrated the principle and spirit of the invention, and is not limited model of the invention
It encloses.
The monitoring water quality method based on image procossing that the embodiment of the invention provides a kind of, as shown in Figure 1, including following step
It is rapid:
S1, Image Acquisition is carried out to the water body that needs monitor at interval of time T, obtains original water body image, and deposited
It is stored in distributed data base.
In the embodiment of the present invention, distributed data base uses MongoDB database.
Time interval T is needed to consider flow rate of water flow and is dived with the streamflow regime concrete analysis for the water area for needing to monitor
In the factors such as Polluted area, the embodiment of the present invention, time interval T is set as 0.5 hour.
S2, floating material identification is carried out to the original water body image stored in distributed data base, obtains the floating in water body
Object quantity.
Step S2 include it is following step by step:
S21, image dividing processing is carried out to original water body image, removes letter unrelated with water body in original water body image
Breath retains information related with water body, image after being divided.
In the embodiment of the present invention, image dividing processing is carried out to original water body image using domain decomposition technique.
S22, gray proces are carried out to image after segmentation, is gray level image format by colored water body image procossing, obtains
Water body gray level image.
In the embodiment of the present invention, the specific method for carrying out gray proces to image after segmentation can carry out according to actual needs
Selection, such as maximum value process (Maximum), mean value method (Average), weighted average method (Weighted Average)
Deng.
S23, the floating material in water body gray level image is identified using edge detection algorithm, obtains the floating in water body
Object quantity.
The basic principle of edge detection algorithm be according to above and below pixel, left and right adjoint point intensity-weighted it is poor, reached in edge
Edge is detected to this phenomenon of extreme value.The edge detection process of image can simply be interpreted as extracting the profile in region in image.
The division in region is using pixel grey scale as foundation in image, and the pixel grey scale in each region is roughly the same, and the side between region
Boundary is known as edge, finds the purpose that these edges are exactly Image Edge-Detection.
Using the edge detection algorithm based on Sobel operator to the floating material in water body gray level image in the embodiment of the present invention
It is identified, boundary is detected by finding maximum value in image first derivative and minimum value, usually by boundary alignment in ladder
Spend maximum direction.
The gradient direction angle of each pixel in water body gray level image, calculation formula are calculated first are as follows:
Wherein a indicates gradient direction angle, GxAnd GyThe image array through horizontal and vertical edge detection is respectively indicated, and:
Wherein A indicates original water body gray level image,WithFor Sobel warp factor.
Using pixel where the extreme value of gradient direction angle as edge pixel point, edge contour frame is constituted, detects edge wheel
The quantity of wide frame, the floating material quantity as in water body.
S3, the identification of water body color is carried out to the original water body image stored in distributed data base, obtains original water body figure
The RGB difference percentage of picture and normal water body image.
Step S3 include it is following step by step:
S31, the rgb value for reading original water body image respectively and waiting each pixel in the normal water body images of sizes, and
16 binary datas are converted into, are deposited into two arrays of a height of size of the wide * of image.
S32, the data of same position in two arrays are compared, are counted as 0 if two data are identical, otherwise count
Number is 1.
S33, the number that statistical counting is 1, and divided by the total pixel number of image (i.e. the numerical value of the wide * high of image), then
Multiplied by 100%, the RGB difference percentage of original water body image and normal water body image is obtained.
S4, in conjunction with WEB front-end visualization technique and Online Map service technology, construct visualization human-computer interaction in terminal
Interface.
Whether the RGB difference percentage that S5, the floating material quantity obtained according to step S2 and step S3 are obtained judges water body
There is exception, if then entering step S6, otherwise enters step S7.
It is abnormal to judge whether water body occurs method particularly includes:
Floating material amount threshold and RGB difference percentage threshold is respectively set, when the floating material quantity that step S2 is obtained
Reach floating material amount threshold or when RGB difference percentage that step S3 is obtained reaches RGB difference percentage threshold, then determines water
Body occurs abnormal.
In the embodiment of the present invention, floating material amount threshold is set as 1, i.e., once detecting that there are floating materials in water body, i.e.,
It is abnormal to determine that water body occurs, RGB difference percentage threshold is set as 10%.
S6, will occur abnormal region in original water body image and carry out label label, and obtain label water body image, and can
It is shown depending on changing human-computer interaction interface, terminates monitoring process.
S7, original water body image is shown in visualization human-computer interaction interface, terminates monitoring process.
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair
Bright principle, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.This field
Those of ordinary skill disclosed the technical disclosures can make according to the present invention and various not depart from the other each of essence of the invention
The specific variations and combinations of kind, these variations and combinations are still within the scope of the present invention.
Claims (7)
1. a kind of monitoring water quality method based on image procossing, which comprises the following steps:
S1, Image Acquisition is carried out to the water body that needs monitor at interval of time T, obtains original water body image, and be stored in
In distributed data base;
S2, floating material identification is carried out to the original water body image stored in distributed data base, obtains the floating material number in water body
Amount;
S3, the identification of water body color is carried out to the original water body image that stores in distributed data base, obtain original water body image and
The RGB difference percentage of normal water body image;
S4, in conjunction with WEB front-end visualization technique and Online Map service technology, construct visualization human-computer interaction circle in terminal
Face;
The RGB difference percentage that S5, the floating material quantity obtained according to step S2 and step S3 are obtained judges whether water body occurs
It is abnormal, if then entering step S6, otherwise enter step S7;
S6, will occur abnormal region progress label label in original water body image, and obtain label water body image, and visualizing
Human-computer interaction interface is shown, monitoring process is terminated;
S7, original water body image is shown in visualization human-computer interaction interface, terminates monitoring process.
2. monitoring water quality method according to claim 1, which is characterized in that the distributed data base in the step S1 is
MongoDB database.
3. monitoring water quality method according to claim 1, which is characterized in that the step S2 include it is following step by step:
S21, image dividing processing is carried out to original water body image, removes information unrelated with water body in original water body image, protected
Stay information related with water body, image after being divided;
S22, gray proces are carried out to image after segmentation, is gray level image format by colored water body image procossing, obtains water body
Gray level image;
S23, the floating material in water body gray level image is identified using edge detection algorithm, obtains the floating material number in water body
Amount.
4. monitoring water quality method according to claim 3, which is characterized in that the step S23 specifically:
Calculate the gradient direction angle of each pixel in water body gray level image, calculation formula are as follows:
Wherein a indicates gradient direction angle, GxAnd GyThe image array through horizontal and vertical edge detection is respectively indicated, and:
A indicates original water body gray level image;
Using pixel where the extreme value of gradient direction angle as edge pixel point, edge contour frame is constituted, detects edge contour frame
Quantity, the floating material quantity as in water body.
5. monitoring water quality method according to claim 1, which is characterized in that the step S3 include it is following step by step:
S31, the rgb value for reading original water body image respectively and waiting each pixel in the normal water body images of sizes, and convert
For 16 binary datas, it is deposited into two arrays of a height of size of the wide * of image;
S32, the data of same position in two arrays are compared, are counted as 0 if two data are identical, are otherwise counted as
1;
S33, the number that statistical counting is 1, and the pixel number total divided by image obtains original water body figure multiplied by 100%
The RGB difference percentage of picture and normal water body image.
6. monitoring water quality method according to claim 1, which is characterized in that judge whether water body occurs in the step S5
Abnormal method particularly includes:
Floating material amount threshold and RGB difference percentage threshold is respectively set, when the floating material quantity that step S2 is obtained reaches
When the RGB difference percentage that floating material amount threshold or step S3 are obtained reaches RGB difference percentage threshold, then determine that water body goes out
It is now abnormal.
7. monitoring water quality method according to claim 6, which is characterized in that the floating material amount threshold is set as 1, institute
It states RGB difference percentage and is set as 10%.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810963925.4A CN109242861A (en) | 2018-08-23 | 2018-08-23 | A kind of monitoring water quality method based on image procossing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810963925.4A CN109242861A (en) | 2018-08-23 | 2018-08-23 | A kind of monitoring water quality method based on image procossing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109242861A true CN109242861A (en) | 2019-01-18 |
Family
ID=65068711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810963925.4A Pending CN109242861A (en) | 2018-08-23 | 2018-08-23 | A kind of monitoring water quality method based on image procossing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109242861A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112142213A (en) * | 2020-09-14 | 2020-12-29 | 广东生太修复科技有限公司 | River water purification method and related device |
CN112418128A (en) * | 2020-11-30 | 2021-02-26 | 重庆市生态环境大数据应用中心 | Surface water monitoring and management system and method |
CN112668591A (en) * | 2020-08-25 | 2021-04-16 | 广东生太修复科技有限公司 | Intelligent river water burst treatment method and related device |
CN112784729A (en) * | 2021-01-19 | 2021-05-11 | 澜途集思生态科技集团有限公司 | A method for automatic identification of floating objects in water bodies |
CN113554731A (en) * | 2021-06-25 | 2021-10-26 | 深圳市震有软件科技有限公司 | A visualization method, device, storage medium and terminal equipment for river water quality |
CN119027628A (en) * | 2024-10-29 | 2024-11-26 | 中国农业大学三亚研究院 | A water body analysis system and method based on edge computing and integrated sensing and computing |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120269381A1 (en) * | 2011-02-09 | 2012-10-25 | Yeon Hak Choo | Device and method for monitoring water level |
CN103324951A (en) * | 2013-05-20 | 2013-09-25 | 北京工业大学 | Multiple isomerous water environment monitoring data evaluating and early-warning method |
CN103530887A (en) * | 2013-10-29 | 2014-01-22 | 重庆大学 | River image region segmentation method based on multi-feature fusion |
US20140314270A1 (en) * | 2013-04-17 | 2014-10-23 | UtopiaCompression Corporation | Detection of floating objects in maritime video using a mobile camera |
CN106981180A (en) * | 2017-04-20 | 2017-07-25 | 武汉大学 | A kind of device for river course monitoring management |
CN107100152A (en) * | 2017-05-03 | 2017-08-29 | 西安理工大学 | A kind of water surface cleaning systems and method |
CN107678390A (en) * | 2017-10-20 | 2018-02-09 | 朱健雄 | A kind of river pollution detects communication system |
CN207067726U (en) * | 2017-07-14 | 2018-03-02 | 成都信息工程大学 | A kind of watercourse monitoring system |
CN108009556A (en) * | 2017-12-23 | 2018-05-08 | 浙江大学 | A kind of floater in river detection method based on fixed point graphical analysis |
CN108267227A (en) * | 2018-03-16 | 2018-07-10 | 浙江水利水电学院 | Detect the Zigbee wireless sensing devices and its control method of water body color |
CN108388916A (en) * | 2018-02-26 | 2018-08-10 | 武汉大学 | A kind of water body floating material automatic identifying method and system based on artificial intelligence |
-
2018
- 2018-08-23 CN CN201810963925.4A patent/CN109242861A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120269381A1 (en) * | 2011-02-09 | 2012-10-25 | Yeon Hak Choo | Device and method for monitoring water level |
US20140314270A1 (en) * | 2013-04-17 | 2014-10-23 | UtopiaCompression Corporation | Detection of floating objects in maritime video using a mobile camera |
CN103324951A (en) * | 2013-05-20 | 2013-09-25 | 北京工业大学 | Multiple isomerous water environment monitoring data evaluating and early-warning method |
CN103530887A (en) * | 2013-10-29 | 2014-01-22 | 重庆大学 | River image region segmentation method based on multi-feature fusion |
CN106981180A (en) * | 2017-04-20 | 2017-07-25 | 武汉大学 | A kind of device for river course monitoring management |
CN107100152A (en) * | 2017-05-03 | 2017-08-29 | 西安理工大学 | A kind of water surface cleaning systems and method |
CN207067726U (en) * | 2017-07-14 | 2018-03-02 | 成都信息工程大学 | A kind of watercourse monitoring system |
CN107678390A (en) * | 2017-10-20 | 2018-02-09 | 朱健雄 | A kind of river pollution detects communication system |
CN108009556A (en) * | 2017-12-23 | 2018-05-08 | 浙江大学 | A kind of floater in river detection method based on fixed point graphical analysis |
CN108388916A (en) * | 2018-02-26 | 2018-08-10 | 武汉大学 | A kind of water body floating material automatic identifying method and system based on artificial intelligence |
CN108267227A (en) * | 2018-03-16 | 2018-07-10 | 浙江水利水电学院 | Detect the Zigbee wireless sensing devices and its control method of water body color |
Non-Patent Citations (3)
Title |
---|
吴宇: "小型移动水质监测系统的研究", 《中国优秀博硕士学位论文全文数据库(硕士)_工程科技Ⅰ辑》 * |
王敏等: "静态水上物体检测分割算法", 《实验室研究与探索》 * |
石萍: "网络化水质多参数监测系统数据终端的关键技术的研究", 《中国优秀博硕士学位论文全文数据库(硕士)_信息科技辑》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112668591A (en) * | 2020-08-25 | 2021-04-16 | 广东生太修复科技有限公司 | Intelligent river water burst treatment method and related device |
CN112668591B (en) * | 2020-08-25 | 2024-10-22 | 广东生太修复科技有限公司 | Intelligent river surge water treatment method and related device |
CN112142213A (en) * | 2020-09-14 | 2020-12-29 | 广东生太修复科技有限公司 | River water purification method and related device |
CN112418128A (en) * | 2020-11-30 | 2021-02-26 | 重庆市生态环境大数据应用中心 | Surface water monitoring and management system and method |
CN112418128B (en) * | 2020-11-30 | 2022-01-21 | 重庆市生态环境大数据应用中心 | Surface water monitoring and management system and method |
CN112784729A (en) * | 2021-01-19 | 2021-05-11 | 澜途集思生态科技集团有限公司 | A method for automatic identification of floating objects in water bodies |
CN113554731A (en) * | 2021-06-25 | 2021-10-26 | 深圳市震有软件科技有限公司 | A visualization method, device, storage medium and terminal equipment for river water quality |
CN119027628A (en) * | 2024-10-29 | 2024-11-26 | 中国农业大学三亚研究院 | A water body analysis system and method based on edge computing and integrated sensing and computing |
CN119027628B (en) * | 2024-10-29 | 2025-01-24 | 中国农业大学三亚研究院 | A water body analysis system and method based on edge computing and integrated sensing and computing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109242861A (en) | A kind of monitoring water quality method based on image procossing | |
CN104781848B (en) | Image monitoring apparatus for estimating gradient of singleton, and method therefor | |
CN107833221B (en) | A water leak detection method based on multi-channel feature fusion and machine learning | |
CN105260713B (en) | A kind of method for detecting lane lines and device | |
CN102855622B (en) | A kind of infrared remote sensing image sea ship detection method based on significance analysis | |
CN103164711A (en) | Regional people stream density estimation method based on pixels and support vector machine (SVM) | |
CN109376740A (en) | A kind of water gauge reading detection method based on video | |
CN110458157B (en) | Intelligent monitoring system for power cable production process | |
CN105205486A (en) | Vehicle logo recognition method and device | |
CN103456009B (en) | Object detection method and device, supervisory system | |
CN103268481A (en) | Method for extracting text in complex background image | |
CN112013921B (en) | Method, device and system for acquiring water level information based on water level gauge measurement image | |
CN115761563A (en) | River surface flow velocity calculation method and system based on optical flow measurement and calculation | |
CN103389042A (en) | Ground automatic detecting and scene height calculating method based on depth image | |
CN105469054B (en) | The model building method of normal behaviour and the detection method of abnormal behaviour | |
CN106991418A (en) | Winged insect detection method, device and terminal | |
CN110111283A (en) | The reminding method and system of infrared suspected target under a kind of complex background | |
KR101874968B1 (en) | Visibility measuring system base on image information and method for using the same | |
CN104966348B (en) | A kind of bill images key element integrality detection method and system | |
CN109461164A (en) | A kind of infrared small target detection method based on direction nuclear reconstitution | |
CN111582076A (en) | Picture freezing detection method based on pixel motion intelligent perception | |
CN103475800A (en) | Method and device for detecting foreground in image sequence | |
JP2009025910A (en) | Obstacle detection device, obstacle detection system, and obstacle detection method | |
CN103514460B (en) | Video monitoring multi-view-angle vehicle detecting method and device | |
CN103473779A (en) | Method and device for detecting stripe interference in image |
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: 20190118 |
|
RJ01 | Rejection of invention patent application after publication |