Lane line processing method, device, electronic device and storage medium
By obtaining lane line information from map data, performing coordinate and projection transformations, and obtaining prediction parameters, the problem of deviation and jitter when directly fitting lane lines is solved, and the accuracy of lane line prediction and navigation accuracy are improved.
Patent Information
- Application Number
- CN202011484467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-12-16
AI Technical Summary
In the fields of intelligent transportation and autonomous driving, when directly fitting lane line shapes, the fitting results have large deviations and jitter, which affects the accuracy of lane line prediction.
By obtaining the lane line information that matches the current position of the vehicle from the map data, performing coordinate transformation and projection transformation, the lane line information in the real coordinate system is obtained, and the prediction parameters are obtained based on the collection parameters to fit the lane line shape.
It improves the accuracy of lane line prediction and navigation accuracy, avoids the deviation and jitter problems caused by direct fitting, and can accurately detect blocked lane lines.
Smart Images

Figure CN112560680B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology processing, and in particular to the fields of computer vision, image processing, intelligent transportation, autonomous driving, map navigation, etc. Background Art
[0002] In the fields of intelligent transportation, autonomous driving, map navigation, etc., the shape of the lane line at a predetermined distance forward from the current position can be identified to accurately guide the vehicle to drive along the lane line to maintain a good driving condition.
[0003] To identify the shape of the lane line at a predetermined distance ahead of the current position, it is necessary to predict the shape of the lane line. In the prediction process, if the shape of the lane line is directly fitted, the fitting result will have a large deviation and jitter, which will affect the accuracy of the lane line prediction. Summary of the invention
[0004] The present invention provides a lane line processing method, device, electronic device and storage medium.
[0005] According to one aspect of the present disclosure, a lane line processing method is provided, comprising:
[0006] Acquire first lane line information matching the current position of the vehicle from the map data, and perform coordinate transformation on the first lane line information to obtain second lane line information located in the real coordinate system of the vehicle;
[0007] Acquire a first coordinate value corresponding to the second lane line information, and perform projection transformation according to acquisition parameters to obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters;
[0008] Obtaining a prediction parameter according to a second coordinate value corresponding to the second lane line information;
[0009] According to the prediction parameters, a target object is obtained.
[0010] According to another aspect of the present disclosure, a lane line processing device is provided, comprising:
[0011] A first processing module is used to obtain first lane line information matching the current position of the vehicle from the map data, and perform coordinate transformation on the first lane line information to obtain second lane line information located in a real coordinate system of the vehicle;
[0012] A second processing module is used to obtain a first coordinate value corresponding to the second lane line information, and perform projection transformation according to acquisition parameters to obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters;
[0013] A prediction module, used to obtain a prediction parameter according to a second coordinate value corresponding to the second lane line information;
[0014] The third processing module is used to obtain the target object according to the prediction parameters.
[0015] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method provided by any embodiment of the present disclosure.
[0019] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided by any embodiment of the present disclosure.
[0020] According to another aspect of the present disclosure, a computer program product is provided, including computer instructions, which implement the method provided by any embodiment of the present disclosure when executed by a processor.
[0021] By adopting the present disclosure, the first lane line information matching the current position of the vehicle can be obtained from the map data, and the first lane line information can be subjected to coordinate transformation to obtain the second lane line information located in the real coordinate system of the vehicle. The first coordinate value corresponding to the second lane line information can be obtained, and a projection transformation can be performed according to the acquisition parameters to obtain the second coordinate value corresponding to the second lane line information in the acquisition plane obtained based on the acquisition parameters, and the prediction parameters can be obtained according to the second coordinate value corresponding to the second lane line information. According to the prediction parameters, the target object can be obtained (the target object is the fitting result according to the prediction parameters), thereby improving the accuracy of lane line prediction.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0024] Figure 1is a flowchart of a lane line processing method according to an embodiment of the present disclosure;
[0025] Figure 2 is a flowchart of a lane line processing method according to an embodiment of the present disclosure;
[0026] Figure 3 is a schematic diagram of lane line fitting according to an embodiment of the present disclosure;
[0027] Figure 4 is a schematic diagram of a lane line processing device in an application example according to an embodiment of the present disclosure;
[0028] Figure 5 is a schematic diagram of the structure of a lane line processing device according to an embodiment of the present disclosure;
[0029] Figure 6 It is a block diagram of an electronic device used to implement the lane line processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0031] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this article refer to multiple similar technical terms and distinguish them. They do not mean to limit the order or to limit them to only two. For example, the first feature and the second feature refer to two types / two features. The first feature can be one or more, and the second feature can also be one or more.
[0032] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0033] According to an embodiment of the present disclosure, a lane line processing method is provided. Figure 1 It is a flowchart of a lane line processing method according to an embodiment of the present disclosure. The method can be applied to a lane line processing device. For example, the device can be deployed in a terminal or a server or other processing device for execution. It can perform coordinate transformation of lane line information, projection transformation of lane line information, prediction based on lane line coordinates obtained after projection transformation, and obtaining target objects based on prediction parameters obtained by prediction, etc. Among them, the terminal can be a user equipment (UE, User Equipment), a mobile device, a cellular phone, a cordless phone, a personal digital assistant (PDA, Personal Digital Assistant), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method can also be implemented by a processor calling computer-readable instructions stored in a memory. For example Figure 2 As shown, including:
[0034] S101. Acquire first lane line information matching a current position of a vehicle from map data, and perform coordinate transformation on the first lane line information to obtain second lane line information in a real coordinate system of the vehicle.
[0035] S102: Acquire a first coordinate value corresponding to the second lane line information, perform projection transformation according to acquisition parameters, and obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters.
[0036] S103: Obtain prediction parameters according to the second coordinate value corresponding to the second lane line information.
[0037] S104: Obtain a target object according to the prediction parameters.
[0038] In an example based on the above S101-S104, the first lane line information (such as the first lane line shape point) matching the current position of the vehicle can be obtained from the map data (such as the high-precision map data), and the first lane line information is transformed according to the current position and the corresponding heading of the vehicle to obtain the second lane line information (such as the second lane line shape point) in the real coordinate system of the vehicle (i.e., the vehicle coordinate system in the vehicle driving state, the vehicle coordinate system is such as the 3D coordinate system in the navigation street view). The first coordinate value corresponding to the second lane line information (such as the 3D coordinate value of the second lane line shape point in the vehicle coordinate system) is obtained, and a projection transformation is performed according to the acquisition parameters (such as the internal and external parameters corresponding to the camera given in advance) to obtain the second coordinate value corresponding to the second lane line information in the acquisition plane (the acquisition plane is a 2D image acquisition plane) obtained based on the acquisition parameters (such as the 2D coordinate value of the second lane line shape point in the 2D acquisition plane). The prediction parameters are obtained according to the second coordinate values corresponding to the second lane line information, and the target object is obtained according to the prediction parameters.
[0039] Among them, the target object includes: fitting parameters obtained according to the predicted parameters, and the actual lane line shape can also be detected based on the fitting parameters, that is, when the vehicle is driving, the lane line shape that matches the current position of the above-mentioned vehicle, even the lane line blocked by other vehicles or objects, can also be accurately detected.
[0040] By adopting the present disclosure, the first lane line information matching the current position of the vehicle can be obtained from the map data, and the first lane line information can be transformed to obtain the second lane line information in the real coordinate system of the vehicle. The first coordinate value corresponding to the second lane line information can be obtained, and the projection transformation can be performed according to the acquisition parameters to obtain the second coordinate value corresponding to the second lane line information in the acquisition plane obtained based on the acquisition parameters, and the prediction parameters can be obtained according to the second coordinate value corresponding to the second lane line information. The target object can be obtained according to the prediction parameters. The target object is the fitting parameter (or fitting result) fitted according to the prediction parameters. Due to the coordinate transformation and projection transformation, the first lane line information in the map data can be matched to obtain the second lane line information in the real coordinate system of the vehicle, and the prediction parameters can be obtained according to the second coordinate value corresponding to the second lane line information in the acquisition plane, so as to fit according to the prediction parameters instead of directly fitting, so that the fitting parameters (or fitting results) obtained according to the prediction parameters are more accurate, thereby improving the accuracy of lane line prediction and the accuracy of lane line navigation.
[0041] According to an embodiment of the present disclosure, a lane line processing method is provided. Figure 2is a flow chart of a lane line processing method according to an embodiment of the present disclosure, such as Figure 2 As shown, including:
[0042] S201. Obtain the current position of the vehicle.
[0043] S202. In the map data, taking the current position of the vehicle as a reference point, obtain a sampling range extending forward of a preset length from the reference point.
[0044] S203: Use the first lane line information within the sampling range as the first lane line information matching the current position of the vehicle.
[0045] S204: performing coordinate transformation on the first lane line information to obtain second lane line information in a real coordinate system where the vehicle is traveling.
[0046] S205: Acquire a first coordinate value corresponding to the second lane line information, perform projection transformation according to acquisition parameters, and obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters.
[0047] S206: Obtain prediction parameters according to the second coordinate value corresponding to the second lane line information, and obtain the target object according to the prediction parameters.
[0048] By adopting the above processing flow of S201-S206, the current position of the vehicle can be obtained, so that the current position of the vehicle is used as a reference point in the map data (which can be the starting point of the vehicle), and a sampling range extending forward by a preset length from the reference point is obtained, and the first lane line information within the sampling range is used as the first lane line information matching the current position of the vehicle, thereby obtaining the first lane line information matching the current position of the vehicle. Afterwards, the first lane line information is subjected to coordinate transformation to obtain the second lane line information located in the real coordinate system of the vehicle, and a projection transformation is performed according to the acquisition parameters, so as to obtain the second coordinate value corresponding to the first coordinate value of the second lane line information in the acquisition plane obtained based on the acquisition parameters, and the prediction parameters can be obtained according to the second coordinate value corresponding to the second lane line information, so as to obtain the target object according to the prediction parameters. The target object is the fitting parameter (or fitting result) fitted according to the prediction parameters. Since the first lane line information matching the current position of the vehicle is within the sampling range of a preset length extending forward from the reference point, the possibility of the lane line at the predetermined position where the vehicle will travel can be predicted in advance, and the lane line that may be obscured at the current position of the vehicle can also be predicted, providing sampling data for the subsequent prediction of the possible lane line shape in the actual vehicle travel. After coordinate transformation and projection transformation, the first lane line information in the map data can be matched to obtain the second lane line information in the real coordinate system of the vehicle travel. According to the second coordinate value corresponding to the second lane line information in the acquisition plane, the prediction parameters can be obtained, thereby fitting according to the prediction parameters instead of direct fitting. Therefore, the fitting parameters (or fitting results) obtained according to the prediction parameters are more accurate, thereby improving the accuracy of lane line prediction and the accuracy of lane line-based navigation.
[0049] In one embodiment, the first lane line information includes: a first lane line shape point. The first lane line information is subjected to coordinate transformation to obtain second lane line information located in a real coordinate system in which the vehicle is traveling, including: according to the current position and the heading corresponding to the vehicle, the first lane line shape point is subjected to coordinate transformation to obtain a second lane line shape point located in the real coordinate system in which the vehicle is traveling; and the second lane line shape point is used as the second lane line information.
[0050] By adopting this embodiment, the coordinate transformation of the first lane line can be performed according to the current position and heading to obtain the shape points of the second lane line in the real coordinate system of the vehicle (i.e., the vehicle coordinate system), so as to obtain prediction parameters for the shape points of the second lane line.
[0051] In one embodiment, the method of obtaining the first coordinate value corresponding to the second lane line information and performing a projection transformation according to acquisition parameters to obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters includes: obtaining the acquisition parameters including camera intrinsic parameters and extrinsic parameters; according to the acquisition parameters, projecting the first coordinate value corresponding to the shape point of the second lane line from a 3D coordinate system to a 2D coordinate system where the acquisition plane is located to obtain a second coordinate value corresponding to the shape point of the second lane line.
[0052] In this embodiment, since the real coordinate system of the vehicle (i.e., the vehicle coordinate system) is a 3D coordinate system, and the coordinate system of the acquisition plane is a 2D coordinate system, it is also necessary to transform the second lane line from 3D coordinates to 2D coordinates through projection transformation, so as to obtain prediction parameters for the 2D coordinates of the second lane line shape points.
[0053] In one embodiment, obtaining the prediction parameter based on the second coordinate value corresponding to the second lane line information includes: obtaining the pixel coordinates corresponding to the second lane line shape point, and using the pixel coordinates as the second coordinate value; performing curve fitting processing on the pixel coordinates using the least squares method to obtain the prediction parameter.
[0054] By adopting this embodiment, curve fitting processing can be performed by the least square method to obtain prediction parameters, and the fitting parameters obtained according to the prediction parameters are more accurate. For example, the prediction parameters can correspond to multiple possible shape points of the predicted lane line shape. For example, there are currently 5 shape points, and some of these 5 shape points can be used as control points for lane line shape point prediction, and finally the final accurately predicted shape points are fitted according to the control points. In other words, there are points to be deleted or ignored among these 5 shape points. If 3 of these 5 shape points can be used as control points, then the remaining 2 points are the points to be deleted or ignored. Since it is not directly fitted for these 5 shape points, the problem of large deviation and jitter in the fitting result caused by directly fitting the lane line shape is avoided, thereby improving the accuracy of lane line prediction.
[0055] In one embodiment, the target object is obtained according to the prediction parameters, including: obtaining at least two to-be-processed curves according to the pixel coordinates corresponding to the second lane line shape point; adjusting the pixel coordinates corresponding to the same second lane line shape point on the at least two to-be-processed curves according to the prediction parameters until the difference in pixel coordinates meets the error calibration threshold, thereby obtaining a target fitting curve; and using the parameters used to describe the target fitting curve as the target object. The parameters used to describe the target fitting curve include: at least one of an offset, an inclination angle, and a curvature radius.
[0056] In one example, Figure 3 is a schematic diagram of lane line fitting according to an embodiment of the present disclosure, such as Figure 3 As shown, it includes control points for curve fitting, which correspond to the above-mentioned prediction parameters and are control points among multiple possible shape points of the predictable lane line shape. There are 4 control points (i.e., control point p1-control point p4). According to control point p1-control point p4, multiple curves to be fitted can be obtained. Taking the first curve to be fitted and the second curve to be fitted as examples, the pixel coordinates corresponding to the same second lane line shape point on the at least two curves to be processed are adjusted according to the prediction parameters until the difference in pixel coordinates meets the calibration threshold of the error, thereby obtaining a target fitting curve.
[0057] By adopting this embodiment, the pixel coordinates corresponding to the same second lane line shape point on the at least two curves to be processed can be adjusted by prediction parameters until the difference between the pixel coordinates meets the calibration threshold of the error, and a target fitting curve is obtained, then sufficiently accurate fitting parameters are obtained, which are the parameters used to describe the target fitting curve.
[0058] Application examples:
[0059] To identify the shape of the lane line at a predetermined distance ahead of the current position, it is necessary to predict the shape of the lane line. In the prediction process, if the prediction parameters are not considered and the shape of the lane line is directly fitted, the fitting result will have a large deviation and jitter, which will affect the accuracy of the lane line prediction.
[0060] In this application example, the shape of the lane line can be accurately predicted based on positioning (such as locating the current position of the vehicle based on the vehicle's built-in GPS) and road network information (such as lane line information, road curb information, and information around the road such as road signs) (for example, when the lane line is blocked, the blocked part of the real lane line can be accurately fitted; for example, before driving to the predetermined position, the shape of the lane line related to the predetermined position can be known in advance, etc.), and the lane line shape points are fitted through equations to obtain prediction parameters, and then more stable and accurate fitting results are obtained based on the prediction parameters, thereby improving the navigation guidance experience. The accurate prediction of the lane line shape can accurately guide the vehicle to drive along the lane line to maintain a good driving state.
[0061] Figure 4 is a schematic diagram of a lane line processing device according to an application example of an embodiment of the present disclosure, such as Figure 4 As shown, the lane line processing device includes: a positioning module, a map module, a fitting parameter prediction module, a lane line detection module, and an optimal fitting module.
[0062] By using the embodiments of the present disclosure, the internal and external parameters of the camera can be obtained in advance. The processing flow based on the lane line processing device includes the following contents:
[0063] 1) Perform positioning processing through the positioning module to obtain the current position of the vehicle.
[0064] 2) Through the map module and the current position of the vehicle, a sampling range of a given length forward of the current position is given, and the lane line detection module is used to obtain the first lane line shape point within the sampling range. The first lane line shape point is transformed into the vehicle coordinate system to obtain the second lane line shape point.
[0065] 3) Calculate the first coordinate value of the second lane line shape point in the vehicle coordinate system according to the current positioning position and heading.
[0066] 4) According to the internal and external parameters of the camera, the first coordinate value of the second lane line shape point in the vehicle coordinate system is transformed into the acquisition plane through projection to obtain the second coordinate value of the second lane line shape point. In the fitting parameter prediction module, the least squares fitting process is performed according to the following formula to obtain the prediction parameters, and the prediction parameters include: A, B, u0, v0.
[0067]
[0068] 5) In the optimal fitting module, the fitting parameters are calculated according to the prediction parameters output by the prediction module of the fitting parameters and the following formula, and the error result obtained by the following formula is minimized to obtain the optimal fitting result, which is used as the final fitting parameter.
[0069]
[0070] In the above formula, A represents the slope of the curve to be fitted; B represents the curvature of the curve to be fitted; u0, v0, u ij , They represent the corresponding pixels, and σ represents the variance.
[0071] According to an embodiment of the present disclosure, a lane line processing device is provided. Figure 5 is a schematic diagram of the structure of the lane line processing device according to an embodiment of the present disclosure, such as Figure 5As shown, it includes: a first processing module 41, which is used to obtain first lane line information matching the current position of the vehicle from the map data, and perform coordinate transformation on the first lane line information to obtain second lane line information located in the real coordinate system of the vehicle; a second processing module 42, which is used to obtain a first coordinate value corresponding to the second lane line information, and perform projection transformation according to acquisition parameters to obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameters; a prediction module 43, which is used to obtain prediction parameters according to the second coordinate value corresponding to the second lane line information; and a third processing module 44, which is used to obtain a target object according to the prediction parameters.
[0072] In one embodiment, the first processing module is used to obtain the current position; in the map data, taking the current position as a reference point, a sampling range extending forward of a preset length from the reference point is obtained; and the first lane line information within the sampling range is used as the first lane line information matching the current position of the vehicle.
[0073] In one embodiment, the first lane line information includes: a first lane line shape point; the first processing module is used to transform the coordinates of the first lane line shape point according to the current position and the heading corresponding to the vehicle to obtain a second lane line shape point located in the real coordinate system of the vehicle; and use the second lane line shape point as the second lane line information.
[0074] In one embodiment, the second processing module is used to obtain the acquisition parameters including camera internal parameters and external parameters; according to the acquisition parameters, the first coordinate value corresponding to the second lane line shape point is projected and transformed from the 3D coordinate system to the 2D coordinate system where the acquisition plane is located, so as to obtain the second coordinate value corresponding to the second lane line shape point.
[0075] In one embodiment, the prediction module is used to obtain the pixel coordinates corresponding to the second lane line shape point, and use the pixel coordinates as the second coordinate value; and perform curve fitting processing on the pixel coordinates using the least squares method to obtain the prediction parameters.
[0076] In one embodiment, the third processing module is used to obtain at least two to-be-processed curves according to the pixel coordinates corresponding to the second lane line shape point; adjust the pixel coordinates corresponding to the same second lane line shape point on the at least two to-be-processed curves according to the prediction parameters until the difference between the pixel coordinates meets the error calibration threshold, thereby obtaining a target fitting curve; and use the parameters used to describe the target fitting curve as the target object. The parameters used to describe the target fitting curve include: at least one of an offset, an inclination angle, and a curvature radius.
[0077] The functions of each module in each device of the embodiments of the present disclosure can be found in the corresponding description of the above method, which will not be repeated here.
[0078] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0079] like Figure 6 , is a block diagram of an electronic device for implementing the lane line processing method of an embodiment of the present disclosure. The electronic device may be the aforementioned deployment device or proxy device. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, 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, 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 disclosure described and / or required herein.
[0080] like Figure 6 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0081] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0082] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 80 performs the various methods and processes described above, such as the lane line processing method. For example, in some embodiments, the lane line processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the lane line processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the lane line processing method in any other appropriate manner (e.g., by means of firmware).
[0083] Various implementations 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 products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations 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.
[0084] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code 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.
[0085] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. 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 random access memory (RAM), a read-only memory (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.
[0086] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0087] The systems and techniques described herein may be implemented in a computing system that includes back-end 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 front-end 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 back-end components, middleware components, or front-end 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), and the Internet.
[0088] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0089] 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 recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0090] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. 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 disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A lane line processing method, the method comprising: Acquire first lane line information matching the current position of the vehicle from the map data, and perform coordinate transformation on the first lane line information to obtain second lane line information located in the real coordinate system of the vehicle; Acquire a first coordinate value corresponding to the second lane line information, perform a projection transformation according to an acquisition parameter, and obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameter, wherein the coordinate system of the acquisition plane is a 2D coordinate system; Obtaining a prediction parameter according to a second coordinate value corresponding to the second lane line information; According to the prediction parameters, a target object is obtained, wherein the target object is used to characterize the shape of a lane line that matches a current position of the vehicle during the driving of the vehicle; Among them, the prediction parameters are used to characterize the parameters for adjusting the pixel coordinates corresponding to the same second lane line shape point on at least two curves to be processed, the second lane line shape point belongs to the second lane line information, the pixel coordinates belong to the second coordinate value, and the curve to be processed is used to characterize the curve determined based on the pixel coordinates and used to fit the target object.
2. The method according to claim 1, wherein: The step of acquiring first lane line information matching the current position of the vehicle from the map data includes: Obtaining the current location; In the map data, taking the current position as a reference point, obtaining a sampling range extending forward of a preset length from the reference point; The first lane line information within the sampling range is used as the first lane line information matching the current position of the vehicle.
3. The method according to claim 1 or 2, wherein: The first lane line information includes: a first lane line shape point; The coordinate transformation of the first lane line information to obtain the second lane line information located in the real coordinate system of the vehicle includes: According to the current position and the heading corresponding to the vehicle, coordinate transformation is performed on the first lane line shape point to obtain a second lane line shape point located in a real coordinate system where the vehicle is traveling; The second lane line shape point is used as the second lane line information.
4. The method according to claim 3, wherein: The acquiring the first coordinate value corresponding to the second lane line information, performing projection transformation according to acquisition parameters, and obtaining the second coordinate value corresponding to the second lane line information in the acquisition plane obtained based on the acquisition parameters, includes: Obtaining the acquisition parameters including camera internal and external parameters; According to the acquisition parameters, the first coordinate value corresponding to the second lane line shape point is projected and transformed from the 3D coordinate system to the 2D coordinate system where the acquisition plane is located, so as to obtain the second coordinate value corresponding to the second lane line shape point.
5. The method according to claim 4, wherein: The obtaining of prediction parameters according to the second coordinate value corresponding to the second lane line information includes: Obtaining pixel coordinates corresponding to the second lane line shape point, and using the pixel coordinates as the second coordinate value; The pixel coordinates are subjected to curve fitting processing by the least square method to obtain the prediction parameters.
6. The method according to claim 5, wherein: The step of obtaining a target object according to the prediction parameters comprises: Obtaining at least two to-be-processed curves according to the pixel coordinates corresponding to the second lane line shape points; According to the prediction parameters, pixel coordinates corresponding to the same second lane line shape point on the at least two to-be-processed curves are adjusted until the difference in pixel coordinates meets a calibration threshold of an error, thereby obtaining a target fitting curve; Using parameters used to describe the target fitting curve as the target object; The parameters used to describe the target fitting curve include at least one of an offset, an inclination angle, and a curvature radius.
7. A lane line processing device, the device comprising: A first processing module is used to obtain first lane line information matching the current position of the vehicle from the map data, and perform coordinate transformation on the first lane line information to obtain second lane line information located in a real coordinate system of the vehicle; a second processing module, configured to obtain a first coordinate value corresponding to the second lane line information, and perform a projection transformation according to an acquisition parameter to obtain a second coordinate value corresponding to the second lane line information in an acquisition plane obtained based on the acquisition parameter, wherein the coordinate system of the acquisition plane is a 2D coordinate system; A prediction module, used to obtain a prediction parameter according to a second coordinate value corresponding to the second lane line information; A third processing module is used to obtain a target object according to the prediction parameter, wherein the target object is used to characterize the shape of a lane line that matches the current position of the vehicle during the driving process of the vehicle; Among them, the prediction parameters are used to characterize the parameters for adjusting the pixel coordinates corresponding to the same second lane line shape point on at least two curves to be processed, the second lane line shape point belongs to the second lane line information, the pixel coordinates belong to the second coordinate value, and the curve to be processed is used to characterize the curve determined based on the pixel coordinates and used to fit the target object.
8. The device according to claim 7, wherein: The first processing module is used to: Obtaining the current location; In the map data, taking the current position as a reference point, obtaining a sampling range extending forward of a preset length from the reference point; The first lane line information within the sampling range is used as the first lane line information matching the current position of the vehicle.
9. The device according to claim 7 or 8, wherein: The first lane line information includes: a first lane line shape point; The first processing module is used to: According to the current position and the heading corresponding to the vehicle, coordinate transformation is performed on the first lane line shape point to obtain a second lane line shape point located in a real coordinate system where the vehicle is traveling; The second lane line shape point is used as the second lane line information.
10. The device according to claim 9, wherein: The second processing module is used to: Obtaining the acquisition parameters including camera internal and external parameters; According to the acquisition parameters, the first coordinate value corresponding to the second lane line shape point is projected and transformed from the 3D coordinate system to the 2D coordinate system where the acquisition plane is located, so as to obtain the second coordinate value corresponding to the second lane line shape point.
11. The device according to claim 10, wherein: The prediction module is used to: Obtaining pixel coordinates corresponding to the second lane line shape point, and using the pixel coordinates as the second coordinate value; The pixel coordinates are subjected to curve fitting processing by the least square method to obtain the prediction parameters.
12. The device according to claim 11, wherein: The third processing module is used for: Obtaining at least two to-be-processed curves according to the pixel coordinates corresponding to the second lane line shape points; According to the prediction parameters, pixel coordinates corresponding to the same second lane line shape point on the at least two to-be-processed curves are adjusted until the difference in pixel coordinates meets a calibration threshold of an error, thereby obtaining a target fitting curve; Using parameters used to describe the target fitting curve as the target object; The parameters used to describe the target fitting curve include at least one of an offset, an inclination angle, and a curvature radius.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 6.
15. A computer program product, comprising computer instructions, which implement the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Patent Citations
Method and device for obtaining lane line
CN104766058A
Lane line recognition method and device
CN105528588A
Display method and system for early warning function of intelligent vehicle
CN107310475A
Method and device for determining target lane
CN108303103A
System and method for image based vehicle localization
CN108450034A
