A lane line smoothness detection method and device, electronic equipment and storage medium
By acquiring lane line type and curvature difference threshold, and calculating curvature difference sequence, the problem of inaccurate lane line detection in autonomous vehicles is solved, and higher precision lane line smoothness detection is achieved.
Patent Information
- Application Number
- CN202310212824.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-03-06
AI Technical Summary
Existing technologies cannot accurately distinguish the smoothness requirements of different types of lane lines in autonomous vehicles, resulting in inaccurate lane line detection.
By obtaining the type of lane line to be detected and the corresponding curvature difference threshold, the curvature difference sequence is calculated, and the smoothness of the lane line is judged based on the curvature difference threshold, thus distinguishing between straight and non-straight lane lines.
It improves the accuracy of lane line smoothness detection, enabling more precise selection of lane lines that need smoothing, and meeting the detection needs of different types of lane lines.
Smart Images

Figure CN116429127B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a method, apparatus, electronic device, and storage medium for detecting lane line smoothness. Background Technology
[0002] In the field of autonomous driving, high-precision map creation is often required to accurately control vehicle movement. This process involves lane alignment data on the road surface to provide lane-level driving guidance for autonomous vehicles.
[0003] When high-precision maps serve as the data foundation for advanced driver assistance systems (ADAS) or autonomous driving, they directly impact vehicle control and driving decisions. Therefore, quality inspection of high-precision maps is a crucial technical step in the map production process. In particular, lane line quality inspection is currently based on comparing the curvature of lane lines with a pre-set curvature threshold, and filtering out unsmooth lane lines based on the comparison results.
[0004] During the implementation of lane smoothness detection, the applicant discovered that autonomous vehicles have different requirements for the smoothness of different types of lanes during actual driving. For example, straight lanes generally have a smaller curvature, and autonomous vehicles travel at higher speeds, so even small curvature fluctuations may have a significant impact on the vehicle. On the other hand, turning lanes have a relatively larger curvature, and autonomous vehicles slow down when turning, so larger curvature fluctuations may not necessarily have a significant impact on the vehicle.
[0005] Therefore, existing methods for lane line detection that do not distinguish between lane line types and directly rely on the curvature of lane lines cannot accurately identify lane lines that truly require smoothing. Summary of the Invention
[0006] This application provides a lane line smoothness detection method, apparatus, electronic device, and storage medium to improve the accuracy of lane line smoothness detection.
[0007] The embodiments of this application adopt the following technical solutions:
[0008] In a first aspect, embodiments of this application provide a lane line smoothness detection method, the method comprising:
[0009] Obtain the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type;
[0010] Obtain the curvature of several adjacent shape points in the lane line to be detected, and obtain a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0011] The smoothness detection result of the lane line to be detected is obtained based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0012] Optionally, obtaining the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type includes:
[0013] Obtain the route turning angle of the lane line to be detected;
[0014] The lane type of the lane to be detected is determined based on the route turning angle of the lane to be detected.
[0015] The curvature difference threshold corresponding to the lane line type is obtained based on the pre-set correspondence between lane line type and curvature difference threshold.
[0016] Optionally, obtaining the route turning angle of the lane line to be detected includes:
[0017] Obtain the straight line formed by two adjacent shape points in the lane line to be detected, and obtain the deviation angle formed between the adjacent straight lines;
[0018] The route turning angle of the lane line to be detected is obtained by summing all the deviation angles in the lane line to be detected.
[0019] Optionally, determining the lane type of the lane to be detected based on the route turning angle of the lane to be detected includes:
[0020] Based on the pre-defined correspondence between route turning angles and lane line types, the lane line type corresponding to the route turning angle of the lane line to be detected is obtained.
[0021] Optionally, the lane line type includes straight lane lines and non-straight lane lines, and determining the lane line type of the lane line to be detected based on the route turning angle of the lane line to be detected includes:
[0022] The turning angle of the lane line to be detected is compared with a preset turning angle threshold;
[0023] If the turning angle of the lane line to be detected is greater than the turning angle threshold, then the lane line to be detected is determined to be a non-straight lane line.
[0024] Otherwise, the lane line to be detected is determined to be a straight lane line.
[0025] Optionally, when the lane line to be detected is a non-straight lane line, the curvature difference threshold corresponding to the non-straight lane line is determined by the following steps:
[0026] The horizontal alignment of the road to which the lane to be detected belongs is determined based on the road data of the lane to be detected;
[0027] The radius of curvature of the lane line to be detected is determined based on the horizontal alignment of the road to which the lane line to be detected belongs;
[0028] Based on the pre-defined correspondence between the radius of curvature and the curvature difference threshold, the curvature difference threshold for non-straight lane lines is determined.
[0029] Optionally, obtaining the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected includes:
[0030] The maximum value of the curvature difference in the curvature difference sequence is compared with the curvature difference threshold of the lane line to be detected.
[0031] If the maximum value of the curvature difference is greater than the curvature difference threshold, then the lane line to be detected is determined to be a lane line with unsmoothness.
[0032] Otherwise, the lane line to be tested is determined to be a lane line with acceptable smoothness.
[0033] Secondly, embodiments of this application also provide a lane line smoothness detection device, the device comprising:
[0034] The first acquisition unit is used to acquire the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type.
[0035] The second acquisition unit is used to acquire the curvature of several adjacent shape points in the lane line to be detected, and to acquire a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0036] The smoothness detection unit is used to obtain the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0037] Thirdly, embodiments of this application also provide an electronic device, including:
[0038] Processor; and
[0039] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform any of the aforementioned lane line smoothness detection methods.
[0040] Fourthly, embodiments of this application also provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including multiple applications, cause the electronic device to perform any of the aforementioned lane line smoothness detections.
[0041] The at least one technical solution adopted in this application embodiment can achieve the following beneficial effects: This application embodiment first obtains the lane line type and the corresponding curvature difference threshold of the lane line to be detected, and obtains the curvature difference sequence corresponding to the lane line to be detected. Thus, the smoothness detection result of the lane line to be detected can be obtained based on the curvature difference sequence and the curvature difference threshold. The lane line type in this application embodiment can indicate the degree of curvature of the lane line. Lane lines to be detected belonging to different lane line types have different curvature difference thresholds, which can distinguish between straight lane lines and various non-straight lane lines, thereby improving the accuracy of lane line smoothness detection. Attached Figure Description
[0042] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0043] Figure 1 This is a flowchart illustrating a lane line smoothness detection method according to an embodiment of this application;
[0044] Figure 2 This is a schematic diagram of the deflection angle of a shape point in a lane line according to an embodiment of this application;
[0045] Figure 3 This is a schematic diagram of the structure of a lane line smoothness detection device according to an embodiment of this application;
[0046] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0049] This application provides a method for detecting lane line smoothness, such as... Figure 1 The diagram shows a flowchart of a lane line smoothness detection method according to an embodiment of this application. The method includes at least the following steps S110 to S130:
[0050] Step S110: Obtain the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type.
[0051] The lane line types in this application include straight lane lines and non-straight lane lines. Non-straight lane lines include, for example, turning lane lines, U-turn lane lines, and loop lane lines. When the lane line to be detected is a straight lane line, existing technologies can accurately detect unevenness by measuring the difference in curvature between adjacent shape points in the lane line. However, in practical applications, the lane lines to be detected include a large number of non-straight lane lines. Since the roads to which non-straight lane lines are located are curved, and curves themselves have a certain degree of curvature, the difference in curvature between adjacent shape points in non-straight lane lines is greater than the difference in curvature between adjacent shape points in straight lane lines. Therefore, existing smoothness detection methods cannot accurately detect unqualified lane lines in non-straight lane lines in this situation.
[0052] Based on this, this application classifies the lane lines to be detected according to lane line type, and determines the curvature difference threshold of each lane line to be detected based on the classification results, thereby improving the accuracy of lane line smoothness detection results.
[0053] Step S120: Obtain the curvature of several adjacent shape points in the lane line to be detected, and obtain a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0054] In this embodiment of the application, when detecting lane line smoothness, it is necessary to first obtain the curvature corresponding to each shape point in the lane line to be detected. The shape points on the lane line to be detected are the points used to create lane lines in high-precision maps. The shape points can accurately represent the shape of the continuous extension of the lane line. In the process of creating high-precision maps, it is necessary to use a data acquisition vehicle to collect laser point clouds for creating high-precision maps. The collected lane line data includes several shape points of the lane line and road data to which the lane line belongs, such as road number, road grade, road attributes, etc.
[0055] In this application, curvature refers to the curvature of a planar curve. Curvature is the rate of rotation of the tangent direction angle about a point on the curve with respect to the arc length, indicating the degree to which the curve deviates from a straight line. The reciprocal of curvature is the radius of curvature. For a planar curve formed by lane lines, it is equal to the radius of the arc corresponding to that point. The larger the radius of the arc, the smaller the curvature of the lane line, and the closer it is to a straight line.
[0056] When calculating the curve of the lane line to be detected, the curvature of N adjacent shape points in the lane line to be detected can be calculated, where N is a natural number and N≥3, thus obtaining a curvature sequence. By subtracting the adjacent curvatures in the curve sequence, the curvature difference value sequence of this application can be obtained.
[0057] It should be noted that this application does not limit the execution order of steps S110 and S120. For example, step S110 can be executed first, followed by step S120; step S120 can be executed first, followed by step S110; or step S110 and step S120 can be executed simultaneously.
[0058] Step S130: Obtain the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0059] like Figure 1 As shown in the lane line smoothness detection method, this embodiment first obtains the lane line type and the curvature difference threshold corresponding to the lane line type, and obtains the curvature difference sequence corresponding to the lane line to be detected. In this way, the smoothness detection result of the lane line to be detected can be obtained based on the curvature difference sequence and curvature difference threshold corresponding to the lane line to be detected.
[0060] In this embodiment, the lane line type can indicate the curvature of the lane line. Different lane line types have different curvature difference thresholds, which can distinguish between straight lane lines and various non-straight lane lines, thereby improving the detection accuracy of lane line smoothness.
[0061] In one embodiment of this application, obtaining the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type includes:
[0062] Obtain the route turning angle of the lane line to be detected;
[0063] The lane type of the lane to be detected is determined based on the route turning angle of the lane to be detected.
[0064] The curvature difference threshold corresponding to the lane line type is obtained based on the pre-set correspondence between lane line type and curvature difference threshold.
[0065] Since the turning angle of a route can indicate the curvature of a lane line, this embodiment determines the lane line type of the lane line to be detected based on the turning angle of the route. In this way, the curvature difference threshold corresponding to the lane line to be detected can be determined based on the lane line type, thereby improving the accuracy of the detection results.
[0066] In some possible implementations of this embodiment, obtaining the route turning angle of the lane line to be detected includes:
[0067] Obtain the straight line formed by two adjacent shape points in the lane line to be detected, and obtain the deviation angle formed between the adjacent straight lines;
[0068] The route turning angle of the lane line to be detected is obtained by summing all the deviation angles in the lane line to be detected.
[0069] like Figure 2 As shown, the lane line A to be detected includes 5 shape points P1 to P5. These 5 shape points form four straight lines L1, L2, L3 and L4. The deflection angle of straight line L2 relative to straight line L1 is the deflection angle a2 between straight lines L1 and L2. The deflection angle of straight line L3 relative to straight line L2 is the deflection angle a3 between straight lines L2 and L3. The deflection angle of straight line L4 relative to straight line L3 is the deflection angle a4 between straight lines L3 and L4. The sum of the deflection angles a2 + a3 + a4 is taken as the route turning angle of the lane line A to be detected.
[0070] Furthermore, in this embodiment, the bias angle a2 formed by the first shape point P1, the second shape point P2, and the third shape point P3 in the lane line to be detected is taken as the first bias angle of the lane line to be detected; and the bias angle a4 formed by the third-to-last shape point P3, the second-to-last shape point P4, and the last shape point P5 in the lane line to be detected is taken as the last bias angle of the lane line to be detected.
[0071] In practical applications, the first deviation angle of the lane to be detected can also be calculated using the lane line preceding it. For example, the deviation angle between the line formed by the last shape point of the previous lane line and the first shape point of the lane to be detected, and the line formed by the first and second shape points of the lane to be detected, can be determined as the deviation angle of the first shape point in the lane to be detected. Similarly, the last deviation angle of the lane to be detected can be calculated using the lane line following it.
[0072] In some other possible implementations of this embodiment, determining the lane type of the lane to be detected based on the route turning angle of the lane to be detected includes:
[0073] Based on the pre-defined correspondence between route turning angles and lane line types, the lane line type corresponding to the route turning angle of the lane line to be detected is obtained.
[0074] For example, lane markings are divided into four types according to the turning angle: straight type, turning type, U-turn type, and loop type. The corresponding turning angles are set as follows: straight type -5° to 5°, turning type -145° to -5° and 5° to 145°, U-turn type -185° to -145° and 145° to 185°, and loop type -360° to -185° and 185° to 360°. The turning angles corresponding to each lane marking type do not overlap.
[0075] Thus, when calculating the route turning angle of the lane line to be detected, the lane line type of the lane line to be detected can be obtained based on the above correspondence between the route turning angle and the lane line type.
[0076] In some other possible implementations of this embodiment, assuming that the lane line types include straight lane lines and non-straight lane lines, the lane line type of the lane line to be detected can also be determined by the following steps:
[0077] The route angle of the lane line to be detected is compared with a pre-set angle threshold;
[0078] If the turning angle of the lane line to be detected is greater than the turning angle threshold, then the lane line to be detected is determined to be a non-straight lane line; otherwise, the lane line to be detected is determined to be a straight lane line.
[0079] Here, the preset turning angle threshold represents the limit value of the turning angle of a straight lane. When the turning angle of the lane to be detected is greater than this threshold, the lane to be detected can be determined to be a non-straight lane; when the turning angle of the lane to be detected is not greater than this threshold, the lane to be detected can be determined to be a straight lane. In this embodiment, the angle value of the turning angle threshold can be set according to the detection accuracy. The smaller the angle of the turning angle threshold, the higher the detection accuracy. When the turning angle of the lane is 0°, the lane is an absolutely straight line.
[0080] Thus, the curvature difference threshold for straight lane lines can be set to a value close to 0. The curvature difference threshold for non-straight lane lines is related to the radius of curvature. The larger the radius of curvature, the less curved the road to which the lane line belongs, and the smaller the corresponding curvature difference threshold. Conversely, the larger the radius of curvature, the more curved the road to which the lane line belongs, and the larger the corresponding curvature difference threshold.
[0081] That is, when the lane to be detected is determined to be a straight lane based on the route turning angle, the smoothness of the straight lane is judged based on the comparison result of the curvature difference threshold and the curvature difference value sequence of the straight lane.
[0082] Therefore, when the lane line to be detected is a non-straight lane line, this embodiment determines the curvature difference threshold corresponding to the non-straight lane line through the following three steps:
[0083] The first step is to determine the horizontal alignment of the road to which the lane to be detected belongs based on the road data of the lane to be detected;
[0084] For example, by querying the road design parameters based on the road number in the road data, the horizontal alignment of the road to which the lane to be detected belongs can be obtained. Alternatively, the road grade, road nature, and road function of the road to which the lane to be detected belongs can be determined based on the road number in the road data to estimate the horizontal alignment of the road to which the lane to be detected belongs. The horizontal alignment consists of three basic types: straight line, transition curve, and circular curve.
[0085] Optionally, the planar alignment of the lane to be detected can be obtained based on the planar alignment of the road corresponding to the shape point where the curvature difference is maximized in the lane to be detected. Combined with... Figure 2 As shown, if the curvature difference between shape points P2 and P3 is the maximum value, then the planar alignment of the road to which the lane line between shape points P2 and P3 belongs is taken as the planar alignment of the lane line to be detected, A.
[0086] The second step is to determine the radius of curvature of the lane line to be detected based on the horizontal alignment of the road to which the lane line to be detected belongs;
[0087] After obtaining the horizontal alignment of the road to which the lane to be detected belongs, the radius of curvature of the lane to be detected can be determined based on the horizontal alignment of the road to which the lane to be detected belongs; for example, the radius of curvature of various transition curves (such as spiral curves, cubic parabolas, etc.) and circular curves can be found according to the relevant road design specifications.
[0088] The third step is to determine the curvature difference threshold for non-straight lane lines based on the pre-defined correspondence between the radius of curvature and the curvature difference threshold.
[0089] The correspondence between the radius of curvature and the curvature difference threshold can be obtained from statistical data. For example, the "Technical Standards for Highway Engineering" specifies the radius of curvature for various road types. The curvature difference threshold for lane lines on roads with the same radius of curvature can be calculated, or a mathematical model representing the correspondence between the radius of curvature and the curvature difference threshold can be constructed. Furthermore, since the distance between shape points in the lane lines affects the accuracy of the curvature difference threshold, this embodiment should also consider the distance between shape points when calculating the correspondence between the radius of curvature and the curvature difference threshold. The greater the distance between shape points, the greater the curvature difference.
[0090] In one embodiment of this application, obtaining the curvature of several adjacent shape points in the lane line to be detected includes:
[0091] Obtain the previous lane line of the lane line to be detected, and obtain the curvature of several adjacent shape points in the lane line to be detected, starting from several shape points at the end of the previous lane line.
[0092] For example, using the second-to-last shape point, the last shape point, and the first shape point of the lane to be detected as target points, calculate the curvature of the first shape point of the lane to be detected; using the last shape point, the first shape point, and the second shape point of the lane to be detected as target points, calculate the curvature of the second shape point of the lane to be detected; using the first, second, and third shape points of the lane to be detected as target points, calculate the curvature of the third shape point of the lane to be detected, and so on, calculate the curvature of all shape points of the lane to be detected.
[0093] Of course, in other embodiments of this application, the curvature of each shape point in the lane line to be detected can be calculated using four, five or more adjacent shape points as target points to obtain a curvature sequence, and the difference between adjacent curvatures in the curvature sequence can be obtained to obtain a curvature difference sequence.
[0094] Accordingly, based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected, the smoothness detection result of the lane line to be detected is obtained, including:
[0095] The maximum value of the curvature difference in the curvature difference sequence is compared with the curvature difference threshold of the lane line to be detected.
[0096] If the maximum value of the curvature difference is greater than the curvature difference threshold, then the lane line to be detected is determined to be a lane line with unsmoothness; otherwise, the lane line to be detected is determined to be a lane line with acceptable smoothness.
[0097] In some optional embodiments, the final curvature difference can be determined based on the maximum curvature difference in the curvature difference sequence and one or more curvature differences adjacent to the maximum curvature difference. For example, the average of the maximum curvature difference and one curvature difference adjacent to the maximum curvature difference can be used as the final curvature difference. If the final curvature difference is greater than the curvature difference threshold, the lane line to be detected is determined to be a lane line with unsmoothness; otherwise, the lane line to be detected is determined to be a lane line with acceptable smoothness.
[0098] In some embodiments of this application, when the lane line to be detected is determined to be a lane line with unsmoothness, a re-inspection reminder is also generated to manually re-inspect the lane line with unsmoothness.
[0099] Similar to the lane line smoothness detection method in the foregoing embodiments, this application also provides a lane line smoothness detection device 300, such as... Figure 3 The diagram shows a schematic representation of a lane line smoothness detection device according to an embodiment of this application. The device 300 includes: a first acquisition unit 310, a second acquisition unit 320, and a smoothness detection unit 330, wherein:
[0100] The first acquisition unit 310 is used to acquire the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type.
[0101] The second acquisition unit 320 is used to acquire the curvature of several adjacent shape points in the lane line to be detected, and to acquire a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0102] The smoothness detection unit 330 is used to obtain the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0103] In one embodiment of this application, the first acquisition unit 310 is used to acquire the route turning angle of the lane line to be detected; determine the lane line type of the lane line to be detected based on the route turning angle of the lane line to be detected; and obtain the curvature difference threshold corresponding to the lane line type according to a pre-set correspondence between lane line type and curvature difference threshold.
[0104] In one embodiment of this application, the first acquisition unit 310 is specifically used to acquire the straight line formed by two adjacent shape points in the lane line to be detected, and obtain the deviation angle formed between the adjacent straight lines; and obtain the route turning angle of the lane line to be detected based on the sum of all deviation angles in the lane line to be detected.
[0105] In one embodiment of this application, the first acquisition unit 310 is specifically used to obtain the lane line type corresponding to the route angle of the lane line to be detected based on a pre-set correspondence between route angle and lane line type.
[0106] In one embodiment of this application, the lane line type includes straight lane lines and non-straight lane lines. The first acquisition unit 310 is specifically used to compare the route angle of the lane line to be detected with a preset angle threshold. If the route angle of the lane line to be detected is greater than the angle threshold, the lane line to be detected is determined to be a non-straight lane line; otherwise, the lane line to be detected is determined to be a straight lane line.
[0107] In one embodiment of this application, when the lane line to be detected is a non-straight lane line, the first acquisition unit 310 is specifically used to determine the planar alignment of the road to which the lane line to be detected belongs based on the road data of the lane line to be detected; determine the radius of curvature of the lane line to be detected based on the planar alignment of the road to which the lane line to be detected belongs; and determine the curvature difference threshold of the non-straight lane line based on the pre-set correspondence between the radius of curvature and the curvature difference threshold.
[0108] In one embodiment of this application, the smoothness detection unit 330 is used to compare the maximum curvature difference value in the curvature difference sequence with the curvature difference threshold of the lane line to be detected; if the maximum curvature difference value is greater than the curvature difference threshold, the lane line to be detected is determined to be a lane line with unqualified smoothness; otherwise, the lane line to be detected is determined to be a lane line with qualified smoothness.
[0109] It is understood that the lane line smoothness detection device described above can implement each step of the lane line smoothness detection method provided in the foregoing embodiments. The relevant explanations of the lane line smoothness detection method are applicable to the lane line smoothness detection device, and will not be repeated here.
[0110] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Please refer to it. Figure 4 At the hardware level, the electronic device includes a processor and memory, and optionally also includes an internal bus and a network interface. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for its functions.
[0111] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0112] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0113] The processor reads the corresponding computer program from non-volatile memory into main memory and then runs it, forming the lane line smoothness detection device at the logical level. The processor executes the program stored in memory and specifically performs the following operations:
[0114] Obtain the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type;
[0115] Obtain the curvature of several adjacent shape points in the lane line to be detected, and obtain a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0116] The smoothness detection result of the lane line to be detected is obtained based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0117] The above is as stated in this application. Figure 1The method executed by the lane line smoothness detection device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can 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, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0118] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by an electronic device including multiple applications, enable the electronic device to perform... Figure 1 The method executed by the lane line smoothness detection device in the illustrated embodiment is specifically used to perform:
[0119] Obtain the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type;
[0120] Obtain the curvature of several adjacent shape points in the lane line to be detected, and obtain a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected.
[0121] The smoothness detection result of the lane line to be detected is obtained based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected.
[0122] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0123] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0124] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0125] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0126] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0127] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0128] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0129] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0131] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for detecting lane line smoothness, characterized in that, The method includes: Obtain the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type; Obtain the curvature of several adjacent shape points in the lane line to be detected, and obtain a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected. The smoothness detection result of the lane line to be detected is obtained based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected; The lane line types include straight lane lines and non-straight lane lines. The lane line type can indicate the curvature of the lane line. The lane lines to be detected belonging to different lane line types have different curvature difference thresholds. The process of obtaining the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type includes: Obtain the route turning angle of the lane line to be detected; The lane type of the lane to be detected is determined based on the route turning angle of the lane to be detected. The curvature difference threshold corresponding to the lane line type is obtained according to the pre-set correspondence between lane line type and curvature difference threshold; the step of obtaining the curvature of several adjacent shape points in the lane line to be detected includes: obtaining the previous lane line of the lane line to be detected, and taking several shape points at the end of the previous lane line as the starting point, obtaining the curvature of several adjacent shape points in the lane line to be detected.
2. The lane line smoothness detection method as described in claim 1, characterized in that, The process of obtaining the route turning angle of the lane line to be detected includes: Obtain the straight line formed by two adjacent shape points in the lane line to be detected, and obtain the deviation angle formed between the adjacent straight lines; The route turning angle of the lane line to be detected is obtained by summing all the deviation angles in the lane line to be detected.
3. The lane line smoothness detection method as described in claim 1, characterized in that, The process of determining the lane type of the lane to be detected based on the route turning angle of the lane to be detected includes: Based on the pre-defined correspondence between route turning angles and lane line types, the lane line type corresponding to the route turning angle of the lane line to be detected is obtained.
4. The lane line smoothness detection method as described in claim 1, characterized in that, The process of determining the lane type of the lane to be detected based on the route turning angle of the lane to be detected includes: The turning angle of the lane line to be detected is compared with a preset turning angle threshold; If the turning angle of the lane line to be detected is greater than the turning angle threshold, then the lane line to be detected is determined to be a non-straight lane line. Otherwise, the lane line to be detected is determined to be a straight lane line.
5. The lane line smoothness detection method as described in claim 4, characterized in that, When the lane line to be detected is a non-straight lane line, the curvature difference threshold corresponding to the non-straight lane line is determined by the following steps: The horizontal alignment of the road to which the lane to be detected belongs is determined based on the road data of the lane to be detected; The radius of curvature of the lane line to be detected is determined based on the horizontal alignment of the road to which the lane line to be detected belongs; Based on the pre-defined correspondence between the radius of curvature and the curvature difference threshold, the curvature difference threshold for non-straight lane lines is determined.
6. The lane line smoothness detection method as described in claim 1, characterized in that, The step of obtaining the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected includes: The maximum value of the curvature difference in the curvature difference sequence is compared with the curvature difference threshold of the lane line to be detected. If the maximum value of the curvature difference is greater than the curvature difference threshold, then the lane line to be detected is determined to be a lane line with unsmoothness. Otherwise, the lane line to be tested is determined to be a lane line with acceptable smoothness.
7. A lane line smoothness detection device, characterized in that, The device includes: The first acquisition unit is used to acquire the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type. The second acquisition unit is used to acquire the curvature of several adjacent shape points in the lane line to be detected, and to acquire a curvature difference sequence based on the curvature of several adjacent shape points in the lane line to be detected. A smoothness detection unit is used to obtain the smoothness detection result of the lane line to be detected based on the curvature difference sequence of the lane line to be detected and the curvature difference threshold of the lane line to be detected; The lane line types include straight lane lines and non-straight lane lines. The lane line type can indicate the curvature of the lane line. The lane lines to be detected belonging to different lane line types have different curvature difference thresholds. The process of obtaining the lane line type of the lane line to be detected and the curvature difference threshold corresponding to the lane line type includes: Obtain the route turning angle of the lane line to be detected; The lane type of the lane to be detected is determined based on the route turning angle of the lane to be detected. The curvature difference threshold corresponding to the lane line type is obtained according to the pre-set correspondence between lane line type and curvature difference threshold; the step of obtaining the curvature of several adjacent shape points in the lane line to be detected includes: obtaining the previous lane line of the lane line to be detected, and taking several shape points at the end of the previous lane line as the starting point, obtaining the curvature of several adjacent shape points in the lane line to be detected.
8. An electronic device, comprising: processor; as well as A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the lane line smoothness detection method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of applications, cause the electronic device to perform the lane line smoothness detection method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Road curvature determining method and device, storage medium and computer device
CN109033176A
Lane line anomaly detection method and device, electronic equipment and readable storage medium
CN115311640A
