Binocular event camera calibration method and device based on flicker calibration board

By using flickering virtual calibration plate and accumulator technology in binocular event cameras, the problems of movement error and hardware limitations in event camera calibration are solved, and high-precision binocular event camera calibration is achieved, which is suitable for three-dimensional perception and industrial applications. Environmental awareness.

CN118570311AActive Publication Date: 2024-08-30DALIAN UNIV OF TECH

Patent Information

Application Number
CN202410835179.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-30
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing event camera calibration methods are difficult to achieve high-precision calibration in binocular event cameras. They are affected by movement errors and hardware limitations, resulting in limited three-dimensional perception precision and accuracy. Especially in industrial applications, it is difficult to meet high-precision requirements.

Method used

A method based on flickering virtual calibration plates is used to generate a virtual calibration plate picture of a specific physical size and play a video with a frequency of 100Hz on the display. The calibration plate event data is collected under a fixed binocular event camera pose and the accumulator is used to reconstruct the grayscale. degree map, perform feature extraction and global optimization, and iteratively solve camera parameters to avoid movement errors and hardware limitations.

Benefits of technology

It achieves high-precision calibration of binocular event cameras in a static state, improves the accuracy and stability of calibration, reduces the difficulty of calibration, adapts to different camera lens field of view ranges, and meets the needs of high-precision environmental perception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570311A
    Figure CN118570311A
Patent Text Reader

Abstract

The invention provides a binocular event camera calibration method and device based on a flicker calibration board, and belongs to the technical field of computer vision-camera calibration. A binocular event camera calibration system is built, a virtual calibration board picture is generated, and the virtual calibration board picture and a black background picture are made into a flicker video and played in equal proportion; collecting calibration board event data under different calibration postures by using a binocular event camera; reconstructing calibration board event data into a grey-scale map, performing feature extraction to obtain feature point coordinate information, and obtaining internal and external parameters and distortion coefficient initial values of the binocular event camera by using a traditional calibration algorithm; and constructing a global optimization function and a cost function, carrying out iterative solution, enabling the result of the cost function to be smaller than a set threshold value, and obtaining a final camera parameter. The device comprises a modeling module, a preprocessing module, an initial calibration module and a parameter optimization module. According to the method, high-precision calibration of the binocular event camera in the static state is realized, the calibration precision is effectively improved, and a foundation is laid for better serving industrial measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision-camera calibration, and in particular relates to a binocular event camera calibration method and device based on a scintillation calibration plate. Background Art

[0002] The event camera is a new type of dynamic visual sensor. Unlike standard cameras, it does not collect the instantaneous light intensity information of the scene, but only responds dynamically to the part where the light intensity changes. It uses a new address event protocol (AER) encoding protocol to encode events as (x, y, z, p). It has the characteristics of high dynamic range, high temporal resolution and low data redundancy, so it is considered to have the potential to replace standard cameras in certain special environments to better complete related tasks.

[0003] The mathematical model of event cameras can be simplified to pinhole imaging like traditional cameras. When using binocular event cameras for related depth perception tasks, it is crucial to establish the conversion relationship between pixel points in the image and corresponding spatial points. This conversion relationship is the internal and external parameter matrix of the binocular camera, which needs to be obtained in advance through camera calibration. Some event cameras such as DAVIS and ATIS can generate instantaneous grayscale information of the scene, which can be calibrated using the calibration algorithm of traditional frame cameras. However, since the simultaneous acquisition of the instantaneous grayscale frame and asynchronous event stream of the scene will bring many hardware limitations, the integration of the active pixel sensor (APS) circuit and the AER circuit on the same pixel at the same time will result in a large pixel size and difficulty in improving the resolution, which limits the application of event cameras to a certain extent. In order to fully release the characteristics of event cameras, the new event cameras currently produced no longer provide instantaneous grayscale output, which also makes it impossible to directly use grayscale output for calibration. Therefore, in the application scenarios of obtaining depth information such as environmental perception and three-dimensional reconstruction, how to achieve high-precision calibration has become a new challenge.

[0004] The object distance is tens, hundreds, or even thousands of times the focal length. A small error in the system parameters may be magnified several times. The calibration result directly affects the precision and accuracy of three-dimensional perception. At present, the calibration methods of event cameras can be divided into direct event-based calibration and calibration based on reconstructed frames. The first method uses a calibration plate to move in front of the camera, directly extracts event features of feature edge excitations during the movement, and calibrates and optimizes it in combination with the calibration plate event frames intercepted at different positions of the trajectory. The second method also moves the calibration plate in front of the camera, reconstructs the grayscale frame using the intensity reconstruction algorithm, and then calibrates it in combination with the traditional calibration algorithm. However, no matter which calibration method is used, it is necessary to rely on the movement of the calibration plate to trigger the event, which introduces movement errors to a certain extent. Especially in the binocular calibration process, the same set of calibration pictures theoretically requires the two cameras to maintain strict time synchronization, and the reconstruction frame requires event accumulation over a period of time. Due to hardware limitations, its timestamps are difficult to fully align and there are different zero drift effects, resulting in the actual interception of the same group of calibration plates under the binocular perspective. The reconstructed frames are not strictly consistent in time and space, introducing additional errors, resulting in the calibration of the binocular event camera always unable to achieve the same calibration accuracy as the same frame camera. Other scholars have proposed other calibration methods, such as the invention patent CN202110031239.5, which discloses a calibration method, device, computer equipment and storage medium for the internal parameters of an event camera, but its main purpose is to achieve operational convenience. As a preliminary preparation for three-dimensional perception, one calibration can complete many experiments in this state, so the actual calibration efficiency does not affect the reconstruction efficiency. Therefore, in the calibration process, more emphasis should be placed on accuracy rather than operational simplicity. The limited calibration accuracy of the current calibration method has largely limited the industrial application of event cameras. Summary of the invention

[0005] In view of the above defects and improvement needs of the prior art, the present invention provides a binocular event camera calibration method and device based on a flickering calibration plate. The method realizes high-precision calibration of the binocular event camera in a static state by stimulating events through a flickering virtual calibration plate, effectively improving the calibration accuracy of the binocular event camera system and laying a foundation for it to better serve industrial measurement.

[0006] A binocular event camera calibration method based on a scintillation calibration plate, the binocular event camera calibration method comprising:

[0007] Step 1: Build a binocular event camera calibration system, including a display and a binocular event camera; establish a relationship between virtual size and physical size according to the display resolution and the calibration plate size, and generate a virtual calibration plate image of a specific physical size, wherein the virtual calibration plate image has a number of circular feature points;

[0008] Step 2: Use the virtual calibration plate image and the black background image generated in step 1 to create a video with a flickering frequency of 100 Hz, and use a player to play it proportionally on the display;

[0009] Step 3: Place the display in the common field of view of the binocular event camera, fix the binocular event camera posture, and in a scene where the binocular camera and the display remain relatively still, trigger the calibration plate image to generate event information by playing the video in step 2, and use the binocular event camera to collect a set of calibration plate event data under the calibration posture, rotate the display or change the display pitch angle to the next calibration posture, collect the next set of calibration plate event data, and collect 10-20 sets of calibration plate event data in total;

[0010] Step 4: Use the accumulator to reconstruct the calibration plate event data. Each set of calibration plate event data is reconstructed into a grayscale image, and a total of 10-20 grayscale images are obtained;

[0011] Step 5: Perform feature extraction on the reconstructed series of grayscale images to obtain 10-20 sets of calibration plate feature point coordinate information, and use the traditional calibration algorithm to obtain the internal and external parameters and initial values ​​of the distortion coefficient of the binocular event camera; among them, each grayscale image obtains a set of calibration plate feature point coordinate information.

[0012] Step 6: Construct a global optimization function and a cost function, substitute the internal and external parameters of the binocular event camera and the initial values ​​of the distortion coefficients under different calibration postures, iteratively solve the global optimization function, make the cost function result less than the set threshold, and obtain the final camera parameters.

[0013] Furthermore, the binocular event camera calibration system in step 1 includes a display and a binocular event camera, wherein the binocular event camera consists of two left and right event cameras, two camera platforms, two brackets that can slide and rotate, and a sliding guide rail; the two event cameras are symmetrically arranged on both sides of the display, and the two are fixedly connected to the two camera platforms respectively, and three groups of parallel through holes are provided on the platform to realize the position adjustment of the camera on the platform, and the two camera platforms are fixedly connected to the two brackets respectively, and the brackets are connected to the sliding guide rails using special-shaped sliders and bolts matching the sliding guide rails, which are used to adjust the positions of the two event cameras; the event camera is the main body of the binocular event camera calibration system, the bracket connects the event camera to the sliding guide rail, and realizes the rotation of the event camera on the xy plane, and the sliding guide rail realizes the translation of the event camera in the baseline, that is, the x-coordinate axis direction, thereby changing the binocular distance; in the binocular event camera calibration system, the x-coordinate axis direction of the world coordinate system is the direction of the optical center connection line of the left and right event cameras, that is, the baseline direction, the y-coordinate axis direction is the direction perpendicular to the baseline and pointing to the display plane, and the z-coordinate axis direction is the upward direction perpendicular to the system platform.

[0014] Furthermore, in step 3, the two event cameras are of DVXplorer model, no two of the 10-20 groups of positioning postures can be coplanar, and the display cannot have large-scale reflections.

[0015] Furthermore, the step 4 is specifically as follows: for each group of calibration plate event data, each window is divided into windows containing multiple events, and each window is converted into a 3D event tensor; each time a 3D event tensor is generated, it is combined with the group of 3D event tensors that have been previously divided and converted through an accumulator to generate a new image reconstruction and a new tensor, and the accumulators are used to form a set; after a certain period of accumulation, the final grayscale image is reconstructed from the set of all tensors and image reconstructions in the group.

[0016] In order to improve the detail information of the reconstructed image in a relatively static scene, the time of the accumulator accumulating events should not be less than the inverse of the flicker frequency of the video produced in step 2 (for example, if the flicker frequency is 100 Hz, the time of the accumulated events should not be less than 1 / 100 s, i.e. 10 ms).

[0017] Furthermore, the step 5 is specifically as follows: feature point detection and sorting are performed on the reconstructed grayscale image, and initial calibration is performed using a traditional calibration algorithm to obtain the initial values ​​of the camera's internal and external parameters and distortion coefficients, including the camera's internal parameter matrix, translation vector, rotation matrix, and distortion coefficient:

[0018] Step 5.1, denoising the reconstructed grayscale image using a Gaussian smoothing template and a median filter method to obtain a grayscale image without noise;

[0019] Step 5.2, use the edge detection (Canny) algorithm on the denoised grayscale image to find the brightness gradient of the grayscale image, perform non-maximum suppression based on the gradient, and obtain a binary image;

[0020] Step 5.3, for the binarized image, according to the 8-neighborhood connectivity criterion, use multiple segments of polylines to replace arcs, connect the polylines, and obtain an image with a continuous boundary;

[0021] Step 5.4, for the image with continuous boundaries, use the least square method to fit the ellipse features to obtain the ellipse center position, major and minor axis radius, rotation angle and other parameter information;

[0022] Step 5.5, according to the center position and parameter information of the ellipse, the ellipticity is calculated, and the feature points that meet the requirements (ellipticity is less than 0.075) are selected for conic curve reconstruction, and the coordinate information is extracted from the reconstructed feature points to obtain the coordinate value of the center of the feature point;

[0023] Step 5.6, starting from the upper left corner feature point, traverse in columns to the lower right corner feature point, sort the coordinates of the center of the feature points, and obtain the feature point sorting result;

[0024] Step 5.7, using the traditional calibration algorithm and the sorting results of the calibration plate feature point center coordinate information, according to the pinhole imaging model, establish four coordinate systems for object imaging (world coordinate system, camera coordinate system, image coordinate system, pixel coordinate system), solve the image coordinates and three-dimensional coordinates of the calibration plate feature points, and obtain the camera intrinsic parameter matrix, rotation matrix, translation vector and distortion coefficient.

[0025] Furthermore, the step 6 is specifically as follows:

[0026] Step 6.1, using the camera internal and external parameters and the initial value of the distortion coefficient and the feature point coordinate information obtained in step 5, project a set of virtual ellipses on the image plane;

[0027] Step 6.2, use the virtual ellipse to replace the original feature points, calibrate again, and obtain the new camera internal and external parameters and distortion coefficients;

[0028] Step 6.3, using the new camera internal and external parameters and distortion coefficients and the ellipse parameters and coordinates obtained from the last projection, project a new set of virtual ellipses on the image plane, establish a global optimization function and cost function, and calculate the distance between the set of virtual ellipses and the center point of the actual ellipse;

[0029] Wherein, the global optimization function and cost function are respectively:

[0030]

[0031] Where ξ represents the distance between the center of the virtual ellipse and the center of the actual projected ellipse, where the center of the actual projected ellipse is calculated from the physical size of the calibration plate; l and r Indicates the initial values ​​of left and right camera parameters; are the three-dimensional coordinates of the first to nth feature points; and They are the left and right camera parameter values ​​obtained in this iteration respectively; The three-dimensional coordinates of the first to nth feature points obtained for this reprojection; are the virtual ellipse coordinates calculated using the left and right camera parameters obtained in this iteration; l , r is a function that projects a 3D point onto a 2D plane using left and right camera parameters; are the virtual ellipse coordinates calculated using the initial values ​​of the left and right camera parameters (first iteration) or the left and right camera parameters obtained in the previous iteration (second and subsequent iterations); Λl and Λ r are the essential matrices of the left and right camera parameters respectively; d l and d r are the distortion coefficients of the left and right cameras respectively; and is the transformation matrix of the left and right camera coordinate systems in the external parameters of the mth iteration, Γ S is the matrix that transforms the world coordinate system to the left camera coordinate system in the external parameters of the mth iteration; are the three-dimensional coordinates of the nth feature point respectively; M and N are M images in different postures and N feature points on each image respectively;

[0032] Step 6.4, iterate steps 6.2 and 6.3, and obtain a new set of virtual ellipse and camera parameters, as well as the ellipse center distance in each iteration. Repeat the above iterative process until the cost function result is less than the set threshold, and obtain the final camera parameters.

[0033] A binocular event camera calibration device based on a scintillation calibration plate is used to implement the above binocular event camera calibration method, and the binocular event camera calibration device comprises:

[0034] The modeling module is used to build a binocular event camera calibration system and generate virtual calibration plate images with specific physical dimensions, and make videos with black background images.

[0035] The preprocessing module is used to play the video, stimulate the generation of binocular event information, adjust the calibration posture and collect the calibration plate event data; reconstruct the calibration plate event data into a grayscale image through the accumulator;

[0036] The initial calibration module is used to extract features from the reconstructed grayscale image and use the traditional calibration algorithm to obtain the internal parameters of the left and right event cameras, the external parameters between the two cameras, and the initial values ​​of the distortion coefficients;

[0037] The parameter optimization module is used to construct the global optimization function and the cost function, substitute the internal and external parameters of the camera and the initial values ​​of the distortion coefficient under different postures, iteratively solve the global optimization function, make the cost function value less than the set threshold, obtain the final camera parameters, and improve the calibration accuracy.

[0038] The innovative features of the present invention are as follows:

