Lane line drawing method and device

By determining the area to be drawn, the road and the driving direction in the electronic map, the lane line connection relationship is automatically established, which solves the problem of low efficiency of lane line marking in the intersection area and improves the efficiency of lane line drawing and the integrity of map information.

CN111797722BActive Publication Date: 2024-08-23BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010557513.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-18
Publication Date
2024-08-23
Estimated Expiration
2040-06-18

AI Technical Summary

Technical Problem

In the existing technology, lane marking in intersection areas requires manual labor, which results in low efficiency and high cost, making it difficult to effectively determine lane lines in high-precision maps.

Method used

By determining the area to be drawn in the preset electronic map, determine the roads connected to the area, establish the lane line connection relationship according to the driving direction and lane lines of the road, and automatically draw the lane lines in the intersection area.

Benefits of technology

It improves the efficiency of lane line drawing and the integrity of electronic map information, reduces the dependence on manual annotation, and realizes automated lane line annotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111797722B
    Figure CN111797722B
Patent Text Reader

Abstract

This specification discloses a method and device for drawing lane lines, which can determine at least one area to be drawn in a preset electronic map where lane lines need to be drawn, and for each area to be drawn, determine the roads connected to the area to be drawn as target roads. Then, for each target road, determine the driving direction and lane lines corresponding to the lanes contained in the target road. Afterwards, based on the driving direction corresponding to the lanes contained in the target road, determine the lane line connection relationship between the lane lines contained in the target road and the lane lines contained in other target roads, and then draw the lane lines in the area to be drawn based on the lane line connection relationship. Therefore, this method not only effectively improves the efficiency of drawing lane lines in the area to be drawn in the electronic map, but also further improves the integrity of the information in the electronic map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned driving technology, and in particular to a method and device for drawing lane lines. Background Art

[0002] At present, driverless technology has been widely used in many business fields, which not only greatly saves manpower but also effectively improves business efficiency.

[0003] In the prior art, in order to facilitate the safe driving of unmanned driving equipment, it is necessary to configure high-precision maps for positioning, path planning, etc. for unmanned driving equipment. High-precision maps usually mark the lane lines on the road, but do not mark the lane lines in the intersection area. Currently, the lane lines in the intersection area can be manually marked by staff, but this method of determining the lane lines in the intersection area is labor-intensive and inefficient.

[0004] Therefore, how to efficiently determine the lane lines in the intersection area of ​​the high-precision map is an urgent problem to be solved. Summary of the invention

[0005] This specification provides a method and device for drawing lane lines to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a method for drawing lane lines, including:

[0008] Determine at least one area to be drawn where lane lines need to be drawn in a preset electronic map;

[0009] For each area to be drawn, determine roads connected to the area to be drawn as target roads;

[0010] For each target road, determine the driving direction and lane line corresponding to the lanes included in the target road;

[0011] Determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road;

[0012] The lane lines in the area to be drawn are drawn according to the lane line connection relationship.

[0013] Optionally, for each target road, determining a driving direction and a lane line corresponding to a lane included in the target road includes:

[0014] Acquire at least one road image for the area to be mapped;

[0015] The driving direction and lane line corresponding to the lane included in the target road are determined according to the at least one road image.

[0016] Optionally, determining, according to the at least one road image, a lane line corresponding to a lane included in the target road includes:

[0017] Determining the geographical location of the target road according to the electronic map;

[0018] Determine the geographical location of the lane lines of each target road according to the at least one road image and the acquisition location based on which the at least one road image is acquired;

[0019] According to the geographical location of the target road and the geographical locations of the lane lines of each target road, a lane line corresponding to the lane included in the target road is determined from the lane lines included in the target roads.

[0020] Optionally, determining, according to the at least one road image, a driving direction corresponding to a lane included in the target road includes:

[0021] Determining the number of lane lines included in the target road from the at least one road image as the first number of lane lines, and querying the number of lane lines included in the target road from the electronic map as the second number of lane lines;

[0022] If it is determined that the first number of lane lines matches the second number of lane lines, the corresponding driving direction of the lane included in the target road is determined based on the driving direction mark included in the target road identified from the at least one road image.

[0023] Optionally, determining, according to the at least one road image, a lane line corresponding to a lane included in the target road includes:

[0024] Querying the driving direction corresponding to the lane included in the target road from the electronic map as the first driving direction, and determining the driving direction of the lane included in the target road marked in the at least one road image as the second driving direction;

[0025] If it is determined that the first driving direction matches the second driving direction, a lane line corresponding to the lane included in the target road is determined based on the lane line included in the target road identified from the at least one road image.

[0026] Optionally, determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to a lane included in the target road includes:

[0027] Determining a lane traffic relationship between a lane included in the target road and a lane included in another target road according to a driving direction corresponding to the lane included in the target road;

[0028] According to the lane traffic relationship, a lane line connection relationship between a lane line corresponding to a lane included in the target road and a lane line corresponding to a lane included in other target roads is determined.

[0029] Optionally, determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to a lane included in the target road includes:

[0030] Establishing a connection relationship between the lane lines included in the target road and the lane lines included in other target roads to obtain a connection relationship between candidate lane lines;

[0031] Determining a lane traffic relationship between the lane included in the target road and the lane included in other target roads according to the driving direction corresponding to the lane included in the target road;

[0032] A candidate lane line connection relationship that meets the lane traffic relationship is screened out from the candidate lane line connection relationships as a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads.

[0033] Optionally, the area to be drawn includes: an intersection area in the electronic map.

[0034] This specification provides a lane line drawing device, including:

[0035] An area determination module, used to determine at least one area to be drawn where lane lines need to be drawn in a preset electronic map;

[0036] A road determination module is used to determine, for each area to be drawn, roads connected to the area to be drawn as target roads;

[0037] A lane line determination module is used to determine, for each target road, the driving direction and lane line corresponding to the lane included in the target road;

[0038] A relationship determination module, for determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road;

[0039] The drawing module is used to draw the lane lines in the area to be drawn according to the lane line connection relationship.

[0040] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned lane line drawing method is implemented.

[0041] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned lane line drawing method when executing the program.

[0042] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0043] In the lane line drawing method provided in this specification, at least one area to be drawn where lane lines need to be drawn can be determined in a preset electronic map, and for each area to be drawn, each road connected to the area to be drawn is determined as each target road. Then, for each target road, the driving direction and lane line corresponding to the lane included in the target road are determined. Thereafter, according to the driving direction corresponding to the lane included in the target road, the lane line connection relationship between the lane line included in the target road and the lane line included in other target roads is determined, and then the lane lines in the area to be drawn are drawn according to the lane line connection relationship.

[0044] It can be seen from the above method that the method can draw the lane lines in the area to be drawn according to the determined lane lines of the roads connected to the area to be drawn and the driving directions of the roads connected to the area to be drawn. Compared with the method of manually marking lane lines in the prior art, the method not only effectively improves the efficiency of drawing the lane lines in the area to be drawn in the electronic map, but also further improves the integrity of the information in the electronic map. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0046] Figure 1 A schematic diagram of a method for drawing lane lines in this specification;

[0047] Figure 2 A schematic diagram of an area to be mapped and each target road provided in this specification;

[0048] Figure 3 A schematic diagram for determining the lane line connection relationship according to the driving direction corresponding to the target road provided in this specification;

[0049] Figure 4A schematic diagram of determining a lane line connection relationship between lane lines of each lane included in a target road and lane lines of each lane included in other target roads provided in this specification;

[0050] Figure 5 A schematic diagram of drawing lane lines in an area to be drawn provided in this specification;

[0051] Figure 6 A schematic diagram of screening candidate lane line connection relationships provided in this specification;

[0052] Figure 7 The lane line diagram of the T-junction provided for this manual;

[0053] Figure 8 A schematic diagram of a lane line drawing device provided in this specification;

[0054] Fig. 9 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0056] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0057] Figure 1 The following is a flow chart of a method for drawing lane lines in this specification, which specifically includes the following steps:

[0058] S101: Determine at least one area to be drawn where lane lines need to be drawn in a preset electronic map.

[0059] In actual applications, some areas in the electronic map may not have detailed lane markings. In order to facilitate the automatic driving of unmanned driving equipment or to facilitate the navigation of ordinary vehicles, it is necessary to draw lane lines in some areas of the electronic map where lane lines are not drawn. The server can use these areas as areas to be drawn. In this specification, the area to be drawn can refer to the intersection area where lane lines are not drawn in the electronic map. The electronic map mentioned here can refer to a high-precision map or an ordinary navigation map.

[0060] The unmanned driving equipment mentioned above may refer to unmanned vehicles, robots, automatic delivery equipment and other equipment that can realize automatic driving. Based on this, the lane line drawing method provided in this specification can be applied to the lane line drawing in the electronic map used in the automatic driving process of the unmanned driving equipment, so as to ensure that the unmanned driving equipment can safely perform delivery tasks such as express delivery, logistics, take-out, etc. through the electronic map with the lane lines drawn.

[0061] The execution entity of the lane line drawing method provided in this specification can be a server, or a laptop computer, desktop computer, etc. used by the staff. For the sake of ease of description, the lane line drawing method provided in this specification is explained below by taking the server as the execution entity as an example.

[0062] S102: For each area to be drawn, determine roads connected to the area to be drawn as target roads.

[0063] After the server determines each area to be drawn, it can use the roads connected to each area to be drawn as target roads according to the electronic map, such as Figure 2 shown.

[0064] Figure 2 This is a schematic diagram of the area to be mapped and each target road provided in this manual.

[0065] For example, for Figure 2 For the intersection in the figure, the area to be drawn is the area within the intersection, that is, the square area marked by the dotted line in the figure. The server can determine the roads connected to the intersection, that is, the four roads connected to the square area in the figure, as the target roads.

[0066] S103: For each target road, determine the driving direction and lane line corresponding to the lane included in the target road.

[0067] After the server determines each target road, it can determine the driving direction and lane line corresponding to the lane included in the target road for each target road. The driving direction mentioned here refers to the driving direction that the vehicle can drive in the lane on the target road. From another perspective, the driving direction actually indicates how the vehicle can drive in the lane of the target road, such as going straight, turning, etc.

[0068] The server may obtain the driving direction and lane line corresponding to the lane included in the target road according to actual conditions. If the driving direction and lane line corresponding to the lane included in the target road are already marked in the electronic map, the server may directly obtain the driving direction and lane line corresponding to the lane included in the target road from the electronic map.

[0069] If the electronic map does not mark the driving direction and lane lines corresponding to the lanes included in the target road, the server can determine the driving direction and lane lines corresponding to the lanes included in the target road by acquiring at least one road image for the area to be drawn.

[0070] It should be noted that, in this specification, the lane lines of the area to be drawn need to be drawn based on the lane lines of the target road and the driving direction. Therefore, for any road image acquired by the server, in addition to the image of the area to be drawn, the road image should also include images of parts of the target roads near the area to be drawn. In addition, the above-mentioned road image may refer to an image collected from a bird's-eye view in the air by equipment such as drones and human-piloted aircraft, or may refer to an image collected by an unmanned vehicle or staff on the ground through an image collector (such as a camera, video camera, etc.).

[0071] After the server obtains the above-mentioned road images, it can perform target recognition on each road image to determine the driving direction corresponding to each lane contained in the target road and the lane line of each lane contained in the target road. The driving direction corresponding to a lane is the driving direction that the vehicle can travel on the lane.

