A camera array synchronous calibration method and system for super large power equipment

Through the camera array synchronous calibration method, using stereo targets and checkerboard calibration plates, the problem of insufficient camera parameter calibration accuracy and complex scene applicability in the traditional method is solved, and high-precision and efficient camera array calibration is achieved, which is suitable for large-scale industrial sites. Scale space measurements.

CN114299153BActive Publication Date: 2024-09-13SHANGHAI SHIDONGKOU NO 2 POWER PLANT HUANENG INTERNATIONAL POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111349748.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-09-13
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

Traditional large-scale measurement systems cannot meet the needs of large-scale spatial coordinate measurement in industrial sites, and camera parameter calibration accuracy relies on manual movement of the calibration plate, making it difficult to ensure accuracy, especially in complex scenes.

Method used

The camera array synchronous calibration method of ultra-large power equipment is used to obtain the internal and external parameters of the camera, use the stereo target and checkerboard calibration board to calibrate the internal and external parameters of the camera, and combine the maximum likelihood estimation and K-Means clustering to achieve Global optimization and unification of camera parameters.

Benefits of technology

It achieves efficient and high-precision camera array calibration, simplifies the operation process, avoids cumulative motion errors in single camera calibration, and is suitable for industrial field measurements in complex scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299153B
    Figure CN114299153B
Patent Text Reader

Abstract

A method and system for synchronous calibration of a camera array of a super-large power device, belonging to the technical field of camera array calibration in computer vision, solves the problem of the influence of the correlation between the internal and external parameters of the camera being solved at one time, thereby improving the accuracy of the synchronous calibration result of the camera array of the super-large power device. The technical scheme of the present invention is divided into two parts: the calibration of the internal parameters of the camera and the calibration of the external parameters of the camera. Firstly, the camera array is used to synchronously collect continuous images of a chessboard calibration plate under different camera postures to calibrate the internal parameters of the camera; then, the camera array is used to synchronously collect target images for external parameter calibration, and a camera projection matrix is ​​constructed according to the camera internal parameter matrix to obtain the camera external parameters, thereby overcoming the problem of the influence of the correlation between the internal and external parameters of the camera being solved at one time as a whole to the greatest extent, and being suitable for the measurement of super-large power equipment in industrial sites.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of camera array calibration in computer vision, and relates to a camera array synchronous calibration method and system for super large power equipment. Background Art

[0002] The purpose of super-large power equipment status monitoring is to use effective detection means and analysis and diagnosis technology to timely and accurately grasp the equipment operation status, ensure the safe, reliable and economical operation of the equipment, and use multiple cameras with free system image acquisition system and image return function installed in the factory to form a camera array to shoot various angles in the factory. The camera array can replace the traditional manual inspection to return, splice and present the video images of the on-site power equipment, and collect the image, video, sound, temperature and other data of the power equipment in real time, especially in places where there are personnel safety risks or difficult for personnel to enter. The camera array system can perform real-time monitoring on site.

[0003] Camera calibration technology is an important technology in the field of computer vision. With the vigorous development of computer vision technology, this technology has a wide range of applications and needs in the field of industrial measurement, especially in the measurement of large-scale objects in industrial sites. With the development of large-scale equipment manufacturing and the innovation of industrial technology, large-scale measurement presents the characteristics of complex measurement environment, diverse measurements, and the need for automation and efficiency of the measurement process. Traditional large-scale measurement systems can no longer meet the growing needs of large-scale spatial coordinate measurement in industrial sites.

[0004] The calibration accuracy of camera parameters directly affects the measurement accuracy of the system. Most traditional methods are based on calibration plates of known shapes and sizes for calibration. For example, the Chinese invention patent application "Calibration system and method for large-size visual measurement system based on multi-camera array" with application publication number CN105513068A and application publication date April 20, 2016 adopts a calibration method based on a multi-camera array, that is, a camera is placed at each feature point to be measured, and the coordinates of each feature point in the corresponding camera coordinate system are obtained, and then the coordinates of each feature point are converted to the same camera coordinate system through the positional relationship between each camera. The above-mentioned literature method requires manual movement of the calibration plate during the calibration process to obtain images of the calibration object in different postures, which places high requirements on the calibration personnel, and the accuracy of the calibration results cannot be guaranteed, and it cannot be used in complex scenes such as outdoor. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for synchronous calibration of a camera array of a super-large power device, so as to solve the problem of the influence of the correlation between the internal and external parameters of the camera being solved at one time, thereby improving the accuracy of the synchronous calibration results of the camera array of the super-large power device.

