CN104748791B - Operating method of water environmental monitoring device adopting image vision processing technology - Google Patents

Operating method of water environmental monitoring device adopting image vision processing technology Download PDF

Info

Publication number
CN104748791B
CN104748791B CN201510101235.4A CN201510101235A CN104748791B CN 104748791 B CN104748791 B CN 104748791B CN 201510101235 A CN201510101235 A CN 201510101235A CN 104748791 B CN104748791 B CN 104748791B
Authority
CN
China
Prior art keywords
water
water surface
measurement pipe
image
video camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510101235.4A
Other languages
Chinese (zh)
Other versions
CN104748791A (en
Inventor
徐阳
王铖
徐杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
The vast gardens construction Development Co., Ltd in Shanghai
Original Assignee
Vast Gardens Construction Development Co Ltd In Shanghai
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 Vast Gardens Construction Development Co Ltd In Shanghai filed Critical Vast Gardens Construction Development Co Ltd In Shanghai
Priority to CN201510101235.4A priority Critical patent/CN104748791B/en
Publication of CN104748791A publication Critical patent/CN104748791A/en
Application granted granted Critical
Publication of CN104748791B publication Critical patent/CN104748791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to an operating method of a water environmental monitoring device adopting an image vision processing technology. The water environmental monitoring device comprises a measurement tube, a digital image acquisition unit and a computer, wherein the lower port of the measurement tube is applicable to entering a water, a camera is arranged just above the upper port and is applicable to shooting a water image in the measurement tube; the computer is connected with the digital image acquisition unit and is used for storing first sample data, and the first sample data is applicable to the gray values of various water qualities; the computer is applicable to the grey processing on the digital image, so as to obtain a grey value of the water image, and the grey value and the first sample data are compared to obtain a water quality condition; the measurement tube is a conical tube, certain end with a small opening of the measurement tube is located above the conical tube so as to reduce the proportion of the inner wall of the measurement tube which occupies an entire picture in an image obtained by the camera, so as to improve the reliability of grey processing; the computer is either a PC (Personal Computer) or a tablet PC (Tablet Personal Computer).

Description

Method of work using the water environment monitoring device of image vision treatment technology
Technical field
The present invention relates to a kind of electronic surveying field, more particularly, to a kind of image vision treatment technology realizes water level and water quality Monitoring device.
Background technology
Existing Level monitor can only individually sensed water level or water quality, cannot implement water level, water quality is supervised simultaneously Survey.
Content of the invention
The technical problem to be solved in the present invention is to provide a kind of water environment monitoring device being adapted for water quality measurement, this water Environment monitoring device carries out water quality monitoring using gray scale detection principle, carries out gray proces to the water surface image shooting and is somebody's turn to do The gray value of water surface image is to obtain water quality situation.
The invention provides a kind of water environment monitoring device, comprising: the measurement pipe being distributed up and down during use, in its lower port It is provided with lighting device and enters upstream face when using, at the upper port of measurement pipe, set a video camera, this video camera is suitable to shoot institute State the water surface image in measurement pipe;Digital image acquisition units, are connected with described video camera, are suitable to convert the image gathering For digital picture;The computer being connected with described digital image acquisition units, this Computer Storage has first sample data, described First sample data is suitable to record the gray value of various water quality;Described first sample data is by described water environment monitoring device pair Known, different quality water is measured one by one and is obtained;Described computer is suitable to described digital picture is carried out at gray scale Reason, to obtain the gray value of described water surface image, this gray value and first sample data are compared and are drawn water quality situation.
Described computer is pc machine.
As one kind preferably, described measurement pipe is conical pipe, and the less one end of opening is in top, is obtained with reducing video camera The ratio of the whole image shared by inwall of measurement pipe in the image obtaining, to improve the reliability of gray proces.
Further, in order to avoid the impact to water surface image for ambient light when shooting, the inwall of described measurement pipe is provided with It is suitable to light-absorbing coating.
Further, in order to avoid the impact to water surface image for the ambient light water-bed when shooting, and keep water when not shooting Smooth logical, so that the water quality in described measurement pipe is consistent with actual water quality, described measurement pipe is on the tube wall of underwater side Multiple through holes, and the bottom end closure of this measurement pipe are distributed with, to prevent veiling glare from entering in measurement pipe;On the body below the water surface Sheathed one sleeve pipe that through hole is distributed with;Described sleeve pipe is suitable to drive this sleeve pipe to pass around the rotating mechanism that described measurement pipe rotates with one It is dynamically connected, the controller that this rotating mechanism is connected with described video camera by controls, in not filming surface image, control described Rotating mechanism drives sleeve rotating so that the through hole in described measurement pipe is relative respectively with the through hole on sleeve pipe, so that current are suitable to Pass in and out described measurement pipe;In filming surface image, described rotating mechanism is controlled to drive sleeve rotating so that in described measurement pipe Through hole and sleeve pipe on through hole offset one from another, with prevent extraneous light enter described measurement pipe.
Further, in order to realize the level measuring to described water environment monitoring device, described measurement pipe is fixedly installed;Shooting Machine adopts focusing wide angle camera lens, or tight shot.
Described computer is also stored with the second sample data, and this second sample data is suitable to record the water in described measurement pipe The pixel value of face picture and video camera are apart from the corresponding table of water surface elevation or calculating formula;Described computer is further adapted for calculating currently The pixel value of the water surface image in described measurement pipe shooting, and current camera distance is drawn by described second sample data Then the setting height(from bottom) of described video camera is deducted the height apart from the water surface for the described video camera by the height of the water surface, that is, obtain water level Value.
As further preferred embodiment, described video camera is fixed in described measurement pipe, and makes this measurement pipe Upper port is closed, to avoid extraneous light to enter this measurement pipe from upper port.
In order that video camera is when shooting, it is more prone to distinguish the edge of water surface image, also includes white in described measurement pipe Float in the pipe of color, in this pipe, float is the column structure of the center through hole with vertical setting, and described image mechanism is suitable to clap Take the photograph the water surface image in described center through hole, and in this pipe, float is suitable to fluctuate in described measurement pipe with the water surface.
Further, in order to realize the level measuring to described water environment monitoring device, the periphery of described measurement pipe is provided with suitable In the float making this measurement pipe bubble through the water column;Described water environment monitoring device also includes: flexible scale, one end of this flexible scale It is fixed on the bottom, the wrap-up that the other end is suitable to wind, strain this flexible scale with is connected, and this wrap-up is fixed on institute State in measurement pipe;Directive wheel, on the inwall of described measurement pipe, neighbouring described directive wheel on the inwall of this measurement pipe Upper and lower is respectively equipped with the upper and lower guide post parallel with the wheel shaft of described directive wheel, and described flexible scale is suitable to respectively from described Pass through in the gap of inwall of upper and lower guide post and measurement pipe and be fitted on the inner side wheel face of described directive wheel, described guiding The top of wheel is in above the water surface.Using flexible scale, be suitable to make measurement pipe vertically bubble through the water column on float, the portion such as directive wheel Part, makes described water environment monitoring device can swim on the water surface, and described video camera obtains the top of neighbouring described directive wheel The reading of flexible scale, after image recognition, error correction, obtains actual water level value.The method of described error correction is: will lead to Cross the reading of the described flexible scale of image recognition acquisition, subtract each other with default corrected value, that is, obtain actual water level value.Described pre- If corrected value obtained by experiment.
Present invention also offers a kind of measuring method being suitable to water level and water quality monitoring, the method technical problem to be solved Be using the water surface image that video camera shoots carry out respective handling with obtain the gray value of water surface image and area pixel value with To corresponding water quality and water level conditions.
The method of work of above-mentioned water environment monitoring device, comprises the steps:
(1) it is fixed with measurement pipe on the water surface, its lower port is adapted to enter into the water surface, at upper port, set a video camera, this shooting Machine shoots the water surface image in described measurement pipe;
(2) described water surface image is converted to digital picture by digital image acquisition units;
(3) be stored with the computer being connected with described digital image acquisition units first, second sample data, and described One sample data is suitable to record the gray value of various water quality, and described second sample data is suitable to record the water surface in described measurement pipe The pixel value of image and video camera are apart from the corresponding table of water surface elevation or calculating formula;
(4) described computer carries out gray proces to described digital picture, to obtain the gray value of described water surface image, should Gray value is compared with first sample data, draws water quality situation;
(5) described computer calculates the pixel value of the water surface image in the described measurement pipe of current shooting, and passes through institute State the second sample data and draw the height apart from the water surface for the current camera, then the setting height(from bottom) of described video camera is deducted described Video camera apart from the height of the water surface, that is, obtains water level value.
Further, in order to more easily extract the area pixel value of water surface image, described step (5) includes:
A: described digital picture, after gray proces, adopts matlab function to enter row threshold division and processes to extract water surface shadow The edge of picture;
B: call matlab built-in function bwarea, to calculate the area pixel value of the water surface image after edge extracting.
Compared with prior art, the present invention has the advantage that (1) present invention obtains water quality by water surface image Corresponding situation, device is simple, carries out easily water quality measurement in the case of being easy to carry out water quality test in the wild or unconditionally Or anticipation, without tedious steps;(2) water surface image shooting in the measurement pipe of closing is difficult to receive the impact of ambient, Measurement is more accurate;(3) present invention, while obtaining water quality information, obtains the size of the water surface image in image, and according to Measure the water surface image size obtaining and the distance between video camera relation in advance, to obtain water level, and then achieve water level, water Quality supervision is surveyed, easy to use.
Brief description
In order that present disclosure is more likely to be clearly understood, below according to specific embodiment and combine accompanying drawing, The present invention is further detailed explanation, wherein
The structural representation of the water environment monitoring device of Fig. 1 present invention;
The rotating mechanism of Fig. 2 present invention, controller, the connection diagram of video camera;
A kind of embodiment of the rotating mechanism of Fig. 3 present invention;
The another embodiment of the rotating mechanism of Fig. 4 present invention;
The structure top view of each gag lever post in the another embodiment of the rotating mechanism of Fig. 5 present invention;
The structural representation for water level detection part of the water level detecting system of Fig. 6 present invention.
Specific embodiment
Embodiment one
As Fig. 1, a kind of water environment monitoring device, comprising: measurement pipe 1, its lower port is provided with lighting device and is using When this lower port be suitable to overall enter upstream face 2, set a video camera at upper port, this video camera is suitable to shoot in described measurement pipe 1 Water surface image 2-1;Digital image acquisition units, are connected with described video camera and are suitable to for collection image to be transformed to digital picture; The computer being connected with described digital image acquisition units, this Computer Storage has first sample data, described first sample number According to being suitable to record the gray value of various water quality;Described first sample data is to known, no by described water environment monitoring device Measured one by one with the water of water quality and obtained;Described computer is suitable to carry out gray proces to described digital picture, to obtain The gray value of described water surface image 2-1, this gray value and first sample data are compared and are drawn water quality situation.
Water quality detection principle is the gray value using different quality corresponding gray value sample and water surface image to be detected It is compared, that is, Computer Storage has each gray value sample of different quality, i.e. first sample data.
Corresponding gray value process is carried out to described water surface image 2-1 using matlab built-in function, step is as follows:
i=imread(‘image.jpg’);% opens pending picture (8 gray scales)
imshow(i);% shows this picture
c=mean2(i);% calculates the mean value of image pixel matrix
The gray value of described water surface image 2-1 just can be calculated by mean2 function.
Table 1 is the average gray value of various water quality, i.e. first sample data:
According to common sense, the water quality quality of these water samples may be arranged such that: pure water > green tea water > swimming-pool water > River > it is mixed with the water of mud > by the water of dye discoloration > industrial wastewater ≈ prepared Chinese ink water, when water body sampled images gray value (brightness Value) more hour it is believed that its water quality is poorer, vice versa.Thus in water quality detection, can be by water body overall gray level Calculate corresponding water quality conclusion, the process hand of the higher level such as sample extraction, neutral net, pattern-recognition can also be passed through Section, accomplishes to detect the water quality index of the more refinements such as turbidity.
For example, if the gray scale of the water surface image 2-1 detecting is 85, show that this water quality is suitable with the water quality of river.
In order to avoid the impact to water surface image 2-1 for the ambient, described video camera and upper port are tightly connected, described survey The inwall of buret 1 is provided with and is suitable to light-absorbing black coating.
See Fig. 3, in order to avoid light under water further to the impact shooting, with improve shooting water surface image 2-1 bright Degree, the accuracy of colourity, described measurement pipe 1 is being distributed with multiple through holes on the tube wall below the water surface 2, and this measurement pipe 1 Bottom end closure;On the body below the water surface 2, sheathed one is distributed with the sleeve pipe 8-1 of through hole;Described sleeve pipe 8-1 and one is suitable to drive The rotating mechanism that dynamic this sleeve pipe 8-1 rotates around described measurement pipe 1 is in transmission connection, and this rotating mechanism is connected with described video camera by one Controller control, in not filming surface image 2-1, control described rotating mechanism to drive sleeve pipe 8-1 rotation so that described survey Through hole on through hole on buret 1 and sleeve pipe 8-1 coincide and is suitable for current circulation;In filming surface image 2-1, control described Rotating mechanism drives sleeve pipe 8-1 rotation so that the through hole on through hole and sleeve pipe 8-1 in described measurement pipe 1 offsets one from another, in case Only extraneous light enters described measurement pipe 1.
The specific embodiment that described rotating mechanism control sleeve pipe rotates around described measurement pipe 1:
See Fig. 3, between the bottom lower surface of described measurement pipe 1 and the bottom upper surface of sleeve pipe 8-1, form annular seal space 8-2, This annular seal space 8-2, to play waterproof action, is provided with a stepper motor 8-3 in this annular seal space 8-2, can by stepper motor 8-3 To arrange rotational angle, the through hole on through hole and sleeve pipe 8-1 in described measurement 1 is made to coincide or (the through hole in figure that offsets one from another It is not drawn into), the support of stepper motor 8-3 is fixed on the bottom lower surface of described measurement pipe 1, and the center of this support and institute The center stating bottom lower surface is corresponding, that is, coaxially, rotating shaft one end of described stepper motor 8-3 and described sleeve pipe 8-1 Bottom upper surface is connected to drive sleeve pipe 8-1 to rotate around described measurement pipe 1, and this stepper motor 8-3 is by controller control.
Rotating shaft one end of stepper motor 8-3 can also be fixed on the bottom lower surface of described measurement pipe 1, support is coaxially solid Due to the bottom upper surface of described sleeve pipe 8-1, when stepper motor 8-3 rotates, because rotating shaft is fixed, will not rotate, then machine Seat will rotate, and that is, support drives sleeve pipe 8-1 to rotate around described measurement pipe 1.
See Fig. 4, motor 8-4 can also be installed in described annular seal space 8-2, the support of motor 8-4 is fixed on described The bottom lower surface of measurement pipe 1, and the center of this bottom lower surface is corresponding with the center of this support, that is, coaxially, Rotating shaft 8-5 one end of described motor 8-4 is connected with the bottom upper surface of described sleeve pipe 8-1, because motor 8-4 is in rotation When be difficult to control rotate angle, so a spacing cross bar 8-6 is provided with the rotating shaft 8-5 of described motor 8-4, in institute The bottom upper surface stating sleeve pipe 8-1 is provided with two pairs of gag lever posts, and described spacing cross bar 8-6 is embedded in described two pairs of gag lever posts (i.e. First, the second gag lever post is a pair, and the three, the 4th gag lever posts are a pair) between, when described motor 8-4 rotates, drive described set Pipe 8-1 rotates around described measurement pipe 1, and two pairs of gag lever posts define the anglec of rotation of motor 8-4.
See Fig. 5, specific work process, if described spacing cross bar 8-6 two ends are in the second gag lever post 8-7b, the 3rd gag lever post When at 8-7c, the through hole on through hole and sleeve pipe 8-1 in described measurement pipe 1 coincide, and described spacing cross bar 8-6 two ends are in first When at gag lever post 8-7a, the 4th gag lever post 8-7d, the through hole on through hole and sleeve pipe 8-1 in described measurement pipe 1 offsets one from another, with Prevent light from entering measurement pipe 1.
When video camera prepares to shoot, motor 8-4 controls rotating shaft 8-5 to drive spacing cross bar 8-6 to rotate to first spacing When at bar 8-7a and the 4th gag lever post 8-7d, motor 8-4 quits work, at this moment the through hole in described measurement pipe 1 and sleeve pipe 8-1 On through hole offset one from another, with prevent extraneous light enter described measurement pipe 1, video camera is shot, and shooting finishes, motor 8-4 inverts, and when described spacing cross bar 8-6 rotates to the second gag lever post 8-7b and the 3rd gag lever post 8-7c, makes described measurement pipe 1 On through hole and sleeve pipe 8-1 on through hole coincide, make current circulate.
Certainly in this scheme, gag lever post can also be substituted using stopper slot, and the width of rebate of this stopper slot is more than described Spacing cross bar 8-6.
Embodiment two
On the basis of embodiment one, the technical scheme carrying out the measurement of water level is as follows:
Described measurement pipe 1 is fixedly installed, and described video camera is fixedly installed in the upper port of described measurement pipe 1;Described calculating Machine is also stored with the second sample data, and this second sample data is suitable to record each area pixel value and the shooting of water surface image 2-1 Machine is apart from the respective heights of the water surface, i.e. corresponding relation between each area pixel value and the spacing of video camera and the water surface 2;Described meter Calculation machine is further adapted for calculating the area pixel value of described water surface image 2-1, and this area pixel value and the second sample data are compared Right, draw the height apart from the water surface 2 for the video camera, the setting height(from bottom) of described video camera deducts the height apart from the water surface 2 for the described video camera Degree is to obtain water level value.
The setting height(from bottom) of described video camera can know in advance and be pre-stored in described computer it is also possible to by existing skill The instruments such as the scale in art measure and draw.
Camera height measurement can also be achieved by the following scheme, the program includes: flexible scale, it is suitable to winding, draw The wrap-up of this flexible scale tight, this wrap-up is arranged with camera horizon, and described wrap-up is by a miniature stepping electricity Machine drives, and this motor is suitable to the stopping release scale when scale end thereof contacts are to the bottom and (if current of electric instantaneously diminishes, judges The end thereof contacts of scale are to the bottom), pass through the number of turns that motor under a sensor record drives wrap-up rotation simultaneously, and should Sensor inputs the corresponding number of turns to a control module, and this control module obtains the actual height of video camera by the corresponding number of turns.
Level measuring general principle is the image-forming principle according to object in eye;That is, target is more remote, look at less, right In video camera, the video of camera shooting, picture, it is equally such.So, video camera is fixed on measurement pipe 1 upper port to hang down Directly shoot downwards the water surface image 2-1 in measurement pipe 1.With the change up and down of water level, the i.e. relative distance of water level and video camera There occurs change, this change is presented as the change of picture size shared by water surface image 2-1 in the water surface image 2-1 being clapped Change.Therefore, by calculate image in water surface image 2-1 size it can be determined that go out the water surface 2 relative with video camera away from From because camera position is fixing, thus water level can be conversed.
This invention and application number 200910232679.6, entitled " water level measurement system based on image vision and side Method ".Scheme compare, it is simpler to have advantages below (1) structure, need not can be carried out water stage measurement by float;(2) Error is little, because float is bubbling through the water column, therefore when shooting, the height of the projection of the float of shooting is not actual water level Highly, more slightly higher than actual water level, this there is error, and various water quality density is different, causes float and floats on water The height in face is different, needs to carry out error revision, brings trouble to level measuring, but the present invention directly passes through water surface image 2-1, to carry out level measuring, overcomes drawbacks described above.
Also include managing interior float in described measurement pipe 1, in this pipe, float is the column of the center through hole with vertical setting Structure, described image mechanism is suitable to shoot the water surface image in described center through hole, and in this pipe, float is suitable to the water surface in institute State in measurement pipe 1 and fluctuate;By shoot manage in water surface image 2-1 in float make this water surface image 2-1 edge more Clearly, it is easy to extract the area of this water surface image 2-1.
Embodiment three
See Fig. 6, on the basis of embodiment one, carry out the measurement of water level, this technical scheme is as follows:
It is installed with a video camera, the periphery of described measurement pipe 1 is provided with and is suitable to make this at the upper port of described measurement pipe 1 Measurement pipe 1 vertically bubble through the water column 2 float 3, and measurement pipe 1 can be made to bubble through the water column by this float 3, need not in addition fix.
Described water environment monitoring device also includes:
Flexible scale 4, and one end is fixed on the bottom, and the other end and is suitable to wind, strain the wrap-up of this flexible scale 4 5 are connected, and this wrap-up 5 is fixed on the top of described measurement pipe 1;
Directive wheel 6, on the inwall of described measurement pipe 1, on neighbouring described directive wheel on the inwall of this measurement pipe 1, It is respectively arranged below with guide post 7-1, lower guide post 7-2, described flexible scale 4 is suitable to from described upper guide post 7-1, lower guiding Bar 7-2 passes through and is fitted on the inner side wheel face of described directive wheel 6, and the top of described directive wheel 6 is in above the water surface.
The principle that this embodiment six carries out level measuring be using video camera in filming surface image 2-1, shoot simultaneously It is directed to the flexible scale 4 that wheel 6 is propped up, the scale of flexible scale 4 is easy to after being propped up be photographed, and has just obtained actual water Position.
Due to directive wheel 6 very little, carry out water quality detection when, the water surface image 2-1 of shooting carries out leading during gray proces It is negligible to parts such as wheel, scales, the gray value not interfering with water surface image 2-1 calculates.
And described flexible scale 4 stretches into the bottom end closure that the bottom has no effect on described measurement pipe 1.
Example IV
See Fig. 1, the method for work of the water environment monitoring device on the basis of embodiment two, comprise the steps:
(1) water surface 2 is fixedly arranged above measurement pipe 1, and its lower port is adapted to enter into the water surface 2, sets a video camera at upper port, should Video camera shoots the water surface image 2-1 in described measurement pipe 1;
(2) described water surface image 2-1 is converted to digital picture by digital image acquisition units;
(3) computer being connected with described digital image acquisition units, this Computer Storage has first, second sample number According to described first sample data is suitable to record the gray value of various water quality, and described second sample data is suitable to record water surface image Each area pixel value of 2-1 and video camera are apart from respective heights (that is, each area pixel value and video camera and the water surface 2 of the water surface Corresponding relation between spacing);
(4) described computer carries out gray proces to described digital picture, to obtain the gray scale of described water surface image 2-1 Value, this gray value and first sample data are compared and are drawn water quality situation;
(5) described computer calculates the area pixel value of described water surface image 2-1, this area pixel value and the second sample Data is compared, and draws the height apart from the water surface 2 for the video camera, and the setting height(from bottom) of described video camera deducts described video camera distance The height of the water surface 2 is to obtain water level value.
Described step (5) includes:
A: after described water surface image 2-1 carries out gray proces, adopt matlab function to enter row threshold division and process to extract The edge of water surface image 2-1;
B: call matlab built-in function bwarea, to calculate the area pixel value of the water surface image 2-1 after edge extracting.
The concrete grammar of water quality detection is shown in the water quality monitoring step in embodiment 1.
The concrete grammar that water level calculates
Enter row threshold division using the water surface image 2-1 that video camera described in matlab function pair shoots to process, its step is such as Under:
i=imread(‘image.jpg’);% opens pending picture
imshow(i);% shows this picture
Inew=im2bw (i, x/255);% carries out image binaryzation according to threshold value x, divides target and background
figure;imshow(inew);% shows the result after binaryzation
Obtain the area of water surface image 2-1 by above-mentioned steps, for example, this water surface image 2-1 is white, and background is black Color.Different colors can certainly be arranged as required to, such as water surface image 2-1 is black, background is white.
Here with water surface image 2-1 as white, as a example background is black, in order to calculate the area of white portion, adjustable With matlab built-in function bwarea.The number of the bwarea function not non-zero pixel of simple computation, it also gives not to different pixels Same authority, to compensate by representing, with discrete data, the error that consecutive image is brought.Diagonal as 50 points of length will The horizontal line length longer than 50 points, therefore, the horizontal line area of 50 points of length that bwarea function returns is 50, and 50 points of length is diagonal What line area returned is 62.5.
The step carrying out areal calculation using bwarea is as follows:
number=bwarea(inew);
number
Calculate the pixel of white portion, i.e. the area pixel of described water surface image 2-1, and with storage in a computer The second sample data, that is, record water surface image 2-1 each area pixel value (i.e. pixel) right apart from the water surface with video camera The corresponding relation list answering height compares, as shown in table 2:
Distance (cm) Pixel Distance (cm) Pixel Distance (cm) Pixel
18 59998 25 31759 32 20668
19 54116 26 28131 33 19627
20 49458 27 25657 34 18809
21 45541 28 24082 35 17774
22 41099 29 23204 36 16963
23 38848 30 22223 37 16188
24 34584 31 21549 42 14800
50 13966
For example, if number is 54116, i.e. 54116 elemental areas.Then the water surface 2 and the spacing of video camera are 19cm, that is, Video camera is 19cm apart from the height of the water surface 2, therefore 54116 this distances of elemental area and 19cm produce mapping relations.
Described video camera is not linear apart from the height of the water surface, but a curve being delayed by abrupt change, the i.e. water surface Nearer away from video camera, identical SEA LEVEL VARIATION, the change of water surface image is bigger.Thus the precision of this water level measurement method is also impermanent Fixed, the suitable precision of guarantee when measurement range is less, therefore it is applied to the little waters of SEA LEVEL VARIATION (as mobility not Big lake, the cistern of limited height).
The present invention can also carry out edge extracting using canny detective operators for gray component, to obtain water surface image Each area pixel value of 2-1, concrete steps referring to patent of invention, application number 200910232679.6, entitled " regarded based on image The water level measurement system felt and method ".
Periodical " computer and modernization " 06 phase in 2006, paper " the gray level image side based on cnn of Huang Lei, Liu Wenbo In the research of template parameter in edge extraction algorithm ", gray-scale edges are extracted and be also described in detail, the present invention similarly can adopt This algorithm.
Periodical " Nanjing Aero-Space University " 2006, the paper of Huang Lei " is carried based on the image border of cell neural network Take algorithm research " in describing method that edge extracting is carried out to image using neutral net, the method is applied equally to The present invention.
Obtain video camera from table 2 after the height of the water surface 2, the setting height(from bottom) of described video camera deducts described video camera Apart from the water surface 2 height to obtain water level value.

Claims (2)

1. a kind of water environment monitoring device is it is characterised in that include:
The measurement pipe being distributed up and down during use, its lower port be provided with lighting device and use when this lower port enter upstream face, A video camera is set, this video camera is suitable to shoot the water surface image in described measurement pipe at the upper port of measurement pipe;
Digital image acquisition units, the image being suitable to obtain described camera acquisition is transformed to digital picture;
The computer being connected with described digital image acquisition units, this Computer Storage has first sample data, described first sample Notebook data is suitable to record the gray value of various water quality;Described first sample data is to known by described water environment monitoring device , the water of different quality measured one by one and obtained;
Described computer is suitable to carry out gray proces to described digital picture, to obtain the gray value of described water surface image, this ash Angle value is compared with first sample data, draws water quality situation;
Being located at when using on the tube wall below the water surface of described measurement pipe is distributed with multiple through holes, and the bottom envelope of this measurement pipe Close;On the body below the water surface, sheathed one is distributed with the sleeve pipe of through hole;
Described sleeve pipe is suitable to drive the rotating mechanism that this sleeve pipe rotates around described measurement pipe to be in transmission connection with one, this rotating mechanism by The controller that one is connected with described video camera controls, and in not filming surface image, controls described rotating mechanism to drive sleeve pipe rotation Turn so that the through hole in described measurement pipe is relative respectively with the through hole on sleeve pipe, so that current are suitable to pass in and out described measurement pipe;? During filming surface image, described rotating mechanism is controlled to drive sleeve rotating so that logical on through hole and sleeve pipe in described measurement pipe Hole offsets one from another, to prevent extraneous light from entering described measurement pipe;
Described measurement pipe is conical pipe, and the less one end of opening is in top.
2. a kind of method of work of water environment monitoring device according to claim 1 is it is characterised in that comprise the steps:
(1) it is fixed with measurement pipe on the water surface, its lower port is adapted to enter into the water surface, at upper port, sets a video camera, this video camera is clapped Take the photograph the water surface image in described measurement pipe;
(2) described water surface image is converted to digital picture by digital image acquisition units;
(3) be stored with the computer being connected with described digital image acquisition units first, second sample data, described first sample Notebook data is suitable to record the gray value of various water quality, and described second sample data is suitable to record the water surface image in described measurement pipe Pixel value and video camera apart from the corresponding table of water surface elevation or calculating formula;
(4) described computer carries out gray proces to described digital picture, to obtain the gray value of described water surface image, this gray scale Value is compared with first sample data, draws water quality situation;
(5) described computer calculates the pixel value of the water surface image in the described measurement pipe of current shooting, and by described the Two sample datas draw the height apart from the water surface for the current camera, then the setting height(from bottom) of described video camera are deducted described shooting Machine apart from the height of the water surface, that is, obtains water level value.
CN201510101235.4A 2013-03-18 2013-03-18 Operating method of water environmental monitoring device adopting image vision processing technology Active CN104748791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510101235.4A CN104748791B (en) 2013-03-18 2013-03-18 Operating method of water environmental monitoring device adopting image vision processing technology

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310087572.3A CN103175792B (en) 2013-03-18 2013-03-18 Water environment monitoring device based on machine vision
CN201510101235.4A CN104748791B (en) 2013-03-18 2013-03-18 Operating method of water environmental monitoring device adopting image vision processing technology

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310087572.3A Division CN103175792B (en) 2013-03-18 2013-03-18 Water environment monitoring device based on machine vision

Publications (2)

Publication Number Publication Date
CN104748791A CN104748791A (en) 2015-07-01
CN104748791B true CN104748791B (en) 2017-01-25

Family

ID=48635798

Family Applications (8)

Application Number Title Priority Date Filing Date
CN201510100916.9A Active CN104749111B (en) 2013-03-18 2013-03-18 It is capable of achieving water level, the water environment monitoring device of water quality monitoring
CN201510100688.5A Active CN104749116B (en) 2013-03-18 2013-03-18 A kind of water environment monitoring device based on machine vision
CN201510100687.0A Active CN104748789B (en) 2013-03-18 2013-03-18 Water environment monitoring device
CN201510101616.2A Expired - Fee Related CN104748792B (en) 2013-03-18 2013-03-18 The method of work of water environment monitoring device
CN201510100880.4A Expired - Fee Related CN104748790B (en) 2013-03-18 2013-03-18 A kind of water environment monitoring device and its method of work
CN201510101043.3A Active CN104749117B (en) 2013-03-18 2013-03-18 Using the water environment monitoring device of image vision treatment technology
CN201510101235.4A Active CN104748791B (en) 2013-03-18 2013-03-18 Operating method of water environmental monitoring device adopting image vision processing technology
CN201310087572.3A Active CN103175792B (en) 2013-03-18 2013-03-18 Water environment monitoring device based on machine vision

Family Applications Before (6)

Application Number Title Priority Date Filing Date
CN201510100916.9A Active CN104749111B (en) 2013-03-18 2013-03-18 It is capable of achieving water level, the water environment monitoring device of water quality monitoring
CN201510100688.5A Active CN104749116B (en) 2013-03-18 2013-03-18 A kind of water environment monitoring device based on machine vision
CN201510100687.0A Active CN104748789B (en) 2013-03-18 2013-03-18 Water environment monitoring device
CN201510101616.2A Expired - Fee Related CN104748792B (en) 2013-03-18 2013-03-18 The method of work of water environment monitoring device
CN201510100880.4A Expired - Fee Related CN104748790B (en) 2013-03-18 2013-03-18 A kind of water environment monitoring device and its method of work
CN201510101043.3A Active CN104749117B (en) 2013-03-18 2013-03-18 Using the water environment monitoring device of image vision treatment technology

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201310087572.3A Active CN103175792B (en) 2013-03-18 2013-03-18 Water environment monitoring device based on machine vision

Country Status (1)

Country Link
CN (8) CN104749111B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133480B (en) * 2014-04-17 2017-02-15 中国航空工业集团公司沈阳飞机设计研究所 Aerial oil receiving guide control method based on machine vision
CN107301454B (en) * 2016-04-15 2021-01-22 中科寒武纪科技股份有限公司 Artificial neural network reverse training device and method supporting discrete data representation
CN107703324B (en) * 2017-11-03 2023-12-01 山东电子职业技术学院 Multifunctional water quality monitoring device and monitoring method
CN108572008A (en) * 2018-04-21 2018-09-25 张冬梅 Tap lower reservoir electronics cleaning systems
CN110719414B (en) * 2018-07-11 2021-09-28 叶官兵 Riverbed sampling device
CN110937481B (en) * 2018-09-24 2024-03-15 奥的斯电梯公司 Water detection inside elevator pit
CN111198186B (en) * 2020-01-16 2021-08-31 中南大学 Turbidity detection method based on image recognition and optical transmission fusion
JP2023044875A (en) * 2021-09-21 2023-04-03 東芝デジタルソリューションズ株式会社 Water quality monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2577261Y (en) * 2002-11-06 2003-10-01 张宪民 Underground water-level measuring instrument
CN101718573A (en) * 2009-12-04 2010-06-02 河海大学常州校区 System and method for measuring water level based on image vision
CN202231810U (en) * 2011-10-09 2012-05-23 郝明龙 Infrared illumination system of monitoring terminal for water level and water quality
CN202284965U (en) * 2011-10-21 2012-06-27 常州工学院 System for monitoring water level and water quality

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60224374A (en) * 1984-04-23 1985-11-08 Nec Corp Pseudo gradation reading device
JPH08159947A (en) * 1994-12-02 1996-06-21 Nippon Syst House Kk Water quality control system by image analysis
JP2992804B2 (en) * 1995-03-09 1999-12-20 高田 孝昭 Automatic jellyfish monitoring system for water intake
AU2003256130A1 (en) * 2002-09-19 2004-05-13 Istek Inc. Water quality measuring apparatus and method using image
JP2005291830A (en) * 2004-03-31 2005-10-20 Shinko Engineering & Maintenance Co Ltd Image measurement apparatus and image measurement method for liquid level
CN1300010C (en) * 2004-09-20 2007-02-14 哈尔滨工业大学 Flocculation dispensing parting on line detection device for water treatment and detection method
KR100778014B1 (en) * 2005-09-16 2007-11-21 한국건설기술연구원 Apparatus and method for measuring liquid level by image
KR100722299B1 (en) * 2006-06-27 2007-05-28 김응수 Real time measurement and monitering system for activity of water flea using ccd camera
CN201141839Y (en) * 2007-01-10 2008-10-29 宁波工程学院 Device for detecting tiny bearing surface defect by computer vision technology
CN101900688A (en) * 2010-08-19 2010-12-01 潘海朗 Water quality monitoring method based on motion features of aquatic organism in the image
CN102147281B (en) * 2011-01-12 2012-10-03 湖南大学 Machine-vision based liquid level detection device and method
CN202008382U (en) * 2011-01-12 2011-10-12 湖南大学 Liquid level detector based on machine vision
CN102289824B (en) * 2011-07-06 2013-04-24 湖南大学 Method for positioning plane centroid of pipe orifice image of condenser
CN202282828U (en) * 2011-10-21 2012-06-20 常州工学院 Water level, water quality monitor terminal
CN202305417U (en) * 2011-10-21 2012-07-04 常州工学院 Gray-level-identification-based water quality detecting device
CN102494733B (en) * 2011-12-12 2013-09-25 西安电子科技大学 Water level monitoring system based on image processing and method
CN203083921U (en) * 2013-03-07 2013-07-24 淮阴师范学院 Water quality monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2577261Y (en) * 2002-11-06 2003-10-01 张宪民 Underground water-level measuring instrument
CN101718573A (en) * 2009-12-04 2010-06-02 河海大学常州校区 System and method for measuring water level based on image vision
CN202231810U (en) * 2011-10-09 2012-05-23 郝明龙 Infrared illumination system of monitoring terminal for water level and water quality
CN202284965U (en) * 2011-10-21 2012-06-27 常州工学院 System for monitoring water level and water quality

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于图像处理的水厂加矾量自动决策系统;刘倩等;《合肥工业大学学报(自然科学版)》;20130630;第36卷(第6期);第671-674页 *
锅炉汽包水位数字图像处理算法研究;蔡皓等;《锅炉技术》;20050131;第36卷(第1期);第16-19页 *

Also Published As

Publication number Publication date
CN104749111B (en) 2017-05-31
CN103175792A (en) 2013-06-26
CN104749116B (en) 2017-06-09
CN104748790B (en) 2017-03-01
CN104748792A (en) 2015-07-01
CN104748792B (en) 2017-03-08
CN104748789A (en) 2015-07-01
CN104748791A (en) 2015-07-01
CN104749111A (en) 2015-07-01
CN103175792B (en) 2015-04-29
CN104748790A (en) 2015-07-01
CN104748789B (en) 2017-03-08
CN104749117A (en) 2015-07-01
CN104749117B (en) 2017-03-29
CN104749116A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN104748791B (en) Operating method of water environmental monitoring device adopting image vision processing technology
CN103163075B (en) A kind of water regime monitoring system
CN105865582B (en) Using the working method of the monitoring water environment system of image vision processing technique
CN109064479A (en) A kind of sea horizon detection method based on neighbouring video frame gray scale behavioral characteristics
CN105675509B (en) Monitoring water environment system based on image vision treatment technology
CN105675508B (en) A kind of monitoring water environment system using image vision treatment technology
CN105675510B (en) The monitoring water environment system of water level and water quality monitoring is realized based on image vision processing
CN105717050A (en) Working method of water environment monitoring system based on image visual processing technology
CN105737901B (en) The method that water level and water quality monitoring are realized based on image vision treatment technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Xu Yang

Inventor after: Wang Cheng

Inventor after: Xu Jie

Inventor before: The inventor has waived the right to be mentioned

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20161111

Address after: 201501 Shanghai city Jinshan District Zhu Feng Road No. 9135 Fengjing Mall No. 4 south room 238

Applicant after: The vast gardens construction Development Co., Ltd in Shanghai

Address before: 213022 Jiangsu city of Changzhou province Taihu new North Road, Shimao champagne Lake 29-3 No.

Applicant before: Wu Hao

C14 Grant of patent or utility model
GR01 Patent grant