Summary of the invention
In order to solve the problems referred to above, the invention provides a kind of water level automatic checkout equipment, according to water level
The features of shape of surveyors' staff, builds special image acquisition targetedly and identifies subset set
Detect current level efficiently and accurately, and add up short-time average water level with the time for axle, use short
Time mean water carry out water level early warning or warning, whole system simple installation, measurement data accurately, can
Lean on.
According to an aspect of the present invention, it is provided that a kind of water level automatic checkout equipment, described detection equipment
Including level measuring scale, high-definition camera, image processor and master controller, described level measuring
Scale vertically stands in water, and described high-definition camera is used for described level measuring scale on water level
Part shoots, to obtain scale map picture waterborne, and described image processor and described high-definition camera
Connect, for scale map picture waterborne is carried out image procossing, to obtain current level, described main control
Device is connected with described image processor, for determining whether to carry out water level report based on described current level
Alert.
More specifically, in described water level automatic checkout equipment, also include: RS232 serial communication connects
Mouthful, for connecting external equipment by RS232 serial communication mode, store to read in external equipment
Level measuring total scale length, level measuring ruler units scale value, preset detection time interval,
Preset and receive number of times, the water level upper limit, unit scales line upper limit gray threshold and unit scales line lower limit ash
Degree threshold value, described unit scales line upper limit gray threshold and described unit scales line lower limit gray threshold are used
In being separated with background by the unit scales line in image, described default detection time interval is less than 0.5 second;
Static memory, is connected with described RS232 serial communication interface, is used for reading and store described water level
Surveyors' staff total length, described level measuring ruler units scale value, described default detection time interval,
Described default reception number of times, the described water level upper limit, described unit scales line upper limit gray threshold and described
Unit scales line lower limit gray threshold;Intervalometer, detects automatically for the water level for described detection equipment
Chronometric data is provided;Wireless communication interface, sets up two-way channel radio with the water affairs management platform of far-end
Letter link, for receiving the control instruction that described water affairs management platform sends, is additionally operable to and described master control
Device processed connects, water level normal signal, water level super-limit prewarning signal or water level overload alarm signal to be sent out
Give described water affairs management platform, also mean water is sent to described water affairs management platform;Warning sets
Standby, it is connected with described master controller, including speaker and LCDs, described speaker is used for broadcasting
Put the voice corresponding with water level normal signal, water level super-limit prewarning signal or water level overload alarm signal to carry
Show file, described LCDs for display with water level normal signal, water level super-limit prewarning signal or
The prompt text that water level overload alarm signal is corresponding, described LCDs is additionally operable to and mean water pair
The prompt text answered;Described high-definition camera includes optical filter, camera lens and cmos image sensor,
Described camera lens is between described optical filter and described cmos image sensor, and described CMOS schemes
As the resolution of the scale map picture waterborne of sensor acquisition is 1920 × 1080, described cmos image
Sensor is connected with described intervalometer, shoots scale the most waterborne every described default detection time interval
Image carries out image procossing to be sent to described image processor;Described image processor and described static state
Memorizer and described high-definition camera connect respectively, including Lens Distortion Correction unit, wavelet filtering list
Unit, gray processing processing unit, unit scales recognition unit and water level computing unit, described radial distortion
Correction unit, described wavelet filtering unit, described gray processing processing unit, described unit scales identification
Unit and described water level computing unit are respectively adopted different fpga chips and realize, and described radial direction is abnormal
Become correction unit to be connected with described cmos image sensor, use distortion correction based on the plane of delineation
Scale map picture waterborne is realized Lens Distortion Correction, it is thus achieved that close to the image conduct under the conditions of ideal image
Scale image on correction water, described wavelet filtering unit is connected with described Lens Distortion Correction unit,
By Harr wavelet filter, scale image on correction water is performed wavelet filtering, to obtain filtering figure
Picture, described gray processing processing unit is connected with described wavelet filtering unit, and filtering image is performed gray scale
Change processes, to obtain gray level image, and described unit scales recognition unit and described gray processing processing unit
Connect with described static memory, by gray value in described gray level image in the described unit scales line upper limit
Pixel identification between gray threshold and described unit scales line lower limit gray threshold also forms unit and carves
Degree line image, the quantity at the unit scales line interval in unit of account graduation mark image is using as mark waterborne
Chi unit scales quantity exports, described water level computing unit and described unit scales recognition unit and described
Static memory connects respectively, based on described level measuring total scale length, described level measuring scale
Unit scales value and described ruler units number of division gauge waterborne calculate current level;Described master controller
It is connected respectively with described static memory and described water level computing unit, whenever the current water having been received by
When the number of times of position reaches described default reception number of times, calculating a mean water, described mean water is
The meansigma methods of the multiple current level having been received by, and when the mean water calculated is less than on described water level
In limited time, send water level normal signal, when the mean water calculated is more than or equal to the described water level upper limit,
Send water level super-limit prewarning signal, when the mean water calculated exceedes the 20% of the described water level upper limit,
Send water level overload alarm signal;Wherein, described water level computing unit is based on described level measuring scale
Total length, described level measuring ruler units scale value and described ruler units number of division amount waterborne calculate
Go out current level particularly as follows: described current level deducts described equal to described level measuring total scale length
Level measuring ruler units scale value and the product of described ruler units scale quantity waterborne.
More specifically, in described water level automatic checkout equipment: described cmos image sensor passes through
Scale map picture waterborne is sent to described image processor by CSI interface.
More specifically, in described water level automatic checkout equipment: described wireless communication link is GPRS
One in mobile communication link, 3G mobile communication link or 4G mobile communication link.
More specifically, in described water level automatic checkout equipment: described static memory is synchronous dynamic
Random access memory SDRAM, the memory capacity of described static memory is 1GB.
More specifically, in described water level automatic checkout equipment: described high-definition camera is positioned at described water
On the cross bar of position surveyors' staff right opposite.
Detailed description of the invention
Below with reference to accompanying drawings the embodiment of the water level automatic checkout equipment of the present invention is carried out in detail
Explanation.
Water level detecting is widely used in hydrologic forecast, emergency flood fighting and water engineering facility.For water
For literary composition forecast, the combination reference of history water level and current level, it is possible to substantially determine following pre-timing
Interior water level and other hydrographic datas, for emergency flood fighting, current level exceedes early warning water level
Amplitude determine the urgency level of emergency flood fighting, be allotment disaster relief personnel amount and flood control amount of material
Important referential data, and for water engineering facility build for, if effectively utilize waterlevel data
Can determine that water engineering facility is built the most successful.
Owing to water level detecting reference role is extremely important, thus water level detecting result must in real time, reliably.
Initial water level detecting is to be completed, along with sending out of electronic technology by artificial range estimation level measuring scale
Exhibition, float and touch sensor that pressure group formula is representative, to use ultrasound wave, radar, laser be generation
The noncontacting proximity sensor of table starts to be applied to level measuring, although these electronic measurement techniques are necessarily
Decrease cost of labor and time cost in degree, but all there is drawback inherently, certainty of measurement
The current requirement to water level detecting technology all can not be met with cost performance.
The present invention has built a kind of water level automatic checkout equipment, and shape based on level measuring scale is special
Point, is provided with targetedly, image acquisition that cost performance is higher and process subset and accurately obtain currently
Water level, simultaneously by rational statistical technique and corresponding warning device, it is achieved based on current level
Various water-level alarms operate.
Fig. 1 is the block diagram according to the water level automatic checkout equipment shown in embodiment of the present invention,
Described detection equipment includes level measuring scale 1, high-definition camera 2, image processor 3 and master control
Device 4 processed, described level measuring scale 1 vertically stands in water, and described high-definition camera 2 is for institute
State the level measuring scale 1 part on water level to shoot, to obtain scale map picture waterborne, described
Image processor 3 is connected with described high-definition camera 2, for carrying out scale map picture waterborne at image
Reason, to obtain current level, described master controller 4 is taken the photograph with described image processor 3 and described high definition
As 2 connect respectively, for determining whether to carry out water-level alarm based on described current level.
Then, continue the concrete structure of the water level automatic checkout equipment of the present invention is carried out further
Bright.
Described detection equipment also includes: RS232 serial communication interface, for being led to by RS232 serial
Letter mode connects external equipment, to read the level measuring total scale length of storage, water in external equipment
Position surveyors' staff unit scales value, preset detection time interval, preset receive number of times, the water level upper limit,
Unit scales line upper limit gray threshold and unit scales line lower limit gray threshold, on described unit scales line
Limit gray threshold and described unit scales line lower limit gray threshold are for by the unit scales line in image
Separating with background, described default detection time interval is less than 0.5 second.
Described detection equipment also includes: static memory, is connected with described RS232 serial communication interface,
For reading and store described level measuring total scale length, described level measuring ruler units scale
Value, described default detection time interval, described default reception number of times, the described water level upper limit, described list
Position graduation mark upper limit gray threshold and described unit scales line lower limit gray threshold.
Described detection equipment also includes: intervalometer, automatically detects for the water level for described detection equipment
Chronometric data is provided.
Described detection equipment also includes: wireless communication interface, sets up double with the water affairs management platform of far-end
To wireless communication link, for receive described water affairs management platform send control instruction, be additionally operable to
It is connected with described master controller 4, so that water level normal signal, water level super-limit prewarning signal or water level are surpassed
Limit alarm signal is sent to described water affairs management platform, and mean water is also sent to described water affairs management
Platform.
Described detection equipment also includes: warning device, is connected with described master controller 4, including raising one's voice
Device and LCDs, described speaker is for playing and water level normal signal, water level super-limit prewarning letter
Number or voice prompted file corresponding to water level overload alarm signal, described LCDs for display with
The prompt text that water level normal signal, water level super-limit prewarning signal or water level overload alarm signal are corresponding,
Described LCDs is additionally operable to the prompt text corresponding with mean water.
As in figure 2 it is shown, described high-definition camera 2 includes that optical filter 21, camera lens 22 and CMOS are schemed
As sensor 23, described camera lens 22 is positioned at described optical filter 21 and described cmos image sensor
Between 23, the resolution of the scale map picture waterborne that described cmos image sensor 23 gathers is 1920
× 1080, described cmos image sensor 23 is connected with described intervalometer, every described default inspection
Survey time interval shooting scale map picture the most waterborne to carry out at image to be sent to described image processor 3
Reason.
Described image processor 3 is connected respectively with described static memory and described high-definition camera 2,
Including Lens Distortion Correction unit, wavelet filtering unit, gray processing processing unit, unit scales identification
Unit and water level computing unit, described Lens Distortion Correction unit, described wavelet filtering unit, described
Gray processing processing unit, described unit scales recognition unit and described water level computing unit are respectively adopted not
Same fpga chip realizes, described Lens Distortion Correction unit and described cmos image sensor
23 connect, and use distortion correction based on the plane of delineation that scale map picture waterborne is realized radial distortion school
Just, it is thus achieved that close to the image under the conditions of ideal image as scale image on correction water, described small echo
Filter unit is connected with described Lens Distortion Correction unit, by Harr wavelet filter to correction water
Upper scale image performs wavelet filtering, and to obtain filtering image, described gray processing processing unit is with described
Wavelet filtering unit connects, and filtering image is performed gray processing and processes, to obtain gray level image.
Described unit scales recognition unit connects with described gray processing processing unit and described static memory
Connect, by gray value in described gray level image in described unit scales line upper limit gray threshold and described unit
Pixel identification between graduation mark lower limit gray threshold also forms unit scales line image, and unit of account is carved
Degree line image in unit scales line interval quantity using as ruler units scale quantity waterborne export,
Described water level computing unit is connected respectively with described unit scales recognition unit and described static memory,
Based on described level measuring total scale length, described level measuring ruler units scale value and described waterborne
Ruler units number of division gauge calculates current level.
Described master controller 4 is connected, often respectively with described static memory and described water level computing unit
When the number of times of the current level having been received by reaches described default reception number of times, calculate an average water
Position, described mean water is the meansigma methods of the multiple current level having been received by, and average when calculate
When water level is less than the described water level upper limit, send water level normal signal, when the mean water calculated is more than
When the described water level upper limit, send water level super-limit prewarning signal, when the mean water calculated exceedes described
The water level upper limit 20% time, send water level overload alarm signal.
Wherein, described water level computing unit is surveyed based on described level measuring total scale length, described water level
Amount ruler units scale value and described ruler units number of division gauge waterborne calculate current level particularly as follows:
Described current level deducts described level measuring ruler units equal to described level measuring total scale length
Scale value and the product of described ruler units scale quantity waterborne.
Wherein, in described detection equipment, described cmos image sensor 23 is optional passes through CSI
Scale map picture waterborne is sent to described image processor 3 by interface, and described wireless communication link is chosen as
One in GPRS mobile communication link, 3G mobile communication link or 4G mobile communication link, institute
Stating static memory can be synchronous DRAM SDRAM, depositing of described static memory
Storage capacity is 1GB, and described high-definition camera 2 can be located at described level measuring scale right opposite
On cross bar.
It addition, CMOS (Complementary Metal-Oxide-Semiconductor), middle literature
Entitled complementary metal oxide semiconductors (CMOS), he is originally a kind of important chip in computer system, preserves
The data that System guides is most basic.It is poor that the manufacturing technology of CMOS and general computer chip do not have
Not, the quasiconductor made mainly by silicon and germanium both elements so that it is coexist on CMOS
Band N (band-electricity) and the quasiconductor of P (band+electricity) level, electricity produced by the two complementary effect
Stream can be processed chip record and be interpreted to image.Found that CMOS can also make through processing later
For the imageing sensor in digital photography.
For independent of the portable use of electrical network, the CMOS skill famous with low power consumption characteristic
Art has an obvious advantage: cmos image sensor is for 5V and 3.3V supply voltage
Design.CCD chip then needs the supply voltage of about 12V, therefore has to use one
Electric pressure converter, thus cause power consumption to increase.In terms of total power consumption, integrated with systemic-function controlling
Another benefit will be brought: it is all that he eliminates with other semiconductor elements in cmos sensor
External connection line.The driver of its high power consumption is abandoned the most, this is because carry out at chip internal
The energy that communication is consumed is more much lower than by the outside implementation of PCB or substrate.
Cmos sensor also can be subdivided into passive type element sensor (Passive Pixel Sensor
CMOS) with active pixel sensor (Active Pixel Sensor CMOS).
Passive type element sensor (Passive Pixel Sensor is called for short PPS), is again passive type picture
Element sensor, he is made up of a back-biased light sensitive diode and a switching tube.Photosensitive two poles
Pipe is substantially a PN junction being made up of P-type semiconductor and N-type semiconductor, and he can be equivalent to one
Individual back-biased diode and a mos capacitance parallel connection.When switching tube is opened, photosensitive two poles
Pipe connects with vertical alignment (Column bus).The charge integration amplifier being positioned at alignment end is read
Going out circuit (Charge integrating amplifier) keeps column line voltage to be a constant, when photosensitive two poles
The signal charge of pipe storage is when being read, and its voltage is reset to column line voltage level, meanwhile,
The electric charge being directly proportional to optical signal is converted to electric charge output by charge integration amplifier.
Active pixel sensor (Active Pixel Sensor is called for short APS), is again active picture
Element sensor.Almost while CMOS PPS dot structure is invented, it is rapidly be recognized that at picture
In element, introducing buffer or amplifier can improve the performance of pixel, each pixel in CMOS APS
Inside there is the amplifier of oneself.The transistor that amplifies being integrated in surface decreases effective table of pixel element
Area, reduces " packaging density ", makes the incident illumination of 40%~50% be reflected.This sensor
Another problem be how to make to have between the multichannel amplifier of sensor preferably coupling, this can
Preferably realize with the fixed pattern noise by reducing residual level.Due in CMOS APS pixel
Each amplifier only at this read during be excited, so CMOS APS power dissipation ratio CCD figure
The least as sensor.
Use the water level automatic checkout equipment of the present invention, for existing electronic type water level detecting equipment sexual valence
The highest or the technical problem of poor reliability of ratio, by acquisition technology targetedly, image procossing
Technology and data statistics technology have built a kind of vision water level that can balance cost performance and reliability
Automatic checkout equipment, simultaneously this equipment simple installation, the data stabilization of detection such that it is able to for the hydrology
Forecast, emergency flood fighting and water engineering facility provide more valuable reference data.
Although it is understood that the present invention discloses as above with preferred embodiment, but above-mentioned enforcement
Example is not limited to the present invention.For any those of ordinary skill in the art, without departing from
Under technical solution of the present invention ambit, all may utilize the technology contents of the disclosure above to the technology of the present invention
Scheme makes many possible variations and modification, or is revised as the Equivalent embodiments of equivalent variations.Therefore,
Every content without departing from technical solution of the present invention, the technical spirit of the foundation present invention is to above example
Any simple modification, equivalent variations and the modification done, all still falls within technical solution of the present invention protection
In the range of.