Summary of the invention
In order to solve technical problem of the prior art, the present invention provides a kind of two CCD camera measure system precision analytical method.
In order to solve above-mentioned technical problem, technical scheme is specific as follows:
A kind of two CCD camera measure system precision analytical method, its analytical equipment being suitable for includes: two cameras;The zero of vision measurement system is based upon the projection centre of a wherein camera;
If the effective focal length of two cameras respectively f1、f2, the projection centre of two cameras respectively O1、O2, viewing field of camera angle isDistance between projection centre is baseline distance B;The angle of baseline distance B and two optical axises of camera is α respectively1、α2;(x, y are z) P', O at the subpoint of xz plane to 1, space P1P、O2P and O1P′、O2The angle of P ' is designated as respectivelyO1P′、O2The angle of P ' and two camera optical axis is ω respectively1、ω2;
This analysis method comprises the following steps:
According to geometrical relationship, it is possible to obtain:
Z is the impact point P distance z to measurement system, geometrical relationship can also obtain relevantExpression formula:
By above two formulas, the three-dimensional coordinate of any 1 P in space can be expressed as
Further by geometrical relationship, can obtain about expression formula:
According to pin-hole imaging principle, it is known that:
Ask partial derivative computing system precision as follows:
To simplify the analysis, f is made1=f2=f, α1=α2=α is given on the perpendicular bisector of camera baseline the certainty of measurement of point, therefore ω here1=ω2=ω;Range measurement accuracy is as follows:
Wherein △ is that spatial point P is becoming the imaging deviation in plane, △=p here, it is believed that deviation is not more than 1 pixel.
In technique scheme, around x-axis running accuracy analyze particularly as follows:
Spatial point P around x-axis rotate η spend time;
Local derviation is asked to obtain (4) formula:
In technique scheme, around y-axis running accuracy analyze particularly as follows:
Spatial point P is when y-axis rotation β is spent;
Local derviation is asked to obtain (6) formula:
In technique scheme, around z-axis running accuracy analyze particularly as follows:
Spatial point P around z-axis rotate γ spend time;
Owing to γ is only small, now the variable quantity of Y-direction much larger than X-direction variable quantity, therefore can only consider Y-direction change, and wherein a/2 is the half of field coverage, then have
Around z-axis running accuracy it is:
The present invention has following beneficial effect:
The two CCD camera measure system precision analytical method of the present invention, can be used as checking and reference of practical engineering calculation.
The two CCD camera measure system precision analytical method of the present invention, system accuracy analysis is carried out for two CCD camera measure system, by the parsing relation establishing binocular measuring system camera parameter, put between baseline and system accuracy, utilize this parsing relation, we can according to the required precision of system, determine the parameters such as camera parameter, angles and baseline, it is achieved thereby that the design of quantifiable system.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in detail.
1. positional accuracy measurement analysis
In order to analyze binocular stereo vision configuration and the parameter impact on precision, set up such as the precision analysis model of Fig. 1.
Conveniently, the zero of vision measurement system is based upon the projection centre of a wherein camera.If the effective focal length of two cameras respectively f1、f2, the projection centre of two cameras respectively O1、O2, viewing field of camera angle is
Distance between projection centre is baseline distance B.The angle of baseline distance B and two optical axises of camera is α respectively1、α2.(x, y are z) P', O at the subpoint of xz plane to 1, space P1P、O2P and O1P′、O2The angle of P ' is designated as respectivelyO1P′、O2The angle of P ' and two camera optical axis is ω respectively1、ω2。
According to the geometrical relationship in Fig. 1, it is possible to obtain:
Z is the impact point P distance z to measurement system, geometrical relationship can also obtain relevantExpression formula:
By above two formulas, the three-dimensional coordinate of any 1 P in space can be expressed as
Further by the geometrical relationship of Fig. 1, can obtain about expression formula:
According to pin-hole imaging principle, it is known that:
Ask partial derivative computing system precision as follows:
To simplify the analysis, f is made1=f2=f, α1=α2=α is given on the perpendicular bisector of camera baseline the certainty of measurement of point, therefore ω here1=ω2=ω.Range measurement accuracy is as follows:
Wherein △ is that spatial point P is becoming the imaging deviation in plane, △=p here, it is believed that deviation is not more than 1 pixel.
2. analyze around x-axis running accuracy
Spatial point P around x-axis rotate η spend time, the imaging schematic diagram of P' is as shown in Figure 2.
Local derviation is asked to obtain (4) formula:
3. analyze around y-axis running accuracy
Spatial point P is when y-axis rotation β is spent, and the imaging schematic diagram of P' is as shown in Figure 3.
Local derviation is asked to obtain (6) formula:
4. analyze around z-axis running accuracy
Spatial point P around z-axis rotate γ spend time, the imaging schematic diagram of P' is as shown in Figure 4.
Owing to γ is only small, now the variable quantity of Y-direction much larger than X-direction variable quantity, therefore can only consider Y-direction change, and wherein a/2 is the half of field coverage, then have
Around z-axis running accuracy it is:
The checkout procedure of the two CCD camera measure system precision analytical method of the present invention is as follows:
1. hardware environment: matlab2013.
2. step
1) software arrangements
Title: Stereo_precision.m
Position: this file is arranged in the precision analysis position of system
Function: can according to camera parameter computing system precision.
Step: see below
Interface: input as camera parameter, is output as translation running accuracy.
2) step
A) camera parameter information is set
(1) camera focus f=12mm;
(2) pixel dimension p=4.8um;
(3) viewing field of camera angle is 42 ° × 27 °;
(4) binocular camera baseline B=200mm;
(5) camera optical axis and horizontal sextant angle α=79 °.
B) parameter in a) substitutes into (11)~(13), (16), (19), (22) formula obtain the translation precision in X, Y, Z axis direction and around the running accuracy of X, Y, Z axis.
According to formula (11)~(13), (16), (19), (22) calculate the distance under different distance and running accuracy is as shown in table 1.
Table 1 distance and running accuracy
Can be seen that from above-mentioned experimental result, utilize the two CCD camera measure system precision analysis device of the present invention, can according to the required precision of system, determine the parameters such as the parameter of camera, angles and baseline, it is achieved thereby that the design of quantifiable system, the analysis method that the present invention provides and analysis result can be used as checking of practical engineering calculation.
Obviously, above-described embodiment is only for clearly demonstrating example, and is not the restriction to embodiment.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here without also cannot all of embodiment be given exhaustive.And the apparent change thus extended out or variation are still among the protection domain of the invention.