行驶朝向检测方法、装置、计算机设备及存储介质Driving direction detection method, device, computer equipment and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求于2021年1月29日提交的、申请号为202110129565.X的中国专利公开的优先权,该中国专利公开的全部内容以引用的方式并入本文中。The present disclosure claims priority to Chinese Patent Publication No. 202110129565.X filed on January 29, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开涉及自动驾驶技术领域,具体而言,涉及一种行驶朝向检测方法、装置、计算机设备及存储介质。The present disclosure relates to the technical field of automatic driving, and in particular, to a driving orientation detection method, device, computer equipment, and storage medium.
背景技术Background technique
随着科技的发展和进步,汽车已经逐渐走进了越来越多的家庭,为用户的出行带来了极大的便利,近年来,随着自动驾驶以及辅助驾驶技术的发展,人们对辅助驾驶的要求也越来越高,需求逐渐从提供报警功能的L(level,级别)0级别的辅助驾驶向加入控制功能的L1和L2级别的辅助驾驶转变,与L0级别提供的报警功能不同,L2级别的辅助驾驶需要辅助驾驶系统更加准确地了解周围目标的距离、速度、行驶朝向以及意图等等信息,对于感知识别的要求更高。With the development and progress of science and technology, cars have gradually entered more and more homes, bringing great convenience to users' travel. In recent years, with the development of automatic driving and assisted driving technology, people are more Driving requirements are also getting higher and higher, and the demand is gradually changing from L (level, level) 0 level assisted driving that provides alarm function to L1 and L2 level assisted driving that adds control function. Different from the alarm function provided by L0 level, L2-level assisted driving requires the assisted driving system to more accurately understand the distance, speed, driving direction, and intention of surrounding targets, and has higher requirements for perception and recognition.
鉴于此,在自动驾驶中,如何有效准确的对周围车辆的行驶方向进行识别成为了亟待解决的问题。In view of this, in automatic driving, how to effectively and accurately identify the driving directions of surrounding vehicles has become an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
本公开实施例至少提供一种行驶朝向检测方法、装置、计算机设备及存储介质。The embodiments of the present disclosure provide at least a driving direction detection method, apparatus, computer equipment, and storage medium.
第一方面,本公开实施例提供了一种行驶朝向检测方法,所述方法包括:获取目标车辆在行驶过程中的周边车辆行驶图像;从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮;对于每个待检测车辆,基于所述待检测车辆的至少两个车轮,确定所述待检测车辆的行驶朝向。In a first aspect, an embodiment of the present disclosure provides a method for detecting a driving direction, the method comprising: acquiring a driving image of surrounding vehicles of a target vehicle during driving; identifying at least one vehicle to be detected and each vehicle to be detected from the image at least two wheels of the vehicle to be detected; for each vehicle to be detected, the driving direction of the vehicle to be detected is determined based on the at least two wheels of the vehicle to be detected.
这样,通过采集的图像识别出车辆的车轮,通过车轮检测车辆的行驶朝向,可以有效检测出车辆的行驶朝向,准确率高,鲁棒性好,有利于帮助目标车辆判断周围车辆行驶状况,以提前准备应对策略,可以有效降低事故的发生概率。In this way, the wheels of the vehicle can be identified through the collected images, and the driving direction of the vehicle can be detected by the wheels, which can effectively detect the driving direction of the vehicle. Preparing coping strategies in advance can effectively reduce the probability of accidents.
一种可选的实施方式中,基于所述待检测车辆的至少两个车轮,确定所述待检测车辆的行驶朝向,包括:确定所述至少两个车轮中各个车轮的属性,其中,车轮的属性包 括该车轮为前轮或者后轮;基于各个车轮的属性,确定所述至少两个车轮中的两个待检测车轮;基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向。In an optional implementation manner, determining the driving direction of the vehicle to be detected based on at least two wheels of the vehicle to be detected includes: determining attributes of each of the at least two wheels, wherein the The attributes include whether the wheel is a front wheel or a rear wheel; based on the attributes of each wheel, two to-be-detected wheels in the at least two wheels are determined; based on the preset reference point position information on each to-be-detected wheel and each to-be-detected wheel The attribute of the wheel is detected, and the driving direction of the vehicle to be detected is determined.
这样,通过车轮的属性筛选出待检测车轮,并进一步通过待检测车轮的信息确定待检测车辆的行驶朝向,可以通过具有针对性的筛选车轮来确定车辆的行驶朝向,准确率高,鲁棒性好。In this way, the wheel to be detected is screened out by the attributes of the wheel, and the driving direction of the vehicle to be detected is further determined by the information of the wheel to be detected, and the driving direction of the vehicle can be determined by screening the wheels in a targeted manner, with high accuracy and robustness. it is good.
一种可选的实施方式中,所述从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮,包括:从所述图像中识别出至少一个车辆和多个车轮;确定每个车辆的位置信息和每个车轮的位置信息;基于每个车辆的位置信息和每个车轮的位置信息,确定所述至少一个车辆中的待检测车辆以及每个待检测车辆的至少两个车轮。In an optional implementation manner, the identifying at least one vehicle to be detected and at least two wheels of each vehicle to be detected from the image includes: identifying at least one vehicle and a plurality of vehicles from the image. wheels; determine the position information of each vehicle and the position information of each wheel; determine the vehicle to be detected and the position information of each vehicle to be detected in the at least one vehicle based on the position information of each vehicle and the position information of each wheel At least two wheels.
这样,通过位置信息匹配出属于同一车辆的至少两个车轮,可以准确检测出车辆对应的车轮,简便快捷,准确率高,鲁棒性好,有利于提高后续检测车辆行驶朝向的准确率。In this way, at least two wheels belonging to the same vehicle are matched by the position information, and the corresponding wheels of the vehicle can be accurately detected, which is simple and fast, has high accuracy and good robustness, and is beneficial to improve the accuracy of subsequent detection of the driving direction of the vehicle.
一种可选的实施方式中,所述基于每个车辆的位置信息和每个车轮的位置信息,确定所述至少一个车辆中的待检测车辆以及每个所述待检测车辆的至少两个车轮包括:根据预设的距离阈值和面积重合比阈值,对所述至少一个车辆和所述多个车轮进行匹配,以得到所述至少一个车辆中每个车辆与该车辆对应的车轮;根据每个车辆的位置信息,确定所述待检测车辆。In an optional embodiment, the vehicle to be detected in the at least one vehicle and at least two wheels of each vehicle to be detected are determined based on the position information of each vehicle and the position information of each wheel. The method includes: matching the at least one vehicle and the plurality of wheels according to a preset distance threshold and an area coincidence ratio threshold to obtain a wheel corresponding to each vehicle in the at least one vehicle; The position information of the vehicle is used to determine the vehicle to be detected.
一种可选的实施方式中,所述根据预设的距离阈值和面积重合比阈值,对所述至少一个车辆和所述多个车轮进行匹配,以得到所述至少一个车辆中每个车辆与该车辆对应的车轮包括:对于待匹配的车轮与车辆,如果该车轮的车轮检测框与该车辆的车辆检测框之间面积的重合比达到所述预设的面积重合比阈值,将该车轮作为该车辆的候选车轮;在该车辆的多个候选车轮中,针对任一候选车轮,如果该车轮与其他候选车轮的相对距离均大于所述预设的距离阈值,确定该候选车轮为该车辆的车轮。In an optional implementation manner, the at least one vehicle and the plurality of wheels are matched according to a preset distance threshold and an area coincidence ratio threshold, so as to obtain the at least one vehicle and each vehicle in the at least one vehicle. The wheel corresponding to the vehicle includes: for the wheel and vehicle to be matched, if the area overlap ratio between the wheel detection frame of the wheel and the vehicle detection frame of the vehicle reaches the preset area overlap ratio threshold, the wheel is used as the The candidate wheel of the vehicle; among the multiple candidate wheels of the vehicle, for any candidate wheel, if the relative distance between the wheel and other candidate wheels is greater than the preset distance threshold, the candidate wheel is determined as the vehicle's wheel.
一种可选的实施方式中,所述从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮,包括:确定所图像中的每个待检测车辆;从所述图像中与所述待检测车辆对应的图像内容,识别出所述待检测车辆的至少两个车轮。In an optional implementation manner, the identifying at least one vehicle to be detected and at least two wheels of each vehicle to be detected from the image includes: determining each vehicle to be detected in the image; The image content corresponding to the vehicle to be detected in the image is used to identify at least two wheels of the vehicle to be detected.
这样,通过识别出的车辆对应的图像,以识别车轮,可以保证车辆和车轮之间匹配的准确性。In this way, the wheel is identified by the image corresponding to the identified vehicle, so that the matching accuracy between the vehicle and the wheel can be ensured.
一种可选的实施方式中,采用以下步骤确定所述待检测车辆的至少两个车轮的属性:根据所述至少两个车轮中每个车轮与所述待检测车辆的相对位置关系,确定每个车轮的属性。In an optional implementation manner, the following steps are used to determine the attributes of the at least two wheels of the vehicle to be detected: according to the relative positional relationship between each of the at least two wheels and the vehicle to be detected, determine each wheel. properties of a wheel.
一种可选的实施方式中,通过以下步骤确定出待检测车辆:将所述图像中与所述目标车辆之间具有以下一种或者多种对应关系的车辆确定为所述待检测车辆:与所述目标车辆位于相同车道、位于所述目标车辆所处车道的相邻车道、位于所述目标车辆前方或后方且两者间的距离小于第一预设距离、位于所述目标车辆的侧方且两者间的距离小于第二预设距离、与所述目标车辆相向行驶。In an optional implementation manner, the vehicle to be detected is determined by the following steps: a vehicle that has one or more of the following correspondences with the target vehicle in the image is determined as the vehicle to be detected: The target vehicle is located in the same lane, is located in an adjacent lane of the lane where the target vehicle is located, is located in front of or behind the target vehicle and the distance between the two is less than a first preset distance, and is located on the side of the target vehicle And the distance between the two is smaller than the second preset distance, and the target vehicle travels in the opposite direction.
这样,可以有效的确定出周边环境中需要检测行驶朝向的车辆,有利于通过对车辆行驶朝向的检测,降低可能发生交通事故的概率,帮助目标车辆提前做出应对。In this way, the vehicle whose driving direction needs to be detected in the surrounding environment can be effectively determined, which is beneficial to reduce the probability of possible traffic accident by detecting the driving direction of the vehicle, and help the target vehicle to respond in advance.
一种可选的实施方式中,所述基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向,包括:基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,以及相关行驶信息,确定所述待检测车辆的行驶朝向,所述相关行驶信息包括以下信息中的一种或者多种:所述待检测车辆所处车道的道路属性、所述待检测车辆与所处车道的车道线之间的距离、所述待检测车辆在所处车道中的当前位置。In an optional implementation manner, the determining the driving direction of the vehicle to be detected based on the preset reference point position information on each wheel to be detected and the attributes of each wheel to be detected includes: Detect the preset reference point position information on the wheels and the attributes of each wheel to be detected, as well as related driving information, and determine the driving direction of the vehicle to be detected, and the related driving information includes one or more of the following information: The road attribute of the lane where the vehicle to be detected is located, the distance between the vehicle to be detected and the lane line of the lane where the vehicle to be detected is located, and the current position of the vehicle to be detected in the lane where it is located.
一种可选的实施方式中,在所述两个待检测车轮包括两个后轮或者两个前轮的情况下,所述基于所述每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向,包括:确定所述两个后轮或者所述两个前轮各自与地面的接触点,以及两个所述接触点之间第一连线的中点;确定与所述第一连线以所述中点为交点的垂线,其中,所述垂线与地面平行;确定所述垂线朝向所述待检测车辆车头的方向为所述待检测车辆的行驶朝向。In an optional implementation manner, in the case that the two wheels to be detected include two rear wheels or two front wheels, the method based on the preset reference point position information on each wheel to be detected and Attributes of each wheel to be detected, and determining the driving direction of the vehicle to be detected includes: determining the contact points of the two rear wheels or the two front wheels with the ground, and the distance between the two contact points The midpoint of the first connection line; determine the vertical line that intersects the first connection line with the midpoint as the intersection, wherein the vertical line is parallel to the ground; determine that the vertical line faces the front of the vehicle to be detected. The direction is the driving direction of the vehicle to be detected.
一种可选的实施方式中,在所述两个待检测车轮包括位于所述待检测车辆同一侧的前轮和后轮的情况下,所述基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向,包括:确定所述前轮与地面的接触点和所述后轮与地面的接触点,以及从所述后轮的接触点和所述前轮的接触点之间的第二连线,其中,所述第二连线的起点为所述后轮的接触点,所述第二连线的终点为所述前轮的接触点;确定所述第二连线所指示的朝向为所述待检测车辆的行驶朝向。In an optional implementation manner, in the case that the two wheels to be detected include a front wheel and a rear wheel located on the same side of the vehicle to be detected, the preset reference point based on each wheel to be detected The location information and the attributes of each wheel to be detected, and determining the driving direction of the vehicle to be detected includes: determining the contact point between the front wheel and the ground and the contact point between the rear wheel and the ground, and determining the contact point between the front wheel and the ground The second connection line between the contact point of the front wheel and the contact point of the front wheel, wherein the starting point of the second connection line is the contact point of the rear wheel, and the end point of the second connection line is the front wheel contact point of the wheel; determine the direction indicated by the second connection line as the driving direction of the vehicle to be detected.
一种可选的实施方式中,所述方法还包括:根据确定的所述待检测车辆的行驶朝向, 发出提示信息或者控制所述目标车辆。In an optional implementation manner, the method further includes: according to the determined driving direction of the vehicle to be detected, sending a prompt message or controlling the target vehicle.
第二方面,本公开实施例还提供一种行驶朝向检测装置,所述装置包括:行驶图像获取模块,用于获取目标车辆在行驶过程中的周边车辆行驶图像;车辆信息识别模块,用于从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮;行驶朝向确定模块,用于对于每个待检测车辆,基于所述待检测车辆的至少两个车轮,确定所述待检测车辆的行驶朝向。In a second aspect, an embodiment of the present disclosure further provides a driving direction detection device, the device includes: a driving image acquisition module for acquiring driving images of surrounding vehicles of the target vehicle during driving; a vehicle information identification module for obtaining images from At least one vehicle to be detected and at least two wheels of each vehicle to be detected are identified in the image; a driving direction determination module is configured to, for each vehicle to be detected, based on the at least two wheels of the vehicle to be detected, determine The driving direction of the vehicle to be detected.
第三方面,本公开实施例还提供一种计算机设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行上述的行驶朝向检测方法的步骤。In a third aspect, embodiments of the present disclosure further provide a computer device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the computer device runs, the processing The processor and the memory communicate through a bus, and the machine-readable instructions execute the steps of the above-mentioned driving direction detection method when executed by the processor.
第四方面,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述的行驶朝向检测方法的步骤。In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned driving direction detection method are executed.
本公开实施例提供的行驶朝向检测方法、装置、计算机设备及存储介质,通过获取目标车辆在行驶过程中的周边车辆行驶图像;从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮;对于每个待检测车辆,基于所述待检测车辆的至少两个车轮,确定所述待检测车辆的行驶朝向。The driving direction detection method, device, computer equipment and storage medium provided by the embodiments of the present disclosure, by acquiring the driving images of surrounding vehicles of the target vehicle during the driving process; at least one to-be-detected vehicle and each to-be-detected vehicle are identified from the images. at least two wheels of the vehicle; for each vehicle to be detected, determining the driving direction of the vehicle to be detected based on the at least two wheels of the vehicle to be detected.
这样,根据识别出的周围车辆的车轮来检测周围车辆的行驶朝向,可以有效检测出周围车辆的真实行驶朝向,准确率高,鲁棒性好,有利于帮助目标车辆判断周围车辆行驶状况,以提前准备应对策略,可以有效降低事故的发生概率。In this way, detecting the driving direction of the surrounding vehicles according to the identified wheels of the surrounding vehicles can effectively detect the real driving direction of the surrounding vehicles, with high accuracy and good robustness, which is beneficial to help the target vehicle to judge the driving conditions of the surrounding vehicles, so that the Preparing coping strategies in advance can effectively reduce the probability of accidents.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.
图1为本公开实施例提供的一种行驶朝向检测方法的流程图;1 is a flowchart of a method for detecting a driving direction provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种行驶朝向检测方法中车辆信息识别的流程图;FIG. 2 is a flowchart of vehicle information identification in a driving direction detection method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的行驶朝向检测方法中所使用图像识别模型的示意图;FIG. 3 is a schematic diagram of an image recognition model used in a driving direction detection method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的另一种行驶朝向检测方法中车辆信息识别的流程图;4 is a flowchart of vehicle information identification in another driving direction detection method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种行驶朝向检测装置的示意图之一;FIG. 5 is one of the schematic diagrams of a driving orientation detection device according to an embodiment of the present disclosure;
图6为本公开实施例提供的一种行驶朝向检测装置的示意图之二;FIG. 6 is the second schematic diagram of a driving direction detection device provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的一种计算机设备的示意图。FIG. 7 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.
近年来,随着自动驾驶以及辅助驾驶技术的发展,人们对自动驾驶和辅助驾驶体验的要求也越来越高。在自动驾驶中,如何有效准确的对周围车辆的行驶方向进行识别成为L2级别的辅助驾驶的重要研究方向之一。目前研究方案大多是给定一个带有车辆的图,通过人为标注车辆的朝向(比如将朝向划分为32个子方向)训练模型,以进行车辆朝向识别,但这种方法存在比较明显的缺陷。首先,由于视角以及车辆远近的不同,人为标注朝向难以标注得比较准确,这会增加网络训练难度。其次,该朝向标注方法是将车辆当做一个质点,以车辆的实际中心当做质心,但质点是一种理想化的模型,默认物体大小和形状对研究问题的响应很小;但在实际使用时,各种车辆型号的形状差别较大,将所得朝向转换到世界坐标系下会有比较大的偏差,导致实际应用中朝向预测不准,从而给辅助驾驶或自动驾驶控制造成比较大的难度,甚至可能会由于给出错误信号对行驶安全造成影响。In recent years, with the development of autonomous driving and assisted driving technology, people's requirements for autonomous driving and assisted driving experience are getting higher and higher. In autonomous driving, how to effectively and accurately identify the driving direction of surrounding vehicles has become one of the important research directions of L2-level assisted driving. Most of the current research schemes are given a picture with a vehicle, and the model is trained by manually marking the orientation of the vehicle (for example, dividing the orientation into 32 sub-directions) for vehicle orientation recognition, but this method has obvious defects. First, due to the difference in perspective and the distance of the vehicle, it is difficult to label the orientation accurately, which will increase the difficulty of network training. Secondly, the orientation labeling method takes the vehicle as a mass point and the actual center of the vehicle as the mass center, but the mass point is an idealized model, and the default object size and shape have little response to the research problem; but in actual use, The shapes of various vehicle models are quite different, and there will be a large deviation in converting the obtained orientation to the world coordinate system, resulting in inaccurate orientation prediction in practical applications, which will cause greater difficulty for assisted driving or automatic driving control, and even Driving safety may be affected by giving wrong signals.
基于上述研究,本公开提供了一种行驶朝向检测方法,通过采集目标车辆的周边车辆行驶图像,从周边车辆行驶图像中识别出周围车辆的车轮,根据车轮上的预设参考点 位置信息和车轮的属性来确定周围车辆的行驶朝向,可以有效检测出周围车辆的真实行驶朝向,更加贴合周围车辆的真实行驶情况,准确率高,鲁棒性好,有利于帮助目标车辆判断周围车辆行驶状况,以提前准备应对策略,可以有效提高自动驾驶或辅助驾驶的安全性。Based on the above research, the present disclosure provides a driving direction detection method. By collecting the driving images of surrounding vehicles of a target vehicle, the wheels of surrounding vehicles are identified from the driving images of surrounding vehicles. According to the preset reference point position information on the wheels and the wheels It can effectively detect the real driving direction of the surrounding vehicles, which is more suitable for the real driving conditions of the surrounding vehicles. It has high accuracy and good robustness, which is beneficial to help the target vehicle to judge the driving conditions of the surrounding vehicles. , to prepare coping strategies in advance, which can effectively improve the safety of autonomous driving or assisted driving.
相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。Like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种行驶朝向检测方法进行详细介绍,本公开实施例所提供的行驶朝向检测方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备、服务器、自动驾驶设备、辅助驾驶设备或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备、个人电脑、笔记本电脑等。在一些可能的实现方式中,该行驶朝向检测方法可以通过计算机设备中的处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a driving direction detection method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the driving direction detection method provided by the embodiment of the present disclosure is generally a computer device with a certain computing capability. The computer equipment includes, for example: terminal equipment, server, automatic driving equipment, assisted driving equipment or other processing equipment, and the terminal equipment can be user equipment (User Equipment, UE), mobile equipment, user terminal, terminal, cellular phone, personal digital assistant (Personal Digital Assistant, PDA), handheld devices, computing devices, in-vehicle devices, wearable devices, personal computers, notebook computers, etc. In some possible implementations, the driving direction detection method may be implemented by a processor in a computer device calling computer-readable instructions stored in a memory.
下面以执行主体为终端设备为例对本公开实施例提供的行驶朝向检测方法加以说明。The following describes the driving direction detection method provided by the embodiment of the present disclosure by taking the execution subject as a terminal device as an example.
请参阅图1,图1为本公开实施例提供的一种行驶朝向检测方法的流程图。如图1中所示,所述方法包括步骤S101到S103。Please refer to FIG. 1 , which is a flowchart of a method for detecting a driving direction according to an embodiment of the present disclosure. As shown in FIG. 1, the method includes steps S101 to S103.
S101:获取目标车辆在行驶过程中的周边车辆行驶图像。S101: Acquire a running image of surrounding vehicles in the running process of the target vehicle.
该步骤中,在所述目标车辆行驶的过程中,可以获取目标车辆的周边车辆行驶图像。In this step, while the target vehicle is traveling, images of surrounding vehicles of the target vehicle may be acquired.
其中,所述周边车辆行驶图像,可以是由所述目标车辆上安装的图像采集设备采集的,也可以是通过乘坐所述目标车辆的用户使用用户终端拍摄的,还可以是通过设置于道路中的图像采集设备采集的,然后通过互联网等连接方式,从服务器等图像存储位置获取的图像。The driving image of the surrounding vehicles may be collected by an image acquisition device installed on the target vehicle, or may be captured by a user who rides the target vehicle using a user terminal, or may be captured by a user terminal installed in the target vehicle. The image is collected by the image acquisition equipment, and then obtained from the image storage location such as the server through the Internet and other connection methods.
其中,所述周边车辆行驶图像,可以是所述目标车辆周围的全景图像,例如以所述目标车辆为中心的360度全景图像,也可以是所述目标车辆的某一个或者多个方向上的图像,例如目标车辆在道路的最左侧车道行驶,那么可以只采集目标车辆的右侧图像、前方图像、后方图像、右前方图像和右后方图像中一种或者多种。The driving image of the surrounding vehicle may be a panoramic image around the target vehicle, such as a 360-degree panoramic image centered on the target vehicle, or may be an image in one or more directions of the target vehicle. For example, if the target vehicle is driving in the leftmost lane of the road, only one or more of the right image, front image, rear image, right front image and right rear image of the target vehicle can be collected.
举例来说,自动驾驶设备或辅助驾驶设备除了包括处理器和存储器外,还包括各种传感器,如一个或多个摄像头。摄像头可以安装在目标车辆上,例如可以固定在后视镜 上,镜头朝向车头的方向,在目标车辆行驶过程中,该摄像头可以拍摄车辆前方图像。还可以安装其他摄像头在目标车辆的不同位置,以获得不同方向的图像。本公开对此不作限定。各摄像头所拍摄的车辆图像分别传回给处理器和存储器,以供后续处理。For example, an autonomous driving device or an assisted driving device includes, in addition to a processor and memory, various sensors, such as one or more cameras. The camera can be installed on the target vehicle, for example, it can be fixed on the rearview mirror, and the lens faces the direction of the front of the vehicle. During the driving process of the target vehicle, the camera can capture the image of the front of the vehicle. Other cameras can also be installed at different positions of the target vehicle to obtain images in different directions. The present disclosure does not limit this. The vehicle images captured by each camera are respectively sent back to the processor and memory for subsequent processing.
本步骤获得的周边车辆行驶图像可以有多张,由于这些图像后续处理过程类似,为了简单起见,后面以一幅周边车辆行驶图像为例进行说明。There may be multiple driving images of surrounding vehicles obtained in this step. Since the subsequent processing procedures of these images are similar, for the sake of simplicity, a driving image of surrounding vehicles is used as an example for description in the following.
S102:从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮。S102: Identify at least one vehicle to be detected and at least two wheels of each vehicle to be detected from the image.
该步骤中,在获取到所述图像后,可以通过使用图像识别模型,或者使用传统图像识别技术等手段,对所述图像进行识别,以从所述图像中识别出一个或多个待检测车辆,以及每个待检测车辆的至少两个车轮。In this step, after the image is acquired, the image can be recognized by using an image recognition model, or traditional image recognition technology or other means, so as to identify one or more vehicles to be detected from the image. , and at least two wheels of each vehicle to be detected.
例如可以利用车辆检测算法对图像中的车辆进行目标检测,得到车辆检测框,可以利用车轮检测算法对图像中可见的车轮进行目标检测,得到车轮检测框。基于车辆检测框内的车轮属于同一辆车这一规则,从而可以得到每个待检测车辆的至少两个车轮。在一些例子中,为了准确率的考虑,若某台车辆的车辆检测框中只有一个车轮检测框,可以认为该车辆不是待检测车辆。For example, the vehicle detection algorithm can be used to detect the target of the vehicle in the image to obtain the vehicle detection frame, and the wheel detection algorithm can be used to detect the target of the visible wheel in the image to obtain the wheel detection frame. Based on the rule that the wheels in the vehicle detection frame belong to the same vehicle, at least two wheels of each vehicle to be detected can be obtained. In some examples, for the sake of accuracy, if a vehicle detection frame of a certain vehicle has only one wheel detection frame, it may be considered that the vehicle is not a vehicle to be detected.
在实际情况中,由于行驶过程中车辆之间的位置关系,一般很难看到处于行驶状态的周边车辆的全貌,可能只能从目标车辆所处的位置观察到周边车辆的一部分,因此,从图像中大多也仅能识别到车辆的部分区域。例如以普通家用车辆来说,其一般只有四个轮胎,因此从一幅图像中一般只能看到一个车辆的两个车轮(例如从前方视角、后方视角、左侧视角或者右侧视角观察),或者三个车轮(例如从右前方视角、右后方视角、左前方视角或者左后方视角观察)。In actual situations, due to the positional relationship between vehicles during driving, it is generally difficult to see the whole picture of the surrounding vehicles in the driving state, and only a part of the surrounding vehicles may be observed from the position of the target vehicle. Therefore, from the image In most cases, only part of the vehicle can be recognized. For example, for an ordinary domestic vehicle, it generally has only four tires, so generally only two wheels of a vehicle can be seen from an image (for example, from a front view, a rear view, a left view, or a right view) , or three wheels (eg from a front right, rear right, front left, or rear left).
S103:对于每个待检测车辆,基于该待检测车辆的至少两个车轮,确定该待检测车辆的行驶朝向。S103: For each vehicle to be detected, determine the driving direction of the vehicle to be detected based on at least two wheels of the vehicle to be detected.
该步骤中,在识别出某一待检测车辆的至少两个车轮后,可以通过所述至少两个车轮的相关信息,例如位置、属于前轮或后轮等因素,得出所述待检测车辆的行驶朝向。In this step, after identifying at least two wheels of a vehicle to be detected, the vehicle to be detected can be obtained by using the relevant information of the at least two wheels, such as the position, belonging to the front wheel or the rear wheel, etc. driving direction.
具体的,在一些可能的实施例中,基于该待检测车辆的至少两个车轮,确定该待检测车辆的行驶朝向,可以是通过以下步骤确定所述行驶朝向。Specifically, in some possible embodiments, the driving direction of the vehicle to be detected is determined based on at least two wheels of the vehicle to be detected, and the driving direction may be determined by the following steps.
确定所述至少两个车轮中各个车轮的属性,其中,车轮的属性包括该车轮为前轮或者后轮;基于各个车轮的属性,确定所述至少两个车轮中的两个待检测车轮;基于每个 待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向。determining an attribute of each of the at least two wheels, wherein the attribute of the wheel includes whether the wheel is a front wheel or a rear wheel; based on the attribute of each wheel, determining two to-be-detected wheels in the at least two wheels; based on Preset reference point position information on each to-be-detected wheel and attributes of each to-be-detected wheel determine the driving direction of the to-be-detected vehicle.
上述步骤中,在识别出至少两个车轮之后,可以进一步确定每个车轮的属性,例如通过车轮的位置、车轮与车身之间的相对位置关系等等因素,来确定每个车轮的属性,进而可以确定出可以用于进行车辆行驶朝向判断的两个待检测车轮。通过每个待检测车轮的属性,结合每个待检测车轮上的预设参考点位置信息来确定所述待检测车辆的行驶朝向。In the above steps, after at least two wheels are identified, the attributes of each wheel can be further determined, for example, the attributes of each wheel can be determined by factors such as the position of the wheel, the relative positional relationship between the wheel and the body, etc., and then Two to-be-detected wheels that can be used for judging the driving direction of the vehicle can be determined. The driving direction of the vehicle to be detected is determined by combining the attributes of each wheel to be detected and the position information of the preset reference point on each wheel to be detected.
在具体的应用中,在确定各个车轮的属性时,可以采用以下步骤确定所述待检测车辆的至少两个车轮的属性:根据所述至少两个车轮中每个车轮与所述待检测车辆的相对位置关系,确定每个车轮的属性。In a specific application, when determining the attributes of each wheel, the following steps may be used to determine the attributes of at least two wheels of the vehicle to be detected: according to the relationship between each of the at least two wheels and the vehicle to be detected The relative position relationship determines the properties of each wheel.
该步骤中,可以通过每个车轮在所述图像中的位置信息,以及所述待检测车辆的预设车辆部位在所述图像中的位置信息等因素,来确定出每个车轮与所述待检测车辆的相对位置关系,从而得出每个车轮的属性。In this step, the position information of each wheel in the image and the position information of the preset vehicle part of the vehicle to be detected in the image can be used to determine the relationship between each wheel and the to-be-detected vehicle. The relative positional relationship of the vehicle is detected to derive the properties of each wheel.
其中,车轮的属性包括前轮和后轮,即车轮是前轮,或者车轮是后轮。预设车辆部位可以为车头、车尾等。以预设车辆部位为车头为例,根据至少两个车轮中每个车轮与待检测车辆的车头的相对位置关系,可以确定与车头的相对距离更小的车轮为前轮,相对距离更大的车轮为后轮,从而得出每个车轮的属性。Among them, the attributes of the wheel include the front wheel and the rear wheel, that is, the wheel is the front wheel, or the wheel is the rear wheel. The preset vehicle parts may be the front, the rear, and the like. Taking the preset vehicle part as the front of the vehicle as an example, according to the relative positional relationship between each of the at least two wheels and the front of the vehicle to be detected, it can be determined that the wheel with a smaller relative distance from the front of the vehicle is the front wheel, and the wheel with a larger relative distance can be determined as the front wheel. The wheels are rear wheels, resulting in the properties of each wheel.
其中,待检测车轮上的预设参考点位置信息,可以是指待检测车轮上预设参考点的位置信息,预设参考点在每个待检测车轮上的位置相同,例如在每个车轮上,预设参考点都是在对应每个车轮的中心,或者每个车轮的最前面的一个点,或者每个车轮的最靠后的一个点,或者是每个车轮的最下面的一个点等。此外车轮是动态的,但本公开实施例中,预设参考点是指静态的参考点,例如无论车轮转动到什么位置,预设参考点均可以指在采集图像所对应的时刻,图像中所记录的车轮上的预设位置的参考点。Wherein, the position information of the preset reference point on the wheel to be detected may refer to the position information of the preset reference point on the wheel to be detected, and the position of the preset reference point on each wheel to be detected is the same, for example, on each wheel , the preset reference points are at the center of each wheel, or the frontmost point of each wheel, or the rearmost point of each wheel, or the bottommost point of each wheel, etc. . In addition, the wheel is dynamic, but in the embodiment of the present disclosure, the preset reference point refers to a static reference point. For example, no matter where the wheel rotates, the preset reference point may refer to the moment corresponding to the captured image. The reference point for the recorded preset position on the wheel.
本公开提供了行驶朝向检测方法,通过采集目标车辆的周边车辆行驶图像,从周边车辆行驶图像中识别出周围车辆的车轮,根据车轮上的预设参考点位置信息和车轮的属性来确定周围车辆的行驶朝向,可以有效检测出周围车辆的真实行驶朝向,更加贴合周围车辆的真实行驶情况,准确率高,鲁棒性好有利于帮助目标车辆判断周围车辆行驶状况,以提前准备应对策略,提高自动驾驶或辅助驾驶的安全性。The present disclosure provides a driving direction detection method. By collecting driving images of surrounding vehicles of a target vehicle, the wheels of surrounding vehicles are identified from the driving images of surrounding vehicles, and the surrounding vehicles are determined according to preset reference point position information on the wheels and attributes of the wheels. It can effectively detect the real driving direction of the surrounding vehicles, which is more suitable for the real driving conditions of the surrounding vehicles, with high accuracy and good robustness, which is conducive to helping the target vehicle to judge the driving conditions of the surrounding vehicles, so as to prepare the countermeasures in advance. Improve the safety of autonomous or assisted driving.
下面将结合具体实施例对上述S101~S103进行详细介绍。The foregoing S101 to S103 will be described in detail below with reference to specific embodiments.
针对上述步骤S102,请参阅图2,图2为本公开实施例提供的一种行驶朝向检测方法中车辆信息识别的流程图。如图2中所示,步骤S102包括以下步骤。For the above step S102, please refer to FIG. 2, which is a flowchart of vehicle information identification in a driving direction detection method provided by an embodiment of the present disclosure. As shown in FIG. 2, step S102 includes the following steps.
S1021:从所述图像中识别出至少一个车辆和多个车轮。S1021: Identify at least one vehicle and multiple wheels from the image.
其中,对所述图像进行识别,可以包括通过基于深度学习的神经网络构建图像识别模型,通过训练好的图像识别模型对所述图像进行识别,以得到至少一个车辆和多个车轮,为了减少识别时间,提高识别速度等,本公开实施例可以将对车辆的识别和对车轮的识别并行进行。Wherein, recognizing the image may include constructing an image recognition model through a deep learning-based neural network, and recognizing the image through a trained image recognition model to obtain at least one vehicle and multiple wheels. time, improving the recognition speed, etc., the embodiment of the present disclosure can perform the recognition of the vehicle and the recognition of the wheel in parallel.
具体的,出于处理速度和模型结构部署等方面的考虑,可以将对车辆的识别和对车轮的识别并行进行,即可以将这两个任务合并到同一个网络中,如图3所示,图3为本公开实施例提供的行驶朝向检测方法中所使用图像识别模型的示意图,本公开实施例中构建的图像识别模型300可以包括特征提取网络310、车辆检测网络320和车轮检测网络330,车辆检测网络320和车轮检测网络330共享共同的特征提取网络310,车辆检测网络320和车轮检测网络330可以采用目前主流的两阶段网络(faster-RCNN(faster-Region Convolutional Neural Network,基于区域的更快速的卷积神经网络)等网络)或者一阶段网络(RetinaNet(视网膜网络),FCOS(Fully Convolutional One-Stage Object Detection,一阶全卷积目标检测)网络)等,本方案不限于对应的网络结构,残差网络ResNet50,ResNet18以及自主设计的网络结构等也可以纳入到本公开实施例的使用方案中,检测方案和主干网络结构都可以根据项目需要进行设定。Specifically, for the consideration of processing speed and model structure deployment, the identification of the vehicle and the identification of the wheel can be performed in parallel, that is, the two tasks can be combined into the same network, as shown in Figure 3, 3 is a schematic diagram of an image recognition model used in the driving direction detection method provided by the embodiment of the present disclosure. The image recognition model 300 constructed in the embodiment of the present disclosure may include a feature extraction network 310, a vehicle detection network 320, and a wheel detection network 330. The vehicle detection network 320 and the wheel detection network 330 share a common feature extraction network 310, and the vehicle detection network 320 and the wheel detection network 330 can use the current mainstream two-stage network (faster-RCNN (faster-Region Convolutional Neural Network, region-based update). Fast convolutional neural network) and other networks) or one-stage network (RetinaNet (retina network), FCOS (Fully Convolutional One-Stage Object Detection, first-order fully convolutional target detection) network), etc. This solution is not limited to the corresponding network The structure, residual networks ResNet50, ResNet18, and self-designed network structures can also be incorporated into the usage scheme of the embodiment of the present disclosure, and the detection scheme and the backbone network structure can be set according to project needs.
在构建好上述网络后,可以通过对样本图像进行标注,标注出样本图像中的各个车辆和每个车辆的车轮。对于每辆车对应的车轮,可以只标注可见的车轮,当某个车轮不可见时,可以不进行标注。对于每个车轮,会标记其属性为前轮和后轮,当车辆某一侧有多个车轮时,只有最靠前的车轮被标记为前车轮,其余车轮都为后车轮,通过标注好的样本图像对构建的网络进行训练,将训练好的网络作为图像识别模型,来对获取到的周边车辆行驶图像进行识别,即可得到包括所述图像中的至少一个车辆和多个车轮的识别结果,此外,识别结果中还可以包含:包括每个车辆位置信息的车辆信息,以及包括每个车轮位置信息的车轮信息。在一些例子中,识别结果还可以包含每个车轮的属性。After the above network is constructed, each vehicle and the wheel of each vehicle in the sample image can be marked by annotating the sample image. For the wheels corresponding to each vehicle, only the visible wheels can be marked, and when a certain wheel is not visible, the marking can be omitted. For each wheel, its attributes are marked as front wheel and rear wheel. When there are multiple wheels on one side of the vehicle, only the front wheel is marked as the front wheel, and the rest are all rear wheels. The sample image is used to train the constructed network, and the trained network is used as an image recognition model to recognize the obtained driving images of surrounding vehicles, and then the recognition results including at least one vehicle and multiple wheels in the image can be obtained. , and in addition, the identification result may further include: vehicle information including the position information of each vehicle, and wheel information including the position information of each wheel. In some examples, the recognition results may also contain attributes for each wheel.
S1022:确定每个车辆的位置信息和每个车轮的位置信息。S1022: Determine the position information of each vehicle and the position information of each wheel.
其中,确定每个车辆的位置信息和每个车轮的位置信息,可以是获取到每个车辆在所述图像中的位置信息,以及每个车轮在所述图像中的位置信息,也可以是获取每个车 辆在实际场景中的位置信息,以及每个车轮在实际场景中的位置信息。只要车辆的位置信息的参考系与车轮的位置信息的参考系相同即可。Wherein, to determine the position information of each vehicle and the position information of each wheel, the position information of each vehicle in the image and the position information of each wheel in the image may be obtained, or the position information of each wheel in the image may be obtained. The position information of each vehicle in the actual scene, and the position information of each wheel in the actual scene. As long as the reference frame of the position information of the vehicle is the same as the reference frame of the position information of the wheels.
示例性的,在通过图像识别模型识别出所述图像中的车辆和车轮的前提下,可以从识别结果中获取识别出的车辆的位置信息和车轮的位置信息。例如,可以从识别结果中获取每个车辆的车辆检测框,该检测框即包含了车辆的位置信息,还可以从识别结果中获取每个车轮的车轮检测框,该检测框即包含了车轮的位置信息。Exemplarily, on the premise that the vehicle and the wheel in the image are identified by the image recognition model, the position information of the identified vehicle and the position information of the wheel can be obtained from the identification result. For example, the vehicle detection frame of each vehicle can be obtained from the recognition result, which contains the position information of the vehicle, and the wheel detection frame of each wheel can be obtained from the recognition result, and the detection frame contains the position information of the wheel. location information.
S1023:基于每个车辆的位置信息和每个车轮的位置信息,确定所述至少一个车辆中的待检测车辆以及每个待检测车辆的至少两个车轮。S1023: Based on the position information of each vehicle and the position information of each wheel, determine a vehicle to be detected and at least two wheels of each vehicle to be detected in the at least one vehicle.
该步骤中,在确定每个车辆的位置信息和每个车轮的位置信息后,可以先根据预设的距离阈值和面积重合比阈值等,对车辆和车轮进行匹配,从而得到车辆与车辆对应的车轮。例如,基于车辆检测框内的车轮属于同一辆车这一规则,针对待匹配的车轮与车辆,如果该车轮的车轮检测框与该车辆的车辆检测框之间面积的重合比达到预设的面积重合比阈值,则将该车轮作为该车辆的候选车轮。在某一车辆的多个候选车轮中,针对某一候选车轮,如果该车轮与其他候选车轮的相对距离均大于预设的距离阈值,则该候选车轮可以确定为该车辆的车轮,从而可以得到每个待检测车辆的至少两个车轮。再结合各车辆的位置信息,确定相关的待检测车辆,从而得到待检测车辆的至少两个车轮和车轮的属性。或者,可以是先确定待检测车辆,再通过待检测车辆的位置信息和各车轮的位置信息之间的匹配,得到待检测车辆的至少两个车轮和对应车轮的属性。In this step, after determining the position information of each vehicle and the position information of each wheel, the vehicle and the wheel can be matched according to the preset distance threshold and area coincidence ratio threshold, so as to obtain the corresponding vehicle-to-vehicle relationship. wheel. For example, based on the rule that the wheels in the vehicle detection frame belong to the same vehicle, for the wheel and vehicle to be matched, if the overlap ratio of the area between the wheel detection frame of the wheel and the vehicle detection frame of the vehicle reaches a preset area If the coincidence ratio threshold is exceeded, the wheel is regarded as the candidate wheel of the vehicle. Among multiple candidate wheels of a certain vehicle, for a certain candidate wheel, if the relative distance between the wheel and other candidate wheels is greater than the preset distance threshold, the candidate wheel can be determined as the wheel of the vehicle, so that we can obtain At least two wheels of each vehicle to be inspected. In combination with the position information of each vehicle, the relevant vehicles to be detected are determined, thereby obtaining at least two wheels of the vehicle to be detected and attributes of the wheels. Alternatively, the vehicle to be detected may be determined first, and then at least two wheels of the vehicle to be detected and attributes of the corresponding wheels are obtained by matching between the position information of the vehicle to be detected and the position information of each wheel.
进一步的,针对确定出待检测车辆的两个车轮的情况,可以将这两个车轮作为待检测车轮。针对确定出待检测车辆的三个车轮的情况,可以确定处于待检测车辆同一侧的两个车轮为待检测车轮。例如,可以将处于待检测车辆同一侧的一个前轮和一个后轮作为待检测车轮;或者,如果三个车轮包含两个前轮,可以将这两个前轮作为待检测车轮;或者,如果三个车轮包含两个后轮,可以将这两个后轮作为待检测车轮。Further, in the case where two wheels of the vehicle to be detected are determined, these two wheels may be used as the wheels to be detected. In the case where three wheels of the vehicle to be detected are determined, it can be determined that two wheels on the same side of the vehicle to be detected are the wheels to be detected. For example, one front wheel and one rear wheel on the same side of the vehicle to be tested may be used as the wheel to be tested; or, if the three wheels include two front wheels, the two front wheels may be used as the wheel to be tested; or, if The three wheels include two rear wheels, which can be used as the wheels to be detected.
针对上述步骤S102,请参阅图4,图4为本公开实施例提供的另一种行驶朝向检测方法中车辆信息识别的流程图。如图4中所示,步骤S102包括以下步骤。For the above step S102, please refer to FIG. 4, which is a flowchart of vehicle information identification in another driving direction detection method provided by an embodiment of the present disclosure. As shown in FIG. 4, step S102 includes the following steps.
S1024:确定所述图像中的每个待检测车辆。S1024: Determine each vehicle to be detected in the image.
其中,确定所述图像中的待检测车辆,可以是通过神经网络等对图像进行识别,从而识别出所述图像中的车辆,再将识别出的车辆作为待检测车辆。或者,可以从识别出的多个车辆中选择至少一个车辆作为待检测车辆,具体处理过程后续会进行详细说明。Wherein, to determine the vehicle to be detected in the image, the image may be identified through a neural network, etc., so as to identify the vehicle in the image, and then the identified vehicle is used as the vehicle to be detected. Alternatively, at least one vehicle may be selected from the identified multiple vehicles as the vehicle to be detected, and the specific processing process will be described in detail later.
S1025:从所述图像中与所述待检测车辆对应的图像内容,识别出所述待检测车辆的至少两个车轮。S1025: Identify at least two wheels of the vehicle to be detected from the image content corresponding to the vehicle to be detected in the image.
该步骤中,在确定出所述图像中的待检测车辆之后,进一步对所述待检测车辆的图像内容进行识别,以得到所述待检测车辆的至少两个车轮。In this step, after the vehicle to be detected in the image is determined, the image content of the vehicle to be detected is further identified to obtain at least two wheels of the vehicle to be detected.
在一些可能的实施例中,针对步骤S102中的待检测车辆,可以通过以下步骤确定出待检测车辆:将所述图像中与所述目标车辆之间具有以下一种或者多种对应关系的车辆确定为所述待检测车辆:与所述目标车辆位于相同车道、位于所述目标车辆所处车道的相邻车道、位于所述目标车辆前方或后方且两者间的距离小于第一预设距离、位于所述目标车辆的侧方且两者间的距离小于第二预设距离、与所述目标车辆相向行驶。In some possible embodiments, for the vehicle to be detected in step S102, the vehicle to be detected may be determined through the following steps: a vehicle that has one or more of the following correspondences between the image and the target vehicle Determined as the vehicle to be detected: located in the same lane as the target vehicle, located in the adjacent lane of the lane where the target vehicle is located, located in front of or behind the target vehicle, and the distance between the two is less than the first preset distance , located on the side of the target vehicle and the distance between the two is less than a second preset distance, and travels in the opposite direction of the target vehicle.
在一些可能的实施例中,针对步骤S103,步骤S103包括:In some possible embodiments, for step S103, step S103 includes:
基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,以及相关行驶信息,确定所述待检测车辆的行驶朝向,相关行驶信息包括以下信息中的一种或者多种:所述待检测车辆所处车道的道路属性、所述待检测车辆与所处车道的车道线之间的距离、所述待检测车辆在所处车道中的当前位置。The driving direction of the vehicle to be detected is determined based on the preset reference point position information on each wheel to be detected and the attributes of each wheel to be detected, as well as relevant driving information, where the relevant driving information includes one or more of the following information Type: the road attribute of the lane where the vehicle to be detected is located, the distance between the vehicle to be detected and the lane line of the lane where it is located, and the current position of the vehicle to be detected in the lane where it is located.
该步骤中,为了对待检测车辆的行驶朝向进行更准确的预测,在每个待检测车轮上的预设参考点位置信息和车轮的属性的基础上,可以结合上述相关行驶信息预测待检测车辆的行驶朝向。In this step, in order to more accurately predict the driving direction of the vehicle to be detected, on the basis of the preset reference point position information on each wheel to be detected and the attributes of the wheel, the driving information of the vehicle to be detected can be combined with the above-mentioned relevant driving information to predict the driving direction of the vehicle to be detected. Driving direction.
示例性的,在匝道或者其他道路的待检测车辆需要汇入所述目标车辆所在道路时,可以结合上述信息预测所述待检测车辆实时的行驶朝向。例如所述待检测车辆所处的道路是属于不能转向的道路,此时,即使通过待检测车轮判断出待检测车辆的行驶朝向与所述目标车辆当前的行驶朝向存在交汇,但是鉴于道路属性表示车辆在正常行驶时不能转向,那么如果待检测车辆在正常行驶没有出现问题的话,可以暂时认为待检测车辆只是进行行驶状态微调,依旧会沿着所处道路的延伸方向进行行驶,即可将该道路的延伸方向认为是待检测车辆依旧会保持的行驶朝向。再例如待检测车辆目前是压着所处车道的右侧车道线行驶,其距离左侧车道线较远,而且检测出的行驶朝向与所处车道的延伸方向之间偏差不大,那么也可以认为待检测车辆只是要微调行驶状态,其最终的行驶朝向也还是所处车道的延伸方向。Exemplarily, when the vehicle to be detected on a ramp or other road needs to merge into the road where the target vehicle is located, the real-time driving direction of the vehicle to be detected can be predicted in combination with the above information. For example, the road on which the vehicle to be detected is located is a road that cannot be steered. At this time, even if it is determined by the wheels to be detected that the driving direction of the vehicle to be detected and the current driving direction of the target vehicle intersect, the road attribute represents The vehicle cannot be steered during normal driving, so if the vehicle to be detected has no problems in normal driving, it can be temporarily considered that the vehicle to be detected is only fine-tuning the driving state and will still drive along the extension direction of the road where it is located. The extension direction of the road is considered to be the driving direction that the vehicle to be detected will still maintain. For another example, the vehicle to be detected is currently driving on the right lane line of the lane where it is located, which is far from the left lane line, and the detected driving direction has little deviation from the extension direction of the lane it is in, then it is also possible to It is considered that the vehicle to be detected only needs to fine-tune the driving state, and its final driving direction is also the extension direction of the lane in which it is located.
更进一步的,为了增强安全性,对于上述的情况,还可以进行持续的监控。比如在第一帧图像中检测到待检测车辆的行驶朝向与所述目标车辆当前的行驶朝向存在交汇 或待检测车辆压着所处车道的车道线行驶,可以暂时将该待检测车辆放入监控名单,进一步检测在第二帧图像、第三帧图像、第i帧图像(i可以根据目标车辆的当前车速和/或该待检测车辆的距离进行设置)中该待检测车辆的行驶朝向,如果发现该待检测车辆的行驶朝向恢复正常,则不再将该待检测车辆放入监控名单,若该待检测车辆的行驶朝向仍然有问题,则辅助驾驶设备或自动驾驶设备可以发出提示信息或者控制目标车辆进行规避。Further, in order to enhance security, continuous monitoring can also be performed for the above-mentioned situations. For example, if it is detected in the first frame of images that the driving direction of the vehicle to be detected intersects with the current driving direction of the target vehicle or the vehicle to be detected is driving on the lane line of the lane where it is located, the vehicle to be detected can be temporarily put into monitoring list, and further detect the driving direction of the vehicle to be detected in the second frame image, the third frame image, and the i-th frame image (i can be set according to the current speed of the target vehicle and/or the distance of the vehicle to be detected), if If it is found that the driving direction of the vehicle to be detected has returned to normal, the vehicle to be detected will no longer be placed on the monitoring list. If there is still a problem with the driving direction of the vehicle to be detected, the assisted driving device or the automatic driving device can issue a prompt message or control The target vehicle evades.
在一些可能的实施例中,在所述两个待检测车轮包括两个后轮或者两个前轮的情况下,针对步骤S103,步骤S103包括:In some possible embodiments, when the two to-be-detected wheels include two rear wheels or two front wheels, for step S103, step S103 includes:
确定所述两个后轮或者两个前轮各自与地面的接触点,以及两个接触点之间第一连线的中点;确定与所述第一连线以所述中点为交点的垂线,所述垂线与地面平行;确定所述垂线朝向所述待检测车辆车头的方向为所述待检测车辆的行驶朝向。Determine the contact points of the two rear wheels or the two front wheels with the ground, and the midpoint of the first connection line between the two contact points; determine the first connection line with the midpoint as the intersection point The vertical line is parallel to the ground; the direction of the vertical line toward the front of the vehicle to be detected is determined as the driving direction of the vehicle to be detected.
该步骤中,在识别出所述待检测车辆的两个待检测车轮是两个后轮或者两个前轮的情况下,可以先确定两个后轮或者前轮上的预设参考点,如将后轮或者前轮与地面的接触点作为预设参考点,这样可以通过两个接触点得到第一连线,然后以第一连线的中点处、平行于地面的垂线的朝向为所述待检测车辆的行驶朝向。In this step, when it is identified that the two to-be-detected wheels of the to-be-detected vehicle are the two rear wheels or the two front wheels, the preset reference points on the two rear wheels or the front wheels may be determined first, such as The contact point between the rear wheel or the front wheel and the ground is used as the preset reference point, so that the first connection can be obtained through the two contact points, and then the orientation of the vertical line parallel to the ground at the midpoint of the first connection is The driving direction of the vehicle to be detected.
进一步的,由于垂线指示了两个方向,因此可以结合位于所述待检测车辆的车身前后位置的部件、所述待检测车辆所处道路的方向等,从所述垂线指示的两个方向中确定一个方向,作为所述待检测车辆的行驶朝向。Further, since the vertical line indicates two directions, the two directions indicated by the vertical line can be combined with the components located at the front and rear positions of the vehicle to be detected, the direction of the road where the vehicle to be detected is located, etc. A direction is determined in the , as the driving direction of the vehicle to be detected.
本公开实施例中,以后轮或者前轮与地面的接触点作为预设参考点为例进行说明,但并不局限于此,在其他实施例中,还可以是以前轮或者后轮的轮毂中心点等为预设参考点。In the embodiment of the present disclosure, the contact point between the rear wheel or the front wheel and the ground is used as an example for description, but it is not limited to this. In other embodiments, the center of the hub of the front wheel or the rear wheel may also be used. Points etc. are preset reference points.
在一些可能的实施例中,在所述两个待检测车轮包括位于所述待检测车辆同一侧的前轮和后轮的情况下,针对步骤S103,步骤S103包括:确定所述前轮与地面的接触点和所述后轮与地面的接触点,以及从所述后轮的接触点和所述前轮的接触点之间的第二连线,其中,第二连线的起点为后轮的接触点,第二连线的终点为前轮的接触点;确定所述第二连线所指示的朝向为所述待检测车辆的行驶朝向。In some possible embodiments, when the two to-be-detected wheels include a front wheel and a rear wheel located on the same side of the to-be-detected vehicle, for step S103, step S103 includes: determining that the front wheel is connected to the ground The contact point of the rear wheel and the contact point of the ground, and the second connecting line between the contact point of the rear wheel and the contact point of the front wheel, wherein the starting point of the second connecting line is the rear wheel The end point of the second connection line is the contact point of the front wheel; it is determined that the direction indicated by the second connection line is the driving direction of the vehicle to be detected.
该步骤中,在识别出所述待检测车辆的车轮是同侧的一个后轮和一个前轮的情况下,可以先确定后轮和前轮上的预设参考点,如后轮和前轮与地面的接触点作为预设参考点,这样可以通过两个接触点得到第二连线,然后以第二连线的朝向为所述待检测车辆的行 驶朝向。第二连线的朝向为从第二连线的起点指向第二连线的终点的方向。In this step, when it is recognized that the wheels of the vehicle to be detected are one rear wheel and one front wheel on the same side, preset reference points on the rear wheel and the front wheel may be determined first, such as the rear wheel and the front wheel The contact point with the ground is used as a preset reference point, so that a second connection line can be obtained through the two contact points, and then the direction of the second connection line is used as the driving direction of the vehicle to be detected. The direction of the second connection line is the direction from the start point of the second connection line to the end point of the second connection line.
在一些可能的实施例中,所述方法还包括:根据确定的所述待检测车辆的行驶朝向,发出提示信息或者控制所述目标车辆。In some possible embodiments, the method further includes: according to the determined driving direction of the vehicle to be detected, sending out prompt information or controlling the target vehicle.
这样,可以根据确定的所述待检测车辆的行驶朝向,来判断对所述目标车辆的影响等,从而在存在影响或者隐患等情况下,可以发出提示信息或者控制所述目标车辆,从而可以帮助提高目标车辆的行驶安全。In this way, the influence on the target vehicle can be judged according to the determined driving direction of the vehicle to be detected, so that when there is influence or hidden danger, a prompt message can be issued or the target vehicle can be controlled, thereby helping Improve the driving safety of the target vehicle.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
基于同一发明构思,本公开实施例中还提供了与行驶朝向检测方法对应的行驶朝向检测装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述行驶朝向检测方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a driving direction detection device corresponding to the driving direction detection method. For the implementation of the apparatus, reference may be made to the implementation of the method, and the repetition will not be repeated.
请参阅图5和图6,图5为本公开实施例提供的一种行驶朝向检测装置的示意图之一,图6为本公开实施例提供的一种行驶朝向检测装置的示意图之二。如图5中所示,本公开实施例提供的行驶朝向检测装置500包括:行驶图像获取模块510,用于获取目标车辆在行驶过程中的周边车辆行驶图像。车辆信息识别模块520,用于从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮。行驶朝向确定模块530,用于对于每个待检测车辆,基于所述待检测车辆的至少两个车轮,确定所述待检测车辆的行驶朝向。Please refer to FIG. 5 and FIG. 6 , FIG. 5 is one of the schematic diagrams of a driving direction detection device provided by an embodiment of the present disclosure, and FIG. 6 is the second schematic diagram of a driving direction detection device provided by an embodiment of the present disclosure. As shown in FIG. 5 , the driving direction detection device 500 provided by the embodiment of the present disclosure includes: a driving image acquisition module 510 , configured to acquire driving images of surrounding vehicles during the driving process of the target vehicle. The vehicle information identification module 520 is configured to identify at least one vehicle to be detected and at least two wheels of each vehicle to be detected from the image. The driving direction determination module 530 is configured to, for each vehicle to be detected, determine the driving direction of the vehicle to be detected based on at least two wheels of the vehicle to be detected.
一种可选的实施方式中,所述行驶朝向确定模块530具体用于:确定所述至少两个车轮中各个车轮的属性,其中,车轮的属性包括该车轮为前轮或者后轮;基于各个车轮的属性,确定所述至少两个车轮中的两个待检测车轮;基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向。In an optional implementation manner, the driving direction determination module 530 is specifically configured to: determine attributes of each of the at least two wheels, wherein the attributes of the wheels include whether the wheel is a front wheel or a rear wheel; the attributes of the wheels, to determine the two to-be-detected wheels in the at least two wheels; based on the preset reference point position information on each of the to-be-detected wheels and the attributes of each to-be-detected wheel, to determine the driving of the to-be-detected vehicle towards.
一种可选的实施方式中,所述车辆信息识别模块520具体用于:从所述图像中识别出至少一个车辆和多个车轮;确定每个车辆的位置信息和每个车轮的位置信息;基于每个车辆的位置信息和每个车轮的位置信息,确定所述至少一个车辆中的待检测车辆以及每个待检测车辆的至少两个车轮。In an optional embodiment, the vehicle information identification module 520 is specifically configured to: identify at least one vehicle and multiple wheels from the image; determine the position information of each vehicle and the position information of each wheel; Based on the position information of each vehicle and the position information of each wheel, a vehicle to be detected in the at least one vehicle and at least two wheels of each vehicle to be detected are determined.
一种可选的实施方式中,所述车辆信息识别模块520具体用于:根据预设的距离阈值和面积重合比阈值,对所述至少一个车辆和所述多个车轮进行匹配,以得到所述 至少一个车辆中每个车辆与该车辆对应的车轮;根据每个车辆的位置信息,确定所述待检测车辆。In an optional implementation manner, the vehicle information identification module 520 is specifically configured to: match the at least one vehicle and the plurality of wheels according to a preset distance threshold and an area coincidence ratio threshold to obtain the The wheel corresponding to each vehicle in the at least one vehicle is determined; the vehicle to be detected is determined according to the position information of each vehicle.
一种可选的实施方式中,所述车辆信息识别模块520具体用于:对于待匹配的车轮与车辆,如果该车轮的车轮检测框与该车辆的车辆检测框之间面积的重合比达到所述预设的面积重合比阈值,将该车轮作为该车辆的候选车轮;在该车辆的多个候选车轮中,针对任一候选车轮,如果该车轮与其他候选车轮的相对距离均大于所述预设的距离阈值,确定该候选车轮为该车辆的车轮。In an optional implementation manner, the vehicle information identification module 520 is specifically configured to: for the wheel to be matched with the vehicle, if the overlap ratio of the area between the wheel detection frame of the wheel and the vehicle detection frame of the vehicle reaches the required The preset area coincidence ratio threshold, the wheel is used as the candidate wheel of the vehicle; among the multiple candidate wheels of the vehicle, for any candidate wheel, if the relative distance between the wheel and other candidate wheels is greater than the predetermined wheel Set the distance threshold to determine that the candidate wheel is the wheel of the vehicle.
一种可选的实施方式中,所述车辆信息识别模块520具体用于:确定所述图像中的每个待检测车辆;从所述图像中与所述待检测车辆对应的图像内容,识别出所述待检测车辆的至少两个车轮。In an optional implementation manner, the vehicle information identification module 520 is specifically configured to: determine each vehicle to be detected in the image; identify the image content corresponding to the vehicle to be detected in the image; at least two wheels of the vehicle to be detected.
一种可选的实施方式中,所述车辆信息识别模块520用于采用以下步骤确定所述待检测车辆的至少两个车轮的属性:根据所述至少两个车轮中每个车轮与所述待检测车辆的相对位置关系,确定每个车轮的属性。In an optional implementation manner, the vehicle information identification module 520 is configured to use the following steps to determine attributes of at least two wheels of the vehicle to be detected: according to the relationship between each wheel of the at least two wheels and the The relative positional relationship of the vehicle is detected, and the attributes of each wheel are determined.
一种可选的实施方式中,所述车辆信息识别模块520用于通过以下步骤确定出待检测车辆:将所述图像中与所述目标车辆之间具有以下一种或者多种对应关系的车辆确定为所述待检测车辆:与所述目标车辆位于相同车道、位于所述目标车辆所处车道的相邻车道、位于所述目标车辆前方或后方且两者间的距离小于第一预设距离、位于所述目标车辆的侧方且两者间的距离小于第二预设距离、与所述目标车辆相向行驶。In an optional implementation manner, the vehicle information identification module 520 is configured to determine the vehicle to be detected through the following steps: identifying the vehicle in the image with the target vehicle having one or more of the following correspondences: Determined as the vehicle to be detected: located in the same lane as the target vehicle, located in the adjacent lane of the lane where the target vehicle is located, located in front of or behind the target vehicle, and the distance between the two is less than the first preset distance , located on the side of the target vehicle and the distance between the two is less than a second preset distance, and travels in the opposite direction of the target vehicle.
一种可选的实施方式中,所述行驶朝向确定模块530在用于基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向时,具体用于:基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,以及相关行驶信息,确定所述待检测车辆的行驶朝向,所述相关行驶信息包括以下信息中的一种或者多种:所述待检测车辆所处车道的道路属性、所述待检测车辆与所处车道的车道线之间的距离、所述待检测车辆在所处车道中的当前位置。In an optional embodiment, the driving direction determination module 530 is used to determine the driving of the vehicle to be detected based on the preset reference point position information on each wheel to be detected and the attributes of each wheel to be detected. When the direction is used, it is specifically used to: determine the driving direction of the vehicle to be detected based on the preset reference point position information on each wheel to be detected, the attributes of each wheel to be detected, and the relevant driving information, and the relevant driving information Including one or more of the following information: road attributes of the lane where the vehicle to be detected is located, the distance between the vehicle to be detected and the lane line of the lane where the vehicle to be detected is located, the vehicle to be detected in the lane where it is located 's current location.
一种可选的实施方式中,在所述两个待检测车轮包括两个后轮或者两个前轮的情况下,所述行驶朝向确定模块530在用于基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向时,具体用于:确定所述两个后轮或者所述两个前轮各自与地面的接触点,以及两个所述接触点之间第一连线的中点;确定与所述第一连线以所述中点为交点的垂线;确定所述垂线朝向所述待检测车 辆车头的方向为所述待检测车辆的行驶朝向。In an optional implementation manner, in the case that the two wheels to be detected include two rear wheels or two front wheels, the driving direction determination module 530 is used to determine the driving direction based on the predetermined value on each wheel to be detected. Assuming the reference point position information and the attributes of each wheel to be detected, when determining the driving direction of the vehicle to be detected, it is specifically used to: determine the contact points of the two rear wheels or the two front wheels with the ground respectively, and the midpoint of the first connection line between the two contact points; determine the vertical line that intersects the first connection line with the midpoint as the intersection point; determine the direction of the vertical line toward the front of the vehicle to be detected is the driving direction of the vehicle to be detected.
一种可选的实施方式中,在所述两个待检测车轮包括位于所述待检测车辆同一侧的前轮和后轮的情况下,所述行驶朝向确定模块530在用于基于每个待检测车轮上的预设参考点位置信息和每个待检测车轮的属性,确定所述待检测车辆的行驶朝向时,具体用于:确定所述前轮与地面的接触点和所述后轮与地面的接触点,以及从所述后轮的接触点和所述前轮的接触点之间的第二连线,其中,所述第二连线的起点为所述后轮的接触点,所述第二连线的终点为所述前轮的接触点;确定所述第二连线所指示的朝向为所述待检测车辆的行驶朝向。In an optional implementation manner, in the case that the two wheels to be detected include front wheels and rear wheels located on the same side of the vehicle to be detected, the driving direction determination module 530 is used to determine the driving direction based on each wheel to be detected. When detecting the preset reference point position information on the wheels and the attributes of each wheel to be detected, and determining the driving direction of the vehicle to be detected, it is specifically used for: determining the contact point between the front wheel and the ground and the contact point between the rear wheel and the rear wheel. a contact point of the ground, and a second connecting line between the contact point of the rear wheel and the contact point of the front wheel, wherein the starting point of the second connecting line is the contact point of the rear wheel, so The end point of the second connection line is the contact point of the front wheel; the direction indicated by the second connection line is determined as the driving direction of the vehicle to be detected.
一种可选的实施方式中,如图6中所示,行驶朝向检测装置500还包括:车辆提示控制模块540,用于根据确定的所述待检测车辆的行驶朝向,发出提示信息或者控制所述目标车辆。In an optional implementation manner, as shown in FIG. 6 , the driving direction detection device 500 further includes: a vehicle prompting control module 540, configured to issue prompt information or control the vehicle according to the determined driving direction of the vehicle to be detected. the target vehicle.
本公开实施例提供的行驶朝向检测装置,通过获取目标车辆在行驶过程中的周边车辆行驶图像;从所述图像中识别出至少一个待检测车辆以及每个待检测车辆的至少两个车轮,其中,所述车轮的属性包括前轮和后轮;对于每个待检测车辆,基于该待检测车辆的每个车轮上的预设参考点位置信息和每个车轮的属性,确定所述待检测车辆的行驶朝向。The driving direction detection device provided by the embodiment of the present disclosure obtains the driving images of surrounding vehicles of the target vehicle during the driving process; at least one vehicle to be detected and at least two wheels of each vehicle to be detected are identified from the images, wherein , the attributes of the wheels include front wheels and rear wheels; for each vehicle to be detected, based on the preset reference point position information on each wheel of the vehicle to be detected and the attributes of each wheel, determine the vehicle to be detected driving direction.
这样,根据识别出的周围车辆的车轮来检测周围车辆的行驶朝向,可以有效检测出周围车辆的真实行驶朝向,准确率高,鲁棒性好,有利于帮助目标车辆判断周围车辆行驶状况,以提前准备应对策略,可以有效降低事故的发生概率。In this way, detecting the driving direction of the surrounding vehicles according to the identified wheels of the surrounding vehicles can effectively detect the real driving direction of the surrounding vehicles, with high accuracy and good robustness, which is beneficial to help the target vehicle to judge the driving conditions of the surrounding vehicles, so that the Preparing coping strategies in advance can effectively reduce the probability of accidents.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the apparatus and the interaction flow between the modules, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.
本公开实施例还提供了一种计算机设备700,如图7所示,为本公开实施例提供的计算机设备700结构示意图,包括:处理器710、存储器720、和总线730。所述存储器720存储有所述处理器710可执行的机器可读指令,当计算机设备700运行时,所述处理器710与所述存储器720之间通过总线730通信,所述机器可读指令被所述处理器710执行时可以执行上述方法实施例中行驶朝向检测方法的步骤。An embodiment of the present disclosure further provides a computer device 700 , as shown in FIG. 7 , which is a schematic structural diagram of the computer device 700 provided by the embodiment of the present disclosure, including: a processor 710 , a memory 720 , and a bus 730 . The memory 720 stores machine-readable instructions executable by the processor 710. When the computer device 700 is running, the processor 710 communicates with the memory 720 through the bus 730, and the machine-readable instructions are executed. When executed, the processor 710 may execute the steps of the driving direction detection method in the above method embodiments.
上述指令的具体执行过程可以参考本公开实施例中所述的行驶朝向检测方法的步骤,此处不再赘述。For the specific execution process of the above instruction, reference may be made to the steps of the driving direction detection method described in the embodiment of the present disclosure, which will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储 有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的行驶朝向检测方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the driving direction detection method described in the above method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
其中,计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that contribute to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本 公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure rather than limit them. The protection scope of the present disclosure is not limited thereto, although referring to the foregoing The embodiments describe the present disclosure in detail. Those of ordinary skill in the art should understand that: any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present disclosure. Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.