Real-time monocular vision SLAM mapping method based on ORB feature extraction and NeRF rendering
By combining ORB feature extraction and NeRF rendering in visual SLAM, the camera pose and map point cloud are optimized, and the problem of low accuracy in traditional SLAM in complex environments is solved, and efficient and accurate camera pose estimation and map construction are achieved.
Patent Information
- Application Number
- CN202411001588.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-01
AI Technical Summary
Traditional visual SLAM has a large amount of calculation and low accuracy when dealing with large-scale and complex surface reconstruction of objects, which affects the mapping effect.
The real-time monocular visual SLAM mapping method based on ORB feature extraction and NeRF rendering is used to estimate the camera pose through the ORB-SLAM3 algorithm, and the sparse point cloud map is generated using triangulation and beam adjustment, and the camera pose is optimized through NeRF photometric loss to improve accuracy.
It realizes high-precision and stable camera attitude estimation and map construction, combining traditional feature points and learning-based SLAM to improve the overall map construction accuracy and effect.
Smart Images

Figure BDA0004961717530000031 
Figure BDA0004961717530000032 
Figure BDA0004961717530000041
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of visual SLAM (simultaneous localization and mapping), and in particular relates to a real-time monocular visual SLAM mapping algorithm based on ORB feature extraction and NeRF rendering. Background Art
[0002] Smart spatial AI is able to receive visual signals (RGB-D images) and collaborate with humans to solve complex tasks, and has attracted much attention. In order to understand the semantic knowledge in the environment and take actions as effectively as humans, this intelligence requires a core technology called visual simultaneous localization and mapping. Visual SLAM can quickly adapt to new scenes without prior training and generate real-time, detailed maps for downstream tasks (such as home robots). Therefore, building a high-precision, high-quality dense point cloud map is of great significance to achieve high-precision indoor positioning and navigation.
[0003] At present, traditional visual SLAM mainly focuses on positioning accuracy and provides limited map accuracy. When dealing with large-scale, complex surface reconstruction problems, it often faces the problems of large computational complexity and low accuracy, which greatly affects the mapping effect. Summary of the invention
[0004] In view of the above problems, the present invention provides a real-time monocular visual SLAM mapping method based on ORB feature extraction and NeRF rendering. Image information is acquired in the camera tracking stage, features are extracted from the acquired images to select key frames, and the camera posture is estimated by the visual odometer in the ORB-SLAM3 algorithm. In the real-time mapping stage, triangulation is used to generate map points represented in the form of sparse point clouds. Then, bundle adjustment is used to optimize the camera posture and map points to minimize the reprojection error. Next, the updated camera posture and map are used to train the neural radiance field (NeRF) using implicit neural representation. In this process, the camera posture is further optimized by the photometric loss of NeRF, thereby improving the accuracy and effect of the overall mapping.
[0005] Specifically, the object of the present invention is to provide a real-time monocular vision SLAM mapping method based on ORB feature extraction and NeRF rendering, the method comprising the following steps:
[0006] S1: Build a robot that can move in a large indoor environment to collect the current indoor scene environment in real time. The functions that can be achieved after the mobile robot is built include:
[0007] S1.1: The mobile robot has autonomous obstacle avoidance function, using infrared detection module and camera. When the infrared detection module finds an obstacle, or the camera observes a wall or other object, the system will respond quickly and adjust the robot's route to avoid collision.
[0008] S1.2: The mobile robot uses the underlying STM32 control board to control the motion of the mobile robot;
[0009] S1.3: The mobile robot uses the edge computing module NVDIA Jetson Xavier NX as the robot's main development board;
[0010] S2: Use a mobile robot to move in the target indoor space and record the indoor environment;
[0011] S3: Select key frames of the indoor environment information recorded by the mobile robot, filter out key frames with poor results, and selectively discard them. At the same time, when the mapping system is busy, the frame is discarded;
[0012] S4: Use the visual odometry in the ORB-SLAM3 algorithm to estimate the camera pose;
[0013] S5: Generate map points using triangulation, optimize camera pose and map points through bundle adjustment (BA), and minimize reprojection error;
[0014] S6: Utilize the updated camera pose and map to train a neural radiance field using implicit neural representation;
[0015] S7: Further optimize the camera pose via NeRF photometric loss and generate a high-fidelity map via NeRF.
[0016] The beneficial effects of the present invention include:
[0017] The present invention discloses a real-time monocular visual SLAM mapping method based on ORB feature extraction and NeRF real-time rendering. The front end uses a visual odometer to estimate the camera pose and provide high-precision initial positioning. The camera pose is further optimized by minimizing the photometric loss through NeRF, thereby improving the accuracy and effect of the overall mapping, and realizing the combination of traditional feature point-based SLAM and learning-based SLAM. This method can not only achieve efficient and accurate camera pose estimation and map construction, but also maintain stable performance in the face of complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 This is the overall algorithm diagram of this method;
[0020] Figure 2 Schematic diagram of obtaining map point depth for triangulation;
[0021] Figure 3 Hardware deployment diagram for the mobile robot. DETAILED DESCRIPTION
[0022] The technical scheme will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be clear that the described embodiments are only part of the present invention and do not cover all embodiments. On the basis of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0023] like Figure 1 As shown, a real-time monocular vision SLAM mapping method based on ORB feature extraction and NeRF real-time rendering of the present invention comprises the following steps:
[0024] S1: First, a mobile robot equipped with D435i is used to obtain the current indoor scene;
[0025] S2: Obtain the previous frame and current frame images through the visual odometer in the ORB-SLAM3 algorithm, and filter the key frames;
[0026] S3: Through triangulation, bundle adjustment BA optimizes the camera pose, minimizes the reprojection error, and inputs the optimized pose into the NeRF mapping process. The minimization of the reprojection error specifically includes:
[0027] S3.1: Minimizing the reprojection error means minimizing the projection error between the observation and the keyframe on the landmark. The formula is as follows: K l represents a local key frame, P l Represents a local point, L l Represents a local line.
[0028]
[0029] S3.2: Projection error e ijrepresents the two-dimensional distance of the jth mapping point in the i-th key frame observed by the camera sensor, which can be expressed as:
[0030] e ij =x ij -π(ξ ij ,X wj )
[0031] Function π is responsible for converting the jth three-dimensional point X wj Convert to the local coordinate system of the camera sensor at the i-th key frame and get the position x ij . Then, this position x ij is projected onto the corresponding image plane.
[0032] S3.3: An error function is defined that calculates the distance between the projection endpoint of the environmental line segment extracted by the sensor on the image and its corresponding straight line in three-dimensional space. For the kth line segment in the i-th frame observed by the sensor camera in the surrounding environment, its error e ik It can be expressed as:
[0033]
[0034] P wk ,Q wk Expressed as a three-dimensional endpoint in the world coordinate system, l ik It is represented as the infinite straight line equation of the kth line segment in the i-th key frame observed by the sensor camera, which can be obtained by the cross product between the two-dimensional endpoints of the line segment in homogeneous coordinates: ik =P wk ×Q wk To obtain.
[0035] S4: Build a robot that can move autonomously in large indoor scenes, using NVDIA Jetson XavierNX as the main processor. The overall hardware framework of the mobile robot is shown in the figure below. Figure 2 As shown in the figure, the unmanned vehicle is mainly composed of STM32, onboard computer, camera and unmanned vehicle chassis drive. Jetson Xavier NX sends control signals to STM32, so that it communicates with the servo control motor and the unmanned vehicle chassis, and sends control instructions to control the unmanned vehicle.
[0036] S5: The skip voxel strategy is used to improve the accuracy of feature point selection and positioning accuracy. The NeRF photometric loss is used to further optimize the camera pose. Finally, a high-fidelity mapping effect is achieved. The schematic diagram of triangulation in S3 is shown below: Figure 3 shown.
[0037] The left and right images are images I1 and I2, with the left image as the reference frame and the pose of the right image as T. O1 and O2 are the optical centers of the cameras at two positions, point P is the spatial point, and P1 and P2 are the feature points corresponding to the spatial points in the two frames of images. It can be seen from the figure that due to noise, the straight lines O1P1 and O2P2 do not intersect at point P. Because the estimated camera pose has errors, it can be directly constructed as a least squares problem to solve the optimal estimate.
[0038] In the present invention, NeRF needs to solve the color representation within the near boundary and the far boundary. The formula is as follows:
[0039]
[0040] Where T(t) is the transmittance, σ is the volume density, c = (r, g, b) is the output color, [t n ,t f ] are the near boundary and far boundary intervals.
[0041] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A real-time monocular vision SLAM mapping method based on ORB feature extraction and NeRF rendering, characterized in that: The following steps are involved: S1: Build a robot that can move in a large indoor environment to collect the current indoor scene environment in real time. The functions that can be achieved after the mobile robot is built include: S1.1: The mobile robot has autonomous obstacle avoidance capabilities, using an infrared detection module and camera. When the infrared detection module detects an obstacle, or the camera observes a wall or other object, the system will respond quickly and adjust the robot's route to avoid collisions. S1.2: The mobile robot uses the underlying STM32 control board to control the motion of the mobile robot; S1.3: The mobile robot uses the edge computing module NVDIA Jetson Xavier NX as the main development board of the robot; S2: Use a mobile robot to move in the target indoor space and record the indoor environment; S3: Select key frames of the indoor environment information recorded by the mobile robot, filter out key frames with poor results, and selectively discard them. At the same time, when the mapping system is busy, the frame is discarded; S4: Use the visual odometry in the ORB-SLAM3 algorithm to estimate the camera pose; S5: Generate map points using triangulation, optimize camera pose and map points through bundle adjustment BA, minimize reprojection error, K l represents a local key frame, P l Represents a local point, L l represents the local line, and the formula is as follows: S6: Utilize the updated camera pose and map to train a neural radiance field using implicit neural representation; S7: The camera pose is further optimized through NeRF photometric loss, and high-fidelity mapping is generated through NeRF. NeRF must solve the color representation within the near and far boundaries. The formula is as follows: Where T(t) is the transmittance, σ is the volume density, c = (r, g, b) is the output color, [t n ,t f ] are the near and far bound intervals.
Citation Information
Cited By
Synchronous positioning and mapping system based on nerve implicit expression
CN121783126A