[0006] The present invention solves the above technical problems through the following technical solutions:

[0007] A method for synchronous calibration of a camera array of a super large power device comprises the following steps:

[0008] S1, obtaining the internal parameters of each camera in the camera array;

[0009] S2. Build a stereo target for calibrating camera external parameters. The camera array completes the initial calibration of camera external parameters by taking images of the stereo target without moving.

[0010] S3. Build a camera array to complete data collection of the target. The camera array is fixedly mounted on a stage with a certain distance between the cameras to ensure that the relative position relationship between the cameras remains unchanged. The camera shutter is controlled by calling the API interface of the camera array, and multiple cameras are triggered by the same time pulse to complete the synchronous shooting of the same target object.

[0011] S4, processing images collected by a single camera;

[0012] S5, treating the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completing the calibration of the camera external parameters through the matching correspondence between the two images;

[0013] S6. After calculating the intrinsic and extrinsic parameter values ​​of the camera, the camera parameters are globally optimized using maximum likelihood estimation, and the result of the objective equation is minimized using a given objective equation to obtain the camera parameter values;

[0014] S7, uniquely identifying and numbering the images collected by each camera in the camera array, and performing K-Means clustering on the external parameters of the same camera at different times according to the number, selecting a subset that makes the parameter value in the sequence optimal to calculate the average value, and calculating the external parameters of the camera;

[0015] S8. Taking a certain camera in the camera array as a reference, transform the external parameters of other cameras into the coordinate system to achieve the unification of the camera array parameters.

[0016] The technical solution of the present invention is divided into two parts: the calibration of the internal parameters of the camera and the calibration of the external parameters of the camera. Firstly, a camera array is used to synchronously collect continuous images of a chessboard calibration plate under different camera postures to calibrate the internal parameters of the camera. Then, the camera array is used to synchronously collect target images for external parameter calibration, and a camera projection matrix is ​​constructed according to the camera internal parameter matrix to obtain the camera external parameters, thereby overcoming the problem of solving the correlation influence between the internal parameters and the external parameters of the camera at one time as a whole to the greatest extent, and the present invention is suitable for the measurement of super-large power equipment in industrial sites.

[0017] As a further improvement of the technical solution of the present invention, the method for obtaining the internal parameters of each camera in the camera array described in step S1 is as follows:

[0018] S11, using Zhang Zhengyou calibration method, using N consecutive camera images, using Harris corner detection to extract corner points in the chessboard, and using the linear geometric constraint relationship of the chessboard to calculate the homography transformation matrix H between the calibration image and the chessboard;

[0019] S12. Let the homogeneous coordinates of the corner points in the chessboard in the world coordinate system be M = [XYZ 1] T , which corresponds to the point coordinates on the two-dimensional camera image plane as m = [uv 1] T To simplify the calculation, assume that the corner points in the chessboard satisfy the coplanar constraint, that is, set Z = 0, then the points in the world coordinate system and the points in the image pixel coordinate system satisfy the following relationship:

[0020]

[0021] S13, define the homography transformation matrix H between the object plane and the imaging plane to satisfy the following definition:

[0022]

[0023] The internal parameter matrix of the camera can be expressed as follows:

[0024]

[0025] Among them, s represents the scale factor, and the parameters r1 and r2 represent the rotation vectors, which satisfy the orthogonal relationship; f x ,f y Indicates the focal length of the camera, which is related to the pixel size of the camera; c x ,c y Indicates the translation distance, which is related to the size of the camera imaging plane;

[0026] S14. Without considering the camera distortion, the homography matrix can be simplified to H = [h1h2h3]; according to the orthogonal relationship of the vectors, the constraint relationship for solving can be obtained as follows:

[0027]

[0028] S15. It can be further confirmed from the above constraint relationship that the monomials in the constraint relationship can be written as In the form of, at the same time, since the B matrix is ​​a symmetric matrix, it can be known that its effective parameters are 6, then the following relationship can be obtained:

[0029]

[0030] S16. Based on this relationship, the above constraint relationship can be further transformed into the following form:

[0031]

[0032] Therefore, based on this relationship, using multiple images of different perspectives collected continuously, the least squares method can be used to solve the value of b in the above equation, which is the internal parameter value of the camera.

