SLAM MAPPING METHOD AND SYSTEM FOR A VEHICLE

DE602019058946T2Active Publication Date: 2024-09-11GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602019058946
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-02-22
Filing Date
2019-06-28
Publication Date
2024-09-11
Estimated Expiration
2039-06-28

AI Technical Summary

Technical Problem

Traditional monocular-vision SLAM methods for autonomous vehicles face challenges in initialization, leading to low success rates and incomplete environmental mapping, as they require the vehicle to move a certain distance for successful mapping initialization.

Method used

A SLAM method and system that acquires initial frames from two camera modules with overlapping view-finding scopes when the vehicle is static, determining three-dimensional spatial positions of matching feature points to create an initial SLAM map, allowing for successful initialization without vehicle movement, and subsequently transitioning to monocular-vision SLAM for enhanced mapping.

Benefits of technology

This approach increases the success rate of mapping by integrating binocular vision advantages during initialization and reduces data losses, enabling accurate and comprehensive environmental mapping without the need for vehicle movement, thus improving the reliability of SLAM systems for autonomous vehicles.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of automatic drive, in particular to a SLAM method and system for a vehicle.BACKGROUND

[0002] In the field of automatic drive, monocular-vision simultaneous localization and mapping (SLAM) is adopted by autonomous vehicles to create a map consistent with the true environment by means of a single visual sensor (such as a camera lens), and the position of the vehicles in the map can be determined.

[0003] However, traditional monocular-vision SLAM carries out initialization successfully through a dynamic method by means of images captured by the camera lens in the moving process. Therefore, during the mapping process, mapping has to be started complete the initialization of monocular-vision SLAM after the vehicle pulls out by a certain distance, which may lead to a low success rate of mapping and the lack of part of environmental information in the created map.

[0004] "Large-Scale Direct SLAM with Stereo Camaras" by Engel et al. propose a novel Large-Scale Direct SLAM algorithm for stereo cameras (Stereo LSD-SLAM) that runs in real-time at high frame rate on standard CPUs. In contrast to sparse interest-point based methods, this approach aligns images directly based on the photo consistency of all high-contrast pixels, including corners, edges and high texture areas. It concurrently estimates the depth at these pixels from two types of stereo cues: Static stereo through the fixed-baseline stereo camera setup as well as temporal multi-view stereo exploiting the camera motion. By incorporating both disparity sources, the algorithm can even estimate depth of pixels that are under-constrained when only using fixed-baseline stereo. Using a fixed baseline, on the other hand, avoids scale-drift that typically occurs in pure monocular SLAM. Further, a robust approach is proposed to enforce illumination invariance, capable of handling aggressive brightness changes between frames - greatly improving the performance in realistic settings. In experiments, state-of-the-art results are demonstrated on stereo SLAM benchmarks such as Kitti or challenging datasets from the EuRoC Challenge 3 for micro aerial vehicles.SUMMARY

[0005] The embodiments of the present disclosure disclose a SLAM method for a vehicle, which can complete initialization when the vehicle is in a static state, thus increasing the success rate of mapping.

[0006] The invention provides a SLAM method for a vehicle, a SLAM system for a vehicle and a vehicle as recited in the independent claims.

[0007] Advantageous embodiments are set out in the dependent claims.

[0008] In a first aspect, the embodiments of the present disclosure disclose a SLAM method for a vehicle. The method comprises: acquiring two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state, wherein view-finding scopes of the two camera modules are at least partially overlapped; determining, according to pre-calibrated internal parameters and external parameters of the two camera modules and a parallax of matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization; acquiring, when the initialization succeeds, an image captured by any one target camera module of the two camera modules; and carrying out, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module.

[0009] The step of performing, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module in the first aspect of the embodiments of the present disclosure comprises: matching feature points in the image captured by the target camera module and map points in a current SLAM map, wherein when the image is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map; determining a camera module pose corresponding to each frame of image captured by the target camera module according to feature points and map points matching the feature points to obtain a first camera module pose sequence of the target camera module; tracking positions, in the images captured by the target camera module, of feature points without matching map points, and determining three-dimensional spatial positions of the feature points without matching map points according to camera module poses corresponding to the images where the feature points without matching map points are located, to create new map points which are then added to the current SLAM map; acquiring, by a positioning module of the vehicle, a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence; iteratively adjusting the values of camera module poses in the pose sequence of the target camera module and the values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal; and creating a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

[0010] As an optional implementation, the method in the first aspect of the embodiments of the present disclosure further comprises: acquiring multiple frames of target images captured by the target camera module and the global SLAM map during re-localization; matching feature points in each of the multiple frames of target images and map points in the global SLAM map; determining a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching feature points to obtain a second camera module pose sequence of the target camera module; acquiring, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence; determining a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimal, wherein the origin of the global SLAM map coordinate system is the position of an optical center when the target camera module captures the initial frame; and determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map.

[0011] As an optional implementation, after the step of determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map in the first aspect of the embodiments of the present disclosure, the method further comprises: acquiring a current pose of the vehicle measured by the positioning module of the vehicle at the current moment; and determining a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

[0012] In a second aspect, the embodiments of the present disclosure disclose a SLAM system for a vehicle. The system comprises: an initialization unit configured for acquiring two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state, and determining, according to pre-calibrated internal parameters and external parameters of the two camera modules and a parallax of matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization, wherein view-finding scopes of the two camera modules are at least partially overlapped; a mapping unit configured for acquiring, when the initialization succeeds, an image captured by any one target camera module of the two camera modules, and performing, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module.

[0013] The mapping unit comprises: a matching sub-unit configured for matching feature points in the image captured by the target camera module and map points in a current SLAM map, wherein when the image is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map; a localization sub-unit configured for determining a camera module pose corresponding to each frame of image captured by the target camera module according to feature points and map points matching the feature points to obtain a first camera module pose sequence of the target camera module; a mapping sub-unit configured for tracking positions, in the images captured by the target camera module, of feature points without matching map points, and determining three-dimensional spatial positions of the feature points without matching map points according to camera module poses corresponding to the images where the feature points without matching map points are located, to create new map points which are then added to the current SLAM map; an acquisition sub-unit configured for acquiring, by a positioning module of the vehicle, a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence; and an optimization sub-unit configured for iteratively adjusting the values of camera module poses in the pose sequence of the target camera module and the values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal;

[0014] Wherein, the mapping sub-unit is also configured for creating a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

[0015] As an optional implementation, in the second aspect of the embodiments of the present disclosure, the system further comprises: a first acquisition unit configured for acquiring multiple frames of target images captured by the target camera module and the global SLAM map during re-localization; a matching unit configured for matching feature points in each of the multiple frames of target images and map points in the global SLAM map, and determining a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching feature points to obtain a second camera module pose sequence of the target camera module; a second acquisition unit configured for acquiring, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence; and a re-positioning unit configured for determining a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimal; and determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map; Wherein, the origin of the global SLAM map coordinate system is the position of an optical center when the target camera module captures the initial frame.

[0016] As an optional implementation, in the second aspect of the embodiments of the present disclosure, the system further comprises: a third acquisition unit configured for acquiring a current pose of the vehicle measured by the positioning module of the vehicle at the current moment after the re-positioning unit determines the re-localization pose of the vehicle in the global SLAM map according to the re-localization pose of the target camera module in the global SLAM map; and a positioning unit configured for determining a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

[0017] In a third aspect, the embodiments of the present disclosure disclose a vehicle comprising the SLAM system for a vehicle disclosed in the second aspect of the embodiments of the present disclosure.

[0018] In a fourth aspect, the embodiments of the present disclosure disclose a SLAM system for a vehicle, comprising: a memory having an executable program code stored therein; a processor coupled to the memory; and a camera module and a vehicle positioning module; wherein, images captured by the camera module and vehicle poses detected by the vehicle positioning module are transmitted to the processor, and the processor calls the executable program code stored in the memory to implement the method disclosed in the first aspect of the embodiments of the present disclosure.

[0019] In a fifth aspect, the present disclosure discloses a computer-readable storage medium having a computer program stored therein, wherein the computer program enables a computer to implement the method disclosed in the first aspect of the embodiments of the present disclosure.

[0020] In a sixth aspect, the embodiments of the present disclosure disclose a computer program product which, when run on a computer, enables the computer to implement the method disclosed in the first aspect of the embodiments of the present disclosure.

[0021] Compared with the prior art, the embodiments of the present disclosure have the following beneficial effects: according to the embodiments of the present disclosure, two initial frames are respectively captured by any two camera modules of a vehicle when the vehicle is in a static state; an initial SLAM map is created by means of matching feature points in the initial frames to carry out initialization by means of binocular camera modules; when the initialization succeeds, any one target camera module of the two camera modules is used to capture an image to carry out monocular-vision SLAM, so that the advantages of binocular vision and monocular vision are integrated; and the initialization is completed when the vehicle is in the static state, and the vehicle does not need to be moved by a certain distance, so that the success rate of mapping is increased, and information losses in the map are reduced.BRIEF DESCRIPTION OF THE DRAWINGS

[0022] To more clearly explain the technical solutions of the embodiments of the present disclosure, the drawings configured for describing the embodiments of the present disclosure will be briefly introduced below. Clearly, the drawings in the following description merely illustrate some embodiments of the present disclosure, and those ordinarily skilled in the art can obtain other drawings according to the following ones without creative labor. FIG. 1 is a flow chart of a SLAM method for a vehicle according to one embodiment of the present disclosure; FIG. 2 is a flow chart of a SLAM method for a vehicle according to another embodiment of the present disclosure; FIG. 3 is a flow chart of a SLAM method for a vehicle according to still another embodiment of the present disclosure; FIG. 4 is a structural diagram of a SLAM system for a vehicle according to one embodiment of the present disclosure; FIG. 5 is a structural diagram of a SLAM system for a vehicle according to another embodiment of the present disclosure; FIG. 6 is a structural diagram of a SLAM system for a vehicle according to still another embodiment of the present disclosure; FIG. 7 is a structural diagram of a SLAM system for a vehicle according to still still another embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] The technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments. Obviously, the embodiments in the following description are merely illustrative ones, and are not all possible ones of the present disclosure. All other embodiments obtained by those ordinarily skilled in the art according to the following ones without creative labor should also fall within the protection scope of the present disclosure.

[0024] It should be noted that terms such as "comprise" and "provided with" and any transformations thereof in the embodiments and accompanying drawings of the present disclosure are intended to express non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units will not be limited to the steps or units listed, and may also comprise steps or units that are not listed, or other intrinsic steps or units of the process, method, product or device.

[0025] The embodiments of the present disclosure disclose a SLAM method and system for a vehicle, which can complete initialization when the vehicle is in a static state, thus increasing the success rate of mapping. The SLAM method and system will be described in detail below.Embodiment 1

[0026] Please refer to FIG. 1 which is flow chart of a SLAM method for a vehicle according to one embodiment of the present disclosure. Wherein, the SLAM method for a vehicle in FIG. 1 is suitable for a vehicle-mounted electronic device such as a vehicle-mounted computer or an electronic control unit (ECU), and the embodiments of the present disclosure have no limitation in this aspect. As shown in FIG. 1, the SLAM method for a vehicle may comprise the following steps: 101: the vehicle-mounted electronic device acquires two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state.

[0027] In this embodiment of the present disclosure, view-finding scopes of the two camera modules are at least partially overlapped. As an optional implementation, the two camera modules may be any two camera modules of a multi-view camera system. The multi-view camera system may comprise three or more camera modules, wherein the distance between every two adjacent camera modules may be set to 10cm-20cm, and all the camera modules face the travel direction of the vehicle.

[0028] As another optional implementation, considering that the relative distance between the adjacent camera modules in the multi-view camera system is not too far, two camera modules, having the farthest relative distance therebetween, in the multi-view camera system (such as the camera modules located at two ends) may be used to capture images to ensure that a parallax of feature points in the two initial frames is large enough, and two images respectively captured by the two cameras having the farthest relative distance therebetween are used as the two initial frames.

[0029] It can be understood that the precondition of successful initialization is the existence of matching feature points in the initial frames, wherein the matching feature points are projection points obtained by projecting the same object in a three-dimensional space into the two initial frames after the object is photographed by the two camera modules, so the view-finding scopes of the two camera modules should be at least partially overlapped to ensure that matching feature points exist in the initial frames. Preferably, the two camera modules may be controlled to capture images synchronously to further ensure that matching feature points exist in the initial frames. In addition, the initial frames should meet certain requirements. For example, the number of feature points in the initial frames should be greater than a preset threshold (such as 100). That is to say, if the number of feature points in the images, corresponding to the overlapped parts of the view-finding scopes of the camera modules, captured by the two camera modules is greater than the preset threshold, the images captured by the two camera modules will be set as the initial frames; otherwise, the two camera modules will re-capture images.

[0030] 102: the vehicle-mounted electronic device determines, according to pre-calibrated internal parameters and external parameters of the two camera modules and the parallax of the matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization.

[0031] In this embodiment of the present disclosure, based on the principle of stereoscopic vision, the three-dimensional spatial positions of the matching feature points can be determined according to the parallax of the matching feature points in the two initial frames under the condition that the internal parameters (such as the focal length and the distortion factor) of the two camera modules and relative external parameters (such as the baseline, and the horizontal displacement and rotation of the right camera module with respect to the left camera module) are known.

[0032] It can be understood that the internal parameters of the camera modules can represent a mapping relationship between three-dimensional spatial points and image pixels, so the relative positions of the feature points with respect to the camera modules can be recovered based on the internal parameters of the camera modules and the positions of the feature points in the images, but depth information are not available. Furthermore, the depth information d of the feature points can be obtained according to the following simplified mathematic model: d=b*f / p, wherein b is the baseline (the distance between the optical centers of the two camera modules), f is the focal length, and n is the parallax of the matching feature points in the two frames of images.

[0033] Assume the position of the initial frame captured by any one of the two camera modules is taken as the origin of a coordinate system, three-dimensional spatial positions, with respect to the origin of the coordinate system, of feature points repeatedly appearing in the two initial frames can be determined to obtain corresponding map points which constitute the initial SLAM map, and the initialization of the SLAM system is completed.

[0034] 103: when the initialization succeeds, the vehicle-mounted electronic device acquires an image captured by any one target camera module of the two camera modules.

[0035] In this embodiment of the present disclosure, to facilitate calculation, the target camera module may be the camera module, the position of which is selected as the origin of the coordinate system. As an optional implementation, the vehicle starts to travel when the initialization succeeds, and the target camera module continuously captures multiple frames of images in the continuous traveling process of the vehicle.

[0036] 104: the vehicle-mounted electronic device carries out, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module.

[0037] In this embodiment of the present disclosure, when the initialization succeeds, monocular-vision SLAM is adopted, that is, only one target camera module is used to capture images. It can be understood that monocular-vision SLAM may specifically comprise the following steps: When the target camera module captures a first frame of image, feature points in the first frame of image and map points in the initial SLAM map are matched (namely, 2D-3D matching); For feature points and map points matching the feature points, a camera (camera module) pose corresponding to the first frame of image can be determined according to image positions of the feature points in the first frame of image and three-dimensional spatial positions of the corresponding map points matching the feature points;

[0038] For each frame of image captured after the first frame of image by the target camera module, the above step is repeated to determine a camera pose corresponding each frame of image; meanwhile, for feature points without matching map points in the images, these feature points are tracked in the images captured by the target camera module, and three-dimensional spatial positions of these feature points are worked out according to image positions of these feature points in the images and camera poses corresponding to the images where these feature points are located to obtain new map points which are then added into the SLAM map.

[0039] To sum up, a map of an environment where the vehicle is located can be created by continuously adding map points.

[0040] According to the method described in FIG. 1, a binocular camera system constituted by two camera modules is used during initialization; compared with a monocular camera system constituted by one camera module, the binocular camera system can acquire initial frames having a parallax therebetween when the vehicle is in a static state, so the vehicle does not need to be pulled out by a certain distance, and the initialization can be completed when the vehicle is in the static state, which reduces data losses during mapping; when the initialization is completed, images captured by only one camera module are configured for mapping, which, compared with a mapping solution based on the binocular camera system, can reduce the amount of image data to be processed. That is to say, the method in described FIG. 1 integrates the advantages of monocular vision and the advantages of binocular vision, thus increasing the success rate of mapping and reducing the amount of data to be processed.

[0041] In addition, Steps 101-102 may be performed when mapping is started or performed when a mapping failure is detected in the mapping process. That is to say, when a mapping failure is detected, any two camera modules, that preferably include a target camera module of the vehicle, are started to capture images which are then used as the initial frames obtained when the vehicle is in the static state. Wherein, the mapping failure may refer to a case where the number of feature points in the image captured by the target camera module is too small or a case where the number of feature points, matching map points, in the image is too small, and the embodiments of the present disclosure have no limitation in this aspect. Therefore, by performing Steps 101-102, initialization can be rapidly performed again in case of the mapping failure to conduct mapping again, and compared with the monocular camera system that performed initialization by moving the vehicle, data losses between the two times of mapping can be reduced.Embodiment 2

[0042] Please refer to FIG. 2 which is a flow chart of a SLAM method for a vehicle according to another embodiment of the present disclosure. As shown in FIG. 2, the SLAM method for a vehicle may comprise the following steps: 201: the vehicle-mounted electronic device acquires two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state.

[0043] In this embodiment of the present disclosure, the two camera modules may be any two camera modules in a multi-view camera system and may have identical or different focal lengths and field angles. However, considering that the multi-view camera system includes many camera modules, camera modules with a fixed focal length are generally adopted to reduce the amount of image data to be processed and shorten the processing time. Furthermore, to expand the view distance, different focal lengths are generally set for different camera modules to solve the problem that the focal length of each camera module cannot be changed. Moreover, the field angles of different camera modules may be different. For example, the field angles of three camera modules are 120°, 60° and 30° respectively, so that scenes within different angle ranges can be covered by different camera modules.

[0044] When the focal lengths and the field angles are identical, image effects of the two camera modules are identical, and the accuracy of feature point matching performed on the initial frames in Step 202 is relatively high. When the focal lengths and the field angles are different, the deformation degrees of an object in the images captured by the two camera modules are different, which will reduce the accuracy of feature point matching. So, when the three-dimensional spatial positions of the feature points are recovered based on binocular stereoscopic vision, the accuracy of the three-dimensional spatial positions recovered by means of initial frames captured by two camera modules with the same focal length will be higher than that of the three-dimensional spatial positions recovered by means of initial frames captured by two camera modules with different focal lengths. In this embodiment of the present disclosure, camera modules with different focal lengths are adopted, and the following steps are performed to reduce the influence of the camera modules with different focal lengths on the calculation accuracy of three-dimensional spatial positions: A first image and a second image that are respectively captured by any two camera modules of the vehicle when the vehicle is in the static state are acquired; and The first image and the second image are processed according to an image effect obtained under the same focal length, and the processed first image and the processed second image are used as the two initial frames.

[0045] Wherein, assume the focal length of one camera module of the two camera modules is f A and the focal length of the other camera module is fc, the same focal length f AC meets the condition: f AC ∈[f A , fc]. It can be understood that when parameters of the camera modules are calibrated, internal parameters of one camera modules can be separately calibrated to obtain f A and then internal parameters of the other camera module are separately calibrated to obtain f C , which means that the two camera modules are not synchronously calibrated.

[0046] By performing the above steps, images captured by the two camera modules with different focal length can be adjusted by soft focusing to have the same effect as images captured by camera modules with the same focal length to reduce the influence of the camera modules with different focus lengths on the calculation accuracy of the three-dimensional spatial positions, thus reducing the influence on the mapping accuracy.

[0047] In addition, Steps 202-203 are identical with Steps 102-103, and will no longer be detailed below.

[0048] 204: the vehicle-mounted electronic device matches the feature points in the image captured by the target camera module and map points in a current SLAM map to obtain a first camera module pose sequence of the target camera module and create new map points which are then added to the current SLAM map.

[0049] In this embodiment of the present disclosure, the current SLAM map is a SLAM map that has been established at the current moment; and when the image configured for feature point matching is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map. Specifically, a camera module pose corresponding to each frame of image captured by the target camera module can be determined according to the feature points and the map points matching the feature points to obtain the first camera module pose sequence of the target camera module, wherein poses in the first camera module pose sequence may be in one-to-one correspondence with the images captured by the target camera module;

[0050] For feature points without matching map points, positions, in the images captured by the target camera module, of the feature points without matching map points are tracked, and three-dimensional spatial positions of the feature points without matching mapping points are determined according to camera module poses corresponding to the images where the feature points without matching map points are located to create new map points which are then added to the current SLAM map.

[0051] 205: the vehicle-mounted electronic device acquires a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence by a positioning module of the vehicle.

[0052] In this embodiment of the present disclosure, an inertial measurement unit (IMU), a wheel pulse counter or other sensors may be disposed on the vehicle, and these sensors are used as the positioning module of the vehicle (such as a speedometer) to calculate the speed of the vehicle and locate the position of the vehicle. The first vehicle pose sequence may comprise multiple vehicle poses measured by the positioning module of the vehicle, and each vehicle pose corresponds to one camera module pose in the first camera module pose sequence. It can be understood that assume the target camera module captures an image at a certain moment, feature points in the image and map points are matched to determine a camera module pose corresponding to the image; meanwhile, a vehicle pose measured by the positioning module of the vehicle at this moment corresponds to the camera module pose.

[0053] 206: the vehicle-mounted electronic device iteratively adjusts the values of camera module poses in the pose sequence of the target camera module and the values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal.

[0054] In this embodiment of the present disclosure, during the iterative adjustment process, the values of the camera module poses and the values of the three-dimensional spatial positions of the map points should meet a constraint condition required by bundle adjustment. In this embodiment, it can be considered that the vehicle pose measured by the positioning module of the vehicle is relatively accurate, so on the basis of the first vehicle pose sequence, assume the values of the camera module poses and the values of the three-dimensional spatial positions of the map points are relatively accurate, the difference between the first camera module pose sequence and the first vehicle pose sequence is small. Wherein, it can be understood that camera module poses in the first camera module pose sequence may be poses in a camera coordinate system, and the vehicle poses in the first vehicle pose sequences may be poses in a vehicle coordinate system; the camera coordinate system takes the optical center of the camera module as a coordinate origin, and the vehicle coordinate system takes a certain portion of the vehicle (such as the central point of the rear axle) as a coordinate origin; and a transformational relationship between the camera coordinate system and the vehicle coordinate system can be pre-calibrated. Because the difference between the first camera module pose sequence and the first vehicle pose sequence is small, the difference between the first camera module pose sequence and the first vehicle pose sequence can be the transformational relationship between the camera coordinate system and the vehicle coordinate system, that is to say, if the first camera module pose sequence is transformed to the vehicle coordinate system based on the transformational relationship between the camera coordinate system and the vehicle coordinate system, a pose sequence obtained after transformation will coincide with the first vehicle pose sequence.

[0055] 207: the vehicle-mounted electronic device creates a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

[0056] In this embodiment of the present disclosure, the global SLAM map may be a SLAM map finally obtained when the vehicle-mounted electronic device ends the mapping process.

[0057] By implementing the method in FIG. 2, the camera system can cover the view scene to the maximum extent in a limited physical space by means of camera modules with different focal lengths, and the influence of the camera modules with different focal lengths on the calculation accuracy of the three-dimensional spatial positions can be reduced by soft focusing, so that the influence on the mapping accuracy is reduced. In addition, the accuracy of the created SLAM map can be further improved by bundle adjustment in conjunction with the positioning module of the vehicle.Embodiment 3

[0058] Please refer to FIG. 3 which is flow chart of a SLAM method for a vehicle according to another embodiment of the present disclosure. As shown in FIG. 3, the SLAM method for a vehicle may comprise the following steps: Steps 301-304 are identical with Steps 101-104, wherein Step 304 can be specifically implemented with reference to Steps 204-206, and will no longer be detailed below.

[0059] 305: the vehicle-mounted electronic device acquires multiple frames of target images captured by the target camera module and the global SLAM map during re-localization.

[0060] In this embodiment of the present disclosure, the global SLAM map is a digital description of a true environment and can be reused by the vehicle-mounted electronic device after being created. Similar to the localization method with a map by humans, the vehicle-mounted electronic device can locate the position of the vehicle in the global SLAM map to acquire the position of the vehicle in the true environment. If the vehicle travels again into the true environment indicated by the global SLAM map, or the feature points are lost in a subsequent localization process after the vehicle is re-located successfully, re-localization can be triggered to determine the position of the vehicle in the global SLAM map again. Specifically, Steps 306-309 are performed to carry out re-localization.

[0061] 306: the vehicle-mounted electronic device matches feature points in each of the multiple frames of target images and map points in the global SLAM map, and determines a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching the feature points to obtain a second camera module pose sequence of the target camera module.

[0062] In this embodiment of the present disclosure, it can be understood that each frame of image corresponds to one camera module pose in the second camera module pose sequence, and the camera module poses in the second camera module pose sequence are poses of the target camera module in the camera coordinate system.

[0063] 307: the vehicle-mounted electronic device acquires, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence.

[0064] In this embodiment of the present disclosure, vehicle poses in the second vehicle pose sequence correspond to the camera module poses in the second camera module pose sequence, the vehicle-mounted electronic device can acquire vehicle poses by means of the positioning module at the moment the target camera module captures target images, the vehicle poses constitute the second vehicle pose sequence corresponding to the second camera module pose sequence, and the vehicle poses in the second vehicle pose sequences may be poses in the vehicle coordinate system.

[0065] 308: the vehicle-mounted electronic device determines a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimum.

[0066] In this embodiment of the present disclosure, the re-localization pose of the target camera module in the global SLAM map, namely a relative transformational relationship (horizontal displacement and rotation) between the pose of the current target camera module and the origin of the global SLAM map coordinate system, is a transformational relationship between the camera coordinate system of the target camera module and the global SLAM map coordinate system; wherein, the origin of the global SLAM map coordinate system may be the position of the optical center when the target camera module captures the initial frame. If the re-localization pose of the target camera module is known, the second vehicle pose sequence in the vehicle coordinate system can be transformed to the global SLAM map based on the transformation relationship between the vehicle coordinate system and the camera coordinate system of the target camera module and the transformational relationship between the camera coordinate system and the global SLAM map coordinate system, and a third vehicle pose sequence obtained after transformation is regarded as a movement track of the vehicle in the map. The second camera module pose sequence can be regarded as a movement track of the target camera module in the map, and if the re-localization pose of the target camera module is accurate, the difference between the movement track of the target camera module in the map and the movement track of the vehicle in the map will be extremely small. Specifically, the difference between the third vehicle pose sequence and the second camera module pose sequence can be the transformational relationship between the camera coordinate system and the vehicle coordinate system.

[0067] As an optional implementation, the values of the camera module poses in the second camera module pose sequence can be iteratively adjusted continuously according to a constraint relationship between the target images limited by bundle adjustment, the camera module poses corresponding to the target images, and the three-dimensional spatial positions of the map points, and the second vehicle pose sequence is transformed to the global SLAM map with the value of the last camera module pose in the second camera module pose sequence as the re-localization pose of the target camera module or with the average value of the camera module poses in the second camera module pose sequence as the re-localization pose of the target camera module until the error between the third vehicle pose sequence and the second camera module pose sequence is minimal. The value of the re-localization pose of the target camera module under the minimum error is a final re-localization pose.

[0068] 309: the vehicle-mounted electronic device determines a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map.

[0069] In this embodiment of the present disclosure, it can be understood that the re-localization pose of the vehicle in the global SLAM map can be determined by means of the re-localization pose of the target camera module according to the transformational relationship between the vehicle coordinate system and the camera coordinate system of the target camera module.

[0070] By performing Steps 305-309, the global SLAM map can be reused to locate the vehicle, and the re-localization accuracy can be improved by multi-frame re-localization.

[0071] 310: the vehicle-mounted electronic device acquires a current pose of the vehicle measured by the positioning module of the vehicle at the current moment.

[0072] 311: the vehicle-mounted electronic device determines a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

[0073] In this embodiment of the present disclosure, the current pose measured by the positioning module of the vehicle is a pose in the vehicle coordinate system, the re-localization pose of the vehicle in the global SLAM map can be construed as the transformational relation between the vehicle coordinate system and the global SLAM map coordinate system, and thus, the current pose of the vehicle can be transformed to the global SLAM map based on the re-localization pose of the vehicle in the SLAM map.

[0074] Because the vehicle localization based on visual SLAM depends on feature point matching, the visual SLAM system cannot carry out localization once the camera modules are shielded or the number of feature points is too small when the camera modules photograph a white wall. So, in this embodiment of the present disclosure, after the vehicle-mounted electronic device carries out re-localization successfully (that is, the re-localization pose of the vehicle in the global SLAM map is determined), the current pose of the vehicle measured by the positioning module of the vehicle is transformed to the SLAM map to be used as a final localization result, so that the dependence of vehicle localization on visual information is reduced, the probability of successful vehicle localization is increased, labile factors in the visual localization process are greatly reduced, and the stability of the system in case where the vision is shielded or visual features are lost is improved.

[0075] According to the method described in FIG. 3, a binocular camera system is configured for initialization, and a monocular camera module is configured for mapping after the initialization succeeds, so that the advantages of monocular vision and binocular vision are integrated, the success rate of mapping is increased, and the amount of data to be processed is reduced. Furthermore, during the mapping process, the accuracy of the created SLAM map is further improved by bundle adjustment in conjunction with the positioning module of the vehicle. During re-localization, the re-localization accuracy is improved by multi-frame re-localization; and after re-localization, the current pose measured by the positioning module of the vehicle is transformed to the SLAM map to be used as a localization result, so that the dependence of vehicle localization on visual information is reduced, and the probability of successful vehicle localization is increased.Embodiment 4

[0076] Please refer to FIG. 4 which is a structural diagram of a SLAM system for a vehicle according to one embodiment of the present disclosure. As shown in FIG. 4, the system comprises: An initialization unit 401 configured for acquiring two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state, and determining, according to pre-calibrated internal parameters and external parameters of the two camera modules and a parallax of matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization, wherein view-finding scopes of the two camera modules are at least partially overlapped;

[0077] In this embodiment of the present disclosure, the initialization unit 401 acquires images captured by any two camera modules and uses the images as the initial frames; or, the initialization unit 401 acquires images captured by two camera modules, having a farthest relative distance therebetween, (such as the camera modules at two ends) in a multi-view camera system to which the camera modules belong, and use the images as initial frames.

[0078] In addition, if the initialization unit 401 determines that the number of feature points in the images corresponding to the overlapped parts of the view-finding scopes of the camera modules is not greater than a preset threshold, the initialization unit 401 controls the camera modules to re-capture images until images, the number of feature points in which is greater than the preset threshold, are acquired and are used as the initial frames.

[0079] A mapping unit 402 configured for acquiring, when the initialization succeeds, an image captured by any one target camera module of the two camera modules, and performing, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module.

[0080] In this embodiment of the present disclosure, it can be understood that the mapping unit 402 carries out mapping specifically as follows: The mapping unit 402 is configured for matching feature points in a first frame of image captured by the target camera module and map points in the initial SLAM map; For feature points and map points matching feature points, the mapping unit 401 determines a camera (camera module) pose corresponding to the first frame of image according to image positions of the feature points in the first frame of image and three-dimensional spatial positions of the map points matching the feature points;

[0081] For each frame of image captured after the first frame of image by the target camera module, the mapping unit 402 repeats the above operation to determine a camera pose corresponding to each frame of image; meanwhile, for feature points without matching map points, these feature points are tracked in the images captured by the target camera module, and three-dimensional spatial positions of these feature points are worked out according to the image positions of these feature points in the images and camera poses corresponding to the images where the feature points are located to obtain new map points which are then added to the SLAM map.

[0082] In addition, once detecting a mapping failure in the mapping process, the mapping unit 402 triggers the initialization unit 402 to perform the above operation, so that initialization can be performed again rapidly in case of the mapping failure to conduct mapping again. In this way, data losses between two times of mapping can be reduced for a monocular camera system that carries out initialization in the moving process of the vehicle.

[0083] According to the system shown in FIG. 4, a binocular system constituted by two camera modules is configured for initialization, so that initialization can be performed without pulling out the vehicle by a certain distance and can be completed when the vehicle is in a static state; when the initialization succeeds, images captured by one camera muddle are configured for mapping, so that the amount of image data to be processed is reduced; in this way, the advantages of monocular vision and binocular vision are integrated, the success rate of mapping is increased, and the amount of data to be processed is reduced. In addition, initialization can be performed again rapidly in case of a mapping failure, so that data losses between two times of mapping are reduced.Embodiment 5

[0084] Please refer to FIG. 5 which is a structural diagram of a SLAM system for a vehicle according to another embodiment of the present disclosure. Wherein, the SLAM system for a vehicle in FIG. 5 is obtained by optimizing the SLAM system for a vehicle in FIG. 4.

[0085] Wherein, two camera modules in the system shown in FIG. 5 have different focal lengths; correspondingly, the initialization unit 401 acquires two initial frames captured by any two camera modules of a vehicle when the vehicle is in a static state specifically as follows: The initialization unit 401 is configured for acquiring a first image and a second image that are respectively captured by any two camera modules of the vehicle when the vehicle is in the static state, processing the first image and the second image according to an image effect obtained under the same focal length, and using the processed first image and the processed second image as two initial frames.

[0086] Wherein, assume the focal length of one camera module of the two camera modules is fv and the focal length of the other camera module is fc, the same focal length f AC meets the condition: f AC ∈[f A , fc]. It can be understood that when parameters of the camera modules are calibrated. In this way, the initialization unit 401 can adjust, by soft focusing, the images captured by two camera modules with different focal lengths to have the same effect as images captured by camera modules with the same focal length, thus reducing the influence of the camera modules with different focal lengths on the calculation accuracy of three-dimensional spatial positions and reducing the influence on the mapping accuracy.

[0087] Optionally, the mapping unit 402 of the system shown in FIG. 5 may comprise: A matching sub-unit 4021 configured for matching feature points in the image captured by the target camera module and map points in a current SLAM map, wherein the current SLAM map is a SLAM map which has been created at the current moment, and when the image is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map; A localization sub-unit 4022 configured for determining a camera module pose corresponding to each frame of image captured by the target camera module according to feature points and map points matching the feature points to obtain a first camera module pose sequence of the target camera module; A mapping sub-unit 4023 configured for tracking positions, in the images captured by the target camera module, of feature points without matching map points, and determining three-dimensional spatial positions of the feature points without matching map points according to camera module poses corresponding to the images where the feature points without map points are located, to create new map points that are then added to the current SLAM map; An acquisition sub-unit 4024 configured for acquiring, by a positioning module of the vehicle, a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence, wherein the positioning unit may be an inertial measurement unit (IMU), a wheel pulse counter or other sensors, and all these sensors can be used as the positioning module of the vehicle (such as a speedometer) to calculate the travel distance of the vehicle and further locate the position of the vehicle; and An optimization sub-unit 4025 configured for iteratively adjusting the values of camera module poses in the pose sequence of the target camera module and the values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal;

[0088] Correspondingly, the mapping sub-unit 4023 is also configured for creating a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

[0089] According to the system shown in FIG. 5, the camera system can cover the view scene to the maximum extent in a limited physical space by means of camera modules with different focal lengths, and the influence of the camera modules with different focal lengths on the calculation accuracy of the three-dimensional spatial positions can be reduced by soft focusing, so that the influence on the mapping accuracy is reduced. In addition, the accuracy of the created SLAM map can be further improved by bundle adjustment in conjunction with the positioning module of the vehicle.Embodiment 6

[0090] Please refer to FIG. 6 which is a structural diagram of a SLAM system for a vehicle according to another embodiment of the present disclosure. Wherein, the SLAM system for a vehicle in FIG. 6 is obtained by optimizing the SLAM system for a vehicle in FIG. 5. As shown in FIG. 6, the SLAM system for a vehicle may further comprise: A first acquisition unit 403 configured for acquiring multiple frames of target images captured by the target camera module and the global SLAM map during re-localization; In this embodiment of the present disclosure, the first acquisition unit 403 performs the above operation when the vehicle travels again into the true environment indicated by the global SLAM map, or the feature points are lost in a subsequent localization process after the vehicle is re-located successfully; A matching unit 404 configured for matching feature points in each of the multiple frames of target images and map points in the global SLAM map, and determining a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching the feature points to obtain a second camera module pose sequence of the target camera module; A second acquisition unit 405 configured for acquiring, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence; and A re-positioning unit 406 configured for determining a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimum; and determining a re-localization pose of the vehicle in the global SLAM map according to the re-localization pose of the target camera module in the global SLAM map;

[0091] Wherein, the origin of the global SLAM map coordinate system is the position of an optical center when the target camera module captures the initial frame.

[0092] Optionally, the system in FIG. 6 may further comprise: A third acquisition unit 407 configured for acquiring a current pose of the vehicle measured by the positioning module of the vehicle at the current moment after the re-positioning unit determines the re-localization pose of the vehicle in the global SLAM map according to the re-localization pose of the target camera module in the global SLAM map; and A positioning unit 408 configured for determining a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

[0093] According to the system shown in FIG. 6, a binocular camera system is configured for initialization, and a monocular camera module is configured for mapping after initialization succeeds, so that the advantages of monocular vision and binocular vision are integrated, the success rate of mapping is increased, and the amount of data to be processed is reduced. Furthermore, during the mapping process, the accuracy of the created SLAM map is further improved by bundle adjustment in conjunction with the positioning module of the vehicle. During re-localization, the re-localization accuracy is improved by multi-frame re-localization; and after re-localization, the current pose measured by the positioning module of the vehicle is transformed to the SLAM map to be used as a localization result, so that the dependence of vehicle localization on visual information is reduced, and the probability of successful vehicle localization is increased.Embodiment 7

[0094] Please refer to FIG. 7 which is a structural diagram of a SLAM system for a vehicle according to another embodiment of the present disclosure. As shown in FIG. 7, the system may comprise: A memory 701 having an executable program code stored therein; A processor 702 coupled to the memory 701; A camera module 703; and A vehicle positioning module 704;

[0095] Wherein, images captured by the camera module 703 and vehicle poses detected by the vehicle positioning module 704 are transmitted to the processor 702, and the processor 702 calls the executable program code stored in the memory 701 to implement the SLAM methodfor a vehicle shown in any one of FIG. 1-FIG. 3.

[0096] One embodiment of the present disclosure discloses a vehicle comprising the SLAM system for a vehicle shown in FIG. 4-FIG. 7.

[0097] One embodiment of the present disclosure discloses a computer-readable storage medium having a computer program stored therein, wherein the computer program enables a computer to implement the SLAM method for a vehicle shown in any one of FIG. 1-FIG. 3.

[0098] One embodiment of the present disclosure discloses a computer program product comprising a non-transient computer-readable storage medium having a computer program stored therein, and the computer program can be operated to enable a computer to implement the SLAM method for a vehicle shown in any one of FIG. 1-FIG. 3.

[0099] It should be noted that "one embodiment" or "an embodiment" mentioned in the whole specification means that specific features, structures or characteristics related to said embodiment is included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" in the specification does not definitely refer to the same embodiment. In addition, these features, structures or characteristics can be combined in one or more embodiments in any appropriate manners. Those skilled in the art should understand that the embodiments described in the specification are optional ones, and actions and modules involved in these optional embodiments are not definitely indispensable to the present disclosure.

[0100] It should be noted that the serial numbers of the processes in the embodiments of the present disclosure do not indicate the execution sequence of these processes, and the execution sequence of the processes depends on the function and internal logic of the processes and should not limit the implementation of the embodiments of the present disclosure in any way.

[0101] The units described as separable components may be or may be not physically separated, and components displayed as units may be or may be not object units, that is, they may be located in the same place or be distributed in multiple network units. All or part of these units can be selected to fulfill the purposes of the solutions of the embodiments as actually needed.

[0102] In addition, the functional units in the embodiments of the present disclosure may be integrated in one processing unit or be physically separated, or two or more units may be integrated in one unit. The integrated units may be implemented in the form of hardware or in the form of software functional units.

[0103] When implemented in the form of software functional units and sold or used as independent products, the integrated units may be stored in a computer-accessible memory. On the basis of such a understanding, the technical solution of the present disclosure, or parts, making a contribution to the prior art, of the technical solution, or all or part of the technical solution may be embodied in the form of a software product which is stored in a memory comprising a plurality of requests to enable a computer device (such as a personal computer, a server or a network device, more specifically a processor in the computer device) to perform all or part of the steps of the method in the above embodiments.

[0104] Those ordinarily skilled in the art would appreciate that all or part of the steps of the method in the above embodiments may be implemented by relevant hardware instructed by a program which is stored in a readable storage medium, which is a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), a One-time Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically-Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM), other optical disc memories, disk memories and magnetic tape memories, or any other computer-readable media for carrying or storing data.

[0105] The SLAM method and system for a vehicle disclosed by the embodiments of the present disclosure have been introduced in detail above. In this specification, the principle and implementation of the present disclosure are expounded with embodiments, but the description of the above embodiments is merely for assisting those skilled in the art in understanding the method and core concept thereof of the present disclosure. Moreover, those ordinarily skilled in the art can make variations to the specific implementation and application scope based on the concept of the present disclosure as long as they are covered by the appended claims.

Claims

1. A SLAM method for a vehicle, characterized in that, the method comprises: acquiring (101) two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state, wherein view-finding scopes of the two camera modules are at least partially overlapped; determining (102), according to pre-calibrated internal parameters and external parameters of the two camera modules and a parallax of matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization; acquiring (103), when the initialization succeeds, an image captured by any one target camera module of the two camera modules; and performing (104), based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module; wherein the performing (104), based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module, comprises: matching feature points in the image captured by the target camera module and map points in a current SLAM map, wherein when the image is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map; determining a camera module pose corresponding to each frame of image captured by the target camera module according to feature points and map points matching the feature points to obtain a first camera module pose sequence of the target camera module; tracking positions, in the images captured by the target camera module, of feature points without matching map points, and determining three-dimensional spatial positions of the feature points without matching map points according to camera module poses corresponding to the images where the feature points without matching map points are located, to create new map points which are then added to the current SLAM map; acquiring, by a positioning module of the vehicle, a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence; iteratively adjusting values of camera module poses in the pose sequence of the target camera module and values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal; and creating a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

2. The method according to claim 1, characterized in that, the method further comprises: acquiring multiple frames of target images captured by the target camera module and the global SLAM map during re-localization; matching feature points in each of the multiple frames of target images and map points in the global SLAM map; determining a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching feature points to obtain a second camera module pose sequence of the target camera module; acquiring, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence; determining a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimal, wherein an origin of the global SLAM map coordinate system is a position of an optical center when the target camera module captures the initial frame; and determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map.

3. The method according to claim 2, characterized in that, after the determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map, the method further comprises: acquiring a current pose of the vehicle measured by the positioning module of the vehicle at a current moment; and determining a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

4. A SLAM system for a vehicle, characterized in that, the system comprises: an initialization unit (401) configured for acquiring two initial frames respectively captured by any two camera modules of a vehicle when the vehicle is in a static state, and determining, according to pre-calibrated internal parameters and external parameters of the two camera modules and a parallax of matching feature points in the two initial frames, three-dimensional spatial positions of the matching feature points to obtain map points corresponding to the matching feature points to create an initial SLAM map to complete initialization, wherein view-finding scopes of the two camera modules are at least partially overlapped; a mapping unit (402) configured for acquiring, when the initialization succeeds, an image captured by any one target camera module of the two camera modules, and performing, based on the initial SLAM map, monocular-vision SLAM according to the image captured by the target camera module; wherein the mapping unit (402) comprises: a matching sub-unit (4021) configured for matching feature points in the image captured by the target camera module and map points in a current SLAM map, wherein when the image is a first frame of image captured by the target camera module, the current SLAM map is the initial SLAM map; a localization sub-unit (4022) configured for determining a camera module pose corresponding to each frame of image captured by the target camera module according to feature points and map points matching the feature points to obtain a first camera module pose sequence of the target camera module; a mapping sub-unit (4023) configured for tracking positions, in the images captured by the target camera module, of feature points without matching map points, and determining three-dimensional spatial positions of the feature points without matching map points according to camera module poses corresponding to the images where the feature points without matching map points are located, to create new map points which are then added to the current SLAM map; an acquisition sub-unit (4024) configured for acquiring, by a positioning module of the vehicle, a first vehicle pose sequence of the vehicle corresponding to the first camera module pose sequence; and an optimization sub-unit (4025) configured for iteratively adjusting values of camera module poses in the pose sequence of the target camera module and values of three-dimensional spatial positions of map points in the current SLAM map until a projection error between the first camera module pose sequence and the first vehicle pose sequence is minimal; wherein, the mapping sub-unit is also configured for creating a global SLAM map based on the values of the camera module poses in the pose sequence of the target camera module and the values of the three-dimensional spatial positions of the map points in the current SLAM map under the minimum projection error.

5. The system according to claim 4, characterized in that, the system further comprises: a first acquisition unit (403) configured for acquiring multiple frames of target images captured by the target camera module and the global SLAM map during re-localization; a matching unit (404) configured for matching feature points in each of the multiple frames of target images and map points in the global SLAM map, and determining a camera module pose, in the global SLAM map, of the target camera module corresponding to each frame of target image according to feature points and map points matching feature points to obtain a second camera module pose sequence of the target camera module; a second acquisition unit (405) configured for acquiring, by the positioning module of the vehicle, a second vehicle pose sequence of the vehicle corresponding to the second camera module pose sequence; and a re-positioning unit (406) configured for determining a re-localization pose, in the global SLAM map, of the target camera module based on the multiple frames of target images and the second camera module pose sequence, so that when the second vehicle pose sequence is transformed to a SLAM map coordinate system of the global SLAM map by means of the re-localization pose of the target camera module, an error between a third vehicle pose sequence obtained after transformation and the second camera module pose sequence is minimal; and determining a re-localization pose, in the global SLAM map, of the vehicle according to the re-localization pose of the target camera module in the global SLAM map; wherein, an origin of the global SLAM map coordinate system is a position of an optical center when the target camera module captures the initial frame.

6. The system according to claim 5, characterized in that, the system further comprises: a third acquisition unit (407) configured for acquiring a current pose of the vehicle measured by the positioning module of the vehicle at a current moment after the re-positioning unit determines the re-localization pose of the vehicle in the global SLAM map according to the re-localization pose of the target camera module in the global SLAM map; and a positioning unit (408) configured for determining a localization pose, corresponding to the current pose, in the global SLAM map as a localization result of the vehicle at the current moment according to the current pose and the re-localization pose of the vehicle in the global SLAM map.

7. A vehicle, comprising the SLAM system for a vehicle according to any one of claims 4-6.