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.