A method, device, electronic device and storage medium for fitting rear lane lines
By using the vehicle's driving speed and forward lane line parameters to calculate and fit the backward lane line, it solves the problem of being unable to obtain backward lane line information in the existing technology and improves the safety of the autonomous driving system.
Patent Information
- Application Number
- CN202210605602.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-30
AI Technical Summary
In the existing intelligent driving system, relying only on the forward-looking camera cannot obtain the backward lane line information in areas not covered by high-precision maps or when the positioning signal is weak, making it impossible to safely implement functions such as automatic lane changing.
By obtaining the vehicle's driving speed and forward lane line parameters, the longitudinal distance of the vehicle along the lane line direction is calculated, and the backward lane line is fitted based on the vehicle's motion state to realize the calculation and determination of the backward lane line.
Without adding additional costs, the safety of the automatic driving system such as the automatic lane changing function is improved, and the overall safety of the automatic driving system is improved.
Smart Images

Figure CN114987497B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lane line fitting, and in particular to a backward lane line fitting method, device, electronic equipment and storage medium. Background Art
[0002] When a car is driving, lane lines are an important basis for the autonomous driving system to judge the current position of the car and the positions of other traffic participants relative to the car.
[0003] At present, vehicles equipped with intelligent driving systems in the existing technology mostly use a single forward-looking camera to obtain lane line information, and use high-precision map lane line information to obtain the rear lane line information of the vehicle. However, in areas not covered by high-precision maps or when accurate positioning is impossible due to weak positioning signals, vehicles equipped only with forward-looking cameras cannot obtain rear lane line information. At the same time, intelligent vehicles cannot determine the relative position of the rear vehicle, making it difficult to safely implement functions such as automatic lane changing. Summary of the invention
[0004] The present invention provides a backward lane line fitting method, device, electronic device and storage medium, which can obtain historical lane line information using a front-view camera and calculate the backward lane line in combination with the vehicle's own motion. The backward lane line information can be obtained without adding additional costs, thereby improving the safety of autonomous driving systems such as automatic lane change functions.
[0005] In a first aspect, an embodiment of the present invention provides a method for fitting a rear lane line, the method comprising: obtaining a vehicle's driving speed and front lane line parameters; calculating a longitudinal distance of the vehicle along the lane line direction based on the driving speed and the front lane line parameters; calculating discrete point information of the vehicle's rear lane line based on the front lane line parameters and the longitudinal distance; fitting the discrete point information to obtain rear lane line equation information, and determining the vehicle's rear lane line based on the rear lane line equation information.
[0006] In the second aspect, an embodiment of the present invention also provides a rear lane line fitting device, which includes: a parameter acquisition module, used to obtain the vehicle's driving speed and front lane line parameters; a distance calculation module, used to calculate the longitudinal distance of the vehicle along the lane line direction according to the driving speed and the front lane line parameters; an information calculation module, used to calculate the discrete point information of the vehicle's rear lane line according to the front lane line parameters and the longitudinal distance; a lane line determination module, used to fit the discrete point information to obtain the rear lane line equation information, and determine the rear lane line of the vehicle according to the rear lane line equation information.
[0007] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the backward lane line fitting method of any embodiment of the present invention.
[0008] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the backward lane line fitting method of any embodiment of the present invention when executed.
[0009] The technical solution of the embodiment of the present invention obtains the vehicle's driving speed and the parameters of the front lane line; calculates the longitudinal distance of the vehicle along the lane line according to the driving speed and the parameters of the front lane line; calculates the discrete point information of the vehicle's rear lane line according to the parameters of the front lane line and the longitudinal distance; fits the discrete point information to obtain the rear lane line equation information, and determines the vehicle's rear lane line according to the rear lane line equation information. On the basis of the above embodiment, by obtaining the vehicle's driving speed and the parameters of the front lane line, and finally calculating and determining the vehicle's rear lane line, the safety of the automatic driving system, such as the automatic lane change function, is improved, and the safety of the automatic driving system is improved.
[0010] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 is a flow chart of a backward lane line fitting method provided in an embodiment of the present invention;
[0013] Figure 2 is another flow chart of a backward lane line fitting method provided in an embodiment of the present invention;
[0014] Figure 3 is a discrete point diagram of the shape of a rear lane line provided in an embodiment of the present invention;
[0015] Figure 4is a structural schematic diagram of a backward lane line fitting device provided in an embodiment of the present invention;
[0016] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0019] Figure 1 is a flow chart of a backward lane line fitting method provided in an embodiment of the present invention. This embodiment is applicable to the case of fitting the backward lane line of a vehicle. The method can be executed by a backward lane line fitting device, and the backward lane line fitting device can be implemented in the form of hardware and / or software. In a specific embodiment, the device can be configured in an electronic device. Figure 1 As shown, the method of the embodiment of the present invention specifically includes the following steps:
[0020] S110: Obtain the vehicle's driving speed and forward lane line parameters.
[0021] Among them, the vehicle's driving speed refers to the distance the vehicle travels per unit time during the driving process; the forward lane line parameters include the lateral information of the lane line from the vehicle, the slope information of the angle between the lane line and the vehicle, the curvature information of the lane line and the curvature derivative information.
[0022] Specifically, the vehicle's driving speed, lateral information of the lane line from the vehicle, slope information of the angle between the lane line and the vehicle, curvature information of the lane line, and curvature derivative information are collected and acquired through sensors on the vehicle.
[0023] S120: Calculate the longitudinal distance of the vehicle along the lane line according to the vehicle speed and the parameters of the front lane line.
[0024] Among them, the longitudinal distance Δs i =-V i ·T·cos(atan(C 1i )), V i is the driving speed, T represents the interval between adjacent moments, which can be determined by the operating frequency of the controller on the vehicle, and C 1i is the slope information of the angle between the lane line and the vehicle at time i.
[0025] Specifically, after obtaining the vehicle speed and the slope information of the angle between the lane line and the vehicle in the forward lane line parameters, the slope information of the angle between the lane line and the vehicle at time i, the speed at time i and the interval between adjacent moments of the vehicle during driving are determined, and the slope information of the angle between the lane line and the vehicle at time i is ... i =-V i ·T·cos(atan(C 1i ))Calculate the longitudinal distance traveled by the vehicle along the lane line.
[0026] S130: Calculate discrete point information of the rear lane line of the vehicle according to the front lane line parameters and the longitudinal distance.
[0027] The discrete point refers to an isolated point set forming the rear lane line of the vehicle, and the discrete point information refers to the coordinate deviation information corresponding to the isolated point set.
[0028] Specifically, after determining the longitudinal distance of the vehicle along the lane line direction according to the acquired driving speed and front lane line parameters, the vehicle's driving radius and coordinate deviation information of discrete points during driving are determined according to the front lane line parameters and the longitudinal distance, and the discrete point information of the vehicle's rear lane line is further calculated.
[0029] S140, fitting the discrete point information to obtain rear lane line equation information, and determining the rear lane line of the vehicle according to the rear lane line equation information.
[0030] The rear lane line equation information includes discrete point coordinate information and rear lane line angle information.
[0031] A backward lane line equation is constructed based on the coordinate information of discrete points, the angle information of the backward lane line, the lateral information of the lane line from the vehicle, the slope information of the angle between the lane line and the vehicle, the curvature information of the lane line and the curvature derivative information, and the backward lane line of the vehicle is determined based on the backward lane line equation.
[0032] On the basis of the above embodiment, optionally, the forward lane line parameter also includes the confidence information of the historical lane line; the method further includes: calculating the confidence of the discrete points of the backward lane line according to the confidence information of the historical lane line; wherein the confidence p of the discrete points of the backward lane line at time i is i =p i-1 ·P i , p i-1 is the confidence of the discrete points of the rear lane line at time i-1, P i is the confidence information of the historical lane line at time i.
[0033] Among them, confidence is also called reliability. The confidence of the lane line is a parameter that represents the credibility of the lane line recognized by the camera at the current moment. It is perceived by the camera sensor on the vehicle and its range is between 0 and 1.
[0034] Specifically, the confidence of the discrete points of the rear lane line is calculated based on the confidence information of the historical lane line; wherein the confidence of the discrete points of the rear lane line at time i is p i =p i-1 ·P i , p i-1 is the confidence of the discrete points of the rear lane line at time i-1, P i is the confidence information of the historical lane line at time i, which is multiplied by the confidence information of each lane line information in the historical lane line, in order to provide it as a reference for other modules to use the backward lane line information. The advantage of this setting is that the confidence at different positions behind the current vehicle is different, and as the backward lane line extends, its confidence becomes lower.
[0035] The technical solution of the embodiment of the present invention obtains the vehicle's driving speed and the parameters of the front lane line; calculates the longitudinal distance of the vehicle along the lane line according to the driving speed and the parameters of the front lane line; calculates the discrete point information of the vehicle's rear lane line according to the parameters of the front lane line and the longitudinal distance; fits the discrete point information to obtain the rear lane line equation information, and determines the vehicle's rear lane line according to the rear lane line equation information. On the basis of the above embodiment, by obtaining the vehicle's driving speed and the parameters of the front lane line, and finally calculating and determining the vehicle's rear lane line, the safety of the automatic driving system, such as the automatic lane change function, is improved, and the safety of the automatic driving system is improved.
[0036] Figure 2is another flow chart of a backward lane line fitting method provided in an embodiment of the present invention. On the basis of the above embodiment, according to the parameters of the front lane line and the longitudinal distance, the discrete point information of the backward lane line of the vehicle is calculated and the discrete point information is fitted to obtain the backward lane line equation information, and the backward lane line of the vehicle is further optimized according to the backward lane line equation information. Figure 2 As shown, the method specifically comprises the following steps:
[0037] S210: Obtain the vehicle's driving speed and forward lane line parameters.
[0038] Specifically, the vehicle's driving speed, lateral information of the lane line from the vehicle, slope information of the angle between the lane line and the vehicle, curvature information of the lane line, and curvature derivative information are collected and acquired through sensors on the vehicle.
[0039] S220: Calculate the longitudinal distance of the vehicle along the lane line according to the vehicle speed and the parameters of the front lane line.
[0040] Specifically, after obtaining the vehicle speed and the slope information of the angle between the lane line and the vehicle in the forward lane line parameters, the slope information of the angle between the lane line and the vehicle at time i, the speed at time i and the interval between adjacent moments of the vehicle during driving are determined, and the slope information of the angle between the lane line and the vehicle at time i is ... i =-V i ·T·cos(atan(C 1i )) Calculate the longitudinal distance of the vehicle along the lane line; where the longitudinal distance Δs i =-V i ·T·cos(atan(C 1i )), V i is the driving speed, T represents the interval between adjacent moments, which can be determined by the operating frequency of the controller on the vehicle, and C 1i is the slope information of the angle between the lane line and the vehicle at time i.
[0041] S230: Calculate the driving radius of the vehicle according to the curvature information of the lane line.
[0042] Among them, the vehicle's driving radius is determined by the curvature information of the lane line.
[0043] Specifically, after obtaining the curvature information of the lane line according to the sensor on the vehicle, if the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 The driving radius of the vehicle at time i is |C 2i |≥5×10 -6 ; If the curvature information C of the lane line at time i 2iThe absolute value is less than 5×10 -6 The driving radius of the vehicle at time i is R i =100000,|C 2i |<5×10 -6 .
[0044] S240, calculating coordinate deviation information generated by the vehicle during the driving process according to the driving radius, the longitudinal distance and the curvature information of the lane line.
[0045] Specifically, when determining the driving radius R of the vehicle at time i i After that, further, by driving radius R i , longitudinal distance Δs i and the curvature information of the lane line C 2i Calculate the coordinate deviation information generated by the vehicle during driving, where the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 When the lateral coordinate deviation information is Δx i =R i ·sin(2·Δs i ·|C 2i |),|C 2i |≥5×10 -6 ,, the longitudinal coordinate deviation information is Δy i =sign(C 2i )·R i ·(1-cos(2·Δs i ·|C 2i |)),|C 2i |≥5×10 -6 ; If the curvature information C of the lane line at time i 2i The absolute value is less than 5×10 -6 When the lateral coordinate deviation information is Δx i =0,|C 2i |<5×10 -6 , the longitudinal coordinate deviation information is Δy i =Δs i ,|C 2i |<5×10 -6 .
[0046] S250, calculating discrete point information of the rear lane line of the vehicle according to the longitudinal distance, the curvature information of the lane line and the coordinate deviation information.
[0047] After determining the coordinate deviation information generated by the vehicle during driving, further, the angle information of the rear lane line is calculated based on the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, and the geometric shape discrete coordinate information of the rear lane line at the current moment is obtained based on the angle information; the discrete point information of the rear lane line of the vehicle is calculated based on the geometric shape discrete coordinate information, the lateral information of the lane line from the vehicle and the slope information of the angle between the lane line and the vehicle.
[0048] Among them, the angle information of the lane line represents the deviation angle of the lane line at this time, and the geometric shape discrete coordinate information means that in order to achieve the fitting of the rear lane line, the above discrete coordinate points need to be further processed in combination with the vehicle's current relative position and angle information of the lane line.
[0049] Specifically, after determining the coordinate deviation information generated by the vehicle during driving, Figure 3 is a discrete point diagram of the shape of a rear lane line provided in an embodiment of the present invention, such as Figure 3 As shown in FIG. 1 , the calculation process of the geometric shape discrete points of the rear lane line is performed. The coordinate rotation and translation method is used to connect multiple arc lane lines. The longitudinal mileage information of the vehicle and the lane line curvature information are used to infer the angle information of the rear lane line. The coordinate information of the geometric shape discrete points of the rear lane line at the current moment is calculated. The coordinate information of the geometric shape discrete points of the rear lane line at the moment i is shown in formula (1).
[0050]
[0051] Among them, x i is the horizontal coordinate information of the geometric shape discrete point at time i, y i is the ordinate information of the geometric discrete points at time i, θ i is the angle information of the geometric shape discrete point at time i, x i-1 is the horizontal coordinate information of the geometric discrete point at time i-1, y i-1 is the ordinate information of the geometric discrete point at time i-1, θ i-1 is the angle information of the geometric shape discrete point at time i-1, x i y i θ i T It means that the coordinate information of the discrete points of the geometric shape of the rear lane line at time i is derived by using the arc lane line model combined with the historical lane line information.
[0052] Furthermore, based on the coordinate information of the discrete points of the geometric shape of the rear lane line at time i, and combined with the constant terms of the lane line equation on the left and right sides of the rear lane line, the discrete point information of the rear lane line of the vehicle is calculated, as shown in formula (2).
[0053]
[0054] Among them, X i Y i T It is the discrete point of the rear lane line considering the angle between the vehicle and the lane line under the current vehicle position after rotation and translation. C1 represents the first-order coefficient in the lane line equation output by the camera at the current moment, indicating the slope information of the current angle relative to the lane line. C0 represents the constant term in the lane line equation output by the camera at the current moment, indicating the lateral offset information of the current relative lane line.
[0055] S260. Fit the discrete point information using the least square method to obtain the rear lane line equation information.
[0056] Specifically, after obtaining the discrete point information of the rear lane line of the vehicle by calculation, the discrete point information is fitted using the least square method to obtain the rear lane line equation information at different times.
[0057] S270: Construct a rear lane line equation.
[0058] Specifically, the equation for the rear lane line is y=c0+c1·x+c2·x 2 +c3·x 3 , where c0 is the lateral offset information of the lane line from the vehicle, c1 is the slope information of the angle between the lane line and the vehicle, c2 is the curvature information of the lane line, and c3 is the curvature derivative information.
[0059] S280: Substitute the rear lane line equation information into the rear lane line equation to determine the rear lane line.
[0060] Specifically, according to the rear lane line equation y = c0 + c1 x + c2 x 2 +c3·x 3 , let X be formula (3), Y be formula (4), and C be formula (5).
[0061]
[0062]
[0063]
[0064] Furthermore, the target optimization function J is constructed based on the least squares method of the backward lane line equation constructed in the form of the polynomial expression of the backward lane line according to formulas (3), (4) and (5), Among them, the target optimization function J is obtained by minimizing the sum of squares of the errors of each point after fitting, which is further deduced to determine the rear lane line of the vehicle as C = (XT X) -1 X T Y, substitute formulas (3), (4) and (5) into C = (X T X) -1 X T Y determines the rear lane line of the vehicle.
[0065] The technical solution of the embodiment of the present invention obtains the vehicle's driving speed and the parameters of the front lane line, calculates the longitudinal distance of the vehicle along the lane line according to the driving speed and the parameters of the front lane line, calculates the vehicle's driving radius according to the curvature information of the lane line, calculates the coordinate deviation information generated by the vehicle during driving according to the driving radius, the longitudinal distance and the curvature information of the lane line, calculates the discrete point information of the rear lane line of the vehicle according to the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, fits the discrete point information using the least squares method, obtains the rear lane line equation information, and constructs the rear lane line equation, the rear lane line equation is y=c0+c1·x+c2·x 2 +c3·x 3 , the information of the rear lane line equation is substituted into the rear lane line equation to determine the rear lane line. Based on the above embodiment, the rear lane line is further determined by calculating the coordinate deviation information of the vehicle and the lane line equation, thereby improving the safety of the automatic driving system.
[0066] Figure 4 is a schematic diagram of the structure of a backward lane line fitting device provided in an embodiment of the present invention, Figure 4 As can be seen from FIG. 4 , the device includes: a parameter acquisition module 410, a distance calculation module 420, an information calculation module 430 and a lane line determination module 440.
[0067] The parameter acquisition module 410 is used to acquire the vehicle's driving speed and forward lane line parameters.
[0068] The distance calculation module 420 is used to calculate the longitudinal distance of the vehicle along the lane line according to the driving speed and the parameters of the front lane line.
[0069] The information calculation module 430 is used to calculate the discrete point information of the rear lane line of the vehicle according to the parameters of the front lane line and the longitudinal distance.
[0070] The lane line determination module 440 is used to fit the discrete point information to obtain the rear lane line equation information, and determine the rear lane line of the vehicle according to the rear lane line equation information.
[0071] Optionally, the forward lane line parameters include lateral information of the lane line from the vehicle, slope information of the angle between the lane line and the vehicle, curvature information of the lane line, and curvature derivative information.
[0072] Optionally, the longitudinal distance Δs i =-V i ·T·cos(atan(C 1i )); where V i is the driving speed, T represents the interval between adjacent moments, C 1i is the slope information of the angle between the lane line and the vehicle at time i.
[0073] Optionally, the information calculation module 430 is specifically used to: calculate the vehicle's driving radius based on the curvature information of the lane line; calculate the coordinate deviation information generated by the vehicle during driving based on the driving radius, longitudinal distance and the curvature information of the lane line; calculate the discrete point information of the vehicle's rear lane line based on the longitudinal distance, the curvature information of the lane line and the coordinate deviation information.
[0074] Optionally, the information calculation module 430 calculates the discrete point information of the rear lane line of the vehicle based on the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, and is specifically used to: calculate the angle information of the lane line based on the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, and obtain the geometric shape discrete coordinate information of the rear lane line at the current moment based on the angle information; calculate the discrete point information of the rear lane line of the vehicle based on the geometric shape discrete coordinate information, the lateral information of the lane line from the vehicle and the slope information of the angle between the lane line and the vehicle.
[0075] Optionally, the lane line determination module 440 is specifically used to: fit the discrete point information using the least squares method to obtain the rear lane line equation information; construct the rear lane line equation, the rear lane line equation is y=c0+c1·x+c2·x 2 +c3·x 3 , where c0 is the lateral information of the lane line from the vehicle, c1 is the slope information of the angle between the lane line and the vehicle, c2 is the curvature information of the lane line, and c3 is the curvature derivative information; substitute the backward lane line equation information into the backward lane line equation to determine the backward lane line.
[0076] Optionally, the forward lane line parameters also include confidence information of historical lane lines.
[0077] Optionally, the device further includes a confidence determination module, which is used to: calculate the confidence of the discrete points of the rear lane line according to the confidence information of the historical lane line; wherein the confidence p of the discrete points of the rear lane line at time i is i =p i-1 ·P i , p i-1 is the confidence of the discrete points of the rear lane line at time i-1, P i is the confidence information of the historical lane line at time i.
[0078] The backward lane line fitting device provided in the embodiment of the present invention can execute the backward lane line fitting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0079] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, and the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0080] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 to the RAM 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0081] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0082] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the method for backward lane line fitting.
[0083] In some embodiments, the method for rear lane fitting may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for rear lane fitting described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for rear lane fitting in any other appropriate manner (e.g., by means of firmware).
[0084] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0085] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0086] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0087] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT)), a liquid crystal display (LCD), a monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0088] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
[0089] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0090] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0091] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A backward lane line fitting method, characterized in that: The method includes: Acquire the vehicle's driving speed and forward lane line parameters; wherein the forward lane line parameters include lateral information of the lane line from the vehicle, slope information of the angle between the lane line and the vehicle, curvature information of the lane line, and curvature derivative information; Calculating the longitudinal distance traveled by the vehicle along the lane line according to the vehicle speed and the forward lane line parameter; Calculating discrete point information of a rear lane line of the vehicle according to the front lane line parameter and the longitudinal distance; The discrete point information is fitted using the least square method to obtain the backward lane line equation information; Construct the rear lane line equation, the rear lane line equation is y=c0+c1·X+c2·X 2 +c3·X 3 , where c0 is the lateral information of the lane line from the vehicle, c1 is the slope information of the angle between the lane line and the vehicle, c2 is the curvature information of the lane line, and c3 is the curvature derivative information; Substituting the rear lane line equation information into the rear lane line equation to determine the rear lane line; The step of calculating the discrete point information of the rear lane line of the vehicle according to the front lane line parameter and the longitudinal distance includes: Calculating the driving radius of the vehicle according to the curvature information of the lane line; Calculating coordinate deviation information generated by the vehicle during driving according to the driving radius, the longitudinal distance and the curvature information of the lane line; According to the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, the angle information of the lane line is calculated, and the geometric shape discrete coordinate information of the rear lane line at the current moment is obtained according to the angle information; wherein the geometric shape discrete coordinate information of the rear lane line is The x i is the horizontal coordinate information of the geometric shape discrete point at time i, y i is the ordinate information of the geometric discrete points at time i, θ i is the angle information of the geometric shape discrete point at time i, x i-1 is the horizontal coordinate information of the geometric discrete point at time i-1, y i-1 is the ordinate information of the geometric discrete point at time i-1, θ i-1 is the angle information of the geometric discrete points at time i-1, It means that the coordinate information of the discrete points of the geometric shape of the rear lane line at time i is derived by combining the arc lane line model with the historical lane line information; According to the geometric shape discrete coordinate information, the lateral information of the lane line from the vehicle and the slope information of the angle between the lane line and the vehicle, the discrete point information of the rear lane line of the vehicle is calculated; wherein the discrete point information of the rear lane line of the vehicle is It is the discrete point of the rear lane line considering the angle between the vehicle and the lane line under the current vehicle position after rotation and translation. C1 represents the first-order coefficient in the lane line equation output by the camera at the current moment, indicating the slope information of the current angle relative to the lane line. C0 represents the constant term in the lane line equation output by the camera at the current moment, indicating the lateral offset information of the current relative lane line. The step of calculating the driving radius of the vehicle according to the curvature information of the lane line includes: If the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 When the vehicle's driving radius at time i is, If the curvature information C of the lane line at time i 2i The absolute value is less than 5×10 -6 When the vehicle's driving radius at time i is R i =100000,|C 2i |<5×10 -6 ; The step of calculating the coordinate deviation information generated by the vehicle during driving according to the driving radius, the longitudinal distance and the curvature information of the lane line includes: If the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 When , the lateral coordinate deviation information is The longitudinal coordinate deviation information is If the curvature information C of the lane line at time i 2i The absolute value is less than 5×10 -6 When , the lateral coordinate deviation information is The longitudinal coordinate deviation information is 2. The method according to claim 1, characterized in that The longitudinal distance Δs i =-V i ·T·cosatan(C 1i )); Among them, V i is the driving speed, T represents the interval between adjacent moments, C 1i is the slope information of the angle between the lane line and the vehicle at time i.
3. The method according to claim 1, characterized in that The forward lane line parameter also includes confidence information of the historical lane line; the method further includes: Calculating the confidence of discrete points of the backward lane line according to the confidence information of the historical lane line; Among them, the confidence p of the discrete point of the rear lane line at time i i =p i-1 ·P i , p i-1 is the confidence of the discrete points of the rear lane line at time i-1, P i is the confidence information of the historical lane line at time i.
4. A backward lane line fitting device, characterized in that: The device includes: A parameter acquisition module, used to acquire the vehicle's driving speed and forward lane line parameters; wherein the forward lane line parameters include lateral information of the lane line from the vehicle, slope information of the angle between the lane line and the vehicle, curvature information of the lane line, and curvature derivative information; A distance calculation module, used to calculate the longitudinal distance traveled by the vehicle along the lane line according to the driving speed and the forward lane line parameter; An information calculation module, used to calculate the discrete point information of the rear lane line of the vehicle according to the front lane line parameter and the longitudinal distance; The lane line determination module is specifically used to fit the discrete point information using the least squares method to obtain the rear lane line equation information; construct the rear lane line equation, and the rear lane line equation is y=c0+c1·X+c2·X 2 +c3·X 3 , wherein c0 is the lateral information of the lane line from the vehicle, c1 is the slope information of the angle between the lane line and the vehicle, c2 is the curvature information of the lane line, and c3 is the curvature derivative information; the backward lane line equation information is substituted into the backward lane line equation to determine the backward lane line; wherein the information calculation module is specifically used to calculate the driving radius of the vehicle according to the curvature information of the lane line; according to the driving radius, the longitudinal distance and the curvature information of the lane line, calculate the coordinate deviation information generated by the vehicle during the driving process; according to the longitudinal distance, the curvature information of the lane line and the coordinate deviation information, calculate the angle information of the lane line, and obtain the geometric shape discrete coordinate information of the backward lane line at the current moment according to the angle information; wherein the geometric shape discrete coordinate information of the backward lane line is The x i is the horizontal coordinate information of the geometric shape discrete point at time i, y i is the ordinate information of the geometric discrete points at time i, θ i is the angle information of the geometric shape discrete point at time i, x i-1 is the horizontal coordinate information of the geometric discrete point at time i-1, y i-1 is the ordinate information of the geometric discrete point at time i-1, θ i-1 is the angle information of the geometric discrete points at time i-1, It means that the geometric shape discrete point coordinate information of the rear lane line at time i is derived by using the arc lane line model combined with the historical lane line information; the discrete point information of the rear lane line of the vehicle is calculated according to the geometric shape discrete coordinate information, the lateral information of the lane line from the vehicle and the slope information of the angle between the lane line and the vehicle; wherein the discrete point information of the rear lane line of the vehicle is It is the discrete point of the rear lane line considering the angle between the vehicle and the lane line under the current vehicle position after rotation and translation. C1 represents the first-order coefficient in the lane line equation output by the camera at the current moment, indicating the slope information of the current angle relative to the lane line. C0 represents the constant term in the lane line equation output by the camera at the current moment, indicating the lateral offset information of the current relative lane line. The step of calculating the driving radius of the vehicle according to the curvature information of the lane line includes: If the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 When the vehicle's driving radius at time i is, If the curvature information C of the lane line at time i 2i The absolute value is less than 5×10 -6 When the vehicle's driving radius at time i is R i =100000,|C 2i |<5×10 -6 ; The calculating of the coordinate deviation information generated by the vehicle during the driving process according to the driving radius, the longitudinal distance and the curvature information of the lane line includes: If the curvature information C of the lane line at time i 2i The absolute value is greater than or equal to 5×10 -6 When , the lateral coordinate deviation information is The longitudinal coordinate deviation information is If the curvature information C of the lane line at time i 2i The absolute value is less than 5×10 -6 When , the lateral coordinate deviation information is The longitudinal coordinate deviation information is 5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the backward lane line fitting method described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the backward lane line fitting method according to any one of claims 1 to 3 when executed.