[0072] Specifically, for each target road, the server can determine the geographical location of the target road in the electronic map, and determine the geographical location of the lane lines of each target road based on the above road image and the acquisition location based on which the road image is acquired. Further, the server can match the geographical location of the lane lines of the target roads determined by the server with the geographical location of the target road determined from the electronic map, and then determine the lane lines corresponding to the lanes included in the target road. In other words, the geographical locations determined according to the electronic map and the road image are matched, so that the lane lines of each lane included in the target road can be determined.

[0073] For example, it is assumed that the collected road image contains images of three target roads, and the lane lines respectively contained in the three target roads can be identified from the road image. The server can determine the geographical location corresponding to each lane line in combination with the collection position based on which the road image is collected and the image position of each lane line in the road image. The server can determine that there are three target roads A, B, and C that match the collection position in the electronic map according to the collection position based on which the road image is collected. Among them, although the images of the three target roads are also collected in the road image, it is not known which target road in the electronic map should correspond to them. Therefore, when determining the lane line corresponding to the target road A, the server can first determine the geographical location corresponding to the target road A in the electronic map, and then determine which lane lines in the road image should belong to the target road A based on the geographical location of each lane line determined by the road image, and the target roads B and C are determined by analogy. Therefore, in this way, it is actually determined which target road in the electronic map the target road in the road image should correspond to.

[0074] The server can determine the acquisition position based on which the road image corresponding to the target road is acquired through a preset positioning device. The positioning device mentioned here can be implemented by conventional positioning methods such as the Global Positioning System (GPS) and base station positioning, and this specification does not limit the specific positioning method used.

[0075] It should be noted that for an area to be drawn, if it is found through an electronic map that the number of lane lines of each target road in the area to be drawn is inconsistent, then it is actually possible to distinguish the lane lines contained in each target road from the road image of the area to be drawn by the number of lane lines.

[0076] Based on this, in this case, the server can query the number of lane lines contained in the target road through the electronic map, and then further determine the road with the same number of lane lines from the road image of the area to be drawn, and then determine the lane lines contained in the road displayed in the road image as the lane lines contained in the target road.

[0077] For example, suppose that in an electronic map, a region to be drawn corresponds to four target roads, and the number of lane lines contained in the four target roads is 2, 3, 4, and 5, that is, the number of lane lines contained in the lane lines of the four target roads is different. Correspondingly, if the number of lane lines contained in the lane lines of the four target roads identified from the road image is also 2, 3, 4, and 5, then the lane lines contained in each target road can be directly distinguished from the road image based on the principle that the number of lane lines of the same target road is consistent. In other words, the server can actually determine in this way which target road in the electronic map the lane lines contained in a target road in the road image should belong to.

[0078] If it is found from the electronic map that among the target roads included in the area to be drawn, at least some of the target roads have the same number of lane lines, then the server can determine the lane lines of each lane included in the target road in combination with the geographical location and the number of lane lines. Specifically, the server can determine the lane lines that belong to the target road geographically from the lane lines included in each target road according to the geographical location of the target road in the electronic map and the geographical location of the lane lines of the lanes included in each target road. Then, the server can use the number of lane lines of each lane line included in the target road in the electronic map as the first number of lane lines, and verify the lane lines of each lane included in the target road determined from the road image by the first number of lane lines (that is, verify whether the target road and the road in the road image are the same road). Among them, the server can use the number of lane lines of the lane lines included in the target road determined as the second number of lane lines. If the first number of lane lines is consistent with the second number of lane lines, it indicates that the lane lines of each lane included in the target road determined actually belong to the target road.

[0079] The server can also determine the driving direction of each lane contained in the target road in the electronic map as the first driving direction, and determine the driving direction of each lane contained in the target road marked in the road image as the second driving direction. If the first driving direction is consistent with the second driving direction, the lane lines of each lane contained in the target road can be obtained from the road image. This method can actually be regarded as a verification method (that is, after the server determines the lane lines of each lane contained in the target road, the lane lines contained in the determined target road can be verified according to the consistency of the driving direction of the target road in the electronic map and the driving direction of the target road determined by the road image). In other words, if the driving direction of the target road queried from the electronic map is the same as the driving direction of the target road identified from the road image, the lane lines contained in the target road determined from the road image are the actual lane lines of the target road.

