Event camera-based high-frequency visual inertial odometer method

By introducing IMU sensor and event block technology on the event camera, combined with asynchronous data processing and pre-integration optimization, the problem of low output frequency of pose information of the visual odometry system in high-speed motion and high-dynamic environments is solved, achieving high frequency and high Accurate pose estimation.

CN118583158APending Publication Date: 2024-09-03FUDAN UNIVERSITY +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410432875.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing visual odometry system based on event cameras is difficult to output high-frequency precise pose information in high-speed motion and high-dynamic environments, and monocular vision cannot obtain true scale information, making it difficult to accurately depict the global trajectory in extreme scenes.

Method used

By introducing the IMU sensor based on the event camera, combined with asynchronous event data processing and event block technology, a high-frequency visual inertial odometry method is designed, using IMU pre-integrated data for coordinate prediction and optimization, and constructing a joint optimization function to improve pose information output frequency and accuracy.

Benefits of technology

It achieves the output of high-frequency pose information in high dynamic range and high-speed motion scenarios, improves the system's computing efficiency and pose estimation accuracy, and can provide fast and accurate global motion trajectory information in extreme environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118583158A
    Figure CN118583158A
Patent Text Reader

Abstract

The invention belongs to the technical field of visual inertial odometers, and particularly relates to a high-frequency visual inertial odometer method based on an event camera. According to the method, event blocks are created by using an asynchronous corner detection algorithm, then the event blocks are aligned to construct a visual feature error function, estimation of the system pose is realized, and the alignment precision and speed of the event blocks are improved by parameterizing the center coordinates of the event blocks and introducing IMU pre-integration data during alignment. Finally, the visual error of the event block, the inertial error of the IMU and the marginalized prior error are constructed into a cost function in a joint optimization mode, the pose information of the system is estimated through optimization, and the precision and the output frequency of the system are improved. According to the method, the problem that the system is difficult to output accurate pose information at high frequency in a high-dynamic and high-speed environment is solved, and a solution is provided for acquiring the pose information of a traversing machine or automatic driving running in an extreme scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of visual inertial odometry (VIO) systems, and in particular relates to a high-frequency visual inertial odometry method. Background Art

[0002] In recent years, with the rapid development of technologies such as autonomous driving technology, autonomous control robots and unmanned aerial vehicles, scenes such as when cars enter and exit tunnels and when aerial vehicles quickly avoid obstacles in various complex environments involve drastic changes in lighting conditions, rapid movement of equipment and rapid changes in posture information. Traditional cameras experience motion blur, overexposure, underexposure and other problems when facing such scenes, making it difficult for the visual odometer system to accurately estimate the posture information.

[0003] The advantages of event cameras, such as high dynamic range, high temporal resolution, and asynchrony, can well replace the task of data input that is difficult for traditional cameras to complete in extreme scenarios. Compared with traditional cameras, each pixel of an event camera can independently output the changes in the perceived light intensity, and it can output the events on each pixel with a delay of microseconds, making the event camera have the characteristics of asynchrony and high temporal resolution. In addition, its dynamic range can reach 2-3 times that of traditional cameras (140dB). These characteristics ensure that event cameras will not produce motion blur, overexposure, or underexposure problems when facing scenes with high dynamic range and high-speed motion, and can provide good input data for the visual odometer system.

[0004] Although the existing visual mileage calculation method based on event cameras can work in most extreme scenarios, the output frequency of the system is still relatively low. For objects such as drones that fly at high speed and frequently change their postures, the low-frequency posture information estimation is difficult to accurately reflect the global trajectory information of the drone during high-speed flight. At the same time, the monocular visual odometer cannot obtain real scale information and cannot accurately describe the position information of the system in reality. To overcome the above shortcomings, the method introduces an IMU sensor (inertial measurement unit) based on the event camera. The IMU provides the system with real scale information and high-frequency angular velocity and acceleration data. In addition, most of the existing event camera methods process the event stream data synchronously. Although the processed events are easier to extract features and track, this will lose the asynchrony of the event stream and reduce the system output frequency. For example, references [1-2] are all based on the VIO (Visual Inertial Odometry) algorithm of event cameras, which do not show the high frequency advantage of event cameras. Reference [3] only uses event cameras and adopts the method of simultaneous positioning and mapping to construct interdependent tracking and mapping modules, so that the output frequency of pose information is increased to more than 100 Hz. However, since the estimation of pose information requires the mapping module as prior information, and the mapping module can only run at a frequency lower than 10 Hz, it makes it difficult for the entire system to always output pose information at a high frequency. Reference [4] combines the advanced event camera feature extraction algorithm with the extended Kalman filter to propose a new VIO algorithm. The algorithm has high accuracy and can be adapted to Mars-like scenes, but it cannot run in real time. Summary of the invention