[0033] As a further improvement of the technical solution of the present invention, it is characterized in that the three-dimensional target described in step S2 is a regular tetrahedron structure, each face is filled with circular spots, and a code with a unique identifier is attached to the connection between different faces of the tetrahedron to uniquely identify the face.

[0034] As a further improvement of the technical solution of the present invention, the method for processing the image captured by a single camera described in step S4 is as follows:

[0035] S41, for an image from a single camera, using bilateral filtering to reduce image noise;

[0036] S42, performing adaptive thresholding on the image, accumulating and averaging the pixels in the window, calculating the weighted average value in the pixel window, and then subtracting a set constant from the result to obtain an adaptive threshold value for the area;

[0037] S43, calling the blob detection algorithm in Opencv to search for circular contours in the image, and obtaining the pixel area of ​​the contour area according to the extracted circular contour radius, removing the interfering contours by a set threshold, retaining the required contour information, and obtaining the center of the circular contour area according to the pixel value of the circular contour boundary, and then dividing it into four sets according to the different planes where the center of the circle is located;

[0038] S44. Establish a plane coordinate system on each target plane, and calculate the coordinates of the characteristic circles in the coordinate system of the target plane according to the actual position relationship between the characteristic circles on each target plane; since the physical position of each circular contour in the target is fixed, after the coordinate system is established, the coordinate relationship of the circular area in the image in the target plane coordinate system can be obtained based on the center position obtained by the above circular contour area detection.

[0039] As a further improvement of the technical solution of the present invention, the method described in step S5 of treating the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completing the calibration of the camera external parameters through the matching correspondence between the two images is as follows:

[0040] S51, putting the images taken by all cameras into the same image set, according to the actual relationship between the extracted characteristic circle pixel coordinate system and the characteristic circle target surface coordinate system;

[0041] S52, using image matching to arbitrarily select two images A and B as the starting point for solving;

[0042] S53. Solve the basic matrix F according to the 8-point method in computer vision. From the image matching relationship, it can be obtained that any set of matching feature points x, x' in the two images satisfies: x'Fx=0, and the relationship between the basic matrix and the essential matrix satisfies:

[0043] E=K T FK

[0044] Among them, the matrix K is the internal parameter matrix of the camera. From this, the rotation matrix R and the essential matrix E of the translation vector t representing the relative posture of the camera can be solved. Then, the external parameter matrix of the camera can be obtained by performing singular value decomposition on the matrix.

[0045] As a further improvement of the technical solution of the present invention, the target equation described in step S6 is:

[0046]

[0047] in, Indicates Q j The reprojection matrix of the feature points, i and j represent the counting factors, and n represents the number of feature circles on each plane of the stereo target.

[0048] As a further improvement of the technical solution of the present invention, the rule of the unique identification number described in step S7 is specifically: the images taken by the same camera are arranged in chronological order, and the images taken by different cameras at the same time are prefixed with the camera number.

[0049] A camera array synchronous calibration system for super large power equipment, comprising:

[0050] Internal parameter acquisition module, external parameter calibration module, data acquisition module, image processing module, external parameter initial calibration module, optimization module, external parameter clustering average module, camera array parameter unification module;

[0051] The internal parameter acquisition module is used to obtain the internal parameters of each camera in the camera array;

[0052] The external parameter calibration module is based on a stereo target for calibrating the external parameters of the camera. The camera array completes the calibration of the external parameters of the camera by taking images of the stereo target without moving.

[0053] The data acquisition module completes the data acquisition of the target by building a camera array, and the camera array is fixedly mounted on a carrier, and the cameras are spaced a certain distance apart to ensure that the relative position relationship between the cameras remains unchanged. The camera shutter is controlled by calling the API interface of the camera array, and multiple cameras are triggered by the same time pulse to complete the synchronous shooting of the same target object;

[0054] The image processing module is used to process images collected by a single camera;

[0055] The external parameter initial calibration module regards the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completes the initial calibration of the camera external parameters through the matching correspondence between the two images;

[0056] After calculating the intrinsic and extrinsic parameter values ​​of the camera, the optimization module uses maximum likelihood estimation to perform global optimization on the camera parameters, and uses a given objective equation to minimize the result of the objective equation to obtain the camera parameter values;

[0057] The external parameter clustering and averaging module uniquely identifies and numbers the images collected by each camera in the camera array, and performs K-Means clustering on the external parameters of the same camera at different times according to the number, selects the subset with the optimal parameter value in the sequence to calculate the average value, and calculates the external parameters of the camera;

[0058] The camera array parameter unification module uses a certain camera in the camera array as a reference, transforms the external parameters of other cameras into the coordinate system, and realizes the unification of the camera array parameters.

[0059] As a further improvement of the technical solution of the present invention, the method for obtaining the internal parameters of each camera in the camera array is as follows:

[0060] 1) Using Zhang Zhengyou calibration method, using N consecutive camera images, using Harris corner detection to extract corner points in the chessboard, and using the linear geometric constraints of the chessboard to calculate the homography transformation matrix H between the calibration image and the chessboard;

[0061] 2) Let the homogeneous coordinates of the corner point in the chessboard in the world coordinate system be M = [XYZ 1] T , which corresponds to the point coordinates on the two-dimensional camera image plane as m = [uv 1] T To simplify the calculation, assume that the corner points in the chessboard satisfy the coplanar constraint, that is, set Z = 0, then the points in the world coordinate system and the points in the image pixel coordinate system satisfy the following relationship:

[0062]

[0063] 3) Define the homography transformation matrix H between the object plane and the imaging plane to satisfy the following definition:

[0064]

[0065] The internal parameter matrix of the camera can be expressed as follows:

[0066]

[0067] Among them, s represents the scale factor, and the parameters r1 and r2 represent the rotation vectors, which satisfy the orthogonal relationship; f x ,f y Indicates the focal length of the camera, which is related to the pixel size of the camera; c x ,c y Indicates the translation distance, which is related to the size of the camera imaging plane;

[0068] 4) Without considering camera distortion, the homography matrix can be simplified to H = [h1 h2 h3]; according to the orthogonal relationship of vectors, the constraint relationship for solving can be obtained as follows:

[0069]

[0070] 5) It can be further confirmed from the above constraint relationship that the monomials in the constraint relationship can be written as Bh j In the form of, at the same time, since the B matrix is ​​a symmetric matrix, it can be known that its effective parameters are 6, then the following relationship can be obtained:

[0071]

[0072] 6) Based on this relationship, the above constraint relationship can be further transformed into the following form:

[0073]

[0074] Therefore, based on this relationship, using multiple images of different perspectives collected continuously, the least squares method can be used to solve the value of b in the above equation, which is the internal parameter value of the camera.

[0075] As a further improvement of the technical solution of the present invention, the method for processing images collected by a single camera is as follows:

[0076] a) For images from a single camera, bilateral filtering is used to reduce image noise;

[0077] b) Adaptively thresholding the image, accumulating and averaging the pixels in the window, calculating the weighted average value in the pixel window, and then subtracting the set constant from the result to obtain the adaptive threshold value of the area;

[0078] c) Call the blob detection algorithm in Opencv to search for circular contours in the image, and get the pixel area of ​​the contour area according to the extracted circular contour radius. Remove the interfering contours through the set threshold, retain the required contour information, and get the center of the circular contour area according to the pixel value of the circular contour boundary, and then divide it into four sets according to the different planes where the center of the circle is located;

[0079] d) Establish a plane coordinate system on each target plane, and calculate the coordinates of the characteristic circles in the coordinate system of the target plane according to the actual position relationship between the characteristic circles on each target plane; since the physical position of each circular contour in the target is fixed, after the coordinate system is established, the coordinate relationship of the circular area in the image in the target plane coordinate system can be obtained based on the center position obtained by the above circular contour area detection.

[0080] The advantages of the present invention are:

[0081] The calibration process is simple, and it can achieve efficient and high-precision camera calibration with good versatility. Compared with monocular cameras, array cameras can simultaneously capture images of the calibration object from different perspectives, and there is no motion accumulation error between images from different perspectives when a single camera acquires images. The operation process is simpler, and there is no need to move the camera very strictly to capture images from different perspectives. In addition, compared with monocular camera calibration, array camera calibration adds matching constraints between cameras, which can more accurately restore the unknown information of feature points in three-dimensional space. At the same time, the synchronous data acquisition of array cameras can well compensate for the errors caused by the continuous movement of a single camera to solve the camera motion. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 This is a flow chart of a method for synchronous calibration of a camera array of a super large power device according to a first embodiment of the present invention;

[0083] Figure 2 It is a flowchart of single camera image acquisition processing of a camera array synchronous calibration method for super large power equipment according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0085] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments:

[0086] Embodiment 1

