Vehicle positioning method and device, vehicle and medium
Through the matching of the large language model and the scene feature map and image information processing, the difficult problem of vehicle positioning in complex scenes is solved, and stable and efficient positioning in a variety of scenes is achieved.
Patent Information
- Application Number
- CN202410839580.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing autonomous vehicle positioning technology has difficulty positioning in complex scenarios such as long tunnels, indoor parking lots, and elevated roads, and cannot effectively utilize multi-modal large language models and map information, resulting in unstable positioning in different scenarios.
A large language model is used to extract the characteristic elements of the surrounding environment and matched with the constructed scene characteristic element map to determine the geographical location information of the vehicle. The convolutional neural network and deep learning network are used to process the image information and generate target feature forms to improve positioning accuracy.
It enhances the positioning capability in the absence of signal, improves the speed and reliability of vehicle positioning, and can achieve stable positioning in a variety of scenarios.
Smart Images

Figure CN118762080A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a vehicle positioning method, a vehicle positioning device, a computer-readable storage medium and a vehicle. Background Art
[0002] The positioning technologies used in current autonomous driving technologies mainly include satellite positioning technology, positioning technology based on radio signals, and visual odometer technology. Among them, the advantages of satellite positioning technology are global coverage, high precision and independence, but it is easily affected by obstructions and weather, and the solution is relatively complex. Positioning technology based on radio signals is not available in some scenes such as valleys, tunnels, streets with high-rise buildings, and viaducts. The visual odometer uses continuous images captured by the camera to estimate the camera's motion trajectory through feature detection and matching. It has the advantages of low cost and rich information, but there are problems with computational complexity and cumulative errors. Combined with the various means mentioned above, vehicle positioning technology has been developed for many years, and its positioning capability has been greatly improved. It can also accurately position in most driving scenarios, but positioning and navigation in scenes such as long tunnels, indoor parking lots, and elevated roads is still difficult.
[0003] In the related art, the patent document with application number CN202311629689.X and titled "A vehicle autonomous driving method and system based on a large model" discloses a method of fusing external vehicle sensor data, positioning data, driving data, and text sentences input by users in the vehicle in the form of voice using a large language model to generate driving decisions. This patent only uses a large language model to fuse user input and vehicle visual perception information, and does not fully utilize the multimodal large language model's ability to match the current environment and existing maps. Therefore, it can only be used for local positioning and decision-making, and cannot achieve stable positioning in different scenarios. The patent document with application number CN202410125554.8 and titled "A method and system for autonomous driving positioning" discloses a method of using processed visual images to obtain vehicle location information, establish an autoregressive sliding average model, and calculate linear acceleration values based on the model, and use the acceleration values for spatial combined positioning. This method only uses the vehicle's own image data and acceleration data for navigation. It does not fully utilize the perceptible information around the vehicle, does not use deep neural network technology to process the data, and does not use map information to enhance positioning. Therefore, it is difficult to achieve stable positioning in different scenarios. Summary of the invention
[0004] One of the purposes of the present invention is to provide a vehicle positioning method, which uses a large language model to extract surrounding environment feature elements for matching, so that the vehicle can use environmental features that were not available in the past for positioning, thereby enhancing the positioning capability in the absence of signals; at the same time, a scene feature element map is constructed, and the scene feature element map is matched with the surrounding environment feature elements extracted by the large language model to determine the vehicle's geographic location information, thereby further improving the vehicle's positioning speed and reliability; a second purpose is to provide a vehicle positioning device; a third purpose is to provide a computer-readable storage medium; and a fourth purpose is to provide a vehicle.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] A method for locating a vehicle, the method comprising: acquiring image information around the vehicle; acquiring a target feature form of the image information, wherein the target feature form is a feature form input by a large language model; generating a language description of a current scene feature element and its position information based on the large language model and the target feature form; matching the language description and position information of the current scene feature element with a scene feature element map; and in case of successful matching, determining the vehicle's geographical location information based on the geographical location information of the successfully matched scene feature feature in the scene feature element map and the position information of the current scene feature element.
[0007] According to one embodiment of the present invention, matching is performed with a scene feature element map based on a language description and position information of a current scene feature element, including: selecting a sampling point in the scene feature element map based on a location range of a vehicle, wherein the sampling point is associated with a plurality of scene feature elements; matching the language description and position information of the current scene feature element with the text description and geographic location information of the plurality of scene feature elements associated with the sampling point, respectively, to obtain a first matching result of the language description of the current scene feature element with the text description of the plurality of scene feature elements associated with the sampling point, and a second matching result of the position information of the current scene feature element with the geographic location information of the plurality of scene feature elements associated with the sampling point; and determining a matching degree based on the first matching result and the second matching result.
[0008] According to an embodiment of the present invention, the positioning method further includes: determining that the match is successful when the matching degree is greater than or equal to a preset threshold.
[0009] According to one embodiment of the present invention, the above-mentioned positioning method also includes: when the matching degree is less than a preset threshold, determining that the matching fails; when it is determined that the matching fails, obtaining the scene feature element associated with the sampling point corresponding to the maximum value in the first matching result and / or the second matching result, and obtaining the next sampling point associated with the scene feature element; matching the language description and location information of the current scene feature element with the text description and geographic location information of multiple scene feature elements associated with the next sampling point.
[0010] According to an embodiment of the present invention, the positioning method further includes: if all sampling points selected from the corresponding scene feature elements within the vehicle's location range fail to match, randomly selecting sampling points from the scene feature elements for matching.
[0011] According to one embodiment of the present invention, obtaining the target feature form of image information includes: using a convolutional neural network to extract features of the image information, and processing the extracted features based on a visual encoder network to obtain visual features of the image information, wherein the visual features represent semantic information of the image information; using a deep learning network to map the visual features of the image information, and converting the visual features into the target feature form.
[0012] According to one embodiment of the present invention, the convolutional neural network includes one of a ResNet network, an EfficientNet network, a SwinTransformer network, and a VoVNetV2 network, and the deep learning network includes one of a multi-layer neural network and a multi-layer attention network.
[0013] According to one embodiment of the present invention, the above-mentioned positioning method also includes: determining the position information of the current scene feature element based on the depth information of each pixel point in the image information and the position information of the current scene feature element in the image, and the position information of the current scene feature element is the position information in the whole vehicle coordinate system.
[0014] According to an embodiment of the present invention, a scene feature element map is generated, including: positionally marking scene feature elements of a current frame street view image, wherein the shooting position of the current frame street view image is recorded as a sampling point of the current frame street view image; associating the sampling point position information of the current frame street view image with the position information of the corresponding scene feature elements; positionally marking scene feature elements of a next frame street view image, wherein the shooting position of the next frame street view image is recorded as the sampling point of the next frame street view image, and the distance between the sampling point of the next frame street view image and the sampling point of the current frame street view image is less than a preset distance; associating the sampling point position information of the next frame street view image with the position information of the corresponding scene feature elements; merging the scene feature elements of the next frame street view image with the same scene feature elements in the scene feature elements of the current frame street view image to obtain a scene feature element map including the next frame street view image and the current frame street view image, and so on, to obtain a scene feature element map within a target area.
[0015] According to one embodiment of the present invention, obtaining a large language model includes: obtaining graphic data of a vehicle in autonomous driving, wherein the graphic data includes an image and a text description of an environment outside the vehicle; annotating the graphic data, wherein the annotated objects include objects and logos of positioning reference points; using the graphic data as input, and training the large language model using an autoregressive training method to obtain parameters of the large language model; using the annotated graphic data as input, and training the large language model again using a supervised training method to obtain parameters of the large language model; adjusting hyperparameters and training parameters of the autoregressive training method and the supervised training method, optimizing the parameters of the large language model, and outputting a final large language model.
[0016] A vehicle positioning device comprises: an image acquisition module for acquiring image information around the vehicle; an acquisition module for acquiring a target feature form of the image information, wherein the target feature form is a feature form input by a large language model; a generation module for generating a language description of a current scene feature element and its position information based on the large language model and the target feature form; a matching module for matching the language description and position information of the current scene feature element with a scene feature element map; and a determination module for determining the vehicle's geographical location information based on the geographical location information of the successfully matched scene feature feature in the scene feature element map and the position information of the current scene feature element when the match is successful.
[0017] A computer-readable storage medium stores a vehicle location positioning program, which implements the aforementioned vehicle location positioning method when executed by a processor.
[0018] A vehicle comprises a memory, a processor and a vehicle location positioning program stored in the memory and executable on the processor. When the processor executes the vehicle location positioning program, the aforementioned vehicle location positioning method is implemented.
[0019] Beneficial effects of the present invention:
[0020] (1) The positioning method of the present invention uses a large language model to extract the surrounding environment feature elements for matching, so that the vehicle can use the environmental features that were not available in the past for positioning, thereby enhancing the positioning capability in the absence of signals;
[0021] (2) Construct a scene feature map and match it with the surrounding environment feature elements extracted by the large language model to determine the vehicle's geographic location information, further improving the vehicle's positioning speed and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a vehicle positioning method according to some embodiments of the present invention;
[0023] Figure 2 A scene feature element map within a target area according to some embodiments of the present invention;
[0024] Figure 3 A block diagram of a vehicle positioning device according to some embodiments of the present invention;
[0025] Figure 4 is a block diagram of a vehicle according to some embodiments of the present invention. DETAILED DESCRIPTION
[0026] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0028] The following describes in detail the vehicle positioning method, device, vehicle and medium according to the embodiments of the present invention with reference to the accompanying drawings.
[0029] Figure 1 FIG. 1 is a flow chart of a method for locating a vehicle according to some embodiments of the present invention. Figure 1 The vehicle positioning method of the embodiment of the present application may include the following steps:
[0030] S110, acquiring image information around the vehicle.
[0031] Specifically, the vehicle is equipped with multiple cameras in various directions to obtain image information from all directions of the vehicle, and its field of view usually covers 360° around the vehicle body.
[0032] S120, obtaining a target feature form of the image information, wherein the target feature form is a feature form input by a large language model.
[0033] Specifically, multiple images taken by each camera are obtained respectively (each camera takes one image), and then the information of each image is processed to obtain the target feature form of the image information. For example, the image features are first processed using a visual encoder network to generate visual features, and then the visual features are input into a mapping layer for processing to obtain the corresponding target feature form of the image information. The target feature form is a feature form that can be processed by the large prediction model.
[0034] S130, generating a language description of the feature element of the current scene and its position information based on the large language model and the target feature form.
[0035] Specifically, the target feature form of the image information corresponding to each image information is input into the large language model for processing to generate the language description of the current scene feature element and its position information. Among them, the current scene feature element should be unique, such as a sign with a location prompt function, etc. The position information of the current scene feature element is the position information in the vehicle coordinate system.
[0036] S140, matching the language description and position information of the current scene feature element with the scene feature element map.
[0037] Specifically, the current scene feature elements will be included in the street view data, so the street view data can be used to construct a scene feature element map. The scene feature element map includes the geographic location information of the scene feature elements and the text description of the scene feature elements. The scene feature elements in the scene feature element map are matched with the language description and location information of the current scene feature elements generated by the large language model to obtain the geographic location information of the vehicle.
[0038] S150, when the match is successful, determining the geographical location information of the vehicle according to the geographical location information of the successfully matched scene element feature in the scene feature element map and the location information of the current scene feature element.
[0039] Specifically, if the scene feature elements in the scene feature element map successfully match the language description and location information of the current scene feature elements generated by the large language model, it means that the current scene feature elements around the vehicle are the same as the scene feature elements in the scene feature element map, and the location information of the current scene feature elements around the vehicle is the location information in the whole vehicle coordinate system. According to the location information, the distance between the vehicle and the current scene feature elements can be calculated. The scene feature elements in the scene feature element map are geographic location information, such as the location information, longitude, latitude and altitude of the scene feature elements under the map. Therefore, according to the geographic location information of the scene feature elements, the position of the vehicle relative to the scene feature elements in the map can be determined, and then the geographic location information of the vehicle can be determined. If the scene feature elements in the scene feature element map fail to match the language description and location information of the current scene feature elements generated by the large language model, it means that the current scene feature elements around the vehicle are different from the scene feature elements in the scene feature element map, and the geographic location information of the vehicle cannot be determined.
[0040] It should be noted that the input of the large language model is the target feature form of image information and scene feature element map information, and the output of the large language model is the geographic location information of the vehicle. The output form of the vehicle's geographic location information is multiple digital strings, each of which corresponds to a word, and the words corresponding to each character string constitute the vehicle's geographic location.
[0041] The positioning method of the present invention uses a large language model to extract characteristic elements of the surrounding environment for matching, so that the vehicle can use environmental features that were not available in the past for positioning, thereby enhancing the positioning capability in the absence of signals; at the same time, a scene characteristic element map is constructed, and the scene characteristic element map is matched with the surrounding environment characteristic elements extracted by the large language model to determine the vehicle's geographic location information, thereby further improving the vehicle's positioning speed and reliability.
[0042] In some embodiments, matching the language description and location information of the current scene feature element with the scene feature element map includes: selecting a sampling point in the scene feature element map according to the location range of the vehicle, wherein the sampling point is associated with multiple scene feature elements; matching the language description and location information of the current scene feature element with the text description and geographic location information of the multiple scene feature elements associated with the sampling point, respectively, to obtain a first matching result of the language description of the current scene feature element with the text description of the multiple scene feature elements associated with the sampling point, and a second matching result of the location information of the current scene feature element with the geographic location information of the multiple scene feature elements associated with the sampling point; and determining the degree of matching according to the first matching result and the second matching result.
[0043] Specifically, vehicles are usually equipped with positioning receivers or combined positioning devices, which can provide positioning signals from satellites or base stations. When the positioning signal is good, the vehicle's position range will be relatively accurate, that is, it may be a precise point. At this time, the signal can be directly used as the vehicle's positioning output, but it can also be combined with the positioning method of the present invention to achieve more accurate positioning. When the positioning signal is poor, the vehicle's position range can only be roughly determined, that is, the vehicle's position range may be a large circular area. At this time, the vehicle's positioning should mainly rely on the method of the present invention.
[0044] Furthermore, a sampling point is selected in the scene feature element map according to the position range of the vehicle, the sampling point is the shooting position of the scene feature element map, and the sampling point is associated with multiple scene feature elements, each of which has its corresponding text description and geographical location information. When matching the scene feature element map according to the language description and location information of the current scene feature element, the language description of the current scene feature element is matched with the text description of each scene feature element associated with the sampling point to obtain a first matching result, and the location information of the current scene feature element is matched with the geographical location information of each scene feature element associated with the sampling point to obtain a second matching result, and the first matching result and the second matching result are weighted and summed to determine the matching degree.
[0045] It should be noted that the number of current scene feature elements generated by the large language model can be one or more. When the number of current scene feature elements is multiple, each current scene feature element should be matched with each scene feature element associated with the sampling point respectively.
[0046] Exemplarily, it is assumed that the current scene feature elements generated by the large language model are A and B, and the scene feature elements associated with the sampling point are A' and B'. When matching the scene feature element map according to the language description and location information of the current scene feature element, the current scene feature element A is matched with the scene feature element A' associated with the sampling point to obtain a matching degree, the current scene feature element A is matched with the scene feature element B' associated with the sampling point to obtain a matching degree, the current scene feature element B is matched with the scene feature element A' associated with the sampling point to obtain a matching degree, and the current scene feature element B is matched with the scene feature element B' associated with the sampling point to obtain a matching degree.
[0047] In some embodiments, the positioning method further includes: determining that the match is successful when the matching degree is greater than or equal to a preset threshold value, wherein the preset threshold value is determined according to actual conditions and is not specifically limited here.
[0048] Specifically, whether the match is successful is determined by comparing the degree of match between the language description and location information of the current scene feature element and the text description and location information of multiple scene feature elements associated with the sampling point with a preset threshold. Exemplarily, if the degree of match is greater than or equal to the preset threshold, it is determined that the current scene feature element is successfully matched with the scene feature element associated with the sampling point. At this time, the position of the vehicle relative to the scene feature element in the map can be determined based on the location information of the scene feature element, and then the location information of the vehicle can be determined.
[0049] In some embodiments, the above positioning method also includes: when the degree of matching is less than a preset threshold, determining that the matching has failed; when it is determined that the matching has failed, obtaining the scene feature element associated with the sampling point corresponding to the maximum value in the first matching result and / or the second matching result, and obtaining the next sampling point associated with the scene feature element; matching the language description and location information of the current scene feature element with the text description and geographic location information of multiple scene feature elements associated with the next sampling point.
[0050] Specifically, if the matching degree is less than a preset threshold, it is determined that the current scene feature element fails to match the scene feature element associated with the sampling point, and at this time, the first matching result and the second matching result calculated in the matching process of the current scene feature element and the scene feature element associated with the sampling point are sorted by size. The scene feature element associated with the sampling point corresponding to the maximum value of the first matching result is obtained, or the scene feature element associated with the sampling point corresponding to the maximum value of the second matching result is obtained, or the scene feature element associated with the sampling point corresponding to the first matching result and the second matching result are obtained at the same time, and the next sampling point associated with the scene feature element in the scene feature element map is obtained, and the language description and location information of the current scene feature element are matched with the text description and geographic location information of multiple scene feature elements associated with the next sampling point. The specific matching method has been described in detail in the above embodiment and will not be repeated here.
[0051] In some embodiments, the above positioning method further includes: if all sampling points selected from the corresponding scene feature elements within the vehicle's location range fail to match, randomly selecting sampling points from the scene feature elements for matching.
[0052] In some embodiments, obtaining the target feature form of image information includes: using a convolutional neural network to extract features of the image information, wherein visual features represent semantic information of the image information, and processing the extracted features based on a visual encoder network to obtain visual features of the image information; using a deep learning network to map the visual features of the image information, and converting the visual features into the target feature form.
[0053] In some embodiments, the convolutional neural network includes one of a ResNet network, an EfficientNet network, a SwinTransformer network, and a VoVNetV2 network, and the deep learning network includes one of a multi-layer neural network and a multi-layer attention network.
[0054] Exemplarily, when preprocessing each image information, first use a convolutional neural network, such as a ResNet network, an EfficientNet network, a SwinTransformer network, or a VoVNetV2 network, to extract features from the image information. Then use a visual encoder network to process the extracted features to obtain visual features of the image information, which is a multi-dimensional feature matrix that can be used to characterize the semantic information of the image information. Finally, use a deep learning network, such as a multi-layer neural network or a multi-layer attention network, to map the visual features of the image information and convert the visual features into a target feature form that can be processed by a large prediction model.
[0055] In some embodiments, the above positioning method also includes: determining the position information of the current scene feature element based on the depth information of each pixel point in the image information and the position information of the current scene feature element in the image, and the position information of the current scene feature element is the position information in the whole vehicle coordinate system.
[0056] Specifically, after the vehicle is equipped with cameras, each camera needs to be calibrated with external parameters so that each camera can be switched to the same coordinate system, that is, converted to the vehicle coordinate system. In addition, the data of each camera also needs to be time synchronized so that the data is collected at a similar time to ensure that the external environment does not change much within the time interval of data collection for each camera. For multiple images acquired by the camera, the depth information of any pixel in the multiple images can be obtained, that is, the distance information from the pixel to the camera. Since each camera and sensor has been calibrated in the vehicle coordinate system, the position of the current scene feature element at any pixel in the image in the vehicle coordinate system can be determined, so the position information of the current scene feature element can be determined.
[0057] For example, through the camera calibration method, such as the calibration method using image perspective transformation and key point matching, the camera has a 3×3 internal parameter matrix, and the camera can be calibrated in the vehicle coordinate system based on the transformation relationship from the vehicle coordinate system to the camera coordinate system. Each camera can be time synchronized by synchronous triggering or asynchronous triggering. Each camera uses the same clock source, and the timestamp of the data acquisition is attached to the camera data, and the close time matching is performed when the data is processed.
[0058] In some embodiments, generating a scene feature element map includes: marking the location of scene feature elements of a current frame street view image, wherein the shooting location of the current frame street view image is recorded as a sampling point of the current frame street view image; associating the sampling point location information of the current frame street view image with the location information of the corresponding scene feature elements; marking the location of scene feature elements of a next frame street view image, wherein the shooting location of the next frame street view image is recorded as the sampling point of the next frame street view image, and the distance between the sampling point of the next frame street view image and the sampling point of the current frame street view image is less than a preset distance; associating the sampling point location information of the next frame street view image with the location information of the corresponding scene feature elements; merging the scene feature elements of the next frame street view image with the same scene feature elements in the scene feature elements of the current frame street view image to obtain a scene feature element map including the next frame street view image and the current frame street view image, and so on, to obtain a scene feature element map within the target area.
[0059] Specifically, when a vehicle is traveling in an area that is difficult to locate, such as a tunnel, an overpass, etc., it is necessary to use the positioning method of the present invention for positioning. Therefore, it is necessary to pre-construct a scene feature element map of these difficult-to-locate areas (target areas) so that the language description and location information of the current scene feature element can be matched with the scene feature element map to further determine the geographic location information of the vehicle.
[0060] Exemplarily, a current frame of street view image is captured at a certain shooting position, and the shooting position is recorded as a sampling point of the current frame of street view image. Noteworthy scene feature elements (such as distance signs) and their geographical location information, such as the location of the scene feature elements on a map, longitude information, latitude information, and altitude information, etc., are marked from this frame of street view image. At the same time, the geographical location information of the sampling points, such as the location of the sampling points on a map, longitude information, latitude information, and altitude information, etc., are recorded. The geographical location information of the sampling points of the current frame of street view image is associated with the location information of the corresponding scene feature elements, that is, the sampling points of the current frame of street view image are connected with the scene feature elements, so that the sampling points of the current frame of street view image and the corresponding scene feature elements can index each other.
[0061] Then move the shooting position to shoot the next frame of street view image, and record the shooting position as the sampling point of the next frame of street view image. Similarly, mark the noteworthy scene feature elements and their geographical location information from this frame of street view image, and record the geographical location information of the sampling point, and associate the geographical location information of the sampling point of the next frame of street view image with the location information of the corresponding scene feature elements, so that the sampling point of the next frame of street view image and the corresponding scene feature elements can index each other, that is, connect the sampling point of the next frame of street view image with the scene feature elements. Since the distance between the sampling point of the next frame and the sampling point of the current frame is less than the preset distance, the scene feature elements of the street view image of the current frame will overlap with the scene feature elements of the street view image of the next frame, and the same scene feature elements are merged to obtain a scene feature element map containing the next frame of street view image and the current frame of street view image. By analogy, a scene feature element map in the target area is obtained as follows Figure 2 shown.
[0062] In some embodiments, obtaining a large language model includes: obtaining graphic data of the vehicle during autonomous driving, wherein the graphic data includes images and text descriptions of the environment outside the vehicle; annotating the graphic data, wherein the annotated objects include objects and logos of positioning reference points; using the graphic data as input, and training the large language model using an autoregressive training method to obtain parameters of the large language model; using the annotated graphic data as input, and training the large language model again using a supervised training method to obtain parameters of the large language model; adjusting hyperparameters and training parameters of the autoregressive training method and the supervised training method, optimizing the parameters of the large language model, and outputting a final large language model.
[0063] Specifically, a large language model should be generated through autoregressive training and supervised training of large-scale data so that it can complete the above-mentioned positioning tasks. Among them, large-scale data includes graphic data of the vehicle during autonomous driving and annotated graphic data. Graphic data refers to images (such as pictures or videos of one or more perspectives of the vehicle during driving) and text descriptions of the external environment of the vehicle (such as descriptions of objects outside the vehicle, signs and markings, overall environment and other information). The annotated objects in the annotated graphic data are objects and signs of positioning reference points. In other words, based on the graphic data and the annotated graphic data, a large language model can be generated by using autoregressive training and supervised training.
[0064] Exemplarily, the image and text data are used as input, and the autoregressive training method is used for training to obtain the parameters of the large language model. Based on the parameters, the labeled image and text data are used as input, and the large language model is trained again using the supervised training method to obtain the parameters of the large language model. Then, the hyperparameters and training parameters of the autoregressive training method and the supervised training method are adjusted to optimize the parameters of the large language model and output the final large language model. Then, the verification image information is input into the final large language model, and the image information of the verification image is compared with the semantic information output by the large prediction model to verify the validity of the large language model.
[0065] In summary, the positioning method of the present invention uses a large language model to extract characteristic elements of the surrounding environment for matching, so that the vehicle can use environmental features that were not available in the past for positioning, thereby enhancing the positioning capability in the absence of signals; at the same time, a scene characteristic element map is constructed, and the scene characteristic element map is matched with the surrounding environment characteristic elements extracted by the large language model to determine the vehicle's geographic location information, thereby further improving the vehicle's positioning speed and reliability.
[0066] Corresponding to the above embodiments, the present application also proposes a vehicle position positioning device.
[0067] Reference Figure 3The vehicle position positioning device 200 includes: an image acquisition module 210, a processing module 220, a generation module 230, a matching module 240 and a determination module 250.
[0068] Among them, the image acquisition module 210 is used to acquire image information around the vehicle. The acquisition module 220 is used to acquire the target feature form of the image information, wherein the target feature form is the feature form input by the large language model. The generation module 230 is used to generate the language description of the current scene feature element and its location information based on the large language model and the target feature form. The matching module 240 is used to match the language description and location information of the current scene feature element with the scene feature element map. The determination module 250 is used to determine the geographic location information of the vehicle according to the geographic location information of the successfully matched scene element feature in the scene feature element map and the location information of the current scene feature element in the case of successful matching.
[0069] According to one embodiment of the present invention, the matching module 240 is specifically used to select a sampling point in the scene feature element map according to the location range of the vehicle, wherein the sampling point is associated with multiple scene feature elements; the language description and location information of the current scene feature element are matched with the text description and geographic location information of the multiple scene feature elements associated with the sampling point, respectively, to obtain a first matching result of the language description of the current scene feature element and the text description of the multiple scene feature elements associated with the sampling point, and a second matching result of the location information of the current scene feature element and the geographic location information of the multiple scene feature elements associated with the sampling point; and the matching degree is determined according to the first matching result and the second matching result.
[0070] According to an embodiment of the present invention, the determination module 250 is specifically configured to determine that the match is successful when the matching degree is greater than or equal to a preset threshold.
[0071] According to one embodiment of the present invention, the determination module 250 is specifically used to, when the degree of matching is less than a preset threshold, determine that the matching fails; when it is determined that the matching fails, obtain the scene feature element associated with the sampling point corresponding to the maximum value in the first matching result and / or the second matching result, and obtain the next sampling point associated with the scene feature element; and match the language description and location information of the current scene feature element with the text description and geographic location information of multiple scene feature elements associated with the next sampling point.
[0072] According to an embodiment of the present invention, the determination module 250 is further configured to randomly select sampling points from the scene feature elements for matching if all sampling points selected from the corresponding scene feature elements within the vehicle's location range fail to match.
[0073] According to one embodiment of the present invention, the image acquisition module 210 preprocesses the image information to obtain the target feature form of the image information, specifically, uses a convolutional neural network to extract features of the image information, and processes the extracted features based on a visual encoder network to obtain visual features of the image information; uses a deep learning network to map the visual features of the image information, and converts the visual features into the target feature form.
[0074] According to one embodiment of the present invention, the convolutional neural network includes one of a ResNet network, an EfficientNet network, a SwinTransformer network, and a VoVNetV2 network, and the deep learning network includes one of a multi-layer neural network and a multi-layer attention network.
[0075] According to one embodiment of the present invention, the determination module 250 is also used to determine the position information of the current scene feature element based on the depth information of each pixel in the image information and the position information of the current scene feature element in the image, and the position information of the current scene feature element is the position information in the whole vehicle coordinate system.
[0076] According to an embodiment of the present invention, the generation module 230 generates a scene feature element map, which is specifically used to: mark the location of the scene feature elements of the current frame street view image, wherein the shooting location of the current frame street view image is recorded as the sampling point of the current frame street view image; associate the sampling point location information of the current frame street view image with the location information of the corresponding scene feature elements; mark the location of the scene feature elements of the next frame street view image, wherein the shooting location of the next frame street view image is recorded as the sampling point of the next frame street view image, and the distance between the sampling point of the next frame street view image and the sampling point of the current frame street view image is less than a preset distance; associate the sampling point location information of the next frame street view image with the location information of the corresponding scene feature elements; merge the scene feature elements of the next frame street view image with the same scene feature elements in the scene feature elements of the current frame street view image to obtain a scene feature element map including the next frame street view image and the current frame street view image, and so on, to obtain a scene feature element map within the target area.
[0077] It should be noted that the above-mentioned explanation of the embodiments and beneficial effects of the vehicle positioning method are also applicable to the vehicle positioning device of the embodiment of the present invention, and will not be elaborated in detail here to avoid redundancy.
[0078] Corresponding to the above embodiments, the present application also proposes a computer-readable storage medium.
[0079] The computer-readable storage medium of the present application stores a vehicle positioning program thereon, and when the vehicle positioning program is executed by a processor, the aforementioned vehicle positioning method is implemented.
[0080] It should be noted that the above-mentioned explanation of the embodiments and beneficial effects of the vehicle positioning method are also applicable to the computer-readable storage medium of the embodiment of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0081] Corresponding to the above embodiments, the present application also proposes a vehicle.
[0082] Reference Figure 4 The vehicle 300 of the present application includes a memory 310, a processor 320, and a vehicle positioning program stored in the memory 310 and executable on the processor 320. When the processor 320 executes the vehicle positioning program, the aforementioned vehicle positioning method is implemented.
[0083] It should be pointed out that the above-mentioned explanation of the embodiments and beneficial effects of the vehicle positioning method are also applicable to the vehicle of the embodiment of the present invention, and will not be elaborated here in order to avoid redundancy.
[0084] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0085] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0087] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0088] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0089] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
[0090] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A vehicle positioning method, characterized in that: The method comprises: Acquiring image information around the vehicle; Acquire a target feature form of the image information, wherein the target feature form is a feature form input by a large language model; Generate a language description of a feature element of a current scene and its position information based on the large language model and the target feature form; Matching the language description of the current scene feature element and the location information with a scene feature element map; In case of successful matching, the geographical location information of the vehicle is determined based on the geographical location information of the successfully matched scene element feature in the scene feature element map and the location information of the current scene feature element.
2. The vehicle positioning method according to claim 1, characterized in that: The matching of the language description of the current scene feature element and the location information with the scene feature element map includes: Selecting a sampling point in the scene feature element map according to the position range of the vehicle, wherein the sampling point is associated with a plurality of scene feature elements; Matching the language description and the location information of the current scene feature element with the text description and the location information of the multiple scene feature elements associated with the sampling point, respectively, to obtain a first matching result of the language description of the current scene feature element and the text description of the multiple scene feature elements associated with the sampling point, and a second matching result of the location information of the current scene feature element and the location information of the multiple scene feature elements associated with the sampling point; A matching degree is determined according to the first matching result and the second matching result.
3. The vehicle positioning method according to claim 2, characterized in that: The method further comprises: When the matching degree is greater than or equal to a preset threshold, it is determined that the matching is successful.
4. The vehicle positioning method according to claim 3, characterized in that: The method further comprises: When the matching degree is less than the preset threshold, determining that the matching fails; In the case of determining that the matching fails, obtaining the scene feature element associated with the sampling point corresponding to the maximum value in the first matching result and / or the second matching result, and obtaining the next sampling point associated with the scene feature element; The language description and the location information of the current scene feature element are matched with the text description and the location information of a plurality of scene feature elements associated with the next sampling point respectively.
5. The vehicle positioning method according to claim 4, characterized in that: The method further comprises: If all sampling points selected from the scene feature elements corresponding to the location range of the vehicle fail to match, sampling points are randomly selected from the scene feature elements for matching.
6. The vehicle positioning method according to claim 1, characterized in that: The target feature form of the image information is obtained, including: Using a convolutional neural network to extract features from the image information, and processing the extracted features based on a visual encoder network to obtain visual features of the image information, wherein the visual features represent semantic information of the image information; A deep learning network is used to map the visual features of the image information and convert the visual features into the target feature form.
7. The vehicle positioning method according to claim 6, characterized in that: The convolutional neural network includes one of a ResNet network, an EfficientNet network, a SwinTransformer network, and a VoVNetV2 network, and the deep learning network includes one of a multi-layer neural network and a multi-layer attention network.
8. The vehicle positioning method according to claim 1, characterized in that: The method further comprises: The position information of the current scene feature element is determined based on the depth information of each pixel in the image information and the position information of the current scene feature element in the image, and the position information of the current scene feature element is the position information in the whole vehicle coordinate system.
9. The vehicle positioning method according to claim 1, characterized in that: Generating the scene feature element map includes: Performing position marking on scene feature elements of the current frame street view image, wherein the shooting position of the current frame street view image is recorded as a sampling point of the current frame street view image; Associating the sampling point location information of the current frame street view image with the location information of the corresponding scene feature elements; Annotating the location of the scene feature elements of the next frame of street view image, wherein the shooting location of the next frame of street view image is recorded as the sampling point of the next frame of street view image, and the distance between the sampling point of the next frame of street view image and the sampling point of the current frame of street view image is less than a preset distance; Associating the sampling point location information of the next frame of street view image with the location information of the corresponding scene feature element; The scene feature elements of the next frame street view image are merged with the same scene feature elements in the scene feature elements of the current frame street view image to obtain a scene feature element map including the next frame street view image and the current frame street view image, and so on to obtain the scene feature element map in the target area.
10. The vehicle positioning method according to claim 1, characterized in that: Get a large language model, including: Acquire graphic data of the vehicle during autonomous driving, wherein the graphic data includes an image and a text description of an environment outside the vehicle; Annotating the graphic data, wherein the annotated objects include objects and identifiers of positioning reference points; Taking the image and text data as input, training is performed using an autoregressive training method to obtain parameters of the large language model; Taking the annotated image and text data as input, training the large language model again using a supervised training method to obtain parameters of the large language model; The hyperparameters and training parameters of the autoregressive training method and the supervised training method are adjusted to optimize the parameters of the large language model, and the final large language model is output.
11. A vehicle positioning device, characterized in that: The device comprises: An image acquisition module, used to acquire image information around the vehicle; An acquisition module, used for acquiring a target feature form of the image information, wherein the target feature form is a feature form input by a large language model; A generation module, used for generating a language description of a feature element of a current scene and its position information based on the large language model and the target feature form; A matching module, used for matching the language description of the current scene feature element and the location information with the scene feature element map; The determination module is used to determine the geographic location information of the vehicle according to the geographic location information of the successfully matched scene element feature in the scene feature element map and the location information of the current scene feature element when the match is successful.
12. A computer-readable storage medium, characterized in that: A vehicle positioning program is stored thereon, and when the vehicle positioning program is executed by a processor, a vehicle positioning method according to any one of claims 1-10 is implemented.
13. A vehicle, characterized in that: The invention comprises a memory, a processor and a vehicle positioning program stored in the memory and executable on the processor. When the processor executes the vehicle positioning program, the vehicle positioning method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Method of providing a textual description of a remote vehicle location
CA2302160A1
Vehicle positioning method and device, electronic equipment and storage medium
CN113591847A
Scene library establishment method and device, vehicle, storage medium and chip
CN114756700A
Target misrecognition correction method based on humanization generalized perception mechanism
CN117648929A
Additional device of safety belt for Anti-drowsy driving by using two-side high-sensitivity piezoelectric film sensor and method of controlling the same
KR1020240065953A
Cited By
Location query method, related device, equipment and storage medium
CN121147476A
Region identification method and device for monitoring point location and storage medium
CN121259713A
Geospatial position positioning method, device, equipment and product
CN121740086A