[0005] In order to overcome the above problems and supplement the deficiencies of existing methods, the present invention provides a high-frequency visual inertial odometer method based on event camera.

[0006] The high-frequency visual inertial odometer method based on event camera provided by the present invention designs a visual inertial odometer system capable of outputting high-frequency pose information in high dynamic range and high-speed motion scenes by processing event data and IMU data, and is used to obtain the high-frequency pose information of the system itself. The specific steps are as follows:

[0007] Step S1, performing event corner feature detection on the asynchronous event stream output by the event camera, and creating event blocks, while using the calculation method of the event time surface (Time Surface) to create event images with a fixed number of events;

[0008] Step S2, using the event block center coordinates observed in the event image of the current event frame, using the IMU pre-integrated data to predict the center coordinates of the same event block in the next frame event image, and parameterizing the event block center coordinates to perform a dimensionality reduction operation from 3D to 2D coordinates;

[0009] Step S3, constructing an optimization function for some extracted event blocks in event images between two or more frames using the difference in grayscale values, and updating the event block coordinates when the next frame of event image arrives, so that the event blocks are aligned between different frames;

[0010] Step S4, in the back-end optimization, the sliding window method is used to maintain the multi-frame event images and the corresponding IMU pre-integration data, and the grayscale error function of the event block is constructed using the aligned event block; the IMU pre-integration data is aligned with each frame of the event image in frequency to construct the IMU inertial error function; finally, in order to improve the accuracy of the optimization result, iterative optimization of fixed multi-frame event images is performed to construct the marginalization error function; the three types of error functions are jointly optimized on the multi-frame event images, and the position and posture information of the inertial odometer system is output.

[0011] Further:

[0012] In step S1, the asynchronous corner feature detection uses a time-activated surface to process each arriving event, records the timestamp of the latest trigger event on each pixel, and uses a corner feature detection algorithm similar to FAST based on the timestamp. With the event to be determined as the center, 16 events on a circle with a radius of 4 are extracted, and are sorted in the order of the corresponding timestamps to replace the gray value comparison process in the FAST algorithm; and a 9×9 event block is created with the coordinates of the event determined as a corner feature as the center, and the time-activated surface is used again to create each frame of event image with a fixed number of events. The gray value of each pixel is obtained by the timestamp of the latest trigger event recorded on each pixel block and the current time through formula (1):

[0013]

[0014] In the formula, x i represents the event pixel coordinates to be calculated, t represents the current time, t last (x i ) represents the timestamp of the latest triggered event at the pixel coordinate, and η represents the attenuation parameter. Using event blocks instead of corner features can increase the effective information of a single feature, thereby using fewer event blocks for calculations in the optimization phase, reducing the amount of calculations.

[0015] In step S2, the coordinates of the center of the event block are parameterized to complete the dimensionality reduction operation, and the coordinates of the center of the event block in the next frame are predicted by the IMU pre-integrated data from the current frame to the next frame, and the remaining coordinates of the event block in the current frame are mapped to the event image of the next frame through the mapping matrix, which specifically includes the following sub-steps:

[0016] Step S2-1, for the feature points extracted in S1, convert their 3D coordinates in the camera coordinate system into 2D direction vector representation, so as to reduce the calculation dimension of the event block center coordinates;

[0017] Step S2-2, using the IMU pre-integrated value in the current frame to predict the position of the center coordinates of the event block created by the current frame event image in the next frame event image, where the center coordinates of the event block are represented by a direction vector;