[0087] like Figure 1 As shown, a method for synchronous calibration of a camera array of a super large power equipment comprises the following steps:

[0088] 1. Get the internal parameters of each camera in the camera array

[0089] The camera internal parameters are parameters related to the camera structure and generally do not have too much deviation. The parameters include: f x ,f y Indicates the focal length of the camera, which is related to the pixel size of the camera; c x ,c y Represents the translation distance, also known as the coordinate of the center point of the optical axis of the camera imaging plane, which is related to the size of the camera imaging plane and can be calibrated once and reused multiple times. The calibration uses the classic Zhang Zhengyou calibration method, using N consecutive camera images and Harris corner point detection to extract the corner points in the chessboard. Using the linear geometric constraints of the chessboard, the homography transformation matrix H between the calibration image and the chessboard is calculated.

[0090] Suppose the homogeneous coordinates of the corner point in the chessboard in the world coordinate system are M = [XYZ 1] T , which corresponds to the point coordinates on the two-dimensional camera image plane as m = [uv 1] T To simplify the calculation, assume that the corner points in the chessboard satisfy the coplanar constraint, that is, set Z = 0, then the points in the world coordinate system and the points in the image pixel coordinate system satisfy the following relationship:

[0091]

[0092] Therefore, the homography transformation matrix H between the object plane and the imaging plane can be defined as follows:

[0093]

[0094] The internal parameter matrix of the camera can be expressed as follows:

[0095]

[0096] The s introduced in the formula represents the scale factor. The parameters r1 and r2 represent the rotation vectors, which satisfy the orthogonal relationship. Therefore, without considering the camera distortion, the homography matrix can be simplified to H = [h1 h2 h3].

[0097] According to the orthogonal relationship of the vectors, the constraint relationship can be solved as follows:

[0098]

[0099] It can be further confirmed from the above constraint relationship that the monomials in the constraint relationship can be written as Bh j In the form of , and since the B matrix is ​​a symmetric matrix, it has 6 valid parameters (6 elements on either side of the main diagonal), the following relationship can be obtained:

[0100]

[0101] Based on this relationship, the above constraint relationship can be further transformed into the following form:

[0102]

[0103] Therefore, based on this relationship, using multiple images of different perspectives collected continuously, the least squares method can be used to solve the value of b in the above equation, and the value of b is the internal parameter value of the camera.

[0104] 2. Build a stereo target for external parameter calibration, so that the camera array can complete the initial calibration of external parameters by taking images of the stereo target without moving. The stereo target has a regular tetrahedral structure, and each face is filled with circular spots. The connection between different faces of the tetrahedron is attached with a unique code to uniquely identify the face.

[0105] 3. Build a camera array to complete the data collection of the target. The camera array is fixed on a stage, and the cameras are spaced a certain distance apart to ensure that the relative position relationship between the cameras remains unchanged. The camera shutter is controlled by calling the camera API interface, and multiple cameras are triggered by the same time pulse to complete the synchronous shooting of the same target object.

[0106] 4. Single camera image processing

[0107] like Figure 2 As shown in the figure, for the image of a single camera, preprocessing is first performed, and bilateral filtering is used to reduce the noise of the image. This method can better protect the edge information of black and white images. After filtering, the image is adaptively thresholded. Adaptive thresholding is a standard operation for image processing. The pixels in the window are accumulated and averaged, and the weighted average value in the pixel window is calculated. The result is subtracted from a set constant to obtain the adaptive threshold of the area. After that, the blob spot detection algorithm in Opencv is called to search the circular contour of the image. At the same time, the pixel area of ​​the contour area is obtained according to the extracted circular contour radius. The interfering contour is eliminated by the set threshold, the required contour information is retained, and the center of the circular contour area is obtained according to the pixel value of the circular contour boundary; and then it is divided into four sets according to the different planes where the center of the circle is located. After that, a plane coordinate system is established on each target plane, and the coordinates of the characteristic circle in the coordinate system of the target plane are calculated according to the actual position relationship between the characteristic circles on each target plane. The coordinate system of each surface is established separately, which realizes that the coordinate systems between targets do not affect each other, greatly reducing the cost of target processing and manufacturing. The physical position of each circular contour in the target is fixed. After the coordinate system is established, the coordinate relationship of the circular area in the image in the target plane coordinate system can be obtained based on the center position obtained by the above circular contour area detection.

