Multi-vision system calibration method based on Levy flight

By using Levi flight algorithm and custom spherical calibration device in the large field of view measurement system, the problem of low calibration efficiency and accuracy of the large field of view measurement system is solved, and efficient and accurate multi-vision system calibration is achieved, suitable for intelligent manufacturing multi-eye vision technology.

CN118898653AActive Publication Date: 2024-11-05HANGZHOU DIANZI UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411147680.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-05
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

Large field of view measurement systems have challenges in calibration efficiency and accuracy, including low efficiency, poor applicability and high calibration error, especially in the long-distance calibration time, which cannot meet the calibration accuracy of the on-site environment. Require.

Method used

Using the multi-vision system calibration method based on Levi flight, the image is acquired in the camera's common field of view through a custom spherical calibration device, the triangle and circular code points in the rectangular calibration image are extracted, the matrix representation and similarity are calculated, and the polar line geometry is used. The camera external parameters are calculated with SVD decomposition, the adjacency matrix and weight values ​​are constructed, the flight step size and direction of the Levi flight algorithm are determined, and the transition path is found to optimize the external parameters relationship.

Benefits of technology

It improves the calibration efficiency and accuracy of the large field of view measurement system, adapts to various camera arrangement methods, can effectively search and optimize local search in complex environments, avoid local optimal traps, and is suitable for multi-eye vision technology in intelligent manufacturing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898653A_ABST
    Figure CN118898653A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-vision system calibration method based on Levy flight, and the method comprises the following steps: obtaining an image of a spherical calibration device through a camera, and extracting a rectangular calibration image of an attached cover on the spherical calibration device; extracting the center of gravity of a triangular coding point and the center of gravity of a circular template in each obtained rectangular calibration image; a matrix representation corresponding to each rectangular calibration image is calculated; calculating the similarity between the matrixes obtained in the two spherical calibration device images so as to complete rectangular calibration image matching and further determine common-view key points; calculating external parameters of the camera in a world coordinate system according to the coordinates of the common-view key points; constructing an adjacent matrix containing specific parameters; and determining the flight step length and the flight direction of the Levy flight algorithm according to the common-view key point and the weight value of camera connection, thereby obtaining the external parameter relationship between the initial camera and the target camera. According to the method, high-precision measurement system parameters are calibrated in a large field of view by using a small calibration object with low precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision, and in particular to a multi-vision system calibration method based on Levy flight. Background Art

[0002] The high-efficiency and high-precision calibration technology for multi-vision measurement systems under large field of view (5m*5m) has broad application prospects. However, there are technical challenges, which are mainly reflected in the following aspects:

[0003] The first challenge comes from the low efficiency and poor applicability of large field of view measurement systems. When performing large field of view calibration, more calibration feature points need to be arranged in the field of view, which increases the number of calibration images required for calibration, making the calibration process more complicated and reducing the calibration efficiency. At the same time, since its calibration process is time-consuming, it is not suitable for systems that require fast calibration.

[0004] The second challenge comes from the high calibration error of large field of view. On the one hand, the calibration distance of large field of view measurement system is usually far (>5m), and the existing calibration methods usually have the problem of high calibration accuracy in the two-dimensional plane and low calibration accuracy in the depth direction when performing long-distance calibration, resulting in large differences in the accuracy of the calibrated measurement system parameters in the three-dimensional direction, which cannot meet the calibration accuracy requirements of the large field of view measurement system in the field environment; on the other hand, small-sized calibration plates achieve high-precision calibration of large field of view: from the analysis of the measurement system calibration method based on calibration objects, although such methods can obtain high calibration accuracy, when calibrating the large field of view measurement system, due to manufacturing difficulties and other problems, there are often difficult-to-solve problems such as the mismatch between the calibration plate size and the measurement field of the measurement system, resulting in the calibration accuracy failing to meet the requirements of large field of view calibration.

