Recognition Method, Device, Equipment and Storage Medium for Lane Lines in General Layout Plan
By sorting lines according to the layers and colors in the general plan, the lane line characteristics are extracted and verified, and the problem of low lane line recognition efficiency and accuracy in the general plan diagram is solved, and efficient and accurate lane line recognition is achieved.
Patent Information
- Application Number
- CN202111493474.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-12-08
AI Technical Summary
In the prior art, the recognition efficiency and accuracy of lane lines in the overall plan drawing are generally low, especially in complex drawing designs.
By sorting the lines in the total plan by color and layer, extracting pairs of lines that meet the characteristics of lane lines, filtering out suspected lane lines, and verifying them to identify the target lane lines.
Efficient and accurate lane line recognition is achieved in complex overall planar diagrams, simplifying the processing flow, improving the recognition efficiency, and avoiding the processing of complex images.
Smart Images

Figure CN114283302B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent recognition of architectural drawings, and particularly to a method, device, equipment and storage medium for identifying lane lines in a general layout plan. Background Art
[0002] Currently, in architectural drawings, when it comes to calculating fire safety distances and problems in the field of calculating intersecting lanes, all lane lines need to be identified.
[0003] In the prior art, lane lines in CAD architectural drawings are mainly identified through image recognition technology. However, the general layout plan has a relatively large scope, the drawing design scheme is relatively complex, and there is a large amount of interference data. Using image recognition technology, the recognition efficiency and accuracy are generally relatively low. Summary of the Invention
[0004] This application provides a method, device, equipment and storage medium for identifying lane lines in a general layout plan, so as to solve the technical problem that the efficiency and accuracy of lane line recognition in the prior art are generally relatively low.
[0005] In a first aspect, an embodiment of this application provides a method for identifying lane lines in a general layout plan, including:
[0006] Classify all the lines in the general layout plan according to color and layer, and divide the lines belonging to the same layer and having the same color into the same line set;
[0007] For each of the line sets, extract line pairs that meet the lane line characteristics;
[0008] From the line pairs that meet the lane line characteristics in each of the line sets, screen out suspected lane lines;
[0009] Verify each of the suspected lane lines, and use the suspected lane lines that pass the verification as the target lane lines in the general layout plan.
[0010] Optionally, the extracting of the line pairs that meet the lane line characteristics includes:
[0011] If there are two parallel line segments of equal length in the line set, and the first distance between the two parallel line segments is within a preset distance range, then extract the two parallel line segments as the line pair that meets the lane line characteristics; or,
[0012] If there are two parallel arc line segments with the same arc center point and the same arc central angle in the line set, and the second distance between the two parallel arc line segments is within a preset distance range, then extract the two parallel arc line segments as the line pair that meets the lane line characteristics; or,
[0013] If there are two arc segments that are mirror-symmetric in the set of lines, then these two arc segments are extracted as the pair of lines that meet the lane line characteristics.
[0014] Optionally, screening out suspected lane lines from the pairs of lines that meet the lane line characteristics in each set of lines includes:
[0015] For each pair of lines that meet the lane line characteristics in a set of lines, calculate the proportion of the pair of lines in all the lines that belong to the same layer as the set of lines. If it is determined that the proportion exceeds a preset proportion, then the pair of lines is used as the suspected lane line.
[0016] Optionally, verifying each suspected lane line and using the suspected lane lines that pass the verification as the target lane lines in the general layout plan includes:
[0017] Extract the building outlines of all the buildings in the general layout plan;
[0018] For each suspected lane line, if it is determined that the suspected lane line does not pass through the building outline and is not within the range of the building outline, then the suspected lane line is used as the target lane line.
[0019] Optionally, verifying each suspected lane line and using the suspected lane lines that pass the verification as the target lane lines in the general layout plan includes:
[0020] For each suspected lane line, if there is a line that belongs to the same layer as the suspected lane line and is located in the middle of the suspected lane line, then the suspected lane line is used as the target lane line.
[0021] Optionally, after extracting the pairs of lines that meet the lane line characteristics, it further includes:
[0022] Store each pair of lines separately in the target storage space.
[0023] Optionally, the preset distance range is 4 to 9 meters, and the preset value is 500 centimeters.
[0024] In a second aspect, an embodiment of the present application provides a device for identifying lane lines in a general layout plan, including:
[0025] A classification module, configured to classify all the lines in the general layout plan according to color and layer, and divide the lines that belong to the same layer and have the same color into the same set of lines;
[0026] An extraction module, configured to extract pairs of lines that meet the lane line characteristics for each set of lines;
[0027] A screening module, configured to screen out suspected lane lines from the line pairs that meet the lane line features in each of the line sets.
[0028] A verification module, configured to verify each of the suspected lane lines, and use the suspected lane lines that pass the verification as the target lane lines in the general layout plan.
[0029] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a communication bus. Among them, the processor and the memory complete mutual communication through the communication bus;
[0030] The memory is configured to store a computer program;
[0031] The processor is configured to execute the program stored in the memory to implement the method for identifying lane lines in the general layout plan described in the first aspect.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, it implements the method for identifying lane lines in the general layout plan described in the first aspect.
[0033] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: In the method provided by the embodiments of the present application, all lines in the general layout plan are classified according to layers and colors, and line pairs that meet the lane line features are extracted. From the line pairs that meet the lane line features, suspected lane lines are screened out, and the suspected lane lines that pass the verification are used as the target lane lines in the general layout plan. In the embodiments of the present application, lane lines are identified according to the drawing characteristics of lane lines in the general layout plan. Even in a relatively complex general layout plan, lane lines can be accurately identified. Moreover, in the implementation method provided by the embodiments of the present application, there is no need to rely on the image of the general layout plan, and there is no need to process complex images. The processing method is simpler and the recognition efficiency is higher. Description of the Drawings
[0034] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments that conform to the present invention, and are used together with the specification to explain the principles of the present invention.
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0036] Figure 1 It is a schematic flowchart of a method for identifying lane lines in a general layout plan provided by an embodiment of the present application;
[0037] Figure 2 It is a schematic structural diagram of a lane line recognition device provided by an embodiment of the present application in a general layout plan;
[0038] Figure 3 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Specific embodiments
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0040] Although the general layout plan is relatively complex and there are many interferences, resulting in low drawing quality, the drawing of lane lines still has rules to follow. Although most of the layer names are meaningless, the lane lines in the same drawing frame will be distributed on the same layer and drawn according to the same specification of lines. And from a business perspective, understanding lane lines, in the general layout plan, mainly bilateral lane lines will be drawn, and at the same time, lane center lines may appear.
[0041] Based on the business characteristics of lane lines in the general layout plan, an embodiment of the present application provides a method for recognizing lane lines in a general layout plan to solve the technical problem that the efficiency and accuracy of lane line recognition in the prior art are generally relatively low.
[0042] As Figure 1 shown, a method for recognizing lane lines in a general layout plan provided by an embodiment of the present application specifically includes the following steps:
[0043] Step 101, classify all the lines in the general layout plan according to color and layer, and divide the lines belonging to the same layer and having the same color into the same line set;
[0044] In specific implementation, traverse all the lines in the general layout plan, where the lines include: straight line segments and arc line segments, etc. Then classify according to color and layer, and regard the lines belonging to the same layer and having the same color as the same class and divide them into the same line set.
[0045] For a certain layer, there can be lines of multiple colors. After classifying by color and layer, line sets of different colors in different layers are obtained, that is, for one layer, multiple line sets may be classified. For example: After classifying all the lines in the general layout plan by color and layer, the following are obtained: for layer A, the yellow line set of layer A and the green line set of layer A; for layer B, the red line set of layer B and the blue line set of layer B, and so on.
[0046] Step 102, for each of the said line sets, extract line pairs that meet the lane line characteristics;
[0047] Generally, the general layout plan contains the following types of lane lines: parallel straight-line segment lane lines, parallel arc-segment lane lines, and symmetric arc-segment lane lines, etc. Among them, the characteristics of the parallel straight-line segment lane lines are: two parallel line segments are of equal length, and the distance between the two parallel line segments meets a preset distance range and the distance is a multiple of the preset value; the characteristics of the parallel arc-segment lane lines are: two parallel arc segments have the same arc center point (which can be understood as the center point of a circle), the same arc angle, and meet the above-mentioned preset distance range, and the distance is a multiple of the preset value; the characteristics of the symmetric arc-segment lane lines are: two arc segments are mirror-symmetric, specifically, two symmetric arc segments have the same arc angle, and the two endpoints in the same direction of the symmetric arc segments are connected to the two endpoints of the parallel straight-line segment.
[0048] Based on the characteristics of the above-mentioned lane lines, extract line pairs that meet the above-mentioned lane line characteristics from each of the said line sets, specifically including: if there are two parallel line segments of equal length in the line set, and the first distance between the two parallel line segments is within the preset distance range and the first distance is an integer multiple of the preset value, then extract the two parallel line segments as the line pair that meets the lane line characteristics; or,
[0049] if there are two parallel arc segments with the same arc center point and the same arc angle in the line set, and the second distance between the two parallel arc segments is within the preset distance range and the second distance is an integer multiple of the preset value, then extract the two parallel arc segments as the line pair that meets the lane line characteristics; or,
[0050] if there are two mirror-symmetric arc segments in the line set, then extract the two arc segments as the line pair that meets the lane line characteristics.
[0051] Traverse the CAD drawing of the building general layout plan by layer and line color, and extract the line pairs that meet the above-mentioned lane line characteristics. The selected line pairs need to be stored separately for later verification.
[0052] In specific implementation, the preset distance range can be set to 4 - 9 meters, the preset value can be set to 500 centimeters, and the integer multiple can be taken as 8 - 18 times. Among them, the specific values of the preset distance range, preset value, and integer multiple can be set according to the actual situation.
[0053] Step 103: From the line pairs that meet the lane line characteristics in each of the line sets, screen out the suspected lane lines.
[0054] Specifically, for each line pair in the line set, calculate the ratio of the line pair to all the lines belonging to the same layer as the line set. If it is determined that the ratio exceeds the preset ratio, then the line pair is regarded as a suspected lane line. In specific implementation, the preset ratio can be set to 50%.
[0055] For the convenience of understanding, an example is given here. If there are 200 yellow lines in layer A, among which the line pairs that meet the lane line characteristics are 80 pairs (a total of 160 lines), and there are 400 green lines in layer A, among which the line pairs that meet the lane line characteristics are 180 pairs (a total of 360 lines), then for the yellow line set in layer A, the ratio of the line pairs that meet the lane line characteristics to all the lines belonging to the same layer as the line set is: 160 / (200 + 400) = 26.67%; for the green line set in layer A, the ratio of the line pairs that meet the lane line characteristics to all the lines belonging to the same layer as the line set is: 360 / (200 + 400) = 60%. If the preset ratio is set to 50%, then for the yellow line set in layer A, the obtained ratio is less than the preset ratio, so the line pairs in the yellow line set in layer A cannot be regarded as suspected lane lines; while for the green line set in layer A, the obtained ratio is greater than the preset ratio, so the line pairs in the green line set in layer A are regarded as suspected lane lines.
[0056] Step 104: Verify each of the suspected lane lines, and use the suspected lane lines that pass the verification as the target lane lines in the general layout plan.
[0057] Among them, the verification characteristics of the lane lines mainly include: 1. Reach the building outline and cannot pass through the building outline; 2. Have a lane center line in the middle of the lane line. Based on these two business characteristics of the lane, the suspected lane lines can be verified from two perspectives, so as to screen out the target lane lines in the general layout plan.
[0058] The first verification method: According to the relationship between the lane line and the building
[0059] Specifically, extract the building outlines of all the buildings in the general layout plan.
[0060] For each of the suspected lane lines, if it is determined that the suspected lane line does not cross the building outline and is not within the range of the building outline, then the suspected lane line is taken as the target lane line. In practical applications, when determining whether a suspected lane line crosses the building outline, the situation where the suspected lane line is connected to any of the building outlines needs to be excluded. That is, if a suspected lane line is connected to a building outline, then the suspected lane line is the target lane line..
[0061] From a business perspective, the lane line is the range provided for lane driving. From this perspective, the lane lines in the general layout plan will ultimately lead to each building outline. If a suspected lane line is connected to a certain building outline and does not cross the building outline and is not within the range of the building outline, then it is determined that the suspected lane line is the target lane line.
[0062] The second verification method: according to the characteristic that there is a lane center line in the middle of the lane line
[0063] Specifically, for each of the suspected lane lines, if it is determined that there is a line that belongs to the same layer as the suspected lane line and is located in the middle of the suspected lane line, then the suspected lane line is taken as the target lane line.
[0064] If there is also a line that belongs to the same layer as the suspected lane line and has the same color in the middle of the suspected lane line, then it is determined that the lane center line is recognized, and the suspected lane line is taken as the target lane line.
[0065] For example: There is a line in the middle of the suspected lane line M that belongs to the same layer as the suspected lane line M and is located in the middle of the suspected lane line M, that is, a lane center line is drawn in the middle of the suspected lane line M, then it is determined that the suspected lane line M is the target lane line.
[0066] Another example: There is no line in the middle of the suspected lane line N that belongs to the same layer as the suspected lane line N and is located in the middle of the suspected lane line N, that is, no lane center line is drawn in the middle of the suspected lane line N, then it is determined that the suspected lane line N is not the target lane line.
[0067] In addition, it should also be noted that in the specific implementation, any one of the above two verification methods can be used. In order to make the recognized lane lines more accurate, the above two verification methods can be used simultaneously. Only when both of the above two verification methods pass, the suspected lane line is determined as the target lane line.
[0068] In the embodiments of the present application, all the lines in the general layout plan are classified according to layers and colors, and line pairs that meet the lane line characteristics are extracted. From the line pairs that meet the lane line characteristics, suspected lane lines are screened out, and the suspected lane lines that pass the verification are used as the target lane lines in the general layout plan. In the embodiments of the present application, according to the drawing characteristics of the lane lines in the general layout plan, the lane lines are recognized. Even in a relatively complex general layout plan, the lane lines can be accurately recognized. Moreover, in the implementation method provided in the embodiments of the present application, there is no need to rely on the image of the general layout plan, and there is no need to process complex images. The processing method is simpler and the recognition efficiency is higher.
[0069] Based on the same concept, in the embodiments of the present application, a device for recognizing lane lines in a general layout plan is provided. For the specific implementation of this device, reference can be made to the description in the method embodiment part, and the repeated parts will not be elaborated again. As Figure 2 shown, the device mainly includes:
[0070] A classification module 201, configured to classify all the lines in the general layout plan according to colors and layers, and divide the lines belonging to the same layer and having the same color into the same line set;
[0071] An extraction module 202, configured to extract, for each of the line sets, line pairs that meet the lane line characteristics;
[0072] A screening module 203, configured to screen out suspected lane lines from the line pairs that meet the lane line characteristics in each of the line sets;
[0073] A verification module 204, configured to verify each of the suspected lane lines, and use the suspected lane lines that pass the verification as the target lane lines in the general layout plan.
[0074] In a specific embodiment, the extraction module 202 is configured to, if there are two parallel line segments of equal length in the line set, and the first distance between the two parallel line segments is within a preset distance range, then extract the two parallel line segments as the line pair that meets the lane line characteristics; or, if there are two parallel arc line segments in the line set that have the same arc center point and the same central angle, and the second distance between the two parallel arc line segments is within a preset distance range, then extract the two parallel arc line segments as the line pair that meets the lane line characteristics; or, if there are two arc line segments that are mirror-symmetrical in the line set, then extract the two arc line segments as the line pair that meets the lane line characteristics.
[0075] In a specific embodiment, the screening module 203 is configured to calculate, for each pair of lines that satisfy the lane line characteristics in each of the line sets, the proportion of the pair of lines in all the lines belonging to the same layer as the line set. If it is determined that the proportion exceeds a preset proportion, the pair of lines is used as the suspected lane line.
[0076] The verification features for lane lines mainly include: 1. Reaching the building outline and not passing through the building outline; 2. Having a lane center line in the middle of the lane line. Based on these two business characteristics of the lane, the suspected lane lines can be verified from two perspectives, so as to screen out the target lane lines in the general layout plan. Specifically as follows:
[0077] In a specific embodiment, the verification module 204 is configured to extract the building outlines of all the buildings in the general layout plan; for each of the suspected lane lines, if it is determined that the suspected lane line does not pass through the building outline and is not within the range of the building outline, the suspected lane line is used as the target lane line. In practical applications, when determining whether a suspected lane line passes through the building outline, the situation where the suspected lane line is connected to any of the building outlines needs to be excluded. That is, if a suspected lane line is connected to a building outline, the suspected lane line is the target lane line.
[0078] From a business perspective, the lane line is the range for vehicle driving on the lane. From this perspective, the lane lines in the general layout plan will ultimately lead to the outline of each building.
[0079] In a specific embodiment, the verification module 204 is configured to, for each of the suspected lane lines, if it is determined that there is a line that belongs to the same layer as the suspected lane line and is located in the middle of the suspected lane line, the suspected lane line is used as the target lane line.
[0080] If there is also a line that belongs to the same layer as the suspected lane line and has the same color in the middle of the suspected lane line, it is determined that the lane center line is recognized, and the suspected lane line is used as the target lane line.
[0081] In addition, it should be noted that in specific implementation, any one of the above two verification methods can be adopted. In order to make the recognized lane lines more accurate, the above two verification methods can be adopted simultaneously. Only when both of the above two verification methods pass, the suspected lane line is determined as the target lane line.
[0082] In a specific embodiment, a lane line recognition device provided in an embodiment of the present application further includes: a storage module, configured to separately store each of the pairs of lines into a target storage space.
[0083] In a specific embodiment, the preset distance range is 4 to 9 meters, and the preset value is 500 centimeters.
[0084] In the embodiment of the present application, all lines are classified according to layers and colors in the general layout plan, and line pairs that meet the lane line characteristics are extracted. From the line pairs that meet the lane line characteristics, suspected lane lines are screened out, and the suspected lane lines that pass the verification are used as the target lane lines in the general layout plan. In the embodiment of the present application, according to the drawing characteristics of the lane lines in the general layout plan, the lane lines are identified. Even in a relatively complex general layout plan, the lane lines can be accurately identified. Moreover, in the implementation method provided in the embodiment of the present application, there is no need to rely on the image of the general layout plan, and there is no need to process complex images. The processing method is simpler and the recognition efficiency is higher.
[0085] Based on the same concept, an electronic device is also provided in the embodiment of the present application, as Figure 3 shown. The electronic device mainly includes: a processor 301, a memory 302, and a communication bus 303. Among them, the processor 301 and the memory 302 communicate with each other through the communication bus 303. Among them, a program executable by the processor 301 is stored in the memory 302, and the processor 301 executes the program stored in the memory 302 to implement the following steps:
[0086] Classify all lines in the general layout plan according to colors and layers, and divide the lines belonging to the same layer and having the same color into the same line set;
[0087] For each of the line sets, extract line pairs that meet the lane line characteristics;
[0088] From the line pairs that meet the lane line characteristics of each of the line sets, screen out suspected lane lines;
[0089] Verify each of the suspected lane lines, and use the suspected lane lines that pass the verification as the target lane lines in the general layout plan.
[0090] The communication bus 303 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 303 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 3 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0091] The memory 302 may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor 301.
[0092] The aforementioned processor 301 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., or may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0093] In another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is caused to execute the method for identifying lane lines in a general layout plan described in the above embodiment.
[0094] In the above embodiment, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions are transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or a wireless manner (such as infrared, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, etc. that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.
[0095] It should be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.
[0096] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for identifying lane lines in a general layout plan, characterized in that, Including: Classify all the lines in the general layout plan according to color and layer, and divide the lines belonging to the same layer and having the same color into the same line set; For each of the said line sets, extract line pairs that meet the lane line characteristics; From the line pairs that meet the lane line characteristics of each of the said line sets, screen out suspected lane lines; Verify each of the said suspected lane lines, and take the suspected lane lines that pass the verification as the target lane lines in the general layout plan; Among them, the screening out of suspected lane lines from the line pairs that meet the lane line characteristics of each of the said line sets includes: For the line pairs that meet the lane line characteristics of each of the said line sets, calculate the proportion of the line pairs in all the lines belonging to the same layer as the line sets. If it is determined that the proportion exceeds the preset proportion, then take the line pairs as the suspected lane lines; The verifying each of the said suspected lane lines and taking the suspected lane lines that pass the verification as the target lane lines in the general layout plan includes: Extract the building outlines of all the buildings in the general layout plan; For each of the said suspected lane lines, if it is determined that the suspected lane line does not cross the building outline and is not within the range of the building outline, then take the suspected lane line as the target lane line.
2. The method for identifying lane lines in the general layout plan according to claim 1, characterized in that, The extracting of the line pairs that meet the lane line characteristics includes: If there are two parallel line segments of equal length in the line set, and the first distance between the two parallel line segments is within the preset distance range, then extract the two parallel line segments as the line pairs that meet the lane line characteristics; or, If there are two parallel arc line segments in the line set that have the same arc center point and the same central angle, and the second distance between the two parallel arc line segments is within the preset distance range, then extract the two parallel arc line segments as the line pairs that meet the lane line characteristics; or, If there are two arc line segments that are mirror-symmetrical in the line set, then extract the two arc line segments as the line pairs that meet the lane line characteristics.
3. The method for identifying lane lines in the general layout plan according to claim 1, characterized in that, The verifying each of the said suspected lane lines and taking the suspected lane lines that pass the verification as the target lane lines in the general layout plan includes: For each of the said suspected lane lines, if it is determined that there is a line that belongs to the same layer as the suspected lane line and is located in the middle of the suspected lane line, then take the suspected lane line as the target lane line.
4. The method for identifying lane lines in the general layout plan according to claim 1, characterized in that After the extracting of the line pairs that meet the lane line characteristics, it further includes: Store each of the said line pairs separately in the target storage space.
5. The method for identifying lane lines in the general layout plan according to claim 2, characterized in that The preset distance range is 4 to 9 meters.
6. An identification device for lane lines in a general layout plan, characterized in that, Including: A classification module for classifying all the lines in the general layout plan according to color and layer, and dividing the lines belonging to the same layer and having the same color into the same line set; An extraction module for extracting, for each of the said line sets, line pairs that meet the lane line characteristics; A screening module for screening out suspected lane lines from the line pairs that meet the lane line characteristics of each of the said line sets; A verification module for verifying each of the said suspected lane lines and taking the suspected lane lines that pass the verification as the target lane lines in the general layout plan; Among them, screening out suspected lane lines from the line pairs that meet the lane line characteristics in each of the line sets includes: For each line pair that meets the lane line characteristics in each line set, calculate the ratio of the line pair to all the lines belonging to the same layer as the line set. If it is determined that the ratio exceeds a preset ratio, then regard the line pair as the suspected lane line; The verification of each of the suspected lane lines and taking the suspected lane lines that pass the verification as the target lane lines in the general layout plan includes: Extract the building outlines of all the buildings in the general layout plan; For each of the suspected lane lines, if it is determined that the suspected lane line does not pass through the building outline and is not within the range of the building outline, then regard the suspected lane line as the target lane line.
7. An electronic device, characterized in that, Including: A processor, a memory, and a communication bus. Among them, the processor and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; The processor is used to execute the programs stored in the memory to implement the method for identifying lane lines in the general layout plan according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for identifying lane lines in the general layout plan according to any one of claims 1 to 5.
Citation Information
Patent Citations
A lane line identification method and device
CN109948504A
Lane line detection method, device and equipment and storage medium
CN111460072A