[0080] It should be noted that the first driving direction mentioned above includes two situations. One situation is that the first driving direction indicates the driving direction of a specific lane, that is, each lane included in the target road corresponds to a first driving direction. Another situation is that the combination of the driving directions of the lanes in the target road can be used as the first driving direction. Therefore, for the second situation, the first driving direction does not simply refer to a driving direction. For example, assuming that the target road contains three lanes, the driving directions of the three lanes are: left turn, straight ahead, and right turn in the order from left to right. Correspondingly, the first driving directions corresponding to the three lanes are: left turn, straight ahead, and right turn.

[0081] Based on these two situations, the second driving direction mentioned above also corresponds to two corresponding situations. In addition, whether the first driving direction mentioned above is consistent with the second driving direction also corresponds to two situations, that is, if the first driving direction represents the driving direction of a lane, then whether the first driving direction is consistent with the second driving direction is actually to determine whether the first driving direction and the second driving direction corresponding to each lane are consistent. If the first driving direction represents a combination of driving directions of multiple lanes, then whether the first driving direction is consistent with the second driving direction is actually to compare whether the combination of the two driving directions is the same.

[0082] The server can also verify the lane lines of each lane contained in the target road determined by the intersection type of the area to be drawn. Specifically, the server can determine the intersection type of the area to be drawn through the electronic map, and determine the intersection type of the area to be drawn in the road image. If the two determined intersection types are the same, then the lane lines of each lane contained in the target road determined by the server are correct. For example, if the roads in the road image are crisscrossed, then it can be determined that the intersection type of the intersection area in the road image is a crossroad. If the intersection type of the intersection area is also determined to be a crossroad according to the electronic map, then it can be determined that the lane lines of the target road determined according to the road image are correct.

[0083] The server can also determine the driving direction of each lane included in the target road through the road image. The server can determine the corresponding driving direction of each lane included in the target road through the number of first lane lines and the number of second lane lines. If the number of first lane lines is consistent with the number of second lane lines, the server can identify the driving direction signs included in the target road through the road image and determine the corresponding driving directions of each lane included in the target road. The driving direction signs mentioned here can include the straight direction signs and the turning direction signs marked in the target road.

[0084] S104: Determine a lane line connection relationship between lane lines included in the target road and lane lines included in other target roads according to a driving direction corresponding to the lanes included in the target road.

[0085] After the server determines the driving direction corresponding to the target road and the lane lines included in the target road, the server can determine the lane line connection relationship between the lane lines included in the target road and the lane lines included in other target roads according to the driving direction corresponding to the target road, such as Figure 3 shown.

[0086] Figure 3 This is a schematic diagram provided in this specification for determining the lane line connection relationship according to the driving direction corresponding to the target road.

[0087] For example, in Figure 3 The turning intersection connected to the target road A and the target road B shown in the figure is an area to be drawn in the electronic map. The server can determine the lane lines included in the target road A and the lane lines included in the target road B in the above manner, and Figure 3The driving direction sign shown determines that the driving direction corresponding to the target road A in the area to be drawn is a right turn direction. Therefore, based on the right turn direction, the server can determine that the only lane line in the target road A has a lane line connection relationship with the only lane line in the target road B.

[0088] It should be noted that, since the area to be drawn shown in the above example only contains two target roads, and each of the two target roads contains only one lane line, the lane line connection relationship determined in the above example is actually the only lane line connection relationship in the area to be drawn. However, in actual applications, the target road usually contains multiple lanes, that is, the target road usually contains multiple lane lines. Therefore, in order to determine the above lane line connection relationship, it is necessary to consider the lane traffic relationship of each lane contained in each target road in the area to be drawn.

