CN114332817A - Method, device, equipment and storage medium for determining vehicles in same-driving - Google Patents
Method, device, equipment and storage medium for determining vehicles in same-driving Download PDFInfo
- Publication number
- CN114332817A CN114332817A CN202111630032.6A CN202111630032A CN114332817A CN 114332817 A CN114332817 A CN 114332817A CN 202111630032 A CN202111630032 A CN 202111630032A CN 114332817 A CN114332817 A CN 114332817A
- Authority
- CN
- China
- Prior art keywords
- track
- candidate
- target
- vehicle
- time period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 238000004458 analytical method Methods 0.000 claims abstract description 35
- 230000000875 corresponding effect Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 6
- 230000002596 correlated effect Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000013461 design Methods 0.000 description 39
- 230000006870 function Effects 0.000 description 25
- 238000012545 processing Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 9
- 230000004044 response Effects 0.000 description 9
- 238000012423 maintenance Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 238000007499 fusion processing Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Traffic Control Systems (AREA)
Abstract
本发明实施例提供一种同行车辆的确定方法、装置、设备及存储介质,涉及计算机技术领域,用于提高确定同行车辆的准确性,包括电子设备响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离,根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度,基于确定到的目标相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。
Embodiments of the present invention provide a method, device, device, and storage medium for determining a companion vehicle, which relate to the field of computer technology and are used to improve the accuracy of determining a companion vehicle, including a historical time period and a target vehicle identifier that the electronic device responds to user input , to obtain the peer analysis results of the target vehicle in the historical time period. The peer analysis results include multiple peering time periods between each candidate peering vehicle and the target vehicle among multiple candidate peering vehicles; the trajectory distance of each peering time period is less than the expected Set the distance; the track distance is the Freiecher distance between the trajectory of a candidate vehicle and the target vehicle within a same time period, and each candidate vehicle is determined according to the number of multiple time periods of each candidate vehicle. The target similarity between the trajectory of the target vehicle and the target vehicle's trajectory, based on the determined target similarity, from a plurality of candidate companion vehicles, determine the target companion vehicle whose similarity is greater than the preset similarity.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种同行车辆的确定方法、装置、设备及存储介质。The present invention relates to the field of computer technology, and in particular, to a method, device, device and storage medium for determining a companion vehicle.
背景技术Background technique
随着信息化建设应用的深入,全国各地建设的卡口、电子监控等相关车辆采集系统日益完善,车辆的过车数据及行车轨迹在数据库中都得到了保留。利用数据库中的行车轨迹可以帮助发现与目标车辆同行的车辆。With the deepening of the application of informatization construction, the relevant vehicle collection systems such as bayonet and electronic monitoring built all over the country have been increasingly improved, and the passing data and driving trajectories of vehicles have been retained in the database. Using the driving trajectories in the database can help to discover the vehicles that travel with the target vehicle.
目前,通常采用以划分空间格网的方法挖掘相似轨迹,但是,采用划分空间格网容易受到空间格网大小的影响,例如,空间格网太小可能会导致遗漏同行车辆,而空间格网太大,又会导致确定到的同行车辆的准确性降低。因此,亟需一种能够准确确定同行车辆的方法。At present, the method of dividing the space grid is usually used to mine similar trajectories. However, the use of dividing the space grid is easily affected by the size of the space grid. If it is too large, it will lead to a decrease in the accuracy of the identified peer vehicles. Therefore, there is an urgent need for a method that can accurately determine the companion vehicle.
发明内容SUMMARY OF THE INVENTION
本发明的实施例提供一种同行车辆的确定方法、装置、设备及存储介质,用于提高确定同行车辆的准确性。Embodiments of the present invention provide a method, device, device, and storage medium for determining a companion vehicle, which are used to improve the accuracy of determining the companion vehicle.
为了达到上述目的,本发明实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
第一方面,提供一种同行车辆的确定方法,该方法包括:电子设备响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。电子设备根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。基于确定到的目标相似度,电子设备从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。In a first aspect, a method for determining a peer vehicle is provided. The method includes: an electronic device, in response to a historical time period input by a user and a target vehicle identifier, obtains peer analysis results of the target vehicle in the historical time period, and the peer analysis results include multiple Among the candidate traveling vehicles, each candidate traveling vehicle has multiple traveling time periods with the target vehicle; the trajectory distance of each traveling traveling period is less than the preset distance; The Frechet distance in the travel time period. The electronic device determines the target similarity between the track of each candidate traveling vehicle and the track of the target vehicle according to the number of multiple traveling time periods of each candidate traveling vehicle. Based on the determined target similarity, the electronic device determines a target companion vehicle with a similarity greater than a preset similarity from a plurality of candidate companion vehicles.
本发明提供的同行车辆的确定方法能够根据候选同行车辆与目标车辆的在划分后的各个时间段内的轨迹是否为同行轨迹,确定各个时间段是否为车辆同行的同行时间段,进而能够通过同行时间段的数量确定车辆轨迹的相似度,从候选同行车辆中确定出与目标车辆同行的车辆。本发明通过划分时间段的方式,分别确定每个时间段内的轨迹相似度,提高了每个时间段内轨迹相似度计算结果的准确性,进而提高了确定同行车辆的准确性。The method for determining a traveling vehicle provided by the present invention can determine whether each time period is the traveling time period of the traveling vehicle according to whether the trajectories of the candidate traveling vehicle and the target vehicle in each time period after division are traveling traveling with the same vehicle, and then can determine whether each time period is the traveling traveling time period of the traveling traveling vehicle. The number of time periods determines the similarity of vehicle trajectories, and the vehicles that travel with the target vehicle are determined from the candidate vehicles. The invention determines the track similarity in each time segment separately by dividing the time segment, improves the accuracy of the calculation result of the track similarity in each time segment, and further improves the accuracy of determining the companion vehicle.
一种可能的设计中,在获取目标车辆在历史时间段内的同行分析结果之前,上述同行车辆的确定方法还包括:电子设备确定目标车辆的目标轨迹以及每个候选同行车辆的候选同行轨迹;根据预设的划分时长,将总时间段划分为多个候选时间段;总时间段包括目标轨迹占用的时间段和候选同行轨迹占用的时间段;根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段;第一候选时间段为多个候选时间段中的任意一个;在第一候选时间段为同行时间段的情况下,将同行时间段以及同行时间段对应的候选同行车辆作为同行分析结果进行存储。该设计实现了如何划分时间段,并在各个时间段内分析轨迹是否为同行轨迹,提高了同行车辆的准确性。In a possible design, before obtaining the peer analysis result of the target vehicle in the historical time period, the above-mentioned method for determining the peer vehicle further includes: the electronic device determines the target trajectory of the target vehicle and the candidate peer trajectory of each candidate peer vehicle; According to the preset division time, the total time period is divided into multiple candidate time periods; the total time period includes the time period occupied by the target trajectory and the time period occupied by the candidate peer trajectory; A target sub-track, and the first candidate traveling sub-track of each candidate traveling vehicle within the first candidate time period, to determine whether the first candidate time period is a traveling time period; the first candidate time period is one of the multiple candidate time periods Any one of ; in the case that the first candidate time period is a peer time period, the peer time period and the candidate peer vehicle corresponding to the peer time period are stored as peer analysis results. The design realizes how to divide the time period, and analyzes whether the trajectory is a peer trajectory in each time period, which improves the accuracy of the peer vehicle.
一种可能的设计中,上述根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段,包括:电子设备在第一候选时间段内的第一目标子轨迹与第一候选同行子轨迹占用相同时间段的情况下,截取第一目标子轨迹以及第一候选同行子轨迹,分别得到相同时间段内的第二目标子轨迹以及第二候选同行子轨迹;确定第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离,并在第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离小于预设距离的情况下,确定第一候选时间段为同行时间段。该设计实现了在确定时间段是否同行时间段之前,判断时间段内的轨迹是否占用相同时间段,若有相同时间段,则进一步的去确定是否为同行时间段,若没有相同时间段,则将其确定非同行时间段,使得电子设备无需针对所有的时间段内去计算轨迹是否为同行,节约了电子设备的计算资源。In a possible design, the first candidate is determined according to the first target sub-trajectories of the target vehicle in the first candidate time period and the first candidate companion sub-trajectories of each candidate companion vehicle in the first candidate time period. Whether the time period is a peer time period includes: when the electronic device intercepts the first target sub-track and the first candidate sub-track in the case that the first target sub-track and the first candidate peer sub-track occupy the same time period in the first candidate time period The second target sub-track and the second candidate peer sub-track in the same time period are obtained respectively; the track distance between the second target sub-track and the second candidate peer sub-track is determined, and the second target sub-track And if the track distance between the second candidate peer tracks is less than the preset distance, the first candidate time period is determined to be the peer time period. The design realizes that before determining whether the time period is a peer time period, it is determined whether the trajectory in the time period occupies the same time period. If there is the same time period, it is further determined whether it is a peer time period. If there is no same time period, then Determining the non-peer time period makes it unnecessary for the electronic device to calculate whether the trajectory is a peer for all time periods, which saves the computing resources of the electronic device.
一种可能的设计中,上述截取第一目标子轨迹以及第一候选同行子轨迹,分别得到相同时间段内的第二目标子轨迹以及第二候选同行子轨迹,包括:电子设备确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点,并分别确定第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹;在第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹中,时长最小的剩余轨迹与时长最大的剩余轨迹的比值大于预设阈值时,分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点;根据第一目标子轨迹的截取起始点,以及第一目标子轨迹的截取结束点,截取第一目标子轨迹,得到第二目标子轨迹;根据第一候选同行子轨迹的截取起始点,以及第一候选同行子轨迹的截取结束点,截取第一候选同行子轨迹,得到第二候选同行子轨迹。该设计中实现了电子设备截取候选时间段内的轨迹,使得确定到的两条轨迹之间的距离更加准确,并且在根据截取起始点截取轨迹后,进一步的通过判断剩余轨迹的比值过滤需要计算的数据,节约了电子设备的计算资源。In a possible design, the above-mentioned interception of the first target sub-track and the first candidate peer sub-track to obtain the second target sub-track and the second candidate peer sub-track in the same time period respectively includes: determining the first target by the electronic device. The interception start point of the sub-track and the interception start point of the first candidate line sub-track, and respectively determine the remaining track of the first target sub-track and the remaining track of the first candidate line sub-track; in the remaining track of the first target sub-track and Among the remaining trajectories of the first candidate peer track, when the ratio of the remaining track with the smallest duration to the remaining track with the longest duration is greater than a preset threshold, determine the interception end point of the first target subtrack and the clipping of the first candidate peer track respectively. end point; according to the interception starting point of the first target sub-track, and the interception end point of the first target sub-track, intercept the first target sub-track to obtain the second target sub-track; according to the interception starting point of the first candidate row sub-track , and the interception end point of the first candidate peer track, intercept the first candidate peer track, and obtain the second candidate peer track. In this design, the electronic device intercepts the trajectory in the candidate time period, so that the determined distance between the two trajectories is more accurate. data, saving the computing resources of electronic devices.
一种可能的设计中,上述确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点,包括:电子设备确定第一轨迹点,并将第一轨迹点作为第一轨迹的截取起始点;第一轨迹点为第一目标子轨迹的首个轨迹点以及第一候选同行子轨迹的首个轨迹点中时间在后的轨迹点;第一轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第一轨迹点的轨迹;电子设备确定第二轨迹点,并将第二轨迹点作为第二轨迹的截取起始点;第二轨迹点为与第一轨迹点位于不同轨迹上的轨迹点中与第一轨迹点的时间间隔最小的轨迹点;第二轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第二轨迹点的轨迹。该设计中实现了电子设备确定截取起始点,在根据截取起始点截取轨迹后,过滤掉轨迹上部分不用于计算弗雷歇距离的数据,节约了电子设备的计算资源,提高了后续弗雷歇距离的计算效率。In a possible design, the above-mentioned determination of the interception start point of the first target sub-track and the interception start point of the first candidate row sub-track includes: the electronic device determines the first track point, and uses the first track point as the first track. The interception starting point of ; the first trajectory point is the first trajectory point of the first target sub-trajectory and the first trajectory point of the first candidate same-line sub-trajectory that is later in time; the first trajectory is the first target sub-trajectory and The first candidate line sub-track includes the track of the first track point; the electronic device determines the second track point, and uses the second track point as the interception starting point of the second track; the second track point is located at a different location from the first track point. Among the track points on the track, the track point with the smallest time interval from the first track point; the second track is the first target sub-track and the track including the second track point in the first candidate row sub-tracks. In this design, the electronic device determines the interception starting point. After intercepting the trajectory according to the intercepting starting point, the data on the trajectory that is not used to calculate the Frechet distance is filtered out, which saves the computing resources of the electronic device and improves the subsequent Frechet distance. The computational efficiency of distance.
一种可能的设计中,上述分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点,包括:电子设备确定第三轨迹点,并将第三轨迹点作为第三轨迹的截取结束点;第三轨迹点为第一目标子轨迹的最后一个轨迹点以及第一候选同行子轨迹的最后一个轨迹点中时间在前的轨迹点;第三轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第三轨迹点的轨迹;电子设备确定第四轨迹点,并将第四轨迹点作为第四轨迹的截取结束点;第四轨迹点为与第三轨迹点位于不同轨迹上的轨迹点中与第三轨迹点的时间间隔最小的轨迹点;第四轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第四轨迹点的轨迹。该设计中实现了电子设备确定截取结束点,在根据截取结束点截取轨迹后,过滤掉轨迹上部分不用于计算弗雷歇距离的数据,节约了电子设备的计算资源,提高了后续弗雷歇距离的计算效率。In a possible design, the above-mentioned determination of the interception end point of the first target sub-track and the interception end point of the first candidate row sub-track respectively includes: the electronic device determines the third track point, and uses the third track point as the third track point. The interception end point of the trajectory; the third trajectory point is the last trajectory point of the first target sub-trajectory and the trajectory point of the last trajectory point of the first candidate same-line sub-trajectory; the third trajectory is the first target sub-trajectory And the trajectory of the third trajectory point is included in the first candidate line of sub-trajectories; the electronic device determines the fourth trajectory point, and uses the fourth trajectory point as the interception end point of the fourth trajectory; the fourth trajectory point is located with the third trajectory point. The trajectory point with the smallest time interval with the third trajectory point among the trajectory points on different trajectories; the fourth trajectory is the trajectory including the fourth trajectory point in the first target sub-trajectory and the sub-trajectories in the first candidate row. In this design, the electronic device determines the interception end point. After intercepting the trajectory according to the interception end point, the part of the data on the trajectory that is not used to calculate the Frechet distance is filtered out, which saves the computing resources of the electronic device and improves the follow-up Freixer distance. The computational efficiency of distance.
一种可能的设计中,上述根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度,包括:电子设备根据同行时间段的数量与多个候选时间段数量的比值,确定目标相似度;目标相似度与比值正相关。该设计中提供了另外一种在获取同行时间段数量后,确定轨迹相似度的方法,使得后续确定是否为同行车辆时可以从多个方向确定,提高确定同行车辆的准确性。In a possible design, the above-mentioned determination of the target similarity between the trajectory of each candidate accompanying vehicle and the trajectory of the target vehicle according to the number of multiple traveling time periods of each candidate traveling vehicle includes: the electronic device according to the traveling time. The ratio of the number of segments to the number of multiple candidate time segments determines the target similarity; the target similarity is positively correlated with the ratio. This design provides another method for determining the similarity of the trajectory after obtaining the number of peer time periods, so that it can be determined from multiple directions when subsequently determining whether it is a peer vehicle, thereby improving the accuracy of determining the peer vehicle.
一种可能的设计中,在确定相似度大于预设相似度的目标同行车辆之后,方法还包括:电子设备获取目标轨迹对的目标轨迹信息,并显示目标轨迹信息;目标轨迹对包括目标车辆的轨迹以及目标同行车辆的轨迹;目标轨迹信息包括目标同行车辆的标识,以及目标同行车辆在历史时间段内的同行道路的信息;目标车辆以及目标同行车辆进入或驶出同行道路的时间间隔小于预设时间间隔。该设计中实现了电子设备在确定同行车辆后,还可以将同行轨迹信息在电子设备进行显示,能够使的用户根据电子设备所显示的同行轨迹信息更好的对同行车辆进行分析。In a possible design, after determining the target companion vehicle with a similarity greater than a preset similarity, the method further includes: the electronic device obtains target trajectory information of the target trajectory pair, and displays the target trajectory information; the target trajectory pair includes the target trajectory pair. The trajectory and the trajectory of the target companion vehicle; the target trajectory information includes the identification of the target companion vehicle and the information of the companion road of the target companion vehicle in the historical time period; the time interval between the target vehicle and the target companion vehicle entering or leaving the companion road is less than the expected time interval. Set the time interval. In this design, after the electronic device determines the companion vehicle, it can also display the companion trajectory information on the electronic device, which enables the user to better analyze the companion vehicle according to the companion trajectory information displayed by the electronic device.
第二方面,提供了一种同行车辆的确定方法,该方法包括:电子设备响应于用户输入的历史时间段,获取历史时间段内的候选同行车辆组合信息,候选同行车辆组合信息包括候选同行车辆的标识以及候选同行车辆组合的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离;根据每个候选同行车辆组合的多个同行时间段的数量,确定每个候选同行车辆组合的候选同行车辆的轨迹之间的目标相似度;基于确定到的目标相似度,从候选同行车辆组合中,确定相似度大于预设相似度的目标同行车辆组合。本发明提供的同行车辆的确定方法能够基于全量的轨迹信息,能够挖掘出所有可能的同行车辆组合。In a second aspect, a method for determining a companion vehicle is provided, the method includes: an electronic device, in response to a historical time period input by a user, obtains candidate companion vehicle combination information within the historical time period, where the candidate companion vehicle combination information includes candidate companion vehicles The identification of the candidate vehicle and the multiple traveling time periods of the candidate traveling vehicle combination; the trajectory distance of each traveling time period is less than the preset distance; the track distance is the distance between the trajectory of a candidate traveling vehicle and the target vehicle’s trajectory within a traveling time period. break distance; determine the target similarity between the trajectories of the candidate companion vehicles of each candidate companion vehicle combination according to the number of multiple companion time periods of each candidate companion vehicle combination; In the vehicle combination, the target vehicle combination with the similarity greater than the preset similarity is determined. The method for determining a traveling vehicle provided by the present invention can mine all possible traveling vehicle combinations based on the full amount of trajectory information.
一种可能的设计中,在电子设备获取历史时间段内的候选同行车辆组合信息之前,方法还包括:电子设备获取全量的车辆轨迹;确定候选同行车辆组合;基于全量的车辆轨迹,获取候选同行车辆组合信息,并存储。In a possible design, before the electronic device acquires the information of the candidate vehicle combination in the historical time period, the method further includes: the electronic device acquires a full amount of vehicle trajectories; determines the candidate peer vehicle combination; and obtains the candidate peer vehicle combination based on the full amount of vehicle trajectories. Vehicle combination information and stored.
第三方面,提供了一种电子设备,该电子设备包括获取单元以及确定单元。获取单元用于响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离;确定单元用于根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度;确定单元还用于基于确定到的目标相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。In a third aspect, an electronic device is provided, the electronic device includes an acquisition unit and a determination unit. The obtaining unit is used to obtain the peer analysis result of the target vehicle in the historical time period in response to the historical time period and the target vehicle identification input by the user, and the peer analysis result includes the plurality of candidate peer vehicles, the relationship between each candidate peer vehicle and the target vehicle. Multiple traveling time periods; the track distance of each traveling time period is less than the preset distance; the track distance is the Frechet distance between the trajectory of a candidate traveling vehicle and the target vehicle’s track within a traveling time period; the determining unit is used for The number of multiple traveling time periods of each candidate traveling vehicle is used to determine the target similarity between the trajectory of each candidate traveling vehicle and the target vehicle; Among the candidate companion vehicles, determine the target companion vehicle whose similarity is greater than the preset similarity.
一种可能的设计中,电子设备还包括处理单元、判断单元以及存储单元。确定单元还用于确定目标车辆的目标轨迹以及每个候选同行车辆的候选同行轨迹。处理单元用于根据预设的划分时长,将总时间段划分为多个候选时间段。总时间段包括目标轨迹占用的时间段和候选同行轨迹占用的时间段。判断单元用于根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段;第一候选时间段为多个候选时间段中的任意一个。存储单元用于在第一候选时间段为同行时间段的情况下,将同行时间段以及同行时间段对应的候选同行车辆作为同行分析结果进行存储。In a possible design, the electronic device further includes a processing unit, a judging unit and a storage unit. The determining unit is also used for determining the target trajectory of the target vehicle and the candidate companion trajectory of each candidate companion vehicle. The processing unit is configured to divide the total time period into a plurality of candidate time periods according to a preset division time period. The total time period includes the time period occupied by the target trajectory and the time period occupied by the candidate peer trajectory. The judging unit is used to judge whether the first candidate time period is a A peer time period; the first candidate time period is any one of multiple candidate time periods. The storage unit is configured to store the peer time period and the candidate peer vehicle corresponding to the peer time period as peer analysis results when the first candidate time period is the peer time period.
一种可能的设计中,处理单元还用于在第一候选时间段内的第一目标子轨迹与第一候选同行子轨迹占用相同时间段的情况下,截取第一目标子轨迹以及第一候选同行子轨迹,分别得到相同时间段内的第二目标子轨迹以及第二候选同行子轨迹。确定单元还用于确定第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离,并在第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离小于预设距离的情况下,确定第一候选时间段为同行时间段。In a possible design, the processing unit is further configured to intercept the first target sub-track and the first candidate sub-track when the first target sub-track and the first candidate peer sub-track occupy the same time period in the first candidate time period. The second target sub-track and the second candidate peer-to-peer track in the same time period are obtained respectively. The determining unit is further configured to determine the track distance between the second target sub-track and the second candidate peer track, and when the track distance between the second target sub track and the second candidate peer track is less than the preset distance , and determine the first candidate time period as the peer time period.
一种可能的设计中,确定单元还用于确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点,并分别确定第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹。确定单元还用于在第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹中,时长最小的剩余轨迹与时长最大的剩余轨迹的比值大于预设阈值时,分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点。处理单元还用于根据第一目标子轨迹的截取起始点,以及第一目标子轨迹的截取结束点,截取第一目标子轨迹,得到第二目标子轨迹。处理单元还用于根据第一候选同行子轨迹的截取起始点,以及第一候选同行子轨迹的截取结束点,截取第一候选同行子轨迹,得到第二候选同行子轨迹。In a possible design, the determining unit is also used to determine the interception start point of the first target sub-track and the interception start point of the first candidate row sub-track, and determine the remaining tracks of the first target sub-track and the first candidate row respectively. The remaining tracks of the subtrack. The determining unit is further configured to, among the remaining tracks of the first target sub-track and the remaining tracks of the first candidate peer sub-tracks, determine the first target respectively when the ratio of the remaining track with the smallest duration to the remaining track with the longest duration is greater than a preset threshold The clipping end point of the sub-track and the clipping end point of the first candidate row sub-track. The processing unit is further configured to intercept the first target sub-track according to the interception start point of the first target sub-track and the interception end point of the first target sub-track to obtain the second target sub-track. The processing unit is further configured to intercept the first candidate peer sub-track according to the interception start point of the first candidate peer sub-track and the interception end point of the first candidate peer sub-track to obtain the second candidate peer sub-track.
一种可能的设计中,确定单元还用于确定第一轨迹点,并将第一轨迹点作为第一轨迹的截取起始点。第一轨迹点为第一目标子轨迹的首个轨迹点以及第一候选同行子轨迹的首个轨迹点中时间在后的轨迹点;第一轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第一轨迹点的轨迹。确定单元还用于确定第二轨迹点,并将第二轨迹点作为第二轨迹的截取起始点。第二轨迹点为与第一轨迹点位于不同轨迹上的轨迹点中与第一轨迹点的时间间隔最小的轨迹点;第二轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第二轨迹点的轨迹。In a possible design, the determining unit is further configured to determine the first trajectory point, and use the first trajectory point as a starting point for intercepting the first trajectory. The first track point is the first track point of the first target sub-track and the track point that is later in time among the first track points of the first candidate peer track; the first track is the first target sub track and the first candidate peer track The trajectory includes the trajectory of the first trajectory point. The determining unit is further configured to determine a second trajectory point, and use the second trajectory point as a starting point for intercepting the second trajectory. The second track point is the track point with the smallest time interval from the first track point among the track points located on different tracks from the first track point; the second track is the first target sub-track and the first candidate row sub-track includes The trajectory of the two trajectory points.
一种可能的设计中,确定单元还用于确定第三轨迹点,并将第三轨迹点作为第三轨迹的截取结束点。第三轨迹点为第一目标子轨迹的最后一个轨迹点以及第一候选同行子轨迹的最后一个轨迹点中时间在前的轨迹点;第三轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第三轨迹点的轨迹。确定单元还用于确定第四轨迹点,并将第四轨迹点作为第四轨迹的截取结束点。第四轨迹点为与第三轨迹点位于不同轨迹上的轨迹点中与第三轨迹点的时间间隔最小的轨迹点;第四轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第四轨迹点的轨迹。In a possible design, the determining unit is further configured to determine the third trajectory point, and use the third trajectory point as the interception end point of the third trajectory. The third trajectory point is the last trajectory point of the first target sub-trajectory and the last trajectory point of the first candidate peer-to-peer sub-trajectory; the third trajectory is the first target sub-trajectory and the first candidate peer-to-peer trajectory point The trajectory includes the trajectory of the third trajectory point. The determining unit is further configured to determine the fourth track point, and use the fourth track point as the interception end point of the fourth track. The fourth trajectory point is the trajectory point with the smallest time interval with the third trajectory point among the trajectory points located on different trajectories from the third trajectory point; Trajectory of four track points.
一种可能的设计中,确定单元还用于根据同行时间段的数量与多个候选时间段数量的比值,确定目标相似度;目标相似度与比值正相关。In a possible design, the determining unit is further configured to determine the target similarity according to the ratio of the number of peer time periods to the number of multiple candidate time periods; the target similarity is positively correlated with the ratio.
一种可能的设计中,电子设备还包括显示单元。获取单元还用于获取目标轨迹对的目标轨迹信息。目标轨迹对包括目标车辆的轨迹以及目标同行车辆的轨迹;目标轨迹信息包括目标同行车辆的标识,以及目标同行车辆在历史时间段内的同行道路的信息;目标车辆以及目标同行车辆进入或驶出同行道路的时间间隔小于预设时间间隔。显示单元用于显示目标轨迹信息。In a possible design, the electronic device further includes a display unit. The acquiring unit is further configured to acquire target trajectory information of the target trajectory pair. The target trajectory pair includes the trajectory of the target vehicle and the trajectory of the target companion vehicle; the target trajectory information includes the identifier of the target companion vehicle and the information of the companion road of the target companion vehicle in the historical time period; the target vehicle and the target companion vehicle enter or leave The time interval of the same road is less than the preset time interval. The display unit is used for displaying target track information.
第四方面,提供了一种电子设备,该电子设备包括获取单元以及确定单元;获取单元用于响应于用户输入的历史时间段,获取历史时间段内的候选同行车辆组合信息,候选同行车辆组合信息包括候选同行车辆的标识以及候选同行车辆组合的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离;确定单元用于根据每个候选同行车辆组合的多个同行时间段的数量,确定每个候选同行车辆组合的候选同行车辆的轨迹之间的目标相似度;确定单元用于基于确定到的目标相似度,从候选同行车辆组合中,确定相似度大于预设相似度的目标同行车辆组合。In a fourth aspect, an electronic device is provided, the electronic device includes an acquisition unit and a determination unit; the acquisition unit is configured to, in response to a historical time period input by a user, acquire candidate companion vehicle combination information within the historical time period, and the candidate companion vehicle combination The information includes the identifier of the candidate traveling vehicle and the multiple traveling time periods of the candidate traveling vehicle combination; the track distance of each traveling time period is less than the preset distance; the track distance is the track of a candidate traveling vehicle and the track of the target vehicle at one traveling time The Frecher distance within the segment; the determination unit is used to determine the target similarity between the trajectories of the candidate companion vehicles of each candidate companion vehicle combination according to the number of multiple companion time segments of each candidate companion vehicle combination; the determination unit It is used to determine, from the candidate vehicle combinations, the target vehicle combination whose similarity is greater than the preset similarity based on the determined target similarity.
一种可能的设计中,电子设备还包括存储单元。获取单元用于获取全量的车辆轨迹;确定单元用于确定候选同行车辆组合;确定单元用于基于全量的车辆轨迹,确定候选同行车辆组合信息;存储单元用于存储候选同行车辆组合信息In one possible design, the electronic device further includes a storage unit. The acquisition unit is used to obtain the full vehicle trajectory; the determination unit is used to determine the candidate companion vehicle combination; the determination unit is used to determine the candidate companion vehicle combination information based on the full vehicle trajectory; the storage unit is used to store the candidate companion vehicle combination information
第五方面,提供了一种电子设备,该电子设备包括存储器和处理器;存储器和处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,当处理器执行该计算机指令时,该电子设备执行如第一方面或其任一种可能的设计以及第二方面或其任一种可能的设计提供的同行车辆的确定方法。A fifth aspect provides an electronic device comprising a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions , the electronic device executes the method for determining a companion vehicle as provided in the first aspect or any possible design thereof and the second aspect or any possible design thereof.
第六方面,提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令在电子设备上运行时,使得该电子设备执行如第一方面或其任一种可能的设计以及第二方面或其任一种可能的设计提供的同行车辆的确定方法。In a sixth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are executed on an electronic device, the electronic device is made to perform the first aspect or any possible design thereof. and a method for determining a companion vehicle provided by the second aspect or any of its possible designs.
附图说明Description of drawings
图1为本发明的实施例提供的一种同行车辆的确定方法实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment of a method for determining a companion vehicle according to an embodiment of the present invention;
图2为本发明的实施例提供的一种同行车辆的确定方法流程示意图一;FIG. 2 is a
图3为本发明的实施例提供的一种同行车辆的确定方法流程示意图二;FIG. 3 is a second schematic flowchart of a method for determining a companion vehicle according to an embodiment of the present invention;
图4为本发明的实施例提供的一种轨迹点示意图一;4 is a schematic diagram 1 of a trajectory point provided by an embodiment of the present invention;
图5为本发明的实施例提供的一种同行车辆的确定方法流程示意图三;FIG. 5 is a third schematic flowchart of a method for determining a companion vehicle according to an embodiment of the present invention;
图6为本发明的实施例提供的一种轨迹点示意图二;6 is a second schematic diagram of a trajectory point provided by an embodiment of the present invention;
图7为本发明的实施例提供的一种同行车辆的确定方法流程示意图四;FIG. 7 is a fourth schematic flowchart of a method for determining a companion vehicle according to an embodiment of the present invention;
图8为本发明的实施例提供的一种同行车辆的确定方法流程示意图五;FIG. 8 is a schematic flowchart 5 of a method for determining a companion vehicle according to an embodiment of the present invention;
图9为本发明的实施例提供的一种同行车辆的确定方法流程示意图六;FIG. 9 is a sixth schematic flowchart of a method for determining a companion vehicle according to an embodiment of the present invention;
图10为本发明的实施例提供的一种同行车辆的确定方法流程示意图七;10 is a seventh schematic flowchart of a method for determining a companion vehicle according to an embodiment of the present invention;
图11为本发明的实施例提供的一种轨迹信息的显示效果示意图一;11 is a schematic diagram 1 of a display effect of track information provided by an embodiment of the present invention;
图12为本发明的实施例提供的一种轨迹信息的显示效果示意图二;12 is a schematic diagram 2 of a display effect of a trajectory information provided by an embodiment of the present invention;
图13为本发明的实施例提供的一种同行车辆的确定方法流程示意图八;FIG. 13 is a schematic flowchart eight of a method for determining a companion vehicle according to an embodiment of the present invention;
图14为本发明的实施例提供的一种同行车辆的确定方法流程示意图九;FIG. 14 is a schematic flow chart 9 of a method for determining a companion vehicle according to an embodiment of the present invention;
图15为本发明的实施例提供的一种电子设备结构示意图一;15 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention;
图16为本发明的实施例提供的一种电子设备结构示意图二;16 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention;
图17为本发明的实施例提供的一种电子设备结构示意图三;17 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention;
图18为本发明的实施例提供的一种电子设备结构示意图四。FIG. 18 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
在本发明的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In the description of the present invention, unless otherwise specified, "/" means "or", for example, A/B can mean A or B. In this article, "and/or" is only an association relationship to describe the associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. Further, "at least one" and "plurality" refer to two or more. The words "first" and "second" do not limit the quantity and execution order, and the words "first", "second" and the like do not limit certain differences.
本发明提出一种同行车辆的确定方法、装置、设备及存储介质,电子设备响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果,其中,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。进一步的,根据获取到的每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。本发明提供的同行车辆的确定方法根据候选同行车辆与目标车辆的在划分后的各个时间段内的轨迹是否为同行轨迹,确定各个时间段是否为车辆同行的同行时间段,进而能够通过同行时间段的数量确定车辆轨迹的相似度,从候选同行车辆中确定出与目标车辆同行的车辆。本发明通过划分时间段的方式,分别确定每个时间段内的轨迹相似度,提高了每个时间段内轨迹相似度计算结果的准确性,进而提高了确定同行车辆的准确性。The present invention provides a method, device, device and storage medium for determining a companion vehicle. The electronic device responds to the historical time period input by the user and the target vehicle identification to obtain the peer analysis result of the target vehicle in the historical time period, wherein the peer analysis The results include that among the multiple candidate traveling vehicles, each candidate traveling vehicle has multiple traveling time periods with the target vehicle; the track distance of each traveling time period is less than the preset distance; the track distance is the distance between the track of a candidate traveling vehicle and the target vehicle. The Frechet distance of a trajectory within a peer time period. Further, according to the obtained number of multiple traveling time periods of each candidate traveling vehicle, determine the similarity between the trajectory of each candidate traveling vehicle and the track of the target vehicle, and determine the similarity between the multiple candidate traveling vehicles. The target peer vehicle whose degree is greater than the preset similarity degree. The method for determining a traveling vehicle provided by the present invention determines whether each time period is a traveling time period of a traveling vehicle according to whether the trajectories of a candidate traveling vehicle and a target vehicle in each divided time period are traveling traveling paths, and then the traveling time can be determined by the traveling time period. The number of segments determines the similarity of vehicle trajectories, and the vehicles that travel with the target vehicle are determined from the candidate traveling vehicles. The invention determines the track similarity in each time segment separately by dividing the time segment, improves the accuracy of the calculation result of the track similarity in each time segment, and further improves the accuracy of determining the companion vehicle.
图1是根据一示例性实施例示出的一种实施环境的架构图,如图1所示,下述同行车辆的确定方法可以应用于该实施环境中。该实施环境包括电子设备11和服务器12。其中,电子设备11和服务器12可以通过网络互连并通信。FIG. 1 is an architecture diagram of an implementation environment according to an exemplary embodiment. As shown in FIG. 1 , the following method for determining a companion vehicle can be applied to the implementation environment. The implementation environment includes an
其中,电子设备11可以为具有展示(或显示)功能的设备,电子设备11可以用于响应于用户输入的历史时间段以及目标车辆标识,显示同行车辆信息,以及在电子地图上显示目标车辆和同行车辆的轨迹信息。电子地图可以由电子设备11从服务器12获取,也可以是预先存储与电子设备11中的。Wherein, the
电子设备11可以是任何一种可与用户通过键盘、触摸板、触摸屏、遥控器、语音交互或手写设备等一种或多种方式进行人机交互的电子产品,例如手机、平板电脑、掌上电脑、个人计算机(Personal Computer,PC)、可穿戴设备、智能电视等。The
电子设备11还可以通过服务器12获取道路卡口拍摄的轨迹数据、车辆全球定位系统(global positioning system,GPS)数据以及公交地铁刷卡等数据。The
服务器12可以是一台服务器,也可以是由多台服务器组成的服务器集群,或者是一个云计算服务中心。服务器12可以包括处理器、存储器以及网络接口等。The
本领域技术人员应能理解上述电子设备和服务器仅为举例,其他现有的或今后可能出现的电子设备或服务器如可适用于本发明,也应包含在本发明保护范围以内,并在此以引用方式包含于此。Those skilled in the art should understand that the above-mentioned electronic devices and servers are only examples. If other existing or future electronic devices or servers are applicable to the present invention, they should also be included in the protection scope of the present invention, and hereby refer to References are included here.
图2是根据一示例性实施例示出的一种同行车辆的确定方法的流程图,如图2所示,该同行车辆的确定方法应用于上述电子设备,包括以下步骤S201-S203。Fig. 2 is a flowchart of a method for determining a companion vehicle according to an exemplary embodiment. As shown in Fig. 2 , the method for determining a companion vehicle is applied to the above electronic device, and includes the following steps S201-S203.
S201、电子设备响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果。S201 , the electronic device acquires the peer analysis result of the target vehicle in the historical time period in response to the historical time period input by the user and the target vehicle identification.
其中,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。Wherein, the peer analysis result includes multiple peering time periods between each candidate peering vehicle and the target vehicle; the trajectory distance of each peering time period is less than the preset distance; the trajectory distance is the trajectory of a candidate peering vehicle The Frechet distance from the trajectory of the target vehicle within a peer time period.
需要说明的,上述预设距离用于判断各时间段是否为同行时间段,当时间段内轨迹距离小于预设距离时,电子设备确定该时间段为同行时间段,当时间段内轨迹距离大于或等于该预设距离时,电子设备确定该时间段为非同行时间段。It should be noted that the above preset distance is used to determine whether each time period is a peer time period. When the track distance within the time period is less than the preset distance, the electronic device determines that the time period is a peer time period. When the track distance within the time period is greater than or equal to the preset distance, the electronic device determines that the time period is a non-peering time period.
需要说明的,上述预设距离可以由电子设备的运维人员预先在电子设备中设置。It should be noted that the above-mentioned preset distance may be preset in the electronic device by an operation and maintenance personnel of the electronic device.
作为一种可能的实现方式,电子设备获取用户输入的历史时间段以及目标车辆的标识。进一步的,电子设备基于目标车辆的标识以及历史时间段,从预先存储的同行分析结果中,获取目标车辆在历史时间段内的同行分析结果。As a possible implementation manner, the electronic device acquires the historical time period input by the user and the identifier of the target vehicle. Further, the electronic device obtains the peer analysis results of the target vehicle in the historical time period from the pre-stored peer analysis results based on the identification of the target vehicle and the historical time period.
作为另外一种可能的实现方式,电子设备划分历史时间段,获取多个候选时间段,确定每个候选时间段内目标车辆的轨迹与候选同行车辆的轨迹之间的轨迹距离。进一步的,电子设备根据每个候选时间段内的轨迹距离与预设距离,确定候选时间段是否为同行时间段,也即获取目标车辆在历史时间段内的同行分析结果。As another possible implementation manner, the electronic device divides historical time periods, obtains multiple candidate time periods, and determines the trajectory distance between the trajectory of the target vehicle and the trajectory of the candidate vehicle in each candidate time period. Further, the electronic device determines whether the candidate time period is a peer time period according to the trajectory distance and the preset distance in each candidate time period, that is, obtains the peer analysis result of the target vehicle in the historical time period.
需要说明的,电子设备如何实现预先存储同行分析结果的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that, for the specific implementation manner of how the electronic device realizes pre-storing the peer analysis result, reference may be made to the subsequent description of the embodiments of the present invention, which will not be repeated here.
S202、电子设备根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。S202. The electronic device determines the target similarity between the trajectory of each candidate accompanying vehicle and the trajectory of the target vehicle according to the number of multiple accompanying time periods of each candidate accompanying vehicle.
作为一种可能的实现方式,电子设备根据预先存储的同行分析结果,获取目标车辆与每个候选同行车辆的同行时间段的数量。进一步的,电子设备将获取到的同行时间段的数量,作为每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。As a possible implementation manner, the electronic device acquires, according to the pre-stored peer analysis result, the number of peer time periods between the target vehicle and each candidate peer vehicle. Further, the electronic device takes the acquired number of the traveling time periods as the target similarity between the trajectory of each candidate traveling vehicle and the trajectory of the target vehicle.
示例性的,电子设备获取到的上述同行时间段的数量为8,则确定候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度为8。Exemplarily, if the number of the above-mentioned traveling time periods acquired by the electronic device is 8, the target similarity between the trajectory of the candidate traveling vehicle and the trajectory of the target vehicle is determined to be 8.
在一些实施例中,上述步骤S201中电子设备获取到的同行分析结果中还包括非同行时间段的数量,候选同行时间段包括同行时间段和非同行时间段。电子设备还可以根据同行时间段的数量与多个候选时间段数量的比值,确定目标相似度;目标相似度与比值正相关。In some embodiments, the peer analysis result obtained by the electronic device in the above step S201 further includes the number of non-peer time periods, and the candidate peer time periods include peer time periods and non-peer time periods. The electronic device may also determine the target similarity according to the ratio of the number of peer time periods to the number of multiple candidate time periods; the target similarity is positively correlated with the ratio.
作为一种可能的实现方式,电子设备将同行时间段的数量与候选时间段数量的比值,作为目标相似度。As a possible implementation manner, the electronic device uses the ratio of the number of peer time periods to the number of candidate time periods as the target similarity.
示例性的,上述同行分析结果中同行时间段的数量为8,非同行时间段的数量为2,则确定候选同行时间段的数量为10。进一步的,电子设备确定同行时间段的数量与候选同行时间段数量的目标比值为0.8,进而确定目标相似度为0.8。Exemplarily, in the above peer analysis result, the number of peer time periods is 8, the number of non-peer time periods is 2, and the number of candidate peer time periods is determined to be 10. Further, the electronic device determines that the target ratio between the number of peer time periods and the number of candidate peer time periods is 0.8, and further determines that the target similarity is 0.8.
在一些实施例中,上述步骤S201中电子设备获取到的同行分析结果中还包括每个同行时间段内目标车辆的轨迹与候选同行车辆的轨迹之间的轨迹距离。电子设备还可以将轨迹距离的均值和标准差作为候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。In some embodiments, the peer analysis result obtained by the electronic device in the above step S201 further includes the trajectory distance between the trajectory of the target vehicle and the trajectory of the candidate peer vehicle in each peer time period. The electronic device may also take the mean and standard deviation of the trajectory distances as the target similarity between the trajectory of the candidate vehicle and the trajectory of the target vehicle.
在一些实施例中,电子设备可以根据同行时间段的数量、同行时间段的数量与候选时间段数量的目标比值以及轨迹距离的均值和标准差中的至少两个数据,通过预设的规则确定候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。In some embodiments, the electronic device may determine through a preset rule according to at least two data among the number of peer time segments, the target ratio of the number of peer time segments to the number of candidate time segments, and the mean and standard deviation of the trajectory distances The target similarity between the trajectory of the candidate peer vehicle and the trajectory of the target vehicle.
在一些实施例中,上述预设的规则可以为对各项数据归一化后进行加权处理。示例性的,设置同行时间段的数量权值为0,同行时间段的数量与候选时间段数量的目标比值的权值为1/2,目标车辆的轨迹与候选同行车辆的轨迹之间的轨迹距离均值的权值为1/2,求和得到候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。如下式所示:In some embodiments, the above-mentioned preset rule may be to perform weighting processing after normalizing each item of data. Exemplarily, set the weight of the number of peer time segments to 0, the weight of the target ratio of the number of peer time segments to the number of candidate time segments to be 1/2, and the trajectory between the target vehicle's trajectory and the candidate companion vehicle's trajectory. The weight of the distance mean value is 1/2, and the summation obtains the target similarity between the trajectory of the candidate vehicle and the trajectory of the target vehicle. As shown in the following formula:
目标相似度=1/2(目标比值)+1/2(轨迹距离均值)Target similarity = 1/2 (target ratio) + 1/2 (track distance mean)
需要说明的,上述轨迹距离均值可以是通过归一化处理后的轨迹距离均值,例如,轨迹距离设置了阈值为10m,各同行时间段内的轨迹距离为5m、7m、8m,则均值为(0.5+0.7+0.8)/3。It should be noted that the above-mentioned mean value of the trajectory distance can be the mean value of the trajectory distance after normalization processing. For example, if the threshold value of the trajectory distance is set to 10m, and the trajectory distances in each peer time period are 5m, 7m, and 8m, the mean value is ( 0.5+0.7+0.8)/3.
需要说明的,上述预设的规则可以由电子设备的运维人员预先在电子设备中设置,本发明对于具体设置何种规则不作限定。It should be noted that the above-mentioned preset rules may be set in the electronic device in advance by the operation and maintenance personnel of the electronic device, and the present invention does not limit which rules are specifically set.
S203、电子设备基于确定到的目标相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。S203: Based on the determined similarity of the target, the electronic device determines, from the plurality of candidate vehicles in the same vehicle, a target vehicle with a similarity greater than a preset similarity.
作为一种可能的实现方式,电子设备从确定到的多个候选同行车辆的目标相似度中,确定相似度大于预设相似度的目标相似度,将目标相似度对应的候选同行车辆确定为目标同行车辆。As a possible implementation, the electronic device determines a target similarity whose similarity is greater than a preset similarity from among the determined target similarities of multiple candidate companion vehicles, and determines the candidate companion vehicle corresponding to the target similarity as the target Companion vehicle.
需要说明的,预设相似度可以由电子设备的运维人员预先在电子设备中设置。It should be noted that the preset similarity may be preset in the electronic device by the operation and maintenance personnel of the electronic device.
在一种设计中,为了实现在电子设备获取用户输入的历史时间段以及目标车辆标识之前,预先在电子设备内存储同行分析结果,如图3所示,本发明实施例提供的同行车辆的确定方法还包括S301-S304。In one design, in order to store the peer analysis results in the electronic device before the electronic device obtains the historical time period input by the user and the target vehicle identifier, as shown in FIG. The method also includes S301-S304.
S301、电子设备确定目标车辆的目标轨迹以及每个候选同行车辆的候选同行轨迹。S301, the electronic device determines the target trajectory of the target vehicle and the candidate companion trajectory of each candidate companion vehicle.
作为一种可能的实现方式,电子设备从多个数据源获取目标车辆以及每个候选同行车辆的轨迹点,以得到目标车辆以及每个候选同行车辆的多源离散轨迹,实现数据覆盖最大化。进一步的,电子设备对获取到的轨迹点进行去噪和融合处理,根据处理后得到的轨迹点得到目标车辆的目标轨迹以及每个候选同行车辆的候选同行轨迹。As a possible implementation, the electronic device obtains the target vehicle and the trajectory points of each candidate companion vehicle from multiple data sources to obtain multi-source discrete trajectories of the target vehicle and each candidate companion vehicle to maximize data coverage. Further, the electronic device performs denoising and fusion processing on the acquired track points, and obtains the target track of the target vehicle and the candidate traveling track of each candidate traveling vehicle according to the track points obtained after processing.
需要说明的,上述电子设备对获取到的轨迹点进行去噪和融合处理,是为了提高轨迹点的准确性,进而提高了确定同行车辆的准确性。例如,由于电子设备是从多个数据源获取到轨迹点,导致获取到的轨迹点中,对于某一时刻可能存在有多个轨迹点,电子设备根据该时刻前后的轨迹点信息,从多个轨迹点中保留一个,删除该时刻的其他轨迹点。另外,由于电子设备获取轨迹点时可能会因网络波动或者其他情况,导致某一时刻的轨迹点出现异常,电子设备根据此前的轨迹点推测出可能的轨迹,将超出范围的轨迹点删除。It should be noted that the above-mentioned electronic device performs denoising and fusion processing on the acquired trajectory points in order to improve the accuracy of the trajectory points, thereby improving the accuracy of determining the companion vehicle. For example, since the electronic device obtains track points from multiple data sources, there may be multiple track points in the obtained track points at a certain moment. One of the track points is kept, and the other track points at this moment are deleted. In addition, due to network fluctuations or other conditions when the electronic device obtains the trajectory point, the trajectory point at a certain moment may be abnormal.
需要说明的,上述多个数据源包括道路卡口拍摄的轨迹数据、车辆GPS数据、手机信令数据以及公交地铁刷卡数据等,上述数据可以预先存储于电子设备的内部存储空间,也可以由电子设备通过服务器从网络中获取。It should be noted that the above-mentioned multiple data sources include trajectory data captured by road bayonet, vehicle GPS data, mobile phone signaling data, and bus and subway card swiping data. The device is obtained from the network through the server.
S302、电子设备根据预设的划分时长,将总时间段划分为多个候选时间段。S302. The electronic device divides the total time period into a plurality of candidate time periods according to the preset division time period.
其中,总时间段包括目标轨迹占用的时间段和候选同行轨迹占用的时间段。The total time period includes the time period occupied by the target trajectory and the time period occupied by the candidate peer trajectory.
作为一种可能的实现方式,电子设备按照预设的划分时长,将总时间段划分为多个时长为预设的划分时长的候选时间段。As a possible implementation manner, the electronic device divides the total time period into a plurality of candidate time periods whose duration is the preset divided time length according to the preset divided time period.
示例性的,图4示出了一种划分候选时间段后的轨迹示意图,如图4所示,a1-a20为电子设备获取到的目标车辆的轨迹点,b1-b20为电子设备获取到的候选同行车辆的轨迹点,若轨迹点a1的时间为最前时刻,轨迹点b20为最后时刻,则总时间段为a1-b20。图4所示的a1-a20以及b1-b20为各轨迹点的位置信息,电子设备根据预设的划分时长划分总时间段,得到如图4中A、B、C、D四个矩形区域所示的四个候选时间段,矩形区域内的轨迹点分别为候选时间段A、B、C、D内,目标车辆和候选同行车辆的轨迹点。Exemplarily, FIG. 4 shows a schematic diagram of the trajectory after the candidate time period is divided. As shown in FIG. 4 , a1-a20 are the trajectory points of the target vehicle obtained by the electronic device, and b1-b20 are obtained by the electronic device. For the track points of the candidate vehicles, if the time of the track point a1 is the first time, and the track point b20 is the last time, the total time period is a1-b20. a1-a20 and b1-b20 shown in FIG. 4 are the position information of each track point. The electronic device divides the total time period according to the preset division time, and obtains the four rectangular areas of A, B, C, and D in FIG. 4 . The four candidate time periods shown, the trajectory points in the rectangular area are the trajectory points of the target vehicle and the candidate vehicle in the candidate time periods A, B, C, and D, respectively.
S303、电子设备根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段。S303. The electronic device determines whether the first candidate time period is a peer time period.
其中,第一候选时间段为多个候选时间段中的任意一个。The first candidate time period is any one of multiple candidate time periods.
作为一种可能的实现方式,电子设备确定第一候选时间段内目标车辆的第一目标子轨迹以及每个候选同行车辆的第一候选同行子轨迹。进一步的,电子设备确定第一目标子轨迹与第一候选同行子轨迹之间的轨迹距离,并根据轨迹距离,判断第一候选时间段是否为同行时间段。As a possible implementation manner, the electronic device determines the first target sub-trajectories of the target vehicle in the first candidate time period and the first candidate companion sub-trajectories of each candidate companion vehicle. Further, the electronic device determines the track distance between the first target sub-track and the first candidate peer sub-track, and determines whether the first candidate time period is a peer time period according to the track distance.
示例性的,如图4所示,若第一候选时间段为候选时间段A,则第一目标子轨迹为a1-a5,第一候选同行子轨迹为b1-b4,进一步的,电子设备根据目标子轨迹a1-a5和候选同行子轨迹b1-b4判断候选时间段A是否为同行时间段。Exemplarily, as shown in FIG. 4 , if the first candidate time period is the candidate time period A, the first target sub-trajectories are a1-a5, and the first candidate peer sub-trajectories are b1-b4. The target sub-tracks a1-a5 and the candidate peer sub-tracks b1-b4 determine whether the candidate time period A is a peer time period.
需要说明的,电子设备如何判断第一候选时间段是否为同行时间段的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that, for a specific implementation manner of how the electronic device determines whether the first candidate time period is a peer time period, reference may be made to subsequent descriptions of the embodiments of the present invention, which will not be repeated here.
S304、电子设备在第一候选时间段为同行时间段的情况下,将同行时间段以及同行时间段对应的候选同行车辆作为同行分析结果进行存储。S304: In the case that the first candidate time period is a peer time period, the electronic device stores the peer time period and the candidate peer vehicle corresponding to the peer time period as peer analysis results.
在一些实施例中,电子设备在第一候选时间段为同行时间段的情况下,还将目标车辆标识、目标子轨迹与候选同行子轨迹之间的轨迹距离以及候选时间段的大小等信息作为同行分析结果,与上述同行时间段以及同行时间段对应的候选同行车辆一同存储于电子设备。In some embodiments, when the first candidate time period is a peer time period, the electronic device also uses information such as the target vehicle identifier, the track distance between the target sub-track and the candidate peer sub-track, and the size of the candidate time period as The peer analysis result is stored in the electronic device together with the peer time period and the candidate peer vehicle corresponding to the peer time period.
在一种设计中,为了实现电子设备根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段,如图5所示,本发明实施例提供的S303,具体包括下述S3031-S3034。In one design, in order to realize that the electronic device judges the first target sub-trajectory of the target vehicle in the first candidate time period and the first candidate companion sub-trajectory of each candidate companion vehicle in the first candidate time period Whether a candidate time period is a peer time period, as shown in FIG. 5 , S303 provided by the embodiment of the present invention specifically includes the following S3031-S3034.
S3031、电子设备确定第一候选时间段内第一目标子轨迹与第一候选同行子轨迹是否占用相同时间段。S3031. The electronic device determines whether the first target sub-track and the first candidate peer sub-track occupy the same time period in the first candidate time period.
作为一种可能的实现方式,电子设备获取第一目标子轨迹的首个轨迹点的时间信息以及最后一个轨迹点的时间信息,确定第一目标子轨迹的起始时间和结束时间;同样的,电子设备获取第一候选同行子轨迹的首个轨迹点的时间信息以及最后一个轨迹点的时间信息,确定第一候选同行子轨迹的起始时间和结束时间。As a possible implementation manner, the electronic device obtains the time information of the first trajectory point and the time information of the last trajectory point of the first target sub-track, and determines the start time and end time of the first target sub-track; similarly, The electronic device acquires the time information of the first track point and the time information of the last track point of the first candidate peer track, and determines the start time and end time of the first candidate peer track.
进一步的,若第一目标子轨迹的起始时间,位于第一候选同行子轨迹的起始时间和结束时间之间,或者第一候选同行子轨迹的起始时间,位于第一目标子轨迹的起始时间和结束时间之间,则电子设备确定第一目标子轨迹与第一候选同行子轨迹存在占用相同的时间段;否则,电子设备确定第一目标子轨迹与第一候选同行子轨迹不存在占用相同的时间段。Further, if the start time of the first target sub-track is located between the start time and the end time of the first candidate peer sub-track, or the start time of the first candidate peer sub-track is located in the first target sub-track Between the start time and the end time, the electronic device determines that the first target sub-track and the first candidate peer sub-track exist occupying the same time period; otherwise, the electronic device determines that the first target sub-track and the first candidate peer sub-track are not identical. Exists occupy the same time period.
示例性的,如图4所示,若第一候选时间段为候选时间段B,则第一目标子轨迹的起始时间为Ta6,结束时间为Ta10,第一候选同行子轨迹的起始时间为Tb5,结束时间为Tb9。当Tb5<Ta6<Tb9,或者Ta6<Tb5<Ta10时,电子设备确定候选时间段B中,第一目标子轨迹与第一候选同行子轨迹存在占用相同时间段。Exemplarily, as shown in FIG. 4 , if the first candidate time period is the candidate time period B, the start time of the first target sub-track is T a6 , the end time is T a10 , and the start time of the first candidate line sub-track is T a10 . The start time is T b5 and the end time is T b9 . When T b5 <T a6 <T b9 , or T a6 <T b5 <T a10 , the electronic device determines that in the candidate time period B, the first target sub-track and the first candidate peer sub-track exist and occupy the same time period.
S3032、电子设备在第一候选时间段内的第一目标子轨迹与第一候选同行子轨迹占用相同时间段的情况下,截取第一目标子轨迹以及第一候选同行子轨迹,分别得到相同时间段内的第二目标子轨迹以及第二候选同行子轨迹。S3032, the electronic device intercepts the first target sub-track and the first candidate peer sub-track under the condition that the first target sub-track and the first candidate peer sub-track in the first candidate time period occupy the same time period, and obtains the same time respectively The second target sub-track within the segment and the second candidate row sub-track.
作为一种可能的实现方式,电子设备根据第一目标子轨迹的起始时间和结束时间,以及第一候选同行子轨迹的起始时间和结束时间,确定第一目标子轨迹和第一候选同行子轨迹占用的相同时间段。进一步的,电子设备舍弃第一候选时间段中,不属于相同时间段内的轨迹点,第一目标子轨迹上剩余的轨迹点构成第二目标子轨迹,第一候选同行子轨迹上剩余的轨迹点构成第二候选同行子轨迹。As a possible implementation manner, the electronic device determines the first target sub-track and the first candidate peer according to the start time and end time of the first target sub-track and the start time and end time of the first candidate peer sub-track The same time period occupied by the sub-tracks. Further, the electronic device discards the track points in the first candidate time period that do not belong to the same time period, the remaining track points on the first target sub-track form the second target sub-track, and the remaining tracks on the first candidate line sub-track The points constitute the second candidate peer trajectories.
示例性的,如图4所示,若电子设备确定到的相同时间段为Ta6-Tb9,且Tb5<Ta6<Tb6、Ta8<Tb9<Ta10,则电子设备确定第二目标子轨迹为a6-a9,确定第二候选同行子轨迹为b6-b9。Exemplarily, as shown in FIG. 4 , if the same time period determined by the electronic device is T a6 -T b9 , and T b5 <T a6 <T b6 and T a8 <T b9 <T a10 , the electronic device determines the first The two target sub-trajectories are a6-a9, and the second candidate peer sub-trajectories are determined to be b6-b9.
需要说明的,电子设备如何得到第二目标子轨迹以及第二候选同行子轨迹的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that, for a specific implementation manner of how the electronic device obtains the second target sub-track and the second candidate row sub-track, reference may be made to the subsequent description of the embodiments of the present invention, which will not be repeated here.
S3033、电子设备确定第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离。S3033. The electronic device determines the track distance between the second target sub-track and the second candidate row sub-track.
作为一种可能的实现方式,电子设备确定第二目标子轨迹以及第二候选同行子轨迹之间的弗雷歇距离作为轨迹距离。As a possible implementation manner, the electronic device determines the Freycher distance between the second target sub-track and the second candidate peer sub-track as the track distance.
需要说明的,由于本发明实施例中第二目标子轨迹以及第二候选同行子轨迹上的轨迹点为离散的轨迹点,在确定两条轨迹之间的弗雷歇距离之前,电子设备根据预设的时间间隔在两条轨迹上进行插值处理,进而使得确定到的轨迹距离更加准确。It should be noted that, since the trajectory points on the second target sub-trajectory and the second candidate row sub-trajectory in the embodiment of the present invention are discrete trajectory points, before determining the Frechet distance between the two trajectories, the electronic device will The set time interval is interpolated on the two trajectories, thereby making the determined trajectory distance more accurate.
示例性的,结合图4,图6示出一种对候选时间段B内的第二目标子轨迹以及第二候选同行子轨迹上进行插点处理后的轨迹示意图。如图6所示,根据两条轨迹上的轨迹点,确定两条轨迹之间的弗雷歇距离。Exemplarily, with reference to FIG. 4 and FIG. 6 , a schematic diagram of a trajectory after interpolation processing is performed on the second target sub-track in the candidate time period B and the second candidate row sub-track. As shown in Fig. 6, according to the trajectory points on the two trajectories, the Frechet distance between the two trajectories is determined.
设二元组(d,V)是一个度量空间,其中,d是V上的度量函数,在无需指明度量函数的情况下,将度量空间简称为V。函数f表示第二目标子轨迹,函数g表示第二候选同行子轨迹,设函数f和函数g为V上的两条连续的曲线,即:Let the binary group (d, V) be a metric space, where d is the metric function on V, and the metric space is abbreviated as V without specifying the metric function. The function f represents the second target sub-track, and the function g represents the second candidate peer track. Let the function f and the function g be two continuous curves on V, namely:
f:[a,b]→Vf:[a,b]→V
g:[a′,b′]→Vg:[a′,b′]→V
其中,[a,b]为函数f的变量的取值范围,[a′,b′]为函数g的变量的取值范围。Among them, [a, b] is the value range of the variable of the function f, and [a', b'] is the value range of the variable of the function g.
又设α和β是单位区间的两个重参数化函数,即α:[0,1]→[0,1],β:[0,1]→[0,1],分别用于表示对目标车辆运动轨迹的描述和对候选同行车辆运动轨迹的描述。则第二目标子轨迹和第二候选同行子轨迹的弗雷歇距离F(f,g)定义为:Let α and β be two re-parameterized functions of the unit interval, namely α: [0,1]→[0,1], β: [0,1]→[0,1], respectively used to represent the pair The description of the target vehicle's trajectory and the description of the candidate vehicle's trajectory. Then the Frechet distance F(f, g) between the second target sub-track and the second candidate peer sub-track is defined as:
F(f,g)=minfmax{d(f(α(t)),g(β(t)))}F(f,g)=minfmax{d(f(α(t)),g(β(t)))}
α,βt∈[0,1]α,βt∈[0,1]
其中,f(α(t))用于表示在变量t代表的时刻下,目标车辆在空间中的位置;g(β(t))用于表示在变量t代表的时刻下,候选同行车辆在空间中的位置。d(f(α(t)),g(β(t)))用于表示在变量t代表的时刻下,目标车辆与候选同行车辆之间的距离。Among them, f(α(t)) is used to indicate the position of the target vehicle in space at the moment represented by the variable t; g(β(t)) is used to indicate that at the moment represented by the variable t, the candidate vehicle is at position in space. d(f(α(t)), g(β(t))) is used to represent the distance between the target vehicle and the candidate vehicle at the moment represented by the variable t.
minfmax{d(f(α(t)),g(β(t)))}表示在变量t在单位区间[0,1]内遍历所有取值后,确定出的目标车辆与候选车辆之间的弗雷歇距离。minfmax{d(f(α(t)),g(β(t)))} indicates that after the variable t has traversed all the values in the unit interval [0,1], the determined distance between the target vehicle and the candidate vehicle the Frechet distance.
进一步的,在电子设备将上述方法确定出第二目标子轨迹和第二候选同行子轨迹之间的弗雷歇距离作为第二目标子轨迹和第二候选同行子轨迹之间轨迹距离。Further, the electronic device uses the above method to determine the Frechet distance between the second target sub-track and the second candidate peer sub-track as the track distance between the second target sub-track and the second candidate peer sub-track.
S3034、电子设备在第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离小于预设距离的情况下,确定第一候选时间段为同行时间段。S3034. The electronic device determines that the first candidate time period is a peer time period when the track distance between the second target sub-track and the second candidate peer sub-track is less than the preset distance.
作为一种可能的实现方式,电子设备将在上述步骤S3033中确定的轨迹距离与预设距离进行比较,在轨迹距离小于预设距离的情况下,电子设备将第一候选时间确定为同行时间段;在轨迹距离大于或等于预设距离的情况下,电子设备将第一候选时间段确定为非同行时间段。As a possible implementation, the electronic device compares the track distance determined in the above step S3033 with the preset distance, and in the case that the track distance is less than the preset distance, the electronic device determines the first candidate time as the peer time period ; In the case that the track distance is greater than or equal to the preset distance, the electronic device determines the first candidate time period as a non-peering time period.
在一种可能的设计中,为了确定第二目标子轨迹以及第二候选同行子轨迹,如图7所示,本发明实施例提供的S3032,具体包括S401-S406。In a possible design, in order to determine the second target sub-trajectory and the second candidate row sub-trajectory, as shown in FIG. 7 , S3032 provided by the embodiment of the present invention specifically includes S401-S406.
S401、电子设备确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点。S401. The electronic device determines the interception starting point of the first target sub-track and the intercepting starting point of the first candidate row sub-track.
作为一种可能的实现方式,电子设备分别将第一目标子轨迹和第一候选同行子轨迹上的首个轨迹点作为截取起始点。As a possible implementation manner, the electronic device respectively uses the first target sub-track and the first track point on the first candidate row sub-track as the interception starting point.
需要说明的,电子设备另外一种如何确定轨迹上截取起始点的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that for another specific implementation manner of how the electronic device determines the interception starting point on the track, reference may be made to the subsequent description of the embodiments of the present invention, and details are not repeated here.
S402、电子设备分别确定第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹。S402, the electronic device determines the remaining track of the first target sub-track and the remaining track of the first candidate row sub-track, respectively.
作为一种可能的实现方式,电子设备分别在第一目标子轨迹和第一候选同行子轨迹上,将各自轨迹上截取起始点之前的轨迹点舍弃,剩余轨迹点组成的轨迹分别为第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹。As a possible implementation, the electronic device discards the track points before the interception start point on the first target sub-track and the first candidate peer track respectively, and the tracks composed of the remaining track points are the first target respectively. The remaining tracks of the sub-tracks and the remaining tracks of the first candidate row's sub-tracks.
S403、电子设备确定在第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹中,时长最小的剩余轨迹与时长最大的剩余轨迹的比值是否大于预设阈值。S403. The electronic device determines whether the ratio of the remaining track with the smallest duration to the remaining track with the longest duration among the remaining tracks of the first target sub-track and the remaining tracks of the first candidate peer sub-track is greater than a preset threshold.
作为一种可能的实现方式,电子设备在获取到第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹后,确定各剩余轨迹的时长。进一步的,电子设备计算时长最短剩余轨迹与时长最长剩余轨迹的比值,并将确定到的比值与预设阈值比较,确定其是否大于预设阈值。As a possible implementation manner, after acquiring the remaining tracks of the first target sub-track and the remaining tracks of the first candidate peer sub-tracks, the electronic device determines the duration of each remaining track. Further, the electronic device calculates the ratio of the shortest remaining track to the longest remaining track, and compares the determined ratio with a preset threshold to determine whether it is greater than the preset threshold.
需要说明的,上述预设阈值可以由电子设备的运维人员在电子设备中预先设置。It should be noted that, the above-mentioned preset threshold may be preset in the electronic device by the operation and maintenance personnel of the electronic device.
示例性的,如图4所示,以在候选时间段B内截取第一目标子轨迹和第一候选同行子轨迹为例,若a6为第一目标子轨迹的截取起始点,b6为第一候选子轨迹的截取起始点,则电子设备确定第一目标子轨迹的剩余轨迹为a6-a10,第一候选同行子轨迹的剩余轨迹为b6-b9。进一步的,电子设备确定a6-a10的时长T1以及b6-b9的时长T2,若a6-a10的时长T1大于b6-b9的时长T2,确预设阈值为0.5,则电子设备确定T2/T1是否大于预设阈值0.5。Exemplarily, as shown in FIG. 4 , taking the interception of the first target sub-track and the first candidate peer sub-track in the candidate time period B as an example, if a6 is the interception starting point of the first target sub-track, b6 is the first target sub-track. The interception starting point of the candidate sub-track, the electronic device determines that the remaining track of the first target sub-track is a6-a10, and the remaining track of the first candidate row sub-track is b6-b9. Further, the electronic device determines the
可以理解的,通过判断比值和预设距离,可以有什么效果。It is understandable that by judging the ratio and the preset distance, what effect can be achieved.
S404、电子设备在第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹中,时长最小的剩余轨迹与时长最大的剩余轨迹的比值大于预设阈值时,分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点。S404. The electronic device determines the first target sub-track respectively when the ratio of the remaining track with the smallest duration to the remaining track with the longest duration among the remaining tracks of the first target sub-track and the remaining tracks of the first candidate row sub-track is greater than a preset threshold The interception end point of the trajectory and the interception end point of the sub-trajectories of the first candidate row.
作为一种可能的实现方式,电子设备在上述步骤S402中确定时长最短剩余轨迹与时长最长剩余轨迹的比值大于预设阈值后,分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点。As a possible implementation manner, after determining that the ratio of the shortest remaining track and the longest remaining track is greater than a preset threshold in the above step S402, the electronic device determines the interception end point of the first target sub-track and the first candidate peer respectively. The clipping end point of the subtrack.
需要说明的,电子设备如何确定轨迹上截取结束点的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that, for the specific implementation manner of how the electronic device determines the interception end point on the track, reference may be made to the subsequent description of the embodiments of the present invention, which will not be repeated here.
S405、电子设备根据第一目标子轨迹的截取起始点,以及第一目标子轨迹的截取结束点,截取第一目标子轨迹,得到第二目标子轨迹。S405. The electronic device intercepts the first target sub-track according to the interception start point of the first target sub-track and the interception end point of the first target sub-track to obtain the second target sub-track.
作为一种可能的实现方式,在电子设备确定第一目标子轨迹的截取起始点和截取结束点后,在第一目标子轨迹上,将截取起始点之前的轨迹点,以及截取结束点之后的轨迹点舍弃,剩余轨迹点组成的轨迹为第二目标子轨迹。As a possible implementation, after the electronic device determines the interception start point and the interception end point of the first target sub-track, on the first target sub-track, the interception point before the start point and the interception end point are The track points are discarded, and the track composed of the remaining track points is the second target sub-track.
S406、电子设备根据第一候选同行子轨迹的截取起始点,以及第一候选同行子轨迹的截取结束点,截取第一候选同行子轨迹,得到第二候选同行子轨迹。S406, the electronic device intercepts the first candidate peer sub-track according to the interception start point of the first candidate peer sub-track and the interception end point of the first candidate peer sub-track to obtain the second candidate peer sub-track.
作为一种可能的实现方式,在电子设备确定第一候选同行子轨迹的截取起始点和截取结束点后,在第一候选同行子轨迹上,将截取起始点之前的轨迹点,以及截取结束点之后的轨迹点舍弃,剩余轨迹点组成的轨迹为第二候选同行子轨迹。As a possible implementation manner, after the electronic device determines the interception start point and interception end point of the first candidate peer sub-track, on the first candidate peer sub-track, the intercept point before the start point and the intercept end point are The subsequent trajectory points are discarded, and the trajectory composed of the remaining trajectory points is the second candidate peer trajectory.
在一种可能的设计中,为了确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点,如图8所示,本发明实施例提供的S401,具体包括S4011-S4012。In a possible design, in order to determine the interception start point of the first target sub-track and the interception start point of the first candidate row sub-track, as shown in FIG. 8 , S401 provided by the embodiment of the present invention specifically includes S4011-S4012 .
S4011、电子设备确定第一轨迹点,并将第一轨迹点作为第一轨迹的截取起始点。S4011 , the electronic device determines a first trajectory point, and uses the first trajectory point as an interception starting point of the first trajectory.
其中,第一轨迹点为第一目标子轨迹的首个轨迹点以及第一候选同行子轨迹的首个轨迹点中时间在后的轨迹点;第一轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第一轨迹点的轨迹。Wherein, the first trajectory point is the first trajectory point of the first target sub-trajectory and the first trajectory point of the first candidate row sub-trajectories in the later time; the first trajectory is the first target sub-trajectory and the first candidate trajectory The track of the first track point is included in the same sub track.
作为一种可能的实现方式,电子设备获取第一目标子轨迹上的首个轨迹点的时间信息以及第一候选同行子轨迹的首个轨迹点的时间信息,将两个轨迹点中,时间在后的轨迹点确定为第一轨迹点,第一轨迹点所在的轨迹为第一轨迹。在电子设备确定第一轨迹点后,将第一轨迹点作为第一轨迹的截取起始点。As a possible implementation manner, the electronic device obtains time information of the first track point on the first target sub-track and time information of the first track point of the first candidate peer track, The latter track point is determined as the first track point, and the track where the first track point is located is the first track. After the electronic device determines the first track point, the first track point is used as the interception starting point of the first track.
示例性的,如图4所示,在候选时间段B内,第一目标子轨迹的首个轨迹点的时间信息为Ta6,第一候选同行子轨迹的首个轨迹点的时间信息为Tb5。若Ta6在Tb5之后,则电子设备确定a6为第一轨迹点,a6-a10为第一轨迹,进一步的,电子设备确定第一目标子轨迹上的截取起始点为a6。Exemplarily, as shown in FIG. 4 , in the candidate time period B, the time information of the first track point of the first target sub-track is T a6 , and the time information of the first track point of the first candidate peer track is T. b5 . If T a6 is after T b5 , the electronic device determines that a6 is the first track point, and a6-a10 is the first track. Further, the electronic device determines that the interception starting point on the first target sub-track is a6.
相应的,若Tb5在Ta6之后,则电子设备确定第一候选同行子轨迹上的截取起始点为b5。Correspondingly, if T b5 is after T a6 , the electronic device determines that the interception starting point on the sub-track of the first candidate row is b5.
S4012、电子设备确定第二轨迹点,并将第二轨迹点作为第二轨迹的截取起始点。S4012 , the electronic device determines a second trajectory point, and uses the second trajectory point as an interception starting point of the second trajectory.
其中,第二轨迹点为与第一轨迹点位于不同轨迹上的轨迹点中与第一轨迹点的时间间隔最小的轨迹点;第二轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第二轨迹点的轨迹。The second trajectory point is the trajectory point with the smallest time interval with the first trajectory point among the trajectory points located on different trajectories from the first trajectory point; the second trajectory is the first target sub-trajectory and the first candidate row sub-trajectory A trajectory that includes the second trajectory point.
作为一种可能的实现方式,电子设备获取第二轨迹上的各轨迹点的时间信息,确定每个轨迹点与第一轨迹点的时间差值,将差值最小的轨迹点确定为第二轨迹点,即电子设备将与第一轨迹点时间间隔最小的轨迹点确定为第二轨迹点。进一步的,电子设备将第二轨迹点作为第二轨迹的截取起始点。As a possible implementation, the electronic device obtains time information of each track point on the second track, determines the time difference between each track point and the first track point, and determines the track point with the smallest difference as the second track point, that is, the electronic device determines the trajectory point with the smallest time interval from the first trajectory point as the second trajectory point. Further, the electronic device uses the second track point as a starting point for intercepting the second track.
示例性的,如图4所示,在候选时间段B内,若确定第一轨迹点为第一目标子轨迹上的轨迹点a6,则电子设备确定b5、b6、b7、b8和b9与a6的时间间隔,若b7与a6时间间隔最小,则电子设备确定第二轨迹点为第一候选同行子轨迹上的轨迹点b7。Exemplarily, as shown in FIG. 4 , in the candidate time period B, if the first trajectory point is determined to be the trajectory point a6 on the first target sub-trajectory, the electronic device determines b5, b6, b7, b8, b9 and a6. If the time interval between b7 and a6 is the smallest, the electronic device determines that the second track point is the track point b7 on the first candidate peer track.
在一种可能的设计中,为了确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点,如图9所示,本发明实施例提供的S404,具体包括S4041-S4042。In a possible design, in order to determine the interception end point of the first target sub-track and the interception end point of the first candidate row sub-track, as shown in FIG. 9 , S404 provided by the embodiment of the present invention specifically includes S4041-S4042 .
S4041、电子设备确定第三轨迹点,并将第三轨迹点作为第三轨迹的截取结束点。S4041. The electronic device determines a third trajectory point, and uses the third trajectory point as an interception end point of the third trajectory.
其中,第三轨迹点为第一目标子轨迹的最后一个轨迹点以及第一候选同行子轨迹的最后一个轨迹点中时间在前的轨迹点;第三轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第三轨迹点的轨迹;Wherein, the third trajectory point is the last trajectory point of the first target sub-trajectory and the previous trajectory point in the last trajectory point of the first candidate same-line sub-trajectory; the third trajectory is the first target sub-trajectory and the first candidate trajectory A track that includes the third track point in the same sub track;
作为一种可能的实现方式,电子设备获取第一目标子轨迹上的最后一个轨迹点的时间信息以及第一候选同行子轨迹的最后一个轨迹点的时间信息,将两个轨迹点中,时间在前的轨迹点确定为第三轨迹点,第三轨迹点所在的轨迹为第三轨迹。在电子设备确定第三轨迹点后,将第三轨迹点作为第三轨迹的截取结束点。As a possible implementation manner, the electronic device obtains time information of the last track point on the first target sub-track and time information of the last track point of the first candidate peer track, The previous track point is determined as the third track point, and the track where the third track point is located is the third track. After the electronic device determines the third track point, the third track point is used as the interception end point of the third track.
示例性的,如图4所示,在候选时间段B内,第一目标子轨迹的最后一个轨迹点的时间信息为Ta10,第一候选同行子轨迹的最后一个轨迹点的时间信息为Tb9。若Tb9在Ta10之前,则电子设备确定b9为第三轨迹点,b5-b9为第三轨迹,进一步的,电子设备确定第一候选同行子轨迹上的截取结束点为b9。Exemplarily, as shown in FIG. 4 , in the candidate time period B, the time information of the last track point of the first target sub-track is T a10 , and the time information of the last track point of the first candidate peer track is T b9 . If T b9 is before T a10 , the electronic device determines that b9 is the third trajectory point, and b5-b9 is the third trajectory. Further, the electronic device determines that the interception end point on the first candidate row sub-trajectory is b9.
相应的,若Ta10在Tb9之前,则电子设备确定第一目标子轨迹上的截取结束点为a10。Correspondingly, if T a10 is before T b9 , the electronic device determines that the interception end point on the first target sub-track is a10 .
S4042、电子设备确定第四轨迹点,并将第四轨迹点作为第四轨迹的截取结束点。S4042. The electronic device determines a fourth trajectory point, and uses the fourth trajectory point as an interception end point of the fourth trajectory.
其中,第四轨迹点为与第三轨迹点位于不同轨迹上的轨迹点中与第三轨迹点的时间间隔最小的轨迹点;第四轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第四轨迹点的轨迹。Among them, the fourth trajectory point is the trajectory point with the smallest time interval with the third trajectory point among the trajectory points located on different trajectories with the third trajectory point; A trajectory that includes the fourth trajectory point.
作为一种可能的实现方式,电子设备获取第四轨迹上的各轨迹点的时间信息,确定每个轨迹点与第三轨迹点的时间差值,将差值最小的轨迹点确定为第四轨迹点,即电子设备将与第三轨迹点时间间隔最小的轨迹点确定为第四轨迹点。进一步的,电子设备将第四轨迹点作为第四轨迹的截取起始点。As a possible implementation, the electronic device obtains time information of each track point on the fourth track, determines the time difference between each track point and the third track point, and determines the track point with the smallest difference as the fourth track point, that is, the electronic device determines the trajectory point with the smallest time interval from the third trajectory point as the fourth trajectory point. Further, the electronic device uses the fourth track point as a starting point for intercepting the fourth track.
示例性的,如图4所示,在候选时间段B内,若确定第三轨迹点为第一候选同行子轨迹上的轨迹点b9,则电子设备确定a6、a7、a8、a9和a10与b9的时间间隔,若a9与b9时间间隔最小,则电子设备确定第四轨迹点为第一目标子轨迹上的轨迹点a9。Exemplarily, as shown in FIG. 4 , within the candidate time period B, if it is determined that the third track point is the track point b9 on the first candidate peer track, the electronic device determines that a6 , a7 , a8 , a9 and a10 are the same as The time interval of b9, if the time interval between a9 and b9 is the smallest, the electronic device determines that the fourth track point is the track point a9 on the first target sub-track.
在一种设计中,在确定相似度大于预设相似度的目标同行车辆之后,为了提供给用户更好的显示效果,如图10所示,本发明实施例提供的同行车辆的确定方法还包括下述S501-S503。In one design, after determining a target companion vehicle with a similarity greater than a preset similarity, in order to provide the user with a better display effect, as shown in FIG. 10 , the method for determining a companion vehicle provided by an embodiment of the present invention further includes: The following S501-S503.
S501、电子设备获取目标轨迹对的目标轨迹信息。S501. The electronic device acquires target trajectory information of a target trajectory pair.
其中,目标轨迹对包括目标车辆的轨迹以及目标同行车辆的轨迹;目标轨迹信息包括目标同行车辆的标识,以及目标同行车辆在历史时间段内的同行道路的信息。The target trajectory pair includes the trajectory of the target vehicle and the trajectory of the target companion vehicle; the target trajectory information includes the identifier of the target companion vehicle and the information of the companion road of the target companion vehicle in the historical time period.
作为一种可能的实现方式,电子设备在确定目标同行车辆之后,将目标同行车辆的轨迹与目标车辆的轨迹组成目标轨迹对,获取目标轨迹对的轨迹点信息,进行路网匹配和路径计算等,遍历目标轨迹对中的两条轨迹,确定两条轨迹上的道路,以及进入道路和驶出道路的时间信息。As a possible implementation, after the electronic device determines the target companion vehicle, the target companion vehicle's trajectory and the target vehicle's trajectory form a target trajectory pair, obtain the trajectory point information of the target trajectory pair, and perform road network matching and path calculation, etc. , traverse the two trajectories in the target trajectory pair, determine the road on the two trajectories, and the time information of entering and exiting the road.
S502、电子设备确定目标车辆以及目标同行车辆进入或驶出同行道路的时间间隔是否小于预设时间间隔。S502 , the electronic device determines whether the time interval between the target vehicle and the target companion vehicle entering or leaving the companion road is less than a preset time interval.
作为一种可能的实现方式,电子设备基于上述步骤S501中获取到的两条轨迹进入道路和驶出道路的时间信息,确定两条轨迹在经过同一道路时,进入道路的时间差以及驶出道路的时间差是否小于预设时间间隔。进一步的,若目标车辆以及目标同行车辆进入或驶出同一道路的时间间隔小于预设时间间隔,则确定该条道路为同行道路。As a possible implementation, the electronic device determines, based on the time information of the two trajectories entering the road and exiting the road obtained in the above step S501, the time difference of entering the road and the time of exiting the road when the two trajectories pass through the same road. Whether the time difference is less than the preset time interval. Further, if the time interval between the target vehicle and the target companion vehicle entering or exiting the same road is less than the preset time interval, the road is determined to be a companion road.
需要说明的,上述预设时间间隔可以由电子设备的运维人员预先在电子设备中设置。It should be noted that the above-mentioned preset time interval may be preset in the electronic device by an operation and maintenance personnel of the electronic device.
示例性的,若预设时间间隔为10分钟,在上述步骤S501中确定到目标车辆的轨迹经过路段A,且进入路段A的时间为上午10点,驶出路段A的时间为上午10时24分;目标同行车辆的轨迹经过路段A,且进入路段A的时间为上午10时5分,驶出路段A的时间为上午10时30分,则电子设备目标车辆以及目标同行车辆进入或驶出同一道路的时间间隔小于预设时间间隔,确定路段A为目标车辆与目标同行车辆的一条同行路段。Exemplarily, if the preset time interval is 10 minutes, it is determined in the above step S501 that the trajectory to the target vehicle passes through the road segment A, and the time to enter the road segment A is 10:00 am, and the time to exit the road segment A is 10:24 am The track of the target companion vehicle passes through section A, and the time for entering section A is 10:5 a.m. and the time for exiting section A is 10:30 a.m., then the electronic device target vehicle and the target companion vehicle enter or exit If the time interval of the same road is less than the preset time interval, the road section A is determined to be a traveling section of the target vehicle and the target traveling vehicle.
S503、电子设备显示目标轨迹信息。S503, the electronic device displays target trajectory information.
作为一种可能的实现方式,电子设备基于上述步骤S501中确定到的目标轨迹对的目标轨迹信息,生成显示内容,在电子设备上显示。As a possible implementation manner, the electronic device generates display content based on the target trajectory information of the target trajectory pair determined in the above step S501, and displays it on the electronic device.
示例性的,图11示出了一种在电子设备中显示目标轨迹信息的显示效果,如图11所示,在电子设备中显示有与目标车辆同行的目标同行车辆的标识、两条轨迹同行的卡口数量、同行轨迹的里程以及路线相似度。Exemplarily, FIG. 11 shows a display effect of displaying target trajectory information in an electronic device. As shown in FIG. 11 , the electronic device displays the identification of the target vehicle that is in the same direction as the target vehicle, and the two trajectories are in the same direction. The number of bayonet, the mileage of the same track and the similarity of the route.
可选的,目标轨迹信息中还包括目标车辆以及目标同行车辆的全程轨迹信息以及同行路段信息,电子设备进行显示目标轨迹信息,还包括显示目标车辆以及目标同行车辆的全程轨迹信息以及同行路段信息。Optionally, the target trajectory information also includes the entire trajectory information of the target vehicle and the target companion vehicle and the road section information, and the electronic device displays the target trajectory information, and also includes displaying the target vehicle and the target companion vehicle. .
在一些实施例中,电子设备基于上述步骤S501中确定到的目标轨迹对的目标轨迹信息,经过路网匹配和路径计算后,在电子地图上显示目标车辆的轨迹以及目标同行车辆的轨迹,并结合各轨迹点的时间信息,输出可以随着时间轴移动而动态显示的同行轨迹显示效果。In some embodiments, based on the target trajectory information of the target trajectory pair determined in the above step S501, the electronic device displays the trajectory of the target vehicle and the trajectory of the target companion vehicle on the electronic map after road network matching and path calculation, and Combined with the time information of each track point, the output of the peer track display effect that can be dynamically displayed as the time axis moves.
示例性的,图12示出了一种在电子设备中显示同行轨迹的显示效果,如图12所示,在电子地图中显示目标车辆以及目标同行车辆的轨迹,随着对下方时间轴的移动,动态显示目标车辆的标识和目标同行车辆的标识,以获得更好的显示效果,便于用户分析同行轨迹。Exemplarily, FIG. 12 shows a display effect of displaying the track of a peer in an electronic device. As shown in FIG. 12 , the track of the target vehicle and the target companion vehicle is displayed in the electronic map, with the movement of the time axis below. , dynamically display the identification of the target vehicle and the identification of the target companion vehicle to obtain a better display effect and facilitate the user to analyze the companion trajectory.
本发明提出一种同行车辆的确定方法、装置、设备及存储介质,电子设备响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果,其中,同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。进一步的,根据获取到的每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。本发明提供的同行车辆的确定方法根据候选同行车辆与目标车辆的在划分后的各个时间段内的轨迹是否为同行轨迹,确定各个时间段是否为车辆同行的同行时间段,进而能够通过同行时间段的数量确定车辆轨迹的相似度,从候选同行车辆中确定出与目标车辆同行的车辆。本发明通过划分时间段的方式,分别确定每个时间段内的轨迹相似度,提高了每个时间段内轨迹相似度计算结果的准确性,进而提高了确定同行车辆的准确性。The present invention provides a method, device, device and storage medium for determining a companion vehicle. The electronic device responds to the historical time period input by the user and the target vehicle identification to obtain the peer analysis result of the target vehicle in the historical time period, wherein the peer analysis The results include that among the multiple candidate traveling vehicles, each candidate traveling vehicle has multiple traveling time periods with the target vehicle; the track distance of each traveling time period is less than the preset distance; the track distance is the distance between the track of a candidate traveling vehicle and the target vehicle. The Frechet distance of a trajectory within a peer time period. Further, according to the obtained number of multiple traveling time periods of each candidate traveling vehicle, determine the similarity between the trajectory of each candidate traveling vehicle and the track of the target vehicle, and determine the similarity between the multiple candidate traveling vehicles. The target peer vehicle whose degree is greater than the preset similarity degree. The method for determining a traveling vehicle provided by the present invention determines whether each time period is a traveling time period of a traveling vehicle according to whether the trajectories of a candidate traveling vehicle and a target vehicle in each divided time period are traveling traveling paths, and then the traveling time can be determined by the traveling time period. The number of segments determines the similarity of vehicle trajectories, and the vehicles that travel with the target vehicle are determined from the candidate traveling vehicles. The invention determines the track similarity in each time segment separately by dividing the time segment, improves the accuracy of the calculation result of the track similarity in each time segment, and further improves the accuracy of determining the companion vehicle.
在一种设计中,本发明提供的同行车辆的确定方法还可以用于确定全量的同行车辆,如图13所示,本发明实施例提供另外一种同行车辆的确定方法,包括如下S601-S603。In one design, the method for determining a companion vehicle provided by the present invention can also be used to determine a full number of companion vehicles. As shown in FIG. 13 , an embodiment of the present invention provides another method for determining a companion vehicle, including the following S601-S603 .
S601、电子设备响应于用户输入的历史时间段,获取历史时间段内的候选同行车辆组合信息。S601. The electronic device acquires the candidate vehicle combination information in the historical time period in response to the historical time period input by the user.
其中,候选同行车辆组合信息包括候选同行车辆的标识以及候选同行车辆组合的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。Wherein, the information of the candidate companion vehicle combination includes the identifier of the candidate companion vehicle and multiple companion time periods of the candidate companion vehicle combination; the trajectory distance of each companion time segment is less than the preset distance; the trajectory distance is the trajectory of a candidate companion vehicle and the target vehicle. The Frechet distance of the trajectory in a peer time period.
需要说明的,上述预设距离用于判断各时间段是否为同行时间段,当时间段内轨迹距离小于预设距离时,电子设备确定该时间段为同行时间段,当时间段内轨迹距离大于或等于该预设距离时,电子设备确定该时间段为非同行时间段。It should be noted that the above preset distance is used to determine whether each time period is a peer time period. When the track distance within the time period is less than the preset distance, the electronic device determines that the time period is a peer time period. When the track distance within the time period is greater than or equal to the preset distance, the electronic device determines that the time period is a non-peering time period.
需要说明的,上述预设距离可以由电子设备的运维人员预先在电子设备中设置。It should be noted that the above-mentioned preset distance may be preset in the electronic device by an operation and maintenance personnel of the electronic device.
作为一种可能的实现方式,电子设备获取用户输入的历史时间段。进一步的,电子设备基于历史时间段,从预先存储的候选同行车辆组合信息中,获取历史时间段内的候选同行车辆组合信息。As a possible implementation manner, the electronic device acquires the historical time period input by the user. Further, based on the historical time period, the electronic device obtains the candidate companion vehicle combination information within the historical time period from the pre-stored candidate companion vehicle combination information.
需要说明的,电子设备如何实现预先存储候选同行车辆组合信息的具体实现方式,可以参照本发明实施例的后续描述,此处不再进行赘述。It should be noted that, for the specific implementation manner of how the electronic device realizes pre-storing the combination information of the candidate traveling vehicles, reference may be made to the subsequent description of the embodiments of the present invention, which will not be repeated here.
S602、电子设备根据每个候选同行车辆组合的多个同行时间段的数量,确定每个候选同行车辆组合的候选同行车辆的轨迹之间的目标相似度。S602. The electronic device determines the target similarity between the trajectories of the candidate traveling vehicles of each candidate traveling vehicle combination according to the number of multiple traveling time periods of each candidate traveling traveling vehicle combination.
需要说明的,每个候选同行车辆组合的候选同行车辆中的任一车辆可以为目标车辆,剩余车辆为该目标车辆的候选同行车辆。It should be noted that any vehicle in the candidate companion vehicle of each candidate companion vehicle combination may be the target vehicle, and the remaining vehicles are the candidate companion vehicles of the target vehicle.
进一步的,电子设备如何实现确定每个候选同行车辆组合的候选同行车辆的轨迹之间的目标相似度的具体实现方式,可以参照上述步骤S202中的实现方式,此处不再进行赘述。Further, for the specific implementation manner of how the electronic device realizes determining the target similarity between the trajectories of the candidate companion vehicles of each candidate companion vehicle combination, reference may be made to the implementation manner in the foregoing step S202, which will not be repeated here.
S603、电子设备基于确定到的目标相似度,从候选同行车辆组合中,确定相似度大于预设相似度的目标同行车辆组合。S603. Based on the determined target similarity, the electronic device determines, from the candidate companion vehicle combinations, a target companion vehicle combination with a similarity greater than a preset similarity.
作为一种可能的实现方式,电子设备从确定到的多个候选同行车辆组合的目标相似度中,确定相似度大于预设相似度的目标相似度,将目标相似度对应的候选同行车辆组合确定为目标同行车辆组合。As a possible implementation manner, the electronic device determines the target similarity whose similarity is greater than the preset similarity from among the determined target similarities of multiple candidate vehicle combinations, and determines the candidate vehicle combination corresponding to the target similarity. For the target peer vehicle combination.
需要说明的,预设相似度可以由电子设备的运维人员预先在电子设备中设置。It should be noted that the preset similarity may be preset in the electronic device by the operation and maintenance personnel of the electronic device.
可选的,在电子设备确定目标同行车辆组合后,还用于将获取到的目标同行车辆组合进行展示,电子设备展示目标同行车辆组合的具体实现方式,可以参照本方明实施例上述步骤S501-S503中记载的方法对目标同行车辆组合进行展示。Optionally, after the electronic device determines the target companion vehicle combination, it is also used to display the obtained target companion vehicle combination. For the specific implementation method of displaying the target companion vehicle combination by the electronic device, reference may be made to the above step S501 in this embodiment of the present invention. -The method described in S503 displays the target vehicle combination.
在一种设计中,为了实现在电子设备获取用户输入的历史时间段之前,预先在电子设备内存储候选同行车辆组合信息,如图14所示,本发明实施例提供的同行车辆的确定方法还包括S701-S703。In one design, in order to store the candidate vehicle combination information in the electronic device before the electronic device acquires the historical time period input by the user, as shown in FIG. 14 , the method for determining the companion vehicle provided by the embodiment of the present invention further Including S701-S703.
S701、电子设备获取全量的车辆轨迹。S701, the electronic device acquires a full amount of vehicle trajectories.
作为一种可能的实现方式,电子设备从多个数据源获取所有车辆的轨迹点,以得到所有车辆的多源离散轨迹。进一步的,电子设备对获取到的轨迹点进行去噪和融合处理,根据处理后得到的轨迹点得到所有车辆的车辆轨迹。As a possible implementation manner, the electronic device obtains the trajectory points of all vehicles from multiple data sources, so as to obtain multi-source discrete trajectories of all vehicles. Further, the electronic device performs denoising and fusion processing on the acquired trajectory points, and obtains vehicle trajectories of all vehicles according to the processed trajectory points.
S702、电子设备确定候选同行车辆组合。S702, the electronic device determines the candidate vehicle combination.
作为一种可能的实现方式,电子设备通过笛卡尔积算法将所有的车辆两两组合,确定出候选同行车辆组合。As a possible implementation manner, the electronic device combines all the vehicles in pairs through a Cartesian product algorithm to determine a candidate vehicle combination.
S703、电子设备基于全量的车辆轨迹以及候选同行车辆组合,确定候选同行车辆组合信息,并存储。S703 , the electronic device determines and stores the information of the candidate companion vehicle combination based on the full vehicle trajectory and the candidate companion vehicle combination.
需要说明的,关于确定候选同行车辆组合信息中的候选同行车辆组合的多个同行时间段的具体实现方式,可以参照上述步骤S3031-S3034,其中,候选同行车辆组合中任一车辆可以作为目标车辆,另一车辆可以作为候选同行车辆,进而采用上述步骤S3031-S3034中记载的方法确定候选同行车辆组合的多个同行时间段。进一步的,电子设备将候选同行车辆组合的车辆标识以及候选同行车辆组合的多个同行时间段作为候选同行车辆组合信息存储与电子设备。It should be noted that, for the specific implementation of determining multiple traveling time periods of the candidate traveling vehicle combination in the candidate traveling vehicle combination information, reference may be made to the above steps S3031-S3034, wherein any vehicle in the candidate traveling vehicle combination can be used as the target vehicle , another vehicle can be used as a candidate vehicle, and then the method described in the above steps S3031-S3034 is used to determine multiple time periods of the candidate vehicle combination. Further, the electronic device stores the vehicle identifier of the candidate vehicle combination and multiple time periods of the candidate vehicle combination as candidate vehicle combination information and stores it in the electronic device.
可选的,候选同行车辆组合信息中还包括候选同行车辆组合在各个同行时间段内轨迹距离。Optionally, the information about the candidate traveling vehicle combination further includes the trajectory distance of the candidate traveling vehicle combination in each traveling time period.
上述主要从方法的角度对本发明实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present invention from the perspective of methods. In order to realize the above-mentioned functions, it includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
本发明实施例可以根据上述方法示例对用户设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present invention, the user equipment may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. Optionally, the division of modules in this embodiment of the present invention is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
图15为本发明实施例提供的一种电子设备的结构示意图,该电子设备80用于执行上述同行车辆的确定方法。如图15所示,该电子设备80包括获取单元801、确定单元802、处理单元803、判断单元804、存储单元805以及显示单元806。FIG. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the
获取单元801,用于响应于用户输入的历史时间段以及目标车辆标识,获取目标车辆在历史时间段内的同行分析结果。同行分析结果包括多个候选同行车辆中,每个候选同行车辆与目标车辆的多个同行时间段;每个同行时间段的轨迹距离小于预设距离;轨迹距离为一个候选同行车辆的轨迹与目标车辆的轨迹在一个同行时间段内的弗雷歇距离。例如,如图2所示,获取单元801可以用于执行S201。The obtaining
确定单元802,用于根据每个候选同行车辆的多个同行时间段的数量,确定每个候选同行车辆的轨迹与目标车辆的轨迹之间的目标相似度。例如,如图2所示,确定单元802可以用于执行S202。The determining
确定单元802,还用于基于确定到的目标相似度,从多个候选同行车辆中,确定相似度大于预设相似度的目标同行车辆。例如,如图2所示,确定单元802可以用于执行S203。The determining
可选的,如图15所示,本发明实施例提供的电子设备80还包括处理单元803、判断单元804以及存储单元805。Optionally, as shown in FIG. 15 , the
确定单元802,还用于确定目标车辆的目标轨迹以及每个候选同行车辆的候选同行轨迹。例如,如图3所示,确定单元802可以用于执行S301。The determining
处理单元803,用于根据预设的划分时长,将总时间段划分为多个候选时间段。总时间段包括目标轨迹占用的时间段和候选同行轨迹占用的时间段。例如,如图3所示,处理单元803可以用于执行S302。The
判断单元804,用于根据目标车辆在第一候选时间段内的第一目标子轨迹,以及每个候选同行车辆在第一候选时间段内的第一候选同行子轨迹,判断第一候选时间段是否为同行时间段;第一候选时间段为多个候选时间段中的任意一个。例如,如图3所示,判断单元804可以用于执行S303。The
存储单元805,用于在第一候选时间段为同行时间段的情况下,将同行时间段以及同行时间段对应的候选同行车辆作为同行分析结果进行存储。例如,如图3所示,存储单元805可以用于执行S304。The
可选的,如图15所示,本发明实施例提供的电子设备80中,处理单元803,还用于在第一候选时间段内的第一目标子轨迹与第一候选同行子轨迹占用相同时间段的情况下,截取第一目标子轨迹以及第一候选同行子轨迹,分别得到相同时间段内的第二目标子轨迹以及第二候选同行子轨迹。例如,如图5所示,处理单元803可以用于执行S3032。Optionally, as shown in FIG. 15 , in the
确定单元802,还用于确定第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离,并在第二目标子轨迹以及第二候选同行子轨迹之间的轨迹距离小于预设距离的情况下,确定第一候选时间段为同行时间段。例如,如图5所示,确定单元802可以用于执行S3034。The determining
可选的,如图15所示,本发明实施例提供的电子设备80中,确定单元802,还用于确定第一目标子轨迹的截取起始点以及第一候选同行子轨迹的截取起始点,并分别确定第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹。例如,如图7所示,确定单元802可以用于执行S401。Optionally, as shown in FIG. 15 , in the
确定单元802,还用于在第一目标子轨迹的剩余轨迹以及第一候选同行子轨迹的剩余轨迹中,时长最小的剩余轨迹与时长最大的剩余轨迹的比值大于预设阈值时,分别确定第一目标子轨迹的截取结束点以及第一候选同行子轨迹的截取结束点。例如,如图7所示,确定单元802可以用于执行S404。The determining
处理单元803,还用于根据第一目标子轨迹的截取起始点,以及第一目标子轨迹的截取结束点,截取第一目标子轨迹,得到第二目标子轨迹。例如,如图7所示,处理单元803可以用于执行S405。The
处理单元803,还用于根据第一候选同行子轨迹的截取起始点,以及第一候选同行子轨迹的截取结束点,截取第一候选同行子轨迹,得到第二候选同行子轨迹。例如,如图7所示,处理单元803可以用于执行S406。The
可选的,如图15所示,本发明实施例提供的电子设备80中,确定单元802,还用于确定第一轨迹点,并将第一轨迹点作为第一轨迹的截取起始点。第一轨迹点为第一目标子轨迹的首个轨迹点以及第一候选同行子轨迹的首个轨迹点中时间在后的轨迹点;第一轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第一轨迹点的轨迹。例如,如图8所示,确定单元802可以用于执行S4011。Optionally, as shown in FIG. 15 , in the
确定单元802,还用于确定第二轨迹点,并将第二轨迹点作为第二轨迹的截取起始点。第二轨迹点为与第一轨迹点位于不同轨迹上的轨迹点中与第一轨迹点的时间间隔最小的轨迹点;第二轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第二轨迹点的轨迹。例如,如图8所示,确定单元802可以用于执行S4012。The determining
可选的,如图15所示,本发明实施例提供的电子设备80中,确定单元802,还用于确定第三轨迹点,并将第三轨迹点作为第三轨迹的截取结束点。第三轨迹点为第一目标子轨迹的最后一个轨迹点以及第一候选同行子轨迹的最后一个轨迹点中时间在前的轨迹点;第三轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第三轨迹点的轨迹。例如,如图9所示,确定单元802可以用于执行S4041。Optionally, as shown in FIG. 15 , in the
确定单元802,还用于确定第四轨迹点,并将第四轨迹点作为第四轨迹的截取结束点。第四轨迹点为与第三轨迹点位于不同轨迹上的轨迹点中与第三轨迹点的时间间隔最小的轨迹点;第四轨迹为第一目标子轨迹以及第一候选同行子轨迹中包括第四轨迹点的轨迹。例如,如图9所示,确定单元802可以用于执行S4042。The determining
可选的,如图15所示,本发明实施例提供的电子设备80中,确定单元802,还用于根据同行时间段的数量与多个候选时间段数量的比值,确定目标相似度;目标相似度与比值正相关。Optionally, as shown in FIG. 15 , in the
可选的,如图15所示,本发明实施例提供的电子设备80中还包括显示单元806。Optionally, as shown in FIG. 15 , the
获取单元801,还用于获取目标轨迹对的目标轨迹信息。目标轨迹对包括目标车辆的轨迹以及目标同行车辆的轨迹;目标轨迹信息包括目标同行车辆的标识,以及目标同行车辆在历史时间段内的同行道路的信息;目标车辆以及目标同行车辆进入或驶出同行道路的时间间隔小于预设时间间隔。例如,如图10所示,获取单元801可以用于执行S501。The obtaining
显示单元806,用于显示目标轨迹信息。例如,如图10所示,显示单元806可以用于执行S503。The
图16为本发明实施例提供的另一种电子设备的结构示意图,该电子设备90用于执行上述同行车辆的确定方法。如图16所示,该电子设备90包括获取单元901、确定单元902以及存储单元903。FIG. 16 is a schematic structural diagram of another electronic device according to an embodiment of the present invention, where the
获取单元901,用于响应于用户输入的历史时间段,获取所述历史时间段内的候选同行车辆组合信息。所述候选同行车辆组合信息包括候选同行车辆的标识以及候选同行车辆组合的多个同行时间段;所述每个同行时间段的轨迹距离小于预设距离;所述轨迹距离为一个候选同行车辆的轨迹与所述目标车辆的轨迹在一个同行时间段内的弗雷歇距离。例如,如图13所示,获取单元901可以用于执行S601。The obtaining
确定单元902,用于根据所述每个候选同行车辆组合的所述多个同行时间段的数量,确定所述每个候选同行车辆组合的候选同行车辆的轨迹之间的目标相似度。例如,如图13所示,确定单元902可以用于执行S602。The determining
确定单元902,还用于基于确定到的所述目标相似度,从所述候选同行车辆组合中,确定相似度大于预设相似度的目标同行车辆组合。例如,如图13所示,确定单元902可以用于执行S603。The determining
可选的,如图16所示,本发明实施例提供的电子设备80还包括存储单元903。Optionally, as shown in FIG. 16 , the
获取单元901,还用于获取全量的车辆轨迹。例如,如图14所示,获取单元901可以用于执行S701。The obtaining
确定单元902,还用于确定所述候选同行车辆组合。例如,如图14所示,确定单元902可以用于执行S702。The determining
确定单元902,还用于基于所述全量的车辆轨迹,确定所述候选同行车辆组合信息。例如,如图13所示,确定单元902可以用于执行S703。The determining
存储单元903,用于存储候选同行车辆组合信息。例如,如图14所示,存储单元903可以用于执行S703。The
在采用硬件的形式实现上述集成的模块的功能的情况下,本发明实施例提供了一种电子设备的一种可能的结构示意图。该电子设备用于执行上述实施例中同行车辆的确定方法。如图17所示,该电子设备100包括处理器1001,存储器1002以及总线1003。处理器1001与存储器1002之间可以通过总线1003连接。In the case where the functions of the above-mentioned integrated modules are implemented in the form of hardware, an embodiment of the present invention provides a possible schematic structural diagram of an electronic device. The electronic device is used to execute the method for determining a companion vehicle in the above embodiment. As shown in FIG. 17 , the
处理器1001是通信装置的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器1001可以是一个通用中央处理单元(central processing unit,CPU),也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The
作为一种实施例,处理器1001可以包括一个或多个CPU,例如图17中所示的CPU 0和CPU 1。As an example, the
存储器1002可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。
作为一种可能的实现方式,存储器1002可以独立于处理器1001存在,存储器1002可以通过总线1003与处理器1001相连接,用于存储指令或者程序代码。处理器1001调用并执行存储器1002中存储的指令或程序代码时,能够实现本发明实施例提供的同行车辆的确定方法。As a possible implementation manner, the
另一种可能的实现方式中,存储器1002也可以和处理器1001集成在一起。In another possible implementation manner, the
总线1003,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外围设备互连(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图17中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
需要指出的是,图17示出的结构并不构成对该电子设备100的限定。除图17所示部件之外,该电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the structure shown in FIG. 17 does not constitute a limitation on the
作为一个示例,结合图15,逆行告警装置80中的获取单元801、确定单元802、处理单元803、判断单元804、存储单元805以及显示单元806实现的功能与图17中的处理器1001的功能相同。As an example, with reference to FIG. 15 , the functions implemented by the acquiring
可选的,如图17所示,本发明实施例提供的电子设备还可以包括通信接口1004。Optionally, as shown in FIG. 17 , the electronic device provided in this embodiment of the present invention may further include a
通信接口1004,用于与其他设备通过通信网络连接。该通信网络可以是以太网,无线接入网,无线局域网(wireless local area networks,WLAN)等。通信接口1004可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The
在一种设计中,本发明实施例提供的电子设备中,通信接口还可以集成在处理器中。In one design, in the electronic device provided by the embodiment of the present invention, the communication interface may also be integrated in the processor.
图18示出了本发明实施例中电子设备的另一种硬件结构。如图18所示,电子设备110可以包括处理器1101以及通信接口1102。处理器1101与通信接口1102耦合。FIG. 18 shows another hardware structure of the electronic device in the embodiment of the present invention. As shown in FIG. 18 , the
处理器1101的功能可以参考上述处理器1001的描述。此外,处理器1101还具备存储功能,可以参考上述存储器1002的功能。For the functions of the
通信接口1102用于为处理器1101提供数据。该通信接口1102可以是通信装置的内部接口,也可以是通信装置对外的接口(相当于通信接口1004)。The
需要指出的是,图18中示出的结构并不构成对电子设备的限定,除图18所示部件之外,该电子设备110可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 18 does not constitute a limitation on the electronic device. In addition to the components shown in FIG. 18 , the
同时,本发明实施例提供的另外一种电子设备的一种硬件的结构示意图也可参照上述图17或者图18中电子设备的描述,此处不再进行赘述。Meanwhile, for a schematic structural diagram of a hardware of another electronic device provided by the embodiment of the present invention, reference may also be made to the description of the electronic device in FIG. 17 or FIG. 18 , which will not be repeated here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明。在实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional units is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units according to requirements, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当计算机执行该指令时,该计算机执行上述方法实施例所示的方法流程中的各个步骤。Embodiments of the present invention further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiments.
本发明的实施例提供一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行上述方法实施例中的同行车辆的确定方法。Embodiments of the present invention provide a computer program product containing instructions, when the instructions are executed on a computer, the computer executes the method for determining a companion vehicle in the above method embodiments.
其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘。随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的人以合适的组合、或者本领域数值的任何其他形式的计算机可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integrated Circuit,ASIC)中。在本发明实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), Register, Hard Disk, Optical Fiber, Portable Compact Disk Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any other form of computer-readable storage medium of the above in suitable combination, or valued in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium may be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present invention, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
由于本发明的实施例中的装置、设备计算机可读存储介质、计算机程序产品可以应用于上述方法,因此,其所能获得的技术效果也可参考上述方法实施例,本发明实施例在此不再赘述。Since the apparatuses, equipment computer-readable storage media, and computer program products in the embodiments of the present invention can be applied to the above methods, the technical effects that can be obtained may also refer to the above method embodiments, and the embodiments of the present invention do not herein Repeat.
以上所述,仅为本发明的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application shall be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111630032.6A CN114332817A (en) | 2021-12-28 | 2021-12-28 | Method, device, equipment and storage medium for determining vehicles in same-driving |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111630032.6A CN114332817A (en) | 2021-12-28 | 2021-12-28 | Method, device, equipment and storage medium for determining vehicles in same-driving |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114332817A true CN114332817A (en) | 2022-04-12 |
Family
ID=81014874
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111630032.6A Pending CN114332817A (en) | 2021-12-28 | 2021-12-28 | Method, device, equipment and storage medium for determining vehicles in same-driving |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114332817A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115447617A (en) * | 2022-11-10 | 2022-12-09 | 清华大学苏州汽车研究院(相城) | Vehicle control method, device, equipment and medium |
| CN115861939A (en) * | 2023-02-15 | 2023-03-28 | 创意信息技术股份有限公司 | Method, device and equipment for inquiring vehicles in same line and storage medium |
| CN116091553A (en) * | 2023-04-04 | 2023-05-09 | 小米汽车科技有限公司 | Track determination method, track determination device, electronic equipment, vehicle and storage medium |
| CN116127338A (en) * | 2022-10-31 | 2023-05-16 | 长城汽车股份有限公司 | Track processing method and device, storage medium and electronic equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160377441A1 (en) * | 2015-06-23 | 2016-12-29 | International Business Machines Corporation | Quantifying anomalous behavior by identifying anomalies at subtrajectories |
| CN110276272A (en) * | 2019-05-30 | 2019-09-24 | 罗普特科技集团股份有限公司 | Confirm method, apparatus, the storage medium of same administrative staff's relationship of label personnel |
| CN111612675A (en) * | 2020-05-18 | 2020-09-01 | 浙江宇视科技有限公司 | Peer object determination method, device, device and storage medium |
| CN112131278A (en) * | 2020-09-28 | 2020-12-25 | 浙江大华技术股份有限公司 | Method and device for processing track data, storage medium and electronic device |
| CN112837369A (en) * | 2021-02-09 | 2021-05-25 | 北京市商汤科技开发有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
| CN113220750A (en) * | 2021-05-28 | 2021-08-06 | 重庆中科云从科技有限公司 | Method and device for identifying fellow persons and computer readable storage medium |
-
2021
- 2021-12-28 CN CN202111630032.6A patent/CN114332817A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160377441A1 (en) * | 2015-06-23 | 2016-12-29 | International Business Machines Corporation | Quantifying anomalous behavior by identifying anomalies at subtrajectories |
| CN110276272A (en) * | 2019-05-30 | 2019-09-24 | 罗普特科技集团股份有限公司 | Confirm method, apparatus, the storage medium of same administrative staff's relationship of label personnel |
| CN111612675A (en) * | 2020-05-18 | 2020-09-01 | 浙江宇视科技有限公司 | Peer object determination method, device, device and storage medium |
| CN112131278A (en) * | 2020-09-28 | 2020-12-25 | 浙江大华技术股份有限公司 | Method and device for processing track data, storage medium and electronic device |
| CN112837369A (en) * | 2021-02-09 | 2021-05-25 | 北京市商汤科技开发有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
| CN113220750A (en) * | 2021-05-28 | 2021-08-06 | 重庆中科云从科技有限公司 | Method and device for identifying fellow persons and computer readable storage medium |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116127338A (en) * | 2022-10-31 | 2023-05-16 | 长城汽车股份有限公司 | Track processing method and device, storage medium and electronic equipment |
| CN115447617A (en) * | 2022-11-10 | 2022-12-09 | 清华大学苏州汽车研究院(相城) | Vehicle control method, device, equipment and medium |
| CN115861939A (en) * | 2023-02-15 | 2023-03-28 | 创意信息技术股份有限公司 | Method, device and equipment for inquiring vehicles in same line and storage medium |
| CN115861939B (en) * | 2023-02-15 | 2023-05-19 | 创意信息技术股份有限公司 | Method, device, equipment and storage medium for inquiring vehicles in the same race |
| CN116091553A (en) * | 2023-04-04 | 2023-05-09 | 小米汽车科技有限公司 | Track determination method, track determination device, electronic equipment, vehicle and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114332817A (en) | Method, device, equipment and storage medium for determining vehicles in same-driving | |
| JP7082151B2 (en) | Map trajectory matching data quality determination method, equipment, server and medium | |
| CN110826594B (en) | Track clustering method, equipment and storage medium | |
| US10778707B1 (en) | Outlier detection for streaming data using locality sensitive hashing | |
| CN112712690B (en) | Vehicle electronic fence method and device and electronic equipment | |
| US9286312B2 (en) | Data coreset compression | |
| WO2021218314A1 (en) | Event identification method and apparatus based on position locating, and device and storage medium | |
| CN112948614B (en) | Image processing method, device, electronic equipment and storage medium | |
| JP6787624B2 (en) | Methods for collating voice fingerprints, machine-readable media and systems | |
| CN113989760B (en) | Method, device, equipment and storage medium for detecting lane lines on high-precision maps | |
| EP4052137A2 (en) | System and method for processing vehicle event data for low latency speed analysis of road segments | |
| CN111737377A (en) | Method and device for identifying drift trajectory, computing equipment and storage medium | |
| US20260010548A1 (en) | Data management method and computing device | |
| CN113723405B (en) | Method and device for determining regional outline and electronic equipment | |
| CN115345324A (en) | Fault location method, device, equipment, storage medium and product | |
| CN116681767A (en) | Point cloud searching method and device and terminal equipment | |
| CN110309240A (en) | The method and apparatus for removing dynamic object | |
| CN109871419B (en) | Map display method and device | |
| CN118628779B (en) | A target recognition method based on adaptive clustering of minimum bounding rectangle | |
| CN109409411B (en) | Problem positioning method and device based on operation and maintenance management and storage medium | |
| CN113779333B (en) | Target object query method and device, storage medium and electronic equipment | |
| CN117406725A (en) | Path planning method, device, equipment and storage medium | |
| CN115103315A (en) | User residence identification method, device, electronic device and readable storage medium | |
| CN115981970A (en) | Operation and maintenance data analysis method, device, equipment and medium | |
| CN115206102A (en) | Method, apparatus, electronic device, and medium for determining traffic path |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |