Track generation method and device, electronic equipment and storage medium

By segmenting and sorting the target map area, the uniqueness of the trajectory group is ensured, which solves the problem of maintenance inconvenience caused by the randomness of trajectory group generation in the existing technology, and improves the maintenance efficiency of high-precision maps and the safety of autonomous vehicles.

CN118760912APending Publication Date: 2024-10-11ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410984829.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

There is randomness in the generation of trajectory groups in the existing technology, which leads to inconvenience in the maintenance of high-precision maps and inconsistent clustering results of trajectory segments within sub-grids, which affects the safety and accuracy of autonomous vehicles.

Method used

By segmenting the target map area, a sub-region raster set is obtained, and the trajectory rasters are filtered out. The preset sorting rules are used to sort and cluster the sub-trajectory data to ensure the uniqueness and accuracy of the trajectory group.

Benefits of technology

It reduces the computational complexity of sorting and clustering in subsequent steps, ensures the uniqueness of the trajectory group, simplifies the maintenance and update process of high-precision maps, and improves the safety and accuracy of autonomous vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760912A_ABST
    Figure CN118760912A_ABST
Patent Text Reader

Abstract

The invention provides a track generation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining each piece of track data in a target map region, and enabling each piece of track data to be used for representing a driving track of a vehicle in the target map region; segmenting the target map region according to a preset region segmentation mode to obtain a sub-region grid set corresponding to the target map region; track grids are screened out from the sub-region grid set, and each track grid comprises one section of sub-track data in at least one piece of track data; sorting each section of sub-track data in each track grid according to a preset sorting rule; and for each sorted track grid, clustering each segment of sub-track data contained in the track grid, and dividing the track data into track groups based on a clustering result. According to the invention, the uniqueness of the generation of the track group for forming the road network skeleton can be ensured, so that the subsequent map maintenance is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a trajectory generation method, device, electronic device and storage medium. Background Art

[0002] High-precision maps, also known as high-accuracy maps, are one of the core technologies in the field of autonomous driving technology. At present, many functions of autonomous driving of intelligent vehicles are developed based on high-precision maps. The development of high-precision maps directly affects the safety and accuracy of autonomous driving. Compared with navigation electronic maps, high-precision maps can provide lane-level road conditions with centimeter-level accuracy, higher frequency of element updates, and more sophisticated data models, which can help autonomous driving vehicles better avoid potential risks. At present, road data is usually fused based on the road network skeleton to generate high-precision maps. Establishing a road network skeleton is an important part of generating high-precision maps.

[0003] In the related art, the generation of the road network skeleton is generally to first cut and cluster the trajectories into clusters, and then use the clusters as trajectory groups. However, the current generation of trajectory groups has a certain degree of randomness, and different target maps are processed in different orders, resulting in different clustering results of trajectory segments within the sub-grid, which is not convenient for the maintenance of high-precision maps. Summary of the invention

[0004] In view of this, the present application provides a trajectory generation method, device, electronic device and storage medium, which can ensure the uniqueness of the trajectory group generated for forming a road network skeleton, so as to facilitate the subsequent map maintenance.

[0005] The embodiment of the present application provides a trajectory generation method, comprising: obtaining each trajectory data in a target map area, wherein each of the trajectory data is used to characterize a driving trajectory of a vehicle in the target map area; segmenting the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area; screening trajectory grids from the sub-area grid set, wherein each trajectory grid contains a segment of sub-trajectory data in at least one trajectory data; sorting each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule; for each of the sorted trajectory grids, clustering each segment of the sub-trajectory data contained therein, and dividing the trajectory data into trajectory groups based on the clustering result.

[0006] Compared with the related art, the embodiment of the present application has at least the following advantages: by segmenting the target map area, a sub-region grid set corresponding to the target map area is obtained, so as to facilitate the processing of the target map area. Then, based on the sub-region grid set, the trajectory grid is screened out, so as to reduce the amount of sorting and clustering calculations in subsequent steps while ensuring the accuracy of the divided trajectory group. Finally, the sub-trajectory data of each segment in each trajectory grid is sorted according to the preset sorting rules, so that the result of clustering each segment of sub-trajectory data is unique, thereby ensuring the uniqueness of the trajectory group, so as to facilitate the maintenance of subsequent maps.