[0089] Specifically, the server can determine the driving direction of each lane included in the target road, and determine the lane traffic relationship between each lane included in the target road and each lane included in other target roads based on the driving direction of each lane included in the target road. The lane traffic relationship mentioned here indicates whether a vehicle can pass to another lane when traveling in one lane, that is, it is used to represent the traffic relationship between one lane and another lane in actual traffic. The server can determine the lane line connection relationship between the lane lines of each lane included in the target road and the lane lines of each lane included in other target roads based on the determined lane traffic relationship, such as Figure 4 shown.

[0090] Figure 4 A schematic diagram of determining a lane line connection relationship between lane lines of each lane included in a target road and lane lines of each lane included in other target roads is provided in this specification.

[0091] For example, Figure 4 The square area in the middle is an area to be drawn. The lane line a in the figure is used as an example to illustrate the determination of the lane line connection relationship. Lane line a involves lane 1 and lane 3 respectively. It can be seen that the driving directions of lane 1 and lane 2 make lane 1 and lane 2 have a lane-passing relationship, so the server can determine that lane line a and lane line c have a lane line connection relationship. It can also be seen that lane 3 and lane 4 both contain straight driving directions, so lane 3 and lane 4 have a lane-passing relationship, so the server can determine that lane line a and lane line b also have a lane line connection relationship.

[0092] Of course, after determining the lane lines included in the target road, the server can also establish a connection relationship between each lane line included in the target road and the lane lines included in other target roads, and use the determined lane line connection relationships as candidate lane line connection relationships. In other words, the candidate lane line connection relationship is a connection relationship directly established between all lane lines in the target road and all lane lines in other target roads without considering the driving direction of each lane in the target road.

[0093] However, the candidate lane line relationships determined above include incorrect lane line connection relationships (i.e., lane line connection relationships that do not comply with traffic regulations), so the server needs to filter out the correct lane line connection relationships from the candidate lane line connection relationships. Specifically, the server can determine the lane traffic relationship between the lanes included in the target road and the lanes included in other target roads based on the driving directions of the lanes included in the target road, and filter the candidate lane line connection relationships based on the lane traffic relationship to determine the candidate lane line connection relationship that complies with the lane traffic relationship as the lane line connection relationship between the lane lines included in the target road and the lane lines included in other target roads, such as Figure 5 shown.

[0094] Figure 5 A schematic diagram of screening candidate lane line connection relationships provided in this specification.

[0095] For example, Figure 5 In the example, when determining the candidate lane line connection relationship, the server determines that lane line A and lane line D have a candidate lane line connection relationship 1. Since lane a only has a straight driving direction, lane a and lane d do not have a lane-passing relationship, so candidate lane line connection relationship 1 is wrong and cannot be selected as a lane line connection relationship. The server also determines that lane line B and lane line C have a candidate lane line connection relationship 2. It can be seen from the figure that lane b has a right-turn driving direction, so lane b and lane c have a lane-passing relationship, so candidate lane line connection relationship 2 is correct and can be selected as a lane line connection relationship.

[0096] S105: Drawing the lane lines in the area to be drawn according to the lane line connection relationship.

[0097] After the server determines the lane line connection relationship between the lane lines included in the target road and the lane lines included in other target roads, the lane lines in the area to be drawn can be drawn, such as Figure 6 shown.

[0098] Figure 6 A schematic diagram of drawing lane lines in an area to be drawn provided in this specification.

[0099] Figure 6 In the example, the server determines the lane line connection relationship between the lane lines included in the target road and the lane lines included in other target roads for each target road, and then the server can draw a lane line connection relationship based on the determined lane line connection relationship. Figure 6 Lane lines within the area to be drawn are shown in .

[0100] remove Figure 6 In addition to the form shown, when the lane lines in the to-be-drawn area are drawn in the above manner, it is also possible that multiple lane lines of a target road are connected to a lane line of another target road, such as Figure 7 shown.

[0101] Figure 7 The lane marking schematic diagram of a T-junction is provided for this manual.