[0018] Step S2-3, using the event block coordinates predicted by the IMU pre-integration data in S2-2, establish a mapping matrix that maps the event block center coordinates on the current frame event image to the same event block center coordinates on the next frame event image.

[0019] In step S3, the event block coordinates observed in the current frame event image are used. When the next frame event image arrives, the local grayscale value consistency assumption of the event block is used to construct the sum of the corresponding grayscale differences between the current frame event block and the next frame event block. The predicted event block coordinates are updated with the grayscale value. At the same time, an optimization function for the sum of the grayscale value errors of the corresponding coordinates of the event block in the previous and next two frames of event images is constructed to minimize the sum of the grayscale value errors while optimizing the direction vector and mapping matrix of the event block to obtain more accurate results.

[0020] In step S4, the event block grayscale error function constructed in step S3 is constructed into a joint optimization function with the IMU inertial error function and the marginalization error function in the sliding window. Five frames of event images and corresponding IMU data are maintained in the sliding window for iterative solution to complete the system posture information estimation and output the posture information.

[0021] When constructing the joint optimization function, the IMU pre-integration data is frequency-aligned with each frame of event image data, and the constructed event block grayscale error function is the sum of the grayscale value errors of all aligned event blocks in each frame in the sliding window.

[0022] In the present invention, due to the asynchronous processing of event stream data, and the use of event blocks to replace event corner features to construct visual error functions, the amount of calculation of the VIO system is reduced, and the frequency of the system output posture information is increased. In addition, the present invention also uses a method for parameterizing the center coordinates of event blocks and constructing a mapping matrix to replace the front and back frame projection process of the event block coordinates, which also reduces the amount of calculation of the system while maintaining a high posture accuracy. In the optimization stage, in order to maintain the high precision and true scale information of the VIO system, the VIO system uses the IMU pre-integration data again, aligns the high-frequency IMU pre-integration data and the high-frequency event image containing the event block with the timestamp, and constructs an optimization function containing both the IMU pre-integration error and the visual error of the event block in the joint optimization, so as to achieve high-precision and high-output frequency motion estimation results. Therefore, the method of the present invention can efficiently improve the output frequency of the visual inertial odometer system based on the event camera, and also maintain a high posture estimation accuracy, helping high-speed motion equipment to obtain fast and accurate global motion trajectories in high dynamic environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The present invention is a flowchart of a high-frequency visual inertial odometer method based on an event camera according to an embodiment of the present invention.

[0024] Figure 2 This is a diagram showing the effect of event block creation and tracking according to an embodiment of the present invention.

[0025] Figure 3 Schematic diagram of direction vectors of event block parameterization according to an embodiment of the present invention.

[0026] Figure 4 It is a global pose trajectory graph output by the VIO system of an embodiment of the present invention.

[0027] Figure 5 This is an output posture information analysis diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention is further described below by way of embodiments in conjunction with the accompanying drawings.

[0029] Figure 1 This is the overall flow chart of the high-frequency visual inertial odometer method based on event camera of the present invention. It includes the following steps:

[0030] In step S1, the system first accepts data from the event camera and IMU sensor, detects event corner features for the asynchronously input continuous event stream, and creates a 9×9 event block centered on the event detected as a corner feature. At the same time, it creates a frame of event image with a fixed number of events. The grayscale value of the event image is calculated from the latest event trigger timestamp recorded on each pixel. For IMU data, the pre-integrated increment within the time of two frames of event images and the corresponding covariance matrix and Jacobian matrix are calculated, which will be used for event block prediction in step S2 and joint optimization in step S4.

[0031] Step S2, input the created event image, event block and IMU pre-integrated data into the front end of the system, parameterize the center coordinates of the event block by calculation, perform dimensionality reduction operation, and obtain the predicted position of the same event block coordinates between multiple frames of event images, which specifically includes the following sub-steps:

[0032] Step S2-1, parameterize the event block center coordinates. In the front end, every time a frame of event image arrives, the system parameterizes the event block center coordinates on the event image. The specific process is as follows:

[0033] Assume that the coordinates of a landmark point L projected onto the camera coordinate system of the current frame event image are P 1 =(x c y c z c ), the coordinate of the pixel coordinate system is p uv =(uv 1);

[0034] P 1 Normalize it and get:

[0035]

[0036] Then the feature point P projected by the landmark point 1 The parameterized direction vector is:

[0037]

[0038] If the camera intrinsic parameter matrix K is known, then P 1 The direction vector and its corresponding p in the pixel coordinate system uv Make connections:

[0039] p uv =Kb n ‖P 1n ‖;

[0040] By parameterizing the center coordinates of the event block, the projection and back-projection calculations of the event block can be avoided when completing the event block tracking between multiple frames, thereby reducing the amount of calculation. The direction vector diagram is shown in Figure 3 As shown;

[0041] Step S2-2, using the IMU pre-integrated data corresponding to the current frame and the direction vector of the event block center coordinates, the system predicts the position of the event block center coordinates in the next frame event image, and obtains the mapping relationship between the center coordinates of the same event block in the previous and next frames;

[0042] Step S2-3, using the IMU prediction and mapping matrix method, all events except the center coordinates in the event block are mapped from the current frame to the next frame through the mapping matrix to obtain the predicted position of the event block in the next frame. The definition process of the mapping matrix is ​​as follows:

[0043] The center coordinate p of the event block 1 The direction vector b 1 Project the current frame to the coordinate p of the next frame through the projection matrix (camera external parameter) 2 and direction vector b 2 The process is:

[0044] p 2 =π(b 2 )=π(f(b 1 ))=π(f(π -1 (p 1 ))); (4)

[0045] Among them, f(b 1 )=b 2 It is expressed as the direction vector mapping relationship obtained by IMU pre-integration prediction, π and π -1 They represent p in the camera coordinate system respectively. 1 Projection matrix for projection and back-projection to world coordinate system;

[0046] The mapping matrix W represents the mapping process of the direction vector of the center coordinates of the current frame event block to the direction vector of the next frame event block, and is defined as:

[0047]

[0048] The mapping matrix obtained by this formula is calculated by the direction vector of the event block center coordinates and the IMU pre-integrated value. When the mapping matrix W is subsequently optimized, the optimized external parameter information (pose information) is also obtained; Figure 2 The newly created event blocks and aligned event blocks in the system front-end module are displayed. In order to distinguish the aligned event blocks and the newly created event blocks in the event image, the aligned event blocks are represented by square boxes and the newly created event blocks are represented by circular boxes.

[0049] Step S3, updates the coordinates of the event block on the next frame event image predicted by the mapping matrix W, and uses the local grayscale value consistency assumption of the event block. The system believes that the difference in corresponding grayscale values ​​of the same event block between the previous and next frames is consistent, either zero or a global grayscale value increment (the global grayscale value of the next frame is different from the global grayscale value of the current frame). When the next frame event image arrives, the system constructs an error function of the event block and updates the coordinates of the event block in the next frame event image (moving in the direction of reducing the grayscale value difference). The visual error function of the event block is constructed by summing the difference in grayscale values ​​of the same event block in the previous and next frame event images.

[0050] Step S4, multi-sensor joint optimization based on sliding window, the state variables to be optimized include the system position, speed, direction, accelerometer bias (bias) and gyroscope bias of the IMU sensor corresponding to all frame event images in the sliding window, the direction vector of the event block and the inverse depth information at the center coordinate, and the transformation matrix from the camera coordinate system to the IMU coordinate system. The three residual terms of the joint optimization function are the visual error function of the event block, the measurement residual of the IMU, and the marginalized prior information. Then, the result of the joint optimization function is calculated using Google's Ceres-Solver tool. The trajectory diagram of the pose information output of the VIO system is as follows: Figure 4 As shown, the accuracy analysis of posture information is shown in Figure 5 , the pose accuracy analysis and comparison with other similar algorithms under the same data set are shown in Table 1. In order to verify the superiority of the method of using IMU pre-integration data to predict the position of the event block in the next frame event image used in step 2 of the present invention, the results of the comparative experiment using (control group) and not using (experimental group) IMU pre-integration data in step S2 are shown in Table 2.

