CN105654476A - Binocular calibration method based on chaotic particle swarm optimization algorithm - Google Patents

Binocular calibration method based on chaotic particle swarm optimization algorithm Download PDF

Info

Publication number
CN105654476A
CN105654476A CN201510998165.7A CN201510998165A CN105654476A CN 105654476 A CN105654476 A CN 105654476A CN 201510998165 A CN201510998165 A CN 201510998165A CN 105654476 A CN105654476 A CN 105654476A
Authority
CN
China
Prior art keywords
particle
gbest
neighborhood
iteration
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510998165.7A
Other languages
Chinese (zh)
Other versions
CN105654476B (en
Inventor
白瑞林
范莹
石爱军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huzhou lingchuang Technology Co., Ltd
Original Assignee
Jiangnan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangnan University filed Critical Jiangnan University
Priority to CN201510998165.7A priority Critical patent/CN105654476B/en
Publication of CN105654476A publication Critical patent/CN105654476A/en
Application granted granted Critical
Publication of CN105654476B publication Critical patent/CN105654476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Abstract

The invention provides a binocular calibration method based on a chaotic particle swarm optimization algorithm. A plurality of sets of dot array planar calibration board image pairs with different poses are simultaneously photographed through two image cameras. On condition that distortion is not considered, initial values of inner parameters and outer parameters of a left image camera and a right image camera are obtained by means of a Zhang's planar template linear calibration method. Then on condition that a two-order radial distortion and a two-order tangential distortion are considered, a three-dimensional reprojection error is minimized by means of the chaotic particle swarm optimization algorithm, thereby obtaining final inner parameter and final outer parameter of the two image cameras. In an iteration optimization process, a global adaptive inertia weight (GAIW) is introduced. A particle local neighborhood is constructed by means of a dynamic annular topological relationship. Speed and current position are updated according to an optimal fitness value in the particle local neighborhood. Furthermore chaotic optimization is performed on the optimal position which corresponds with the optimal fitness value in the particle local neighborhood. The binocular calibration method effectively settles a problem of low calibration precision caused by a local extreme value in a previous particle swarm optimization algorithm, thereby improving binocular calibration precision and ensuring high precision in subsequent binocular three-dimensional reconstruction.

Description

Based on the binocular calibration method of chaotic particle swarm optimization algorithm
Technical field
The present invention relates to machine vision metrology field, in particular to a kind of binocular calibration method based on chaotic particle swarm optimization algorithm.
Background technology
Binocular vision is perceived distance technology the most important in passive ranging method, owing to its direct modeling human vision is to the processing mode of scene, take testee from different angles by two pick up cameras simultaneously, through binocular calibration and three-dimensional coupling, principle of triangulation is utilized to obtain the three-dimensional information of object. Wherein binocular calibration is as the most important integral part of binocular vision, and its essence is the relative pose relation determining between the inner parameter of two pick up cameras and two pick up cameras according to pick up camera geometry imaging model.
Existing camera marking method mainly contains linear approach, two-step approach, nonlinear optimization method etc., and wherein linear approach does not consider that camera lens distorts, and precision is not high; Two-step approach is one method comparatively flexibly between linear approach and nonlinear method, mainly contain the two-step approach of Tsai and the flat formwork method of Zhang, both linear solution initial parameters, then consider that distortion carries out nonlinear optimization, but still the requirement of industrial machine vision can not be met, stated accuracy increases; Nonlinear optimization method, owing to considering that distortion carries out successive ignition optimization, can obtain higher stated accuracy. Traditional nonlinear parameter optimization method has Levenberg-Marquardt method, gradient descent method, method of conjugate gradient, newton's method etc., but such method computation process is complicated, initial iterative value is responsive, parameter is by the constraint of non-linear factor, and poor astringency, easily it is absorbed in local optimum, it is not easy to obtain optimum solution. Numerous scholar proposes to utilize intelligent optimization algorithm to carry out nonlinear calibration, wherein particle cluster algorithm owing to realizing easily, precision height, restrain the advantage such as fast and be widely used in pick up camera and demarcate in parameter optimization, but easily it is absorbed in local extreme value, causes calibration result inaccurate.
Summary of the invention
The present invention is in order to determine the inside and outside parameter of left and right two pick up cameras in binocular vision system, it provides a kind of binocular calibration method based on chaotic particle swarm optimization algorithm.By taking the dot matrixes plane reference plate image of many group different positions and poses, image coordinate according to scaling board round dot center and the corresponding relation of world's coordinate thereof, flat formwork standardization based on Zhang Zhengyou obtains two camera interior and exterior parameter initial values, the three-dimensional re-projection error function of recycling chaotic particle swarm optimization algorithm iteration minimization, obtains the inside and outside parameter that two pick up cameras are final.
For reaching this object, the present invention is achieved through the following technical solutions:
(1) adopting the round dot edge profile of Canny operator extraction scaling board image, recycling Zernike square carries out sub-pixel edge extraction, tries to achieve round dot center sub-pix image coordinate by ellipse fitting;
(2) adopt pin hole imaging model to describe the linear model between the sub-pix image coordinate at round dot center and world's coordinate thereof, ask for the homography matrix that world's coordinate is tied to image coordinate system;
(3), when not considering that camera lens distorts, utilize the flat formwork standardization of Zhang Zhengyou to be demarcated respectively by left and right two pick up camera, obtain two camera interior and exterior parameter initial values;
(4) camera lens two rank radial direction and two rank circumferential distortions are considered, based on the two camera interior and exterior parameter initial values of (3), by constructing three-dimensional re-projection error function as optimization object function, chaos particle cluster algorithm is utilized to carry out the iteration optimization of inside and outside parameter. In optimizing process, introduce overall situation self-adaptation dynamic inertia weight (GAIW), simultaneously speed more the new stage according to the optimal-adaptive angle value renewal speed in particle local neighborhood and current position, and the optimal location that optimal-adaptive angle value in particle local neighborhood is corresponding is carried out chaos optimization, dynamically annular topology is wherein utilized to close series structure particle local neighborhood, neighborhood linearly increases along with iteration number of times, and last neighborhood extending is to whole population;
(5) judge termination condition, if objective function fitness value evolves to the precision �� set in advance, then terminate optimizing and the final inside and outside parameter result of two pick up cameras about exporting, otherwise return step (4).
The invention has the beneficial effects as follows: the present invention provides a kind of binocular calibration method based on chaotic particle swarm optimization algorithm, chaotic particle swarm optimization algorithm application is optimized in binocular vision camera interior and exterior parameter, solve traditional nonlinear parameter optimization method computation process in vision calibration complicated, to initial iterative value sensitivity and to noise-sensitive, stated accuracy is not high, can not meet industrial requirements. In optimizing process, introduce overall situation self-adaptation dynamic inertia weight (GAIW), simultaneously speed more the new stage according to the optimal-adaptive angle value renewal speed in particle local neighborhood and current position, dynamically annular topology is wherein utilized to close series structure particle local neighborhood, and the optimal location that optimal-adaptive angle value in particle local neighborhood is corresponding is carried out chaos optimization, thus efficiently solve the problem that primary particle colony optimization algorithm is easily absorbed in local extreme value, thus improve binocular calibration precision and robustness, ensure the precision that follow-up binocular vision 3 D reconstructs.
Accompanying drawing explanation
Fig. 1 Binocular Stereo Vision System schematic diagram
Fig. 2 binocular camera demarcates schematic diagram
Fig. 3 population ring topology schematic diagram
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in further detail.
The present invention provides a kind of binocular calibration method based on chaotic particle swarm optimization algorithm, whole algorithm flow primarily of scaling board image round dot center sub-pix image coordinate is extracted, homography matrix is asked for, camera interior and exterior parameter initial value is determined, chaos particle cluster algorithm carries out inside and outside parameter optimization formation.
For further explanation, specific implementation step is as follows:
Step one: scaling board image round dot center sub-pix image coordinate is extracted
(1) many groups scaling board image that two pick up cameras are taken from different angles simultaneously is inputted respectively;
(2) respectively sequence is carried out the extraction of Canny edge by left and right scaling board image, then utilize Zernike square to carry out sub-pixel edge extraction, try to achieve round dot center sub-pix image coordinate by ellipse fitting, be designated as respectivelyWithWherein i=1,2 ..., 49, in every width scaling board image, round dot number is 49.
Step 2: homography matrix is asked for
(1) pin hole imaging model is adopted to describe the linear model between the sub-pix image coordinate at scaling board image round dot center and world's coordinate thereof, shown in (1), and by world system of coordinates Zw=0 place plane is set to the measurement plane at scaling board place.
s j u i j v i j 1 = A j R j T j X w i Y w i Z w i 1 = A j α j β j T j X w i Y w i 1 - - - ( 1 )
In formula, j=l, r, the parameter of the corresponding left pick up camera of j=l, the parameter of the corresponding right pick up camera of j=r, sjFor scale factor; AjFor camera intrinsic parameter, it is designated as The normalization method focal length being respectively on x, y direction,For coefficient of torsion;For the pixel coordinate of pick up camera primary optical axis and image plane point of intersection, it is called principal point; RjFor camera coordinate system rotation matrix orthogonal relative to world's system of coordinates 3 �� 3, it is external parameters of cameras, it is designated as R j = r 11 j r 2 j r 13 j r 21 j r 22 j r 23 j r 31 j r 32 j r 33 j ; ��j, ��j, ��jIt is respectively rotation matrix RjThree column vectors, be designated as α j = r 1 j r 21 j r 31 j T , β j = r 2 j r 22 j r 32 j T , γ j = r 3 j r 23 j r 33 j T ; TjFor camera coordinate system translates vector relative to world's system of coordinates 3 �� 1, it is external parameters of cameras, it is designated as P ~ i = X wi Y wi Z wi 1 T It is respectively the homogeneous coordinate of scaling board round dot center in image coordinate system and world's system of coordinates.
(2) the round dot center sub-pix image coordinate that step one is extracted is utilizedWithAnd the world coordinate P of picture pointi=(XwiYwiZwi)T, obtain, according to formula (2), the homography matrix H that world's coordinate is tied to left and right cameras image coordinate system respectivelylAnd Hr��
Hj=Aj[��j��jTj], j=l, r (2)
Step 3: camera interior and exterior parameter initial value is determined
(1) due to ��jAnd ��jIt is unit orthogonal vector, by HjMatrix is write asObtain the intrinsic parameter constraint condition shown in formula (3).
h T 1 j A - T j A - 1 j h 2 j = 0 h T 1 j A - T j A - 1 j h 1 j = h T 2 j A - T j A - 1 j h 2 j - - - ( 3 )
When linear solution camera interior and exterior parameter initial value, order:
B j = A - T j A - 1 j = B 11 j B 12 j B 13 j B 12 j B 22 j B 23 j B 13 j B 23 j B 33 j - - - ( 4 )
Wherein BjFor 3*3 symmetric matrix.
On the basis of formula (3) and formula (4), Zhang Zhengyou template planar linear standardization is utilized to derive camera intrinsic parameter, shown in (5).
In formula, c j = B 33 j - [ B 2 13 j + v 0 j ( B 12 j B 13 j - B 11 j B 23 j ) ] / B 2 11 j , j = l , r .
(2), after obtaining the intrinsic parameter initial value of pick up camera, external parameters of cameras initial value is asked for according to homography matrix.
Can obtain by formula (2):
h 1 j = A j α j , h 2 j = A j β j , h 3 j = A j T j - - - ( 6 )
On formula (6) basis, Zhang Zhengyou template planar linear standardization is utilized to derive external parameters of cameras, shown in (7).
λ j = 1 / | | A - 1 j h 1 j | | = 1 / | | a - 1 j h 2 j | | α j = λ j A - 1 j h 1 j β j = λ j A - 1 j h 2 j γ j = α j × β j T j = λ j A - 1 j h 3 j - - - ( 7 )
Step 4: the two camera interior and exterior parameter optimizations considering distortion
(1) considering two rank radial distortions and two rank circumferential distortions, distortion model is such as formula shown in (8).
u i ′ j = u i j + u i j ( k 1 j r 2 + k 2 j r 4 ) + 2 p 1 j u i j v i j + p 2 j ( r 2 + 2 u 2 i j ) v ′ i j = v i j + v i j ( k 1 j r 2 + k 2 j r 4 ) + 2 p 2 j u i j v i j + p 1 j ( r 2 + 2 v 2 i j ) - - - ( 8 )
In formula, j=l, r,For round dot center real image coordinate,For round dot center ideal image coordinate, For coefficient of radial distortion, For tangential distortion coefficient.
The two camera interior and exterior parameter initial value A that integrating step three obtainsl��Rl��TlAnd Ar��Rr��Tr, all inside and outside parameter of demarcation can with vector table illustrated as ��, shown in (9).
θ = ( θ l , θ r ) = ( f x l , f y l , u 0 l , v 0 l , k 1 l , k 2 l , p 1 l , p 2 l , α l , β l , γ l , t x l , t y l , t z l , f x r , f y r , u 0 r , v 0 r , k 1 r , k 2 r , p 1 r , p 2 r , α r , β r , γ r , t x r , t y r , t z r ) - - - ( 9 )
Wherein,
θ l = ( f x l , f y l , u 0 l , v 0 l , k 1 l , k 2 l , p 1 l , p 2 l , α l , β l , γ l , t x l , t y l , t z l ) θ r = ( f x r , f y r , u 0 r , v 0 r , k 1 r , k 2 r , p 1 r , p 2 r , α r , β r , β r , γ r , t x r , t y r , t z r ) - - - ( 10 )
(2) carrying out two camera interior and exterior parameter optimizations based on chaos particle cluster algorithm, step is as follows:
Step1: the scaling board image round dot centre coordinate extracted according to step oneWithAnd by distortion factorWithValue is initialized as 0, tries to achieve round dot center ideal image coordinate according to distortion model formula (8)With
Step2: the projection matrix M trying to achieve two pick up cameras according to formula (11)lAnd Mr��
Mj=Aj[RjTj], j=l, r (11)
Wherein, projection matrix MjIt is the matrix of 3 �� 4, it is designated as M j = m 11 j m 12 j m 13 j m 14 j m 21 j m 22 j m 23 j m 24 j m 31 j m 32 j m 33 j m 34 j ;
Step3: based on desirable coordinateWithWith the projection matrix M of binocular cameralAnd Mr, try to achieve spatial point three-dimensional coordinate P ' according to formula (12)��(17)i=[X 'wiY��wiZ��wi]T��
Note a ′ i l ~ = u ′ i l v ′ i l 1 T , a ′ i r ~ = u ′ i r v ′ i r 1 T , P ′ i ~ = X ′ w i Y ′ w i Z ′ w i 1 T , It is respectively With P 'iHomogeneous coordinate, can obtain according to formula (1):
s l a ′ i l ~ = M l P ′ i ~ - - - ( 12 )
s r a ′ i r ~ = M r P ′ i ~ - - - ( 13 )
Association type (12) and formula (13), cancellation slAnd srCan obtain:
KiPi=Ui(14)
K i = u ′ i l m 31 l - m 11 l u ′ i l m 32 l - m 12 l v ′ i l m 33 l - m 13 l v ′ i l m 31 l - m 21 l v ′ i l m 32 l - m 22 l v ′ i l m 33 l - m 23 l u ′ i r m 31 r - m 11 r u ′ i r m 32 r - m 12 r u ′ i r m 33 r - m 13 r v ′ i r m 31 r - m 21 r v ′ i r m 32 r - m 22 r v ′ i r m 33 r - m 23 r - - - ( 15 )
U i = m 14 l - u ′ i l m 34 l m 24 l - v ′ i l m 34 l m 14 r - u ′ i r m 34 r m 24 r - v ′ i r m 34 r T - - - ( 16 )
Formula (14) represents light path O in Fig. 1lalAnd OraiIntersect at object point P 'i, KiIt is 4 �� 3 matrixes, P 'iFor the three-dimensional vector of the unknown, UiIt is 4 �� 1 vectors, solves formula (17) by method of least squares and can obtain object point P 'iWorld's coordinate.
P ′ i = ( K i T K i ) - 1 K i T U i - - - ( 17 )
Step4: according to two camera interior and exterior parameter initial values and all initial values be 0 distortion factor the speed of particle in population and position are carried out random initializtion, the position of usual initialize Searching point and speed produce at random in initial value neighborhood space, and to arrange number of particles be ��=100, search space dimension is D=28, demarcation inside and outside parameter sum corresponding to be optimized.
Step5: the fitness value f (��) calculating each particle, bring formula (18) into by each particle and try to achieve optimization object function value, namely by the three-dimensional re-projection error function of structure as optimization object function, the actual demarcation point three-dimensional coordinate (X measured is utilizedwiYwiZwi)TWith calculate by model three-dimensional coordinate (X 'wiY��wiZ��wi)TBetween residual error represent.
f ( θ ) = 1 N Σ i = 1 N [ ( X w i - X ′ w i ) 2 + ( Y w i - Y ′ w i ) 2 + ( Z w i - Z ′ w i ) 2 ] - - - ( 18 )
In formula, the D that �� is each particle ties up position vector, and N represents the quantity of round dot scaling board image subscript fixed point.
Step6: the speed of particle and position are upgraded according to formula (19)��(21).
v i , d ( t + 1 ) = ( ω ) v i , d ( t ) + c 1 r 1 ( t ) [ Pbest i , d ( t ) - x i , d ( t ) ] + c 2 r 2 ( t ) [ Gbest d ( t ) - x i , d ( t ) ] - - - ( 19 )
x i , d ( t + 1 ) = x i , d ( t ) + v i , d ( t + 1 ) - - - ( 20 )
ω ( t ) = ω m a x - t × ω m a x - ω m i n t m a x - - - ( 21 )
In formula, i=1,2 ..., ��, d=1,2 ..., D, xI, dT () represents the position of particle i d dimension in the t time iteration in colony, vI, d(t+1) it is corresponding speed; c1��c2For acceleration constant (learning rate), general span is [0,2], often gets fixed value 2; r1(t)��r2T () is [0,1] equally distributed randomized number; PbestI, dT d that () is particle i personal best particle vector ties up element, GbestdT d dimension element that () is whole population overall situation optimal location vector; �� (t) is inertia weight, which determines particle historical speed information to the impact of present speed information, and t is current iteration number of times, tmaxFor total iteration number of times, generally get ��max=0.9, ��mm=0.4.
For finding global extremum point more accurately sooner, thus improve the precision that in binocular calibration, camera interior and exterior parameter is optimized, introduce overall situation self-adaptation dynamic inertia weight (GAIW), shown in (22).
ω ( t + 1 ) = 0.9 i f t = 0 f ( G b e s t ( t + 1 ) ) - f ( G b e s t ( t ) ) i f t > 0 - - - ( 2 )
In formula, Gbest (t+1) is the t+1 time iteration overall situation optimal location vector, Gbest (t) is the t time iteration overall situation optimal location vector, the overall optimal-adaptive angle value of the corresponding Gbest (t+1) of f (Gbest (t+1)) and f (Gbest (t)) difference and Gbest (t) position. The value of �� (t) upgrades according to the overall optimal-adaptive angle value of history iteration and current iteration. If the search procedure of particle does not find more excellent overall fitness value position, then �� (t) is set to 0, if the value of �� (t) is 0 continuous K time, then upgrade �� (t) value according to formula (21) so that particle search near the position that current overall situation optimal-adaptive angle value is corresponding.
Step7: calculate the desired positions Pbest that particle i experiencesiT (), the position with optimal-adaptive angle value that also namely particle was experienced, shown in (23).
Pbest i ( t + 1 ) = x i ( t + 1 ) , f ( x i ( t + 1 ) ) < Pbest i ( t ) pbest i ( t ) , f ( x i ( t + 1 ) ) &GreaterEqual; Pbest i ( t ) - - - ( 23 )
In formula, xi(t+1) it is particle i the t+1 time iteration optimal location vector, f (xi(t+1)) it is the fitness value of correspondence position.
Step8: calculate all particles in colony and experienced desired positions, namely there is overall optimal location Gbest (t) that overall optimal-adaptive angle value is corresponding.
Due to the particle cluster algorithm fast convergence rate of overall situation version, but easily it is absorbed in local optimum. The present invention adopts the distribution of dynamic ring topology structure particle, forms as shown in Figure 3 a ring, with the local optimum position Gbest of all particles in particle i neighborhood between particleiT () replaces overall situation optimal location Gbest (t), speed and position to particle i upgrade. Wherein, determining particle i neighborhood according to the mode of linear increment, for the t time iteration, the Size of Neighborhood that particle i is corresponding is 2t, until expanding to whole particle colony.For particle 1, during the 0th iteration, neighborhood is that it is own; During the 1st iteration, neighborhood is 2,8; During the 2nd iteration, neighborhood is 2,3,7,8, analogizes with this, until neighborhood extending is to whole particle colony.
Occur for preventing some particle stagnating in iteration, cause the local optimum position Gbest in above-mentioned particle i neighborhoodiT () solves inaccurate, take chaotic maps equation to local optimal location Gbest hereiT () carries out chaos optimization. Algorithm utilizes the ergodicity of Chaos Variable, based on the local optimum position searched in particle i neighborhood, iteration produces a chaos sequence, then optimum particle position in this sequence replace a certain particle position in current particle i neighborhood carry out iteration at random, thus solve particle and stagnate the algorithm premature convergence problem caused, concrete steps are as follows:
I. by formula (24) by GbestiT () maps in the field of definition [0,1] arriving chaotic maps equation (25), and remember
Gbest i ( t ) = &lsqb; Gbest i , 1 ( t ) , Gbest i , 2 ( t ) , ... , Gbest i , d ( t ) , ... , Gbest l , D ( t ) &rsqb; , d = 1 , 2 , ... , D ; y i , d 1 ( t ) = Gbest i , d ( t ) - R i , d min ( t ) R i , d max ( t ) - R i , d min ( t ) - - - ( 24 )
R i , d min ( t ) = min { Gbest i ( t ) } , R i , d max ( t ) - max { Gbest i ( t ) } y i , d n + 1 ( t ) = y i , d n ( t ) / 0.4 , 0 < y i , d n ( t ) &le; 0.4 ( 1 - y i , d n ( t ) ) / ( 1 - 0.4 ) , 0.4 &le; y i , d n ( t ) < 1 - - - ( 25 )
Ii. rightCarry out Q iteration by chaotic maps equation (25), obtain such as formula the chaos sequence shown in (26);
Iii. chaos sequence is returned former solution space by formula (27) inverse mapping, obtain a Chaos Variable feasible solution sequenceShown in (28);
Iv. feasible solution sequence is calculatedIn each feasible solution vectorFitness value, and retain fitness value optimum time feasible solution vector, be designated as Gbest 'i(t);
V. random from current particle i neighborhood a particle is selected, and with Gbest 'iT the position vector of () replaces the position vector of this particle.
Step9: judge termination condition, if the fitness value of objective function evolves to the precision �� set in advance, then terminates optimizing and Output rusults, otherwise returns Step5.

Claims (2)

1. based on the binocular calibration method of chaotic particle swarm optimization algorithm, it is characterized in that, two pick up cameras are by the dot matrixes plane reference plate image pair of shooting many groups different positions and pose simultaneously, image coordinate according to scaling board round dot center and the corresponding relation of world's coordinate thereof, flat formwork standardization based on Zhang Zhengyou obtains two camera interior and exterior parameter initial values, the three-dimensional re-projection error of recycling chaotic particle swarm optimization algorithm iteration minimization, obtain the inside and outside parameter that two pick up cameras are final, there is higher stated accuracy, thus ensure the precision that follow-up binocular vision 3 D reconstructs, mainly comprise following several steps:
(1) adopting the round dot edge profile of Canny operator extraction scaling board image, recycling Zernike square carries out sub-pixel edge extraction, tries to achieve round dot center sub-pix image coordinate by ellipse fitting;
(2) adopt pin hole imaging model to describe the linear model between the sub-pix image coordinate at scaling board image round dot center and world's coordinate thereof, ask for the homography matrix that world's coordinate is tied to image coordinate system;
(3), when not considering that camera lens distorts, utilize flat formwork linear calibration's method of Zhang Zhengyou that left and right two pick up camera is carried out linear calibration respectively, obtain two camera interior and exterior parameter initial value A respectivelyl��Rl��TlAnd Ar��Rr��Tr;
(4) camera lens two rank radial direction and two rank circumferential distortions are considered, based on the two camera interior and exterior parameter initial values of (3), by constructing three-dimensional re-projection error function as optimization object function, chaos particle cluster algorithm is utilized to carry out the iteration optimization of inside and outside parameter, in optimizing process, introduce overall situation self-adaptation dynamic inertia weight (GAIW), simultaneously speed more the new stage according to the optimal-adaptive angle value renewal speed in particle local neighborhood and current position, and the optimal location that optimal-adaptive angle value in particle local neighborhood is corresponding is carried out chaos optimization, dynamically annular topology is wherein utilized to close series structure particle local neighborhood, neighborhood linearly increases along with iteration number of times, last neighborhood extending is to whole population,
(5) judge termination condition, if the fitness value of objective function evolves to the precision �� set in advance, then terminate optimizing and export the inside and outside parameter result of left and right cameras, otherwise return step (4).
2. according to claim 1 based on the binocular calibration method of chaotic particle swarm optimization algorithm, utilizing chaotic particle swarm optimization algorithm to carry out the inside and outside parameter iteration optimization of two pick up cameras in described step (4)��(5), its feature is as follows:
The first step, obtain two camera interior and exterior parameter initial values according to step (3) and all initial values be 0 distortion factor the speed of particle in population and position are carried out random initializtion, and to arrange number of particles be ��=100, search space dimension is D=28, the sum of corresponding demarcation inside and outside parameter to be optimized;
2nd step, the fitness value f (��) calculating each particle, each particle is brought into formula (27) and tries to achieve optimization object function value, namely by the three-dimensional re-projection error function of structure as optimization object function, the actual demarcation point three-dimensional coordinate (X measured is utilizedwiYwiZwi)TWith calculate by model three-dimensional coordinate (X 'wiY��wiZ��wi)TBetween residual error represent;
f ( &theta; ) = 1 N &Sigma; i = 1 N &lsqb; ( X w i - X &prime; w i ) 2 + ( Y w i - Y &prime; w i ) 2 + ( Z W i - Z &prime; w i ) 2 &rsqb; - - - ( 27 )
3rd step, formula (28)��(30) are utilized the speed of particle and position to be upgraded;
vI, d(t+1)=�� (t) vI, d(t)+c1r1(t)[PbestI, d(t)-xI, d(t)]+c2r2(t)[Gbestd(t)-xI, d(t)](28)
xI, d(t+1)=xI, d(t)+vI, d(t+1)(29)
&omega; ( t ) = &omega; m a x - t &times; &omega; m a x - &omega; m i n t m a x - - - ( 30 )
Global extremum point must be found for faster more accurate, thus improve the precision that in binocular calibration, camera interior and exterior parameter is optimized, introduce overall situation self-adaptation dynamic inertia weight (GAIW), shown in (31);
&omega; ( t + 1 ) = 0.9 i f t = 0 f ( G b e s t ( t + 1 ) ) - f ( G b e s t ( t ) ) i f t > 0 - - - ( 31 )
In formula, the value of �� (t) upgrades according to the overall optimal-adaptive angle value of history iteration and current iteration, if not finding more excellent overall fitness value position in the search procedure of particle, is then set to 0 by �� (t), if the value of �� (t) is 0 continuous K time, then basisUpgrade �� (t) value so that particle search near the position that current overall situation optimal-adaptive angle value is corresponding;
The desired positions Pbest that 4th step, calculating particle i experiencei(t), the position with optimal-adaptive angle value that also namely particle was experienced, shown in (32);
Pbest i ( t + 1 ) = x i ( t + 1 ) , f ( x i ( t + 1 ) ) < Pbest i ( t ) pbest i ( t ) , f ( x i ( t + 1 ) ) &GreaterEqual; Pbest i ( t ) - - - ( 32 )
In 5th step, calculating colony, all particles experienced desired positions, namely there is overall optimal location Gbest (t) that overall optimal-adaptive angle value is corresponding, due to the particle cluster algorithm fast convergence rate of overall situation version, easily being absorbed in local optimum, the present invention adopts the local optimum position Gbest of all particles in particle i neighborhoodiT () replaces overall situation optimal location Gbest (t). Being constructed the distribution of particle by dynamic ring topology, determine the neighborhood of particle in iteration optimization process according to the mode of linear increment, for the t time iteration, the Size of Neighborhood that particle i is corresponding is 2t, until expansion is to whole particle colony;
Occur in iteration for preventing some particle stagnating, to the local optimum position Gbest in above-mentioned particle i neighborhoodiT () carries out chaos optimization according to chaotic maps equation, utilize the ergodicity of Chaos Variable, based on the local optimum position searched in particle i neighborhood, iteration produces a chaos sequence, then optimum particle position in sequence replace the position of a certain particle in current particle i neighborhood carry out iteration at random, thus solve particle and stagnate the algorithm premature convergence problem caused, concrete steps are as follows:
I. by formula (33) by GbestiT () maps in the field of definition [0,1] arriving chaotic maps equation (34), and remember
Gbesti(t)=[GbestI, 1(t), GbestI, 2(t) ..., GbestI, d(t) ..., GbestI, D(t)], d=1,2 ..., D;
y i , d 1 ( t ) = Gbest i , d ( t ) - R i , d min ( t ) R i , d max ( t ) - R i , d min ( t ) - - - ( 33 )
R i , d min ( t ) = m i n { Gbest i ( t ) } , R i , d max ( t ) = m a x { Gbest i ( t ) }
y i , d n + 1 ( t ) = y i , d n ( t ) / 0.4 , 0 < y i , d n ( t ) &le; 0.4 ( 1 - y i , d n ( t ) ) / ( 1 - 0.4 ) , 0.4 &le; y i , d n ( t ) &le; 1 , n = 1 , 2 , ... - - - ( 34 )
Ii. rightCarry out Q iteration by chaotic maps equation (34), obtain such as formula the chaos sequence shown in (35);
y i , d ( t ) = &lsqb; y i , d 1 ( t ) , y i , d 2 ( t ) , ... y i , d q ( t ) , ... , y i , d Q ( t ) &rsqb; , q = 1 , 2 , ... , Q - - - ( 35 )
Iii. chaos sequence is returned former solution space by formula (36) inverse mapping, obtain a Chaos Variable feasible solution sequenceShown in (37);
Gbest i , d q ( t ) = R i , d min ( t ) + ( K i , d max ( t ) - R i , d min ( t ) ) y i , d q ( t ) - - - ( 36 )
Gbest i * ( t ) = &lsqb; Gbest i 1 ( t ) , Gbest i 2 ( t ) , ... , Gbest i q ( t ) , ... , Gbest i Q ( t ) &rsqb;
(37)
Gbest i q ( t ) = &lsqb; Gbest i , 1 q ( t ) , Gbest i , 2 q ( t ) , ... , Gbest i , d q ( t ) , ... , Gbest i , D q ( t ) &rsqb;
Iv. feasible solution sequence is calculatedIn each feasible solution vectorFitness value, and retain fitness value optimum time feasible solution vector, be designated as Gbest 'i(t);
V. random from current particle i neighborhood a particle is selected, and with Gbest 'iT the position vector of () replaces the position vector of this particle;
6th step, judge termination condition, if the fitness value of objective function evolves to the precision �� set in advance, then terminate optimizing and export the inside and outside parameter result of left and right cameras, otherwise return the 2nd step.
CN201510998165.7A 2015-12-25 2015-12-25 Binocular calibration method based on Chaos particle swarm optimization algorithm Active CN105654476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510998165.7A CN105654476B (en) 2015-12-25 2015-12-25 Binocular calibration method based on Chaos particle swarm optimization algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510998165.7A CN105654476B (en) 2015-12-25 2015-12-25 Binocular calibration method based on Chaos particle swarm optimization algorithm

Publications (2)

Publication Number Publication Date
CN105654476A true CN105654476A (en) 2016-06-08
CN105654476B CN105654476B (en) 2019-03-08

Family

ID=56477906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510998165.7A Active CN105654476B (en) 2015-12-25 2015-12-25 Binocular calibration method based on Chaos particle swarm optimization algorithm

Country Status (1)

Country Link
CN (1) CN105654476B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647283A (en) * 2017-01-23 2017-05-10 无锡信捷电气股份有限公司 Auto-disturbance rejection position servo system optimization design method based on improved CPSO
CN107240133A (en) * 2017-04-24 2017-10-10 西华大学 A kind of stereoscopic vision mapping model method for building up
CN107356975A (en) * 2017-07-12 2017-11-17 电子科技大学 Underwater two-dimension space active electric-field localization method based on particle swarm optimization algorithm
CN107728469A (en) * 2017-08-28 2018-02-23 三维泰柯(厦门)电子科技有限公司 A kind of laser particle control method
CN108594274A (en) * 2018-02-01 2018-09-28 沈阳航空航天大学 A kind of integrated navigation satellite selection method of adaptive chaotic particle swarm optimization
CN109447908A (en) * 2018-09-25 2019-03-08 上海大学 A kind of coil of strip recognition positioning method based on stereoscopic vision
CN110191472A (en) * 2019-05-24 2019-08-30 杭州电子科技大学 A kind of destination channel access method based on improvement multi-Objective Chaotic PSO optimization
CN110728721A (en) * 2019-10-21 2020-01-24 北京百度网讯科技有限公司 Method, device and equipment for acquiring external parameters
CN112465918A (en) * 2020-12-06 2021-03-09 西安交通大学 Microscopic vision calibration method based on Tsai calibration
CN113821107A (en) * 2021-11-23 2021-12-21 成都索贝数码科技股份有限公司 Indoor and outdoor naked eye 3D system with real-time and free viewpoint
CN115100365A (en) * 2022-08-25 2022-09-23 国网天津市电力公司高压分公司 Camera optimal baseline acquisition method based on particle swarm optimization

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354399A (en) * 2011-09-26 2012-02-15 深圳普捷利科技有限公司 Self-calibration method for external parameter of video camera and device therefor
CN102509304A (en) * 2011-11-24 2012-06-20 江南大学 Intelligent optimization-based camera calibration method
US20130083168A1 (en) * 2011-09-30 2013-04-04 Samsung Elctro-Mechanics Co., Ltd. Calibration apparatus for camera module
US20150213648A1 (en) * 2014-01-29 2015-07-30 Ricoh Co., Ltd Depth-Disparity Calibration of a Binocular Optical Augmented Reality System
CN104851104A (en) * 2015-05-29 2015-08-19 大连理工大学 Flexible-target-based close-range large-field-of-view calibrate method of high-speed camera
CN104851095A (en) * 2015-05-14 2015-08-19 江南大学 Workpiece image sparse stereo matching method based on improved-type shape context
CN105096328A (en) * 2015-08-13 2015-11-25 北京理工大学 Camera self-calibration method based on IOS-PSO (Internetwork Operating System-Particle Swarm Optimization)

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354399A (en) * 2011-09-26 2012-02-15 深圳普捷利科技有限公司 Self-calibration method for external parameter of video camera and device therefor
US20130083168A1 (en) * 2011-09-30 2013-04-04 Samsung Elctro-Mechanics Co., Ltd. Calibration apparatus for camera module
CN102509304A (en) * 2011-11-24 2012-06-20 江南大学 Intelligent optimization-based camera calibration method
US20150213648A1 (en) * 2014-01-29 2015-07-30 Ricoh Co., Ltd Depth-Disparity Calibration of a Binocular Optical Augmented Reality System
CN104851095A (en) * 2015-05-14 2015-08-19 江南大学 Workpiece image sparse stereo matching method based on improved-type shape context
CN104851104A (en) * 2015-05-29 2015-08-19 大连理工大学 Flexible-target-based close-range large-field-of-view calibrate method of high-speed camera
CN105096328A (en) * 2015-08-13 2015-11-25 北京理工大学 Camera self-calibration method based on IOS-PSO (Internetwork Operating System-Particle Swarm Optimization)

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
XIAOBO CHEN ET AL: "The Research of Camera Distortion Correction Basing on Neural Network", 《CHINESE CONTROL AND DECISION CONFERENCE(CCDC)》 *
佘科 等: "基于WNN的双目摄像机标定方法", 《应用科技》 *
刘丁 等: "一种新的基于粒子群优化的自标定位置视觉定位算法", 《西安理工大学学报》 *
刘艳 等: "对张正友相机标定法的改进研究", 《光学技术》 *
孙楠 等: "基于十字靶标的双目立体测量系统标定", 《光学学报》 *
张辉 等: "双目立体测量系统标定的三步法", 《中国机械工程》 *
汪霖 等: "基于粒子群优化的机器人多传感器自标定方法", 《机器人》 *
袁小芳 等: "基于混沌优化算法的支持向量机参数选取方法", 《控制与决策》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647283A (en) * 2017-01-23 2017-05-10 无锡信捷电气股份有限公司 Auto-disturbance rejection position servo system optimization design method based on improved CPSO
CN107240133A (en) * 2017-04-24 2017-10-10 西华大学 A kind of stereoscopic vision mapping model method for building up
CN107356975A (en) * 2017-07-12 2017-11-17 电子科技大学 Underwater two-dimension space active electric-field localization method based on particle swarm optimization algorithm
CN107728469A (en) * 2017-08-28 2018-02-23 三维泰柯(厦门)电子科技有限公司 A kind of laser particle control method
CN108594274A (en) * 2018-02-01 2018-09-28 沈阳航空航天大学 A kind of integrated navigation satellite selection method of adaptive chaotic particle swarm optimization
CN109447908A (en) * 2018-09-25 2019-03-08 上海大学 A kind of coil of strip recognition positioning method based on stereoscopic vision
CN110191472A (en) * 2019-05-24 2019-08-30 杭州电子科技大学 A kind of destination channel access method based on improvement multi-Objective Chaotic PSO optimization
CN110191472B (en) * 2019-05-24 2022-09-27 杭州电子科技大学 Target channel access method based on improved multi-target chaos PSO optimization
CN110728721A (en) * 2019-10-21 2020-01-24 北京百度网讯科技有限公司 Method, device and equipment for acquiring external parameters
CN112465918A (en) * 2020-12-06 2021-03-09 西安交通大学 Microscopic vision calibration method based on Tsai calibration
CN112465918B (en) * 2020-12-06 2024-04-02 西安交通大学 Microscopic vision calibration method based on Tsai calibration
CN113821107A (en) * 2021-11-23 2021-12-21 成都索贝数码科技股份有限公司 Indoor and outdoor naked eye 3D system with real-time and free viewpoint
CN115100365A (en) * 2022-08-25 2022-09-23 国网天津市电力公司高压分公司 Camera optimal baseline acquisition method based on particle swarm optimization
CN115100365B (en) * 2022-08-25 2023-01-20 国网天津市电力公司高压分公司 Camera optimal baseline acquisition method based on particle swarm optimization

Also Published As

Publication number Publication date
CN105654476B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN105654476A (en) Binocular calibration method based on chaotic particle swarm optimization algorithm
CN108765328B (en) High-precision multi-feature plane template and distortion optimization and calibration method thereof
CN102663767B (en) Method for calibrating and optimizing camera parameters of vision measuring system
CN107492127B (en) Light field camera parameter calibration method and device, storage medium and computer equipment
CN103278138B (en) Method for measuring three-dimensional position and posture of thin component with complex structure
CN100429476C (en) Double-sensor laser visual measuring system calibrating method
CN110146099B (en) Synchronous positioning and map construction method based on deep learning
CN103426149A (en) Large-viewing-angle image distortion correction and processing method
WO2021004416A1 (en) Method and apparatus for establishing beacon map on basis of visual beacons
CN104851104A (en) Flexible-target-based close-range large-field-of-view calibrate method of high-speed camera
CN104089628B (en) Self-adaption geometric calibration method of light field camera
CN101149836B (en) Three-dimensional reconfiguration double pick-up camera calibration method
CN107179534A (en) A kind of method, device and the laser radar of laser radar parameter automatic Calibration
CN110443879B (en) Perspective error compensation method based on neural network
CN105096329A (en) Method for accurately correcting ultra-wide-angle lens
CN105069743A (en) Detector splicing real-time image registration method
CN104392435A (en) Fisheye camera calibration method and device
CN101004349A (en) Method for recognising not gauged star map
CN105631844A (en) Image camera calibration method
CN112270698B (en) Non-rigid geometric registration method based on nearest curved surface
CN104268876A (en) Camera calibration method based on partitioning
CN103473758A (en) Secondary calibration method of binocular stereo vision system
CN102693543B (en) Method for automatically calibrating Pan-Tilt-Zoom in outdoor environments
CN109523595A (en) A kind of architectural engineering straight line corner angle spacing vision measuring method
CN104634248A (en) Revolving shaft calibration method under binocular vision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210510

Address after: Room 406, no.3020 Huling Road, Linghu Town, Nanxun District, Huzhou City, Zhejiang Province

Patentee after: Huzhou lingchuang Technology Co., Ltd

Address before: 214122 Jiangsu Province, Wuxi City Lake Road No. 1800, Jiangnan University

Patentee before: Jiangnan University