[0102] exist Figure 7 In the T-shaped intersection shown, the horizontal target road contains two main lanes, each of which can be divided into two lanes, where the driving direction of the upper left lane a is straight left, the driving direction of the lower left lane c is straight right and right turn, the driving direction of the upper right lane b is straight left and left turn, and the driving direction of the lower right lane d is straight right. The longitudinal target road contains three lanes, the driving direction of the leftmost lane e is downward, the driving direction of the middle lane f is left turn, and the driving direction of the rightmost lane g is left turn or right turn. According to Figure 7 The driving directions of the lanes are marked in the figure, and the lane traffic relationship between the lanes is determined, and then the T-shaped intersection is marked as follows: Figure 7 It can be seen from these lane lines that multiple lane lines in the longitudinal target road are connected to one lane line in the lateral target road, that is, lane line fusion occurs.

[0103] It can be seen from the above method that the server can draw the lane lines in the area to be drawn according to the determined lane lines contained in the roads connected to the area to be drawn and the driving directions of the roads connected to the area to be drawn. Compared with the method of manually marking lane lines in the prior art, this method can achieve the purpose of automatically marking lane lines by the server, which not only effectively improves the efficiency of drawing lane lines in the area to be drawn in the electronic map, but also further improves the integrity of the information in the electronic map.

[0104] It should be noted that in this specification, the electronic map used by the server to determine the above-mentioned geographical locations may refer to an ordinary navigation map, and the area to be drawn mentioned in this specification may refer to the area where lane lines need to be drawn in the high-precision map. Therefore, the server can draw the lane lines in the area to be drawn in the high-precision map by using the road image collected for the area to be drawn and the navigation map used to determine the geographical locations of each target road connected to the area to be drawn.

[0105] The above is a method for drawing lane lines provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding device for drawing lane lines, such as Figure 8 shown.

[0106] Figure 8 A schematic diagram of a lane line drawing device provided in this specification specifically includes:

[0107] The area determination module 801 is used to determine at least one area to be drawn where lane lines need to be drawn in a preset electronic map;

[0108] A road determination module 802 is used to determine, for each area to be drawn, roads connected to the area to be drawn as target roads;

[0109] The lane line determination module 803 is used to determine, for each target road, the driving direction and lane line corresponding to the lane included in the target road;

[0110] A relationship determination module 804, configured to determine a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road;

[0111] The drawing module 805 is used to draw the lane lines in the area to be drawn according to the lane line connection relationship.

[0112] Optionally, the lane line determination module 803 is specifically used to obtain at least one road image for the area to be drawn; and determine the driving direction and lane line corresponding to the lane contained in the target road according to the at least one road image.

[0113] Optionally, the lane line determination module 803 is specifically used to determine the geographical location of the target road based on the electronic map; determine the geographical location of the lane lines of each target road based on the at least one road image and the acquisition location based on which the at least one road image is acquired; and determine the lane line corresponding to the lane included in the target road from the lane lines included in each target road based on the geographical location of the target road and the geographical location of the lane lines of each target road.

[0114] Optionally, the lane line determination module 803 is specifically used to determine the number of lane lines contained in the target road from the at least one road image as the first lane line number, and to query the number of lane lines contained in the target road from the electronic map as the second lane line number; if it is determined that the first lane line number matches the second lane line number, the corresponding driving direction of the lane contained in the target road is determined according to the driving direction sign contained in the target road identified from the at least one road image.

[0115] Optionally, the lane line determination module 803 is specifically used to query the driving direction corresponding to the lane contained in the target road from the electronic map as the first driving direction, and determine the driving direction of the lane contained in the target road marked in the at least one road image as the second driving direction; if it is determined that the first driving direction is consistent with the second driving direction, the lane line corresponding to the lane contained in the target road is determined according to the lane line contained in the target road identified from the at least one road image.

[0116] Optionally, the relationship determination module 804 is specifically used to determine, based on the driving direction corresponding to the lane contained in the target road, a lane traffic relationship between the lane contained in the target road and the lanes contained in other target roads; and based on the lane traffic relationship, determine the lane line connection relationship between the lane lines corresponding to the lane contained in the target road and the lane lines corresponding to the lanes contained in other target roads.