[0051] Example

[0052] The experimental environment is as follows: the hardware platform adopts a desktop computer equipped with an Inter core (TM) i5 4790K CPU, and the software platform is the ROS Melodic system of Ubuntu18.04. The embodiment takes the public benchmark event camera dataset to run the high-frequency VIO method based on the event camera as an example for specific description.

[0053] 1. Get the event stream and IMU data in the dataset

[0054] The system reads the event stream topic and IMU sensor data topic in the rosbag format data set through the rostopic command in the ros launch file, inputs the continuous event stream into the corner detection algorithm to obtain corner data, and creates event images with a fixed number of events. The corner points are sorted according to the quality of corner detection, and the top 25 (depending on the specific scenario) corner point features are selected to create event blocks, and the corresponding event block topics are published.

[0055] 2. Alignment of event blocks

[0056] The system subscribes to the ros topic published by the event block. According to the frequency of event image generation, the IMU pre-integrated data and the event image are aligned at the timestamp. Then, the center coordinates of the event block created on each frame of the event image are parameterized to obtain its direction vector. The IMU pre-integrated data is used to obtain the mapping matrix of the event block on the two frames of event images before and after, and the coordinates of the event block are predicted. However, when the next frame of event image arrives at the system, the coordinates of the next frame of event block are updated according to the sum of the grayscale value differences between the current frame event block and the next frame event block. Once the number of aligned event blocks is less than the preset number of corner points, new event blocks will continue to be created on the current frame event image.

[0057] 3. Calculate multi-sensor fusion pose

[0058] In the optimization stage, a sliding window method is used to simultaneously optimize the poses corresponding to 5 frames of event images. At the same time, the number of tracked event blocks on the event image in the sliding window is counted, and the event blocks with more tracked times are selected to create the visual error of the event blocks. When a new event image arrives, the system marginalizes the old event image, and retains its corresponding visual information and IMU information as prior information in the marginalization error function. A nonlinear optimization function including visual error, IMU error and marginalization error is established, and it is solved iteratively to obtain the system's global pose information with real scale, and publish the corresponding pose data topic.

[0059] In the above embodiment, due to the use of the new sensor of event camera, the surrounding environment can still be accurately perceived in extreme scenarios of high dynamic environment and high-speed motion, providing accurate data input for the VIO system, and the introduction of IMU sensor ensures that the VIO system can accurately perceive the real position of the system itself in the world coordinates in a variety of extreme scenarios. In addition, the system uses event blocks to replace the original corner point features, and completes the tracking task of the event block through the direction vector and mapping matrix of the event block, which ensures the estimation accuracy of the system and greatly improves the frequency of the system outputting position information, providing a new method for obtaining its own position information in scenarios such as cross-country drones or autonomous driving.

[0060] The above embodiments are only used to illustrate specific implementation modes of the present invention, and the present invention is not limited to the above embodiments.

[0061] Table 1

[0062]

[0063] Table 2

[0064]

[0065] References

[0066] [1]REBECQ H,HORSTSCHAEFER T,SCARAMUZZA D.Real-time visual-inertialodometry for event cameras using keyframe-based nonlinear optimization[M].University of Zurich,2017.

[0067] [2]LE GENTIL C,TSCHOPP F,ALZUGARAY I,et al.Idol:A framework for imu-dvs odometry using lines[C] / / 2020 IEEE / RSJ International Conference onIntelligent Robots and Systems(IROS).IEEE,2020:5863-5870.

[0068] [3]REBECQ H, T,GALLEGO G,et al.Evo:A geometric approach to event-based 6-dof parallel tracking and mapping in real time[J].IEEERobotics and Automation Letters,2016,2(2):593-600.

[0069] [4]MAHLKNECHT F,GEHRIG D,NASH J,et al.Exploring event camera-basedodometry for planetary robots[J].IEEE Robotics and Automation Letters,2022,7(4):8651-8658。

Claims