[0039] First, the present invention creates a virtual calibration plate image and plays it in video form. Existing camera calibration, whether it is an ordinary camera or an event camera, uses a physical calibration plate for calibration. The physical calibration plate may have shortcomings such as poor surface quality, inaccurate feature point positions, and blurred feature point edge information. At the same time, the transportation and storage of the physical calibration plate is also a problem. The virtual calibration plate is played on the display, and the surface quality is only related to the display screen. The position of the feature point is more accurate, the edge features are clearer, and there is no need to consider transportation and storage issues.

[0040] Secondly, the present invention does not need to move the camera or calibration plate to generate event data. Most of the existing event camera calibration methods need to move the camera or calibration plate to generate event information. In the process of camera or calibration plate movement, it is inevitable to cause image distortion or feature point position is not fixed. These distortions and feature point offsets will affect the final calibration results. The movement of the present invention is only to move the display to different postures, and flashing at a fixed posture generates event information. Therefore, the reconstructed image at each posture has a certain image feature and position information, avoiding movement errors.

[0041] At the same time, compared with other event camera calibration methods, the present invention has higher calibration accuracy. Existing event camera calibration methods usually use the center of the feature point in the detected distorted two-dimensional image as the true value. After perspective projection and lens distortion, the circular feature point will be distorted into an ellipse on the image plane, causing the true center to deviate from the center of the feature point, thereby affecting the calibration result. The present invention proposes an optimization method, which uses the initial parameters after calibration to first project the feature points of the calibration plate onto the image plane of the camera. At this time, an undistorted feature point image is obtained, and then the undistorted feature points are used for calibration, and the camera parameters are recalculated. The process is repeated until the optimization function converges, and an error lower than that of the existing calibration method can be obtained.

[0042] Beneficial effects of the present invention:

[0043] The present invention does not rely on motion triggering events. Compared with the calibration of a moving calibration plate or camera, more events can be accumulated to increase the feature point information of the calibration plate without introducing additional movement errors. The binocular event camera system uses an accumulator to reconstruct the calibration image in real time with strict spatiotemporal consistency. It can be calibrated using a mature traditional camera calibration algorithm without designing a new algorithm for processing and extracting features. It can greatly reduce the difficulty of binocular event camera calibration and enable it to meet the needs of high-precision environmental perception. At the same time, the calibration can be completed using only a common electronic display screen as a calibration object. The calibration plate image can be scaled according to the field of view of different camera lenses, and the size of the virtual calibration plate can be flexibly adjusted, which has good adaptability. For the optimization of camera parameters, the present invention does not use the extracted feature points as fixed true values, but updates the camera parameters through continuous iteration, so that it is not affected by the final initial value, thereby improving the accuracy of calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart of a binocular event camera calibration method based on a scintillation calibration board in an embodiment of the present invention;

[0045] Figure 2 This is a schematic diagram of binocular event camera calibration in an embodiment of the present invention;

[0046] Figure 3 This is a schematic diagram of a specific process of sorting the circle centers in an embodiment of the present invention;

[0047] Figure 4 is a picture of a virtual calibration plate used in an embodiment of the present invention;

[0048] Figure 5 Schematic diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The present invention is described in detail below with reference to the embodiments, but the embodiments of the present invention are not limited thereto. Obviously, the embodiments described below are only partial embodiments of the present invention. For those skilled in the art, other similar embodiments obtained without creative labor all fall within the protection scope of the present invention.

[0050] Example 1

[0051] This embodiment provides a binocular event camera calibration method based on a scintillation calibration plate. Figure 1 The specific implementation process is as follows:

[0052] The first step is to build a binocular event camera calibration system, including a display and a binocular event camera; wherein the binocular event camera consists of two left and right event cameras, two camera platforms, two brackets that can slide and rotate, and a sliding guide rail; the two event cameras are symmetrically arranged on both sides of the display, and the two are fixedly connected to the two camera platforms respectively. The platforms are provided with three sets of parallel through holes to realize the position adjustment of the camera on the platforms, and the two camera platforms are fixedly connected to the two brackets respectively. The brackets are connected to the sliding guide rails using special-shaped sliders and bolts that match the sliding guide rails, which are used to adjust the positions of the two event cameras; the event camera is the main body of the binocular event camera calibration system, the bracket connects the event camera to the sliding guide rail, and realizes the rotation of the event camera on the xy plane at the same time, and the sliding guide rail realizes the translation of the event camera in the baseline, that is, the x-axis direction, thereby changing the binocular distance; in the binocular camera system, the x-axis direction of the world coordinate system is the direction of the optical center connection line of the left and right event cameras, that is, the baseline direction, the y-axis direction is the direction perpendicular to the baseline and pointing to the display plane, and the z-axis direction is the direction perpendicular to the system platform and upward.

[0053] A virtual calibration plate image with 11 rows and 9 columns, a total of 99 circular feature points, is generated on the display. The display resolution is 2550×1440, and the calibration plate image is a circular array with a center spacing of 15 mm. Figure 4 shown.

[0054] In the second step, the virtual calibration plate image and the black background image in the first step are made into a video that flashes alternately at a frequency of 100 Hz and played on the monitor.

[0055] The third step is to adjust the distance between the display and the binocular event camera and the posture of the left and right cameras so that the display is in the common field of view of the binocular event camera, fix the camera posture, generate event information by playing the video produced in the second step, and use the binocular event camera to collect the calibration plate event data under the calibration posture. The event camera model is DVXplorer, with a resolution of 640×480 pixels. The process of placing the display in the relatively static common field of view of the binocular event camera includes:

[0056] Adjust the slider to make the system baseline, i.e. the distance between the optical centers of the left and right event cameras, 400mm. At this time, the distance between the left and right event camera lenses in the x direction is 400mm.

[0057] Adjust the camera platform and rotate the camera so that the angle between the left and right camera optical axes is 50° (to ensure the simplicity of calculation, in this embodiment, the left and right event camera baselines are adjusted to be equal to the angle between the corresponding camera optical axes, that is, ),in represents the angle between the left camera optical axis and the baseline, Represents the angle between the right camera optical axis and the baseline;

[0058] Adjust the left and right event camera lenses so that their focal lengths are both 25mm;

[0059] Adjust the distance between the binocular event camera and the display to about 900 mm so that the calibration plate occupies 1 / 4 to 1 / 2 of the field of view in the image. Fine-tune at this distance until all feature points can be fully and clearly displayed in the image.

[0060] In this embodiment, the binocular event camera calibration system is as follows: Figure 2 As shown, a binocular event camera with a fixed posture is used. That is, under the same baseline length, optical axis angle, lens focal length and distance between the lens and the display, the display angle is adjusted to different calibration postures. At each calibration posture, the binocular event camera is used to continuously shoot the flashing calibration plate pictures to obtain the calibration plate event data. A set of calibration plate event data is collected at each calibration posture. 12 sets of calibration plate event data are collected continuously to preliminarily judge whether the event data meets the feature detection and sorting requirements:

[0061] If the event stream information is less or more scattered, or the calibration plate image is tilted too much, then the data set is discarded and a new set of data that meets the requirements is collected;

[0062] If the event stream information meets the detection and sorting requirements, and the calibration board posture is normal, then the group of data is retained.

[0063] In the fourth step, the calibration plate event data collected in the previous step is transferred to the accumulator, and the calibration plate event data is reconstructed using the accumulator. Each set of calibration plate event data is reconstructed into a grayscale image, and a total of 12 grayscale images are obtained. The reconstruction process includes:

[0064] (1) Split each set of calibration plate event data into windows containing multiple events, and convert the windows into a 3D event tensor;

[0065] (2) Every time a 3D event tensor is generated, a new image reconstruction and a new tensor are generated by adding the 3D event tensors of the group that have been previously segmented and transformed through an accumulator, and the accumulators are used to form a set;

[0066] (3) After a certain period of accumulation, the final grayscale image is reconstructed from the set of all tensors and image reconstructions in the group. In this embodiment, the flicker frequency is 100 Hz, and the time of the accumulated event should not be less than 1 / 100 s, that is, 10 ms.

[0067] The fifth step is to detect and sort the feature points of the reconstructed grayscale image, and use the traditional calibration algorithm to perform initial calibration to obtain the camera intrinsic parameter matrix, translation vector, rotation matrix and initial value of distortion coefficient. The process of extracting the feature points of the calibration plate from the grayscale image includes:

[0068] (1) The reconstructed grayscale image is denoised using a Gaussian smoothing template and a median filter to obtain a noise-free grayscale image;

[0069] (2) Use the Canny algorithm on the denoised grayscale image to find the brightness gradient of the grayscale image, perform non-maximum suppression based on the gradient, set the threshold grayscale value to 40, set all values ​​above this value to 255, and set all values ​​below this value to 0, and obtain a binary image containing only black and white pixels;

[0070] (3) For the binary image, according to the 8-neighborhood connectivity criterion, the boundary pixels of the binary image feature points are connected, and multiple polylines are used instead of arcs to extract line segments and unify the rotation direction to obtain an image with a continuous boundary;

[0071] (4) For images with continuous boundaries, the least squares method is used to fit the ellipse features to obtain parameter information such as the ellipse center position, major and minor axis radii, and rotation angle;

[0072] (5) Calculate the ellipticity based on the center position and parameter information of the ellipse, and reconstruct the conic curve for the feature points with an ellipticity less than 0.075 (the smaller the ellipticity, the closer it is to a circle), and obtain a calibration plate image with feature point parameter information;

[0073] (6) First, use the coordinates of the upper left, lower left, upper right, and lower right points of the calibration plate image and the number of rows and columns of the calibration plate to calculate that the spacing between the circle centers is 15 mm. Then, by comparing the short axis length of the middle feature point, the positions of the five larger circles are found and the center coordinates of the large circles are determined. Figure 3 The following is the specific process of sorting the large circles: ① define the point with the smallest distance to the edge of the calibration plate as circle 1; ② calculate the distance between each large circle, find the two closest large circles, solve the equation of the line connecting the coordinates of the centers of the two circles, and define the point with the largest distance as the center of circle 2 according to the distance from the point to the line; ③ define the two circles on the line in the second step as circle 4 and circle 5, and define the circle with the smaller distance to circle 1 as circle 4; ④ after determining circles 1, 2, 4, and 5, the remaining circle is circle 3. Due to the affine transformation (linear transformation + translation) of the calibration plate, the positions of circle 1 and circle 3 may be opposite. The distances of the two intersections formed by the lines connecting circle 4 and circle 2, circle 5 and circle 2, and circle 1 and circle 3 relative to the center point of the calibration plate image can be compared to determine whether the positions of circle 1 and circle 3 need to be exchanged. After the large circles are sorted, several groups of straight lines (9 horizontal straight lines and 11 vertical straight lines) parallel or perpendicular to the lines connecting circles 1 and 3 and circles 2 and 4 can be calculated based on the average spacing between the rows and columns of the calibration plate. The small circles on the calibration plate can be sorted based on the intersection of the two straight lines. So far, the detection and sorting process of the circle center has been completed.