[0005] Therefore, how to break the contradiction between the field of view range and the size of the calibration object and use small calibration objects with lower accuracy to calibrate high-precision measurement system parameters under a large field of view is a difficult problem that needs to be solved urgently in the calibration of large field of view measurement systems. Summary of the invention

[0006] In view of the above two technical difficulties in multi-vision system calibration in large field of view measurement applications, the present invention proposes a multi-vision system calibration method based on Levy flight, which provides a method framework with practical reference value for the implementation of target measurement applications of multi-vision systems in large field of view.

[0007] In order to solve the above technical problems, the technical solution of the present invention is:

[0008] A multi-vision system calibration method based on Levy flight includes the following steps:

[0009] Step 1: Place the custom spherical calibration device in the public field of view of all cameras, obtain the image of the spherical calibration device through the camera, and extract the rectangular calibration image of the cover on the spherical calibration device;

[0010] Step 2: Extract the centroid of the triangle coding points and the centroid of the circular template in each rectangular calibration image obtained;

[0011] Step 3: Calculate the matrix representation corresponding to each rectangular calibration image according to the custom encoding rules;

[0012] Step 4: Calculate the similarity between the matrices obtained in the two spherical calibration device images to complete the rectangular calibration image matching. The two spherical calibration device images are obtained by two arbitrary cameras, and the centroids of all triangle code points and the centroid of the circular template are used as the common view key points between the two cameras that obtain the matching spherical calibration device images.

[0013] Step 5: According to the coordinates of the common view key points, the external parameters of the camera in the world coordinate system are calculated using epipolar geometry and SVD decomposition;

[0014] Step 6: construct an adjacency matrix containing specific parameters, wherein the elements of the adjacency matrix include external parameters, common view key points, and weight values ​​of camera connections in the common field of view;

[0015] Step 7: Determine the flight step length and flight direction of the Levy flight algorithm according to the weight values ​​of the common view key points and the camera connections;

[0016] Step 8: Use the Levy flight algorithm of step 7 to find the next transition camera from the initial camera. After finding the next camera, continue to execute the Levy flight algorithm until the target camera is found.

[0017] Step 9: After searching for a complete transition path, determine a complete extrinsic parameter transformation path to obtain the extrinsic parameter relationship between the initial camera and the target camera.

[0018] Preferably, in step 1, each camera has a common field of view with at least one other camera.

[0019] Preferably, the spherical calibration device satisfies:

[0020] The spherical calibration device is used to place a number of rectangular calibration patterns;

[0021] The rectangular calibration pattern includes 6 circular templates and 2 triangular coding points;

[0022] The circular template constitutes the identification points of a rectangular calibration pattern, wherein one of the triangular coding points is located at the center point of the rectangle;

[0023] The triangular coding points are freely arranged in the rectangular calibration pattern, and any two triangular coding points do not overlap each other.

[0024] Preferably, in step 3, the coding rule is as follows: set the upper left corner of the rectangular calibration pattern as the coordinate origin, the right as the positive direction of the X axis, and the downward as the positive direction of the Y axis, define the centroid coordinates (X, Y) of the triangle coding point, take the centroid of the center triangle coding point as point 1, take the centroid of the corner triangle coding point as point 2, and define the centroid coordinates (X, Y) of the circular template i , Y i )(i=1...6), arranged in ascending order of X-axis coordinates, X-coordinate deviation: ΔX i =X i -X(i=1...6); Y coordinate deviation: ΔY i =Y i -Y t (i=1...6), calculate the distances between the centers of the circular templates to form a 4×6 matrix.

[0025] Preferably, in step 4, the root mean square error or correlation coefficient is used to judge the similarity. If it is less than a threshold, the two rectangular calibration images are considered to be matched; otherwise, continue to execute step 4 to complete the matching of the two rectangular calibration images, and repeat the above matching steps until all the rectangular calibration images acquired by the two cameras are matched.

[0026] Preferably, in step 5, the method for calculating the external parameters of the camera in the world coordinate system is:

[0027] Based on the mathematical model of pinhole camera perspective imaging, the mapping relationship between space points and image points is determined, which involves the camera intrinsic parameter matrix, unknown scale factors and homogeneous vectors of space points;

[0028] Determine the relationship between the scale factors of spatial points in different cameras, which involves the basic matrix and the pole position;

[0029] Thus, the projection equation of the key points in the common field of view of the cameras is established, and the camera extrinsic parameters of the projection space can be recovered through singular value decomposition.

[0030] Preferably, the adjacency matrix is ​​constructed by:

[0031] Each non-diagonal element of the adjacency matrix represents the strength of association or the cost of information transfer between a pair of cameras. The element L of the adjacency matrix i,j Stores the weight information between nodes i and j. The information of each edge is expressed as L i,j ={H i,j ,Ω i,j , w i,j}, where H i,j Indicates that from C i to Cj The transformation matrix, Ω i,j C i With C j The set of points in the common view area, w i,j It represents the evaluated weight value.

[0032] Preferably, when constructing the adjacency matrix, since the node graph formed by the multi-camera system is an undirected graph, for each variable H i,j and w i,j , they all satisfy the symmetric relationship, that is, H i,j =H j,i And ω i,j =ω j,i .

[0033] Preferably, the weight value is calculated as follows:

[0034] The two camera nodes C are represented by the reprojection error and the number of common view feature points. i With C j The association weight w i,j , the weight of each edge can be represented by the sum of two components, namely:

[0035]

[0036] Among them, λ1 and λ2 represent the coefficients of the two components respectively. It can be expressed as:

[0037]

[0038] Among them, i and Er j Represents camera C i and C j is the average reprojection error, and TH is the reprojection error threshold.

[0039] Preferably, when calculating the weight value, the inverse of the number of common feature points is used to construct a second component of the association weight, and the second component is expressed as:

[0040]

[0041] Where N i,j Indicates the number of feature points shared by the two cameras.

[0042] Preferably, the calculation method of the flight step length and the flight direction is:

[0043] There is a key variable in the Levy flight algorithm, namely the transition step length L, which is constructed with the weight value:

[0044]

[0045] Where α and σ follow a normal distribution, and the variable in the flight step length There are the following forms:

[0046]

[0047] Select the node with the highest transfer probability from the current node as the next target node. The transition function is:

[0048]

[0049] where ρ i→j It represents the transition probability from the current node i to the neighboring node j, κ is a parameter related to the Levy flight step length, defined as κ = c·L, c is a constant greater than zero, and the step length L is a non-negative random variable.

[0050] The present invention has the following characteristics and beneficial effects:

[0051] In the era of intelligent manufacturing, machine vision technology plays a very important role. Researching and optimizing multi-vision calibration technology is in line with the key topics and breakthrough directions of target detection and product measurement research in the current industrial field, and is of great significance. The multi-vision system calibration method based on Levy flight provided in the embodiment of the present invention is:

[0052] Spherical objects are easy to obtain, and a globe used for teaching can fully meet the needs. Since some feature points on the sphere are always orthographically projected, this helps to improve the detection accuracy of feature points. In addition, it can adapt to various camera arrangements.

[0053] In the calibration problem of multi-view vision systems, the Levy flight algorithm can simulate the ability of organisms to search effectively in complex dynamic environments. This feature allows the algorithm to perform fine-tuning level local search most of the time, while implementing large cross-domain jumps in specific cases to effectively avoid the trap of local optimal areas. This jump allows the algorithm to cross inefficient areas in the solution space, which usually trap search methods guided by local gradient information. As the number of cameras in the vision system increases, the efficiency advantage of the Levy flight algorithm will become more obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0055] Figure 1 The self-encoding spherical calibration target provided by the present invention;

[0056] Figure 2 The camera relationship adjacency matrix of the multi-eye vision system provided by the present invention;

[0057] Figure 3 The flow chart of external parameter calculation provided by the present invention;