1. A high-frequency visual inertial odometry method based on event cameras, characterized in that: By processing event data and IMU data, a visual inertial odometer system is designed that can adapt to high dynamic range and output high-frequency pose information in high-speed motion scenes to obtain the system's own high-frequency pose information. The specific steps are as follows: Step S1, performing event corner feature detection on the asynchronous event stream output by the event camera, and creating event blocks, while using the calculation method of the event time activation surface to create an event image with a fixed number of events; Step S2, using the center coordinates of the event block observed in the current frame event image, using the IMU pre-integrated data to predict the center coordinates of the same event block in the next frame event image, and parameterizing the center coordinates of the event block to perform a dimensionality reduction operation from 3D to 2D coordinates; Step S3, constructing an optimization function for some extracted event blocks in event images between two or more frames using the difference in grayscale values, and updating the event block coordinates when the next frame of event image arrives, so that the event blocks are aligned between different frames; Step S4, in the back-end optimization, a sliding window method is used to maintain multiple frames of event images and corresponding IMU pre-integration data, and a grayscale error function of the event block is constructed using the aligned event block; The IMU pre-integrated data is aligned with each frame of the event image in frequency to construct the IMU inertial error function. Finally, in order to improve the accuracy of the optimization results, iterative optimization of fixed multi-frame event images is performed to construct the marginalized error function. The three types of error functions are jointly optimized on multi-frame event images to output the position and posture information of the inertial odometer system.

2. The method according to claim 1, characterized in that The asynchronous corner feature detection in step S1 uses a time-activated surface to process each arriving event, records the timestamp of the latest trigger event on each pixel, and uses a corner feature detection algorithm similar to FAST based on the timestamp. With the event to be determined as the center and a radius of 4, 16 events are extracted on the circle and sorted according to the order of the corresponding timestamps; and with the coordinates of the event determined as the corner feature as the center, a 9×9 event block is created, and the time-activated surface is used again to create each frame of event image with a fixed number of events. The grayscale value of each pixel is obtained by the timestamp of the latest trigger event recorded on each pixel block and the current time through formula (1): In the formula, x i represents the event pixel coordinates to be calculated, t represents the current time, t last (x i ) represents the timestamp of the most recently triggered event at the pixel coordinates, and η represents the attenuation parameter.

3. The method according to claim 2, characterized in that Step S2 specifically includes the following sub-steps: Step S2-1, for the feature points extracted in step S1, convert their 3D coordinates in the camera coordinate system into 2D direction vector representation, so as to reduce the calculation dimension of the event block center coordinates; Step S2-2, using the IMU pre-integrated value in the current frame to predict the position of the center coordinates of the event block created by the current frame event image in the next frame event image, where the center coordinates of the event block are represented by a direction vector; Step S2-3, using the event block coordinates predicted by the IMU pre-integration data in S2-2, establish a mapping matrix that maps the event block center coordinates on the current frame event image to the same event block center coordinates on the next frame event image.

4. The method according to claim 3, characterized in that In step S3, the event block coordinates observed in the current frame event image are used. When the next frame event image arrives, the local grayscale value consistency assumption of the event block is used to construct the sum of the corresponding grayscale differences between the current frame event block and the next frame event block. The predicted event block coordinates are updated with the grayscale value. At the same time, an optimization function for the sum of the grayscale value errors of the corresponding coordinates of the event block in the previous and next two frames of event images is constructed to minimize the sum of the grayscale value errors while optimizing the direction vector and mapping matrix of the event block to obtain more accurate results.

5. The method according to claim 4, characterized in that In step S4, the event block grayscale error function constructed in step S3 is constructed into a joint optimization function with the IMU inertial error function and the marginalization error function in the sliding window. Five frames of event images and corresponding IMU data are maintained in the sliding window for iterative solution to complete the system posture information estimation and output the posture information.

6. The method according to claim 5, characterized in that When constructing the joint optimization function, the IMU pre-integration data is frequency-aligned with each frame of event image data, and the constructed event block grayscale error function is the sum of the grayscale value errors of all aligned event blocks in each frame in the sliding window.

Citation Information

Cited By

  • Ultra-low delay visual positioning system based on event camera and method thereof

    CN120702457A