Movatterモバイル変換


[0]ホーム

URL:


CN112528807A - Method and device for predicting driving track, electronic equipment and storage medium - Google Patents

Method and device for predicting driving track, electronic equipment and storage medium
Download PDF

Info

Publication number
CN112528807A
CN112528807ACN202011403570.7ACN202011403570ACN112528807ACN 112528807 ACN112528807 ACN 112528807ACN 202011403570 ACN202011403570 ACN 202011403570ACN 112528807 ACN112528807 ACN 112528807A
Authority
CN
China
Prior art keywords
trajectory
line
driving
track
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011403570.7A
Other languages
Chinese (zh)
Other versions
CN112528807B (en
Inventor
李奕润
蔡永辉
刘业鹏
程骏
庞建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ubtech Technology Co ltdfiledCriticalShenzhen Ubtech Technology Co ltd
Priority to CN202011403570.7ApriorityCriticalpatent/CN112528807B/en
Publication of CN112528807ApublicationCriticalpatent/CN112528807A/en
Application grantedgrantedCritical
Publication of CN112528807BpublicationCriticalpatent/CN112528807B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请适用于自动驾驶技术领域,提供了行驶轨迹的预测方法、装置、电子设备及存储介质。行驶轨迹的预测方法包括获取当前道路的图像,从图像中提取车道线,根据车道线确定用于拟合行驶轨迹的轨迹点以及行驶轨迹的入弯点,根据入弯点将轨迹点分为直线部分的轨迹点以及曲线部分的轨迹点,分别对直线部分的轨迹点和曲线部分的轨迹点进行拟合,得到直线轨迹和曲线轨迹,连接直线轨迹和曲线轨迹得到行驶轨迹,可以提高弯道位置轨迹拟合的准确度,进而提高了预测的行驶轨迹的准确率,提高了车辆行驶时的平稳程度。

Figure 202011403570

The present application is applicable to the technical field of automatic driving, and provides a method, device, electronic device and storage medium for predicting a driving trajectory. The prediction method of the driving trajectory includes acquiring the image of the current road, extracting the lane line from the image, determining the trajectory point used to fit the driving trajectory and the inflection point of the driving trajectory according to the lane line, and dividing the trajectory points into straight lines according to the inflection point. Part of the trajectory points and the trajectory points of the curved part are fitted to the trajectory points of the straight part and the trajectory points of the curved part, respectively, to obtain the straight trajectory and the curved trajectory, and connect the straight trajectory and the curved trajectory to obtain the driving trajectory, which can improve the position of the curve. The accuracy of the trajectory fitting is improved, thereby improving the accuracy of the predicted driving trajectory and improving the stability of the vehicle when driving.

Figure 202011403570

Description

Method and device for predicting driving track, electronic equipment and storage medium
Technical Field
The present application relates to the field of automatic driving technologies, and in particular, to a method and an apparatus for predicting a driving trajectory, an electronic device, and a storage medium.
Background
Along with the continuous development of artificial intelligence in recent years, the unmanned technology is more and more emphasized, and compared with the traditional vehicle driven by human beings, the unmanned vehicle has the advantages of greatly reducing the number of traffic accidents, greatly reducing traffic jam, contributing to improving fuel efficiency, reducing greenhouse gas emission, greatly saving driver time and the like.
In the unmanned technology, the prediction of the driving track of the vehicle is a key technology for ensuring that the unmanned vehicle can drive stably according to a lane line, and the driving track of the vehicle cannot be accurately predicted in the existing unmanned technology, so that the vehicle cannot drive stably.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for predicting a driving trajectory, an electronic device, and a storage medium, which can improve the accuracy of the predicted driving trajectory and improve the smoothness of a vehicle during driving.
A first aspect of an embodiment of the present application provides a method for predicting a travel track, including:
acquiring an image of a current road;
extracting a lane line from the image;
determining track points for fitting a driving track and bend-in points of the driving track according to the lane lines;
dividing the track points into track points of a straight line part and track points of a curved line part according to the bending points;
and respectively fitting the track points of the linear part and the track points of the curved part to obtain a linear track and a curved track, and connecting the linear track and the curved track to obtain the running track.
In one possible implementation, the extracting lane lines from the image includes:
and extracting the lane lines from the image by adopting an image segmentation algorithm based on a neural network.
In a possible implementation manner, the capturing view angle of the image is a first view angle, and the extracting the lane line from the image includes:
carrying out visual angle transformation on the image to obtain an image of a overlooking visual angle;
and extracting a lane line from the image of the overlooking visual angle.
In one possible implementation, the lane line of the top view includes a left lane line, a right lane line and is located the left lane line with the dotted line between the right lane line, the dotted line includes at least two line segments, the travel track includes a left travel track and a right travel track, according to the lane line determines the track point for fitting the travel track, including:
taking the midpoint of each first connecting line as a track point for fitting a left driving track, wherein one first connecting line is a connecting line between the center of the line segment and the left lane line and is perpendicular to the corresponding line segment;
and taking the midpoint of each second connecting line as a track point for fitting a right driving track, wherein one second connecting line is a connecting line between the center of the line segment and the right lane line, and the second connecting line is perpendicular to the corresponding line segment.
In one possible implementation manner, the determining a turning point of the driving track according to the lane line includes:
determining a bend-in point of the lane line;
and determining the bend-in point of the driving track according to the bend-in point of the lane line.
In one possible implementation, the determining the bend-in point of the lane line includes:
determining a gray image corresponding to the lane line of the overlooking visual angle;
and determining a bending point of the lane line according to the sum of the pixel values of each row of pixels in the gray-scale image, wherein the direction of each row of pixels is consistent with the direction of the linear track.
In a possible implementation manner, after the connecting the straight-line trajectory and the curved-line trajectory to obtain the travel trajectory, the method for predicting the travel trajectory further includes:
and determining the running speed of the vehicle and the steering engine steering angle of the vehicle entering the curve according to the running track.
A second aspect of an embodiment of the present application provides a device for predicting a travel track, including:
the acquisition module is used for acquiring an image of a current road;
the extraction module is used for extracting the lane line from the image;
the determining module is used for determining track points used for fitting a driving track and bend-in points of the driving track according to the lane lines;
the dividing module is used for dividing the track points into track points of a straight line part and track points of a curved line part according to the bending points;
and the fitting module is used for fitting the track points of the linear part and the track points of the curved part respectively to obtain a linear track and a curved track, and connecting the linear track and the curved track to obtain the running track.
In a possible implementation manner, the extraction module is specifically configured to:
and extracting the lane lines from the image by adopting an image segmentation algorithm based on a neural network.
In a possible implementation manner, the shooting angle of view of the image is a first angle of view, and the extraction module is specifically configured to:
carrying out visual angle transformation on the image to obtain an image of a overlooking visual angle;
and extracting a lane line from the image of the overlooking visual angle.
In a possible implementation manner, the lane line of the top view includes a left lane line, a right lane line, and an imaginary line located between the left lane line and the right lane line, the imaginary line includes at least two line segments, the travel trajectory includes a left travel trajectory and a right travel trajectory, and the determining module is specifically configured to:
taking the midpoint of each first connecting line as a track point for fitting a left driving track, wherein one first connecting line is a connecting line between the center of the line segment and the left lane line and is perpendicular to the corresponding line segment;
and taking the midpoint of each second connecting line as a track point for fitting a right driving track, wherein one second connecting line is a connecting line between the center of the line segment and the right lane line, and the second connecting line is perpendicular to the corresponding line segment.
In a possible implementation manner, the determining module is specifically further configured to:
determining a bend-in point of the lane line;
and determining the bend-in point of the driving track according to the bend-in point of the lane line.
In a possible implementation manner, the determining module is specifically further configured to:
determining a gray image corresponding to the lane line of the overlooking visual angle;
and determining a bending point of the lane line according to the sum of the pixel values of each row of pixels in the gray-scale image, wherein the direction of each row of pixels is consistent with the direction of the linear track.
In one possible implementation, the device for predicting a driving trajectory further includes a control module, configured to:
and determining the running speed of the vehicle and the steering engine steering angle of the vehicle entering the curve according to the running track.
A third aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the method for predicting a travel track according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for predicting a travel trajectory according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the method for predicting a travel track according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of extracting a lane line from an image by obtaining the image of a current road, determining track points for fitting a driving track and bend-in points of the driving track according to the lane line, dividing the track points into track points of a straight line part and track points of a curved line part according to the bend-in points, fitting the track points of the straight line part and the track points of the curved line part respectively to obtain a straight line track and a curved line track, and connecting the straight line track and the curved line track to obtain the driving track. The curve point is divided into the track points of the straight line part and the track points of the curved line part, and the straight line track and the curved line track are respectively fitted, so that the fitting accuracy of the track of the curved line position can be improved, the accuracy of the predicted running track is improved, the stability of the vehicle in running is improved, and particularly the stability of the vehicle in running at the curved line position is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for predicting a driving trajectory according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an image of a current road provided by an embodiment of the present application;
FIG. 3 is a gray scale image of a lane line provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an image of a current road from a top view provided by an embodiment of the present application;
FIG. 5 is a schematic view of a lane line from a top view provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of trace points provided by embodiments of the present application;
FIG. 7 is a diagram illustrating a distribution of sums of pixel values provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a driving trajectory obtained by fitting provided by the present embodiment;
fig. 9 is a schematic diagram of a device for predicting a travel track according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In the existing unmanned technology, the driving track of the vehicle is generally fitted according to the determined lane line, and the lane line comprises a straight line part and a curve part, and correspondingly, the driving track also comprises a straight line track and a curve track. Because the polynomial difference of the curve corresponding to the straight line track and the curve track is large, if one polynomial is used for fitting the straight line track and the curve track, the fitted driving track of the position of the curve is inaccurate, and then the vehicle cannot stably drive at the position of the curve.
Therefore, the application provides a method and a device for predicting the driving track, an electronic device and a storage medium, which can improve the accuracy of the predicted driving track and further improve the stability of the vehicle during driving.
The following is an exemplary description of a method for predicting a travel track provided in the present application.
The method for predicting the driving track is applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet personal computer, a vehicle-mounted terminal and the like.
Referring to fig. 1, a method for predicting a driving trajectory according to an embodiment of the present application includes:
s101: and acquiring an image of the current road.
Specifically, a video of a current road sent by a camera is acquired, the video is subjected to framing processing to obtain an image of the current road, and the camera is mounted at the front end of a vehicle. The current road can be a straight road or a curve, and the image of the current road is an RGB image.
S102: lane lines are extracted from the image.
In one possible implementation, lane lines may be extracted from the image based on an edge detection operator, with a higher computational speed.
However, the robustness of extracting lane lines from the image based on the edge detection operator to some extreme environments such as dark scenes and backlight scenes is poor. In another possible implementation mode, the image segmentation algorithm based on the neural network is adopted to extract the lane lines from the image, the image segmentation algorithm based on the neural network is obtained by training a training sample, and pictures under various shooting scenes are added into the training sample, so that the image segmentation algorithm based on the neural network can adapt to different scenes, and the lane lines can be accurately extracted under different scenes.
For example, the lane lines are segmented from the image using the Deeplab V3+ segmentation algorithm. The Deeplab V3+ algorithm has the advantages of high segmentation accuracy, mature algorithm, capability of using backbones with different network magnitudes for different platform performances and the like, and can be obtained by training for corresponding scenes, so that the robustness of the algorithm in each scene is improved.
For example, fig. 2 is an image of a current road, and a Deeplab V3+ segmentation algorithm is used to segment a lane line from the image, so as to obtain the lane line shown in fig. 3. The image of the current road shown in fig. 2 may be a grayscale image or an RGB image.
In a possible implementation manner, the shooting angle of view of the image of the current road is a first angle of view, and correspondingly, the extracted lane lines are lane lines of the first angle of view, and if the first angle of view is not a top view angle, the distances between the lane lines are different at different angles. In order to improve the accuracy of the subsequent trajectory prediction, the image at the first viewing angle as shown in fig. 2 may be subjected to view angle transformation to obtain an image at the top viewing angle as shown in fig. 4, and then the lane lines are extracted from the image at the top viewing angle to obtain the lane lines at the top viewing angle as shown in fig. 5. Or the lane lines at the first visual angle are extracted from the image at the first visual angle, and then the lane lines at the first visual angle are subjected to visual angle transformation to obtain the lane lines at the overlooking visual angle, so that the distance between the lane lines is kept unchanged at any angle, the calculation difficulty can be reduced when the subsequent driving track is fitted, and the calculation speed is increased.
S103: and determining track points for fitting a driving track and bending points of the driving track according to the lane lines.
The driving track is located between two lane lines, the driving track is also located between the two lane lines, if the current road has two lane lines, the corresponding driving track is one, if the current road has three lane lines, the corresponding driving track has two, and so on.
In one possible implementation, the current road includes three lane lines, namely a left lane line, a right lane line, and a dotted line located between the left lane line and the right lane line, where the dotted line includes at least two line segments, which are lane lines located between the left lane line and the right lane line. If the lane line between the left lane line and the right lane line is a solid line, the solid line may be divided into a plurality of line segments to form a dotted line. As shown in fig. 6, for each line segment, the center of the line segment is determined, a perpendicular line is drawn along the center of the line segment, the perpendicular line intersects with the left lane line and the right lane line, in the formed perpendicular line, the connecting line part of the center of the line segment and the left lane line is a first connecting line, the connecting line part of the center of the line segment and the right lane line is a second connecting line, the midpoint of each first connecting line is used as a track point for fitting the left-side travel track, and the midpoint of each second connecting line is used as a track point for fitting the right-side travel track, so that the track point can be located at the centers of the two lane lines, and the accuracy of the fitted travel track is improved.
In another possible implementation manner, the current road includes two lane lines, and one of the lane lines is divided into a plurality of line segments to form a dotted line. And drawing a vertical line along the center of each line segment, wherein the vertical line is intersected with the other lane line to form a third connecting line, and the center of each third connecting line is a track point for fitting the driving track.
If the current road is a straight road, the corresponding driving track is a straight track, and if the current road is a curved road, the corresponding driving track comprises a straight track and a curved track. If the current road is a straight road and the bend-entering point is at an infinite distance, if the current road is a curved road and the bend-entering point is the intersection point of the straight line track and the curve track on the driving track, the bend-entering point can be coincident with the track point or not. In a possible implementation manner, every two adjacent track points may be connected to form a line segment, and the bending point is determined according to an included angle between two adjacent line segments, for example, the track point between two line segments with the largest included angle is used as the bending point.
In another possible implementation, the curve-entering point of the lane line may be determined first, and then the curve-entering point of the driving track may be determined according to the curve-entering point of the lane line, for example, after the curve-entering point of the lane line is determined, the curve-entering point of the lane line and the curve-entering point of the driving track are on a straight line, and the straight line is perpendicular to the straight line portion in the lane line.
In one possible implementation, the curve-entering point of the lane line may be determined by counting the distribution of pixels in the image where the lane line is located. Specifically, a gray image corresponding to a lane line of a top view angle is determined, and the lane line is different from the pixels of the background in the gray image. For example, as shown in fig. 5, to highlight the lane line, the pixel of the background is 0. And determining a bending point of the lane line according to the sum of the pixel values of each column of pixels in the gray-scale image, wherein the direction of each column of pixels is consistent with the direction of the straight line track, namely the direction of each column of pixels is consistent with the straight line part of the lane line. In order to reduce the calculation difficulty, the grayscale image corresponding to the lane line is placed along the linear direction of the lane line, that is, the linear direction of the lane line is along the vertical direction, and correspondingly, each column of pixels is also along the vertical direction. Taking the dotted line in fig. 5 as an example, a coordinate system is established with the vertical direction as the y-axis direction and the horizontal direction as the x-axis direction. The distribution of the sum of pixel values along the y-axis is shown in fig. 7, the abscissa is the x-axis pixel coordinate, the ordinate is the sum of pixel values of each column of pixels, and the inflection point is where the sum of pixel values changes abruptly. In fig. 7, the sum of the pixel values between the point a and the point B is higher than the sum of the pixel values after the point B, the sum of the pixel values decreases abruptly at the point B, the abscissa corresponding to the point B is the abscissa of the curve-entering point of the lane line, that is, the abscissa of the curve-entering point of the driving track, and the position of the curve-entering point can be determined on the image of the current road according to the position of the track point. The position of the bending point is determined by a method of calculating the sum of the pixel values, so that the accuracy of the determined bending point is improved.
S104: and dividing the track points into track points of a straight line part and track points of a curved line part according to the bending point.
S105: and respectively fitting the track points of the linear part and the track points of the curved part to obtain a linear track and a curved track, and connecting the linear track and the curved track to obtain the running track.
Specifically, different polynomials are used for fitting the linear track and the curve track, so that the accuracy of the fitted linear track and the fitted curve track can be improved.
In one possible implementation, for the track points on the linear track, a least square method is adopted to fit to obtain the linear track. For track points on the curve track, a Catmull _ Rom curve fitting algorithm is adopted to fit to obtain the curve track, and the accuracy of the straight line track and the curve track is improved. For example, for the trajectory points shown in fig. 6, the driving trajectory shown in fig. 8 is obtained after fitting.
In a possible implementation mode, the fitted driving track is applied to automatic driving or automatic driving simulation, the driving speed of the vehicle and the steering engine turning angle of the vehicle entering a curve are determined according to the driving track, so that the vehicle can drive along the fitted driving track, the track is stable in the straight line driving process, and the vehicle is closer to a lane line when turning.
In the above embodiment, the image of the current road is obtained, the lane line is extracted from the image, the track point for fitting the traveling track and the bend-in point of the traveling track are determined according to the lane line, the track point is divided into the track point of the straight line part and the track point of the curved line part according to the bend-in point, the track point of the straight line part and the track point of the curved line part are respectively fitted to obtain the straight line track and the curved line track, and the straight line track and the curved line track are connected to obtain the traveling track. The curve position track fitting accuracy can be improved by dividing the track points of the straight line part and the track points of the curved line part through the bend points and respectively fitting the straight line track and the curved line track, so that the predicted accuracy of the running track is improved, and the stability of the vehicle during running is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
As for the method for predicting a travel track described in the above embodiment, fig. 9 shows a block diagram of a travel track prediction apparatus provided in the embodiment of the present application, and for convenience of explanation, only the relevant portions of the embodiment of the present application are shown.
As shown in fig. 9, the prediction means of the travel locus includes,
theacquisition module 10 is used for acquiring an image of a current road;
anextraction module 20, configured to extract a lane line from the image;
the determiningmodule 30 is configured to determine track points for fitting a driving track and bend-in points of the driving track according to the lane lines;
the dividingmodule 40 is used for dividing the track points into track points of a straight line part and track points of a curved line part according to the bending points;
and thefitting module 50 is used for fitting the track points of the linear part and the track points of the curved part respectively to obtain a linear track and a curved track, and connecting the linear track and the curved track to obtain the running track.
In a possible implementation manner, theextraction module 20 is specifically configured to:
and extracting the lane lines from the image by adopting an image segmentation algorithm based on a neural network.
In a possible implementation manner, the shooting angle of view of the image is a first angle of view, and theextraction module 20 is specifically configured to:
carrying out visual angle transformation on the image to obtain an image of a overlooking visual angle;
and extracting a lane line from the image of the overlooking visual angle.
In a possible implementation manner, the lane line of the top view includes a left lane line, a right lane line, and an imaginary line located between the left lane line and the right lane line, the imaginary line includes at least two line segments, the travel track includes a left travel track and a right travel track, and the determiningmodule 30 is specifically configured to:
taking the midpoint of each first connecting line as a track point for fitting a left driving track, wherein one first connecting line is a connecting line between the center of the line segment and the left lane line and is perpendicular to the corresponding line segment;
and taking the midpoint of each second connecting line as a track point for fitting a right driving track, wherein one second connecting line is a connecting line between the center of the line segment and the right lane line, and the second connecting line is perpendicular to the corresponding line segment.
In a possible implementation manner, the determiningmodule 30 is specifically further configured to:
determining a bend-in point of the lane line;
and determining the bend-in point of the driving track according to the bend-in point of the lane line.
In a possible implementation manner, the determiningmodule 30 is specifically further configured to:
determining a gray image corresponding to the lane line of the overlooking visual angle;
and determining a bending point of the lane line according to the sum of the pixel values of each row of pixels in the gray-scale image, wherein the direction of each row of pixels is consistent with the direction of the linear track.
In one possible implementation, the device for predicting a driving trajectory further includes a control module, configured to:
and determining the running speed of the vehicle and the steering engine steering angle of the vehicle entering the curve according to the running track.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 10, the electronic apparatus of this embodiment includes: aprocessor 11, amemory 12 and acomputer program 13 stored in saidmemory 12 and executable on saidprocessor 11. Theprocessor 11, when executing thecomputer program 13, implements the steps in the control method embodiment of the electronic device described above, such as the steps S101 to S105 shown in fig. 1. Alternatively, theprocessor 11, when executing thecomputer program 13, implements the functions of each module/unit in the above-mentioned device embodiments, such as the functions of the obtainingmodule 10 to thefitting module 50 shown in fig. 9.
Illustratively, thecomputer program 13 may be partitioned into one or more modules/units, which are stored in thememory 12 and executed by theprocessor 11 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of thecomputer program 13 in the terminal device.
Those skilled in the art will appreciate that fig. 10 is merely an example of an electronic device and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
TheProcessor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Thememory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. Thememory 12 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Further, thememory 12 may also include both an internal storage unit and an external storage device of the electronic device. Thememory 12 is used for storing the computer program and other programs and data required by the electronic device. Thememory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

Translated fromChinese
1.一种行驶轨迹的预测方法,其特征在于,包括:1. a prediction method of driving trajectory, is characterized in that, comprises:获取当前道路的图像;Get the image of the current road;从所述图像中提取车道线;extracting lane lines from the image;根据所述车道线确定用于拟合行驶轨迹的轨迹点以及所述行驶轨迹的入弯点;determining a trajectory point for fitting the driving trajectory and an entry point of the driving trajectory according to the lane line;根据所述入弯点将所述轨迹点分为直线部分的轨迹点以及曲线部分的轨迹点;According to the inflection point, the trajectory points are divided into trajectory points of the straight part and trajectory points of the curved part;分别对所述直线部分的轨迹点和所述曲线部分的轨迹点进行拟合,得到直线轨迹和曲线轨迹,连接所述直线轨迹和所述曲线轨迹得到所述行驶轨迹。The trajectory points of the straight line part and the trajectory points of the curved part are respectively fitted to obtain a straight trajectory and a curved trajectory, and the driving trajectory is obtained by connecting the straight trajectory and the curved trajectory.2.根据权利要求1所述的行驶轨迹的预测方法,其特征在于,所述从所述图像中提取车道线,包括:2 . The method for predicting a driving trajectory according to claim 1 , wherein the extracting lane lines from the image comprises: 3 .采用基于神经网络的图像分割算法从所述图像中提取车道线。Lane lines are extracted from the image using a neural network-based image segmentation algorithm.3.根据权利要求1所述的行驶轨迹的预测方法,其特征在于,所述图像的拍摄视角为第一视角,所述从所述图像中提取车道线,包括:3 . The method for predicting a driving trajectory according to claim 1 , wherein the photographing angle of view of the image is a first angle of view, and the extracting lane lines from the image comprises: 3 .对所述图像进行视角变换,得到俯视视角的图像;Performing perspective transformation on the image to obtain an image with a top-down perspective;从所述俯视视角的图像中提取车道线。Lane lines are extracted from the top-view image.4.根据权利要求3所述的行驶轨迹的预测方法,其特征在于,所述俯视视角的车道线包括左车道线、右车道线以及位于所述左车道线与所述右车道线之间的虚线,所述虚线包括至少两个线段,所述行驶轨迹包括左侧行驶轨迹和右侧行驶轨迹,所述根据所述车道线确定用于拟合行驶轨迹的轨迹点,包括:4 . The method for predicting a driving trajectory according to claim 3 , wherein the lane lines in the top view include a left lane line, a right lane line, and a line between the left lane line and the right lane line. 5 . A dashed line, the dashed line includes at least two line segments, the driving trajectory includes a left driving trajectory and a right driving trajectory, and the determining a trajectory point for fitting the driving trajectory according to the lane line includes:将每个第一连线的中点作为用于拟合左侧行驶轨迹的轨迹点,一个所述第一连线为一个所述线段的中心与所述左车道线的连线,且所述第一连线垂直于对应的所述线段;The midpoint of each first connecting line is used as a trajectory point for fitting the left driving trajectory, and a first connecting line is a connecting line between the center of the line segment and the left lane line, and the The first connecting line is perpendicular to the corresponding line segment;将每个第二连线的中点作为用于拟合右侧行驶轨迹的轨迹点,一个所述第二连线为一个所述线段的中心与所述右车道线的连线,且所述第二连线垂直于对应的所述线段。The midpoint of each second connecting line is used as a trajectory point for fitting the right-hand driving trajectory, and a second connecting line is a connecting line between the center of the line segment and the right lane line, and the The second connecting line is perpendicular to the corresponding line segment.5.根据权利要求3所述的行驶轨迹的预测方法,其特征在于,所述根据所述车道线确定所述行驶轨迹的入弯点,包括:5 . The method for predicting a driving trajectory according to claim 3 , wherein the determining the inflection point of the driving trajectory according to the lane line comprises: 5 .确定所述车道线的入弯点;determining the entry point of the lane line;根据所述车道线的入弯点确定所述行驶轨迹的入弯点。The bend-in point of the driving trajectory is determined according to the bend-in point of the lane line.6.根据权利要求5所述的行驶轨迹的预测方法,其特征在于,所述确定所述车道线的入弯点,包括:6 . The method for predicting a driving trajectory according to claim 5 , wherein the determining the inflection point of the lane line comprises: 6 .确定与所述俯视视角的车道线对应的灰度图像;determining a grayscale image corresponding to the lane line from the top-down perspective;根据所述灰度图像中的每列像素的像素值之和,确定所述车道线的入弯点,所述每列像素的方向与所述直线轨迹的方向一致。The inflection point of the lane line is determined according to the sum of the pixel values of each column of pixels in the grayscale image, and the direction of each column of pixels is consistent with the direction of the straight track.7.根据权利要求1所述的行驶轨迹的预测方法,其特征在于,在所述连接所述直线轨迹和所述曲线轨迹得到所述行驶轨迹之后,所述行驶轨迹的预测方法还包括:7 . The method for predicting a driving trajectory according to claim 1 , wherein after the driving trajectory is obtained by connecting the straight trajectory and the curved trajectory, the method for predicting the driving trajectory further comprises: 8 .根据所述行驶轨迹确定车辆的行驶速度和所述车辆进入弯道的舵机转角。The driving speed of the vehicle and the steering angle of the steering gear at which the vehicle enters the curve are determined according to the driving trajectory.8.一种行驶轨迹的预测装置,其特征在于,包括:8. A device for predicting a driving trajectory, comprising:获取模块,用于获取当前道路的图像;The acquisition module is used to acquire the image of the current road;提取模块,用于从所述图像中提取车道线;an extraction module for extracting lane lines from the image;确定模块,用于根据所述车道线确定用于拟合行驶轨迹的轨迹点以及所述行驶轨迹的入弯点;a determination module, configured to determine a trajectory point for fitting the driving trajectory and an in-turn point of the driving trajectory according to the lane line;划分模块,用于根据所述入弯点将所述轨迹点分为直线部分的轨迹点以及曲线部分的轨迹点;a dividing module, configured to divide the trajectory points into trajectory points of the straight line part and trajectory points of the curved part according to the inflection point;拟合模块,用于分别对所述直线部分的轨迹点和所述曲线部分的轨迹点进行拟合,得到直线轨迹和曲线轨迹,连接所述直线轨迹和所述曲线轨迹得到所述行驶轨迹。The fitting module is used for fitting the trajectory points of the straight part and the trajectory points of the curved part respectively to obtain a straight trajectory and a curved trajectory, and connecting the straight trajectory and the curved trajectory to obtain the driving trajectory.9.一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的方法。9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the computer program as claimed in the claims The method of any one of 1 to 7.10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的方法。10 . A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when the computer program is executed by a processor. 11 .
CN202011403570.7A2020-12-042020-12-04Method and device for predicting running track, electronic equipment and storage mediumActiveCN112528807B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011403570.7ACN112528807B (en)2020-12-042020-12-04Method and device for predicting running track, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011403570.7ACN112528807B (en)2020-12-042020-12-04Method and device for predicting running track, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN112528807Atrue CN112528807A (en)2021-03-19
CN112528807B CN112528807B (en)2023-12-19

Family

ID=74997471

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011403570.7AActiveCN112528807B (en)2020-12-042020-12-04Method and device for predicting running track, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN112528807B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113587942A (en)*2021-06-292021-11-02深圳一清创新科技有限公司Route processing method and device based on autonomous map building and electronic equipment
CN113609947A (en)*2021-07-282021-11-05深圳元戎启行科技有限公司Motion trajectory prediction method, motion trajectory prediction device, computer equipment and storage medium
CN113781603A (en)*2021-09-152021-12-10北京有竹居网络技术有限公司Method and device for generating track points, computer equipment and computer storage medium
CN114184206A (en)*2021-12-032022-03-15北京车慧达科技有限公司Method and device for generating driving route based on vehicle track points
CN114419877A (en)*2021-12-152022-04-29中国科学院深圳先进技术研究院Vehicle track prediction data processing method and device based on road characteristics
CN115578268A (en)*2021-06-212023-01-06北京四维图新科技股份有限公司 Lane Center Line Smoothing Method and Device

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104819724A (en)*2015-03-022015-08-05北京理工大学Unmanned ground vehicle self-driving assisting system based on GIS
CN108242145A (en)*2016-12-262018-07-03高德软件有限公司Abnormal track point detecting method and device
WO2020029667A1 (en)*2018-08-092020-02-13Zhejiang Dahua Technology Co., Ltd.Methods and systems for lane line identification
CN110838233A (en)*2019-10-122020-02-25中国平安人寿保险股份有限公司Vehicle behavior analysis method and device and computer readable storage medium
CN111380543A (en)*2018-12-292020-07-07沈阳美行科技有限公司Map data generation method and device
CN111797780A (en)*2020-07-082020-10-20中国第一汽车股份有限公司Vehicle following track planning method, device, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104819724A (en)*2015-03-022015-08-05北京理工大学Unmanned ground vehicle self-driving assisting system based on GIS
CN108242145A (en)*2016-12-262018-07-03高德软件有限公司Abnormal track point detecting method and device
WO2020029667A1 (en)*2018-08-092020-02-13Zhejiang Dahua Technology Co., Ltd.Methods and systems for lane line identification
CN111380543A (en)*2018-12-292020-07-07沈阳美行科技有限公司Map data generation method and device
CN110838233A (en)*2019-10-122020-02-25中国平安人寿保险股份有限公司Vehicle behavior analysis method and device and computer readable storage medium
CN111797780A (en)*2020-07-082020-10-20中国第一汽车股份有限公司Vehicle following track planning method, device, server and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115578268A (en)*2021-06-212023-01-06北京四维图新科技股份有限公司 Lane Center Line Smoothing Method and Device
CN113587942A (en)*2021-06-292021-11-02深圳一清创新科技有限公司Route processing method and device based on autonomous map building and electronic equipment
CN113609947A (en)*2021-07-282021-11-05深圳元戎启行科技有限公司Motion trajectory prediction method, motion trajectory prediction device, computer equipment and storage medium
CN113781603A (en)*2021-09-152021-12-10北京有竹居网络技术有限公司Method and device for generating track points, computer equipment and computer storage medium
CN113781603B (en)*2021-09-152023-08-22北京有竹居网络技术有限公司 Track point generation method, device, computer equipment and computer storage medium
CN114184206A (en)*2021-12-032022-03-15北京车慧达科技有限公司Method and device for generating driving route based on vehicle track points
CN114184206B (en)*2021-12-032024-04-19北京车慧达科技有限公司Method and device for generating driving route based on vehicle track points
CN114419877A (en)*2021-12-152022-04-29中国科学院深圳先进技术研究院Vehicle track prediction data processing method and device based on road characteristics
CN114419877B (en)*2021-12-152022-11-15中国科学院深圳先进技术研究院 Vehicle Trajectory Prediction Data Processing Method and Device Based on Road Features

Also Published As

Publication numberPublication date
CN112528807B (en)2023-12-19

Similar Documents

PublicationPublication DateTitle
CN112528878B (en)Method and device for detecting lane line, terminal equipment and readable storage medium
CN112528807A (en)Method and device for predicting driving track, electronic equipment and storage medium
CN112967283B (en)Target identification method, system, equipment and storage medium based on binocular camera
CN110929655B (en)Lane line identification method in driving process, terminal device and storage medium
CN115393827B (en)Traffic signal lamp state identification method, system, electronic equipment and storage medium
CN114370849A (en)Target vehicle ranging method, device, equipment and medium
CN114898325A (en)Vehicle dangerous lane change detection method and device and electronic equipment
CN112654997B (en)Lane line detection method and device
CN115601435B (en)Vehicle attitude detection method, device, vehicle and storage medium
CN114919584B (en)Fixed-point target ranging method and device for motor vehicle and computer readable storage medium
CN113902047B (en)Image element matching method, device, equipment and storage medium
WO2022204953A1 (en)Method and apparatus for determining pitch angle, and terminal device
CN113147746A (en)Method and device for detecting ramp parking space
JP4469980B2 (en) Image processing method for tracking moving objects
CN114037977B (en)Road vanishing point detection method, device, equipment and storage medium
CN107452230B (en)Obstacle detection method and device, terminal equipment and storage medium
CN113688662B (en) Motor vehicle passing warning method, device, electronic device and computer equipment
CN116168325A (en)Vehicle lane change detection method, device, electronic equipment and readable storage medium
JP7613251B2 (en) Road centerline recognition device, recognition method, and electronic device
CN117011481A (en)Method and device for constructing three-dimensional map, electronic equipment and storage medium
CN116168357A (en)Foreground target machine vision extraction system and method for intelligent vehicle
CN115063772A (en)Vehicle formation rear vehicle detection method, terminal device and storage medium
TWI860589B (en)Lane line identification method and related equipment
TWI842321B (en)Lane detection method and lane detection device
US20240193964A1 (en)Lane line recognition method, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp