CN111782751A - Method, device and electronic device for generating road at intersection in map - Google Patents

Method, device and electronic device for generating road at intersection in map Download PDF

Info

Publication number
CN111782751A
CN111782751A CN202010599716.3A CN202010599716A CN111782751A CN 111782751 A CN111782751 A CN 111782751A CN 202010599716 A CN202010599716 A CN 202010599716A CN 111782751 A CN111782751 A CN 111782751A
Authority
CN
China
Prior art keywords
road
node
lane
intersection
nodes
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.)
Granted
Application number
CN202010599716.3A
Other languages
Chinese (zh)
Other versions
CN111782751B (en
Inventor
王旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Navinfo Co Ltd
Original Assignee
Navinfo Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN202010599716.3A priority Critical patent/CN111782751B/en
Publication of CN111782751A publication Critical patent/CN111782751A/en
Application granted granted Critical
Publication of CN111782751B publication Critical patent/CN111782751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Traffic Control Systems (AREA)
  • Navigation (AREA)

Abstract

The application provides a method, a device and electronic equipment for generating a road of an intersection in a map, which are used for obtaining nodes in an intersection region on each boundary line of lanes to be connected on a first road and a second road so as to obtain an endpoint candidate set of road representation lines of the intersection, selecting endpoints of the representation lines from the nodes and generating the representation lines for representing the road of the intersection according to the endpoints. Compared with the existing method for manually drawing the road data of the intersection, the method and the device for automatically generating the intersection can automatically generate the high-quality intersection road.

Description

地图中交叉路口道路生成方法、装置及电子设备Method, device and electronic device for generating road at intersection in map

技术领域technical field

本发明实施例涉及地理信息技术领域,尤其涉及一种地图中交叉路口道路生成方法、装置及电子设备。Embodiments of the present invention relate to the technical field of geographic information, and in particular, to a method, device and electronic device for generating a road at an intersection in a map.

背景技术Background technique

高精地图制作分为外业和内业,外业是指采集车外出采集道路数据,内业是指将采集车采集数据进行处理,制作成高精地图的过程。High-precision map production is divided into fieldwork and internal work. Fieldwork refers to the process of collecting road data when the vehicle goes out to collect road data. Internal work refers to the process of processing the data collected by the collecting vehicle and making it into a high-precision map.

交叉路口是指平面交叉路口,即两条或者两条以上道路在同一平面相交的部位,存在交通流间的冲突。通常情况,在执行内业时,作业人员通过人工逐个画点的方式绘制交叉路口的道路,还需要对绘制地图进行调形,费时费力,作业效率低,另外,人工绘制曲线不规则,容易出现折角,不符合产品要求。An intersection refers to a plane intersection, that is, a place where two or more roads intersect on the same plane, and there is a conflict between traffic flows. Usually, when performing internal work, the operator draws the road at the intersection manually by drawing points one by one, and also needs to adjust the shape of the drawn map, which is time-consuming and labor-intensive, and the work efficiency is low. Folded corners do not meet product requirements.

然而,现有的人工绘制交叉路口的道路的方式效率低,且绘制质量不高。However, the existing way of manually drawing roads at intersections is inefficient and the drawing quality is not high.

发明内容SUMMARY OF THE INVENTION

本申请提供一种地图中交叉路口道路生成方法、装置及电子设备,旨在解决现有的人工绘制交叉路口的道路的方式效率低的技术问题。The present application provides a method, device and electronic device for generating a road at an intersection in a map, aiming to solve the technical problem of low efficiency in the existing method of manually drawing roads at an intersection.

第一方面,本申请提供一种地图中交叉路口道路生成方法,包括:获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点,其中,第一道路和第二道路的交汇处形成交叉路口,第一结点和第二结点均位于交叉路口;根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点;根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。In a first aspect, the present application provides a method for generating an intersection road in a map, comprising: acquiring a first node on the boundary line of each first lane in the first road and the boundary of each second lane in the second road The second node on the line, wherein the intersection of the first road and the second road forms an intersection, and both the first node and the second node are located at the intersection; according to the plurality of first nodes and the plurality of second nodes The node determines a representation line endpoint for representing the third road located at the intersection; and generates a representation line for representing the third road located at the intersection based on the representation line endpoints of the third road.

第二方面,本申请提供一种地图中交叉路口道路生成装置,装置包括:获取模块,用于获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点,其中,第一道路和第二道路的交汇处形成交叉路口,第一结点和第二结点均位于交叉路口;确定模块,用于根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点;生成模块,用于根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。In a second aspect, the present application provides an apparatus for generating a road at an intersection in a map, the apparatus comprising: an acquisition module configured to acquire a first node on the boundary line of each first lane in the first road and each road in the second road A second node on the boundary line of the second lane, wherein the intersection of the first road and the second road forms an intersection, and both the first node and the second node are located at the intersection; the determining module is used for determining according to The plurality of first nodes and the plurality of second nodes determine the endpoints of the representation line for representing the third road located at the intersection; the generating module is configured to generate the endpoints for representing the line located at the intersection according to the endpoints of the representation line of the third road. The line representing the third road.

第三方面,本申请提供一种电子设备,包括:存储器,用于存储程序;处理器,用于执行存储器存储的程序,当程序被执行时,处理器用于执行第一方面所涉及的地图中交叉路口道路生成方法。In a third aspect, the present application provides an electronic device, comprising: a memory for storing a program; a processor for executing a program stored in the memory, and when the program is executed, the processor is used for executing the map in the first aspect. Method for generating roads at intersections.

本申请提供一种地图中交叉路口道路生成方法、装置及电子设备,获取第一道路上每个车道边界线上处于交叉路口区域的结点,并获取第二道路上每个车道边界线上处于交叉口区域的结点,以获得交叉口道路参考线和边界线的端点候选集,从上述结点中选择参考线和边界线的端点,再根据上述端点拟合参考线和边界线,生成交叉路口的道路。相较于现有的人工绘制交叉路口的道路数据,本申请可自动生成高质量的交叉口道路。根据统计作业员绘制仅有一个去向车道的交叉路口道路花费12min,本申请可将作业时间缩小至7s,绘制一个有多个去向车道的交叉路口道路花费45min,本申请可将作业时间缩小至15min,效率明显提高。The present application provides a method, device, and electronic device for generating a road at an intersection in a map, obtaining nodes on the boundary line of each lane on the first road that are located in the intersection area, and obtaining nodes on the boundary line of each lane on the second road that are located in the intersection area. Nodes in the intersection area to obtain the endpoint candidate set of the intersection road reference line and boundary line, select the endpoints of the reference line and boundary line from the above nodes, and then fit the reference line and boundary line according to the above endpoints to generate intersections road at intersection. Compared with the existing road data of manually drawn intersections, the present application can automatically generate high-quality intersection roads. According to statistics, it takes 12 minutes for the operator to draw an intersection road with only one destination lane. This application can reduce the operation time to 7s, and it takes 45 minutes to draw an intersection road with multiple destination lanes. This application can reduce the operation time to 15min. , the efficiency is significantly improved.

附图说明Description of drawings

图1为本申请实施例一示出的交叉路口道路的生成方法的流程示意图;1 is a schematic flowchart of a method for generating an intersection road according to Embodiment 1 of the present application;

图2为本申请实施例二提供的方法基于的交叉路口的真实场景示意图;2 is a schematic diagram of a real scene of an intersection on which the method provided by Embodiment 2 of the present application is based;

图3为本申请实施例二提供的方法基于的交叉路口在高精地图中示意图;3 is a schematic diagram of a high-precision map of an intersection on which the method provided by the second embodiment of the present application is based;

图4为本申请实施例二提供的方法基于的交叉路口的一示意图;4 is a schematic diagram of an intersection on which the method provided in Embodiment 2 of the present application is based;

图5为本申请实施例二提供的方法基于的交叉路口的另一示意图;FIG. 5 is another schematic diagram of an intersection on which the method provided in Embodiment 2 of the present application is based;

图6为本申请使用实施例二的方法生成图4所示交叉路口道路的示意图;FIG. 6 is a schematic diagram of generating the intersection road shown in FIG. 4 by using the method of Embodiment 2 for this application;

图7为使用本申请实施例二的方法生成图5所示交叉路口道路的示意图;FIG. 7 is a schematic diagram of generating the intersection road shown in FIG. 5 by using the method of Embodiment 2 of the present application;

图8为使用本申请实施例二的方法生成的交叉路口道路在高精地图中示意图;8 is a schematic diagram of an intersection road generated by the method of Embodiment 2 of the present application in a high-precision map;

图9为使用本申请实施例二的方法生成的道路中出现交叉的示意图;9 is a schematic diagram of an intersection occurring in a road generated by the method of Embodiment 2 of the present application;

图10为使用本申请实施例二的方法生成的道路中不出现交叉的示意图;FIG. 10 is a schematic diagram showing no intersection in a road generated by the method of Embodiment 2 of the present application;

图11为本申请实施例三提供的方法基于的交叉路口在高精地图中示意图;11 is a schematic diagram of a high-precision map of an intersection on which the method provided in Embodiment 3 of the present application is based;

图12为本申请实施例三提供的方法基于的交叉路口的一示意图;12 is a schematic diagram of an intersection on which the method provided in Embodiment 3 of the present application is based;

图13为本申请实施例三提供的方法基于的交叉路口的另一示意图;13 is another schematic diagram of an intersection on which the method provided in Embodiment 3 of the present application is based;

图14为本申请使用实施例三的方法生成图12所示交叉路口的道路;Fig. 14 uses the method of Embodiment 3 to generate the road of the intersection shown in Fig. 12 for the application;

图15为本申请使用实施例三的方法生成图13所示交叉路口的道路;Fig. 15 uses the method of Embodiment 3 to generate the road of the intersection shown in Fig. 13 for the application;

图16为使用本申请实施例三的方法生成的交叉路口道路在高精地图中示意图;FIG. 16 is a schematic diagram of an intersection road generated by the method of Embodiment 3 of the present application in a high-precision map;

图17为本申请实施例四提供的方法生成的交叉路口的示意图;17 is a schematic diagram of an intersection generated by the method provided in Embodiment 4 of the present application;

图18为使用本申请实施例四的方法生成的交叉路口的道路在高精地图中示意图;18 is a schematic diagram of a road at an intersection generated by the method of Embodiment 4 of the present application in a high-precision map;

图19为本申请实施例五基于的一种交叉路口的实际场景示意图;19 is a schematic diagram of an actual scene of an intersection based on Embodiment 5 of the present application;

图20为图19所示交叉路口的示意图;Figure 20 is a schematic diagram of the intersection shown in Figure 19;

图21为本申请实施例五基于的另一种交叉路口的示意图;21 is a schematic diagram of another intersection based on Embodiment 5 of the present application;

图22为本申请实施例五中边界线的端点分布示意图;22 is a schematic diagram of the end point distribution of the boundary line in the fifth embodiment of the application;

图23为图20所示的交叉路口在拟合完后的道路示意图;Fig. 23 is the road schematic diagram of the intersection shown in Fig. 20 after fitting;

图24为图21所示的交叉路口在拟合完后的道路示意图;Figure 24 is a schematic diagram of the road after fitting of the intersection shown in Figure 21;

图25为图20所示的交叉路口道路在高精地图中示意图;Fig. 25 is a schematic diagram of the intersection road shown in Fig. 20 in a high-precision map;

图26为采用现有人工方式绘制图20所示的交叉路口的示意图;FIG. 26 is a schematic diagram of drawing the intersection shown in FIG. 20 by using an existing manual method;

图27为本申请实施例六基于的一种交叉路口的示意图;FIG. 27 is a schematic diagram of an intersection on which Embodiment 6 of the present application is based;

图28为图27所示的交叉路口拟合完后的道路示意图;Fig. 28 is a schematic diagram of the road after fitting of the intersection shown in Fig. 27;

图29为右转交叉路口拟合完后的道路示意图;Figure 29 is a schematic diagram of the road after the right-turn intersection is fitted;

图30为本申请实施例七示出的交叉路口道路生成装置的示意图;30 is a schematic diagram of an intersection road generating apparatus shown in Embodiment 7 of the present application;

图31为本发明实施例八示出的电子设备的结构示意图。FIG. 31 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present invention.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

作业人员在执行内业,绘制交叉路口的道路时,需要通过手工逐个画点,然后将多个点连接起来,绘制交叉路口道路的初步形状,然后对道路的初步形状调整,进而制作完成交叉路口道路。按照交叉路口的同一方向的车道数量分类,可以分为大交叉路口和小交叉路口。其中,在同一个方向仅有一个车道的交叉路口,将其定义为小交叉路口。例如:社区出入口汇入市政道路的交叉口。在同一个方向有多个车道的交叉路口,将其定义为小交叉路口。例如:一条市政道路与另一条市政道路的交汇点。通过统计作业人员绘制交叉路口的道路使用时间,可得到如下数据:熟练的作业人员在绘制小交叉路口的道路平均需要花费12min,绘制大交叉路口的道路平均需要花费45min。通过上述分析可知,现有的由作业人员人工绘制交叉路口的道路方式存在耗时长的问题。另外,通过人工将多个点连接,绘制车道边界线的方式,所绘制的车道边界线容易出现折角,不能满足绘制要求。When the operator performs the internal work and draws the road at the intersection, he needs to manually draw the points one by one, and then connect multiple points to draw the preliminary shape of the road at the intersection, and then adjust the preliminary shape of the road to complete the intersection. the way. According to the number of lanes in the same direction of the intersection, it can be divided into large intersections and small intersections. Among them, an intersection with only one lane in the same direction is defined as a small intersection. For example: the intersection of the community entrance and exit into the municipal road. An intersection with multiple lanes in the same direction is defined as a small intersection. For example: the intersection of one municipal road with another municipal road. By counting the road usage time of the operators to draw the intersections, the following data can be obtained: it takes an average of 12 minutes for skilled operators to draw roads at small intersections, and it takes an average of 45 minutes to draw roads at large intersections. From the above analysis, it can be seen that the existing road method in which the operator manually draws the intersection has the problem of taking a long time. In addition, by manually connecting multiple points to draw the lane boundary line, the drawn lane boundary line is prone to corners, which cannot meet the drawing requirements.

针对上述问题,本申请的发明构思是:从两条需要交汇的道路的边界上选择位于交叉路口的结点,作为参考线和边界线的端点的候选点。先确定参考线的端点,在根据参考线的端点确定边界线的端点。在确定参考线和边界线的端点之后对各端点进行拟合,实现自动生成交叉路口的道路。In view of the above problems, the inventive concept of the present application is to select a node located at an intersection from the boundary of two roads that need to intersect, as a candidate point for the end point of the reference line and the boundary line. First determine the endpoint of the reference line, and then determine the endpoint of the boundary line based on the endpoint of the reference line. After the endpoints of the reference line and the boundary line are determined, each endpoint is fitted to realize the automatic generation of the road at the intersection.

图1为本申请实施例一示出的交叉路口道路生成方法的流程示意图。如图1所示,本申请实施例一提供生成方法,包括如下步骤:FIG. 1 is a schematic flowchart of a method for generating a road at an intersection according to Embodiment 1 of the present application. As shown in FIG. 1, Embodiment 1 of the present application provides a generation method, which includes the following steps:

S101、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S101. Acquire a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,第一道路和第二道路的交汇处形成交叉路口,第一道路包括至少一个与交叉路口的道路连接的第一车道,第二道路包括至少一个与交叉路口的道路连接的第二车道。在每个第一车道的边界线上提取第一结点,且第一结点位于交叉路口。在每个第二车道的边界线上提取第二结点,且第二结点位于交叉路口。其中,下面定义结点含义:作业车在采集道路数据时,若遇到另一条道路需要在当前采集位置与当前采集道路交汇时,会标记当前采集位置,根据当前采集位置在当前采集道路的每个车道的边界上形成结点。The intersection of the first road and the second road forms an intersection, the first road includes at least one first lane connected to the road at the intersection, and the second road includes at least one second lane connected to the road at the intersection. A first node is extracted on the boundary line of each first lane, and the first node is located at the intersection. A second node is extracted on the boundary line of each second lane, and the second node is located at the intersection. Among them, the meaning of the node is defined as follows: when the work vehicle collects road data, if it encounters another road that needs to intersect with the current collection road at the current collection position, the current collection position will be marked, and according to the current collection position, the current collection position will be displayed at each point of the current collection road. A node is formed on the boundary of each lane.

还需要说明的是,若第一道路和第二道路均为市政道路,在第一道路和第二道路上会标记有车道边界线,若第一道路和第二道路任意一个为社区内道路,部分社区内道路未标记明显车道边界线,此时结点可以任意确定,但该结点需要位于交叉路口区域。It should also be noted that if the first road and the second road are both municipal roads, the lane boundary line will be marked on the first road and the second road. If either the first road or the second road is a road in the community, The roads in some communities are not marked with obvious lane boundary lines. At this time, the node can be arbitrarily determined, but the node needs to be located in the intersection area.

S102、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S102. Determine, according to a plurality of first nodes and a plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,第三道路的表示线包括第三参考线和第三边界线。从多个第一结点选择交叉路口道路的参考线的一个端点,从多个第二结点选择交叉路口道路的参考线的另一个端点。在确定交叉路口道路的参考线端点之后,在根据交叉路口道路的参考线的一个端点确定交叉路口道路的边界线的一个端点,在根据交叉路口道路的参考线的另一个端点确定交叉路口道路的边界线的另一个端点。边界线的端点可位于第一道路的边界线上,也可位于第二道路的边界线上。The line representing the third road includes a third reference line and a third boundary line. One end point of the reference line of the intersection road is selected from the plurality of first nodes, and the other end point of the reference line of the intersection road is selected from the plurality of second nodes. After determining the reference line endpoint of the intersection road, one end point of the boundary line of the intersection road is determined according to one end point of the reference line of the intersection road, and one end point of the boundary line of the intersection road is determined according to the other end point of the reference line of the intersection road. Another endpoint of the boundary line. The endpoint of the boundary line may be located on the boundary line of the first road, or may be located on the boundary line of the second road.

S103、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S103. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,将交叉路口道路的参考线的两个端点进行拟合处理,生成交叉路口道路的参考线,其中,选择拟合方式遵循如下原则:若第一道路的参考线与第二道路的参考之间的夹角大于预设值,例如:45°,则使用曲线拟合,否则,使用直线拟合。Among them, the two end points of the reference line of the intersection road are fitted to generate the reference line of the intersection road, wherein the selection of the fitting method follows the following principles: if the reference line of the first road and the reference of the second road are the same If the angle between them is greater than the preset value, for example: 45°, use curve fitting, otherwise, use straight line fitting.

在拟合得到交叉路口的道路的参考线之后,对每个车道的边界线两个端点进行拟合,边界线也可先于参考线拟合,此处不限制拟合顺序。边界线选取的拟合方式的原则与参考线相同。在拟合得到交叉路口各车道的边界线之后,再拟合生成中心线。After the reference line of the road at the intersection is obtained by fitting, the two end points of the boundary line of each lane are fitted, and the boundary line can also be fitted before the reference line, and the fitting order is not limited here. The principle of fitting the boundary line selection is the same as that of the reference line. After the boundary line of each lane of the intersection is obtained by fitting, the center line is generated by fitting.

在本申请实施例提供的地图中交叉路口道路生成方法中,从第一道路和第二道路的边界线上的结点中选择交叉路口道路的参考线端点和边界线端点,以对参考线和边界线进行拟合,生成交叉路口道路,相较于现有的人工绘制方式,效率大幅提高,使原有的花费15min绘制小交叉路口缩短至7s,原有的花费45min绘制大交叉路口缩短至12min。In the method for generating an intersection road in a map provided by this embodiment of the present application, the reference line endpoints and the boundary line endpoints of the intersection road are selected from the nodes on the boundary lines of the first road and the second road to compare the reference line and the boundary line. The boundary line is fitted to generate intersection roads. Compared with the existing manual drawing method, the efficiency is greatly improved, which shortens the original 15 minutes to draw small intersections to 7 seconds, and the original 45 minutes to draw large intersections to 12min.

下面重点描述本申请根据实施例二示出的交叉路口道路生成方法。图2为实施例二提供的方法基于的交叉路口的真实场景示意图,图3为实施例二提供的方法基于的交叉路口在高精地图中示意图,如图3所示,第一道路R1与第二道路R2构成丁字路口,第一道路R1仅包括一条双向行驶的第一车道,且第一道路R1为位于社区出入口的道路。相应地,第一结点数量为2个。第一车道的宽度和第二车道的宽度之间差值在预设阈值内。预设阈值根据车道的标准宽度确定。也就是第一车道的宽度和第二车道的宽度相差不太大。交叉路口道路包括第三道路R3和第四道路R4,第三道路R3的方向为退出第二道路R2的方向,第四道路R4的方向为进入第二道路R2的方向。第三道路R3包括一条第三车道L3,第四道路R4包括一条第四车道L4。下面以生成第三道路R3为例描述,第四道路R4可按照生成第三道路R3的方式生成。The following describes the method for generating a road at an intersection according to Embodiment 2 of the present application. FIG. 2 is a schematic diagram of a real scene of an intersection on which the method provided by Embodiment 2 is based, and FIG. 3 is a schematic diagram of a high-precision map of the intersection on which the method provided by Embodiment 2 is based. As shown in FIG. The second road R2 constitutes a T-junction, the first road R1 only includes a first lane with two-way driving, and the first road R1 is a road located at the entrance and exit of the community. Correspondingly, the number of the first nodes is 2. The difference between the width of the first lane and the width of the second lane is within a preset threshold. The preset threshold is determined according to the standard width of the lane. That is, the width of the first lane and the width of the second lane are not much different. The intersection road includes a third road R3 and a fourth road R4, the direction of the third road R3 is the direction of exiting the second road R2, and the direction of the fourth road R4 is the direction of entering the second road R2. The third road R3 includes a third lane L3, and the fourth road R4 includes a fourth lane L4. In the following description, the generation of the third road R3 is taken as an example, and the fourth road R4 may be generated in the manner of generating the third road R3.

本申请实施例二提供的交叉路口道路生成方法,包括如下步骤:The method for generating an intersection road provided in Embodiment 2 of the present application includes the following steps:

S201、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S201. Obtain a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,该步骤已经在S101中详细说明,重复不再赘述,还需要说明的是:第一道路R1为社区出入口的道路,在第一道路R1上没有明显边界线,又第一道路R1上仅包括一条双向行驶的车道,可在位于交叉路口的第一道路R1内任意选择两点,如图3所示,例如:结点A和结点B,使两点之间的距离与第二车道的宽度接近,以使第一车道的宽度和第二车道的宽度之间差值小于或者等于预设阈值。Wherein, this step has been described in detail in S101, and the repetition will not be repeated. It should also be noted that: the first road R1 is the road of the entrance and exit of the community, there is no obvious boundary line on the first road R1, and the first road R1 only has Including a two-way driving lane, two points can be arbitrarily selected in the first road R1 at the intersection, as shown in Figure 3, for example: node A and node B, so that the distance between the two points is the same as that of the second lane is close to the width of , so that the difference between the width of the first lane and the width of the second lane is less than or equal to the preset threshold.

图4为实施例二提供的方法基于的交叉路口的一示意图,图5为实施例二提供的方法基于的交叉路口的另一示意图,第二道路R2为市政道路,一般市政道路可分为两种情况,如图4所示,最外面的车道为行驶车道,可与交叉路口道路连接,第二结点为结点C、结点D、结点E和结点F。如图5所示,最外面的车道为非行驶车道,也就是结点P和结点Q的一侧有边界线,另一侧没有边界线,从下至上的第二车道与交叉路口道路连接。FIG. 4 is a schematic diagram of an intersection on which the method provided by Embodiment 2 is based, and FIG. 5 is another schematic diagram of an intersection on which the method provided by Embodiment 2 is based. The second road R2 is a municipal road, and a general municipal road can be divided into two In this case, as shown in Figure 4, the outermost lane is the driving lane, which can be connected to the intersection road, and the second nodes are node C, node D, node E and node F. As shown in Figure 5, the outermost lane is a non-driving lane, that is, there is a boundary line on one side of node P and node Q, and there is no boundary line on the other side, and the second lane from bottom to top is connected with the intersection road .

S202、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S202. Determine, according to the plurality of first nodes and the plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,从多个第一结点中确定第三道路的第三参考线的第一端点。从多个第二结点中选择距离第三参考线的第一端点最近的结点作为第三参考线的第二端点。从多个第二结点中选择距离第三参考线的第二端点最近的结点作为第三车道的边界线的第一端点。将剩余的第一结点作为第三车道的边界线的第二端点。Wherein, the first end point of the third reference line of the third road is determined from the plurality of first nodes. A node closest to the first end point of the third reference line is selected from the plurality of second nodes as the second end point of the third reference line. A node closest to the second end point of the third reference line is selected from the plurality of second nodes as the first end point of the boundary line of the third lane. Take the remaining first node as the second endpoint of the boundary line of the third lane.

以图4所示交叉路口为例,在结点A和结点B中选择,从两个第一结点选择其中任意一个第一结点作为第三车道的参考线的第一端点。将结点A作为第三车道的参考线的第一端点。在结点C、结点D、结点E和结点F中选择,结点D距离结点A最近,将结点D作为第三车道的参考线的第二端点。结点C距离结点D最近,选择结点C作为第三车道的边界线的第一端点。结点A已经作为第三车道的参考线的第一端点,则结点B作为第三车道的边界线的第二端点。Taking the intersection shown in FIG. 4 as an example, select from node A and node B, and select any one of the first nodes from the two first nodes as the first end point of the reference line of the third lane. Take node A as the first endpoint of the reference line for the third lane. Select from node C, node D, node E and node F, node D is the closest to node A, and node D is used as the second end point of the reference line of the third lane. Node C is the closest to node D, and node C is selected as the first endpoint of the boundary line of the third lane. Node A has been used as the first end point of the reference line of the third lane, then node B is used as the second end point of the boundary line of the third lane.

S203、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S203. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,该步骤已在S103中详细说明,重复部分不再赘述,下面结合图4所示的交叉路口说明生成的道路的效果。图6为使用实施例二的方法生成图4所示交叉路口的道路的示意图。如图6所示,第三道路R3的参考线为第二结点D到第一结点A之间曲线L1,第三道路R3的边界线为第二结点C至第一结点B之间曲线B2,中线为OM。Wherein, this step has been described in detail in S103, and the repeated parts will not be repeated. The effect of the generated road will be described below with reference to the intersection shown in FIG. 4 . FIG. 6 is a schematic diagram of generating a road at the intersection shown in FIG. 4 using the method of the second embodiment. As shown in FIG. 6 , the reference line of the third road R3 is the curve L1 between the second node D and the first node A, and the boundary line of the third road R3 is the line between the second node C and the first node B. The middle curve is B2, and the middle line is OM.

第四道路R4可按照生成第三道路R3的方式生成。依次确定第四道路R4的参考线两个端点和边界线两个端点为:结点B、结点F、结点E、结点A,再对参考线和边界线的端点进行拟合,生成参考线L2和边界线B3,再生成中心线B4。The fourth road R4 may be generated in the same manner as the third road R3 is generated. Determine in turn the two endpoints of the reference line and the two endpoints of the boundary line of the fourth road R4 as: node B, node F, node E, node A, and then fit the endpoints of the reference line and the boundary line to generate The reference line L2 and the boundary line B3 are used to regenerate the center line B4.

如图6所示,第三道路的车道起点宽度为CD,车道终点宽度为AB,第四道路的车道起点宽度为AB,车道终点宽度为EF。第三道路的车道终点宽度为第四道路的车道起点宽度。在生成第三车道和第四车道之后,对第三道路的车道终点和第四车道的车道起点自动挂接。例如:边界线DA的终点和边界线AE的起点会在A的位置自动合并为一个边界结点;同理,边界线CB的终点和边界线BF的起点会在B的位置自动合并为一个边界结点;中心线MO的终点和中心点ON的起点会在O的位置合并为一个中心线结点。As shown in FIG. 6 , the width of the lane starting point of the third road is CD, the width of the lane end point is AB, the width of the lane starting point of the fourth road is AB, and the width of the lane end point is EF. The lane end width of the third road is the lane start width of the fourth road. After the third lane and the fourth lane are generated, the lane end point of the third road and the lane start point of the fourth lane are automatically connected. For example, the end point of the boundary line DA and the start point of the boundary line AE will be automatically merged into a boundary node at the position of A; similarly, the end point of the boundary line CB and the start point of the boundary line BF will be automatically merged into a boundary node at the position of B. Node; the end point of the center line MO and the start point of the center point ON will be merged into a center line node at the position of O.

图7为使用实施例二的方法生成图5所示交叉路口的道路的示意图。与图6的区别在于,交叉路口的道路与从下至上的第二个车道连接,第二结点平移至从下至上的第二个车道边界线上。FIG. 7 is a schematic diagram of generating a road at the intersection shown in FIG. 5 using the method of the second embodiment. The difference from Fig. 6 is that the road at the intersection is connected with the second lane from the bottom to the top, and the second node is translated to the boundary line of the second lane from the bottom to the top.

另外,需要说明的是,在生成第三道路和第四道路的边界线、中心线和参考线之后,可进行属性编辑,例如:参考线属性:道路种别默认为普通道路。车道边界属性:边界类型均为“无标线或无可区分边界”,跨越方向为“无法跨越”,邻接属性为“不应用”。中心线默认为常规车道的中心线,无需更改任何属性。在完成上述配置后,可生成如图8所示的交叉路口的道路在高精地图中示意图。In addition, it should be noted that after generating the boundary line, center line and reference line of the third road and the fourth road, attribute editing can be performed, for example: reference line attribute: the default road type is ordinary road. Lane boundary attribute: the boundary type is "no marking or indistinguishable boundary", the crossing direction is "cannot cross", and the adjacency attribute is "not applicable". The centerline defaults to the centerline of the regular lane, no properties need to be changed. After completing the above configuration, a schematic diagram of the road at the intersection as shown in FIG. 8 can be generated in the high-precision map.

另外,还需要说明的是,通过调整拟合参数,使挂接在同一点的边界线、中心线和参考线之间不交叉,图9为实施例二生成的道路中出现交叉的示意图,图10为实施例二生成的道路中不出现交叉的示意图。In addition, it should be noted that, by adjusting the fitting parameters, the boundary line, the center line and the reference line attached to the same point do not intersect. 10 is a schematic diagram of no intersection in the road generated in the second embodiment.

本申请实施例二提供的交叉路口的道路生成方法,在第一道路和第二道路构成的丁字路口中,且第一道路包括一条双向车道时,可生成仅有一条车道的交叉路口道路。The method for generating an intersection road provided in the second embodiment of the present application can generate an intersection road with only one lane when the first road includes a two-way lane in a T-shaped intersection formed by a first road and a second road.

下面重点描述本申请根据实施例三示出的交叉路口道路生成方法。图11为实施例三提供的方法基于的交叉路口在高精地图中示意图,如图11所示,第一道路R1与第二道路R2构成丁字路口,与上述实施例二之间区别为:第一道路包括两个车道,其中一个车道为来向车道,另一个车道为去向车道。The following describes the method for generating an intersection road according to Embodiment 3 of the present application. Fig. 11 is a schematic diagram of the intersection on which the method provided by the third embodiment is based in the high-precision map. As shown in Fig. 11 , the first road R1 and the second road R2 form a T-shaped intersection, and the difference from the above-mentioned second embodiment is: A road consists of two lanes, one of which is an incoming lane and the other is an outgoing lane.

本申请实施例三提供的交叉路口道路生成方法,包括如下步骤:The method for generating an intersection road provided in Embodiment 3 of the present application includes the following steps:

S301、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S301. Obtain a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,S301已经在S101中详细说明,重复不再赘述,还需要说明的是:Among them, S301 has been described in detail in S101, and the repetition will not be repeated. What also needs to be explained is:

第一道路R1包括两个车道,其中一个车道为来向车道,另一个车道为去向车道,由于第一道路为社区道路,未在道路上标记边界线,可在位于交叉路口的第一道路R1内任意选择三点,任意两个距离最近的结点之间宽度与第二车道的宽度接近。如图11所示,例如:结点A、结点B和结点C,使AB两点、BC两点之间的距离与第二车道的宽度接近,以使第一车道的宽度和第二车道的宽度之间差值小于或者等于预设阈值。第一结点包括结点A和结点B,或者第一结点包括结点B和结点C。The first road R1 includes two lanes, one of which is an incoming lane and the other is an outgoing lane. Since the first road is a community road, the boundary line is not marked on the road, and the first road R1 at the intersection can be used at the intersection. Three points are arbitrarily selected in the interior, and the width between any two closest nodes is close to the width of the second lane. As shown in Figure 11, for example: node A, node B and node C, make the distance between two points AB and BC close to the width of the second lane, so that the width of the first lane and the second The difference between the widths of the lanes is less than or equal to the preset threshold. The first node includes node A and node B, or the first node includes node B and node C.

图12为实施例三提供的方法基于的交叉路口的一示意图,图13为实施例三提供的方法基于的交叉路口的另一示意图,如图12所示,最外面的车道为行驶车道,可与交叉路口道路连接,第二结点为结点D、结点E、结点F和结点G。如图13所示,最外面的车道为非行驶车道,也就是结点P和结点Q的一侧有边界线,另一侧没有边界线,从下至上的第二车道与交叉路口道路连接。FIG. 12 is a schematic diagram of an intersection on which the method provided by Embodiment 3 is based, and FIG. 13 is another schematic diagram of an intersection on which the method provided by Embodiment 3 is based. As shown in FIG. 12 , the outermost lane is a driving lane, and can Connected with the intersection road, the second node is node D, node E, node F and node G. As shown in Figure 13, the outermost lane is a non-driving lane, that is, there is a boundary line on one side of node P and node Q, and there is no boundary line on the other side, and the second lane from bottom to top is connected to the intersection road .

S302、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S302. Determine, according to the plurality of first nodes and the plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,该步骤已经在S202中详细说明,重复不再赘述。以图12所示交叉路口为例,第一结点为结点A、结点B。选择结点A作为第三车道的参考线的第一端点。第二结点为结点D、结点E、结点F和结点G。结点D距离结点A最近,将结点D作为第三车道的参考线的第二端点。结点E距离结点D最近,将结点E作为第三车道的边界线的第一端点。结点B位于结点A和结点C之间,选择结点B作为第三车道的参考线的第二端点。Wherein, this step has been described in detail in S202, and the repetition will not be repeated. Taking the intersection shown in FIG. 12 as an example, the first nodes are node A and node B. Select Node A as the first endpoint of the reference line for the third lane. The second nodes are node D, node E, node F, and node G. Node D is the closest to node A, and node D is used as the second endpoint of the reference line of the third lane. Node E is the closest to node D, and node E is used as the first endpoint of the boundary line of the third lane. Node B is located between Node A and Node C, and Node B is selected as the second endpoint of the reference line of the third lane.

S303、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S303. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,该步骤已在S103中详细说明,重复部分不再赘述,下面结合图12所示的交叉路口说明生成的道路的效果。图14为使用实施例三的方法生成图12所示交叉路口的道路。如图14所示,第三道路R3的参考线为结点D到结点A之间曲线L1,第三道路R3的边界线为结点E至结点B之间曲线B2,中心线为B1。Wherein, this step has been described in detail in S103, and the repeated parts will not be repeated. The effect of the generated road will be described below with reference to the intersection shown in FIG. 12 . FIG. 14 shows the road of the intersection shown in FIG. 12 generated by the method of the third embodiment. As shown in FIG. 14 , the reference line of the third road R3 is the curve L1 between the node D and the node A, the boundary line of the third road R3 is the curve B2 between the node E and the node B, and the center line is B1 .

第四道路R4可按照生成第三道路R3的方式生成。第一结点为结点A、结点B和结点C,第二结点为结点D、结点E、结点G和结点F。依次确定第四道路R4的参考线两个端点和边界线两个端点为:结点B、结点G、结点C、结点F,再对参考线和边界线的端点进行拟合,生成参考线L2和边界线B3,再生成中心线B4。The fourth road R4 may be generated in the same manner as the third road R3 is generated. The first node is node A, node B and node C, and the second node is node D, node E, node G and node F. Determine in turn the two endpoints of the reference line and the two endpoints of the boundary line of the fourth road R4 as: node B, node G, node C, node F, and then fit the endpoints of the reference line and the boundary line to generate The reference line L2 and the boundary line B3 are used to regenerate the center line B4.

如图14所示,第三道路的车道起点宽度为DE,车道终点宽度为AB,第四道路的车道起点宽度为BC,车道终点宽度为FG。在生成第三车道和第四车道之后,可对第三道路的车道终点和第四车道的车道起点进行自动挂接。例如:边界EB的终点和边界BG的起点会在B的位置自动合并为一个边界结点。As shown in FIG. 14 , the lane start width of the third road is DE, the lane end width is AB, the lane start width of the fourth road is BC, and the lane end width is FG. After the third lane and the fourth lane are generated, the lane end point of the third road and the lane start point of the fourth lane may be automatically connected. For example: the end point of the boundary EB and the start point of the boundary BG will be automatically merged into a boundary node at the position of B.

图15为使用实施例三的方法生成图13所示交叉路口的道路。与图14的区别在于,交叉路口的道路与从下至上的第二个车道连接,第二结点平移至从下至上的第二个车道边界线上。相同之处可参考图14描述。FIG. 15 shows the road of the intersection shown in FIG. 13 generated by the method of the third embodiment. The difference from Fig. 14 is that the road at the intersection is connected with the second lane from the bottom to the top, and the second node is translated to the boundary line of the second lane from the bottom to the top. The same can be described with reference to FIG. 14 .

另外,需要说明的是,第三道路和第四道路的边界线、中心线和参考线的属性同实施例二,此处不再赘述。通过调整拟合参数,使挂接于同一点的边界线、中心线和参考线之间不存在交叉,可生成如图16所示的交叉路口的道路在高精地图中示意图。In addition, it should be noted that the attributes of the boundary line, the center line and the reference line of the third road and the fourth road are the same as those of the second embodiment, and are not repeated here. By adjusting the fitting parameters so that there is no intersection between the boundary line, the center line and the reference line attached to the same point, the schematic diagram of the road at the intersection as shown in Figure 16 can be generated in the high-precision map.

本申请实施例三提供的交叉路口的道路生成方法,在第一道路和第二道路构成的丁字路口中,且第一道路包括一条去向车道和一条来向车道时,可生成仅有一条车道的交叉路口道路。The road generation method for the intersection provided by the third embodiment of the present application, in the T-shaped intersection formed by the first road and the second road, and when the first road includes an outgoing lane and an incoming lane, a road with only one lane can be generated. intersection road.

下面重点描述本申请实施例四提供的交叉路口道路的生成方法,与实施例二所示的交叉路口的道路的生成方法的区别在于:第一车道的宽度和第二车道的宽度之间差值大于预设阈值。The following focuses on describing the method for generating roads at intersections provided in Embodiment 4 of the present application. The difference from the method for generating roads at intersections shown in Embodiment 2 is that the difference between the width of the first lane and the width of the second lane is: greater than the preset threshold.

本申请实施例四提供的交叉路口道路的生成方法,包括如下步骤:The method for generating an intersection road provided in Embodiment 4 of the present application includes the following steps:

S401、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S401. Acquire a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,该步骤已经在S101中详细说明,重复不再赘述,还需要说明的是:可在位于交叉路口的第一道路R1内任意选择两点,使两点之间的距离与第二车道的宽度的相差较远,以使第一车道的宽度和第二车道的宽度之间差值小于或者等于预设阈值。Among them, this step has been described in detail in S101, and the repetition will not be repeated. It should be noted that: two points can be arbitrarily selected in the first road R1 located at the intersection, so that the distance between the two points is the same as the distance between the two points. The difference in width is relatively far, so that the difference between the width of the first lane and the width of the second lane is less than or equal to a preset threshold.

S402、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S402. Determine, according to the plurality of first nodes and the plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,从多个第一结点中确定第三道路的第三参考线的第一端点。从多个第二结点中选择距离第三参考线的第一端点最近的结点作为第三参考线的第二端点。从多个第二结点中选择距离第三参考线的第二端点最近的结点作为第三车道的边界线的第一端点。从第三车道的参考线的第二端点所在第二车道的边界线上确定第三车道的边界线的第二端点。Wherein, the first end point of the third reference line of the third road is determined from the plurality of first nodes. A node closest to the first end point of the third reference line is selected from the plurality of second nodes as the second end point of the third reference line. A node closest to the second end point of the third reference line is selected from the plurality of second nodes as the first end point of the boundary line of the third lane. The second end point of the boundary line of the third lane is determined from the boundary line of the second lane where the second end point of the reference line of the third lane is located.

图17为实施例四提供的方法基于的交叉路口的示意图,为了确定第三车道的边界线的第二端点,可在从第三车道的参考线的第二端点所在第二车道的边界线上随机选择第三车道的中心线的端点。例如:选择G,使边界线的第二端点到中心线的端点之间的距离与参考线的第一端点到中心线的端点之间的距离相同。也就是AG=GI。采用同样方式确定第四道路的边界线端点H,也就是BG=GH。第三道路的车道起点宽度为CD,车道终点宽度为AI,第四道路的车道起点宽度为BH,车道终点宽度为EF。可生成如图18所示的交叉路口的道路在高精地图中示意图。17 is a schematic diagram of the intersection on which the method provided in the fourth embodiment is based. In order to determine the second end point of the boundary line of the third lane, the second end point of the reference line from the third lane may be located on the boundary line of the second lane. The endpoints of the centerline of the third lane are randomly selected. For example: select G so that the distance between the second end point of the boundary line and the end point of the center line is the same as the distance between the first end point of the reference line and the end point of the center line. That is, AG=GI. The end point H of the boundary line of the fourth road is determined in the same way, that is, BG=GH. The lane start width of the third road is CD, the lane end width is AI, the lane start width of the fourth road is BH, and the lane end width is EF. A schematic diagram of the road at the intersection as shown in Figure 18 can be generated in the high-precision map.

S403、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S403. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,该步骤已在S103中详细说明,重复部分不再赘述。Wherein, this step has been described in detail in S103, and repeated parts will not be repeated.

本申请实施例四提供的道路生成方法,在第一道路和第二道路构成的丁字路口中,且第一道路包括一条双向行驶车道时,可生成仅有一条车道的交叉路口道路。In the road generation method provided in the fourth embodiment of the present application, in the T-junction formed by the first road and the second road, and the first road includes a two-way driving lane, an intersection road with only one lane can be generated.

下面重点描述本申请实施例五提供的交叉路口道路生成方法,本申请实施例五提供的交叉路口道路生成方法,包括如下步骤:The following describes the method for generating a road at an intersection provided by Embodiment 5 of the present application. The method for generating a road at an intersection provided by Embodiment 5 of the present application includes the following steps:

S501、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S501. Acquire a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,第一道路包括至少一个第一车道,第二道路包括至少一个第二车道,待连接的第一车道的数量和待连接第二车道的数量相同,交叉路口道路包括第三道路,第三道路包括至少一条第三车道。在每个第一车道的边界线上提取第一结点,且第一结点位于交叉路口。在每个第二车道的边界线上提取第二结点,且第二结点位于交叉路口。Wherein, the first road includes at least one first lane, the second road includes at least one second lane, the number of the first lanes to be connected is the same as the number of the second lanes to be connected, the intersection road includes a third road, the third The road includes at least one third lane. A first node is extracted on the boundary line of each first lane, and the first node is located at the intersection. A second node is extracted on the boundary line of each second lane, and the second node is located at the intersection.

图19为实施例五基于的一种交叉路口的实际场景示意图,图20为图19所示交叉路口的示意图,如图20所示,第一道路L1与第二道路L2的参考线平行,第一道路L1与第二道路L2均仅示意出需要连接的3条车道。将第一道路L1的3条车道的边界线端点作为第一结点,将第二道路L2的3条车道的边界线端点作为第二结点,图21为实施例五基于的另一种交叉路口的示意图,如图21所示,第一道路B1与第二道路L2的参考线垂直,在第二道路L2上仅示意出需要连接的车道,将第一道路B1的待连接车道的边界线端点作为第一结点,将第二道路L2的待连接车道的边界线端点作为第二结点。19 is a schematic diagram of an actual scene of an intersection based on Embodiment 5, and FIG. 20 is a schematic diagram of the intersection shown in FIG. 19 . As shown in FIG. 20 , the reference lines of the first road L1 and the second road L2 are parallel, and the Both the first road L1 and the second road L2 only show three lanes that need to be connected. The endpoints of the boundary lines of the three lanes of the first road L1 are taken as the first nodes, and the endpoints of the boundary lines of the three lanes of the second road L2 are taken as the second nodes. FIG. 21 is another intersection based on the fifth embodiment. A schematic diagram of the intersection, as shown in Figure 21, the reference line of the first road B1 and the second road L2 are perpendicular, and only the lanes that need to be connected are shown on the second road L2, and the boundary lines of the lanes to be connected of the first road B1 are drawn. The end point is used as the first node, and the end point of the boundary line of the lane to be connected of the second road L2 is used as the second node.

S502、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S502. Determine, according to a plurality of first nodes and a plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,确定第三道路的第三参考线端点方式具体为:根据交叉路口的实际场景从多个第一结点中选择第三道路的第三参考线的第一端点,并从第二结点中选择第三参考线的第二端点。交叉路口的实际场景是指交叉路口的道路各个车道与第一道路的各车道连接情况,以及与第二道路的各车道连接情况。以此为依据从多个第一结点中选择第三道路的第三参考线的第一端点,并从第二结点中选择第三参考线的第二端点。Wherein, the method of determining the endpoint of the third reference line of the third road is specifically: selecting the first endpoint of the third reference line of the third road from a plurality of first nodes according to the actual scene of the intersection, and selecting the first endpoint of the third reference line of the third road from the second node Point to select the second endpoint of the third reference line. The actual scene of the intersection refers to the connection situation of each lane of the road at the intersection with each lane of the first road, and the connection situation with each lane of the second road. Based on this, the first end point of the third reference line of the third road is selected from the plurality of first nodes, and the second end point of the third reference line is selected from the second nodes.

继续以图20所示交叉路口的为例,该交叉路口的实际场景为:第一道路L1与第二道路L2均有3条直行车道需要连接,分别从第一道路L1和第二道路L2中选择最左边车道的右边界线上的作为参考线端点。Continuing to take the intersection shown in FIG. 20 as an example, the actual scene of the intersection is: the first road L1 and the second road L2 have 3 straight lanes that need to be connected, respectively, from the first road L1 and the second road L2. Select the reference line endpoint on the right boundary line of the leftmost lane.

继续以图21所示交叉路口的为例,该交叉路口的实际场景为:第一道路B1的左转弯车道需要与第二车道L2的直行车道连接,从第一道路和第二道路上待连接的车道的右边界线上选择结点作为参考线端点。Continuing to take the intersection shown in Figure 21 as an example, the actual scene of the intersection is: the left turn lane of the first road B1 needs to be connected to the straight lane of the second lane L2, and the first road and the second road are to be connected. Select the node on the right boundary line of the lane as the reference line endpoint.

确定第三道路的第三边界线端点方式具体为:分别从多个第一结点和多个第二结点中选择第三道路的第三参考线端点。获取位于第三参考线端点同一侧的第一车道的第一数量和第二道路的第二数量。根据第一数量和第二数量,分别从第一结点和第二结点选择第三车道的边界线端点。The specific manner of determining the end point of the third boundary line of the third road is as follows: respectively selecting the end point of the third reference line of the third road from the plurality of first nodes and the plurality of second nodes. Obtain a first number of first lanes and a second number of second roads that are on the same side of the third reference line endpoint. Based on the first number and the second number, the boundary line endpoints of the third lane are selected from the first node and the second node, respectively.

由于第一车道和第二车道的数量相同,则通常情况下,第一数量和第二数量相同。若第一数量和第二数量相同,从第一结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第一端点,并从第二结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第二端点。Since the numbers of the first lane and the second lane are the same, in general, the first number and the second number are the same. If the first number and the second number are the same, select the node from the first node that is the first preset number of nodes from the end point of the third reference line as the first end point of the boundary line of the third lane, and select the node from the second node Select the node that is the first preset number of nodes away from the end point of the third reference line as the second end point of the boundary line of the third lane.

继续以图20所示交叉路口的为例,根据交叉路口的实际场景,参考线左边一条第三车道,参考线右边两条第三车道,以参考线左边一条第三车道为例,在位于参考线端点左侧的第一结点中选择紧邻参考线端点的结点作为该第三车道的边界线的一个端点。在位于参考线端点左侧的第二结点中选择紧邻参考线端点的结点作为该第三车道的边界线的另一个端点。图22为实施例五中边界线的端点分布示意图,位于参考线左边的第三车道的一条边界线的端点分为结点C和结点F。Continuing to take the intersection shown in Figure 20 as an example, according to the actual scene of the intersection, there is a third lane on the left of the reference line, two third lanes on the right of the reference line, and a third lane on the left of the reference line as an example. Among the first nodes on the left side of the line end point, the node next to the reference line end point is selected as an end point of the boundary line of the third lane. In the second node located to the left of the reference line end point, the node immediately adjacent to the reference line end point is selected as the other end point of the boundary line of the third lane. 22 is a schematic diagram of the distribution of endpoints of the boundary line in the fifth embodiment. The endpoints of a boundary line of the third lane located on the left side of the reference line are divided into node C and node F.

S503、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S503. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,该步骤已在S103中详细说明,重复部分不再赘述。Wherein, this step has been described in detail in S103, and repeated parts will not be repeated.

图23为图20所示的交叉路口在拟合完后的道路示意图,该图仅示意出三条直行车道的连接关系,图24为图21所示的交叉路口在拟合完后的道路示意图,该图仅示意出一条左转弯车道。图25为图20所示的交叉路口在高精地图中示意图。图26为采用现有人工方式绘制得到图20所示的交叉路口的道路。通过比较图25和图26可知,本申请实施例提供方法可生成更高质量的道路,该道路无转角。Fig. 23 is a road schematic diagram of the intersection shown in Fig. 20 after fitting, the figure only shows the connection relationship of three straight lanes, Fig. 24 is a road schematic diagram of the intersection shown in Fig. 21 after fitting, The figure shows only one left-turn lane. FIG. 25 is a schematic diagram of the intersection shown in FIG. 20 in a high-precision map. Fig. 26 shows the road of the intersection shown in Fig. 20 obtained by using the existing manual method. By comparing FIG. 25 and FIG. 26 , it can be seen that the method provided by the embodiment of the present application can generate a road of higher quality, and the road has no corners.

本申请实施例五提供的道路生成方法,在第一道路的待连接车道和第二道路的待连接车道相同时,可生成包含多条车道的交叉路口道路。The road generation method provided in the fifth embodiment of the present application can generate an intersection road including multiple lanes when the to-be-connected lane of the first road and the to-be-connected lane of the second road are the same.

下面重点描述本申请根据实施例六示出的交叉路口道路生成方法,与实施例五所示的交叉路口的道路的生成方法的区别在于:第一车道的数量和第二车道的数量不相同。The following describes the method for generating roads at intersections according to Embodiment 6 of the present application. The difference from the method for generating roads at intersections shown in Embodiment 5 is that the number of first lanes and the number of second lanes are different.

本申请实施例六提供的交叉路口道路生成方法,包括如下步骤:The method for generating an intersection road provided in Embodiment 6 of the present application includes the following steps:

S601、获取第一道路中每个第一车道的边界线上的第一结点和第二道路中每个第二车道的边界线上的第二结点。S601. Acquire a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second road.

其中,该步骤已经在S401中详细说明,重复部分不再赘述,此处举例说明该步骤。图27为实施例六基于的一种交叉路口的示意图,如图27所示,第一道路L1与第二道路L2的参考线平行,第一道路L1有两条直行车道需要连接,第二道路L2有三条车道需要连接。将第一道路L1的2条车道的边界线端点作为第一结点,将第二道路L2的3条车道的边界线端点作为第二结点。Wherein, this step has been described in detail in S401, and repeated parts will not be repeated, and this step is illustrated here as an example. FIG. 27 is a schematic diagram of an intersection based on Embodiment 6. As shown in FIG. 27 , the reference lines of the first road L1 and the second road L2 are parallel, the first road L1 has two straight lanes that need to be connected, and the second road L1 L2 has three lanes to connect. The end points of the boundary lines of the two lanes of the first road L1 are used as the first nodes, and the end points of the boundary lines of the three lanes of the second road L2 are used as the second nodes.

S602、根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点。S602. Determine, according to the plurality of first nodes and the plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection.

其中,该步骤已经在S501中详细说明,重复部分不再赘述。确定第三道路的第三参考线端点方式与实施例五中相同。确定第三道路的第三边界线端点方式具体为:分别从多个第一结点和多个第二结点中选择第三道路的第三参考线端点。获取位于第三参考线端点同一侧的第一车道的第一数量和第二道路的第二数量。根据第一数量和第二数量,分别从第一结点和第二结点选择第三车道的边界线端点。Wherein, this step has been described in detail in S501, and repeated parts will not be repeated. The manner of determining the end point of the third reference line of the third road is the same as that in the fifth embodiment. The specific manner of determining the end point of the third boundary line of the third road is as follows: respectively selecting the end point of the third reference line of the third road from the plurality of first nodes and the plurality of second nodes. Obtain a first number of first lanes and a second number of second roads that are on the same side of the third reference line endpoint. Based on the first number and the second number, the boundary line endpoints of the third lane are selected from the first node and the second node, respectively.

由于第一车道和第二车道的数量不相同,则通常情况下,第一数量和第二数量不相同。若第一数量大于第二数量,从第一结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第一端点。判断第二结点中是否存在距离第三参考线端点第一预设结点数的结点;若是,从第二结点选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第二端点。若否,从第二结点选择距离第三参考线端点第二预设结点数的结点作为第三车道的边界线第二端点,其中,第二预设结点数和第一预设结点数之差等于第一数量和第二数量之差。Since the numbers of the first lane and the second lane are different, in general, the first number and the second number are different. If the first number is greater than the second number, a node from the first nodes by the first preset number of nodes from the end point of the third reference line is selected as the first end point of the boundary line of the third lane. Determine whether there is a node in the second node with a first preset number of nodes from the endpoint of the third reference line; if so, select a node with a first preset number of nodes away from the endpoint of the third reference line as the third The second endpoint of the boundary line of the lane. If not, select a node from the second node that is a second preset number of nodes away from the end point of the third reference line as the second end point of the boundary line of the third lane, where the second preset number of nodes and the first preset number of nodes are The difference is equal to the difference between the first quantity and the second quantity.

继续以图27所示交叉路口的为例,该交叉路口的实际场景为:第一道路L1的2条车道与第二道路L2的3条直行车道需要连接,从第一道路L1和第二道路L2中选择最左边车道的右边界线上的作为参考线端点。Continuing to take the intersection shown in FIG. 27 as an example, the actual scene of the intersection is: the 2 lanes of the first road L1 and the 3 straight lanes of the second road L2 need to be connected, from the first road L1 and the second road In L2, select the reference line endpoint on the right boundary line of the leftmost lane.

第三道路的参考线的端点为结点A和结点B,根据交叉路口的道路实际情况,在结点A左侧有一条车道,在结点A右侧有一条车道,在结点B左侧有一条车道,在结点B右侧有两条车道。The endpoints of the reference line of the third road are Node A and Node B. According to the actual road conditions of the intersection, there is a lane on the left side of Node A, a lane on the right side of Node A, and a lane on the left side of Node B. There is one lane on the side and two lanes on the right side of node B.

针对参考线左侧的车道,第一结点C紧邻第一结点A,第二结点F紧邻第二结点B,第一结点C和第二结点F为同一条边界线上两个端点。针对参考线右侧的车道,第一结点D紧邻第一结点A右侧,第二结点G紧邻第二结点B右侧,第一结点D和第二结点G为同一条边界线上两个端点,第二结点H间隔第二结点B一个结点,第二结点H无法找到间隔结点数相同第一的结点,选择紧邻第一结点A的第一结点D,第一结点D和第二结点H为同一条边界线上两个端点。再确定筒第一结点D和第二结点H构成的边界线相对应的边界线AG。For the lane on the left side of the reference line, the first node C is next to the first node A, the second node F is next to the second node B, and the first node C and the second node F are on the same boundary line. an endpoint. For the lane on the right side of the reference line, the first node D is adjacent to the right side of the first node A, the second node G is immediately adjacent to the right side of the second node B, and the first node D and the second node G are the same Two endpoints on the boundary line, the second node H is separated by a node from the second node B, the second node H cannot find the node with the same number of interval nodes, and the first node next to the first node A is selected Point D, the first node D and the second node H are two endpoints on the same boundary line. Then determine the boundary line AG corresponding to the boundary line formed by the first node D and the second node H of the cylinder.

S603、根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。S603. Generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

其中,该步骤已在S103中详细说明,重复部分不再赘述。图28为图27所示的交叉路口拟合完后的道路示意图,该图仅示意出三条直行车道的连接关系。当第一道路中右转车道与第二道路中直行车道连接时,或者第一道路中左转车道与第二道路中直行车道连接,也采用同样方法。图29为右转交叉路口拟合完后的道路示意图,其中,AB为参考线。Wherein, this step has been described in detail in S103, and repeated parts will not be repeated. FIG. 28 is a schematic diagram of a road after fitting of the intersection shown in FIG. 27 , and the diagram only shows the connection relationship of three straight lanes. The same method is also used when the right-turn lane on the first road is connected with the straight lane on the second road, or when the left-turn lane on the first road is connected with the straight lane on the second road. FIG. 29 is a schematic diagram of a road after fitting of a right-turn intersection, where AB is a reference line.

本申请实施例六提供的生成方法,在第一道路的待连接车道和第二道路的待连接车道不相同时,可生成包含多条车道的交叉路口道路。In the generation method provided in the sixth embodiment of the present application, when the lane to be connected on the first road and the lane to be connected on the second road are different, an intersection road including multiple lanes can be generated.

图30为本申请实施例七提供的交叉路口道路生成装置的示意图。如图30所示,本申请实施例七提供的地图中交叉路口道路生成装置700包括:FIG. 30 is a schematic diagram of an apparatus for generating a road at an intersection according to Embodiment 7 of the present application. As shown in FIG. 30 , the device 700 for generating roads at intersections in the map provided in Embodiment 7 of the present application includes:

获取模块701,用于获取第一道路中每个第一车道的边界线上的第一结点和第二车道中每个第二车道的边界线上的第二结点,其中,第一道路和第二道路的交汇处形成交叉路口,第一结点和第二结点均位于交叉路口;The obtaining module 701 is configured to obtain a first node on the boundary line of each first lane in the first road and a second node on the boundary line of each second lane in the second lane, wherein the first road The intersection with the second road forms an intersection, and both the first node and the second node are located at the intersection;

确定模块702,用于根据多个第一结点和多个第二结点确定用于表示位于交叉路口的第三道路的表示线端点;a determining module 702, configured to determine, according to the plurality of first nodes and the plurality of second nodes, an endpoint of a representation line for representing a third road located at an intersection;

生成模块703,用于根据第三道路的表示线端点生成用于表示位于交叉路口的第三道路的表示线。The generating module 703 is configured to generate a representation line for representing the third road located at the intersection according to the endpoints of the representation line of the third road.

可选地,交叉路口为丁字路口,且第三道路仅包括一个第三车道,表示线包括参考线;确定模块702具体用于:从多个第一结点中确定第三道路的第三参考线的第一端点;从多个第二结点中选择距离第三参考线的第一端点最近的结点作为第三参考线的第二端点。Optionally, the intersection is a T-junction, and the third road includes only one third lane, indicating that the line includes a reference line; the determining module 702 is specifically configured to: determine a third reference of the third road from a plurality of first nodes The first end point of the line; the node closest to the first end point of the third reference line is selected from the plurality of second nodes as the second end point of the third reference line.

可选地,表示线包括边界线;确定模块702具体用于:从多个第二结点中选择距离第三参考线的第二端点最近的结点作为第三车道的边界线的第一端点。Optionally, the representation line includes a boundary line; the determining module 702 is specifically configured to: select a node closest to the second end point of the third reference line from the plurality of second nodes as the first end of the boundary line of the third lane point.

可选地,第一道路包括一条第一车道,第一车道的宽度与第二车道的宽度之间差值小于等于预设阈值,且第一结点的数量为2;确定模块702具体用于:将剩余的第一结点作为第三车道的边界线的第二端点。Optionally, the first road includes a first lane, the difference between the width of the first lane and the width of the second lane is less than or equal to a preset threshold, and the number of first nodes is 2; the determining module 702 is specifically used for : Take the remaining first node as the second endpoint of the boundary line of the third lane.

可选地,第一道路包括一条第一车道,第一车道的宽度与第二车道的宽度之间差值大于预设阈值,第一结点的数量为2;确定模块702具体用于:从第二车道的边界线上确定第三车道的边界线的第二端点,其中,第二车道为第三车道的参考线的第二端点所在的车道。Optionally, the first road includes a first lane, the difference between the width of the first lane and the width of the second lane is greater than a preset threshold, and the number of first nodes is 2; the determining module 702 is specifically configured to: from The boundary line of the second lane determines the second end point of the boundary line of the third lane, wherein the second lane is the lane where the second end point of the reference line of the third lane is located.

可选地,第三道路包括至少一条三车道,且第一车道的总数和第二车道的总数相同;确定模块702具体用于:分别从多个第一结点和多个第二结点中选择第三道路的第三参考线端点;获取位于第三参考线端点同一侧的第一车道的第一数量和第二道路的第二数量;根据第一数量和第二数量,分别从第一结点和第二结点选择第三车道的边界线端点。Optionally, the third road includes at least one three-lane, and the total number of the first lanes and the total number of the second lanes are the same; the determining module 702 is specifically configured to: select from a plurality of first nodes and a plurality of second nodes respectively Select the third reference line endpoint of the third road; obtain the first number of the first lane and the second number of the second road located on the same side of the third reference line endpoint; Node and Second Node Select the endpoint of the boundary line of the third lane.

可选地,生成模块703具体用于:若第一数量和第二数量相同,从第一结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第一端点,并从第二结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第二端点。Optionally, the generating module 703 is specifically configured to: if the first number and the second number are the same, select a node from the first node that is the first preset number of nodes from the end point of the third reference line as the boundary line of the third lane. The first endpoint is selected from the second nodes, and a node that is a first preset number of nodes away from the endpoint of the third reference line is selected as the second endpoint of the boundary line of the third lane.

可选地,生成模块703具体用于:若第一数量大于第二数量,从第一结点中选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第一端点;判断第二结点中是否存在距离第三参考线端点第一预设结点数的结点;若是,从第二结点选择距离第三参考线端点第一预设结点数的结点作为第三车道的边界线第二端点;若否,从第二结点选择距离第三参考线端点第二预设结点数的结点作为第三车道的边界线第二端点,其中,第二预设结点数和第一预设结点数之差等于第一数量和第二数量之差。Optionally, the generating module 703 is specifically configured to: if the first number is greater than the second number, select a node from the first node that is the first preset number of nodes from the end point of the third reference line as the boundary line of the third lane. an endpoint; determine whether there are nodes in the second node that are the first preset number of nodes away from the endpoint of the third reference line; if so, select the node that is the first preset number of nodes away from the endpoint of the third reference line from the second node point as the second end point of the boundary line of the third lane; if not, select a node from the second node that is the second preset number of nodes away from the end point of the third reference line as the second end point of the boundary line of the third lane. The difference between the two preset number of nodes and the first preset number of nodes is equal to the difference between the first number and the second number.

图31为本发明实施例八提供的电子设备的结构示意图。如图31所示,本实施例提供的电子设备800包括:发送器801、接收器802、存储器803、及处理器802。FIG. 31 is a schematic structural diagram of an electronic device according to Embodiment 8 of the present invention. As shown in FIG. 31 , the electronic device 800 provided in this embodiment includes: a transmitter 801 , a receiver 802 , a memory 803 , and a processor 802 .

发送器801,用于发送指令和数据;A transmitter 801, used for sending instructions and data;

接收器802,用于接收指令和数据;a receiver 802 for receiving instructions and data;

存储器803,用于存储计算机执行指令;a memory 803 for storing computer-executed instructions;

处理器804,用于执行存储器存储的计算机执行指令,以实现上述实施例中地图中交叉路口道路生成方法所执行的各个步骤。具体可以参见前述地图中交叉路口道路生成方法实施例中的相关描述。The processor 804 is configured to execute the computer-executed instructions stored in the memory, so as to implement each step performed by the method for generating a road at an intersection in a map in the above-mentioned embodiment. For details, please refer to the relevant description in the embodiment of the method for generating the road at the intersection in the foregoing map.

可选地,上述存储器803既可以是独立的,也可以跟处理器804集成在一起。当存储器803独立设置时,该电子设备还包括总线,用于连接存储器803和处理器804。Optionally, the above-mentioned memory 803 may be independent or integrated with the processor 804 . When the memory 803 is provided independently, the electronic device further includes a bus for connecting the memory 803 and the processor 804 .

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上电子设备所执行的地图中交叉路口道路生成方法。Embodiments of the present invention further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above-mentioned method for generating a road at an intersection in a map executed by an electronic device is implemented.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (10)

1. A method for generating a road of an intersection in a map, which is characterized by comprising the following steps:
acquiring a first node on a boundary line of each first lane in a first road and a second node on a boundary line of each second lane in a second road, wherein an intersection is formed at the intersection of the first road and the second road, and the first node and the second node are both positioned at the intersection;
determining a representation line end point for representing a third road positioned at the intersection according to the plurality of first nodes and the plurality of second nodes;
and generating a representation line for representing the third road positioned at the intersection according to the representation line end point of the third road.
2. The method of claim 1, wherein the intersection is a T-junction and the third road comprises only one third lane, the representative line comprising a reference line;
determining a representation line endpoint for representing a third road located at the intersection according to the plurality of first nodes and the plurality of second nodes, specifically comprising:
determining a first end point of a third reference line of the third road from the plurality of first nodes;
and selecting the node closest to the first end point of the third reference line from the plurality of second nodes as the second end point of the third reference line.
3. The method of claim 2, wherein the representation line comprises a boundary line;
determining a representation line endpoint for representing a road located at the intersection according to the plurality of first nodes and the plurality of second nodes, specifically comprising:
and selecting a node closest to the second end point of the third reference line from the plurality of second nodes as the first end point of the boundary line of the third lane.
4. The method of claim 3, wherein the first road comprises a first lane, a difference between a width of the first lane and a width of the second lane is less than or equal to a preset threshold, and the number of the first nodes is 2;
determining a representation line endpoint for representing a road located at the intersection according to the plurality of first nodes and the plurality of second nodes, specifically comprising:
and taking the remaining first nodes as second endpoints of the boundary line of the third lane.
5. The method of claim 3, wherein the first road comprises a first lane, a difference between a width of the first lane and a width of the second lane is greater than a preset threshold, and the number of the first nodes is 2;
determining a representation line endpoint for representing a road located at the intersection according to the plurality of first nodes and the plurality of second nodes, specifically comprising:
and determining a second endpoint of the boundary line of the third lane from the boundary line of the second lane, wherein the second lane is the lane where the second endpoint of the reference line of the third lane is located.
6. The method of claim 5, wherein the third road comprises at least one three lane, and the total number of first lanes and the total number of second lanes are the same;
determining a representation line endpoint for representing a road located at the intersection according to the plurality of first nodes and the plurality of second nodes, specifically comprising:
selecting a third reference line end point of the third road from the plurality of first nodes and the plurality of second nodes, respectively;
acquiring a first number of first lanes and a second number of second roads which are positioned on the same side of the end point of the third reference line;
and selecting the boundary line end points of the third lane from the first node and the second node respectively according to the first number and the second number.
7. The method according to claim 6, wherein selecting the boundary line end point of the third lane from the first node and the second node according to the first number and the second number, respectively, specifically comprises:
and if the first number is the same as the second number, selecting a node which is a first preset node number away from the third reference line end from the first nodes as a first boundary line end point of a third lane, and selecting a node which is a first preset node number away from the third reference line end from the second nodes as a second boundary line end point of the third lane.
8. The method according to claim 6, wherein selecting the boundary line end point of the third lane from the first node and the second node according to the first number and the second number, respectively, specifically comprises:
if the first number is larger than the second number, selecting a node which is a first preset node number away from the third reference line end point from the first nodes as a first boundary line end point of a third lane;
judging whether a node with a first preset node number away from the third reference line end point exists in the second node; if so, selecting a node which is a first preset node number away from the third reference line end point from the second node as a second boundary line end point of the third lane;
and if not, selecting a node which is a second preset node number away from the third reference line end point from the second node as a second boundary line end point of the third lane, wherein the difference between the second preset node number and the first preset node number is equal to the difference between the first number and the second number.
9. An apparatus for generating a road at an intersection in a map, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a first node on a boundary line of each first lane in a first road and a second node on a boundary line of each second lane in a second road, an intersection is formed at the intersection of the first road and the second road, and the first node and the second node are both positioned at the intersection;
the determining module is used for determining a representation line end point used for representing a third road positioned at the intersection according to the plurality of first nodes and the plurality of second nodes;
and the generating module is used for generating a representation line for representing the third road positioned at the intersection according to the representation line end point of the third road.
10. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being configured to execute the in-map intersection road generating method according to any one of claims 1 to 8 when the program is executed.
CN202010599716.3A 2020-06-28 2020-06-28 Method and device for generating intersection roads in map and electronic equipment Active CN111782751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010599716.3A CN111782751B (en) 2020-06-28 2020-06-28 Method and device for generating intersection roads in map and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010599716.3A CN111782751B (en) 2020-06-28 2020-06-28 Method and device for generating intersection roads in map and electronic equipment

Publications (2)

Publication Number Publication Date
CN111782751A true CN111782751A (en) 2020-10-16
CN111782751B CN111782751B (en) 2024-07-02

Family

ID=72760725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010599716.3A Active CN111782751B (en) 2020-06-28 2020-06-28 Method and device for generating intersection roads in map and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782751B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112309233A (en) * 2020-10-26 2021-02-02 北京三快在线科技有限公司 Road boundary determining and road segmenting method and device
CN112530013A (en) * 2021-02-09 2021-03-19 腾讯科技(深圳)有限公司 Intersection region determination method and device, storage medium and electronic device
CN114067021A (en) * 2021-11-18 2022-02-18 北京赛目科技有限公司 A road connection method and device
CN114509060A (en) * 2020-11-16 2022-05-17 丰田自动车株式会社 Map generation device, map generation method, and computer program for map generation
CN114777799A (en) * 2022-06-15 2022-07-22 中汽创智科技有限公司 Intersection high-precision map generation method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110048302A (en) * 2009-11-02 2011-05-11 현대엠엔소프트 주식회사 How to automatically generate 3D road pattern
WO2011160218A1 (en) * 2010-06-22 2011-12-29 Transoft Solutions, Inc. Method and apparatus for generating a geometric layout of a traffic intersection
US20140278055A1 (en) * 2013-03-15 2014-09-18 Hewlett-Packard Development Company, L.P. Updating road maps
CN105913483A (en) * 2016-03-31 2016-08-31 百度在线网络技术(北京)有限公司 Method and device for generating three-dimensional crossing road model
CN107798855A (en) * 2016-09-07 2018-03-13 高德软件有限公司 A kind of lane width computational methods and device
CN110415314A (en) * 2019-04-29 2019-11-05 当家移动绿色互联网技术集团有限公司 Construct method, apparatus, storage medium and the electronic equipment of intersection road network
US20200082561A1 (en) * 2018-09-10 2020-03-12 Mapbox, Inc. Mapping objects detected in images to geographic positions
CN111044056A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Location method, chip subsystem and electronic device based on road matching

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110048302A (en) * 2009-11-02 2011-05-11 현대엠엔소프트 주식회사 How to automatically generate 3D road pattern
WO2011160218A1 (en) * 2010-06-22 2011-12-29 Transoft Solutions, Inc. Method and apparatus for generating a geometric layout of a traffic intersection
US20140278055A1 (en) * 2013-03-15 2014-09-18 Hewlett-Packard Development Company, L.P. Updating road maps
CN105913483A (en) * 2016-03-31 2016-08-31 百度在线网络技术(北京)有限公司 Method and device for generating three-dimensional crossing road model
WO2017166687A1 (en) * 2016-03-31 2017-10-05 百度在线网络技术(北京)有限公司 Method and apparatus for generating three-dimensional intersection roadway model, and storage medium
CN107798855A (en) * 2016-09-07 2018-03-13 高德软件有限公司 A kind of lane width computational methods and device
US20200082561A1 (en) * 2018-09-10 2020-03-12 Mapbox, Inc. Mapping objects detected in images to geographic positions
CN111044056A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Location method, chip subsystem and electronic device based on road matching
CN110415314A (en) * 2019-04-29 2019-11-05 当家移动绿色互联网技术集团有限公司 Construct method, apparatus, storage medium and the electronic equipment of intersection road network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王卫峰;汤晓安;谢耀华;: "基于GIS的三维道路模型交叉口自动检测与建模", 计算机工程与设计, no. 24 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112309233A (en) * 2020-10-26 2021-02-02 北京三快在线科技有限公司 Road boundary determining and road segmenting method and device
CN114509060A (en) * 2020-11-16 2022-05-17 丰田自动车株式会社 Map generation device, map generation method, and computer program for map generation
CN112530013A (en) * 2021-02-09 2021-03-19 腾讯科技(深圳)有限公司 Intersection region determination method and device, storage medium and electronic device
CN112530013B (en) * 2021-02-09 2021-05-25 腾讯科技(深圳)有限公司 Intersection region determination method and device, storage medium and electronic device
CN114067021A (en) * 2021-11-18 2022-02-18 北京赛目科技有限公司 A road connection method and device
CN114777799A (en) * 2022-06-15 2022-07-22 中汽创智科技有限公司 Intersection high-precision map generation method and device, electronic equipment and storage medium
CN114777799B (en) * 2022-06-15 2022-10-18 中汽创智科技有限公司 Intersection high-precision map generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111782751B (en) 2024-07-02

Similar Documents

Publication Publication Date Title
CN111782751A (en) Method, device and electronic device for generating road at intersection in map
EP3869157A1 (en) Method and device for constructing high-resolution map
CN109657629A (en) A kind of line of text extracting method and device
CN109710708B (en) Electronic map mapping method and device
US10030982B2 (en) Generalising topographical map data
CN106204446A (en) The building of a kind of topography merges method
WO2022143388A1 (en) Method and apparatus for determining navigation prompt information, and storage medium and electronic device
CN109035783A (en) A kind of virtual networks missing section automatic identifying method based on public transport GPS track
CN111753030A (en) Method and device for constructing joint topology of public traffic network and road network and upper computer
CN116935065A (en) Lane line instance detection method and system based on fusing and fusion
CN113724493A (en) Analysis method and device of flow channel, storage medium and terminal
CN116468870A (en) Three-dimensional visual modeling method and system for urban road
CN111985366A (en) Road center line and pile number identification method and device
CN113434614A (en) Map data association method and device and electronic equipment
CN111914039B (en) Road network updating method and device
CN115309846B (en) A Road Network Structure Recognition Method Based on Parallel Coefficient
CN117213462A (en) Map acquisition method, map acquisition device, vehicle and storage medium
CN115762186A (en) Road flow determination method, device, storage medium and electronic equipment
CN117949004A (en) A navigation method and device
CN114676996A (en) Method, device, equipment and medium for measuring the correlation between road network form and industrial layout
CN114663606A (en) Three-dimensional road model system and generation mode
CN114969880A (en) Road model construction method and device
Jacobs Constructing maps by clustering trajectories
CN111862325B (en) A method and system for constructing a street view index
CN118031936A (en) Processing method and equipment for high-precision map data

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
GR01 Patent grant