[0007] In some possible implementations, before sorting the sub-trajectory data in each of the trajectory grids according to the preset sorting rule, the method further includes: obtaining the driving time corresponding to the starting point of each of the trajectory data; sorting the sub-trajectory data in each of the trajectory grids according to the preset sorting rule includes: for each of the trajectory grids, determining the trajectory data corresponding to each of the sub-trajectory data contained therein, and sorting each of the sub-trajectory data based on the order of the driving time corresponding to each of the trajectory data.

[0008] In some possible implementations, before sorting each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule, the method further includes: obtaining geographic coordinates corresponding to each piece of trajectory data, wherein the geographic coordinates include at least the starting point coordinates or the ending point coordinates of the trajectory data; sorting each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule includes: for each trajectory grid, determining each segment of the sub-trajectory data corresponding to each segment of the sub-trajectory data contained therein, and sorting each segment of the sub-trajectory data based on the geographic coordinates corresponding to each segment of the trajectory data.

[0009] In some possible implementations, clustering each segment of the sub-trajectory data contained in each of the sorted trajectory grids includes: clustering each segment of the sub-trajectory data contained in each of the sorted trajectory grids whose similarity reaches a similarity threshold.

[0010] In some possible implementations, dividing the trajectory data into trajectory groups based on the clustering result includes: clustering each segment of the sub-trajectory data whose similarity reaches the similarity threshold to obtain at least one target cluster; and using each obtained target cluster as the corresponding trajectory group.

[0011] In some possible implementations, the target map area is segmented according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area, including: selecting a reference point in the target map area as an origin to establish a plane coordinate system; and the target map area is segmented according to a preset grid size to obtain the sub-area grid set corresponding to the target map area.

[0012] In some possible implementations, filtering out the trajectory grid from the sub-region grid set includes: detecting whether each sub-region grid in the sub-region grid set contains a segment of sub-trajectory data in at least one trajectory data; when it is detected that the sub-region grid contains a segment of sub-trajectory data in at least one trajectory data, using the sub-region grid as the trajectory grid.

[0013] The second aspect of the present application discloses a trajectory generation device, comprising: an acquisition module, a segmentation module, a screening module, a sorting module and a clustering grouping module; the acquisition module is used to acquire each trajectory data in a target map area, wherein each of the trajectory data is used to characterize the driving trajectory of a vehicle in the target map area; the segmentation module is used to segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area; the screening module is used to filter out trajectory grids from the sub-area grid set, wherein each trajectory grid contains a segment of sub-trajectory data in at least one trajectory data; the sorting module is used to sort each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule; the clustering grouping module is used to cluster each segment of the sub-trajectory data contained in each of the sorted trajectory grids, and divide the trajectory data into trajectory groups based on the clustering result.

[0014] The third aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned trajectory generation method.

[0015] A fourth aspect of the present application discloses a storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned trajectory generation method.

[0016] It can be understood that the device of the second aspect, the electronic device of the third aspect and the storage medium of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flowchart of a trajectory generation method according to an embodiment of the present application.

[0018] Figure 2 It is a schematic diagram of a sub-region grid set corresponding to a target map area according to an embodiment of the present application.

[0019] Figure 3 is a schematic diagram of each track grid according to an embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of obtaining at least one target cluster corresponding to a trajectory grid according to an embodiment of the present application.

[0021] Figure 5 is a schematic diagram of obtaining a trajectory group according to an embodiment of the present application.

[0022] Figure 6 It is a schematic diagram of an application scenario according to an embodiment of the present application.

[0023] Figure 7 It is a flowchart of a trajectory generation method according to an embodiment of the present application.

[0024] Figure 8 It is a sequence diagram of each track data read by the service device A according to an embodiment of the present application.

[0025] Fig. 9 It is a sequence diagram of each track data read by the service device B according to an embodiment of the present application.

[0026] Fig.10 It is a schematic diagram of clustering results according to an embodiment of the present application.

[0027] Fig.11 It is a flowchart of a trajectory generation method according to an embodiment of the present application.

[0028] Fig.12 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application.

[0029] Fig.13 It is a schematic diagram of functional modules of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementations. It should be noted that the implementations of the present application and the features in the implementations can be combined with each other without conflict.

[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0033] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0034] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0035] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0036] Please refer to Figure 1 , is a flow chart of a trajectory generation method provided in an embodiment of the present application. This embodiment is applied to a service device and includes the following steps:

[0037] Step 101: Acquire each piece of track data in a target map area, wherein each piece of track data is used to characterize a driving track of a vehicle in the target map area.

[0038] Step 102: Segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area.

[0039] In some embodiments, the sub-region grid set can be obtained by: selecting a reference point as the origin in the target map area to establish a plane coordinate system; dividing the target map area according to a preset grid size to obtain the sub-region grid set corresponding to the target map area.

[0040] In some embodiments, the preset grid size can be determined according to actual conditions, and this is not limited in this embodiment.

[0041] For ease of understanding, the following Figure 2 How to obtain the sub-region grid set in this embodiment is specifically described:

[0042] Please refer to Figure 2 , which is a schematic diagram of a sub-region grid set corresponding to a target map region provided in an embodiment of the present application. Assuming that the reference point selected in the target map region is the point in the lower left corner and the grid size is 20m*20m, the point in the lower left corner is taken as the origin, a plane coordinate system is established, and the target map region is divided into sub-region grids according to the 20m*20m grid.

[0043] Step 103: Filter out trajectory grids from the sub-region grid set, wherein each trajectory grid contains a sub-trajectory data of at least one trajectory data.

[0044] In some embodiments, it is detected whether each sub-region grid in the sub-region grid set contains a segment of sub-trajectory data in at least one trajectory data; when it is detected that the sub-region grid contains a segment of sub-trajectory data in at least one trajectory data, the sub-region grid is used as a trajectory grid.

[0045] For ease of understanding, the following Figure 3 How to determine the trajectory grid in this embodiment is specifically described:

[0046] Please refer to Figure 3 , which is a schematic diagram of each track grid provided in the embodiment of the present application. Figure 3 It can be seen that the sub-region grid 1 does not contain a segment of trajectory data in one trajectory data, and the sub-region grid 2 contains a segment of trajectory data in multiple trajectory data, so the sub-region grid 2 is screened out as a trajectory grid.

[0047] Step 104 , sorting each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule.

[0048] In some embodiments, assuming there are 100 trajectory grids, the sub-trajectory data contained in the 100 trajectory grids are sorted respectively.

[0049] It should be noted that how to sort each segment of sub-trajectory data in each trajectory grid according to a preset sorting rule is described in detail in subsequent embodiments, and will not be described again here to avoid repetition.

[0050] Step 105 : For each sorted trajectory grid, cluster the sub-trajectory data contained therein, and divide the trajectory data into trajectory groups based on the clustering result.

[0051] In some embodiments, for each sorted trajectory grid, each segment of sub-trajectory data whose similarity reaches a similarity threshold is clustered.

[0052] In some embodiments, at least one target cluster is obtained after clustering each segment of sub-trajectory data whose similarity reaches a similarity threshold; and each obtained target cluster is used as a corresponding trajectory group.

[0053] In some embodiments, the type and size of the similarity threshold are not specifically limited and can be set according to actual needs.

[0054] For ease of understanding, the following takes the similarity as the visual field similarity as an example, combined with Figure 4 and Figure 5 How to obtain the trajectory group in this embodiment is specifically described:

[0055] Please refer to Figure 4 , which is a schematic diagram of obtaining at least one target cluster corresponding to a trajectory grid provided by an embodiment of the present application. Clustering is performed based on the field of view similarity between each segment of trajectory data in a trajectory grid. The field of view similarity between trajectory data a and trajectory data c is 0.71, the field of view similarity between trajectory data a and trajectory data d is 0.73, and the field of view similarity between trajectory data c and trajectory data d is 0.72. The trajectory data a, c, and d whose field of view similarity is greater than the first similarity threshold of 0.7 are aggregated into a target cluster.

[0056] Among them, the trajectory direction information, observable field of view and shooting device coordinate information of each trajectory point of the trajectory data corresponding to the vehicle can be obtained by installing a shooting device with a shooting function in the vehicle, and the field of view similarity between two trajectory data can be determined based on the trajectory direction information, observable field of view and shooting device coordinate information.

[0057] Please refer to Figure 5, is a schematic diagram of obtaining a trajectory group provided in an embodiment of the present application. Assuming that each target cluster includes: target cluster A, target cluster B, and target cluster C, target cluster A is taken as a trajectory group A, target cluster B is taken as a trajectory group B, and target cluster C is taken as a trajectory group C.

[0058] It is worth noting that this embodiment is applied to a service device, and the service device receives the trajectory data sent by the terminal device, and then generates a trajectory group by processing the trajectory data.

[0059] Please refer to Figure 6 , which is a schematic diagram of an application scenario provided by an embodiment of the present application. The service device 110 receives each track data sent by the terminal device 120, and then the service device 110 segments the target map area according to a preset area segmentation method, obtains a sub-area grid set corresponding to the target map area, and then selects track grids from the sub-area grid set, and sorts each segment of sub-track data in each track grid according to a preset sorting rule, and finally clusters each segment of sub-track data contained in each sorted track grid, and divides the track data into track groups based on the clustering result.

[0060] In some embodiments, the service device 110 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal device 120 and the service device 110 may be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.

[0061] In some embodiments, the terminal device 120 may be a mobile phone, portable computer, etc. carried by the driver while driving the vehicle. The terminal device may also be a device with a positioning function installed in the vehicle, which is not limited in this embodiment.

[0062] Compared with the related art, the embodiment of the present application has at least the following advantages: by segmenting the target map area, a sub-region grid set corresponding to the target map area is obtained, so as to facilitate the processing of the target map area. Then, based on the sub-region grid set, the trajectory grid is screened out, so as to reduce the amount of sorting and clustering calculations in subsequent steps while ensuring the accuracy of the divided trajectory group. Finally, the sub-trajectory data of each segment in each trajectory grid is sorted according to the preset sorting rules, so that the result of clustering each segment of sub-trajectory data is unique, thereby ensuring the uniqueness of the trajectory group, so as to facilitate the maintenance of subsequent maps.

[0063] Please refer to Figure 7 , is a flow chart of a trajectory generation method provided by an embodiment of the present application. This embodiment is a further explanation of the above-mentioned embodiment, and specifically explains: a sorting method of preset sorting rules. This embodiment is applied to a service device, and includes the following steps:

[0064] Step 201: Acquire each piece of track data in the target map area, wherein each piece of track data is used to characterize the driving track of the vehicle in the target map area.

[0065] Step 202: Segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area.

[0066] Step 203: Filter out trajectory grids from the sub-region grid set, wherein each trajectory grid contains a sub-trajectory data of at least one trajectory data.

[0067] Step 204: Obtain the driving time corresponding to the starting point of each trajectory data.

[0068] Step 205 : for each trajectory grid, determine each trajectory data corresponding to each segment of sub-trajectory data contained therein, and sort each segment of sub-trajectory data based on the order of the driving time corresponding to each trajectory data.

[0069] Step 206 : For each sorted trajectory grid, cluster the sub-trajectory data contained therein, and divide the trajectory data into trajectory groups based on the clustering result.

[0070] For ease of understanding, the following Figures 8 to 10 , the principle of sorting the data of each segment track of this embodiment is specifically described:

[0071] Please refer to Figure 8 , is a sequence diagram of sub-trajectory data corresponding to each trajectory data read by the service device A provided in an embodiment of the present application.

[0072] The sub-trajectory data includes sub-trajectory a, sub-trajectory b, sub-trajectory c, sub-trajectory d, and sub-trajectory e, where the starting time of sub-trajectory a is t1, the starting time of sub-trajectory b is t3, the starting time of sub-trajectory c is t2, the starting time of sub-trajectory d is t5, and the starting time of sub-trajectory e is t4. The order read by server A is sub-trajectory a, sub-trajectory b, sub-trajectory c, sub-trajectory d, and sub-trajectory e. Since t5>t4>t3>t2>t1, sub-trajectory a, sub-trajectory b, sub-trajectory c, sub-trajectory d, and sub-trajectory e are sorted in time order to obtain Fig.10The sequence diagram of the sub-trajectory data corresponding to each sorted trajectory data is shown.

[0073] Please refer to Fig. 9 , is a sequence diagram of sub-trajectory data corresponding to each trajectory data read by the service device B provided in the embodiment of the present application. The order read by the server B is sub-trajectory b, sub-trajectory d, sub-trajectory a, sub-trajectory e, and sub-trajectory c. Sub-trajectory b, sub-trajectory d, sub-trajectory a, sub-trajectory e, and sub-trajectory c are sorted in chronological order, and the result is also obtained. Fig.10 The sequence diagram of the sub-trajectory data corresponding to each sorted trajectory data is shown.

[0074] It can be seen that by sorting each segment of sub-trajectory data according to the order of the driving time corresponding to each trajectory data, whether the same service device reads the trajectory data multiple times or different service devices read the same trajectory data, the sequence diagram of the sub-trajectory data finally obtained is the same, thereby ensuring the uniqueness of clustering the sub-trajectory data, and then ensuring the uniqueness of the trajectory group.

[0075] Steps 201 to 203 and 206 of this embodiment are similar to steps 101 to 103 and 105 of the aforementioned embodiment, and will not be described again to avoid repetition.

[0076] Compared with the related art, the embodiment of the present application has at least the following advantages: by segmenting the target map area, a sub-region grid set corresponding to the target map area is obtained, so as to facilitate the processing of the target map area. Then, based on the sub-region grid set, the trajectory grid is screened out, so as to reduce the amount of sorting and clustering calculations in subsequent steps while ensuring the accuracy of the divided trajectory group. Finally, the sub-trajectory data of each segment in each trajectory grid is sorted according to the preset sorting rules, so that the result of clustering each segment of sub-trajectory data is unique, thereby ensuring the uniqueness of the trajectory group, so as to facilitate the maintenance of subsequent maps.

[0077] Please refer to Fig.11 , is a flow chart of a trajectory generation method provided by an embodiment of the present application. This embodiment is a further explanation of the above-mentioned embodiment, and specifically explains: another sorting method of the preset sorting rule. This embodiment is applied to a service device, and includes the following steps:

[0078] Step 301: Acquire each piece of track data in the target map area, wherein each piece of track data is used to characterize the driving track of the vehicle in the target map area.

[0079] Step 302: Segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area.

[0080] Step 303: Filter out trajectory grids from the sub-region grid set, wherein each trajectory grid contains a sub-trajectory data of at least one trajectory data.

[0081] Step 304: Obtain the geographic coordinates corresponding to each track data, wherein the geographic coordinates at least include the starting point coordinates or the ending point coordinates of the track data.

[0082] Step 305 : for each trajectory grid, determine each trajectory data corresponding to each segment of sub-trajectory data contained therein, and sort each segment of sub-trajectory data based on the geographic coordinates corresponding to each trajectory data.

[0083] Step 306: For each sorted trajectory grid, cluster the sub-trajectory data contained therein, and divide the trajectory data into trajectory groups based on the clustering result.

[0084] Steps 301 to 303 and 306 of this embodiment are similar to steps 101 to 103 and 105 of the aforementioned embodiment, and will not be described again to avoid repetition.

[0085] Compared with the related art, the embodiment of the present application has at least the following advantages: by segmenting the target map area, a sub-region grid set corresponding to the target map area is obtained, so as to facilitate the processing of the target map area. Then, based on the sub-region grid set, the trajectory grid is screened out, so as to reduce the amount of sorting and clustering calculations in subsequent steps while ensuring the accuracy of the divided trajectory group. Finally, the sub-trajectory data of each segment in each trajectory grid is sorted according to the preset sorting rules, so that the result of clustering each segment of sub-trajectory data is unique, thereby ensuring the uniqueness of the trajectory group, so as to facilitate the maintenance of subsequent maps.

[0086] Please refer to Fig.12 , is a schematic diagram of the structure of a trajectory generation device 100 provided in an embodiment of the present application. The trajectory generation device 100 comprises: an acquisition module 1, a segmentation module 2, a screening module 3, a sorting module 4 and a clustering grouping module 5.

[0087] The acquisition module 1 is used to acquire each track data in the target map area, wherein each track data is used to characterize the driving track of the vehicle in the target map area; the segmentation module 2 is used to segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area; the screening module 3 is used to screen out track grids from the sub-area grid set, wherein each track grid contains a segment of sub-track data in at least one track data; the sorting module 4 is used to sort each segment of sub-track data in each track grid according to a preset sorting rule; the clustering grouping module 5 is used to cluster each segment of the sub-track data contained in each track grid after sorting, and divide the track data into track groups based on the clustering result.

[0088] It should be noted that the above-mentioned trajectory generation device 100 provided in the embodiment of the present application can implement all the method steps in the above-mentioned trajectory generation method embodiment and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those of the method embodiment will not be described in detail here.

[0089] Please refer to Fig.13 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Fig.13 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above trajectory generation method in the electronic device 1000.

[0090] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.

[0091] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0092] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0093] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0094] In some embodiments, processor 1001 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).

[0095] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0096] This embodiment further provides a storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the trajectory generation method in the above-mentioned embodiment.

[0097] Among them, the electronic device and storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0098] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0099] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0100] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0101] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0103] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A trajectory generation method, characterized in that: include: Acquire each piece of track data in the target map area, wherein each piece of track data is used to characterize the driving track of the vehicle in the target map area; Segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area; Filtering out trajectory grids from the sub-region grid set, wherein each trajectory grid contains a sub-trajectory data of at least one trajectory data; Sorting the sub-trajectory data of each segment in each trajectory grid according to a preset sorting rule; For each of the sorted trajectory grids, each segment of the sub-trajectory data contained therein is clustered, and the trajectory data is divided into trajectory groups based on the clustering result.

2. The trajectory generation method according to claim 1, characterized in that: Before sorting the sub-trajectory data of each segment in each trajectory grid according to the preset sorting rule, the method further includes: Obtain the driving time corresponding to the starting point of each track data; The step of sorting the sub-trajectory data in each trajectory grid according to a preset sorting rule comprises: For each of the trajectory grids, the trajectory data corresponding to the segments of the sub-trajectory data contained therein are determined, and the segments of the sub-trajectory data are sorted based on the order of the driving times corresponding to the trajectory data.

3. The trajectory generation method according to claim 1, characterized in that: Before sorting the sub-trajectory data in each trajectory grid according to the preset sorting rule, the method further includes: Acquire the geographical coordinates corresponding to each piece of the trajectory data, wherein the geographical coordinates at least include the starting point coordinates or the ending point coordinates of the trajectory data; The step of sorting the sub-trajectory data in each trajectory grid according to a preset sorting rule comprises: For each of the trajectory grids, the trajectory data corresponding to the segments of the sub-trajectory data contained therein are determined, and the segments of the sub-trajectory data are sorted based on the geographic coordinates corresponding to the segments of the trajectory data.

4. The trajectory generation method according to any one of claims 1 to 3, characterized in that: For each of the sorted trajectory grids, clustering is performed on each segment of the sub-trajectory data contained therein, including: For each of the sorted trajectory grids, each segment of the sub-trajectory data whose similarity reaches a similarity threshold is clustered.

5. The trajectory generation method according to claim 4, characterized in that: The dividing the trajectory data into trajectory groups based on the clustering result includes: After clustering the sub-trajectory data of each segment whose similarity reaches the similarity threshold, at least one target cluster is obtained; Each target cluster obtained is used as the corresponding trajectory group.

6. The trajectory generation method according to claim 1, characterized in that: The target map area is segmented according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area, including: Selecting a reference point in the target map area as an origin to establish a plane coordinate system; The target map area is segmented according to a preset grid size to obtain the sub-area grid set corresponding to the target map area.

7. The trajectory generation method according to claim 1, characterized in that: The step of selecting a trajectory grid from the sub-region grid set includes: Detecting whether each sub-region grid in the sub-region grid set contains a segment of sub-trajectory data in at least one trajectory data; When it is detected that the sub-region grid contains a section of sub-trajectory data in at least one trajectory data, the sub-region grid is used as the trajectory grid.

8. A trajectory generating device, characterized in that: include: Acquisition module, segmentation module, screening module, sorting module and clustering grouping module; The acquisition module is used to acquire each track data in the target map area, wherein each track data is used to represent the driving track of the vehicle in the target map area; The segmentation module is used to segment the target map area according to a preset area segmentation method to obtain a sub-area grid set corresponding to the target map area; The screening module is used to screen out trajectory grids from the sub-region grid set, wherein each trajectory grid contains a sub-trajectory data of at least one trajectory data; The sorting module is used to sort the sub-trajectory data in each of the trajectory grids according to a preset sorting rule; The clustering grouping module is used for clustering each segment of the sub-trajectory data contained in each of the sorted trajectory grids, and dividing the trajectory data into trajectory groups based on the clustering result.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the trajectory generation method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the trajectory generating method according to any one of claims 1 to 7.