[0117] Optionally, the relationship determination module 804 is specifically used to establish a connection relationship between the lane lines contained in the target road and the lane lines contained in other target roads to obtain a connection relationship between each candidate lane line; determine the lane traffic relationship between the lanes contained in the target road and each lane contained in other target roads according to the driving direction corresponding to the lanes contained in the target road; and filter out the candidate lane line connection relationship that meets the lane traffic relationship from the candidate lane line connection relationships as the lane line connection relationship between the lane lines contained in the target road and the lane lines contained in other target roads.

[0118] Optionally, the area to be drawn includes: an intersection area in the electronic map.

[0119] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 Provides a method for drawing lane lines.

[0120] This manual also provides Fig. 9The schematic structure diagram of the electronic device shown in FIG. Fig. 9 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0121] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0122] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0123] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0124] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0125] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0130] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0131] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0133] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0134] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0135] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0136] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for drawing lane lines, characterized in that: include: Determine at least one area to be drawn where lane lines need to be drawn in a preset electronic map; For each area to be drawn, determine each road connected to the area to be drawn as each target road; For each target road, determine the driving direction and lane line corresponding to the lanes included in the target road; Determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road; Drawing the lane lines in the area to be drawn according to the lane line connection relationship; Wherein, for each target road, determining the driving direction and lane line corresponding to the lane included in the target road includes: Acquire at least one road image for the area to be mapped; Determine, according to the at least one road image, a driving direction and a lane line corresponding to a lane included in the target road; Wherein, determining, according to the at least one road image, a lane line corresponding to a lane included in the target road includes: Querying the driving direction corresponding to the lane included in the target road from the electronic map as the first driving direction, and determining the driving direction of the lane included in the target road marked in the at least one road image as the second driving direction; If it is determined that the first driving direction matches the second driving direction, determining a lane line corresponding to a lane included in the target road according to the lane line included in the target road identified from the at least one road image; Wherein, determining the driving direction corresponding to the lane included in the target road according to the at least one road image includes: Determine the number of lane lines included in the target road from the at least one road image as the first number of lane lines, and query the number of lane lines included in the target road from the electronic map as the second number of lane lines; If it is determined that the first number of lane lines matches the second number of lane lines, the driving direction corresponding to the lane included in the target road is determined based on the driving direction mark included in the target road identified from the at least one road image.

2. The method according to claim 1, characterized in that Determining, according to the at least one road image, a lane line corresponding to a lane included in the target road, comprising: Determining the geographical location of the target road according to the electronic map; Determine the geographical location of the lane lines of each target road according to the at least one road image and the acquisition location based on which the at least one road image is acquired; According to the geographical location of the target road and the geographical locations of the lane lines of each target road, a lane line corresponding to the lane included in the target road is determined from the lane lines included in the target roads.

3. The method according to claim 1, characterized in that Determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road, including: Determining a lane traffic relationship between a lane included in the target road and a lane included in other target roads according to a driving direction corresponding to the lane included in the target road; According to the lane traffic relationship, a lane line connection relationship between a lane line corresponding to a lane included in the target road and a lane line corresponding to a lane included in other target roads is determined.

4. The method according to claim 1, characterized in that Determining a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads according to a driving direction corresponding to the lane included in the target road, including: Establishing a connection relationship between the lane lines included in the target road and the lane lines included in other target roads to obtain a connection relationship between candidate lane lines; Determining a lane traffic relationship between the lane included in the target road and the lane included in other target roads according to the driving direction corresponding to the lane included in the target road; A candidate lane line connection relationship that meets the lane traffic relationship is screened out from the candidate lane line connection relationships as a lane line connection relationship between a lane line included in the target road and a lane line included in other target roads.

5. The method according to claim 1, characterized in that The area to be drawn includes: an intersection area in the electronic map.

6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 5 is implemented.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 5 is implemented.