Positioning and mapping method and electronic device
By combining multi-view geometric theory and deep learning technology to extract image features and eliminate dynamic objects, the problem of poor positioning and map construction accuracy in SLAM technology is solved, and stable and high-accuracy map construction and positioning under multi-view conditions are achieved. The posture is determined.
Patent Information
- Application Number
- CN201811550318.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2038-12-18
AI Technical Summary
In the existing SLAM technology, there is a problem of poor accuracy when using cameras to construct real-time maps and determine the posture of the device. In particular, it is difficult to stabilize positioning and map construction under the premise of applying multi-view geometry theory.
Combining multi-view geometry theory and deep learning theory, through feature extraction neural network and Hourglass neural network, the feature map and matching cost body of the image are obtained, the depth information of the pixels is determined, dynamic objects are eliminated, and the global sparse map and the local dense map are integrated. , to optimize the device pose and map.
It improves the accuracy and robustness of positioning and map construction of SLAM technology, enables stable map construction and pose determination without satisfying multi-view geometry theory, and reduces the impact of dynamic objects on positioning accuracy.
Smart Images

Figure CN111340922B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of Simultaneous Localization And Mapping (SLAM), and more specifically, to a method and electronic device for positioning and mapping. Background Art
[0002] SLAM is a technology that uses sensors such as cameras and lidar on devices to build a three-dimensional map of the space where the device is located in real time and determine the device's position (including position and posture). Since cameras are cheaper than lidars and have a wider range of applications (i.e., they can be used in various weather conditions and scenarios), the main research content of existing SLAM technology is to use cameras as sensors to build maps and determine device position in real time. However, in the existing technology, there is a problem of poor accuracy in the determined position and constructed map. Summary of the invention
[0003] Exemplary embodiments of the present disclosure are to solve the problems existing in the prior art.
[0004] According to an exemplary embodiment of the present disclosure, a method for positioning and mapping is provided, wherein the method comprises: acquiring an image of a current frame; and determining a device posture corresponding to the current frame and a current global sparse map based on the image of the current frame.
[0005] Optionally, the method further includes: when the current frame is a key frame, obtaining a global dense map corresponding to the current frame; and optimizing the device posture corresponding to each key frame and the current global sparse map based on the global dense map.
[0006] Optionally, the step of obtaining a global dense map corresponding to the current frame includes: obtaining a local dense map corresponding to the current frame; and determining a global dense map corresponding to the current frame based on the local dense map and a current global sparse map.
[0007] Optionally, the step of obtaining a local dense map corresponding to the current frame includes: performing feature extraction on the image of the current frame through a feature extraction neural network; obtaining a matching cost body according to a feature map obtained through feature extraction through an hourglass neural network; and determining depth information of each pixel in the current frame according to the matching cost body to obtain a local dense map corresponding to the current frame.
[0008] Optionally, the step of obtaining a matching cost body according to a feature map obtained by feature extraction through an Hourglass neural network includes: obtaining an initial matching cost body according to the feature map; and obtaining the matching cost body based on the initial matching cost body through an Hourglass neural network.
[0009] Optionally, the feature map includes a feature map of a left-eye image and a feature map of a right-eye image, wherein the step of obtaining an initial matching cost body based on the feature map includes: connecting the feature map of the left-eye image and the feature map of the right-eye image to obtain an initial matching cost body.
[0010] Optionally, the step of determining the depth information of each pixel in the current frame based on the matching cost body includes: performing spatial convolution processing on the matching cost body through a convolutional neural network; determining the disparity between the left-eye image and the right-eye image of each pixel in the current frame based on the matching cost body after the spatial convolution processing; determining the depth information of each pixel in the current frame based on the disparity of each pixel, and obtaining a local dense map corresponding to the current frame.
[0011] Optionally, the step of performing spatial convolution processing on the matching cost body includes: performing the following processing on the matching cost body respectively according to multiple set directions: dividing the matching cost body according to the current set direction to obtain multiple matching cost layers, and performing convolution processing on each matching cost layer in turn according to the current set direction, wherein, when performing convolution processing on any matching cost layer, the convolution processing is performed after accumulating the convolution result of the previous matching cost layer to any matching cost layer.
[0012] Optionally, the step of determining the disparity between the left-eye image and the right-eye image for each pixel in the current frame includes: obtaining the disparity probability distribution between the left-eye image and the right-eye image for each pixel in the current frame using a flexible maximum transfer function and a matching cost volume after spatial convolution processing; and determining a cumulative value of the disparity probability distribution corresponding to each pixel as the disparity between the left-eye image and the right-eye image for the corresponding pixel.
[0013] Optionally, the step of determining a global dense map corresponding to the current frame based on the local dense map and the current global sparse map includes: determining the pixels in the current frame belonging to dynamic objects; eliminating the pixels belonging to dynamic objects from the current global sparse map; and fusing the current global sparse map after pixel elimination and the local dense map into a global dense map.
[0014] Optionally, the step of determining the pixel points in the current frame belonging to the dynamic object includes: determining object state information corresponding to the current frame; and determining the pixel points in the current frame belonging to the dynamic object based on the object state information.
[0015] Optionally, the step of determining the object state information corresponding to the current frame includes: performing feature extraction on the image of the current frame through a feature extraction neural network; determining the category attribute information of each object in the current frame based on the feature map obtained through the feature extraction; and obtaining the object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0016] Optionally, the step of obtaining object state information corresponding to the current frame based on category attribute information of each object in the current frame includes: determining optical flow information between the current frame and a frame previous to the current frame; obtaining a static object mask corresponding to the current frame based on the optical flow information and the category attribute information of each object in the current frame, to obtain object state information corresponding to the current frame.
[0017] Optionally, the step of fusing the current global sparse map after pixel culling and the local dense map into a global dense map includes: gridding the local dense map; updating the vertices of each divided grid to the global sparse map after pixel culling; and updating the pixels within each grid to the global sparse map after pixel culling.
[0018] Optionally, the step of updating any vertex to the global sparse map after pixel culling includes: determining a vertex with global sparse map coordinates among the vertices corresponding to the grids to which the any vertex belongs; obtaining the depth information of the any vertex in the global sparse map after pixel culling based on the depth information of the determined vertex, the depth information of the any vertex in the local dense map, and the distance between the determined vertex and the any vertex; and determining the coordinates of the any vertex in the global sparse map after pixel culling based on the device posture corresponding to the current frame and the depth information of the any vertex in the global sparse map after pixel culling, so as to update the global sparse map.
[0019] Optionally, the step of updating any pixel point in the grid to the global sparse map after pixel culling includes: obtaining the depth information of any pixel point in the global sparse map after pixel culling according to the depth information of the vertices of the grid where the any pixel point is located, the depth information of any pixel point in the local dense map, and the distance between the vertices of the grid where the any pixel point is located and the any pixel point, and determining the coordinates of the any pixel point in the global sparse map after pixel culling according to the device posture corresponding to the current frame and the depth information of any pixel point in the global sparse map after pixel culling, so as to update the global sparse map.
[0020] Optionally, the step of optimizing the device posture corresponding to each key frame and the current global sparse map based on the global dense map includes: based on the global dense map, the device posture corresponding to each key frame, and the current global sparse map, performing cluster optimization on the device posture corresponding to each key frame and the current global sparse map.
[0021] Optionally, the method further includes: determining pixel points belonging to dynamic objects in the current frame; and removing pixel points belonging to dynamic objects from the current global sparse map.
[0022] Optionally, the step of determining the pixel points in the current frame belonging to the dynamic object includes: determining object state information corresponding to the current frame; and determining the pixel points in the current frame belonging to the dynamic object based on the object state information.
[0023] Optionally, the step of determining the object state information corresponding to the current frame includes: performing feature extraction on the image of the current frame through a feature extraction neural network; determining the category attribute information of each object in the current frame based on the feature map obtained through the feature extraction; and obtaining the object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0024] Optionally, the step of obtaining object state information corresponding to the current frame based on category attribute information of each object in the current frame includes: determining optical flow information between the current frame and a frame previous to the current frame; obtaining a static object mask corresponding to the current frame based on the optical flow information and the category attribute information of each object in the current frame, to obtain object state information corresponding to the current frame.
[0025] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the method as described above is implemented.
[0026] According to another exemplary embodiment of the present disclosure, an electronic device is provided, wherein the electronic device comprises: a processor; and a memory storing a computer program, and when the computer program is executed by the processor, the method as described above is implemented.
[0027] According to another exemplary embodiment of the present disclosure, an electronic device is provided, wherein the electronic device includes: an image acquisition unit, used to acquire an image of a current frame; and a posture and map determination unit, used to determine a device posture corresponding to the current frame and a current global sparse map based on the image of the current frame.
[0028] Optionally, the electronic device also includes: a global dense map acquisition unit, used to acquire a global dense map corresponding to the current frame when the current frame is a key frame; an optimization unit, used to optimize the device posture corresponding to each key frame and the current global sparse map based on the global dense map.
[0029] Optionally, the global dense map acquisition unit includes: a local dense map acquisition unit, used to acquire a local dense map corresponding to the current frame; wherein the global dense map acquisition unit determines the global dense map corresponding to the current frame based on the local dense map and the current global sparse map.
[0030] Optionally, the local dense map acquisition unit performs feature extraction on the image of the current frame through a feature extraction neural network; obtains a matching cost body based on the feature map obtained through feature extraction through an hourglass neural network; determines the depth information of each pixel in the current frame based on the matching cost body, and obtains a local dense map corresponding to the current frame.
[0031] Optionally, the local dense map acquisition unit acquires an initial matching cost volume according to the feature map; and obtains the matching cost volume based on the initial matching cost volume through an Hourglass neural network.
[0032] Optionally, the feature map includes a feature map of a left image and a feature map of a right image, wherein the local dense map acquisition unit connects the feature map of the left image and the feature map of the right image to obtain an initial matching cost volume.
[0033] Optionally, the local dense map acquisition unit performs spatial convolution processing on the matching cost volume through a convolutional neural network; determines the disparity between the left-eye image and the right-eye image for each pixel in the current frame based on the matching cost volume after the spatial convolution processing; determines the depth information of each pixel in the current frame based on the disparity of each pixel, and obtains a local dense map corresponding to the current frame.
[0034] Optionally, the local dense map acquisition unit performs the following processing on the matching cost body according to the set multiple directions: divide the matching cost body according to the current set direction to obtain multiple matching cost layers, and perform convolution processing on each matching cost layer in turn according to the current set direction, wherein, when convolution processing is performed on any matching cost layer, the convolution processing is performed after accumulating the convolution result of the previous matching cost layer to any matching cost layer.
[0035] Optionally, the local dense map acquisition unit obtains the disparity probability distribution between the left-eye image and the right-eye image for each pixel in the current frame using a flexible maximum transfer function and a matching cost volume after spatial convolution processing; and determines a cumulative value of the disparity probability distribution corresponding to each pixel as the disparity between the left-eye image and the right-eye image for the corresponding pixel.
[0036] Optionally, the global dense map acquisition unit includes: a dynamic object determination unit, used to determine the pixel points belonging to the dynamic object in the current frame; and to eliminate the pixel points belonging to the dynamic object from the current global sparse map, wherein the global dense map acquisition unit merges the current global sparse map after pixel elimination and the local dense map into a global dense map.
[0037] Optionally, the dynamic object determination unit determines object state information corresponding to the current frame; and determines pixel points in the current frame that belong to the dynamic object based on the object state information.
[0038] Optionally, the dynamic object determination unit performs feature extraction on the image of the current frame through a feature extraction neural network; determines category attribute information of each object in the current frame based on the feature map obtained through feature extraction; and obtains object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0039] Optionally, the dynamic object determination unit determines optical flow information between the current frame and a frame previous to the current frame; obtains a static object mask corresponding to the current frame based on the optical flow information and category attribute information of each object in the current frame, and obtains object state information corresponding to the current frame.
[0040] Optionally, the global dense map acquisition unit includes a fusion unit, which is used to grid the local dense map; update the vertices of each divided grid to the global sparse map after pixel culling; and update the pixels within each grid to the global sparse map after pixel culling.
[0041] Optionally, the fusion unit determines the vertices having global sparse map coordinates among the vertices of the mesh adjacent to the current vertex; obtains the depth information of the current vertex in the global sparse map after pixel culling based on the depth information of the determined vertex, the depth information of the current vertex in the local dense map, and the distance between the determined vertex and the current vertex; and determines the coordinates of the current vertex in the global sparse map based on the device posture corresponding to the current vertex and the obtained depth information to update the global sparse map.
[0042] Optionally, the fusion unit obtains the depth information of the current vertex in the global sparse map after pixel culling based on the depth information of the vertices of the grid where the pixel in the grid is located, the depth information of the pixel in the grid in the local dense map, and the distance between the vertices of the grid where the pixel in the grid is located and the pixel in the grid, and determines the coordinates of the pixel in the grid in the global sparse map based on the device posture corresponding to the pixel in the grid and the obtained depth information to update the global sparse map.
[0043] Optionally, the optimization unit performs cluster optimization on the device posture corresponding to each key frame and the current global sparse map based on the global dense map, the device posture corresponding to each key frame, and the current global sparse map.
[0044] Optionally, the electronic device further includes: a dynamic object determination unit, configured to determine pixel points belonging to dynamic objects in the current frame; and remove pixel points belonging to dynamic objects from the current global sparse map.
[0045] Optionally, the dynamic object determination unit determines object state information corresponding to the current frame; and determines pixel points in the current frame that belong to the dynamic object based on the object state information.
[0046] Optionally, the dynamic object determination unit performs feature extraction on the image of the current frame through a feature extraction neural network; determines category attribute information of each object in the current frame based on the feature map obtained through feature extraction; and obtains object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0047] Optionally, the dynamic object determination unit determines optical flow information between the current frame and a frame previous to the current frame; obtains a static object mask corresponding to the current frame based on the optical flow information and category attribute information of each object in the current frame, and obtains object state information corresponding to the current frame.
[0048] According to an exemplary embodiment of the present disclosure, a positioning and map construction method and electronic device are provided to improve the accuracy of existing methods and devices for SLAM, especially when the application prerequisites of multi-view geometry theory are not met, positioning and map construction can be stably performed, and therefore, it is robust.
[0049] The present disclosure improves the traditional methods and devices for SLAM, and can combine multi-view geometry theory and deep learning theory for posture determination and map construction. The present disclosure can adopt at least one of the following operations: determining posture and constructing a global sparse map based on multi-view geometry theory (which can be called a basic SLAM operation), constructing a local dense map based on deep learning theory, removing dynamic objects from the constructed map to reduce the impact of dynamic objects on positioning accuracy, fusing the constructed map, and optimizing the device posture and map (including cluster optimization), thereby improving accuracy and having robustness.
[0050] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:
[0052] Figure 1 A flowchart showing a method of positioning and mapping according to an exemplary embodiment of the present disclosure;
[0053] Figure 2 A schematic diagram showing an operation of obtaining depth information of a pixel point according to multi-view geometry theory;
[0054] Figure 3 A flowchart showing a method of positioning and mapping according to another exemplary embodiment of the present disclosure;
[0055] Figure 4 A schematic diagram showing a method for positioning and mapping according to another exemplary embodiment of the present disclosure;
[0056] Figure 5 A schematic diagram showing a method for positioning and mapping according to another exemplary embodiment of the present disclosure;
[0057] Figure 6 A schematic diagram showing a deep stereo matching operation according to an exemplary embodiment of the present disclosure;
[0058] Figure 7A schematic diagram showing an operation of convolving a matching cost volume according to an exemplary embodiment of the present disclosure;
[0059] Figure 8 A schematic diagram showing a process of optimizing device pose and a process of optimizing map point depth according to an exemplary embodiment of the present disclosure is shown;
[0060] Fig. 9 A schematic diagram showing an operation of acquiring a static object mask according to an exemplary embodiment of the present disclosure;
[0061] Fig.10 A schematic diagram showing a map fusion operation according to an exemplary embodiment of the present disclosure;
[0062] Fig.11 A schematic diagram showing an operation of performing map fusion based on grid division according to an exemplary embodiment of the present disclosure;
[0063] Fig.12 A schematic diagram showing a cluster optimization operation according to an exemplary embodiment of the present disclosure;
[0064] Fig.13 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0065] Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below with reference to the drawings in order to explain the present disclosure.
[0066] In an exemplary embodiment of the present disclosure, the device posture (the posture of the device where a device such as a camera for acquiring an image is located) includes position and posture. The position can be represented by coordinates (for example, coordinates in three-dimensional space), and the posture can be represented by relative angles (for example, orientation in three-dimensional space); sparse can refer to part of the pixels, and dense can refer to all or most of the pixels; a map containing the coordinates of pixels (which can be pixels of key frames) in three-dimensional space (which can be called global coordinates) can be a global map, and a map containing only the depth information of the pixels can be a local map; the global coordinates of the pixels can be the product of the depth information of the pixels and the device posture of the current frame; the pixels on the map can be called map points; a binocular camera (i.e., a camera including two lenses with fixed relative positions) can be used to acquire images of each frame. When a binocular camera is used, an image of one frame includes a left-eye image and a right-eye image; representative pixels in the image can be used as feature points, for example, pixels within a predetermined area whose contrast exceeds a predetermined value can be used as feature points.
[0067] Figure 1A flowchart of a method for positioning and mapping according to an exemplary embodiment of the present disclosure is shown. Figure 1 As shown in , the method may include: step S110, acquiring an image of a current frame; step S120, determining a device posture corresponding to the current frame and a current global sparse map based on the image of the current frame.
[0068] Here, the current frame may be a key frame. Since a map constructed using a binocular camera can more accurately represent the real distance compared to a monocular camera (i.e., a camera with only one lens), in the present disclosure, it is preferred to use a binocular camera to collect images. That is, the image of the current frame may include a left-eye image corresponding to the left eye lens and a right-eye image corresponding to the right eye lens.
[0069] In this case, step S120 may be performed based on multi-view geometry theory, as shown below with reference to FIG. Figure 2 Describes the operation.
[0070] Figure 2 A schematic diagram showing an operation of acquiring depth information of a pixel point according to multi-view geometry theory. As an example, the following operation is performed on a pixel point (the pixel point may be a feature point) in a current frame (the current frame may be a key frame), and the image acquisition unit of the electronic device may include a left eye lens 201 and a right eye lens 202. The left eye lens 201 captures a left eye image, and the right eye lens 202 captures a right eye image. The image of the current frame includes a left eye image and a right eye image.
[0071] For the current frame, a specific matching method (e.g., a matching method based on OpenCV) can be used to find a pixel point that matches a pixel point in the left image from one of the left image and the right image, e.g., the right image. That is, the same point in the corresponding scene appears in both the left image and the right image.
[0072] The left image may include: pixel 203, pixel 204, and pixel 205. The right image may include: pixel 206, pixel 207, and pixel 208. Pixel 203 matches pixel 206 and corresponds to map point 209, pixel 204 matches pixel 207 and corresponds to map point 210, and pixel 205 matches pixel 208 and corresponds to map point 211.
[0073] The position of the left eye lens 201 and the position of the right eye lens 202 are relatively fixed, the position of the left eye lens 201 and the distance between the right eye lens 202 are known, the distance between the left eye image and the right eye image is also known, the distance between the left eye lens 201 and the left eye image, and the distance between the right eye lens 202 and the right eye image are also known. By extending the line between the left eye lens 201 and the pixel point 203, and extending the line between the right eye lens 202 and the pixel point 206, a map point 209 can be obtained. Similarly, a map point 210 and a map point 211 can be obtained (map point 209, map point 210 and map point 211 are located in the global sparse map). In this way, based on the above distance, the depth information of the pixel point of the current frame (i.e., the depth information of the map point) can be obtained. Since the map includes pixel points, in the following, the map point is also referred to as a pixel point.
[0074] The frame before the current frame can be used as a reference to obtain the device pose corresponding to the reference frame (reference frame, which can be a key frame). Therefore, the device pose corresponding to the current frame can be determined by a multi-view geometric stereo matching method, and the coordinates of the pixel points of the current frame in the global sparse map can be determined based on the device pose corresponding to the current frame and the depth information of the pixel points of the current frame.
[0075] More specifically, the first frame can be set as a key frame by default, and the depth information of specific pixels in the first frame can be obtained based on multi-view geometry theory to obtain a local sparse map. The device posture corresponding to the first frame is the default posture. The global sparse map can be determined based on the depth information of the first frame and the device posture corresponding to the first frame. For any frame after the first frame, the global sparse map can be determined based on the depth information of the first frame and the device posture corresponding to the first frame. Figure 2 The operation shown obtains the depth information of the pixel points in any frame (the depth information of the pixel points in the local sparse map corresponding to any frame), combines the depth information of the pixel points in the previous frame of any frame, and determines the device posture corresponding to any frame based on the multi-view stereo matching method. Based on the device posture corresponding to any frame and the depth information of the pixel points in any frame, the coordinates of the pixel points in any frame in the global sparse map can be determined, and the coordinates can be added to the global sparse map.
[0076] In exemplary embodiments of the present disclosure, various methods for determining feature points and key frames may be used, and the present disclosure is not limited thereto.
[0077] Figure 3 A flowchart of a positioning and map building method according to another exemplary embodiment of the present disclosure is shown, wherein an image of one frame includes a left-eye image and a right-eye image.
[0078] exist Figure 3In the exemplary embodiment shown, multiple frames can be selected as key frames. During initialization or repositioning (generally, an initialization operation is performed, and a repositioning operation can be performed in the case described below), stereo matching can be performed based on multi-view geometry theory to calculate the depth information of the pixels in any key frame, and the pixels in any key frame are added to the global sparse map (see for example, Figure 2 description).
[0079] As an example, key frames are determined by the following steps: determining the change in content (e.g., the number of feature points) between each frame and the key frame that is closest to each frame in time, and when the content changes significantly (e.g., the change in the number of feature points exceeds a threshold), treating each frame as a key frame.
[0080] For the current frame (the current frame may also be a key frame), the multi-view geometry theory may also be used to obtain the depth information of the pixels in the current frame. Subsequently, the current frame and the previous frame of the current frame (for example, the key frame closest to the current frame in terms of timing) are matched by a direct method to calculate the device pose corresponding to the current frame.
[0081] In the process of matching through the direct method, the map points contained in the previous frame (pixel points with global sparse map coordinates) can be projected to the current frame to obtain the depth information of the pixel points projected into the current frame, and the depth information of the pixel points obtained by projection and the depth information of the original pixel points of the current frame can be used to determine the device posture corresponding to the current frame.
[0082] Through the above method, the corresponding device posture can be continuously obtained, and the pixel points that have obtained depth information and are not in the global sparse map are added to the global sparse map. For example, for the current frame, the coordinates of the pixel points of the current frame in the global sparse map can be obtained through the device posture and depth information. If the obtained coordinates do not appear in the global sparse map, the pixel point is added to the global sparse map.
[0083] For example, when there are significant changes in lighting or camera motion, positioning may fail. In this case, repositioning is required. During repositioning, the key frame whose content is closest to the frame where positioning failed can be found from the determined key frames, and the points of the pixels with global sparse map coordinates in the found key frame can be projected to the frame where positioning failed, thereby obtaining the depth information of the pixels in the frame where positioning failed, and the frame where positioning failed can also be used as a key frame to perform operations such as device posture determination.
[0084] As an example, map optimization and pose optimization can be performed using an optimized method. For example, a global sparse map is used to optimize the device pose corresponding to each frame, and the optimized device pose is used to optimize the global sparse map. Alternatively, based on a global dense map, the device pose corresponding to each frame is optimized to optimize the global sparse map through the optimized device pose. In this case, it is necessary to first obtain all dense maps corresponding to the current frame, which will be described in detail below.
[0085] The reason for optimization is that the operation of pixel matching (i.e. finding multiple pixels corresponding to the same point in reality) may have errors, which will accumulate as the operation proceeds, resulting in errors between the device pose and the constructed map based on multi-view geometry theory and the actual map. In order to eliminate the errors, optimization (preferably cluster optimization) can be used to optimize the device pose corresponding to each keyword and the global sparse map to obtain more accurate results.
[0086] In addition, when determining the device posture and constructing the map based on multi-view geometry theory, specific assumptions need to be met.
[0087] For example, the pose can be determined based on selected representative pixels (i.e., feature points). However, feature points need to be selected in areas containing specific textures (e.g., textures that are easy to distinguish from surrounding objects) or at the edges or corners of objects. Only then can the device pose be determined and the map be constructed based on the selected feature points. If the number of textures in the area is small or the textures are not obvious, it is difficult to select feature points, and thus it is impossible to determine the device pose and construct the map. If there are too many or even repeated textures, mismatching is likely to occur, reducing the accuracy of the determined device pose and constructed map. The cluster optimization operation cannot effectively eliminate errors to improve accuracy.
[0088] For example, when there is a textureless area exceeding a predetermined area, the ambient lighting changes beyond a predetermined limit, or the device posture change (especially the orientation change) exceeds a predetermined change value, it is difficult to effectively obtain feature points. When the number of feature points is insufficient, the device posture cannot be accurately calculated.
[0089] For example, when building a map, it is necessary to assume that the objects in the area are static. If the selected representative pixels correspond to non-static objects, the relationship (e.g., geometric constraints) based on which the device pose is determined and the map is built will not hold, thus affecting the accuracy of the determined device pose and the built map.
[0090] Taking the above problems into consideration, in an exemplary embodiment of the present disclosure, a global dense map corresponding to the current frame can be obtained. Preferably, when the current frame is a key frame, the global dense map corresponding to the current frame is obtained; based on the global dense map, the device posture corresponding to each frame (preferably, each key frame) and the current global sparse map are optimized (preferably, cluster optimization is performed); in another exemplary embodiment of the present disclosure, the pixel points in the current frame belonging to the dynamic object can be determined; and the pixel points belonging to the dynamic object are eliminated from the current global sparse map.
[0091] As an example, the step of obtaining a global dense map corresponding to the current frame includes: obtaining a local dense map corresponding to the current frame; and determining a global dense map corresponding to the current frame based on the local dense map and the current global sparse map.
[0092] As an example, the step of determining the pixel points in the current frame belonging to the dynamic object includes: determining the object state information corresponding to the current frame; and determining the pixel points in the current frame belonging to the dynamic object based on the object state information.
[0093] As an example, based on the local dense map and the current global sparse map, the step of determining the global dense map corresponding to the current frame includes: determining the pixels belonging to dynamic objects in the current frame; eliminating the pixels belonging to dynamic objects from the current global sparse map; and fusing the current global sparse map after pixel elimination and the local dense map into a global dense map.
[0094] Figure 4 A schematic diagram showing a method for positioning and mapping according to another exemplary embodiment of the present disclosure is shown. Figure 4 As shown in , the method of the exemplary embodiment of the present disclosure may include the following steps: positioning and map construction (steps S411 and S415), deep stereo matching (step S420), static object detection (step S430), map fusion (step S440), pose and map optimization (step S460). In addition, before performing the above steps, an image (e.g., a binocular image including a left eye image and a right eye image) may be captured by a video capture device (e.g., a binocular camera), and a key frame may be determined from the captured image.
[0095] In the steps of instant positioning (step S411) and map reconstruction (step S115), the collected image (for example, the image of the current key frame) is calculated based on the multi-perspective geometry theory to obtain the depth information of the pixel points in the current key frame, and based on the positional relationship between the frame before the current key frame (which may also be a key frame) and the current key frame, the device posture corresponding to the current key frame is obtained, thereby obtaining the coordinates of the pixel points of the current frame in the global sparse map.
[0096] Specifically, in step S411, a real-time positioning operation is performed. The depth information of the pixel points in the current key frame is determined using multi-view geometry theory. The first frame is the initial key frame (the first frame in time sequence), and the device posture corresponding to this frame is the default. A global coordinate system can be established based on the pixel points in this frame to construct a global sparse map. For key frames after the first frame, the device posture corresponding to any key frame can be determined based on the change in information such as depth between different frames. In step S415, a map is constructed. A global coordinate system is established using the pixel points in the first frame. After obtaining the coordinates of the pixel points in the key frames after the first frame, the pixel points with the obtained coordinates can be updated to the global coordinate system as map points in the global sparse map, thereby updating the global sparse map.
[0097] In the step of deep stereo matching (step S420), the depth information of all pixels in the current key frame is predicted, and a local dense map based on the current key frame is constructed. The image of the current key frame can be calculated by a pre-trained deep learning network to predict the depth information of the pixels.
[0098] Specifically, in step S420, deep stereo matching is performed. A pre-trained neural network is used to obtain the disparity between the left-eye image and the right-eye image (specifically, the disparity of the pixel points between the left-eye image and the right-eye image), and based on the obtained disparity, the depth information of the pixel points that have obtained the disparity is calculated. For the current frame, a coordinate system with the center of the left-eye image of the current frame as the origin can be created, and the coordinates of the pixel points that obtain the depth (which can be all the pixel points in the current frame) in the coordinate system are determined to obtain a dense local map. Here, the depth information corresponding to the disparity of the pixel points between the left-eye image and the right-eye image can be obtained by a variety of methods, which will not be repeated here.
[0099] In the step of static object detection (step S430), it is determined whether the pixel point belongs to a dynamic object, for example, a mask (for example, a static object mask) for representing the state of the object (including static or dynamic) is obtained based on the collected image, wherein the static object mask can indicate that the pixel point is a static object; based on the mask, the pixel points corresponding to the dynamic object (that is, the map points corresponding to the dynamic object in the global sparse map) can be removed from the global sparse map. A pre-trained neural network can be used to predict whether the pixel point corresponds to a dynamic object.
[0100] Specifically, in step S430, static object detection is performed. A pre-trained deep learning network is used to predict whether each pixel in the current frame corresponds to a static object, for example, a static object mask is obtained to indicate whether the pixel corresponds to a static object; the prediction result of whether the pixel corresponds to a static object can be used to remove the pixel corresponding to the static object from the global sparse map.
[0101] In the step of map fusion (step S440), the local dense map and the global sparse map with the pixels corresponding to the dynamic objects removed are fused to obtain a credible map. Here, based on the global sparse map, the local dense map is mapped to the global sparse map (preferably, the global sparse map with the pixels corresponding to the static objects removed) to obtain a global dense map. In step S450, auxiliary positioning can be performed, that is, the high-precision map and the radar map are fused into the credible map to increase the map accuracy.
[0102] In the step of pose and map optimization (step S460), the pose of the first frame is used as the initial value to perform cluster optimization to obtain the optimized device pose corresponding to each key frame, and the global sparse map is optimized using the optimized device pose. During the process of cluster optimization (step S460), the device pose corresponding to the initial key frame can be used as the pose initial value of the cluster optimization.
[0103] Specifically, in step S160, cluster optimization of the device pose and map is performed. Usually, the projection of the map points in the three-dimensional map (for example, the global dense map or the global sparse map with the pixels corresponding to the dynamic objects removed) in each key frame (projected as the pixels in the key frame) and the device pose corresponding to each key frame are used as constraints to adjust the coordinates of the device pose and the map points in the three-dimensional map to reduce the error; on the one hand, the coordinates of the map points can be used to optimize the device pose; on the other hand, the device pose can also be used to optimize the coordinates of the map points. Such an operation is called "bundle optimization".
[0104] In an exemplary embodiment of the present disclosure, if deep stereo matching is performed, the number of map points in the obtained global dense map will be greater than the number of map points in the global sparse map constructed without performing deep stereo detection. Taking into account the optimization efficiency, the points in the trusted map (global dense map) can be divided into two categories, namely: map points from the global sparse map and map points from the local dense map. During the posture optimization process, cluster optimization of the device posture can be performed based on any map point; during the map optimization process, only the map points from the global sparse map are clustered to improve the efficiency of the optimization. After the cluster optimization is completed, step S440 can be executed again to allow the optimized global sparse map to participate in the map fusion operation. The cluster optimization results can be stored in a storage device.
[0105] In addition, in the exemplary embodiments of the present disclosure, it is also feasible to omit one or more of the above steps.
[0106] Figure 5 A schematic diagram of a method for positioning and mapping according to another exemplary embodiment of the present disclosure is shown, wherein operations such as initialization, repositioning, stereo matching based on multi-view geometry theory, adding pixel coordinates to a global sparse map, map point projection, pose optimization, and map optimization may be performed with reference to the above.
[0107] By initialization or repositioning, the device pose and global sparse map can be preliminarily obtained. By pose optimization and map optimization, the accuracy of the obtained device pose and map can be improved. However, determining the device pose and constructing the map based on multi-view geometry theory will result in inaccurate results and other problems described above. In order to improve accuracy and make the method and device robust, this exemplary embodiment performs the following operations:
[0108] For each key frame (e.g., current frame), the depth information of each pixel in each key frame is determined by deep stereo matching, and a local dense map is obtained to obtain more depth information. For each key frame (e.g., current frame), the motion state of the object corresponding to the pixel is determined (e.g., static object mask is obtained by static object detection) so as to remove the pixel corresponding to the static object from the global sparse map.
[0109] As an example, the global sparse map is filtered by the static object masks corresponding to each key frame to remove the pixels corresponding to the dynamic objects from the global sparse map. The global sparse map after dynamic object removal is fused with the local dense map to obtain a credible map (global dense map). The credible map can be used to optimize the device pose corresponding to each key frame.
[0110] As an example, using a pre-trained multi-task convolutional network (a neural network for deep stereo matching), the disparity map corresponding to the key frame can be predicted, and the depth information can be obtained and the local dense map can be constructed through the disparity map. Using another pre-trained multi-task convolutional network (a neural network for dynamic object detection), the static object detection box corresponding to the key frame can be predicted. Using another multi-task convolutional network (a neural network for optical flow calculation), the optical flow map corresponding to the key frame can be predicted. The static object mask can be obtained through the static object detection box and the optical flow map.
[0111] As an example, the three multi-task convolutional networks mentioned above may have the same network layer for feature extraction.
[0112] Through deep stereo matching, the depth information of any pixel in the current frame (for example, a key frame) can be predicted. Even if some areas of the image in the current frame do not contain textures, or some areas of the image have too much and repeated textures, it will not affect the accuracy of the predicted results of the depth information of the pixels. The pixels with predicted depth information can be used to construct a denser three-dimensional map (point cloud) called a local dense map. When optimizing the device pose and map, the global dense map fused by the local dense map and the global sparse map is used. The global dense map containing more depth information is used to optimize the device pose and map, and a more accurate device pose and global map can be obtained.
[0113] Through static object detection, it is possible to predict whether each pixel in the current frame belongs to a static object, and to remove pixels corresponding to non-static objects from the constructed global sparse map, thereby improving the consistency of the constructed map in the time dimension (i.e., the position of the same object in three-dimensional space remains unchanged at any moment), and reducing the adverse effects of dynamic objects on device posture determination and map construction.
[0114] Since the global dense map obtained through the map fusion operation (the global dense map can be used to optimize the device posture corresponding to each frame, and the optimized device posture can be used to optimize the global sparse map) includes both pixel points that obtain depth information based on multi-view geometry theory (pixels from the global sparse map) and pixel points that obtain depth information using deep stereo matching operations (pixels from the local dense map), more depth information can be used, making it easier to reduce the error caused by mismatching, making the fused global dense map more credible. Therefore, the fused map can be called a credible map. Using credible maps for bundle optimization can further eliminate errors to improve the accuracy of positioning and map construction.
[0115] In an exemplary embodiment of the present disclosure, a local dense map corresponding to the current frame can be obtained according to the following steps: performing feature extraction on the image of the current frame through a feature extraction neural network; obtaining a matching cost body based on the feature map obtained through feature extraction through an hourglass neural network; determining the depth information of each pixel in the current frame based on the matching cost body to obtain a local dense map corresponding to the current frame.
[0116] As an example, the step of obtaining a matching cost volume through an Hourglass neural network according to a feature map obtained through feature extraction includes: obtaining an initial matching cost volume according to the feature map; and obtaining the matching cost volume based on the initial matching cost volume through an Hourglass neural network.
[0117] As an example, the feature map includes a feature map of a left eye image and a feature map of a right eye image, wherein the step of obtaining an initial matching cost body based on the feature map includes: connecting the feature map of the left eye image and the feature map of the right eye image to obtain an initial matching cost body.
[0118] As an example, the step of determining the depth information of each pixel in the current frame according to the matching cost volume includes: performing spatial convolution processing on the matching cost volume through a convolutional neural network; determining the disparity between the left-eye image and the right-eye image of each pixel in the current frame according to the matching cost volume after the spatial convolution processing; determining the depth information of each pixel in the current frame according to the disparity of each pixel, and obtaining a local dense map corresponding to the current frame.
[0119] As an example, the step of performing spatial convolution processing on the matching cost body includes: performing the following processing on the matching cost body according to multiple set directions respectively: dividing the matching cost body according to the current set direction to obtain multiple matching cost layers, and performing convolution processing on each matching cost layer in turn according to the current set direction, wherein, when performing convolution processing on any matching cost layer, the convolution processing is performed after accumulating the convolution result of the previous matching cost layer to any matching cost layer. Specifically, the first matching cost layer may not be changed, and starting from the second matching cost layer, any matching cost layer is updated to the sum of any matching cost layer and the previous convolution result (that is, the product of the previous matching cost layer and the convolution kernel).
[0120] As an example, the step of determining the disparity between the left-eye image and the right-eye image for each pixel in the current frame includes: obtaining the disparity probability distribution between the left-eye image and the right-eye image for each pixel in the current frame using a flexible maximum transfer function and a matching cost volume after spatial convolution processing; and determining the cumulative value of the disparity probability distribution corresponding to each pixel as the disparity between the left-eye image and the right-eye image for the corresponding pixel.
[0121] Available through Figure 6 The illustrated embodiment is used to perform deep stereo matching. Figure 6 A schematic diagram showing a deep stereo matching operation according to an exemplary embodiment of the present disclosure is shown. Figure 6 In the exemplary embodiment shown, the left-eye image and the right-eye image may be corrected (eg, optical path correction) to obtain an accurate image.
[0122] like Figure 6As shown in , deep stereo matching can be performed by the following steps: the left eye image of the current frame is input into a pre-trained two-dimensional convolutional neural network and a pre-trained spatial pyramid pooling network in series to obtain a feature map of the left eye image (for example, a feature map represented in matrix form, also referred to as a left feature map); the right eye image of the current frame is input into another pair of two-dimensional convolutional neural networks and spatial pyramid pooling networks in series to obtain a feature map of the right eye image (also referred to as a right feature map), wherein the two two-dimensional convolutional neural networks share weights, and / or the two spatial pyramid pooling networks share weights. The obtained left feature map and right feature map are connected along the disparity direction to obtain an initial matching cost volume (the matching cost volume can also be regarded as a matching cost matrix), wherein any known method can be used to connect the two feature maps. For example, assuming that the dimensions of the two feature maps are m×n×c (m, n and c are natural numbers), if the disparity is 0, the two feature maps are directly connected to obtain a matrix of size m×n×2c. If the disparity is d (d is a natural number), the right feature map is first translated by d columns along the predetermined x-axis direction, and then the left feature map is translated by 1. The feature map is connected to the right feature map, so that d matrices of size m×n×2c are obtained; the initial matching cost volume is calculated using a pre-trained Hourglass network (e.g., Hourglass neural network) to obtain a predicted matching cost volume; the predicted matching cost volume is convolved to obtain a convolved matching cost volume; the convolved matching cost volume is calculated using a regression function including a flexible maximum transfer function (e.g., a softmax function) to obtain a disparity probability distribution corresponding to each pair of matching pixels in a plurality of pairs of matching pixels in the left image and the right image (a pair of matching pixels corresponds to the same point in the scene) (i.e., each possible disparity value and the corresponding probability corresponding to each pair of matching pixels); the disparity of each pair of matching pixels is calculated according to the obtained disparity probability distribution (for each pair of matching pixels, the disparity can be calculated by calculating a cumulative value (e.g., mathematical expectation), for example, each possible disparity is multiplied by the probability corresponding to each possible disparity, and then the products are added to obtain the disparity corresponding to each pair of matching pixels).
[0123] The step of convolving the predicted matching cost volume to obtain the convolved matching cost volume is performed because: the depth change between adjacent points on the image is not significant (the depth of adjacent points can be considered continuous), the disparity of the pixel point can be the disparity between the left eye image and the right eye image, and in order to make the disparity change between adjacent pixels not significant (for example, appearing as a smoother disparity or spatially continuous), a convolutional neural network (for example, a spatial convolutional neural network) can be used to convolve the matching cost volume (for example, spatial convolution), so that the spatial continuity of the disparity of adjacent pixels can be increased, and some noise points can be removed. In the present disclosure, through convolution, depth information with higher credibility can also be transmitted to pixel points with lower credibility of depth information.
[0124] Figure 7 A schematic diagram showing an operation of convolving a matching cost volume according to an exemplary embodiment of the present disclosure.
[0125] like Figure 7 As shown in , the steps of convolving the matching cost volume to obtain the convolved matching cost volume include:
[0126] Using a plurality of first planes perpendicular to the height direction of the matching cost volume, the matching cost volume is divided into a plurality of first matching cost layers sequentially arranged along a first direction (a direction from top to bottom shown in the figure) parallel to the height direction;
[0127] Using a predetermined convolution kernel, sequentially updating each first matching cost layer starting from the second first matching cost layer along the first direction, so as to update each first matching cost layer to each first matching cost layer plus the product of the previous first sub-matching cost layer and the predetermined convolution kernel, and after updating the last first sub-matching cost layer, merging each first sub-matching cost layer into a first convolution matching cost body;
[0128] Using a plurality of second planes perpendicular to the height direction, the first convolution matching cost volume is divided into a plurality of second sub-matching cost layers arranged in sequence along a second direction (a direction from bottom to top shown in the figure) opposite to the first direction;
[0129] Using a predetermined convolution kernel, sequentially updating each second matching cost layer starting from the second second matching cost layer along the second direction, so as to update each second matching cost layer to each second matching cost layer plus the product of the previous second sub-matching cost layer and the predetermined convolution kernel, and after updating the last second sub-matching cost layer, merging each second sub-matching cost layer into a second convolution matching cost body;
[0130] Using a plurality of third planes perpendicular to the length direction or the width direction of the matching cost volume, the second convolution matching cost volume is divided into a plurality of third sub-matching cost layers arranged in sequence along a third direction (a direction from left to right shown in the figure) perpendicular to the third planes;
[0131] Using a predetermined convolution kernel, sequentially updating each third matching cost layer starting from the second third matching cost layer along the third direction, so as to update each third matching cost layer to each third matching cost layer plus the product of the previous third sub-matching cost layer and the predetermined convolution kernel, and after updating the last third sub-matching cost layer, merging each third sub-matching cost layer into a third convolution matching cost body;
[0132] Using a plurality of fourth planes parallel to the third plane, the third convolution matching cost volume is divided into a plurality of fourth sub-matching cost layers arranged in sequence along a fourth direction (a direction from right to left shown in the figure) opposite to the third direction;
[0133] Using a predetermined convolution kernel, each fourth matching cost layer is updated in sequence along the fourth direction starting from the second fourth matching cost layer, so that each fourth matching cost layer is updated to each fourth matching cost layer plus the product of the previous fourth sub-matching cost layer and the predetermined convolution kernel, and after the last fourth sub-matching cost layer is updated, each fourth sub-matching cost layer is merged into a fourth convolution matching cost body as a convolved matching cost body.
[0134] As mentioned above Figure 7 According to the description, spatial filtering (i.e., matching cost accumulation) can be performed from two dimensions, the height and width (or length) of the matching cost volume, which can be specifically divided into four processes in the following four directions: from top to bottom, from bottom to top, from left to right, and from right to left. The calculation methods of these four processes are similar. Performing both the process from top to bottom and the process from bottom to top (or both the process from left to right and the process from right to left) is to balance the cost. By updating the sub-matching cost layer, the continuity of the matching cost in any direction can be increased.
[0135] Traditional pixel depth prediction methods usually use end-to-end training, and do not combine some stereo matching methods with convolutional neural networks. For example, the above-mentioned spatial filtering is not performed, which makes the traditional methods often have disconnected boundaries when processing object boundaries. However, after the above-mentioned spatial filtering (convolution), the matching cost volume is reduced or there is no disconnected boundary.
[0136] Figure 8A schematic diagram of a process for optimizing a device pose (e.g., a camera pose) and a process for optimizing a map point depth according to an exemplary embodiment of the present disclosure is shown, wherein a map point can be understood as a pixel point with a global map coordinate in a keyframe.
[0137] like Figure 8 As shown in , in the process of optimizing the camera pose, for the current frame, newly matched pixel points can be obtained (for example, obtained through map point projection), the newly matched pixel points can be used as replacements for the original matched pixel points, and the original camera pose is updated to the new camera pose with reference to the key frame before the current frame; in the process of optimizing the map point depth, for the current frame, the newly matched pixel points have new depth information (updated depth), and the coordinates of the newly matched pixel points can be obtained in combination with the new camera pose to update the global map.
[0138] exist Figure 8 In the exemplary embodiment shown, the depth information that needs to be determined can be determined based on the multi-view geometry theory. The application premise of the multi-view geometry theory is to meet the following assumptions, including: assuming that the object corresponding to the pixel point for which the depth information is to be calculated in the scene where the camera is located is static and does not move.
[0139] However, in practical applications, objects in the scene are often dynamic. For example, in autonomous driving applications, the car on the road is dynamic, and when the point on the car where the camera is located is used as a map point to participate in the above optimization process, it will bring errors to the optimization results.
[0140] In order to meet the assumption that the object is static, the pixels in the current frame belonging to the dynamic object may be determined, and the pixels corresponding to the dynamic object may be removed from the map based on the determination result.
[0141] As an example, the step of determining pixel points in the current frame belonging to a dynamic object includes: determining object state information corresponding to the current frame; and determining pixel points in the current frame belonging to the dynamic object based on the object state information.
[0142] As an example, the step of determining the object state information corresponding to the current frame includes: performing feature extraction on the image of the current frame through a feature extraction neural network; determining the category attribute information of each object in the current frame based on the feature map obtained through feature extraction; and obtaining the object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0143] As an example, the step of obtaining object state information corresponding to the current frame based on category attribute information of each object in the current frame includes: determining optical flow information between the current frame and a frame previous to the current frame; obtaining a static object mask corresponding to the current frame based on the optical flow information and the category attribute information of each object in the current frame, to obtain object state information corresponding to the current frame.
[0144] The reason why static object masks are used to determine object status information is that: in practice, the applicant has found that masks of different types of objects can be directly obtained based on image segmentation methods, so that objects with weak dynamic attributes (low possibility of being identified as dynamic objects), such as traffic signs, road surfaces, doors and windows, etc., can be directly identified as static objects based on the semantic information obtained by semantic segmentation of pixel points. However, image segmentation methods usually perform semantic segmentation based on a single frame to identify static objects, and it is difficult to identify whether the boundaries of objects that are difficult to distinguish from the surrounding environment belong to static objects or dynamic objects.
[0145] In order to avoid the problems caused by recognition based on a single frame, it is considered to use "optical flow" for representing changes between frames (for example, position changes) to assist in object recognition.
[0146] Fig. 9 A schematic diagram illustrating an operation of acquiring a static object mask according to an exemplary embodiment of the present disclosure.
[0147] like Fig. 9 As shown in , a binocular video stream may be input, the input binocular video stream includes images of a plurality of consecutive frames (key frames), each image including a left eye image and a right eye image. Multiple feature extraction networks with parameter sharing may be used to extract feature maps of each key frame respectively.
[0148] Subsequently, using the trained neural network for optical flow detection (for the convenience of description, it is called the first convolutional network), prediction is performed on the feature map of the current key frame and the feature map of the previous frame of the current frame to obtain the optical flow map between the current key frame and the previous frame of the current key frame; using the pre-trained neural network for motion and static detection (for the convenience of description, it is called the second convolutional network), prediction is performed on the feature map of the current frame to obtain the static object bounding box corresponding to the current key frame.
[0149] The static object bounding box is connected to the light flow map; a pre-trained neural network for dynamic state prediction (for the convenience of description, it is called the third convolutional network) is used to predict the connected static object bounding box and light flow map to obtain a static object mask.
[0150] As an example, Figure 6 Two-dimensional convolutional neural network in Fig. 9 The feature extraction network can share weights.
[0151] In this exemplary embodiment, the trained second convolutional network can be used to predict object category attribute information, for example, objects are divided into multiple categories, and vehicles, people, animals, etc. belonging to the first category have stronger dynamic attributes (high probability of being identified as dynamic objects), while traffic signs, tables, chairs, road surfaces, etc. belonging to the second category have weaker dynamic attributes. Objects with weaker dynamic attributes are regarded as potential static objects.
[0152] In addition, the feature map of the key frame and the feature map of the previous frame of the key frame can be connected, and the first convolutional network can be used to predict the connected feature map to obtain the optical flow information (e.g., optical flow map) between the previous and next frames. The optical flow information and the static object bounding box are used as inputs of the third convolutional neural network to predict the static object mask. The static object mask can be a binary image that can represent the category of each pixel in the current key frame (the category includes static object category and dynamic object category).
[0153] In order to further improve the accuracy of positioning, maps can be fused to combine the advantages of various maps.
[0154] As an example, the current global sparse map and the local dense map after pixel culling can be merged into a global dense map, specifically including: gridding the local dense map; updating the vertices of each divided grid to the global sparse map after pixel culling; updating the pixels within each grid to the global sparse map after pixel culling, wherein the global dense map includes: a global sparse map after pixel culling, grid vertex update, and grid pixel update.
[0155] Fig.10 A schematic diagram showing a map fusion operation according to an exemplary embodiment of the present disclosure.
[0156] like Fig.10 As shown in , for the input image, a local dense map can be obtained through deep stereo matching operations, static object masks can be obtained through static object detection, and basic SLAM operations (e.g., Figure 2 or Figure 3 A global sparse map can be obtained by using the description of the related description. The static object mask can be used to remove the pixels corresponding to the dynamic objects from the global sparse map. The local dense map is meshed, and the meshed local dense map is fused with the global sparse map after pixel culling to obtain a global dense map. The fusion process may include: updating the depth information of the pixel points as the mesh vertices; updating the depth information of the pixel points in the mesh, and the obtained global dense map is credible and can be used for the cluster optimization described above.
[0157] In the above operation, the purpose of meshing is to improve the map fusion speed. After meshing, the depth information of the pixels as mesh vertices can be updated first, and then the depth information of the pixels in the mesh can be updated, thereby updating the depth information of the pixels from coarse to fine.
[0158] For the existing depth map stitching methods, stitching can only be performed if there are many overlapping areas in the two depth maps (the depth information of the pixels in the overlapping areas is the same), which results in many constraints and thus leads to low efficiency.
[0159] In addition, auxiliary positioning such as offline high-precision maps and / or radar maps can also be used, that is, the high-precision maps and / or radar maps are fused with the global dense map, and the fused map is used for cluster optimization.
[0160] As an example, in a global sparse map, there are not only a large number of noise points, but also relatively sparse pixels (map points), which makes it difficult to meet the needs of practical applications (for example, understanding environmental conditions based on a map). To address the problem of sparse map points, a dense map can be obtained through deep stereo matching operations, that is, a local dense point cloud map corresponding to a key frame; to address the problem of noise points, static object detection operations are used to eliminate the noise introduced by the position changes of dynamic objects in the time dimension. Credible scene three-dimensional information is the basis for accurate positioning and environmental perception, and credible scene three-dimensional information can be obtained by effectively utilizing multiple maps. For example, a global sparse map (especially a global sparse map that removes pixels corresponding to dynamic objects) is fused with a local dense map into a credible map.
[0161] As an example, when fusing a local dense map with a global sparse map, considering that the depth information of the map points in the global sparse map is calculated based on a strict geometric relationship (a set relationship based on multi-view geometry theory), the depth information is more accurate. Therefore, the map points in the local dense map can be updated to the global sparse map. The depth information of some map points (e.g., mesh vertices) can be updated first, and then the depth information of the remaining pixels can be interpolated.
[0162] The present disclosure does not limit the method of dividing the grid, and any method of dividing the grid in the map is feasible.
[0163] More specifically, the step of updating any vertex to a global sparse map after pixel culling includes: determining a vertex having global sparse map coordinates among the vertices corresponding to the grids to which the any vertex belongs; obtaining the depth information of the any vertex in the global sparse map after pixel culling based on the depth information of the determined vertex, the depth information of the any vertex in the local dense map, and the distance between the determined vertex and the any vertex; and determining the coordinates of the any vertex in the global sparse map based on the device posture corresponding to the current frame and the depth information of the any vertex in the global sparse map after pixel culling to update the global sparse map.
[0164] The step of updating any pixel point in a grid to a global sparse map after pixel culling includes: obtaining the depth information of any vertex in the global sparse map after pixel culling according to the depth information of the vertex of the grid where the any pixel point is located, the depth information of any pixel point in the local dense map, and the distance between the vertex of the grid where the any pixel point is located and the any pixel point, and determining the coordinates of the any pixel point in the global sparse map after pixel culling according to the device posture corresponding to the current frame and the depth information of any pixel point in the global sparse map after pixel culling, so as to update the global sparse map.
[0165] As an example, the step of optimizing the device posture corresponding to each frame and the current global sparse map based on the global dense map includes: based on the global dense map, the device posture corresponding to each key frame, and the current global sparse map, performing cluster optimization on the device posture corresponding to each key frame and the current global sparse map.
[0166] Fig.11 A schematic diagram showing an operation of performing map fusion based on grid division according to an exemplary embodiment of the present disclosure.
[0167] exist Fig.11 In the exemplary embodiment shown, the local dense map is meshed, and in the process of updating each mesh vertex to the global sparse map in sequence, the depth information d of the pixel point p as a mesh vertex in the global dense map can be calculated by the following formula: p :
[0168]
[0169] The depth information d of the pixel point p′ in the grid in the global dense map is calculated by the following formula p′ :
[0170]
[0171] Among them, d l,p Represents the depth information of pixel p in the local dense map, d g,q Represents the depth information of pixel q in the global sparse map, q represents the set Ω p \M pixels, Ω p represents the set of pixels in the four grids adjacent to the pixel p in the local dense map, Ω p \M indicates that the p The set after removing the pixels corresponding to dynamic objects, N p Represents Ω p The number of pixels with global sparse map coordinates in each pixel in, D(p,q) represents the distance between pixel p and pixel q, d l,q represents the depth information of pixel q in the local dense map, d l,p′ represents the depth information of pixel p′ in the local dense map, q k represents the vertex of the grid where the pixel point p′ is located, Indicates q k Depth information in the global sparse map, Represents vertex q k The depth information in the local dense map, D(p′,q k ) represents the pixel point p′ and the vertex q k The distance between.
[0172] In addition, it should be noted that the map fusion method includes but is not limited to: fusing the high-precision map and / or radar map with the global sparse map or fusing the global sparse map by removing the pixels corresponding to the dynamic objects.
[0173] As an example, the step of optimizing the device posture corresponding to each frame and the current global sparse map based on the global dense map includes: based on the global dense map, the device posture corresponding to each key frame, and the current global sparse map, performing cluster optimization on the device posture corresponding to each key frame and the current global sparse map.
[0174] Fig.12 FIG. 1 is a schematic diagram showing a cluster optimization operation according to an exemplary embodiment of the present disclosure. Fig.12 In the exemplary embodiment shown, the map points in the global dense map can be divided into two categories: map points from the global sparse map and map points from the local dense map (and not in the global sparse map, that is, map points without the global sparse map). In the cluster optimization operation, the device poses corresponding to each key frame can be optimized based on the global dense map (corresponding to Fig.12Specifically, based on the map points in the global dense map that are not in the global sparse map, the device pose corresponding to each key frame is optimized, that is, the map points in the local dense map are used to optimize the device pose. In addition, based on the device poses corresponding to each key frame after optimization, the current global sparse map is optimized (corresponding to Fig.12 ), so that the map points in the global sparse map will be optimized with the optimized device posture, but the map points in the local dense map will not be changed. After each cluster optimization, the map fusion method can be used to obtain an updated global dense map (the optimized global sparse map and the local dense map are fused to obtain an updated global dense map) for the next cluster optimization.
[0175] According to another exemplary embodiment of the present disclosure, when the device posture corresponding to the current frame and the current global sparse map are determined based on the image of the current frame, the pixels belonging to the dynamic object in the current frame can be determined; the pixels belonging to the dynamic object can be eliminated from the current global sparse map, wherein the pixel elimination can be performed for an optimized or unoptimized global sparse map. The specific operation of eliminating the pixels belonging to the dynamic object from the global sparse map has been described above and will not be repeated here.
[0176] According to the present disclosure, it can also have strong robustness when positioning in scenes with dynamic objects, large areas of textureless areas, drastic changes in lighting, etc. Through deep stereo matching operations, depth information can be predicted based on a single-frame stereo image, thereby providing a large number of valid map points for map construction. Through static object detection operations, dynamic objects in the scene can be identified, and map points corresponding to the dynamic objects can be removed to ensure the correctness of the geometric constraints of the device posture and map points. Through map fusion operations, different maps are fused to obtain a dense global map for bundle optimization, thereby improving the robustness of optimization for device posture and maps.
[0177] Fig.13 1 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. Fig.13 As shown in, an electronic device according to an exemplary embodiment of the present disclosure includes: an image acquisition unit 1301, used to acquire an image of a current frame; a posture and map determination unit 1302, used to determine the device posture corresponding to the current frame and the current global sparse map based on the image of the current frame.
[0178] As an example, the electronic device also includes: a global dense map acquisition unit, which is used to acquire a global dense map corresponding to the current frame when the current frame is a key frame; an optimization unit, which optimizes the device posture corresponding to each key frame and the current global sparse map based on the global dense map.
[0179] As an example, the global dense map acquisition unit includes: a local dense map acquisition unit, used to acquire a local dense map corresponding to the current frame; wherein the global dense map acquisition unit determines the global dense map corresponding to the current frame based on the local dense map and the current global sparse map.
[0180] As an example, the local dense map acquisition unit performs feature extraction on the image of the current frame through a feature extraction neural network; obtains a matching cost body based on the feature map obtained through feature extraction through an hourglass neural network; determines the depth information of each pixel in the current frame based on the matching cost body, and obtains a local dense map corresponding to the current frame.
[0181] As an example, the local dense map acquisition unit acquires an initial matching cost volume according to the feature map; and obtains the matching cost volume based on the initial matching cost volume through the Hourglass neural network.
[0182] As an example, the feature map includes a feature map of a left image and a feature map of a right image, wherein the local dense map acquisition unit connects the feature map of the left image and the feature map of the right image to obtain an initial matching cost volume.
[0183] As an example, the local dense map acquisition unit performs spatial convolution processing on the matching cost volume through a convolutional neural network; determines the disparity between the left-eye image and the right-eye image for each pixel in the current frame based on the matching cost volume after the spatial convolution processing; determines the depth information of each pixel in the current frame based on the disparity of each pixel, and obtains a local dense map corresponding to the current frame.
[0184] As an example, the local dense map acquisition unit performs the following processing on the matching cost body according to the set multiple directions: according to the current set direction, the matching cost body is divided to obtain multiple matching cost layers, and convolution processing is performed on each matching cost layer in turn according to the current set direction, wherein, when convolution processing is performed on any matching cost layer, the convolution processing is performed after accumulating the convolution result of the previous matching cost layer to any matching cost layer.
[0185] As an example, the local dense map acquisition unit obtains the disparity probability distribution between the left-eye image and the right-eye image for each pixel in the current frame using the flexible maximum transfer function and the matching cost volume after spatial convolution processing; and determines the cumulative value of the disparity probability distribution corresponding to each pixel as the disparity between the left-eye image and the right-eye image for the corresponding pixel.
[0186] As an example, the global dense map acquisition unit includes: a dynamic object determination unit, used to determine the pixel points belonging to the dynamic object in the current frame; and to eliminate the pixel points belonging to the dynamic object from the current global sparse map, wherein the global dense map acquisition unit merges the current global sparse map after pixel elimination and the local dense map into a global dense map.
[0187] As an example, the dynamic object determination unit determines object state information corresponding to the current frame; and based on the object state information, determines pixel points in the current frame that belong to the dynamic object.
[0188] As an example, the dynamic object determination unit extracts features from the image of the current frame through a feature extraction neural network; determines the category attribute information of each object in the current frame based on the feature map obtained through feature extraction; and obtains object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0189] As an example, a dynamic object determination unit determines optical flow information between the current frame and a frame previous to the current frame; obtains a static object mask corresponding to the current frame based on the optical flow information and category attribute information of each object in the current frame, and obtains object state information corresponding to the current frame.
[0190] As an example, the global dense map acquisition unit includes a fusion unit, which is used to grid the local dense map; update the vertices of each divided grid to the global sparse map after pixel culling; and update the pixels within each grid to the global sparse map after pixel culling.
[0191] As an example, the fusion unit determines the vertices having global sparse map coordinates among the vertices of the mesh adjacent to the current vertex; obtains the depth information of the current vertex in the global sparse map after pixel culling based on the depth information of the determined vertex, the depth information of the current vertex in the local dense map, and the distance between the determined vertex and the current vertex; and determines the coordinates of the current vertex in the global sparse map based on the device pose corresponding to the current vertex and the obtained depth information to update the global sparse map.
[0192] As an example, the fusion unit obtains the depth information of the current vertex in the global sparse map after pixel culling based on the depth information of the vertices of the grid where the pixel point in the grid is located, the depth information of the pixel point in the grid in the local dense map, and the distance between the vertices of the grid where the pixel point in the grid is located and the pixel point in the grid, and determines the coordinates of the pixel point in the grid in the global sparse map based on the device posture corresponding to the pixel point in the grid and the obtained depth information to update the global sparse map.
[0193] As an example, the optimization unit performs cluster optimization on the device poses corresponding to each key frame and the current global sparse map based on the global dense map, the device poses corresponding to each key frame, and the current global sparse map.
[0194] As an example, the electronic device further includes: a dynamic object determination unit, configured to determine pixel points belonging to dynamic objects in the current frame; and remove pixel points belonging to dynamic objects from the current global sparse map.
[0195] As an example, the dynamic object determination unit determines object state information corresponding to the current frame; and based on the object state information, determines pixel points in the current frame that belong to the dynamic object.
[0196] As an example, the dynamic object determination unit extracts features from the image of the current frame through a feature extraction neural network; determines the category attribute information of each object in the current frame based on the feature map obtained through feature extraction; and obtains object state information corresponding to the current frame based on the category attribute information of each object in the current frame.
[0197] As an example, a dynamic object determination unit determines optical flow information between the current frame and a frame previous to the current frame; obtains a static object mask corresponding to the current frame based on the optical flow information and category attribute information of each object in the current frame, and obtains object state information corresponding to the current frame.
[0198] According to another exemplary embodiment of the present disclosure, an electronic device is provided, wherein the electronic device comprises: a processor; and a memory storing a computer program, and when the computer program is executed by the processor, the method as described above is implemented.
[0199] It should be understood that the specific implementation of the electronic device according to the exemplary embodiment of the present disclosure can refer to the embodiment of the present invention. Figures 1 to 12 The relevant specific implementation methods described are implemented and will not be repeated here.
[0200] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the method as described above is implemented.
[0201] Computer readable storage media is any data storage device that can store data read by a computer system. Examples of computer readable storage media include read-only memory, random access memory, read-only CD-ROM, magnetic tape, floppy disk, optical data storage device, and carrier wave (such as data transmission through the Internet via wired or wireless transmission path).
[0202] In addition, it should be understood that the various units of the electronic device according to the exemplary embodiments of the present disclosure can be implemented as hardware components and / or software components. Those skilled in the art can, for example, use a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) to implement the various units according to the processing performed by the various units defined.
[0203] In addition, the method according to the exemplary embodiment of the present disclosure can be implemented as a computer code in a computer-readable storage medium. Those skilled in the art can implement the computer code according to the description of the above method. When the computer code is executed in a computer, the above method of the present disclosure is implemented.
[0204] Although some exemplary embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that modifications may be made to these embodiments without departing from the principles and spirit of the present disclosure, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for obtaining a map, in, The method comprises: Determining, based on frames including a current frame, a device pose and / or a global sparse map corresponding to the current frame; Obtaining a global dense map corresponding to the current frame; Based on the global dense map, optimizing the device pose corresponding to the current frame and / or the current global sparse map, The step of obtaining a global dense map corresponding to the current frame includes: Based on the current frame, obtaining a local dense map corresponding to the current frame, Based on the local dense map and the current global sparse map, determining a global dense map corresponding to the current frame, Wherein, obtaining the local dense map includes: A right feature map corresponding to the right image and a left feature map corresponding to the left image are obtained by inputting the left image and the right image in the current frame into a feature extraction network. Based on the left feature map and the right feature map, the initial matching cost volume of the matching pixels between the left image and the right image is obtained. By inputting the initial matching cost body into the artificial neural network to predict the matching cost body, Determine the depth information of each pixel in the current frame based on the predicted matching cost volume, and The local dense map is determined based on the determined depth information.
2. The method according to claim 1, in, The feature extraction network includes a left feature extraction network for inputting a left image and a right feature extraction network for inputting a right feature image, wherein the left feature extraction network and the right feature extraction network share weights.
3. The method according to claim 1, in, The step of obtaining the initial matching cost volume includes: obtaining the initial matching cost volume by connecting the left feature map and the right feature map.
4. The method according to claim 1, in, The step of predicting the matching cost volume includes: predicting the matching cost volume based on the initial matching cost volume and an hourglass neural network.
5. The method according to any one of claims 2 to 4, in, The step of determining the depth information of each pixel in the current frame according to the predicted matching cost volume comprises: Performing spatial convolution processing on the predicted matching cost volume through a convolutional neural network; Determine the disparity between the left-eye image and the right-eye image for each pixel in the current frame according to the predicted matching cost volume after the spatial convolution processing; Depth information of each pixel in the current frame is determined according to the disparity of each pixel.
6. The method according to claim 5, in, The step of performing spatial convolution processing on the predicted matching cost volume comprises: The predicted matching cost volume is processed as follows according to the set multiple directions: The predicted matching cost volume is segmented according to the currently set direction to obtain a plurality of matching cost layers, and convolution processing is performed on each matching cost layer in turn according to the currently set direction.
7. The method according to claim 6, in, When convolution processing is performed on any matching cost layer, the convolution processing is performed after accumulating the convolution result of the matching cost layer with the matching cost layer.
8. The method according to claim 5, in, The step of determining the disparity between the left-eye image and the right-eye image for each pixel in the current frame comprises: Obtaining a disparity probability distribution between a left-eye image and a right-eye image for each pixel in the current frame by using a flexible maximum transfer function and the predicted matching cost volume after spatial convolution processing; The disparity is determined based on the disparity probability distribution.
9. The method according to claim 8, in, The step of determining the disparity based on the disparity probability distribution includes: determining a cumulative value of the disparity probability distribution corresponding to each pixel point as the disparity between the left-eye image and the right-eye image of the corresponding pixel point.
10. The method according to claim 1, in, The step of determining a global dense map corresponding to the current frame based on the local dense map and the current global sparse map comprises: Determining pixels belonging to dynamic objects in the current frame; Eliminate pixels belonging to dynamic objects from the current global sparse map; The current global sparse map after pixel culling and the local dense map are merged into a global dense map.
11. The method according to claim 10, in, The step of determining the pixel points belonging to the dynamic object in the current frame comprises: Determining object state information corresponding to the current frame; Based on the object state information, pixels in the current frame belonging to a dynamic object are determined.
12. The method according to claim 11, in, The step of determining object state information corresponding to the current frame comprises: Performing feature extraction on the image of the current frame through a feature extraction neural network; Determining the category attribute information of each object in the current frame according to the feature map obtained by feature extraction; According to the category attribute information of each object in the current frame, object state information corresponding to the current frame is obtained.
13. The method according to claim 12, comprising the step of obtaining object state information corresponding to the current frame according to the category attribute information of each object in the current frame, include: Determine optical flow information between the current frame and a frame previous to the current frame; According to the optical flow information and the category attribute information of each object in the current frame, a static object mask corresponding to the current frame is acquired to obtain object state information corresponding to the current frame.
14. The method according to any one of claims 10 to 13, in, The step of fusing the current global sparse map after pixel culling and the local dense map into a global dense map comprises: Gridding the local dense map; Update the vertices of each divided grid to the global sparse map after pixel culling; Update the pixels in each grid to the global sparse map after pixel culling.
15. The method of claim 14, in, The steps to update any vertex to the global sparse map after pixel culling include: Determine, among the vertices corresponding to the meshes to which the any vertex belongs, a vertex having global sparse map coordinates; According to the depth information of the determined vertex, the depth information of any vertex in the local dense map, and the distance between the determined vertex and any vertex, the depth information of any vertex in the global sparse map after pixel culling is obtained, and according to the device posture corresponding to the current frame and the depth information of any vertex in the global sparse map after pixel culling, the coordinates of any vertex in the global sparse map are determined to update the global sparse map.
16. The method of claim 14, in, The steps of updating any pixel point in the grid to the global sparse map after pixel culling include: According to the depth information of the vertices of the grid where any pixel point is located, the depth information of any pixel point in the local dense map, and the distance between the vertices of the grid where any pixel point is located and the any pixel point, the depth information of any pixel point in the global sparse map after pixel culling is obtained, and according to the device posture corresponding to the current frame and the depth information of any pixel point in the global sparse map after pixel culling, the coordinates of any pixel point in the global sparse map are determined to update the global sparse map.
17. The method of claim 1, comprising the step of optimizing the device postures corresponding to each key frame and the current global sparse map based on the global dense map, include: Based on the global dense map, the device postures corresponding to the key frames, and the current global sparse map, cluster optimization is performed on the device postures corresponding to the key frames and the current global sparse map.
18. The method of claim 10, in, The step of determining the pixel points belonging to the dynamic object in the current frame comprises: Determining object state information corresponding to the current frame; Based on the object state information, pixels in the current frame belonging to a dynamic object are determined.
19. The method of claim 18, in, The step of determining object state information corresponding to the current frame comprises: Performing feature extraction on the image of the current frame through a feature extraction neural network; Determining the category attribute information of each object in the current frame according to the feature map obtained by feature extraction; According to the category attribute information of each object in the current frame, object state information corresponding to the current frame is obtained.
20. The method according to claim 19, comprising the step of acquiring object state information corresponding to the current frame according to the category attribute information of each object in the current frame, include: Determine optical flow information between the current frame and a frame previous to the current frame; According to the optical flow information and the category attribute information of each object in the current frame, a static object mask corresponding to the current frame is acquired to obtain object state information corresponding to the current frame.
21. The method of claim 10, in, The step of obtaining the global sparse map includes: Get the depth information of the pixels in the current frame; determining a device pose corresponding to the current frame; and Based on the device posture corresponding to the current frame and the depth information of the pixel points of the current frame, the three-dimensional coordinates of the pixel points of the current frame in the global sparse map are determined.
22. The method of claim 10, comprising the step of optimizing a global sparse map corresponding to the current frame based on the global dense map. include: The global sparse map is optimized based on the optimized device pose corresponding to the current frame.
23. The method of claim 10, in, The step of obtaining the global sparse map includes: Acquire first depth information corresponding to a frame previous to the current frame; Acquire second depth information corresponding to the current frame; Determining pose information of a device corresponding to a current frame based on the first depth information and the second depth information; and The global sparse map is obtained based on the posture information of the device corresponding to the current frame and the second depth information.
24. The method of claim 10, in, The step of acquiring the second depth information includes: Perform stereo matching of the left and right images in the current frame.
25. The method of claim 10, in, The step of obtaining the local dense map includes: By inputting the current frame into the neural network, an output corresponding to the depth information of the pixel point is obtained; and A local dense map is obtained based on the output.
26. The method of claim 10, in, The steps of obtaining the global dense map include: Gridding the local dense map; Based on the global sparse map after pixel culling, the depth information of the pixel points corresponding to the vertices of each divided grid is updated; and The depth information of the pixels in each grid is updated based on the updated depth information of the pixels corresponding to the vertices of each divided grid and the global sparse map after pixel culling.
27. The method of claim 10, wherein the step of determining the pixels in the current frame belonging to the dynamic object include: The pixel points belonging to the dynamic object in the current frame are determined by masking the static object.
28. The method of claim 1, further comprising: include: Get the image of the current frame.
29. The method of claim 1, in, The current frame is a key frame.
30. The method of claim 10, in, The step of determining the pixel points belonging to the dynamic object in the current frame includes: Obtaining an output of the artificial neural network classified into a static object region and a dynamic object region by inputting the current frame into the artificial neural network; and Pixels belonging to the dynamic object are determined based on the output.
31. The method of claim 23, in, The position information includes: any one of rotation information and translation information that changes in response to the device moving from the first position to the second position, or any combination of the rotation information and the translation information.
32. A computer-readable storage medium storing a computer program, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 31 is implemented.
33. An electronic device, in, The electronic device comprises: processor; A memory storing a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 31 is implemented.
34. An electronic device, in, The electronic device comprises: an image acquisition unit, configured to acquire frames including a current frame; A processor configured to execute the method according to any one of claims 1 to 31.