[0058] Figure 4 A flowchart of node path optimization based on Levy flight provided by the present invention. DETAILED DESCRIPTION

[0059] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0060] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings.

[0061] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.

[0062] The present invention provides a multi-vision system calibration method based on Levy flight, comprising the following steps:

[0063] Step 1: Place the custom spherical calibration device in the common field of view of all cameras. Each camera has a common field of view with at least one other camera. The image of the spherical calibration device is acquired through the camera, and the rectangular calibration image of the cover on the spherical calibration device is extracted.

[0064] The embodiment of the present invention designs a custom-coded spherical calibration device to realize the calibration data collection of the multi-vision system under different viewing angles. Eight discretely distributed geometric patterns (including two triangles and six circles) are combined to form a rectangular calibration image. The calibration target is formed by integrating 200 rectangular calibration images and attaching them to an ellipsoidal object.

[0065] Specifically, Figure 1As shown in the figure, the spherical calibration device is a sphere with a diameter of about 500 mm, which is covered with 200 independently coded calibration individuals, each of which is a rectangle with a size of 30mm*30mm. Eight geometric figures are distributed in the rectangular calibration image, which can further provide eight features, namely {M1, M2, A, B, C, D, E, F}. M1 and M2 are template points, M1 is located at the center of the rectangle, and M2 is located at a corner of the rectangle; A, B, C, D, E, F, are encoding points, randomly distributed in the rectangle, and each encoding point does not overlap with each other. The diameter of each feature point is about 5mm.

[0066] Furthermore, the spherical calibration device satisfies:

[0067] The spherical calibration device is used to place a number of rectangular calibration patterns;

[0068] The rectangular calibration pattern includes 6 circular templates and 2 triangular coding points;

[0069] The circular template constitutes the identification points of a rectangular calibration pattern, wherein one of the triangular coding points is located at the center point of the rectangle;

[0070] The triangular coding points are freely arranged in the rectangular calibration pattern, and any two triangular coding points do not overlap each other.

[0071] Step 2: For each rectangular calibration image obtained, extract the centroid of the triangle coding points and the centroid of the circular template.

[0072] Specifically, each circular template is obtained to extract an ellipse, and a binary image is obtained, and the centroid coordinates corresponding to the binary image are calculated, the center point of the rectangle is point 1, and the other point is point 2; polygon fitting is performed on each triangle coding point, and a binary image is obtained, and the centroid coordinates corresponding to the binary image are calculated.

[0073] Step 3: Calculate the matrix representation corresponding to each rectangular calibration image according to the custom encoding rules.

[0074] Specifically, under each camera perspective, record the centroid points corresponding to the binary images of the 8 geometric figures. When matching the same calibration individual, in the absence of an absolute world coordinate system, the operation is performed by recording the relative position of the center of the circle under each camera perspective. Let the upper left corner of the rectangle be the origin of the coordinate system, the right is the positive direction of the X axis, and the downward is the positive direction of the Y axis. The triangle centroid coordinates (X, Y), with the centroid of the center triangle point as point 1, and the centroid of the corner triangle point as point 2. The circle centroid coordinates (X i , Y i )(i=1...6), arranged in ascending order of X-axis coordinates. X-coordinate deviation: ΔX i =X i -X(i=1...6); Y coordinate deviation: ΔYi =Y i -Y t (i=1...6). Calculate the distance between the centers of the circles to form a 4×6 matrix:

[0075]

[0076] Step 4: Calculate the similarity between the matrices obtained in the two spherical calibration device images to complete the rectangular calibration image matching. The two spherical calibration device images are obtained by two arbitrary cameras, and the centroids of all triangle coding points and the centroid of the circular template are used as the common view key points between the two cameras that obtain the matching spherical calibration device images.

[0077] In this embodiment, the root mean square error or correlation coefficient is used to judge the similarity. If it is less than a threshold, the two rectangular calibration images are considered to be matched; otherwise, continue to step 4 to complete the matching of the two rectangular calibration images, and repeat the above matching steps until all the rectangular calibration images acquired by the two cameras are matched.

[0078] Step 5: According to the coordinates of the common view key points, the external parameters of the camera in the world coordinate system are calculated with the help of epipolar geometry and SVD decomposition.

[0079] Specifically, Figure 3 As shown in Figure 1, first obtain the coded target on the calibration sphere under each camera's viewing angle. Match the coded target under the common viewing area according to the coding rule. According to the mathematical model of pinhole camera perspective imaging, the spatial point P i With image point x, i,j The mapping relationship between them can be expressed as:

[0080]

[0081] Where K j For camera C j The internal parameter matrix, μ i,j is an unknown scale factor, which represents the spatial point P i to C j The projection depth, Indicates camera C j Point on the image plane The corresponding homogeneous vector, Represents the homogeneous vector corresponding to the target point. Point P i In C j and C g The relationship between the scaling factors in can be defined as:

[0082]

[0083] Among them, F j,g and They refer to the basic matrix and pole position between the two cameras respectively.

[0084] Assume P i In C j The projection depth in the three cameras is 1, and the projection depth of the point in the other two cameras is calculated. Based on this, the projection equation of n feature points in the common field of view of the three cameras is established in this embodiment:

[0085]

[0086] Using the SVD-based method to decompose the matrix on the left side of the following formula, whose rank is no more than 4, the 3D coordinates in the projection space can be restored and camera pose [Q s1 , Q s3 , Q s3 ] T In order to further obtain the corresponding 3D coordinates and camera posture in the Euclidean space, the transformation matrix H from the projection space to the Euclidean space is introduced. The matrix should satisfy the following constraints:

[0087]

[0088] where α i , (i=1, 2, 3) is a non-zero real number.

[0089] Therefore, the transformation relationship from projective reconstruction to Euclidean reconstruction can be expressed as follows:

[0090]

[0091] By combining the matrix constraint formula and the transformation formula from projective reconstruction to Euclidean reconstruction, H can be solved. QH and H (-1) X corresponds to the camera pose and feature point coordinates in Euclidean space, respectively.

[0092] The calculation method of the above external parameters represents the relative pose between cameras in the initial calibration stage, as well as the transformation relationship between the spatial positions of the same point in different camera coordinates. After obtaining the above relationship, the common view relationship matrix is ​​constructed in combination with the common view key point information to provide the structural information of the visual system for the subsequent Levy flight algorithm. The execution process of the Levy flight algorithm will be described in Figure 4 Displayed in.

[0093] Step 6: construct an adjacency matrix containing specific parameters, wherein the elements of the adjacency matrix include external parameters, common view key points, and weight values ​​of camera connections in the common field of view.

[0094] An embodiment of the present invention provides an adjacency matrix that describes the relationship between cameras in a multi-vision system. In a multi-vision system, cameras are abstracted as vertices of a graph, and the geometric relationship between two cameras constitutes the edge of the graph. Each edge has a weight value, which also represents the common view relationship between the two cameras, and the common view relationship between all cameras constitutes an adjacency matrix. The matrix is ​​a symmetric matrix, in which each element consists of three parts: the spatial pose between the two cameras, which is empty if there is no common field of view; the feature point set under the common field of view, which is empty if there is no common calibration point; the weight value between the two cameras, the weight takes into account both the reprojection error between the two vertices (cameras) and the number of common view feature points between them. The number of common view feature points is relatively large.

[0095] Specifically, Figure 2 As shown in Figure 1, each off-diagonal element of the matrix represents the strength of association or the cost of information transmission between a pair of cameras, and its numerical value directly reflects the difficulty of these cameras cooperating in feature matching and 3D reconstruction. i,j Stores the weight information between nodes i and j. The information of each edge is expressed as L i,j ={H i,j ,Ω i,j , w i,j}, where H i,j Indicates that from C i to C j The transformation matrix, Ω i,j C i With C j The set of points in the common view area, w i,j represents the weight value to be evaluated. Since the node graph of the multi-camera system is an undirected graph, for each variable H i,j and ω i,j , they all satisfy the symmetric relationship, that is, H i,j =H j,i And ω i,j =w j,i .