[0074] (7) Use the traditional calibration method to solve the image coordinates and three-dimensional coordinates of the feature points of the calibration plate to obtain the camera intrinsic parameter matrix, rotation matrix, translation vector and distortion coefficient. Specifically:

[0075] The camera pinhole imaging model used in the traditional calibration algorithm can express the mapping relationship between two-dimensional image points and three-dimensional points as follows:

[0076] sm=K[R|t]M

[0077] Among them, m is the two-dimensional image point coordinate, M is the three-dimensional point space coordinate, s is the scale factor, is the camera intrinsic parameter matrix, a x and a y are the normalized focal lengths in the horizontal and vertical directions, γ is the tilt angle of the image along the two axes, (u0, v0) is the image pixel coordinates of the principal point, R and t are the rotation matrix and translation vector between the camera coordinate system and the world coordinate system, respectively. Calibration is the process of solving K, R and t.

[0078] First, the camera intrinsic parameters are solved by the traditional calibration method, and the plane calibration plate is used as the calibration reference. The above formula can be expressed as

[0079]

[0080] Among them, r1, r2, and r3 are the first three columns of the rotation matrix, X is the x-coordinate of the feature point in the world coordinate system, Y is the y-coordinate of the feature point in the world coordinate system, and H is the homography matrix between the image coordinate system plane and the world coordinate system plane, which contains the internal and external parameters of the camera and can be solved through the relationship between more than four corresponding points. From the above formula, we can see that

[0081] [h1h2h3]=λK[r1r2 t]

[0082] Among them, h1, h2, h3 are column vectors of the homography matrix, λ is the scale factor, and the rotation matrix R is an orthogonal matrix, which is:

[0083]

[0084] In which, let B = K -T K -1 , in order to solve the matrix B, we must calculate but:

[0085]

[0086] remember

[0087] v ij =[H 1i H 1j H 1i H2j +H 2i H 1j H 2i H 2j H 1i H 3j +H 3i H 1j H 2i H 3j +H 3i H 2j H 3i H 3j ] T

[0088] b=[B 11 B 12 B 22 B 13 B 23 B 33 ] T

[0089] but Can be transformed into:

[0090] H i T BH j =v ij T b

[0091] Where b is a matrix consisting of column vectors of the B matrix, B 11 , B 12 , B 22 , B 13 , B 23 , B 33 are the column vectors of the B matrix, H i are the column vectors of the homography matrix, v ij is the polynomial composed of the column vectors of the H matrix;

[0092] Rewrite the orthogonal relationship of the rotation matrix as:

[0093]

[0094] During the camera calibration process, images under n calibration plate positions are obtained, and the equations under each position are combined to obtain:

[0095]

[0096] By solving the above formula, the internal and external parameters of a single camera can be calculated.

[0097] For the binocular event camera, it is also necessary to find the rotation matrix and translation matrix of the left and right cameras relative to the same coordinate system, which can be calculated by the following formula:

[0098] R=R r (R l )T

[0099] T=T r -RT l

[0100] Among them, R is the rotation matrix between the two cameras, T is the translation matrix between the two cameras, and R r is the rotation matrix of the right camera relative to the calibration plate obtained by the traditional calibration algorithm, T r is the translation vector of the right camera relative to the calibration plate obtained by the traditional calibration algorithm; R l is the rotation matrix of the left camera relative to the calibration plate obtained by the traditional calibration algorithm, T l is the translation vector of the left camera relative to the calibration plate obtained by the traditional calibration algorithm.

[0101] The sixth step is to collect the optimized camera parameter values ​​of multiple grayscale images, construct and solve the global optimization function and cost function so that the cost function result is less than the set threshold, and obtain the optimized camera parameters. Specifically:

[0102] S1 uses the camera's internal and external parameters and the initial values ​​of the distortion coefficients and the fitted ellipse parameters and coordinates to project a set of virtual ellipses on the image plane;

[0103] S2 uses a virtual ellipse to replace the ellipse obtained by the original feature extraction, and calibrates again to obtain new camera internal and external parameters and distortion coefficients;

[0104] S3 uses the new camera internal and external parameters and distortion coefficients and the ellipse parameters and coordinates obtained from the previous projection to project a new set of virtual ellipses on the image plane, establish a global optimization function and cost function, and calculate the distance between the set of virtual ellipses and the center point of the actual ellipse;

[0105] S4 iterates S2 and S3, and each iteration obtains a new set of virtual ellipse and camera parameters, as well as the ellipse center distance. The above iterative process is repeated until the error value is less than the set threshold (0.1 pixel).

[0106] Wherein, the global optimization function is:

[0107]

[0108] The cost function is:

[0109]

[0110] When calculating the virtual ellipse projection error, Replace with virtual ellipse coordinates That's it.

[0111] Example 2

[0112] This embodiment provides a binocular event camera calibration device based on a stroboscopic calibration board, comprising:

[0113] The modeling module is used to build a binocular event camera calibration system and generate a virtual calibration plate image with a specific physical size, and make a video with a black background image.

[0114] The preprocessing module is used to play the video, stimulate the generation of binocular event information, adjust the calibration posture and collect the calibration plate event data; reconstruct the calibration plate event data into a grayscale image through the accumulator;

[0115] The initial calibration module is used to extract features from the reconstructed grayscale image and use the traditional calibration algorithm to obtain the internal parameters of the left and right event cameras, the external parameters between the two cameras, and the initial value of the distortion coefficient;

[0116] The parameter optimization module is used to construct the global optimization function and the cost function, substitute the internal and external parameters of the camera and the initial values ​​of the distortion coefficient under different postures, iteratively solve the global optimization function, make the cost function value less than the set threshold, obtain the final camera parameters, and improve the calibration accuracy.

[0117] It should be noted that the above modules correspond to the steps described in Example 1, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the system, can be executed in a computer system such as a set of computer executable instructions.

[0118] In further embodiments, there is also provided:

[0119] An electronic device, such as Figure 5 As shown, it includes a memory and a processor and computer instructions stored in the memory and on the processor. When the computer instructions are executed by the processor, the method described in embodiment 1 is completed. For the sake of brevity, it will not be described in detail here.

[0120] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0121] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0122] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the method described in Example 1 is completed.

[0123] The method in Example 1 can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.

[0124] The present invention provides a binocular event camera calibration method based on a flashing calibration plate, which realizes relative static calibration between the binocular event camera and the calibration plate, avoids the temporal and spatial errors introduced by event frame capture due to the movement of the calibration plate and binocular timestamp alignment, greatly improves the accuracy and stability of the calibration, and lays a solid foundation for high-precision three-dimensional perception and reconstruction based on binocular event cameras. The method is not limited to high-precision calibration between binocular event cameras, but can also be applied to hybrid calibration between event cameras and frame cameras.

[0125] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A binocular event camera calibration method based on a scintillation calibration plate, characterized in that: The binocular event camera calibration method comprises: Step 1: Build a binocular event camera calibration system, including a display and a binocular event camera; establish a relationship between virtual size and physical size according to the display resolution and the calibration plate size, and generate a virtual calibration plate image of a specific physical size, wherein the virtual calibration plate image has a number of circular feature points; Step 2: Use the virtual calibration plate image and the black background image generated in step 1 to create a video with a certain flickering frequency, and play it proportionally on the display; Step 3: Place the display in the common field of view of the binocular event camera, fix the binocular event camera posture, and in a scene where the binocular camera and the display remain relatively still, trigger the calibration plate image to generate event information by playing the video in step 2, and use the binocular event camera to collect a set of calibration plate event data under the calibration posture, rotate the display or change the display pitch angle to the next calibration posture, collect the next set of calibration plate event data, and collect 10-20 sets of calibration plate event data in total; Step 4: Use the accumulator to reconstruct the calibration plate event data, and each set of calibration plate event data is reconstructed into a grayscale image; Step 5: Extract features from the reconstructed series of grayscale images to obtain the coordinate information of the feature points of the calibration plate, and use the traditional calibration algorithm to obtain the internal and external parameters of the binocular event camera and the initial value of the distortion coefficient; wherein each grayscale image obtains a set of coordinate information of the feature points of the calibration plate; Step 6: Construct a global optimization function and a cost function, substitute the internal and external parameters of the binocular event camera and the initial values ​​of the distortion coefficients under different calibration postures, iteratively solve the global optimization function, make the cost function result less than the set threshold, and obtain the final camera parameters.

2. The binocular event camera calibration method based on a scintillation calibration plate according to claim 1, characterized in that: The binocular event camera calibration system in step 1 includes a display and a binocular event camera, wherein the binocular event camera consists of a left event camera and a right event camera; the two event cameras are symmetrically arranged on both sides of the display, and can adjust the binocular distance and rotate on the xy plane; in the binocular event camera calibration system, the x-axis direction of the world coordinate system is the direction of the line connecting the optical centers of the left and right event cameras, that is, the baseline direction, the y-axis direction is perpendicular to the baseline and points to the display plane, and the z-axis direction is perpendicular to the system platform and upward.

3. The binocular event camera calibration method based on a scintillation calibration plate according to claim 1, characterized in that: The step 4 is specifically as follows: for each group of calibration plate event data, each window is divided into windows containing multiple events, and each window is converted into a 3D event tensor; each time a 3D event tensor is generated, it is combined with the group of 3D event tensors that have been previously divided and converted through an accumulator to generate a new image reconstruction and a new tensor, and the accumulators are used to form a set; after a certain period of accumulation, the final grayscale image is reconstructed from the set of all tensors and image reconstructions in the group.

4. The binocular event camera calibration method based on a scintillation calibration plate according to claim 3, characterized in that: The time of the accumulated events in the accumulator should be no less than the inverse of the video flicker frequency produced in step 2.

5. The binocular event camera calibration method based on a scintillation calibration plate according to claim 1, characterized in that: The step 5 is specifically as follows: feature point detection and sorting are performed on the reconstructed grayscale image, and initial calibration is performed using a traditional calibration algorithm to obtain the initial values ​​of the camera's internal and external parameters and distortion coefficients: Step 5.1, denoising the reconstructed grayscale image using a Gaussian smoothing template and a median filter method to obtain a grayscale image without noise; Step 5.2, use the edge detection algorithm on the denoised grayscale image to find the brightness gradient of the grayscale image, perform non-maximum suppression based on the gradient, and obtain a binary image; Step 5.3, for the binarized image, according to the 8-neighborhood connectivity criterion, use multiple segments of polylines to replace arcs, connect the polylines, and obtain an image with a continuous boundary; Step 5.4, for the image with continuous boundaries, use the least square method to fit the ellipse features and obtain the ellipse center position and parameter information; Step 5.5, according to the center position and parameter information of the ellipse, the ellipticity is calculated, the feature points that meet the requirements are selected for conic curve reconstruction, and the coordinate information is extracted from the reconstructed feature points to obtain the coordinate values ​​of the center of the feature points; Step 5.6, starting from the upper left corner feature point, traverse in columns to the lower right corner feature point, sort the coordinates of the center of the feature points, and obtain the feature point sorting result; Step 5.7, using the traditional calibration algorithm and the pinhole imaging model to obtain the center coordinate information and sorting results of the calibration plate feature points, the image coordinates and three-dimensional coordinates of the calibration plate feature points are solved to obtain the camera intrinsic parameter matrix, rotation matrix, translation vector and distortion coefficient.

6. The binocular event camera calibration method based on a scintillation calibration plate according to claim 1, characterized in that: The step 6 is specifically as follows: Step 6.1, using the camera internal and external parameters and the initial value of the distortion coefficient and the feature point coordinate information obtained in step 5, project a set of virtual ellipses on the image plane; Step 6.2, use the virtual ellipse to replace the original feature points, calibrate again, and obtain the new camera internal and external parameters and distortion coefficients; Step 6.3, using the new camera internal and external parameters and distortion coefficients and the ellipse parameters and coordinates obtained from the last projection, project a new set of virtual ellipses on the image plane, establish a global optimization function and cost function, and calculate the distance between the set of virtual ellipses and the center point of the actual ellipse; Wherein, the global optimization function and cost function are respectively: Where ξ represents the distance between the center of the virtual ellipse and the center of the actual projected ellipse, and the center of the actual projected ellipse is calculated from the physical size of the calibration plate; l and r Indicates the initial values ​​of left and right camera parameters; are the three-dimensional coordinates of the first to nth feature points; and They are the left and right camera parameter values ​​obtained in this iteration respectively; The three-dimensional coordinates of the first to nth feature points obtained for this reprojection; are the virtual ellipse coordinates calculated using the left and right camera parameters obtained in this iteration; l , r is a function that projects a 3D point onto a 2D plane using left and right camera parameters; are the virtual ellipse coordinates calculated using the initial values ​​of the left and right camera parameters (first iteration) or the left and right camera parameters obtained in the previous iteration (second and subsequent iterations); Λ l and Λ r are the essential matrices of the left and right camera parameters respectively; d l and d r are the distortion coefficients of the left and right cameras respectively; and is the transformation matrix of the left and right camera coordinate systems in the external parameters of the mth iteration, Γ S is the matrix that transforms the world coordinate system to the left camera coordinate system in the external parameters of the mth iteration; are the three-dimensional coordinates of the nth feature point respectively; M and N are M images in different postures and N feature points on each image respectively; Step 6.4, iterate steps 6.2 and 6.3, and obtain a new set of virtual ellipse and camera parameters, as well as the ellipse center distance in each iteration. Repeat the above iterative process until the cost function result is less than the set threshold, and obtain the final camera parameters.

7. A binocular event camera calibration device based on a scintillation calibration plate, used to implement the binocular event camera calibration method according to any one of claims 1 to 6, characterized in that: The binocular event camera calibration device comprises: The modeling module is used to build a binocular event camera calibration system and generate a virtual calibration plate image with a specific physical size, and make a video with a black background image; The preprocessing module is used to play the video, stimulate the generation of binocular event information, adjust the calibration posture and collect the calibration plate event data; reconstruct the calibration plate event data into a grayscale image through the accumulator; The initial calibration module is used to extract features from the reconstructed grayscale image and use the traditional calibration algorithm to obtain the internal parameters of the left and right event cameras, the external parameters between the two cameras, and the initial values ​​of the distortion coefficients; The parameter optimization module is used to construct the global optimization function and the cost function, substitute the internal and external parameters of the camera and the initial values ​​of the distortion coefficient under different postures, iteratively solve the global optimization function, make the cost function value less than the set threshold, and obtain the final camera parameters.

Citation Information

Patent Citations

  • Parallel binocular camera calibration method based on three-dimensional reconstruction

    CN111080714A

  • Feed Wrapping Machine

    KR102795455B1

  • Method and system for calibrating binocular camera, and electronic device and storage medium

    WO2023045147A1

  • Extrinsic parameter calibration method and device for monocular laser speckle projection system

    WO2023201578A1

Cited By

  • Novel camera calibration board

    CN119766985A