[0108] 5. The shooting of the target by each camera in the camera array is regarded as the collection of independent cameras at the same time, and the calibration of the camera external parameters is completed through the matching correspondence between the two images.

[0109] Put all the images taken by the cameras into the same image set, and according to the actual relationship between the characteristic circle pixel coordinate system and the characteristic circle target surface coordinate system extracted in step 4. Using image matching, arbitrarily select two images A and B as the starting point for the solution. According to the classic 8-point method basic matrix F in computer vision, it can be obtained from the image matching relationship that any set of matching feature points x, x' in the two images satisfies: x'Fx=0, and the relationship between the basic matrix and the essential matrix satisfies:

[0110] E=K T FK

[0111] Among them, the matrix K is the internal parameter matrix of the camera, which has been obtained in the camera internal parameter calibration in step 1. Therefore, the rotation matrix R and the essential matrix E of the translation vector t representing the relative posture of the camera can be solved, and then the external parameter matrix of the camera can be obtained by singular value decomposition of the matrix.

[0112] 6. Initial optimization of camera external parameters

[0113] After calculating the initial values ​​of the camera's internal and external parameters, the maximum likelihood estimation is used to globally optimize the camera parameters. The maximum likelihood estimation method is a common mathematical statistical method, which aims to minimize the result of the target equation based on the solved initial values ​​of the internal and external parameters and obtain the final parameter value using the given target equation.

[0114] Assume that there are n characteristic circles on each plane of the multi-faceted stereo target, and the multi-faceted stereo target has four faces in total. At the same time, assuming that the image is affected by uniformly distributed noise, the following target equation can be obtained:

[0115]

[0116] in, Indicates Q j Reprojection matrix of feature points.

[0117] 7. Uniquely identify and number the images collected by each camera in the camera array. The numbering rules meet the following requirements: images taken by the same camera are arranged in chronological order, while images taken by different cameras at the same time are prefixed with the camera number. Based on the numbering, perform K-Means clustering on the external parameters of the same camera at different times, select the subset with the best parameter value in the sequence, calculate the average value, and calculate the external parameters of the camera.

[0118] 8. Unify the camera external parameter coordinate system

[0119] Taking one camera in the camera array as a reference, the external parameters of other phases are transformed into this coordinate system to achieve the unification of the camera array parameters.

[0120] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for synchronous calibration of a camera array of a super large power equipment, characterized in that: The following steps are involved: S1, obtaining the internal parameters of each camera in the camera array; S2. Build a stereo target for calibrating camera external parameters. The camera array completes the initial calibration of camera external parameters by taking images of the stereo target without moving. S3. Build a camera array to complete data collection of the target. The camera array is fixedly mounted on a stage with a certain distance between the cameras to ensure that the relative position relationship between the cameras remains unchanged. The camera shutter is controlled by calling the API interface of the camera array, and multiple cameras are triggered by the same time pulse to complete the synchronous shooting of the same target object. S4, processing images collected by a single camera; S5, treating the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completing the calibration of the camera external parameters through the matching correspondence between the two images; S6. After calculating the intrinsic and extrinsic parameter values ​​of the camera, the camera parameters are globally optimized using maximum likelihood estimation, and the result of the objective equation is minimized using a given objective equation to obtain the camera parameter values; S7, uniquely identifying and numbering the images collected by each camera in the camera array, and performing K-Means clustering on the external parameters of the same camera at different times according to the number, selecting a subset that makes the parameter value in the sequence optimal to calculate the average value, and calculating the external parameters of the camera; S8. Taking a certain camera in the camera array as a reference, transform the external parameters of other cameras into the coordinate system to achieve the unification of the camera array parameters.

2. A method for synchronous calibration of a camera array of a super large power equipment according to claim 1, characterized in that: The method for obtaining the internal parameters of each camera in the camera array described in step S1 is as follows: S11, using Zhang Zhengyou calibration method, using N consecutive camera images, using Harris corner detection to extract corner points in the chessboard, and using the linear geometric constraint relationship of the chessboard to calculate the homography transformation matrix H between the calibration image and the chessboard; S12. Let the homogeneous coordinates of the corner points in the chessboard in the world coordinate system be M = [XYZ 1] T , which corresponds to the point coordinates on the two-dimensional camera image plane as m = [uv 1] T To simplify the calculation, assume that the corner points in the chessboard satisfy the coplanar constraint, that is, set Z = 0, then the points in the world coordinate system and the points in the image pixel coordinate system satisfy the following relationship: S13, define the homography transformation matrix H between the object plane and the imaging plane to satisfy the following definition: The internal parameter matrix of the camera can be expressed as follows: Among them, s represents the scale factor, and the parameters r1 and r2 represent the rotation vectors, which satisfy the orthogonal relationship; f x ,f y Indicates the focal length of the camera, which is related to the pixel size of the camera; c x ,c y Indicates the translation distance, which is related to the size of the camera imaging plane; S14. Without considering the camera distortion, the homography matrix can be simplified to H = [h1 h2 h3]; according to the orthogonal relationship of the vectors, the constraint relationship for solving can be obtained as follows: S15. It can be further confirmed from the above constraint relationship that the monomials in the constraint relationship can be written as In the form of, at the same time, since the B matrix is ​​a symmetric matrix, it can be known that its effective parameters are 6, then the following relationship can be obtained: S16. Based on this relationship, the above constraint relationship can be further transformed into the following form: Therefore, based on this relationship, using multiple images of different perspectives collected continuously, the least squares method can be used to solve the value of b in the above equation, which is the internal parameter value of the camera.

3. The method for synchronous calibration of a camera array of a super large power equipment according to claim 1, characterized in that: The three-dimensional target described in step S2 is in the form of a regular tetrahedron structure, each face of which is filled with circular spots, and a code with a unique identifier is attached to the connection between different faces of the tetrahedron to uniquely identify the face.

4. The method for synchronous calibration of a camera array of a super large power equipment according to claim 1, characterized in that: The method for processing the image captured by a single camera described in step S4 is as follows: S41, for an image from a single camera, using bilateral filtering to reduce image noise; S42, performing adaptive thresholding on the image, accumulating and averaging the pixels in the window, calculating the weighted average value in the pixel window, and then subtracting a set constant from the result to obtain an adaptive threshold value for the area; S43, calling the blob detection algorithm in Opencv to search for circular contours in the image, and obtaining the pixel area of ​​the contour area according to the extracted circular contour radius, removing the interfering contours by a set threshold, retaining the required contour information, and obtaining the center of the circular contour area according to the pixel value of the circular contour boundary, and then dividing it into four sets according to the different planes where the center of the circle is located; S44. Establish a plane coordinate system on each target plane, and calculate the coordinates of the characteristic circles in the coordinate system of the target plane according to the actual position relationship between the characteristic circles on each target plane; since the physical position of each circular contour in the target is fixed, after the coordinate system is established, the coordinate relationship of the circular area in the image in the target plane coordinate system can be obtained based on the center position obtained by the above circular contour area detection.

5. A method for synchronous calibration of a camera array of a super large power equipment according to claim 4, characterized in that: The method described in step S5 of regarding the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completing the calibration of the camera external parameters through the matching correspondence between the two images is as follows: S51, putting the images taken by all cameras into the same image set, according to the actual relationship between the extracted characteristic circle pixel coordinate system and the characteristic circle target surface coordinate system; S52, using image matching to arbitrarily select two images A and B as the starting point for solving; S53. Solve the basic matrix F according to the 8-point method in computer vision. From the image matching relationship, it can be obtained that any set of matching feature points x, x' in the two images satisfies: x'Fx=0, and the relationship between the basic matrix and the essential matrix satisfies: E=K T FK Among them, the matrix K is the internal parameter matrix of the camera. From this, the rotation matrix R and the essential matrix E of the translation vector t representing the relative posture of the camera can be solved. Then, the external parameter matrix of the camera can be obtained by performing singular value decomposition on the matrix.

6. A method for synchronous calibration of a camera array of a super large power equipment according to claim 5, characterized in that: The target equation described in step S6 is: in, Indicates Q j The reprojection matrix of the feature points, i and j represent the counting factors, and n represents the number of feature circles on each plane of the stereo target.

7. The method for synchronous calibration of a camera array of a super large power equipment according to claim 1, characterized in that: The specific rule of the unique identification number in step S7 is: the images taken by the same camera are arranged in chronological order, and the images taken by different cameras at the same time are prefixed with the camera number.

