Distributed PTV flow field survey system and measuring method thereof in a kind of current
Technical field
The present invention relates to distributed PTV flow field survey system and measuring method thereof in a kind of current, be specifically related to distributed image velocity-measuring system and the measuring method thereof of surface flow field in a kind of current, belong to Hydraulics and River Dynamics technical field.
Background technology
Water flow structure is the core content of Hydraulics and River Dynamics, model test is the important means of carrying out current research, and fluid-velocity survey technology is the basis that obtains water flow structure data, the research of carrying out model test flow field measuring technique is very necessary and urgent to improving water flow mud-sand research level, can be hydraulic engineering construction, flood control, shipping, Ecology improvement and reparation, water prevention and cure of pollution and water environment improvement etc. advanced technical support is provided.
At present in pattern of water flow experimental study, widespread use be that particle picture is followed the tracks of velocity measuring technique (PTV, Particle Tracking Velocimetry), be mainly used in the measurement of instantaneous surface flow field on a large scale of river work and harbor model.But current PTV flow field survey system adopts common simulation camera more, need to carry out multichannel image collection by video line and image pick-up card, when measurement range is larger, conventionally need to arrange even up to a hundred cameras of dozens of, connect up very complicated loaded down with trivial details.In addition, computing machine need carry out circular treatment to the image of a plurality of cameras, and whole audience splicing is carried out in the flow field that calculates each camera shooting area then, just can obtain whole flow field.The difficult problem urgent needs such as when camera quantity is more, the image processing time can be long, and what be just difficult to assurance measurement is instantaneous flow field, and wiring is complicated, the image processing time is long are resolved, and have seriously restricted the raising of current research levels.
Adopt at present wired measuring mode, connect up more complicated, increased installation difficulty, in addition, because the port number that every collecting image of computer card is supported is limited, when camera quantity is too many, need many computing machines, inconvenient operation.And because line is too many, often there will be signal to disturb, affect image quality.
In sum, model test flow field measuring technique is the gordian technique of current research, in order to overcome the insoluble difficult problem of current PTV flow field velocity measuring technique, be badly in need of a kind of device or system that can realize wireless measurement, meet the particle image velocimetry of instantaneity requirement of research and development, further improve flow field survey technical merit.
Summary of the invention
Goal of the invention: in order to overcome the deficiencies in the prior art, the first object of the present invention is to provide a kind of distributed PTV flow field transient measurement system.
Another object of the present invention is to provide a kind of distributed PTV flow field transient measurement method.
Technical scheme: for solving the problems of the technologies described above, distributed PTV flow field survey system in a kind of current provided by the invention, comprises river model, trace particle, one group of smart camera, one group of POE switch, wireless router and Flow Field Calculation system; Described trace particle is evenly distributed in the current of river model, described smart camera is arranged on the water surface top of river model, described smart camera is connected with POE switch, described POE switch is connected with wireless router, described wireless router and wireless network card UNICOM, Flow Field Calculation system is connected with wireless network card; Described smart camera inside is provided with image processing module.
Preferably, described image processing module comprises: image capture module, the Threshold segmentation module being connected with image capture module, the zone marker module being connected with Threshold segmentation module, the spot extraction module being connected with zone marker module, the particle coordinate module being connected with spot extraction module.
Preferably, described Flow Field Calculation system comprises: computer and calculating analysis software, described calculating analysis software comprises particle matching module, the coordinate transferring being connected with particle matching module, the flow velocity extraction module being connected with coordinate transferring, the flow field concatenation module being connected with flow velocity extraction module and the flow field display module being connected with flow field concatenation module.
Preferably, described each POE switch is connected with several smart cameras respectively, and wireless router is connected with each POE switch respectively.
Preferably, described trace particle oval in shape, the major axis width of described trace particle is 2 ~ 4 times of trace particle minor axis width.
Preferably, described trace particle is divided into white, and described trace particle adopts PP material and plaster of paris modulation to form, and the density of trace particle approaches the density of water, floats on water surface.
A PTV flow field transient measurement method, described measuring process is as follows:
A) in current, evenly dispense colored trace particle and swim in water surface;
B) with several smart cameras take trace particles moving image and in establish pass through image processing program, automatically extract particle coordinate, described image processing program comprises the steps: to gather image information by image capture module, then carry out carrying out image threshold segmentation, by zone marker module, trace particle is carried out to zone marker, then the trace particle that carries out zone marker is carried out to particle coordinate extraction;
C) POE switch is connected with several smart cameras, and the particle coordinate data of smart camera output is outputed to the Flow Field Calculation system of computing machine by wireless router;
D) Flow Field Calculation system adopts particle matching algorithm to calculate surface flow field, comprises the following steps:
1) adopt the shortest method of Particles Moving distance to mate the particle in two continuous frames image, for each trace particle in the 1st two field picture, setting search radius in the second two field picture, in hunting zone, particle is mated in the shortest conduct of distance with it;
2) by demarcating, image coordinate is scaled to actual coordinate, Particles Moving distance is obtained to flow velocity divided by the time: V=△ d/ △ t;
3) two obvious unique points are set in each smart camera coverage, by matching characteristic point, carry out translation and rotational transform, complete the splicing of whole flow field.
4) coordinate of each particle and flow velocity are carried out to whole audience demonstration.
Beneficial effect: colour particles image speed measurement system provided by the invention in terms of existing technologies, simple in structure, is easy to build, and is conducive to promote the use of; By employing, algorithm is embedded into smart camera and carries out distributed image processing and wireless measurement, solved and adopted camera and the wired mode being connected of capture card, wiring is complicated, and computing time is long, is difficult to meet the requirement of instantaneous synchro measure.The present invention, by establishing program in smart camera and wireless measurement has improved measuring speed, directly exports measurement data, realizes transient measurement, has guaranteed the real-time accuracy of data.
A kind of distributed PTV flow field measurement method of the present invention, can significantly improve flow field survey accuracy rate and efficiency, thereby promotes current research level to promote, for able to resisting flood and drought, protection water environment etc. provides technical support.
Accompanying drawing explanation
Fig. 1 is distributed PTV flow field survey system schematic of the present invention.
Fig. 2 is that flow field shows schematic diagram.
Fig. 3 is image processing module schematic diagram in smart camera in the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described.
As shown in Figure 1, distributed PTV flow field survey system in a kind of current, comprises river model 1, trace particle 2, one group of smart camera 3, one group of POE switch 4, wireless router 5, wireless network card 7 and Flow Field Calculation system 8; Described trace particle 2 is evenly distributed in the current of river model 1, described smart camera 3 is arranged on the water surface top of river model 1, described smart camera 3 is connected with POE switch 4, described POE switch 4 is connected with wireless router 5, described wireless router 5 and wireless network card 7 UNICOMs, Flow Field Calculation system 8 is connected with wireless network card 7; Described smart camera 3 inside are provided with image processing module, described image processing module comprises: image capture module, the Threshold segmentation module being connected with image capture module, the zone marker module being connected with Threshold segmentation module, the spot extraction module being connected with zone marker module, the particle coordinate module being connected with spot extraction module.
Described Flow Field Calculation system 8 comprises: computer and calculating analysis software, and described calculating analysis software comprises particle matching module, the coordinate transferring being connected with particle matching module, the flow velocity extraction module being connected with coordinate transferring, the flow field concatenation module being connected with flow velocity extraction module and the flow field display module being connected with flow field concatenation module; Described each POE switch 4 is connected with several smart cameras 3 respectively, and wireless router 5 is connected with each POE switch 4 respectively; Described trace particle 2 oval in shape, the major axis width of described trace particle 2 is 2 ~ 4 times of trace particle minor axis width; Described trace particle 2 is divided into white, and described trace particle 2 adopts PP material and plaster of paris modulation to form, and the density of trace particle 2 approaches the density of water, floats on water surface.
River model 1 is according to natural river, according to certain guide, to dwindle the solid model forming, and is in the key issues such as river seashore midchannel regulation, river improvement, in order to a kind of important research means of simulating riverway water flow sediment movement and river bed change situation.
The trace particle adopting in the present embodiment, is elliptic flow wire shaped, and the major axis width of trace particle is 2 ~ 4 times of trace particle 2 minor axis height, is preferably major axis width and is 3 times of minor axis height.Color is white, and this trace particle adopts PP material and plaster of paris modulation to form, and approaches with jet density, floats on water surface, and followability is good, is difficult for strandedly, is difficult for gathering.
Smart camera 3 adopts Cognex In-Sight Micro, and this smart camera contains multiple vision aid storehouse, comprises image acquisition tool storage room, spot extracting tool storehouse etc.Perpendicular to entity river model 1 water surface, gather the moving image of trace particle 2, and automatically extract particle coordinate data.Particle coordinate data are wirelessly transmitted to Flow Field Calculation system by wireless router, this system comprises particle matching module, coordinate transferring, flow velocity extraction module, flow field concatenation module and flow field display module, the particle coordinate data of calculating analysis software Real-time Collection smart camera output, carry out showing flow field after computational analysis.
A PTV flow field transient measurement method, described measuring process is as follows:
A) in current, evenly dispense colored trace particle and swim in water surface;
B) with several smart cameras take trace particles moving image and in establish pass through image processing program, automatically extract particle coordinate, described image processing program as shown in Figure 3, comprise the steps: to gather image information by image capture module, then carry out carrying out image threshold segmentation, by zone marker module, trace particle is carried out to zone marker, then the trace particle that carries out zone marker is carried out to particle coordinate extraction;
C) POE switch is connected with several smart cameras, and the particle coordinate data of smart camera output is outputed to the Flow Field Calculation system of computing machine by wireless router;
D) Flow Field Calculation system adopts particle matching algorithm to calculate surface flow field, comprises the following steps:
1) adopt the shortest method of Particles Moving distance to mate the particle in two continuous frames image, for each trace particle in the 1st two field picture, setting search radius in the second two field picture, in hunting zone, particle is mated in the shortest conduct of distance with it;
2) by demarcating, image coordinate is scaled to actual coordinate, Particles Moving distance is obtained to flow velocity divided by the time: V=△ d/ △ t;
3) two obvious unique points are set in each smart camera coverage, by matching characteristic point, carry out translation and rotational transform, complete the splicing of whole flow field.
4) coordinate of each particle and flow velocity are carried out to whole audience demonstration.
Figure 2 shows that flow field demonstration figure, velocity vector 9 is sign flow velocity coordinate, size and direction.
The above is only the preferred embodiment of the present invention; be noted that for those skilled in the art; under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.