Map data processing and navigation method and device, equipment and medium
By automatically identifying the type of road markings in intersections from map data, the problems of low efficiency and poor accuracy of manual analysis in the existing technology are solved, and the accuracy of intersection information in electronic navigation is improved.
Patent Information
- Application Number
- CN202410756684.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, manual analysis of intersection image data to determine the type of road markings is inefficient and inaccurate, resulting in low accuracy of the type of road markings in the intersection in the electronic map.
By determining the initial lane lines and their attribute information of the target intersection from map data, the type of target road markings, including dotted lines, solid lines, etc., are automatically identified to indicate whether crossing is allowed and improve the accuracy and efficiency of marking types.
It achieves the accuracy and efficiency of automatically determining the type of road markings, reduces manual intervention, and improves the accuracy of intersection information in electronic navigation.
Smart Images

Figure CN118623897A
Abstract
Description
Technical Field
[0001] The present application relates to the field of map processing technology, and in particular to a map data processing, navigation method, device, equipment and medium. Background Art
[0002] Electronic maps can provide navigation routes for users. Among them, the information used to indicate the prohibited driving directions in the intersection in the electronic map is the key to navigation route planning based on the electronic map. The information used to indicate the prohibited driving directions in the intersection needs to be determined based on the type of road markings in the intersection, such as prohibiting driving across the solid line and allowing driving across the dotted line. However, at present, the type of road markings in the intersection is mainly determined by manually analyzing the image data of the intersection. This method has the problems of low efficiency and poor accuracy. Summary of the invention
[0003] The present application provides a map data processing, navigation method, device, equipment and medium, which can improve the accuracy and efficiency of determining the marking type of road markings.
[0004] In a first aspect, the present application provides a map data processing method, the method comprising:
[0005] Determine an initial lane line corresponding to the target intersection from the map data; the initial lane line overlaps with the intersection range of the target intersection;
[0006] Determine the target road marking of the target intersection according to the attribute information of the initial lane line; the attribute information includes: the lane line type of the initial lane line; the target road marking runs through the target intersection;
[0007] Based on the lane line type of the initial lane line, a lane line type of the target road marking is determined; the lane line type of the target road marking is used to indicate whether crossing the target road marking is allowed.
[0008] In a second aspect, the present application provides a navigation method, the method comprising:
[0009] Based on the navigation location information and the no-entry information of the target intersection, a target planned route is determined; the no-entry information is used to indicate that a vehicle is prohibited from entering the target intersection from a target entry road and exiting the target intersection from a target exit road; the no-entry information is determined based on the marking type of the target road marking at the target intersection; the marking type of the target road marking is determined based on the map data processing method as described in the first aspect;
[0010] A route is planned and navigation is performed based on the target.
[0011] In a third aspect, the present application provides a map data processing device, the device comprising:
[0012] A determination module, used to determine an initial lane line corresponding to a target intersection from map data; the initial lane line overlaps with an intersection range of the target intersection;
[0013] A processing module is used to determine the target road marking of the target intersection according to the attribute information of the initial lane line; the attribute information includes: determining the marking type of the target road marking based on the lane line type of the initial lane line; the lane line type of the initial lane line; the marking type of the target road marking is used to indicate whether crossing the target road marking is allowed.
[0014] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory; the processor is communicatively connected to the memory;
[0015] The memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory to implement the method as described in the first aspect and / or the second aspect.
[0017] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspect and / or the second aspect.
[0018] In a sixth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in any one of the first aspect and / or the second aspect.
[0019] The map data processing, navigation method, device, equipment and medium provided by the present application can determine the target road marking of the target intersection through the attribute information of the initial lane line corresponding to the target intersection, and can determine the marking type of the target road marking of the target intersection based on the lane line type in the attribute information of the initial lane line. Compared with obtaining the marking type of the road marking of the intersection through manual analysis, the present application can automatically determine the marking type of the target road marking that can be used to indicate whether crossing the target road marking is allowed through the above method, thereby improving the accuracy and efficiency of determining the marking type of the target road marking. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A schematic diagram of a road junction;
[0022] Figure 2 A flowchart of a map data processing method provided in this application;
[0023] Figure 3 A schematic diagram of an initial lane line and a target road marking provided in this application;
[0024] Figure 4 A schematic diagram of a process for obtaining an initial lane line corresponding to a target intersection provided in this application;
[0025] Figure 5 A schematic diagram of a process for determining a target road marking at a target intersection provided by the present application;
[0026] Figure 6 A schematic diagram of initial lane lines with the same trend provided for this application;
[0027] Figure 7 A schematic diagram of a waiting area for turning at an intersection provided for this application;
[0028] Figure 8 A schematic diagram of a circular line inside an intersection provided for this application;
[0029] Fig. 9 A schematic diagram of various lane line types corresponding to an initial lane line provided in this application;
[0030] Fig.10 A schematic diagram of a target zebra crossing provided for this application;
[0031] Fig.11 A schematic diagram of another target zebra crossing provided for this application;
[0032] Fig.12 A schematic diagram of the lane line types on both sides of a target zebra crossing enclosing frame provided in this application;
[0033] Fig.13 A schematic diagram of a merged target zebra crossing provided in this application;
[0034] Fig.14 A flowchart of a navigation method provided for this application;
[0035] Fig.15 A structural schematic diagram of a map data processing device 160 provided in this application;
[0036] Fig.16 A schematic diagram of the structure of a navigation device 170 provided in this application;
[0037] Fig.17 A schematic diagram of the hardware structure of an electronic device provided in this application.
[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] In the real world, various types of road markings can be used to indicate whether an intersection can be crossed in a certain driving direction. For example, Figure 1 is a schematic diagram of a road intersection. Figure 1 As shown, the road markings at the intersection 100 include road markings 11, and the road markings 11 are solid lines (usually solid lines are road markings that prohibit crossing).
[0041] If a vehicle enters the intersection 100 from the entry road 21, the vehicle cannot turn left across the road marking 11 to enter the exit road 31, and is prohibited from making a U-turn across the road marking 11 to enter the exit road 32. If a vehicle enters the intersection 100 from the entry road 22, the vehicle can turn right to enter the exit road 32, but is prohibited from turning left across the road marking 11 to enter the exit road 33. If a vehicle enters the intersection 100 from the entry road 23, the vehicle is prohibited from making a U-turn across the road marking 11 to enter the exit road 33, but can turn right to enter the exit road 31, and can drive straight into the exit road 32.
[0042] Electronic maps can provide navigation routes for users, and ensuring the accuracy of the information used to indicate prohibited driving directions at intersections in electronic maps is the key to accurate navigation route planning based on electronic maps. The information used to indicate prohibited driving directions at intersections is determined based on the type of road markings at the intersection.
[0043] At present, the existing method for determining the type of road markings is mainly manual judgment. For example, manually analyze the collected image data of the intersection to determine what types of road markings are included in the intersection in the image data. However, since there are many types of road markings and the image data of the intersection is even more massive, the workload of manually analyzing the image data of the intersection to determine the type of road markings in the intersection is huge, and quality problems are prone to occur, resulting in poor accuracy of the type of road markings in the intersection in the electronic map, and low efficiency of manual judgment.
[0044] Considering the above problems existing in the existing road marking type determination method, the present application proposes a map data processing method that can automatically identify the road marking type in the intersection without manually analyzing the intersection image data, so as to improve the accuracy and efficiency of road marking type determination. Optionally, the execution subject of the method provided by the present application can be, for example, any electronic device with processing capabilities such as a terminal and a server, and the present application does not limit this.
[0045] The technical solution of the present application is described in detail below in conjunction with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0046] Figure 2 A flowchart of a map data processing method provided in this application. Figure 2 As shown, the method may include the following steps:
[0047] S101. Determine an initial lane line corresponding to a target intersection from map data.
[0048] Exemplarily, the map data may be, for example, high-precision map data. The target intersection may be, for example, any intersection included in the map data. Alternatively, the target intersection may be, for example, a level crossing included in the map data. Alternatively, the electronic device may also receive an intersection identifier input by a user and determine the target intersection based on the intersection identifier.
[0049] Wherein, the above-mentioned initial lane line may overlap with the intersection range of the target intersection. Optionally, the intersection range of the target intersection may, for example, refer to the position and area of the target intersection. In some embodiments, the intersection range may also be referred to as an intersection surface. The overlap between the initial lane line and the intersection range of the target intersection may, for example, include: the initial lane line is completely within the intersection range of the target intersection, the initial lane line and the intersection surface of the target intersection have an intersection, and at least one of the following situations. In other words, the initial lane line may be completely within the intersection surface of the target intersection or may be partially within the intersection surface of the target intersection. Alternatively, taking the initial lane line having multiple shape points as an example, the overlap between the initial lane line and the intersection range of the target intersection may refer to the initial lane line having at least one shape point falling within the intersection range.
[0050] Exemplarily, the initial lane line may include any type of lane line such as a virtual lane line and an actual lane line, which is not limited in the present application. The virtual lane line may refer to a virtual lane line that does not actually exist in the real world and is generated by any existing virtual lane line generation algorithm. The actual lane line may be a lane line that actually exists in the real world.
[0051] Optionally, the map data may include, for example, attribute information of the target intersection. The attribute information of the target intersection may include, for example, coordinates for describing the intersection range of the target intersection. The electronic device may, for example, determine the intersection range of the target intersection from the map data based on the identification of the target intersection. Then, based on the intersection range of the target intersection, determine the initial lane line corresponding to the target intersection from the map data. For example, the map data may include attribute information of the initial lane line. The attribute information of the initial lane line may include, for example, the position of the initial lane line. The position of the initial lane line may, for example, be represented by at least one coordinate. The present application does not limit the coordinate system in which the coordinates are located. For example, the electronic device may determine that the initial lane line is the initial lane line corresponding to the target intersection when the position of the initial lane line is within the intersection range of the above-mentioned target intersection. Alternatively, taking the initial lane line represented by multiple shape points as an example, the electronic device may, for example, use the initial lane line in which at least one shape point is located within the intersection range of the target intersection as the initial lane line corresponding to the target intersection.
[0052] S102: Determine a target road marking at a target intersection based on the attribute information of the initial lane line.
[0053] Among them, the above-mentioned attribute information may include, for example: the lane line type of the initial lane line. Optionally, different lane line types in the attribute information can be distinguished, for example, by different lane line type identifiers, which is not limited in this application. This application does not limit whether the attribute information also includes other content. For example, in some embodiments, the above-mentioned attribute information may also include: the absolute position of the initial lane line in the real world, the relative position of the initial lane line relative to other lane lines on the road where the initial lane line is located, the direction of the initial lane line, the name identifier of the road where the initial lane line is located, and at least one of the above-mentioned items.
[0054] The target road marking may pass through the target intersection. It should be understood that the target road marking passing through the target intersection may mean that both the beginning and the end of the target road marking are at the intersection range edge of the target intersection, that is, the target road marking may pass through the target intersection and does not exceed the intersection range of the target intersection. For example, Figure 3 Schematic diagram of an initial lane line and a target road marking provided in this application. The target road marking of the target intersection 100 can be, for example, Figure 3 As shown in the target road marking 41 in the map data. Taking the intersection range of the target intersection represented by a polygon in the map data as an example, the target road marking can be located within the polygon and connected to at least two sides of the polygon. In some embodiments, the target road marking running through the target intersection may also include the starting point and / or end point of the target road marking, which is located outside the intersection range of the target intersection. Optionally, the target road marking can be used to distinguish, for example, whether the vehicle is going up or down in the driving direction of the target intersection.
[0055] Taking the initial lane line that can pass through the target intersection as an example, as a possible implementation method, the electronic device can directly use the initial lane line as the target road marking. Alternatively, if part of the initial lane line is outside the intersection range of the target intersection, the electronic device can also delete the part of the lane line "outside the intersection range of the target intersection" on the initial lane line, that is, intercept the part of the lane line "within the intersection range of the target intersection" on the initial lane line as the above-mentioned target road marking.
[0056] As another possible implementation method, taking the case where a target intersection corresponds to multiple initial lane lines, and there are initial lane lines of actual line type and initial lane lines of virtual line type as an example, the electronic device may, for example, delete the initial lane lines of virtual line type, and determine the above-mentioned target road marking based on the initial lane lines of actual line type.
[0057] S103: Determine the lane line type of the target road marking based on the lane line type of the initial lane line.
[0058] The marking type of the target road marking is used to indicate whether it is allowed to cross the target road marking. For example, for any target road marking, the marking type of the target road marking can be one of: a crossable type, a non-crossable type, and a single-side crossable type. Taking the case where the marking type of the target road marking is a single-side crossable type, the single-side crossable type can, for example, indicate that it is possible to cross from the left end of the target road marking to the right end (it is not possible to cross from the right end of the target road marking to the left end), or it is possible to cross from the right end of the target road marking to the left end (it is not possible to cross from the left end of the target road marking to the right end).
[0059] Exemplarily, taking the above-mentioned initial lane lines as the same lane line type, the electronic device can use the result of whether the lane line type of the initial lane line is a crossable type as the lane line type of the target road marking. For example, lane line types such as virtual line, dotted line (actual line), double dotted line are crossable road markings; lane line types such as solid line and double solid line are non-crossable road markings; lane line types such as left solid and right dotted, left dotted and right solid are single-side crossable road markings.
[0060] Taking the above-mentioned different lane line types of the initial lane lines as an example, the electronic device can, for example, determine the lane line type of the target road marking based on a preset lane line type priority and the lane line type of each initial lane line.
[0061] In this embodiment, the target road marking of the target intersection can be determined through the attribute information of the initial lane line corresponding to the target intersection, and the marking type of the target road marking of the target intersection can be determined based on the lane line type in the attribute information of the initial lane line. Compared with obtaining the marking type of the road marking of the intersection through manual analysis, the present application can automatically determine the marking type of the target road marking that can be used to indicate whether crossing the target road marking is allowed through the above method, thereby improving the accuracy and efficiency of determining the marking type of the target road marking.
[0062] The following is a detailed description of how the electronic device determines the initial lane line corresponding to the target intersection from the map data:
[0063] Figure 4 A schematic diagram of a process for determining the initial lane line corresponding to a target intersection provided by this application. Figure 4 As shown, as a possible implementation, the aforementioned step S101 may include the following steps:
[0064] S201. Determine the intersection range of the target intersection based on map data.
[0065] Exemplarily, the intersection range of the target intersection may be represented by a polygon surrounding the target intersection, for example Figure 1 and Figure 3 Optionally, the electronic device determines the intersection range of the target intersection based on the map data, and the implementation method can refer to any existing intersection range determination method, which will not be described in detail in this application.
[0066] S202: The lane line in the map data that overlaps with the intersection range and is used to distinguish the upward and downward directions of the vehicle is used as the initial lane line.
[0067] In some embodiments, taking the example that the attribute information of the above-mentioned initial lane line also includes: "a relative position mark of the lane line used to indicate the relative position between lane lines on the road where the lane line is located", the electronic device can, for example, use the lane line in the map data that overlaps with the above-mentioned intersection range, has a preset lane line type, and a relative position mark that is a preset relative position mark as the initial lane line.
[0068] The preset relative position mark can be used to indicate that the lane line is a road marking on the target side edge of the driving direction of the road. The target side can be, for example, the left side or the right side. For example, if the vehicle drives on the left side of the traffic mode, the target side can be, for example, the left side. For example, if the vehicle drives on the right side of the traffic mode, the target side can be, for example, the right side. For example, still in the Figure 3 For example, assuming that the vehicle is driving on the left in the traffic mode, lane lines 33 and 34 on the road are not road markings on the left edge of the driving direction, so lane lines 33 and 34 can not be used as initial lane lines, and lane lines 31 and 32 are road markings on the left edge of the driving direction, so lane lines 33 and 34 can be used as initial lane lines. For example, starting from the left side of the driving direction on the road to the right side, the relative position marks of the lane lines are 0, -1, and -2 respectively, and the electronic device can determine the initial lane line based on the lane line marked as 0.
[0069] For example, the above-mentioned preset lane line types may be shown in the following Table 1:
[0070] Table 1
[0071]
[0072] Optionally, the electronic device may determine the lane line corresponding to the target intersection by, for example, using any existing algorithm for determining whether a line intersects a surface, such as a line-surface intersection algorithm. Optionally, the preset lane line type and preset relative position identifier may be pre-stored in the electronic device, for example.
[0073] In some embodiments, still taking the lane line type including the initial lane line in the above-mentioned attribute information as an example, considering that the lane line types that usually affect the up and down directions of vehicle travel mainly belong to the actual line types that actually exist in the real world, the electronic device can, for example, first determine the lane line of the actual line type that overlaps with the above-mentioned intersection range based on the lane line type, and then, from the lane lines of the actual line type, use the lane line type of the above-mentioned preset lane line type and the relative position mark of the above-mentioned preset relative position mark as the initial lane line.
[0074] In this embodiment, a lane line that overlaps with the intersection range of the target intersection and is used to distinguish the upward and downward directions of vehicle travel is used as the initial lane line, so that the initial lane line can be used to constrain the upward and downward directions of vehicle travel, and then the target road marking determined based on the initial lane line can be used to constrain the upward and downward directions of vehicle travel, so that the subsequent passability of the vehicle travel direction in the target intersection can be indicated based on the marking type of the target road marking.
[0075] The following is a detailed description of how the electronic device determines the target road marking at the target intersection based on the attribute information of the initial lane line:
[0076] Figure 5 A schematic diagram of a process for determining a target road marking at a target intersection provided by this application. Figure 5 As shown, as a possible implementation, the aforementioned step S102 may include the following steps:
[0077] S301. Preprocess the initial lane line according to the attribute information of the initial lane line to obtain a preprocessed lane line.
[0078] Exemplarily, the above preprocessing may at least include: connecting initial lane lines with the same trend, and / or deleting interfering lane lines in the initial lane lines. The interfering lane lines are initial lane lines that are not used to restrict the driving direction of the vehicle in the target intersection.
[0079] Taking the preprocessing including: connecting initial lane lines with the same trend as an example, in some embodiments, the attribute information may also include: coordinates of the endpoints of the initial lane lines. The electronic device may first determine that there are initial lane lines with the same trend.
[0080] For example, the electronic device may determine that the first initial lane line and the second initial lane line are initial lane lines with the same trend in response to the vertical distance from the end point of the first initial lane line to the second initial lane line being less than the first preset distance, and the horizontal distance between the projection of the end point of the first initial lane line on the second initial lane line and the starting point of the second initial lane line being less than the second preset distance. The first initial lane line and the second initial lane line are both initial lane lines corresponding to the target intersection determined by the electronic device from the map data.
[0081] For example, Figure 6 A schematic diagram of initial lane lines with the same trend provided by the present application. The vertical distance from the end point of the first initial lane line L1 to the second initial lane line L2, and the horizontal distance between the projection of the end point of the first initial lane line L1 on the second initial lane line L2 and the starting point of the second initial lane line L2 can be, for example, as shown in Figure 6 When the vertical distance is less than the first preset distance, and the horizontal distance is less than the second preset distance, it means that the first initial lane line L1 and the second initial lane line L2 belong to the same lane line in the real world, that is, the first initial lane line L1 and the second initial lane line L2 are initial lane lines with the same trend.
[0082] Exemplarily, the first preset distance may be, for example, 0.3 meters (m), and the second preset distance may be, for example, 0.2 m. The present application does not limit the values of the first preset distance and the second preset distance. Optionally, the first preset distance and the second preset distance may be, for example, pre-stored in the electronic device.
[0083] Then, the electronic device may connect the first initial lane line and the second initial lane line to obtain a preprocessed lane line.
[0084] For example, the electronic device may modify the coordinates of the end point of the first initial lane line and / or the coordinates of the start point of the second initial lane line so that the coordinates of the end point of the first initial lane line are the same as the coordinates of the start point of the second initial lane line, thereby obtaining the connected first initial lane line and the second initial lane line as the preprocessed lane line. Figure 3 For example, the electronic device may connect initial lane line 31 and initial lane line 32 as initial lane lines with the same direction trend.
[0085] By connecting the first initial lane line and the second initial lane line, it is possible to combine the initial lane lines in the same direction area, so that the target road markings determined subsequently are the same road markings in the real world, thereby making the target road markings consistent with the real world and improving the accuracy of the target road markings.
[0086] Taking the preprocessing including: deleting the interfering lane lines in the initial lane lines as an example, in some embodiments, the electronic device can delete at least one type of interfering lane lines, such as virtual lines, lane lines in the turning waiting area in the target intersection, and circular lines.
[0087] Taking deleting a virtual line as an interfering lane line as an example, the electronic device can delete the initial lane line of the virtual lane line type in response to the presence of an initial lane line of the virtual lane line type and the presence of an initial lane line of the actual lane line type. By deleting the initial lane line of the virtual lane line type, the initial lane line that does not constrain the vehicle in the real world is deleted, the data volume of the initial lane line is reduced, the processing efficiency of the electronic device is improved, and the interference with the subsequent determination of the target road marking is reduced, further improving the accuracy of determining the target road marking.
[0088] Optionally, if the lane line types of the initial lane lines are all virtual line types, the electronic device may not perform the operation of deleting the initial lane lines whose lane line types are virtual line types, so as to retain the acquired initial lane lines.
[0089] Taking the example of deleting the lane line in the turning waiting area (or waiting area) in the target intersection as an interfering lane line, the electronic device, for example, when there is an initial lane line of a single dashed line type and the initial lane line is connected to the stop line at both ends, the initial lane line is used as the lane line of the turning waiting area in the target intersection, so the electronic device can delete the initial lane line.
[0090] Optionally, the attribute information of the initial lane line may also include, for example, the types of lane lines connected to the head and tail of the initial lane line. The electronic device may determine whether the head and tail of the initial lane line of a single dashed line type are both connected to a road component of a stop line type based on the types of road components connected to the head and tail of the initial lane line in the attribute information of the initial lane line. Alternatively, the electronic device may also determine the types of road components at the head and tail endpoints of the initial lane line of a single dashed line type. If the types of road components at the head and tail endpoints of the initial lane line of a single dashed line type are both stop lines, the electronic device may determine the type of road component that the initial lane line is, and therefore, the electronic device may delete the initial lane line.
[0091] For example, Figure 7 This is a schematic diagram of a waiting area for turning at an intersection provided by this application. Figure 7 As shown, the lane line 71 in the turning area in the target intersection 100 is a single dashed line type lane line and is not used to distinguish the up and down directions of vehicle travel.
[0092] Through the above method, the lane lines in the waiting area can be deleted as interference lane lines. Since the lane lines in the waiting area are not used to distinguish the up and down directions of the vehicle's travel, by deleting the lane lines in the waiting area, it is ensured that no omissions will be caused in the subsequent determination of the target road markings, while reducing the number of target road markings used to determine the target road markings, further improving the efficiency and accuracy of the subsequent determination of the target road markings based on the preprocessed initial lane lines.
[0093] Taking deleting a circular line as an interfering lane line as an example, the electronic device can determine whether the initial lane line is a circular line by, for example, determining whether the lane line type of the initial lane line is a solid line type, and whether the angle between the starting direction and the end direction of the initial lane line is within a preset angle range.
[0094] Figure 8 This is a schematic diagram of a circular line inside an intersection provided by this application. Figure 8 As shown, the circular line 81 is usually a line used to delimit the green belt inside the target intersection 100. The circular line is usually not used to define the up and down direction of vehicle travel, so the circular line can be deleted as an interfering lane line.
[0095] If there is an initial lane line of a solid line type, and the angle between the starting direction and the ending direction of the initial lane line is within a preset angle range, it means that the initial lane line is a circular line, and the electronic device can delete the initial lane line.
[0096] Exemplarily, the preset angle range may be, for example, between 180 degrees (plus or minus 15 degrees), that is, [165 degrees, 195 degrees]. It should be understood that the present application does not limit the value of the preset angle range. The preset angle range may be, for example, pre-stored in the electronic device.
[0097] Optionally, the map data may include, for example, attribute information of shape points for describing the lane line. The starting point of the lane line is the starting shape point of the lane line, and the ending point of the lane line is the ending shape point of the lane line. The attribute information of the shape point may include, for example, the position coordinates of the shape point. The electronic device may, for example, determine the starting direction of the initial lane line based on the position coordinates of the starting shape point included in the initial lane line, and the position coordinates of the shape points adjacent to the starting shape point on the initial lane line. The electronic device may, for example, determine the ending direction of the initial lane line based on the position coordinates of the ending shape point included in the initial lane line, and the position coordinates of the shape points adjacent to the ending shape point on the initial lane line. Alternatively, the electronic device may also determine the starting direction and the ending direction of the lane line based on any existing method for determining the direction at any point on the lane line, which will not be described in detail in this application.
[0098] S302: Determine target road markings based on the preprocessed lane lines.
[0099] In some embodiments, the electronic device can, for example, determine whether the preprocessed lane line can intersect with the two sides of the target intersection. If the preprocessed lane line can intersect with the two sides of the target intersection, it means that the preprocessed lane line can completely pass through the two directions of traffic of the target intersection, so the electronic device can use the lane line of the preprocessed lane line that is within the intersection range of the target intersection as the target road marking.
[0100] Optionally, the intersection range of the target intersection in the map data can be described by a polygon, for example. The electronic device can, for example, determine whether the preprocessed lane line can intersect with two edges of the polygon based on the position of the preprocessed lane line and the position of the edge of the polygon used to describe the intersection range. If it is determined whether the preprocessed lane line can intersect with the two edges of the polygon, it means that the preprocessed lane line can intersect with the two edges of the target intersection, so the electronic device can use the lane line on the preprocessed lane line that is within the intersection range of the target intersection as the target road marking.
[0101] As Figure 3 Taking the target intersection 100 as an example, the initial lane line 31 and the initial lane line 32 are pre-processed to “connect the initial lane lines with the same trend”. The pre-processed lane line intersects with two sides of the target intersection 100, so the electronic device can use the lane line within the intersection range of the target intersection among the pre-processed lane lines as the target road marking 41.
[0102] Through the above method, the lane line within the intersection range of the target intersection among the preprocessed lane lines intersecting the two sides of the target intersection is used as the target road marking, so that the target road marking can completely pass through the two directions of travel of the target intersection and does not exceed the intersection range, thereby improving the accuracy of the target road marking for restricting the direction of travel within the target intersection.
[0103] In some embodiments, if the above-mentioned preprocessed lane line fails to intersect with the two sides of the target intersection, and there is no preprocessed lane line intersecting with the two sides of the target intersection, it means that there is no preprocessed lane line that can completely pass through the two directions of traffic of the target intersection. For example, the electronic device can extend the preprocessed lane line that fails to intersect with the two sides of the target intersection to obtain an extended lane line. Then, the electronic device can use the lane line within the intersection range of the target intersection on the extended lane line as the target road marking. The extended lane line can intersect with the two sides of the target intersection.
[0104] Among them, the preprocessed lane line cannot intersect with the two sides of the target intersection, for example, can mean: the preprocessed lane line only intersects with one side of the target intersection, or the preprocessed lane line is within the intersection range of the target intersection and each side of the target intersection cannot intersect with the preprocessed lane line. Taking the preprocessed lane line only intersects with one side of the target intersection as an example, optionally, the electronic device can extend the preprocessed lane line from the end of the preprocessed lane line that cannot intersect with the side of the target intersection until the extended lane line can intersect with the two sides of the target intersection. Taking the preprocessed lane line within the intersection range of the target intersection and each side of the target intersection cannot intersect with the preprocessed lane line as an example, optionally, the electronic device can extend the preprocessed lane line from both ends of the preprocessed lane line respectively until the extended lane line can intersect with the two sides of the target intersection.
[0105] Optionally, the above-mentioned extended lane line may include the preprocessed lane line itself and the virtual extension line obtained by extension. The electronic device may, for example, also generate attribute information of the virtual extension line. Among them, the lane line type of the virtual extension line in the attribute information of the virtual extension line may, for example, be a virtual line type. Optionally, the electronic device may, for example, determine the extension direction of the preprocessed lane line based on the coordinates of the end point of the preprocessed lane line and the coordinates of the shape point of the lane line adjacent to the end point on the preprocessed lane line. Then, the electronic device may extend the preprocessed lane line in the extension direction until the virtual extension line of the preprocessed lane line intersects with the edge of the target intersection.
[0106] By using the above method, the pre-processed lane line that cannot intersect with the two sides of the target intersection can be extended to obtain an extended lane line that can intersect with the two sides of the target intersection. The lane line within the intersection range of the extended lane line is used as the target road marking line, so that the target road marking line can completely pass through the two traffic directions of the target intersection and does not exceed the intersection range.
[0107] In this embodiment, the initial lane lines are preprocessed by connecting the initial lane lines with the same trend, deleting the interfering lane lines in the initial lane lines, etc., to obtain the preprocessed lane lines, and the target road markings are determined based on the preprocessed lane lines. Through the preprocessing, the interference of the interfering road markings on the subsequent determination of the target road markings is reduced, and the number of initial lane lines used to determine the target road markings is reduced, thereby further improving the accuracy and efficiency of the automatic determination of the target road markings at the target intersection.
[0108] The following is a detailed description of how the electronic device determines the lane line type of the target road marking based on the lane line type of the initial lane line:
[0109] As a possible implementation, the electronic device may determine the marking type of the target road marking based on the judgment result of whether the lane line type of the initial lane line belongs to the target type, wherein the target type may be, for example, one of a crossable type, a non-crossable type, and a single-side crossable type.
[0110] In some embodiments, the electronic device may first determine whether the lane line types of the initial lane lines all belong to the same target type. If so, the electronic device may determine that the lane line type of the target road marking is the target type.
[0111] For example, the electronic device may first merge the target types of the initial lane lines whose lane line types belong to the same target type among the adjacent initial lane lines. Then, the electronic device may determine whether the target types of the initial lane lines are all the same. If they are all the same, the electronic device may determine that the marking type of the target road marking is the target type. Exemplarily, the electronic device may, for example, pre-store a mapping relationship between lane line types and target types to which the lane line types belong. For any initial lane line, the electronic device may determine the target type to which the lane line type of the initial lane line belongs based on the lane line type of the initial lane line and the mapping relationship between the lane line type and the target type to which the lane line type belongs.
[0112] Exemplarily, the lane line types of dashed line type and virtual line type can both belong to the crossable type; the lane line types of single solid line type, double solid line type, and guide line type can all belong to the non-crossable type; the lane line types of dashed and solid line types (for example, left solid and right dashed or left dashed and right solid) can belong to the single-side crossable type.
[0113] If the target types of the lane line types of the initial lane lines are different, optionally, the electronic device may determine the lane line type of the target road line based on the length of at least one lane line segment on the target road line, wherein the lane line type of the at least one lane line segment has the same target type.
[0114] For example, when there is a crossable initial lane line in the target type of the initial lane line, the electronic device may determine the marking type of the target road marking based on the length of the lane line segment whose target type is the crossable type on the target road marking.
[0115] In some embodiments, the electronic device may determine whether "the length of the lane line of the target road marking line whose lane line type is continuously crossable" is greater than a first preset length. The first preset length may be pre-stored in the electronic device. Optionally, the first preset length may be a width determined by R&D personnel through offline experiments or experience that can ensure the passage of vehicles, such as 3 meters.
[0116] If the length of the lane line section of the target road marking line whose lane line type is continuously of the crossable type is greater than the first preset length, it means that the vehicle can pass through the target intersection by crossing the lane line section. Therefore, the electronic device can determine that the marking type of the target road marking line is a crossable type.
[0117] If the length of a lane line segment of the target road marking line whose lane line type belongs to a target type that is continuously a crossable type is less than or equal to a first preset length, it means that the length of the lane line segment is too short and the vehicle cannot pass through the target intersection by crossing the lane line segment. Optionally, the electronic device may, for example, determine the marking type of the target road marking based on the length of a lane line segment of the target road marking line that is continuously a crossable type in response to the presence of a lane line of a single-sided crossable type in the target type to which the lane line type belongs.
[0118] If the length of lane lines of the target type to which the lane line type on the target road marking belongs that are continuously of the crossable type is less than a first preset length, and there are no lane lines of the single-sided crossable type in the target type to which the lane line type on the target road marking belongs, that is, the lane line types of other lane line segments on the target road marking are all of the non-crossable type, optionally, the electronic device may determine that the lane line type of the target road marking is of the non-crossable type.
[0119] If there is no initial lane line of the crossable type in the "target type to which the lane line type on the target road marking belongs" (because the target types of the initial lane lines are different and there is no lane line of the crossable type, the target types of the initial lane lines include the single-sided crossable type and the non-crossable type), the electronic device can determine the lane line type of the target road marking based on the length of the lane lines of the single-sided crossable type that are continuously in the "target type to which the lane line type on the target road marking belongs".
[0120] In some embodiments, the electronic device may, for example, determine whether the length of the lane line of the target type of lane line type on the target road marking line that is continuously a single-side crossable type is greater than a second preset length. The second preset length may, for example, be pre-stored in the electronic device. Optionally, the second preset length may be the same as or different from the first preset length. Taking the first preset length being the same as the second preset length as an example, the second preset length may also be, for example, a width that can ensure the passage of vehicles determined by R&D personnel through offline experiments or experience, such as 3 meters.
[0121] If the length of lane lines of the target type of lane line type on the target road marking that are continuously of the single-side crossable type is greater than the second preset length, it means that the vehicle is allowed to pass through the target intersection by crossing the initial lane line of the single-side crossable type in the crossable direction indicated by the initial lane line of the single-side crossable type. Therefore, the electronic device can determine that the marking type of the target road marking is the single-side crossable type.
[0122] Optionally, when the marking type of the target road marking is a single-side crossable type, further, the electronic device can also determine the single-side crossable direction of the target road marking based on the crossable direction indicated by the lane line of the single-side crossable type, and store the single-side crossable direction as single-side crossable direction information in the attribute information of the target road marking.
[0123] If the length of lane lines of the target type of lane line type on the target road marking is continuously a single-side crossable type and is less than or equal to a second preset length, indicating that the length of the lane line section is too short and the vehicle cannot pass through, the electronic device can determine that the target road marking line is of a non-crossable type.
[0124] As another possible implementation, the electronic device may first determine the unique lane line type of the initial lane line. Then, based on the judgment result of whether the unique lane line type belongs to the target type, determine the marking type of the target road marking. Among them, the electronic device can refer to the method described in the above embodiment to determine the marking type of the target road marking based on the judgment result of whether the unique lane line type of the initial lane line belongs to the target type, which will not be repeated here. The following is an exemplary description of how the electronic device determines the unique lane line type of the initial lane line:
[0125] In some embodiments, for any initial lane line, the electronic device can, for example, determine a unique lane line type for the initial lane line in response to the initial lane line corresponding to multiple lane line types, based on a preset first lane line type priority and the multiple lane line types corresponding to the initial lane line.
[0126] For any initial lane line, optionally, the electronic device may first determine whether the initial lane line corresponds to multiple lane line types. If so, the electronic device may determine the unique lane line type of the initial lane line based on the preset first lane line type priority and the multiple lane line types corresponding to the initial lane line. If not, that is, the initial lane line corresponds to only one lane line type, the electronic device may directly use the lane line type corresponding to the initial lane line as the unique lane line type of the initial lane line.
[0127] Exemplarily, the above-mentioned preset first lane line type priority may be as follows: physical separation>actual line type>zebra crossing lane line type>virtual line type. Taking the first lane line type priority as an example, the zebra crossing lane line type may refer to the method described in the subsequent embodiments. Alternatively, the first lane line type priority may not refer to the zebra crossing lane line type, for example, the first lane line type priority may also be: physical separation>actual line type>virtual line type.
[0128] Optionally, the electronic device responds to the initial lane line corresponding to multiple lane line types by, for example, obtaining the initial lane line corresponding to the multiple lane line types from attribute information of the initial lane line.
[0129] For example, Fig. 9 This is a schematic diagram of various lane line types corresponding to an initial lane line provided in this application. Fig. 9 As shown, assuming an initial lane line 111 and an initial lane line 112, wherein the lane line type of the initial lane line 111 includes physical isolation and a double dashed line type in the actual line type, and the lane line type of the initial lane line 112 includes a double dashed line type in the actual line type and a lane line type of a zebra crossing. Taking the above-mentioned first lane line type priority of physical isolation>actual line type>lane line type of zebra crossing>virtual line type as an example, for the initial lane line 111, the electronic device can determine that the only lane line type of the initial lane line 111 can be physical isolation; and determine that the only lane line type of the initial lane line 112 can be a double dashed line type in the actual line type.
[0130] The first lane line type priority can be used to determine a unique lane line type for an initial lane line having multiple lane line types, and then the marking type of a target road marking can be determined based on the unique lane line type, thereby simplifying the processing flow of determining the marking type of the target road marking and further improving the efficiency of automatically determining the marking type of the target road marking.
[0131] As mentioned above, when the target intersection includes a zebra crossing, the electronic device can also determine the marking type of the target road marking based on the zebra crossing.
[0132] As a possible implementation, before the electronic device determines the lane type of the target road marking based on the lane type of the initial lane line, it may also determine the lane type of the target zebra crossing based on the map data in response to the presence of the target zebra crossing at the target intersection. Then, the electronic device may determine the lane type of the target road marking based on the lane type of the target zebra crossing and the lane type of the initial lane line.
[0133] The following is a detailed description of how the electronic device determines whether there is a target zebra crossing in the target intersection:
[0134] In some embodiments, the electronic device may first determine a bounding box of an initial zebra crossing existing in the target intersection based on map data, for example.
[0135] Exemplarily, the electronic device may determine the intersection range of the target intersection based on the map data. Then, the electronic device may determine, based on the map data, a road component with a name marked as a zebra crossing in the road component located within the intersection range as the initial zebra crossing of the target intersection. If the electronic device determines that the initial zebra crossing does not exist in the target intersection based on the map data, the electronic device may, for example, refer to the method described in any of the aforementioned embodiments to perform the aforementioned operation of determining the lane line type of the target road marking based on the lane line type of the initial lane line.
[0136] Optionally, the electronic device determines the enclosing frame of the initial zebra crossing in the target intersection based on the map data, for example, by referring to any existing method for determining the enclosing frame of a map element based on map data, which will not be described in detail here.
[0137] Then, the electronic device can determine whether the enclosing frame of the initial zebra crossing intersects with the target road marking, and whether the angle between at least one side of the enclosing frame and the target road marking is less than or equal to a preset angle.
[0138] If the enclosing frame of the initial zebra crossing intersects with the target road marking, and the angle between at least one side of the enclosing frame and the target road marking is less than or equal to a preset angle, it means that the initial zebra crossing is a zebra crossing that affects the traffic at the target intersection, and the electronic device can determine that the initial zebra crossing is the target zebra crossing.
[0139] If the enclosing frame of the initial zebra crossing does not intersect with the target road marking, and / or the angle between any side of the enclosing frame and the target road marking is less than or equal to a preset angle, it means that the initial zebra crossing has no effect on the traffic at the target intersection. Optionally, the electronic device can determine that the initial zebra crossing is not the target zebra crossing.
[0140] Exemplarily, after determining the target road marking, the electronic device may determine whether the target road marking intersects with the enclosing frame of the initial zebra crossing based on the attribute information of the initial lane line (eg, including the position of each shape point on the initial lane line).
[0141] Exemplarily, the above-mentioned preset angle may be pre-stored in the electronic device. The implementation method of the electronic device calculating the angle between at least one side of the bounding box and the target road marking may refer to any existing method for calculating the angle between two straight lines, which will not be described in detail here. In some embodiments, the angle between at least one side of the bounding box and the target road marking is less than or equal to the preset angle, which can also be referred to as at least one side of the bounding box being substantially parallel to the target road marking. Exemplarily, the preset angle may be, for example, 30 degrees.
[0142] For example, Fig.10 A schematic diagram of a target zebra crossing provided in this application. Fig.10 As shown, in the target intersection 100, the enclosing frame 120 of the zebra crossing intersects with the target road marking 121, and if the angle between the upper and lower sides of the enclosing frame 120 and the target road marking 121 is less than or equal to a preset angle, the zebra crossing can be used as the target zebra crossing.
[0143] Through the above method, the zebra crossing that affects the traffic at the target intersection is taken as the target zebra crossing, so that when the marking type of the target road marking is subsequently determined based on the lane line type of the target zebra crossing, it is determined based on the lane line type of the zebra crossing that affects the traffic at the target intersection, thereby further improving the accuracy of the marking type of the target road marking.
[0144] In some embodiments, the electronic device may also, for example, take each zebra crossing in the target intersection as a target zebra crossing.
[0145] The following is a detailed description of how the electronic device determines the lane line type of the target zebra crossing based on the above map data:
[0146] In some embodiments, the electronic device may determine the lane line type of the target zebra crossing based on the lane line types of the lane lines on both sides of the target zebra crossing, for example.
[0147] For example, the electronic device may first determine, based on the map data, whether a position along a target road marking line intersecting with an enclosing frame of a target zebra crossing and at a distance of a third preset length from the enclosing frame is within the range of other intersections.
[0148] For example, Fig.11 A schematic diagram of another target zebra crossing provided in this application. Fig.11As shown, on both sides of the target zebra crossing 123 within the target intersection 100, the target road marking line that intersects with the enclosing frame of the target zebra crossing is at a position at a third preset length from the enclosing frame, wherein the left position 124 is within the range of other intersections 200, and the right position 125 is not within the range of other intersections.
[0149] Optionally, the electronic device determines "the position along the target road marking that intersects the enclosing frame of the target zebra crossing at a third preset length from the enclosing frame" by referring to any existing method for determining the length along the target direction, which is not repeated here.
[0150] Exemplarily, the third preset length may be pre-stored in the electronic device. Optionally, the third preset length may be a width that can ensure vehicle passage determined by R&D personnel through offline experiments or experience, such as 3 meters.
[0151] If the “position at the third preset length” on both sides of the enclosing frame is not within the range of other intersections, the electronic device can determine the lane line type of the target zebra crossing based on the lane line type at the position.
[0152] Optionally, the lane line at this position may be an initial lane line corresponding to the target intersection, or may not be the initial lane line corresponding to the target intersection.
[0153] For example, if the lane line type of the lane line at the above position (which can be on either side of the target zebra crossing) is a crossable type, indicating that the vehicle can pass, the electronic device can determine that the lane line type of the target zebra crossing is a dotted line type (or a crossable type such as a virtual line type). The above-mentioned crossable type can be described with reference to the example of the above embodiment.
[0154] For example, Fig.12 This is a schematic diagram of the lane line types on both sides of the target zebra crossing enclosing frame provided in this application. Fig.12 As shown, the lane line type of the lane line 132 at the above-mentioned position on the left side of the target zebra crossing 131 is a solid line type, and the lane line type of the lane line 133 at the above-mentioned position on the right side is a dotted line type, then the electronic device can determine that the lane line type of the target zebra crossing 131 is a dotted line.
[0155] If the lane line type of the lane line at the above-mentioned position is not a crossable type, that is, the lane line types of the initial lane lines at the position on both sides of the target zebra crossing are not crossable types, indicating that the vehicle cannot pass, the electronic device can determine the lane line type of the target zebra crossing based on the preset second lane line type priority and the lane line type of the initial lane line at the position.
[0156] Exemplarily, the second lane line type priority may be, for example: lane line type that can be crossed on one side (or called virtual and real line type) > single yellow line type > double yellow line type > physical separation. For example, if the lane line types of the initial lane lines at the position on both sides of the target zebra crossing are single yellow line type and physical separation, then based on the second lane line type priority, the electronic device may determine the single yellow line type of the lane line type of the target zebra crossing.
[0157] If the electronic device determines that only one side of the two sides of the bounding box is not within the range of other intersections, the electronic device can optionally use the lane line type of the lane line at that position as the lane line type of the target zebra crossing.
[0158] If the electronic device determines that the positions on both sides of the above-mentioned enclosing box are within the range of other intersections, it means that the vehicle cannot pass through the zebra crossing. Then the electronic device can determine that the lane line type of the target zebra crossing is a solid line type (or other non-crossable lane line types, etc.).
[0159] In some embodiments, before determining the lane type of the target zebra crossing based on the above map data, the electronic device may also merge target zebra crossings that are closer to each other to reduce the amount of subsequent data processing and improve the efficiency of determining the lane type of the target zebra crossing.
[0160] For example, Fig.13 This is a schematic diagram of a combined target zebra crossing provided by this application. Fig.13 As shown, the electronic device can, for example, merge the enclosing frames of two target zebra crossings into one enclosing frame 140 when the distance between the enclosing frames of the two target zebra crossings is less than or equal to a preset distance (eg, 30 cm) to simplify subsequent processing logic.
[0161] The following is a detailed description of how the electronic device determines the lane type of the target road marking based on the lane type of the target zebra crossing and the lane type of the initial lane:
[0162] In some embodiments, the electronic device may, for example, use the lane line type of the target zebra crossing as the only lane line type of the initial lane line when the lane line type of the initial lane line is a virtual line type and the initial lane line intersects with the target zebra crossing. Then, the electronic device may determine the lane line type of the target road marking based on the only lane line type of the initial lane line. The specific implementation of the electronic device determining the lane line type of the target road marking based on the only lane line type of the initial lane line can refer to the method described in the above embodiment and will not be repeated here.
[0163] Optionally, if the initial lane line intersecting the target zebra crossing is a lane line of any actual line type or a physically isolated type, the electronic device may determine the lane line type of the target road marking based on the lane line type of the initial lane line.
[0164] Through the above method, when the lane line type of the initial lane line is a virtual line type, that is, when the lane line does not exist in the real world, the lane line type based on the target zebra crossing is used as the only lane line type of the initial lane line, and the influence of the zebra crossing as a road component in the target intersection on the trafficability of the intersection is taken into account, thereby further improving the accuracy of the lane line type of the target road marking.
[0165] In this embodiment, when there is a target zebra crossing in the target intersection, the lane line type of the target zebra crossing can be translated, and the lane line type of the target road marking can be determined based on the lane line type of the target zebra crossing and the lane line type of the aforementioned initial lane line. Through the above method, the influence of the passability of the target zebra crossing in the target intersection on the lane line type of the target road marking is taken into account, and the accuracy of the lane line type of the target road marking is further improved.
[0166] As another possible implementation, the electronic device may also pre-store a mapping relationship between a zebra crossing logo and a lane line type of the zebra crossing. The electronic device may, for example, determine a mapping relationship between the logo of the zebra crossing and the lane line type of the zebra crossing in response to the presence of a target zebra crossing at the target intersection based on the logo of the target zebra crossing and the mapping relationship between the logo of the zebra crossing and the lane line type of the zebra crossing. Then, the electronic device may perform an operation of determining the lane line type of the target road marking based on the lane line type of the target zebra crossing and the lane line type of the initial lane line.
[0167] It should be understood that the present application does not limit the application scenarios of the marking type of the target road marking determined by the above map data processing method. Exemplarily, the marking type of the target road marking can be used to update map data, or any other scenario that requires data processing based on the road marking type, such as the marking type of the target road marking, to generate the prohibited information of the target intersection.
[0168] Taking the target road marking type as an example, it should be understood that the execution subject of generating the target road marking type can also be any electronic device with processing capability. The electronic device and the electronic device for determining the target road marking type can be the same device or different devices, and this application does not limit this.
[0169] As a possible implementation manner, the electronic device may, for example, respond to the presence of target road markings of a non-crossable type among the target road markings at the target intersection, and the number of target road markings of a non-crossable type is less than or equal to a preset number, and generate a no-entry information for the target intersection based on the marking types of the target road markings.
[0170] Exemplarily, the above-mentioned preset number may be, for example, 1, and the present application does not limit the value of the preset number.
[0171] If the number of target road markings of the non-crossable type is less than or equal to a preset number, it means that the target intersection is not an intersection with complex scenes, and the accuracy of the marking type of the target road markings determined by the aforementioned automated method is relatively high. Therefore, it can be ensured that the no-entry information of the target intersection generated based on the marking type of the target road markings of the target intersection is relatively accurate.
[0172] Among them, the no-travel information is used to indicate that the vehicle is prohibited from entering the target intersection from the target entry road and exiting the target intersection from the target exit road. Optionally, the specific implementation method of the electronic device generating the no-travel information of the target intersection based on the marking type of the above-mentioned target road marking can refer to any existing method of automatically generating the no-travel information of the target intersection based on the marking type of the road marking, which will not be repeated here. For example, if there is only one marking type of the target road marking in the target intersection, the electronic device can determine that the type of the intersection is the marking type of the target road marking. Then, based on the marking type of the target road marking, the no-travel information of the target intersection is determined. Taking the marking type of the target road marking as the crossable type as an example, the electronic device can determine that there is no no-travel information at the intersection. If the marking type of the target road marking has an uncrossable type, the electronic device can automatically generate the no-travel information of the target intersection based on the marking type of the target road marking of the uncrossable type.
[0173] If the number of target road markings of the non-crossable type is greater than a preset number, it means that the target intersection is an intersection with a complex scene. Optionally, the electronic device may, for example, output a task prompt of "reminding manual personnel to determine the marking type of the target road markings at the target intersection" to enable manual personnel to review the marking type of the target road markings at the target intersection to ensure the accuracy of the no-entry information of the target intersection generated based on the marking type of the target road markings.
[0174] In this embodiment, by obtaining the marking type of the target road marking of the target intersection based on the method described in any of the above embodiments, when there are target road markings of the marking type that cannot be crossed, and the number of target road markings of the marking type that cannot be crossed is less than or equal to the preset number, the no-travel information of the target intersection can be automatically generated, thereby realizing the automatic generation of the no-travel information of the target intersection and improving the generation efficiency of the no-travel information of the target intersection. Furthermore, by generating the no-travel information of the target intersection through the marking type of the target road marking with higher accuracy, the accuracy of the marking type of the target road marking used to generate the no-travel information of the target intersection is ensured, thereby ensuring the accuracy of the no-travel information of the target intersection.
[0175] The application also provides a navigation method. Fig.14 A flowchart of a navigation method provided by this application. Fig.14 As shown, the method may include the following steps:
[0176] S401: Determine a target planned route based on navigation location information and no-entry information at a target intersection.
[0177] The no-entry information is used to indicate that vehicles are prohibited from entering the target intersection from the target entry road and exiting the target intersection from the target exit road. As mentioned above, the no-entry information can be determined based on the marking type of the target road marking at the target intersection. The marking type of the target road marking can be determined based on the map data processing method described in any of the above embodiments.
[0178] Optionally, the above navigation location information may include, for example, the location of the navigation destination. In some embodiments, the navigation location information may also include, for example, the location of a waypoint, etc.
[0179] Optionally, the execution subject of the navigation method may be, for example, a map application. The map application may provide users with functions such as electronic maps and navigation. Taking the execution subject of the navigation method as an example, the map application may optionally determine the method for planning the target route based on the navigation location information and the no-entry information of the target intersection, which may refer to any existing navigation route planning method, and will not be described in detail here.
[0180] S402: Navigate based on the target route planning.
[0181] Optionally, the map application may, for example, respond to a user-triggered operation to start navigation and perform navigation based on the planned route of the destination.
[0182] In this embodiment, the line type of the target road marking determined by the map data processing method described in any of the above embodiments can determine the no-entry information of the target intersection. Based on the no-entry information and the navigation location information, the target planned route can be determined, and navigation can be performed based on the target planned route. The line type of the target road marking determined by the above-mentioned automated map data processing method has a high accuracy, thereby improving the accuracy of the target planned route determined by the line type of the target road marking, thereby improving the accuracy of navigation based on the target planned route and improving the user experience.
[0183] Fig.15 FIG. 1 is a structural diagram of a map data processing device 160 provided in this application. Fig.15 As shown, the map data processing device 160 includes: an acquisition module 161, and a processing module 162.
[0184] The acquisition module 161 is used to determine the initial lane line corresponding to the target intersection from the map data, wherein the initial lane line overlaps with the intersection range of the target intersection.
[0185] The processing module 162 is used to determine the target road marking of the target intersection according to the attribute information of the initial lane line; and determine the marking type of the target road marking based on the lane line type of the initial lane line. The attribute information includes: the lane line type of the initial lane line; the target road marking runs through the target intersection; and the marking type of the target road marking is used to indicate whether crossing the target road marking is allowed.
[0186] Optionally, the processing module 162 is specifically used to pre-process the initial lane line according to the attribute information of the initial lane line to obtain the pre-processed lane line; and determine the target road marking line based on the pre-processed lane line. The pre-processing at least includes: connecting the initial lane lines with the same trend, and / or deleting the interfering lane lines in the initial lane lines; the interfering lane lines are the initial lane lines that are not used to restrict the driving direction of the vehicle in the target intersection.
[0187] Optionally, the processing module 162 is specifically configured to respond to the preprocessed lane line being able to intersect with the two sides of the target intersection, use the lane line on the preprocessed lane line that is within the intersection range of the target intersection as the target road marking line; respond to the preprocessed lane line not being able to intersect with the two sides of the target intersection, and there is no preprocessed lane line intersecting with the two sides of the target intersection, extend the preprocessed lane line that is unable to intersect with the two sides of the target intersection to obtain an extended lane line; and use the lane line on the extended lane line that is within the intersection range of the target intersection as the target road marking line. The extended lane line intersects with the two sides of the target intersection.
[0188] Optionally, the processing module 162 is specifically configured to determine the marking type of the target road marking based on the judgment result of whether the lane line type of the initial lane line belongs to the target type, wherein the target type is one of a crossable type, a non-crossable type, and a single-side crossable type.
[0189] Optionally, the processing module 162 is specifically used to determine the target road marking line type in response to the lane line types of the initial lane lines all belonging to the same target type. Alternatively, the processing module 162 is specifically used to determine the target road marking line type based on the length of at least one lane line section on the target road marking line in response to the target type to which the lane line types of the initial lane lines belong being different. The lane line types of the at least one lane line section belong to the same target type.
[0190] Optionally, the processing module 162 is further configured to determine the lane line type of the target road marking based on the map data in response to the presence of a target zebra crossing in the target intersection before determining the lane line type of the target road marking based on the lane line type of the initial lane line. Optionally, the processing module 162 is specifically configured to determine the lane line type of the target road marking based on the lane line type of the target zebra crossing and the lane line type of the initial lane line.
[0191] Optionally, the processing module 162 is specifically used to respond to the situation that the lane line type of the initial lane line is a virtual line type and the initial lane line intersects with the target zebra crossing, and use the lane line type of the target zebra crossing as the only lane line type of the initial lane line; based on the only lane line type of the initial lane line, determine the marking type of the target road marking.
[0192] Optionally, the processing module 162 is further configured to generate a no-entry information of the target intersection based on the marking type of the target road marking after determining the marking type of the target road marking based on the lane line type of the initial lane line, in response to the presence of a target road marking of a non-crossable type among the target road markings of the target intersection, and the number of the target road markings of the non-crossable type is less than or equal to a preset number. The no-entry information is used to indicate that a vehicle is prohibited from entering the target intersection from a target entry road and exiting the target intersection from a target exit road.
[0193] The map data processing device 160 provided in the present application is used to execute the aforementioned map data processing method embodiment for determining the marking type of a target road marking. Its implementation principle and technical effect are similar and will not be described in detail.
[0194] Fig.16 FIG. 1 is a schematic diagram of the structure of a navigation device 170 provided in this application. Fig.16 As shown, the device 170 includes: an acquisition module 171 and a generation module 172. Among them,
[0195] The determination module 171 is used to determine the target planned route based on the navigation location information and the prohibited information of the target intersection. The prohibited information is used to indicate that vehicles are prohibited from entering the target intersection from the target entry road and exiting the target intersection from the target exit road; the prohibited information is determined based on the marking type of the target road marking at the target intersection; the marking type of the target road marking is determined based on the map data processing method as described in any of the above embodiments.
[0196] The navigation module 172 is used to plan a route for navigation based on the target.
[0197] The navigation device 170 provided in the present application is used to execute the aforementioned navigation method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail.
[0198] Fig.17 A schematic diagram of the hardware structure of an electronic device provided in this application. Fig.17 The electronic device 50 shown includes a memory 51, a processor 52, and a communication interface 53. The memory 51, the processor 52, and the communication interface 53 are communicatively connected to each other. For example, the memory 51, the processor 52, and the communication interface 53 can be communicatively connected by a network connection. Alternatively, the electronic device 50 may further include a bus 54. The memory 51, the processor 52, and the communication interface 53 are communicatively connected to each other via the bus 54. Fig.17 The electronic device 50 is a memory 51 , a processor 52 , and a communication interface 53 that are connected to each other via a bus 54 .
[0199] The memory 51 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 51 may store a program. When the program stored in the memory 51 is executed by the processor 52, the processor 52 and the communication interface 53 are used to execute the map data processing and / or navigation method described in any of the aforementioned embodiments. The memory may also store data required by the map data processing and / or navigation method.
[0200] The processor 52 may be a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits.
[0201] The processor 52 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, the map data processing and / or navigation of the present application may be completed by hardware integrated logic circuits or software instructions in the processor 52. The above-mentioned processor 52 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and may implement or execute the methods, steps and logic block diagrams disclosed in the following embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the following embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 51, and the processor 52 reads the information in the memory 51 and completes the map data processing and / or navigation of the present application in combination with its hardware.
[0202] The communication interface 53 uses a transceiver module such as, but not limited to, a transceiver to implement communication between the electronic device 50 and other devices or a communication network. For example, a data set can be acquired through the communication interface 53 .
[0203] When the electronic device 50 described above includes a bus 54 , the bus 54 may include a path for transmitting information between various components of the electronic device 50 (eg, the memory 51 , the processor 52 , and the communication interface 53 ).
[0204] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above embodiments.
[0205] The present application also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of the electronic device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the electronic device implements the map data processing and / or navigation method provided by the various embodiments described above.
[0206] The term "plurality" in this article refers to two or more than two. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0207] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0208] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A map data processing method, characterized in that: The method comprises: Determine an initial lane line corresponding to the target intersection from the map data; the initial lane line overlaps with the intersection range of the target intersection; Determine the target road marking of the target intersection according to the attribute information of the initial lane line; the attribute information includes: the lane line type of the initial lane line; the target road marking runs through the target intersection; Based on the lane line type of the initial lane line, a lane line type of the target road marking is determined; the lane line type of the target road marking is used to indicate whether crossing the target road marking is allowed.
2. The method according to claim 1, characterized in that The step of determining a target road marking at the target intersection according to the attribute information of the initial lane line includes: Preprocessing the initial lane lines according to the attribute information of the initial lane lines to obtain preprocessed lane lines; the preprocessing at least includes: connecting the initial lane lines with the same trend, and / or deleting the interfering lane lines in the initial lane lines; the interfering lane lines are the initial lane lines that are not used to restrict the driving direction of the vehicle in the target intersection; Based on the preprocessed lane line, the target road marking line is determined.
3. The method according to claim 2, characterized in that The determining the target road marking line based on the preprocessed lane line includes: In response to the preprocessed lane line being able to intersect with two sides of the target intersection, using the lane line on the preprocessed lane line that is within the intersection range of the target intersection as the target road marking; In response to the preprocessed lane line failing to intersect with the two sides of the target intersection, and no preprocessed lane line intersects with the two sides of the target intersection, the preprocessed lane line failing to intersect with the two sides of the target intersection is extended to obtain an extended lane line; the lane line within the intersection range of the target intersection on the extended lane line is used as the target road marking; the extended lane line intersects with the two sides of the target intersection.
4. The method according to any one of claims 1 to 3, characterized in that: The determining the lane line type of the target road marking line based on the lane line type of the initial lane line includes: Based on the judgment result of whether the lane line type of the initial lane line belongs to the target type, the marking type of the target road marking is determined; the target type is one of a crossable type, a non-crossable type, and a single-side crossable type.
5. The method according to claim 4, characterized in that The determining the marking type of the target road marking line based on the judgment result of whether the lane line type of the initial lane line belongs to the target type includes: In response to the lane line types of the initial lane lines all belonging to the same target type, determining the marking type of the target road marking line to be the target type; or, In response to the existence of different target types to which the lane line type of the initial lane line belongs, the lane line type of the target road marking line is determined based on the length of at least one lane line segment on the target road marking line; the lane line type of the at least one lane line segment belongs to the same target type.
6. The method according to any one of claims 1 to 3, characterized in that: Before determining the lane line type of the target road marking line based on the lane line type of the initial lane line, the method further includes: In response to the existence of a target zebra crossing in the target intersection, determining a lane line type of the target zebra crossing based on the map data; The determining the lane line type of the target road marking line based on the lane line type of the initial lane line includes: Based on the lane line type of the target zebra crossing and the lane line type of the initial lane line, the lane line type of the target road marking is determined.
7. The method according to claim 6, characterized in that The determining the lane type of the target road marking line based on the lane type of the target zebra crossing and the lane type of the initial lane line comprises: In response to the lane line type of the initial lane line being a virtual line type, and the initial lane line intersecting with the target zebra crossing, using the lane line type of the target zebra crossing as the only lane line type of the initial lane line; Based on the unique lane line type of the initial lane line, a marking type of the target road marking is determined.
8. The method according to any one of claims 1 to 3, characterized in that: After determining the lane line type of the target road marking line based on the lane line type of the initial lane line, the method further includes: In response to the presence of a non-crossable type of target road markings among the target road markings at the target intersection, and the number of the non-crossable type of target road markings is less than or equal to a preset number, no-entry information for the target intersection is generated based on the marking types of the target road markings; the no-entry information is used to indicate that vehicles are prohibited from entering the target intersection from a target entry road and exiting the target intersection from a target exit road.
9. A navigation method, characterized in that: The method comprises: Based on the navigation location information and the no-entry information of the target intersection, a target planned route is determined; the no-entry information is used to indicate that vehicles are prohibited from entering the target intersection from a target entry road and exiting the target intersection from a target exit road; the no-entry information is determined based on the marking type of the target road marking at the target intersection; the marking type of the target road marking is determined based on the map data processing method according to any one of claims 1 to 8; A route is planned and navigation is performed based on the target.
10. A map data processing device, characterized in that: The device comprises: A determination module, used to determine an initial lane line corresponding to a target intersection from map data; the initial lane line overlaps with an intersection range of the target intersection; A processing module is used to determine the target road marking of the target intersection according to the attribute information of the initial lane line; the attribute information includes: determining the marking type of the target road marking based on the lane line type of the initial lane line; the lane line type of the initial lane line; the marking type of the target road marking is used to indicate whether crossing the target road marking is allowed.
11. An electronic device, characterized in that: include: Processor and memory; The processor is communicatively connected to the memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.