8. A camera array synchronous calibration system for super large power equipment, characterized in that: include: Internal parameter acquisition module, external parameter calibration module, data acquisition module, image processing module, external parameter initial calibration module, optimization module, external parameter clustering average module, camera array parameter unification module; The internal parameter acquisition module is used to obtain the internal parameters of each camera in the camera array; The external parameter calibration module is based on a stereo target for calibrating the external parameters of the camera. The camera array completes the calibration of the external parameters of the camera by taking images of the stereo target without moving. The data acquisition module completes the data acquisition of the target by building a camera array, and the camera array is fixedly mounted on a carrier, and the cameras are spaced a certain distance apart to ensure that the relative position relationship between the cameras remains unchanged. The camera shutter is controlled by calling the API interface of the camera array, and multiple cameras are triggered by the same time pulse to complete the synchronous shooting of the same target object; The image processing module is used to process images collected by a single camera; The external parameter initial calibration module regards the shooting of the target by each camera in the camera array as the collection of independent cameras at the same time, and completes the initial calibration of the camera external parameters through the matching correspondence between the two images; After calculating the intrinsic and extrinsic parameter values ​​of the camera, the optimization module uses maximum likelihood estimation to perform global optimization on the camera parameters, and uses a given objective equation to minimize the result of the objective equation to obtain the camera parameter values; The external parameter clustering and averaging module uniquely identifies and numbers the images collected by each camera in the camera array, and performs K-Means clustering on the external parameters of the same camera at different times according to the number, selects the subset with the optimal parameter value in the sequence to calculate the average value, and calculates the external parameters of the camera; The camera array parameter unification module uses a certain camera in the camera array as a reference, transforms the external parameters of other cameras into the coordinate system, and realizes the unification of the camera array parameters.

9. A camera array synchronous calibration system for super large power equipment according to claim 8, characterized in that: The method for obtaining the internal parameters of each camera in the camera array is as follows: 1) Using Zhang Zhengyou calibration method, using N consecutive camera images, using Harris corner detection to extract corner points in the chessboard, and using the linear geometric constraints of the chessboard to calculate the homography transformation matrix H between the calibration image and the chessboard; 2) Let the homogeneous coordinates of the corner point in the chessboard in the world coordinate system be M = [XYZ 1] T , which corresponds to the point coordinates on the two-dimensional camera image plane as m = [uv 1] T To simplify the calculation, assume that the corner points in the chessboard satisfy the coplanar constraint, that is, set Z = 0, then the points in the world coordinate system and the points in the image pixel coordinate system satisfy the following relationship: 3) Define the homography transformation matrix H between the object plane and the imaging plane to satisfy the following definition: The internal parameter matrix of the camera can be expressed as follows: Among them, s represents the scale factor, and the parameters r1 and r2 represent the rotation vectors, which satisfy the orthogonal relationship; f x ,f y Indicates the focal length of the camera, which is related to the pixel size of the camera; c x ,c y Indicates the translation distance, which is related to the size of the camera imaging plane; 4) Without considering camera distortion, the homography matrix can be simplified to H = [h1 h2 h3]; according to the orthogonal relationship of vectors, the constraint relationship for solving can be obtained as follows: 5) It can be further confirmed from the above constraint relationship that the monomials in the constraint relationship can be written as In the form of, at the same time, since the B matrix is ​​a symmetric matrix, it can be known that its effective parameters are 6, then the following relationship can be obtained: 6) Based on this relationship, the above constraint relationship can be further transformed into the following form: Therefore, based on this relationship, using multiple images of different perspectives collected continuously, the least squares method can be used to solve the value of b in the above equation, which is the internal parameter value of the camera.

10. A camera array synchronous calibration system for super large power equipment according to claim 9, characterized in that: The method for processing an image collected by a single camera is as follows: a) For images from a single camera, bilateral filtering is used to reduce image noise; b) Adaptively thresholding the image, accumulating and averaging the pixels in the window, calculating the weighted average value in the pixel window, and then subtracting the set constant from the result to obtain the adaptive threshold value of the area; c) Call the blob detection algorithm in Opencv to search for circular contours in the image, and get the pixel area of ​​the contour area according to the extracted circular contour radius. Remove the interfering contours through the set threshold, retain the required contour information, and get the center of the circular contour area according to the pixel value of the circular contour boundary, and then divide it into four sets according to the different planes where the center of the circle is located; d) Establish a plane coordinate system on each target plane, and calculate the coordinates of the characteristic circles in the coordinate system of the target plane according to the actual position relationship between the characteristic circles on each target plane; since the physical position of each circular contour in the target is fixed, after the coordinate system is established, the coordinate relationship of the circular area in the image in the target plane coordinate system can be obtained based on the center position obtained by the above circular contour area detection.