[0096] Further, the weight value is calculated:

[0097] The two camera nodes C are represented by the reprojection error and the number of common view feature points. i With C j The association weight w i,j The weight of each edge can be represented by the sum of two components, namely:

[0098]

[0099] Where λ1 and λ2 represent the coefficients of the two components. It can be expressed as:

[0100]

[0101] Among them, i and Er j Represents camera C i and C j The average value of the reprojection error of , TH is the reprojection error threshold. Generally, when the number of common feature points contained in the field of view of the two cameras increases, the accuracy of the camera pose estimation also increases. Therefore, the reciprocal of the number of common feature points is used to construct the second component of the association weight, so that in the process of graph construction, this embodiment takes the sparsity of the common view key points into consideration. This component is expressed as:

[0102]

[0103] Where N i,j Indicates the number of feature points shared by the two cameras.

[0104] Step 7: Determine the flight step size and flight direction of the Levy flight algorithm according to the weight values ​​of the common view key points and camera connections.

[0105] It can be understood that if there is a common field of view between camera C1 and camera C6, and the calibration error is relatively large, the path optimization process can be described as: determine the nodes adjacent to node C1, Figure 4 In the figure, they are represented as 2, 5, 8, and 7. Each time, a node with the maximum transition probability is selected from the set of nodes adjacent to the current node as the next transfer target. Once the transition is to a new node, if its neighboring nodes have appeared in the previous path, the node will be excluded from the selection. This process will continue until the predetermined target node is reached.

[0106] Specifically, the Levy flight algorithm has a key variable, namely the transition step length L, which is constructed with a weight value:

[0107]

[0108] Where α and σ follow a normal distribution, and the variable in the flight step length There are the following forms:

[0109]

[0110] Select the node with the highest transfer probability from the current node as the next target node. The transition function is:

[0111]

[0112] where ρ i→jIt represents the transition probability from the current node i to the neighboring node j, κ is a parameter related to the Levy flight step length, defined as κ = c·L, c is a constant greater than zero, and the step length L is a non-negative random variable.

[0113] Step 8: Use the Levy flight algorithm of step 7 to find the next transition camera from the initial camera. After finding the next camera, continue to execute the Levy flight algorithm until the target camera is found.

[0114] Step 9: After searching for a complete transition path, determine a complete extrinsic parameter transformation path to obtain the extrinsic parameter relationship between the initial camera and the target camera.

[0115] Finally, this embodiment provides a multi-vision system path optimization algorithm based on Levy flight based on the extrinsic parameter relationship between the initial camera and the target camera, thereby realizing the optimization of the extrinsic parameters of the multi-vision system. For binocular cameras with large parameter errors in the multi-vision system, the node cameras with small reprojection errors are found by continuously searching for intermediate node cameras, and then the accurate extrinsic parameter transformation is reconstructed. First, the key variables of the Levy flight algorithm are clarified, and the flight step length is constructed by considering factors such as the number of feature points in the common viewing area and the reprojection error. The flight direction is constructed based on the probability distribution and the flight step length. Secondly, the iterative stopping conditions of the Levy flight algorithm are established: (1) For camera combinations with a common calibration field of view, the relative change of the reprojection root mean square function value is considered. If the relative change of the objective function value is less than a given threshold δ after multiple consecutive iterations, such as K consecutive iterations, that is, Then the iteration can be stopped. This means that when the improvement of the objective function value is relatively small, the algorithm may be close to the optimal solution. (2) For camera combinations without a common calibration field of view, calculate the Euclidean distance or other suitable distance measure of the parameter vector between adjacent iterations. If the change distance of the parameter vector is less than a given threshold θ after K consecutive iterations, that is, ||x i+K -x i ||<θ, then the iteration is stopped. This indicates that the parameters change little after multiple iterations and the algorithm may tend to converge. By combining these two conditions, the convergence of the Levy flight algorithm in the multi-eye vision system parameter optimization can be judged, so as to stop the iteration in time, save computing resources and obtain better parameter results.

[0116] Specifically, assuming that the acquired camera transformation path is Path={L s,s , L s,1 , …, L s,e , L e,e}, where L s,s and L e,e Represent the starting node and the target node in the adjacency matrix respectively. If the path is determined, the pose transformation between cameras will have the same transformation method, that is:

[0117] H s,e =H s,1 H 1,2 , ..., H n,e

[0118] In order to obtain more accurate camera pose and point position, the BA algorithm is introduced to optimize the reprojection error and further refine the parameter results. According to calibration theory, there is a scale difference between the camera pose and space point position obtained by global optimization and the actual value. Usually, this scale difference can be obtained by calculating the ratio between the reconstructed length of the reference rod and its theoretical length. Since the distance between the target points on the calibration object is a constant value, the two farthest points, denoted as point A and point B, are used to calculate the scale factor, that is:

[0119]

[0120] where d A,B Represents the actual distance between space point A and space point B, Respectively represent the spatial coordinates of point A and point B after reconstruction, N AB Represents the number of calculations. After obtaining the scale, calculate the spatial point and camera posture in the global coordinate system:

[0121]

[0122] Where T j,r and P i,r Respectively represent the camera translation vector and space point coordinates before scale transformation. j and P i Respectively represent the translation vector and spatial point coordinates after scale transformation.

[0123] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments including components are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.

Claims

1. A multi-vision system calibration method based on Levy flight, characterized in that: The steps include: Step 1: Place the custom spherical calibration device in the public field of view of all cameras, obtain the image of the spherical calibration device through the camera, and extract the rectangular calibration image of the cover on the spherical calibration device; Step 2: Extract the centroid of the triangle coding points and the centroid of the circular template in each rectangular calibration image obtained; Step 3: Calculate the matrix representation corresponding to each rectangular calibration image according to the custom encoding rules; Step 4: Calculate the similarity between the matrices obtained in the two spherical calibration device images to complete the rectangular calibration image matching. The two spherical calibration device images are obtained by two arbitrary cameras, and the centroids of all triangle code points and the centroid of the circular template are used as the common view key points between the two cameras that obtain the matching spherical calibration device images. Step 5: According to the coordinates of the common view key points, the external parameters of the camera in the world coordinate system are calculated using epipolar geometry and SVD decomposition; Step 6: construct an adjacency matrix containing specific parameters, wherein the elements of the adjacency matrix include external parameters, common view key points, and weight values ​​of camera connections in the common field of view; Step 7: Determine the flight step length and flight direction of the Levy flight algorithm according to the weight values ​​of the common view key points and the camera connections; Step 8: Use the Levy flight algorithm of step 7 to find the next transition camera from the initial camera. After finding the next camera, continue to execute the Levy flight algorithm until the target camera is found. Step 9: After searching for a complete transition path, determine a complete extrinsic parameter transformation path to obtain the extrinsic parameter relationship between the initial camera and the target camera.

2. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: In step 1, each camera has a common field of view with at least one other camera.

3. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: The spherical calibration device meets the following requirements: The spherical calibration device is used to place a number of rectangular calibration patterns; The rectangular calibration pattern includes 6 circular templates and 2 triangular coding points; The circular template constitutes the identification points of a rectangular calibration pattern, wherein one of the triangular coding points is located at the center point of the rectangle; The triangular coding points are freely arranged in the rectangular calibration pattern, and any two triangular coding points do not overlap each other.

4. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: In step 3, the coding rule is as follows: set the upper left corner of the rectangular calibration pattern as the coordinate origin, the right as the positive direction of the X axis, and the downward as the positive direction of the Y axis, define the centroid coordinates (X, Y) of the triangle coding point, take the centroid of the central triangle coding point as point 1, take the centroid of the corner triangle coding point as point 2, and define the centroid coordinates (X, Y) of the circular template. i , Y i )(i=1...6), arranged in ascending order of X-axis coordinates, X-coordinate deviation: ΔX i =X i -X(i=1...6); Y coordinate deviation: ΔY i =Y i -Y t (i=1...6), calculate the distances between the centers of the circular templates to form a 4×6 matrix.

5. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: In step 4, the root mean square error or correlation coefficient is used to judge the similarity. If it is less than a threshold, the two rectangular calibration images are considered to be matched; otherwise, continue to step 4 to complete the matching of the two rectangular calibration images, and repeat the above matching steps until all the rectangular calibration images acquired by the two cameras are matched.

6. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: In step 5, the calculation method of the external parameters of the camera in the world coordinate system is: Based on the mathematical model of pinhole camera perspective imaging, the mapping relationship between space points and image points is determined; Determine the relationship between the scale factors of spatial points in different cameras; Thus, the projection equation of the key points in the common field of view of the cameras is established, and the camera extrinsic parameters of the projection space can be recovered through singular value decomposition.

7. The multi-vision system calibration method based on Levy flight according to claim 1, characterized in that: The adjacency matrix construction method is: Each non-diagonal element of the adjacency matrix represents the strength of association or the cost of information transfer between a pair of cameras. The element L of the adjacency matrix i,j Stores the weight information between nodes i and j. The information of each edge is expressed as L i,j ={H i,j ,Ω i,j ,ω i,j }, where H i,j Indicates that from C i to C j The transformation matrix, Ω i,j C i With C j The set of points in the common view area, ω i,j It represents the evaluated weight value.

8. The multi-vision system calibration method based on Levy flight according to claim 7, characterized in that: When constructing the adjacency matrix, since the node graph formed by the multi-camera system is an undirected graph, for each variable H i,j and w i,j , they all satisfy the symmetric relationship, that is, H i,j =H j,i and w i,j =w j,i .

9. The multi-vision system calibration method based on Levy flight according to claim 7, characterized in that: The weight value is calculated as follows: The two camera nodes C are represented by the reprojection error and the number of common view feature points. i With C j The association weight w i,j , the weight of each edge can be represented by the sum of two components, namely: Among them, λ1 and λ2 represent the coefficients of the two components respectively. It can be expressed as: Among them, i and Er j Represents camera C i and C j is the average reprojection error, and TH is the reprojection error threshold.

10. The multi-vision system calibration method based on Levy flight according to claim 9, characterized in that: When calculating the weight value, the inverse of the number of common feature points is used to construct the second component of the association weight, and the second component is expressed as: Where N i,j Indicates the number of feature points shared by the two cameras.

11. The multi-vision system calibration method based on Levy flight according to claim 10, characterized in that: The calculation method of the flight step length and the flight direction is: There is a key variable in the Levy flight algorithm, namely the transition step length L, which is constructed with the weight value: Where α and σ follow a normal distribution, and the variable in the flight step length There are the following forms: Select the node with the highest transfer probability from the current node as the next target node. The transition function is: where ρ i→j It represents the transition probability from the current node i to the neighboring node j, κ is a parameter related to the Levy flight step length, defined as κ = c·L, c is a constant greater than zero, and the step length L is a non-negative random variable.

Citation Information

Patent Citations

  • Electromagnetic interference source visual marking method based on visual scene

    CN113658263A

  • Multi-camera external parameter calibration method and system based on multiple Aruco codes

    CN117830422A

  • Large-view-field camera calibration and parameter optimization method

    CN118196208A

  • Array antenna optimization method based on fusion type differential evolution algorithm

    CN118296935A

  • Automatic calibration system based on visual guidance

    WO2022120567A1