A kind of automatic calibration device and scaling method using image procossing principleTechnical field
The automatic calibration device and scaling method of image procossing principle are the present invention relates to the use of, belongs to demarcation field.
Background technology
In laboratory, river model or the measurement of prototype river surface flow velocity are extensively using broad surface flow field image measurementSystem.Its principle is:The good trace particle of trace performance is disseminated in water surface, water movement is followed, between record certain timeEvery flow field figure picture, through image procossing extract trace particle picture, in adjacent two width flow field figure picture carry out particle matching, find t1Moment trace particle is after the Δ t times in t2The image at moment, particle displacement L in the Δ t times is calculated, so as to try to achieve tracerThe speed of particle, the speed v of corresponding current point:V=L/ Δ t, the unit that displacement L is extracted from image is pixel, real to obtainBorder flow velocity size is, it is necessary to which relation between pixel and physical size will be established, and the process is referred to as demarcating, and α=l/N, α are unit pictureActual size corresponding to element, l, N are respectively water surface physical length pixel count corresponding with image.
When prototype river is applied, video camera can only be erected on seashore, and to obtain the flow velocity at river center, video camera needsArrangement is inclined at an angle, causes the image different zones of collection different deformations to be present.Therefore, there is an urgent need to a kind of automaticCaliberating device.
The content of the invention
Goal of the invention:In order to overcome the deficiencies in the prior art, the present invention provides one kind and utilizes image procossing principleAutomatic calibration device and scaling method, by follow the trail of two beam laser crosspoint, with geometrical relationship establish image pixel withPhysical size transformational relation, realizes automatic Calibration.
Technical scheme:To achieve the above object, the automatic calibration device of the invention using image procossing principle, including theOne rotary-tray, the second rotary-tray, first laser emitter and second laser emitter, the first laser transmitting dressSetting on the first rotary-tray, second laser emitter is located on the second rotary-tray, and first rotary-tray passes throughBearing is arranged on the first swingle, and the first swingle is inserted on the first sleeve, and the first swingle bottom is provided with the first screw threadHole, is provided with the first screw rod in the first screwed hole, and the first screw rod is arranged on the first motor;Second rotary-tray passes throughBearing is arranged on the second swingle, and the second swingle is inserted in second sleeve, and the second swingle bottom is provided with the second screw threadHole, the second screw rod is installed in the second screwed hole, the second screw rod is arranged on the second motor, in the first rotary-tray and secondPositioner is equipped with rotary-tray, positioner is connected with display device, display device be arranged on the first rotary-tray andOn second rotary-tray, first rotary-tray and the second rotary-tray are mounted on handle, and shooting is provided with riverbankMachine.
Preferably, first sleeve and second sleeve be all provided with it is fluted, the two of the first swingle and the second swingleSide is extended with boss, and boss is inserted in groove.
Preferably, it is mounted on angular transducer on first rotary-tray and the second rotary-tray.
Preferably, it is equipped with level meter on first rotary-tray and the second rotary-tray.
Preferably, screwed hole is equipped with first swingle and the second swingle, in the first rotary-tray andThe center of two rotary-trays is inserted into screwed hole inserted with clamping screw, clamping screw.
A kind of scaling method of automatic calibration device using image procossing principle, comprises the following steps:
(1) the first rotary-tray and the second rotary-tray are adjusted in horizontal level by level meter, the first rotation is held in the palmDisk is adjusted to river lowest water level by the first motor, reads the height of positioner on the first rotary-tray, passes through the second electricityMachine drives the movement of the second rotary-tray, passes through the positioning on second motor driven the second rotary-tray the second rotary-tray of degree of excursionThe reading of device is identical with the reading on the first rotary-tray, and the second motor is stopped;
(2) the first rotary-tray and the second rotary-tray are rotated, overlaps first laser and second laser two-beam, firstThe distance between laser and second laser central point are A, are X with the second laser line of centres using first laser center as originAxle, prototype coordinate system is established according to the right-hand rule;
(3) the first rotary-tray is rotated, the angular transducer on the first rotary-tray shows that reading is a11, rotate the second rotationAsk disk, and the angular transducer on the second rotary-tray shows that reading is a21, video camera shooting laser image M1, the friendship of two beam laserPoint P1 is (x in the coordinate that image coordinate is fastenedM1,yM1), the coordinate on prototype coordinate system is (x1,y1), then have:
y1=A/ (cota11+cota21)
x1=y1cota11;
(4) the first rotary-tray is rotated, the angular transducer on the first rotary-tray shows that reading is a12, rotate the second rotationAsk disk, and the angular transducer on the second rotary-tray shows that reading is a22, video camera shooting laser image M2, the friendship of two beam laserPoint P2 is (x in the coordinate that image coordinate is fastenedM2,yM2), the coordinate on prototype coordinate system is (x2,y2), then have:
y2=A/ (cota12+cota22)
x2=y2cota12;
(5) actual range between P1 and P2 is:
(6) pixel distance between P1 and P2 on image is:
(7) relation then between unit pixel and physical size is:
α=l/N.
Beneficial effect:The automatic calibration device using image procossing principle of the present invention, when the current for measuring some regionDuring speed, by intersection point projection and this region of two beam laser, image pixel and physical size transformational relation are established with geometrical relationship,Automatic Calibration is realized, the result of demarcation is then fed back into video camera, more accurately calculates flow velocity.
Brief description of the drawings
Fig. 1 is the structural representation of the present invention.
Fig. 2 is the angle figure that first laser and second laser turn over.
Fig. 3 is schematic diagram calculation.
Embodiment
The present invention is further described below in conjunction with the accompanying drawings.
As shown in figure 1, the automatic calibration device using image procossing principle of the present invention, including the first rotary-tray 4, theTwo rotary-trays, first laser emitter 1 and second laser emitter, the first laser emitter 1 are located at firstOn rotary-tray 4, second laser emitter is located on the second rotary-tray, and first rotary-tray 4 is installed by bearing 3On the first swingle 6, the first swingle 6 is inserted on the first sleeve 7, and the bottom of the first swingle 6 is provided with the first screwed hole,First screw rod 8 is installed, the first screw rod 8 is arranged on the first motor 9 in first screwed hole;Second rotary-tray passes through axleHold 3 to be arranged on the second swingle, the second swingle is inserted in second sleeve, and the second swingle bottom is provided with the second screw threadHole, the second screw rod is installed in the second screwed hole, the second screw rod is arranged on the second motor, in the first rotary-tray and secondPositioner 10 is equipped with rotary-tray, positioner 10 can be GPS location instrument, or Big Dipper position indicator, positioningDevice is connected with display device, and display device is arranged on the first rotary-tray 4 and the second rotary-tray, is provided with riverbankVideo camera 12.
In the present invention, first sleeve 7 and second sleeve are all provided with fluted, the first swingle 6 and the second swingleBoth sides be extended with boss, in boss insertion groove.Angle is mounted on the rotary-tray of first rotary-tray 4 and secondSpend sensor, angular transducer SSA00XXH2-C020.Water is equipped with the rotary-tray of first rotary-tray 4 and secondLevel.Screwed hole is equipped with the swingle of first swingle 6 and second, in the first rotary-tray 4 and the second rotary-trayCenter be inserted into inserted with clamping screw 2, clamping screw 2 in screwed hole.
A kind of scaling method of automatic calibration device using image procossing principle, as shown in Figures 2 and 3, including it is followingStep:
(1) the first rotary-tray 4 and the second rotary-tray are adjusted in horizontal level by level meter, the first rotation is held in the palmDisk 4 is adjusted to river lowest water level by the first motor 9, reads the height of positioner 10 on the first rotary-tray 4, by theTwo the second rotary-trays of motor driven move, by second motor driven the second rotary-tray the second rotary-tray of degree of excursionThe reading of positioner is identical with the reading of positioner on the first rotary-tray 4, and the second motor is stopped;
(2) the first rotary-tray 4 and the second rotary-tray are rotated, overlaps first laser and second laser two-beam, theThe distance between one laser and second laser central point are A, using first laser center as origin, are with the second laser line of centresX-axis, prototype coordinate system is established according to the right-hand rule;
(3) the first rotary-tray 4 is rotated, the angular transducer on the first rotary-tray 4 shows that reading is a11, rotate secondRotary-tray, the angular transducer on the second rotary-tray show that reading is a21, video camera 12 shoots laser image M1, and two beams swashLight intersection point P1 is (x in the coordinate that image coordinate is fastenedM1,yM1), the coordinate on prototype coordinate system is (x1,y1), then have:
y1=A/ (cota11+cota21)
x1=y1cota11;
(4) the first rotary-tray 4 is rotated, the angular transducer on the first rotary-tray 4 shows that reading is a12, rotate secondRotary-tray, the angular transducer on the second rotary-tray show that reading is a22, video camera 12 shoots laser image M2, and two beams swashLight intersection point P2 is (x in the coordinate that image coordinate is fastenedM2,yM2), the coordinate on prototype coordinate system is (x2,y2), then have:
y2=A/ (cota12+cota22)
x2=y2cota12;
(5) actual range between P1 and P2 is:
(6) pixel distance between P1 and P2 on image is:
(7) relation then between unit pixel and physical size is:
α=l/N.
Described above is only the preferred embodiment of the present invention, it should be pointed out that:For the ordinary skill people of the artFor member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also shouldIt is considered as protection scope of the present invention.