WO2020107326A1 - Lane line detection method, device and computer readale storage medium - Google Patents

Lane line detection method, device and computer readale storage medium Download PDF

Info

Publication number
WO2020107326A1
WO2020107326A1 PCT/CN2018/118186 CN2018118186W WO2020107326A1 WO 2020107326 A1 WO2020107326 A1 WO 2020107326A1 CN 2018118186 W CN2018118186 W CN 2018118186W WO 2020107326 A1 WO2020107326 A1 WO 2020107326A1
Authority
WO
WIPO (PCT)
Prior art keywords
lane line
candidate lane
candidate
endpoint
target
Prior art date
Application number
PCT/CN2018/118186
Other languages
French (fr)
Chinese (zh)
Inventor
崔健
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201880068401.7A priority Critical patent/CN111433780A/en
Priority to PCT/CN2018/118186 priority patent/WO2020107326A1/en
Publication of WO2020107326A1 publication Critical patent/WO2020107326A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • the present invention relates to the field of electronic technology, and in particular, to a lane line detection method, device, and computer-readable storage medium.
  • the detection technology of lane lines has a very important significance.
  • the accuracy of the detection results will directly affect the performance and reliability of the system.
  • the lane line in the image is detected by feature extraction, straight line or curve detection methods.
  • dashed lane lines including dashed lane lines caused by wear, and variable lane lane lines, etc.
  • a dashed lane line will contain more than two segmented lane lines.
  • a dotted lane line is detected as several different lane lines, and the detection result has low accuracy.
  • the invention provides a lane line detection method, device, and computer-readable storage medium, which can prevent a broken line lane line from being detected into several different lane lines, which is beneficial to improve the detection accuracy.
  • a lane line detection method includes:
  • the candidate lane line after clustering is determined as the lane line detected from the image.
  • an electronic device including: a memory and a processor;
  • the memory is used to store program codes
  • the processor is used to call the program code, and when the program code is executed, it is used to perform the following operations:
  • the candidate lane line after clustering is determined as the lane line detected from the image.
  • a third aspect of the embodiments of the present invention provides a computer-readable storage medium
  • Computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the lane line detection method described in the foregoing embodiments is implemented.
  • the candidate lane lines are clustered based on the relationship between the endpoint position parameters of each candidate lane line, and the candidate lane lines that belong to the same dashed lane line can be aggregated into one category to prevent a dashed lane line Detecting as several different lane lines is helpful to improve the detection accuracy; and the position parameter on which the clustering is based is the endpoint of the candidate lane line, which will not cause the clustering of the two candidate lane lines when the middle part is closer Two candidate lane lines can prevent false clustering.
  • FIG. 1 is a schematic flowchart of a lane line detection method according to an embodiment of the invention.
  • FIG. 2 is a schematic diagram of a candidate lane line determined in an image according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of clustering candidate lane lines according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a current candidate lane line and a first candidate lane line found according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of calculating a specified endpoint position parameter of a current candidate lane line and a target endpoint position parameter of a first candidate lane line found according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of an electronic device according to an embodiment of the invention.
  • first, second, third, etc. may be used to describe various information in the present invention, the information should not be limited to these terms. These terms are used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” can be interpreted as "when", or "when”, or "in response to a determination”.
  • a lane line detection method may include the following steps:
  • S100 Determine several candidate lane lines to be clustered in the image
  • S300 Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
  • S400 Determine the candidate lane line after clustering as the lane line detected from the image.
  • the execution subject of the lane line detection method of the embodiment of the present invention may be an electronic device, and more specifically may be a processor of the electronic device.
  • the electronic device may be an imaging device that performs corresponding processing on the collected image; or, the electronic device may be a mobile device equipped with an imaging device, and the mobile device may acquire the image collected by the imaging device for corresponding processing. Ground robots, drones, vehicles, etc.
  • the specific electronic device is not limited, and it only needs to have image processing capabilities.
  • the lane line detection method of the embodiment of the present invention can be applied to a vehicle equipped with an automatic driving system and ADAS. During the driving process of the vehicle, the lane line in the collected image is detected to further control the driving, Planning etc.
  • step S100 several candidate lane lines to be clustered in the image are determined.
  • the image may be a road image collected by an electronic device or obtained from an imaging device.
  • Candidate lane lines can be initially detected from the image through related lane line detection methods, such as feature extraction, straight line, or curve detection methods.
  • a middle broken lane line is detected as several different lane lines, so among these candidate lane lines determined in step S100, there may be several candidate lane lines belonging to the same lane Lines, referring to FIG. 2, the candidate lane lines determined from the image include L1-L5, but L1-L3 among these candidate lane lines actually belong to the same lane line. Therefore, the candidate lane lines determined in step S100 need to be clustered to aggregate L1-L3 into the same category.
  • step S200 the position parameters of the end points of each candidate lane line in the image are determined.
  • the position of the candidate lane line in the image can be determined, and accordingly, the position parameter of the endpoint of each candidate lane line in the image can be determined.
  • the position parameter is a parameter that can characterize the position of the end point of the candidate lane line in the image.
  • the position parameter may include a vector parameter and/or a scalar parameter, which is not particularly limited.
  • the position parameter may include the tangent vector and normal vector of the endpoint on the candidate lane line; or, the position parameter may include the coordinates of the endpoint in the coordinate system to which the image is applied, when calculating the coordinates of the endpoint in the coordinate system to which the image is applied.
  • the distance of the imaging device that collects images from the ground can be used as a scale.
  • the candidate lane line may refer to a linear region with a certain width in the image.
  • the skeleton line can be extracted from the candidate lane line, and the endpoint of the skeleton line can be determined as the endpoint of the candidate lane line; or, the candidate can be determined from the end of the candidate lane line in a preset manner
  • the end point of the lane line (for example, the midpoint of the end is determined as the end point), the specific is not limited.
  • step S300 the candidate lane lines are clustered according to the relationship between the endpoint position parameters of each candidate lane line.
  • the relationship between the endpoint position parameters of each candidate lane line may be obtained by vector operation and/or scalar operation, and may represent the position relationship between the endpoints of the candidate lane line. Taking two candidate lane lines as an example, it can be determined whether the two candidate lane lines need to be aggregated into one class according to the relationship between the endpoint position parameters of the two candidate lane lines. After judging the relationship between all the candidate lane lines, you can complete the clustering of all the candidate lane lines.
  • Candidate lane lines whose relationship between end point position parameters meet certain conditions can be aggregated into one category. After clustering the candidate lane lines according to the relationship between the endpoint position parameters, several candidate lane lines that are broken off on the dotted lane line can be clustered.
  • L1 and L2 are aggregated into a category
  • L2 and L3 are aggregated into a category
  • after clustering is completed L4 belongs to a category
  • L5 belongs to a category
  • L1-L3 belongs to a category, that is, L1-L3 is a cluster A candidate lane line after the class.
  • step S400 the clustered candidate lane line is determined as the lane line detected from the image.
  • L4 is a lane line detected from the image
  • L5 is a lane line detected from the image
  • L1-L3 is a lane line detected from the image.
  • each object pixel or area in the image
  • the minimum distance between the categories is calculated
  • the two categories whose minimum distance is less than the threshold are aggregated It is a category
  • the third step is to calculate the minimum distance between the clustered categories, and return to the second step to calculate until all categories cannot be aggregated.
  • the first lane segment may be It is grouped with the adjacent lane line into one category. The first lane segment and the second lane segment in the dashed lane line cannot be aggregated into one category, resulting in incorrect clustering.
  • the candidate lane lines are clustered based on the relationship between the endpoint position parameters of each candidate lane line, and the candidate lane lines that belong to the same dashed lane line can be aggregated into a category to prevent a dashed lane
  • the line detection is a few different lane lines, which is helpful to improve the detection accuracy; and, the location parameter on which the clustering is based is the endpoint of the candidate lane line, which will not result in clustering when the middle part of the two candidate lane lines is closer
  • the two candidate lane lines can prevent erroneous clustering; the calculation is also less, and the power consumption and cost are lower.
  • step S200 the determining position parameters of the end points of each candidate lane line in the image includes:
  • a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
  • the position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
  • Each candidate lane line to be clustered determined in step S100 is subjected to curve fitting processing.
  • curve fitting for example, the least squares curve fitting method can be used, and of course, other methods can also be used, such as the method of approximating discrete data with analytical expressions.
  • the first curve model used in the curve fitting process is, for example, a polynomial curve model.
  • the fitted curve is a polynomial curve.
  • the first curve model is not specifically limited to this, but can also be other curve models, such as logarithm. Function model, piecewise function model, etc.
  • the tangent vector and normal vector of the end point of the corresponding lane line can be calculated according to the first curve model and the parameters obtained by fitting.
  • the calculation method of the curve tangent vector and normal vector in the mathematical operation please refer to the calculation method of the curve tangent vector and normal vector in the mathematical operation. I will not repeat them here.
  • the candidate lane line is curve-fitted, and the tangent vector and the normal vector of the end point on the fitted candidate lane line are used as the endpoint position parameters of the candidate lane line. Therefore, the relationship between the endpoint position parameters Taking into account the direction of the candidate lane line, the embodiment of the present invention is suitable for the detection of the lane line of the curve, and the problem of cross lanes at the curve can be avoided. Of course, it can also be applied to the detection of straight lane lines.
  • step S300 the clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line includes the following steps:
  • S301 Traverse each candidate lane line in the specified order, and determine whether there is a Target candidate lane lines of the current candidate lane line cluster merge;
  • each candidate lane line is traversed in the specified order, and each time a candidate lane line is traversed, subsequent steps are performed.
  • the specific order is not limited.
  • the specified order may be determined according to the position of the candidate lane line in the image, or the specified order may be determined according to the length of the candidate lane line.
  • the designated order is the order of length of each candidate lane line from long to short. That is, when traversing, the candidate lane lines with a longer length are traversed first, and all candidate lane lines may be sorted according to length before traversing.
  • step S302 is executed.
  • each candidate lane line is traversed in the specified order, and when the last candidate lane line is traversed, the clustering ends.
  • the target candidate lane line of clustering merge indicates that the clustering has been completed and the clustering can be ended.
  • step S302 when there is a target candidate lane line to be merged with the current candidate lane line among the untraversed candidate lane lines, the current candidate lane line and the target candidate lane line are determined to belong to the same category, And perform a curve fitting process on the current candidate lane line and the target candidate lane line in the image using a preset second curve model to obtain a fitted candidate lane line, and calculate the fitted candidate lane line End position parameter.
  • L2 is a target candidate lane line that needs to be merged with L1, so L1 and L2 are determined to belong to the same category (the category can be a new category, a category of L1, or a category of L2, Specific is not limited, as long as it is different from other categories), and the second curve model is used to perform curve fitting processing on L1 and L2.
  • the curve fitting process here can also adopt least squares curve fitting and other methods, which will not be repeated here.
  • the second curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
  • curve fitting processing is also performed on the current candidate lane line and the target candidate lane line, that is, edge aggregation is used
  • the method of class edge fitting can adjust the position parameters of the candidate lane line and its endpoints during the aggregation process, which is helpful to improve the accuracy of clustering.
  • the curve fitting process may not be performed during the clustering process, and after the clustering is completed, the curve fitting process may be performed on the candidate lane lines belonging to the same category.
  • step S302 returning to the step of traversing each candidate lane line in the specified order, that is, restarting traversing each candidate lane line in the specified order.
  • the specified order is still followed.
  • the length order and number of candidate lane lines will be different due to clustering and curve fitting, that is, the length of the candidate lane line after fitting will become longer, The number of all candidate lane lines will be reduced.
  • step S301 it is determined whether there is a need in the untraversed candidate lane line according to the relationship between the endpoint position parameters of the traversed current candidate lane line and the untraversed candidate lane line
  • the target candidate lane line merged with the current candidate lane line cluster includes the following steps:
  • S3011 Determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line;
  • Each candidate lane line has two endpoints, but performing the corresponding processing according to one endpoint on the candidate lane line can also achieve the purpose of determining the target candidate lane line, and can also reduce the amount of calculation.
  • step S3011 find the first candidate lane line that satisfies the specified condition from the candidate lane lines that have not been traversed according to the specified endpoint position parameter.
  • step S3012 for the first candidate lane line can reduce the amount of calculation required to perform step S3012 .
  • all the candidate lane lines that have not been traversed may be determined as the first candidate lane line.
  • step S3012 the relationship between the target endpoint position parameter of each first candidate lane line and the specified endpoint position parameter is calculated. If the calculated relationship satisfies the set relationship, it is the target candidate lane line.
  • the designated end point of the current candidate lane line may be any one of the two end points of the current candidate lane line.
  • the target endpoint position parameter of the first candidate lane line is also determined correspondingly.
  • the designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line
  • the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line
  • the designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line
  • the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
  • the specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image.
  • the designated direction is the vertical direction or the horizontal direction in the coordinate system applied to the transformed image.
  • L1 is the current candidate lane line
  • L2 is the determined first candidate lane line
  • P1 is the designated end point of L1 (the vertical axis of the current candidate lane line applied to the coordinate system of the image The end point with the larger coordinate value in the vertical direction)
  • P2 is the target end point of L2 (the end point with the lower coordinate value in the vertical direction in the coordinate system of the target candidate lane line applied to the image)
  • P2 is the target candidate lane line.
  • the position parameter of the endpoint includes the tangent vector and normal vector of the endpoint on the corresponding candidate lane line;
  • step S3012 the calculation of the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line includes the following steps:
  • S30121 Calculate the first tangential distance obtained by projecting the first vector onto the tangent vector of the specified endpoint, the first normal distance obtained by projecting the first vector onto the normal vector of the specified endpoint, and the second vector projected at A second tangential distance obtained on the tangent vector of the target endpoint, and a second normal distance obtained by projecting a second vector on the normal vector of the target endpoint;
  • the first vector is the specified endpoint to the target endpoint
  • the second vector is the vector from the target endpoint to the specified endpoint;
  • S30122 Determine the larger of the first tangential distance and the second tangential distance as the target tangential distance, and determine the larger of the first normal distance and the second normal distance as the target Normal distance
  • S30123 Determine the target tangential distance and the target normal distance as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
  • n is the tangent vector of the target endpoint
  • P2Q1 is The second tangential distance projected on n, where P1Q1 is perpendicular to P2Q1. The other distances are similar and will not be repeated here.
  • step S3012 the judging whether the relationship satisfies the set relationship includes:
  • the target tangential distance is the larger of the first tangential distance and the second tangential distance.
  • the target normal distance is the larger of the first normal distance and the second normal distance. In the above setting relationship, the smaller one must also satisfy the above setting relationship.
  • the specific values of the set tangential threshold and the set normal threshold are not limited, and can be determined according to the specific lane line conditions.
  • step S3011 determining whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line includes the following steps:
  • S30111 Determine the boundary for determining the search range according to the specified endpoint position parameter
  • S30112 Determine a search range required to search for the first candidate lane line in the image according to the boundary;
  • S30113 Search for a candidate lane line within the search range in the image, and if found, determine the found candidate lane line as the first candidate lane line.
  • First determine the boundary according to the specified endpoint position parameters, and the search range determined according to the boundary is more suitable to avoid missing the first candidate lane line, and it will not contain too many first candidate lane lines.
  • the candidate lane line is determined as the first candidate lane line. Compared with using the candidate lane lines in the entire image as the first candidate lane line, the number of first candidate lane lines can be reduced, and accordingly the subsequent required The amount of calculation does not affect the determination of the target candidate lane line.
  • the boundary is the normal of the specified endpoint on the current candidate lane line
  • step S30112 determining the search range required to search for the first candidate lane line in the image according to the boundary includes the following steps:
  • the second area is determined as the search range.
  • the normal of L1 at P1 is determined as the boundary, and the image is divided into the second area where L1 is not located and the L1 is In the first area, determine the second area as the search range, and search for the candidate lane line in the search range. You can judge whether it is in the search range according to the endpoints at both ends of the candidate lane line. Then, L2 and L3 are found in the search range, and both L2 and L3 are determined as the first candidate lane line.
  • the method further includes the following steps:
  • S310 Perform a curve fitting process on each candidate lane line after clustering using a preset third curve model; wherein, the highest number of terms of the third curve model is greater than the highest number of terms of the second curve model;
  • step S400 the determining the clustered candidate lane line as the lane line detected from the image includes:
  • Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
  • the curve fitting process is performed on the candidate lane lines belonging to the same category.
  • the curve fitting process here can also adopt the method of least square curve fitting and the like, which will not be repeated here.
  • the third curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
  • the highest order number of the second curve model is lower than the highest order number of the third curve model, to prevent a very curved curve from being generated during the clustering iteration process, resulting in incorrect clustering results.
  • step S100 the determining a plurality of candidate lane lines to be clustered in the image may include the following steps:
  • S101 Detect, according to a preset lane line detection method, several candidate lane lines to be classified from the image;
  • S102 Determine a corresponding category for each candidate lane line to be classified
  • S103 Determine each candidate lane line after the category is determined as the several candidate lane lines to be clustered.
  • the preset lane line detection method may be, for example, edge detection, feature extraction and other lane line detection methods, and the candidate lane lines in the image are detected as candidate lane lines to be classified.
  • a corresponding category is determined for each candidate lane line to be classified, for example, different candidate lane lines may be marked with different colors, and each color represents a category.
  • the colors of the two categories will be unified, for example, one of the two colors will be modified to the other of the two colors.
  • the color marking is only a way to determine the category of the candidate lane line, which is not limited to this, and it may not need to be marked in the image, for example, the category mark (including characters, numbers, etc.) can be set for the candidate lane line ), store the candidate lane line and the category identifier in the memory, so that the candidate lane line can be determined to determine the category identifier corresponding to the candidate lane line, and the corresponding category can also be determined for each candidate lane line to be classified.
  • the category mark including characters, numbers, etc.
  • each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered, and then the subsequent steps S200-S400 are performed.
  • the method further includes the following steps:
  • S112 Perform skeleton extraction processing on each candidate lane line to refine each candidate lane line;
  • step S103 the determination of each candidate lane line after the determination of the category as the several candidate lane lines to be clustered includes:
  • the refined candidate lane lines are determined as the candidate lane lines to be clustered.
  • step S112 Since the candidate lane line detected in step S101 usually has a certain width, and contains too many pixels, the number of pixels to be processed in the subsequent fitting and other steps is too large, and the calculation amount is huge. Therefore, in step S112, pass each candidate Carrying out skeleton extraction processing on lane lines can greatly reduce the amount of processing such as subsequent fitting.
  • the manner of performing skeleton extraction processing on each candidate lane line may be, for example, to retain only a single pixel point in the middle of the width direction of the candidate lane line to obtain the refined candidate lane line.
  • the specific is not limited to this, for example, the edge in the length direction of the candidate lane line may also be extracted.
  • certain image processing can also be performed on the candidate lane lines, such as smoothing processing and the like.
  • the method further includes the following steps:
  • S122 Perform an inverse perspective transformation process on each of the thinned candidate lane lines, so that the candidate lane lines are in a target perspective in the image, and the target perspective is to look down on the candidate lane lines when collecting the candidate lane lines Perspective
  • step S103 the determination of each refined lane line as the candidate lane lines to be clustered includes:
  • Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
  • the candidate lane lines are all under the target angle of view. Under the target angle of view, the size ratio of the candidate lane lines conforms to the true size ratio, and no distortion of the candidate lane lines will occur The phenomenon can improve the robustness.
  • the method of inverse perspective transformation is not limited.
  • the coordinate conversion relationship between the candidate lane line from the current perspective to the target perspective can be established in advance and stored in the electronic device.
  • the electronic device directly calls the coordinate conversion relationship, that is It may be determined that inverse perspective transformation processing is performed on each of the thinned candidate lane lines.
  • the coordinate conversion relationship from the current angle of view to the target angle of view can be established according to the focal length of the imaging device, the optical axis position parameters, and the angle and height parameters of the imaging device relative to the ground, etc., without limitation.
  • the method before determining the corresponding category for each candidate lane line to be classified in step S102, the method further includes:
  • S111 Perform dilation processing for each candidate lane line to be classified, so that the invalid pixel value in the candidate lane line is modified to a valid pixel value;
  • S121 Perform corrosion processing on the candidate lane line after the expansion process, so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
  • voids refer to pixels or pixel blocks in the candidate lane line that have different pixel values from neighboring pixel points.
  • the neighborhood may be 4 neighborhoods or 8 neighbors. Field, etc.
  • the pixel value at the hole is an invalid pixel value and needs to be modified to a valid pixel value.
  • the amount of processing required to detect a hole is very large. Therefore, in order to reduce the amount of processing, in this embodiment, the determination of whether there is a hole is not performed, and each candidate lane line to be classified is directly subjected to inflation processing.
  • the expansion processing method may be, for example: for each pixel in each candidate lane line, the pixel is used as the center to expand the pixel by the first radius in the four directions of up, down, left, and right (that is, the pixels of the pixels within the first radius) The values are all modified to the pixel values of the expanded pixels). Overall, the candidate lane line becomes larger in length and width by two first radii.
  • a corrosion process is performed on the candidate lane line after the expansion process.
  • the corrosion processing method may be, for example: for each inflated candidate lane line, the edge of the candidate lane line is eroded inwardly to the pixels of the first radius (that is, the pixel values of the pixels within the first radius range are all modified to Pixel values of pixels adjacent to the edge of the candidate lane line outside the candidate lane line), the eroded candidate lane line has the same size as the corresponding candidate lane line before inflation.
  • the holes in the candidate lane line can be filled with the pixel values of the neighboring pixels.
  • the method may further include the following steps:
  • S320 Perform curve fitting processing on each candidate lane line after clustering by using a preset curve model
  • step S400 the determining the clustered candidate lane line as the lane line detected from the image includes the following steps:
  • Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
  • the curve fitting process may not be performed, but after the clustering ends, the curve fitting process is performed on the candidate lane lines belonging to the same category.
  • the curve fitting process in step S320 may also use least squares curve fitting and other methods, which will not be repeated here.
  • the preset curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
  • step S400 after the clustered candidate lane line is determined as the lane line detected from the image, the method further includes the following steps:
  • S502 Determine whether the specified characteristic value is within a set value range
  • the specified characteristic value includes at least one of the following parameters:
  • the width of the lane line is the width of the lane line.
  • the specified feature value is not limited to the above three, but may be other parameters as long as it can characterize the shape characteristics of the lane line.
  • the setting value range can also be determined according to a priori knowledge, which is not limited to specific, and the setting value range corresponding to different characteristic values can also be different.
  • an electronic device 500 includes a memory 501 and a processor 502 (such as one or more processors).
  • the specific type of the electronic device is not limited, and the electronic device may be an imaging device but not limited to an imaging device.
  • the electronic device may also be a device electrically connected to the imaging device, for example, and may acquire the image collected by the imaging device, and then execute the corresponding method.
  • the memory is used to store program code
  • the processor is used to call the program code, and when the program code is executed, it is used to perform the following operations:
  • the candidate lane line after clustering is determined as the lane line detected from the image.
  • the processor is specifically used when determining the position parameter of the endpoint of each candidate lane line in the image:
  • a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
  • the position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
  • the processor is specifically used for clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line:
  • the curve fitting process obtains the fitted candidate lane line, calculates the end position parameter of the fitted candidate lane line, and returns to the step of traversing each candidate lane line in the specified order.
  • the processor determines whether there is a current candidate lane line among the untraversed candidate lane lines according to the relationship between the endpoint position parameters of the traversed current candidate lane lines and the untraversed candidate lane lines
  • the target candidate lane line of cluster merge is specifically used for:
  • the first candidate lane line is the target candidate lane line.
  • the position parameter of the endpoint includes a tangent vector and a normal vector of the endpoint on the corresponding candidate lane line;
  • the processor calculates the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, it is specifically used to:
  • the first vector is the vector from the specified endpoint to the target endpoint
  • the second vector is a vector from the target endpoint to a specified endpoint
  • the larger of the first and second tangential distances is determined as the target tangential distance, and the larger of the first and second normal distances is determined as the target normal direction distance;
  • the target tangential distance and the target normal distance are determined as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
  • the processor is specifically used to determine whether the relationship satisfies the set relationship:
  • the target tangential distance is less than the set tangential threshold and the target normal distance is less than the set normal threshold, it is determined that the relationship satisfies the set relationship.
  • the processor is specifically used to determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line:
  • the boundary is a normal line of the specified endpoint on the current candidate lane line
  • the determining the search range required to search for the first candidate lane line in the image according to the boundary is specifically used to:
  • the second area is determined as the search range.
  • the designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line
  • the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line
  • the designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line
  • the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
  • the specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image.
  • the processor clusters the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, it is further used to:
  • the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used for:
  • Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
  • the designated order is an order in which the length of each candidate lane line is long to short.
  • the processor determines several candidate lane lines to be clustered in the image, it is specifically used to:
  • Each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered.
  • the processor determines the corresponding category for each candidate lane line to be classified, it is further used to:
  • each candidate lane line after determining the category as the several candidate lane lines to be clustered it is specifically used for:
  • the refined candidate lane lines are determined as the candidate lane lines to be clustered.
  • the processor After the processor performs skeleton extraction processing on each candidate lane line, it is further used to:
  • the processor determines the refined candidate lane lines as the candidate lane lines to be clustered, it is specifically used for:
  • Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
  • the processor determines the corresponding category for each candidate lane line to be classified, it is further used to:
  • Corrosion processing is performed on the candidate lane line after the expansion process so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
  • the processor clusters the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, it is also used to:
  • the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used for:
  • Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
  • the processor determines the clustered candidate lane line as the lane line detected from the image, it is further used to:
  • the lane line is deleted from all detected lane lines.
  • the specified characteristic value includes at least one of the following parameters:
  • the width of the lane line is the width of the lane line.
  • the present invention also provides a computer-readable storage medium that stores computer instructions, and when the computer instructions are executed, the lane described in the foregoing embodiment is implemented Line detection method.
  • the system, device, module or unit explained in the above embodiments may be realized by a computer chip or entity, or by a product with a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
  • embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present invention may take the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions.
  • These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device
  • these computer program instructions may also be stored in a computer readable memory that can guide the computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including instruction means,
  • the instruction device implements the functions specified in one block or multiple blocks of one flow or multiple blocks of the flowchart and/or block diagram.

Abstract

Disclosed are a lane line detection method, a device (500) and a computer readable storage medium. The method comprises the following steps: determining several candidate lane lines to be clustered in an image (S100); determining position parameters of the end points of respective candidate lane lines in the image (S200); clustering the candidate lane lines according to the relationship between the position parameters of the end points of respective candidate lane lines (S300); and determining the clustered candidate lane lines as lane lines detected from the image (S400).

Description

车道线检测方法、设备、计算机可读存储介质Lane line detection method, equipment, and computer-readable storage medium 技术领域Technical field
本发明涉及电子技术领域,尤其是涉及一种车道线检测方法、设备、计算机可读存储介质。The present invention relates to the field of electronic technology, and in particular, to a lane line detection method, device, and computer-readable storage medium.
背景技术Background technique
在一些场景比如自动驾驶系统、ADAS(高级驾驶辅助系统)中,车道线的检测技术有着十分重要的意义,检测结果的准确性将直接影响系统的性能和可靠性。In some scenarios such as automatic driving systems and ADAS (Advanced Driver Assistance Systems), the detection technology of lane lines has a very important significance. The accuracy of the detection results will directly affect the performance and reliability of the system.
相关的车道线检测方式中,通过特征提取、直线或者曲线检测方法检测图像中的车道线。然而在实际场景中,会存在虚线车道线(包括磨损导致的虚线车道线,及可变道车道线等),一个虚线车道线会包含两个以上的分段车道线。上述检测方式中,会将一个虚线车道线检测为几个不同的车道线,检测结果精度较低。In the related lane line detection method, the lane line in the image is detected by feature extraction, straight line or curve detection methods. However, in actual scenes, there will be dashed lane lines (including dashed lane lines caused by wear, and variable lane lane lines, etc.). A dashed lane line will contain more than two segmented lane lines. In the above detection method, a dotted lane line is detected as several different lane lines, and the detection result has low accuracy.
发明内容Summary of the invention
本发明提供一种车道线检测方法、设备、计算机可读存储介质,可防止将一个虚线车道线检测为几个不同的车道线,有利于提高检测精度。The invention provides a lane line detection method, device, and computer-readable storage medium, which can prevent a broken line lane line from being detected into several different lane lines, which is beneficial to improve the detection accuracy.
本发明实施例第一方面,提供一种车道线检测方法,该方法包括:In a first aspect of an embodiment of the present invention, a lane line detection method is provided. The method includes:
确定图像中待聚类的若干候选车道线;Determine several candidate lane lines to be clustered in the image;
确定各个候选车道线的端点在所述图像中的位置参数;Determine the location parameters of the endpoints of each candidate lane line in the image;
依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类;Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
将聚类后的候选车道线确定为从所述图像中检测出的车道线。The candidate lane line after clustering is determined as the lane line detected from the image.
本发明实施例第二方面,提供一种电子设备,包括:存储器和处理器;According to a second aspect of the embodiments of the present invention, an electronic device is provided, including: a memory and a processor;
所述存储器,用于存储程序代码;The memory is used to store program codes;
所述处理器,用于调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor is used to call the program code, and when the program code is executed, it is used to perform the following operations:
确定图像中待聚类的若干候选车道线;Determine several candidate lane lines to be clustered in the image;
确定各个候选车道线的端点在所述图像中的位置参数;Determine the location parameters of the endpoints of each candidate lane line in the image;
依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类;Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
将聚类后的候选车道线确定为从所述图像中检测出的车道线。The candidate lane line after clustering is determined as the lane line detected from the image.
本发明实施例第三方面,提供一种计算机可读存储介质,A third aspect of the embodiments of the present invention provides a computer-readable storage medium,
所述计算机可读存储介质上存储有计算机指令,所述计算机指令被执行时,实现前述实施例中所述的车道线检测方法。Computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the lane line detection method described in the foregoing embodiments is implemented.
基于上述技术方案,本发明实施例中,Based on the above technical solutions, in the embodiments of the present invention,
本发明实施例中,基于各个候选车道线的端点位置参数之间的关系对候选车道线进行聚类,可将属于同一个虚线车道线的候选车道线聚合为一个类别,防止将一个虚线车道线检测为几个不同的车道线,有利于提高检测精度;并且,聚类所依据的位置参数是候选车道线的端点的,不会导致两个候选车道线的中间部位距离较近时聚类该两个候选车道线,可防止错误聚类。In the embodiment of the present invention, the candidate lane lines are clustered based on the relationship between the endpoint position parameters of each candidate lane line, and the candidate lane lines that belong to the same dashed lane line can be aggregated into one category to prevent a dashed lane line Detecting as several different lane lines is helpful to improve the detection accuracy; and the position parameter on which the clustering is based is the endpoint of the candidate lane line, which will not cause the clustering of the two candidate lane lines when the middle part is closer Two candidate lane lines can prevent false clustering.
附图说明BRIEF DESCRIPTION
为了更加清楚地说明本发明实施例中的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据本发明实施例的这些附图获得其它的附图。In order to more clearly explain the technical solutions in the embodiments of the present invention, the drawings required in the embodiments of the present invention will be briefly described below. Obviously, the drawings in the following description are only some implementations described in the present invention For example, for those of ordinary skill in the art, other drawings may also be obtained based on these drawings of the embodiments of the present invention.
图1是本发明一实施例的车道线检测方法的流程示意图;1 is a schematic flowchart of a lane line detection method according to an embodiment of the invention;
图2是本发明一实施例的图像中确定出的候选车道线的示意图;2 is a schematic diagram of a candidate lane line determined in an image according to an embodiment of the present invention;
图3是本发明一实施例的对候选车道线进行聚类的流程示意图;3 is a schematic flowchart of clustering candidate lane lines according to an embodiment of the present invention;
图4是本发明一实施例的当前候选车道线与查找到的第一候选车道线的示意图;4 is a schematic diagram of a current candidate lane line and a first candidate lane line found according to an embodiment of the present invention;
图5是本发明一实施例的计算当前候选车道线的指定端点位置参数与查找到的第一候选车道线的目标端点位置参数时的示意图;FIG. 5 is a schematic diagram of calculating a specified endpoint position parameter of a current candidate lane line and a target endpoint position parameter of a first candidate lane line found according to an embodiment of the present invention; FIG.
图6是本发明一实施例的电子设备的结构框图。6 is a structural block diagram of an electronic device according to an embodiment of the invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。另外,在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention. In addition, in the case of no conflict, the following embodiments and the features in the embodiments can be combined with each other.
本发明使用的术语仅仅是出于描述特定实施例的目的,而非限制本发明。本发明和权利要求书所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。应当理解的是,本文中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing specific embodiments only, and does not limit the present invention. The singular forms "a", "said" and "the" used in the present invention and claims are also intended to include the majority forms unless the context clearly indicates other meanings. It should be understood that the term "and/or" as used herein refers to any or all possible combinations including one or more associated listed items.
尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语用来将同一类型的信息彼此区分开。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,此外,所使用的词语“如果”可以被解释成为“在……时”,或者,“当……时”,或者,“响应于确定”。Although the terms first, second, third, etc. may be used to describe various information in the present invention, the information should not be limited to these terms. These terms are used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, in addition, the word "if" can be interpreted as "when", or "when", or "in response to a determination".
下面对本发明实施例的车道线检测方法进行具体的描述,但不应以此为限。在一个实施例中,参看图1,一种车道线检测方法可以包括以下步骤:The lane line detection method of the embodiment of the present invention will be described in detail below, but it should not be limited to this. In one embodiment, referring to FIG. 1, a lane line detection method may include the following steps:
S100:确定图像中待聚类的若干候选车道线;S100: Determine several candidate lane lines to be clustered in the image;
S200:确定各个候选车道线的端点在所述图像中的位置参数;S200: Determine position parameters of end points of each candidate lane line in the image;
S300:依据各个候选车道线的端点位置参数之间的关系对所述候选车道 线进行聚类;S300: Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
S400:将聚类后的候选车道线确定为从所述图像中检测出的车道线。S400: Determine the candidate lane line after clustering as the lane line detected from the image.
本发明实施例的车道线检测方法的执行主体可以是电子设备,更具体的可以是该电子设备的处理器。电子设备可以是成像设备,对采集的图像执行相应的处理;或者,电子设备可以是搭载有成像设备的可移动设备,可移动设备获取成像设备所采集的图像进行相应的处理,可移动设备比如为地面机器人、无人机、车辆等。当然,电子设备具体不限,具有图像处理能力即可。The execution subject of the lane line detection method of the embodiment of the present invention may be an electronic device, and more specifically may be a processor of the electronic device. The electronic device may be an imaging device that performs corresponding processing on the collected image; or, the electronic device may be a mobile device equipped with an imaging device, and the mobile device may acquire the image collected by the imaging device for corresponding processing. Ground robots, drones, vehicles, etc. Of course, the specific electronic device is not limited, and it only needs to have image processing capabilities.
具体的,本发明实施例的车道线检测方法可以应用于搭载有自动驾驶系统、ADAS的车辆中,在车辆行驶过程中,对采集的图像中的车道线进行检测,进而实现对行驶的控制、规划等。Specifically, the lane line detection method of the embodiment of the present invention can be applied to a vehicle equipped with an automatic driving system and ADAS. During the driving process of the vehicle, the lane line in the collected image is detected to further control the driving, Planning etc.
步骤S100中,确定图像中待聚类的若干候选车道线。In step S100, several candidate lane lines to be clustered in the image are determined.
图像可以是电子设备所采集的或从成像设备上获取的道路图像。可通过相关的车道线检测方式从图像中初检出候选车道线,比如通过特征提取、直线或者曲线检测方法初检图像中的候选车道线。The image may be a road image collected by an electronic device or obtained from an imaging device. Candidate lane lines can be initially detected from the image through related lane line detection methods, such as feature extraction, straight line, or curve detection methods.
但是由于相关车道线检测方式中,会将一个中间断开的车道线检测为几个不同的车道线,因而步骤S100确定出的这些候选车道线中,可能存在几个候选车道线属于同一个车道线,参看图2,从图像中确定出的候选车道线包括L1-L5,但是,这些候选车道线中L1-L3事实上属于同一个车道线。因而,需要对步骤S100中确定出的候选车道线进行聚类,以将L1-L3聚合至同一类别中。However, in the related lane line detection method, a middle broken lane line is detected as several different lane lines, so among these candidate lane lines determined in step S100, there may be several candidate lane lines belonging to the same lane Lines, referring to FIG. 2, the candidate lane lines determined from the image include L1-L5, but L1-L3 among these candidate lane lines actually belong to the same lane line. Therefore, the candidate lane lines determined in step S100 need to be clustered to aggregate L1-L3 into the same category.
步骤S200中,确定各个候选车道线的端点在所述图像中的位置参数。In step S200, the position parameters of the end points of each candidate lane line in the image are determined.
由于候选车道线是从图像中确定出的,便可确定候选车道线在图像中的位置,相应的,便可确定出各个候选车道线的端点在所述图像中的位置参数。Since the candidate lane line is determined from the image, the position of the candidate lane line in the image can be determined, and accordingly, the position parameter of the endpoint of each candidate lane line in the image can be determined.
位置参数是可表征候选车道线的端点在图像中的位置的参数,位置参数可以包括矢量参数、和/或标量参数,具体不限。比如,位置参数可以包括端点在候选车道线上的切向量和法向量;或者,位置参数可以包括端点在图像 所应用的坐标系中的坐标,计算端点在图像所应用的坐标系中的坐标时可以以采集图像的成像设备离地面的距离作为标尺。The position parameter is a parameter that can characterize the position of the end point of the candidate lane line in the image. The position parameter may include a vector parameter and/or a scalar parameter, which is not particularly limited. For example, the position parameter may include the tangent vector and normal vector of the endpoint on the candidate lane line; or, the position parameter may include the coordinates of the endpoint in the coordinate system to which the image is applied, when calculating the coordinates of the endpoint in the coordinate system to which the image is applied The distance of the imaging device that collects images from the ground can be used as a scale.
可以理解,本发明实施例中,候选车道线可以指图像中具有一定宽度的线状区域。当计算端点位置参数时,可以从候选车道线中提取出骨架线,将骨架线的端点确定为该候选车道线的端点;或者,可以按照预设方式从候选车道线的端部确定出该候选车道线的端点(比如将端部的中点确定为端点),具体不限。It can be understood that, in the embodiment of the present invention, the candidate lane line may refer to a linear region with a certain width in the image. When calculating the endpoint position parameters, the skeleton line can be extracted from the candidate lane line, and the endpoint of the skeleton line can be determined as the endpoint of the candidate lane line; or, the candidate can be determined from the end of the candidate lane line in a preset manner The end point of the lane line (for example, the midpoint of the end is determined as the end point), the specific is not limited.
步骤S300中,依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类。In step S300, the candidate lane lines are clustered according to the relationship between the endpoint position parameters of each candidate lane line.
各个候选车道线的端点位置参数之间的关系可以通过矢量运算、和/或标量运算得到,可表征候选车道线的端点之间的位置关系。以两个候选车道线为例,可依据两个候选车道线的端点位置参数之间的关系判断该两个候选车道线是否需要聚合为一类。对所有候选车道线进行两两关系的判断之后,便可对所有候选车道线完成聚类。The relationship between the endpoint position parameters of each candidate lane line may be obtained by vector operation and/or scalar operation, and may represent the position relationship between the endpoints of the candidate lane line. Taking two candidate lane lines as an example, it can be determined whether the two candidate lane lines need to be aggregated into one class according to the relationship between the endpoint position parameters of the two candidate lane lines. After judging the relationship between all the candidate lane lines, you can complete the clustering of all the candidate lane lines.
可以将端点位置参数之间的关系满足一定条件的候选车道线聚合为一个类别。依据端点位置参数之间的关系对候选车道线进行聚类后,可以聚类虚线车道线上断开的几个候选车道线。Candidate lane lines whose relationship between end point position parameters meet certain conditions can be aggregated into one category. After clustering the candidate lane lines according to the relationship between the endpoint position parameters, several candidate lane lines that are broken off on the dotted lane line can be clustered.
比如,图2中,L1和L2聚合为一个类别,L2和L3聚合为一个类别,完成聚类后,L4属于一个类别,L5属于一个类别,L1-L3属于一个类别,即L1-L3为聚类后的一个候选车道线。For example, in Figure 2, L1 and L2 are aggregated into a category, L2 and L3 are aggregated into a category, after clustering is completed, L4 belongs to a category, L5 belongs to a category, L1-L3 belongs to a category, that is, L1-L3 is a cluster A candidate lane line after the class.
步骤S400中,将聚类后的候选车道线确定为从所述图像中检测出的车道线。In step S400, the clustered candidate lane line is determined as the lane line detected from the image.
聚类完成后,将属于不同类别的候选车道线确定为检测出的不同车道线,将属于同一类别的候选车道线确定为检测出的一个车道线。继续参看图2,L4为从所述图像中检测出的一个车道线,L5为从所述图像中检测出的一个车道线,L1-L3为从所述图像中检测出的一个车道线。After the clustering is completed, the candidate lane lines belonging to different categories are determined as the detected different lane lines, and the candidate lane lines belonging to the same category are determined as the detected one lane line. Continuing to refer to FIG. 2, L4 is a lane line detected from the image, L5 is a lane line detected from the image, and L1-L3 is a lane line detected from the image.
相关的聚类方式中,第一步,将每个对象(图像中的像素点或区域)作 为一个类别,计算类别之间的最小距离;第二步,将最小距离小于阈值的两个类别聚合为一个类别;第三步,计算聚类后的类别之间的最小距离,返回第二步进行计算,直至所有类别均不能聚合。该聚类方式中,当虚线车道线中的第一车道线段与第二车道线段之间的最短距离比该第一车道线段与旁边车道线之间的最短距离大时,第一车道线段可能会与旁边车道线聚合为一类,虚线车道线中第一车道线段与第二车道线段无法聚合为一类,导致错误聚类。In the related clustering method, in the first step, each object (pixel or area in the image) is used as a category, and the minimum distance between the categories is calculated; in the second step, the two categories whose minimum distance is less than the threshold are aggregated It is a category; the third step is to calculate the minimum distance between the clustered categories, and return to the second step to calculate until all categories cannot be aggregated. In this clustering method, when the shortest distance between the first lane segment and the second lane segment in the dashed lane line is greater than the shortest distance between the first lane segment and the adjacent lane line, the first lane segment may be It is grouped with the adjacent lane line into one category. The first lane segment and the second lane segment in the dashed lane line cannot be aggregated into one category, resulting in incorrect clustering.
而本发明实施例中,基于各个候选车道线的端点位置参数之间的关系对候选车道线进行聚类,可将属于同一个虚线车道线的候选车道线聚合为一个类别,防止将一个虚线车道线检测为几个不同的车道线,有利于提高检测精度;并且,聚类所依据的位置参数是候选车道线的端点的,不会导致两个候选车道线的中间部位距离较近时聚类该两个候选车道线,可防止错误聚类;计算量也较少,功耗及成本都较低。In the embodiment of the present invention, the candidate lane lines are clustered based on the relationship between the endpoint position parameters of each candidate lane line, and the candidate lane lines that belong to the same dashed lane line can be aggregated into a category to prevent a dashed lane The line detection is a few different lane lines, which is helpful to improve the detection accuracy; and, the location parameter on which the clustering is based is the endpoint of the candidate lane line, which will not result in clustering when the middle part of the two candidate lane lines is closer The two candidate lane lines can prevent erroneous clustering; the calculation is also less, and the power consumption and cost are lower.
在一个实施例中,步骤S200中,所述确定各个候选车道线的端点在所述图像中的位置参数,包括:In one embodiment, in step S200, the determining position parameters of the end points of each candidate lane line in the image includes:
针对所述图像中的每个候选车道线,利用预设的第一曲线模型对所述候选车道线执行曲线拟合处理,并计算拟合后的所述候选车道线的端点的位置参数;For each candidate lane line in the image, a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
所述端点的位置参数包括端点在对应拟合后的候选车道线上的切向量和法向量。The position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
将步骤S100中确定出的待聚类的每个候选车道线均执行曲线拟合处理。曲线拟合处理比如可以采用最小二乘法曲线拟合方式,当然还可以是其他方式,比如用解析表达式逼近离散数据的方式等。Each candidate lane line to be clustered determined in step S100 is subjected to curve fitting processing. For curve fitting, for example, the least squares curve fitting method can be used, and of course, other methods can also be used, such as the method of approximating discrete data with analytical expressions.
曲线拟合处理所用的第一曲线模型比如是多项式曲线模型,相应的,拟合后的曲线便是多项式曲线,当然,第一曲线模型具体不限于此,还可以是其他曲线模型,比如对数函数模型、分段函数模型等。The first curve model used in the curve fitting process is, for example, a polynomial curve model. Correspondingly, the fitted curve is a polynomial curve. Of course, the first curve model is not specifically limited to this, but can also be other curve models, such as logarithm. Function model, piecewise function model, etc.
曲线拟合处理后,可依据第一曲线模型及拟合得到的参数计算出相应候选车道线的端点的切向量和法向量,具体可参考数学运算中的曲线切向量与 法向量的运算方式,在此不再赘述。After the curve fitting process, the tangent vector and normal vector of the end point of the corresponding lane line can be calculated according to the first curve model and the parameters obtained by fitting. For details, please refer to the calculation method of the curve tangent vector and normal vector in the mathematical operation. I will not repeat them here.
本发明实施例中,将候选车道线进行曲线拟合,将端点在拟合后的候选车道线上的切向量与法向量作为候选车道线的端点位置参数,因而端点位置参数之间的关系中考虑到了候选车道线的方向,使得本发明实施例适用于弯道车道线的检测,可避免在弯道处发生串道的问题。当然也可适用于直道车道线的检测。In the embodiment of the present invention, the candidate lane line is curve-fitted, and the tangent vector and the normal vector of the end point on the fitted candidate lane line are used as the endpoint position parameters of the candidate lane line. Therefore, the relationship between the endpoint position parameters Taking into account the direction of the candidate lane line, the embodiment of the present invention is suitable for the detection of the lane line of the curve, and the problem of cross lanes at the curve can be avoided. Of course, it can also be applied to the detection of straight lane lines.
在一个实施例中,参看图3,步骤S300中,所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类,包括以下步骤:In one embodiment, referring to FIG. 3, in step S300, the clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line includes the following steps:
S301:按照指定顺序遍历各个候选车道线,依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线;S301: Traverse each candidate lane line in the specified order, and determine whether there is a Target candidate lane lines of the current candidate lane line cluster merge;
S302:若是,将所述当前候选车道线和所述目标候选车道线确定为属于同一类别,并利用预设的第二曲线模型对所述图像中所述当前候选车道线和所述目标候选车道线执行曲线拟合处理得到拟合后的候选车道线,计算该拟合后的候选车道线的端点位置参数,返回所述按照指定顺序遍历各个候选车道线的步骤。S302: If yes, determine that the current candidate lane line and the target candidate lane line belong to the same category, and use the preset second curve model to compare the current candidate lane line and the target candidate lane in the image The line performs a curve fitting process to obtain the fitted candidate lane line, calculates the end position parameter of the fitted candidate lane line, and returns to the step of traversing each candidate lane line in the specified order.
步骤S301中,按照指定顺序遍历各个候选车道线,每遍历到一个候选车道线,便执行后续的步骤。指定顺序具体不限,比如可以按照候选车道线在图像中的位置情况确定该指定顺序,或者,可以按照候选车道线的长度确定该指定顺序等。In step S301, each candidate lane line is traversed in the specified order, and each time a candidate lane line is traversed, subsequent steps are performed. The specific order is not limited. For example, the specified order may be determined according to the position of the candidate lane line in the image, or the specified order may be determined according to the length of the candidate lane line.
优选的,所述指定顺序为各个候选车道线的长度由长到短的顺序。即,遍历时,长度较长的候选车道线先遍历到,可以在遍历之前先对所有候选车道线进行按照长度的排序。Preferably, the designated order is the order of length of each candidate lane line from long to short. That is, when traversing, the candidate lane lines with a longer length are traversed first, and all candidate lane lines may be sorted according to length before traversing.
参看图2,比如,先遍历到L4,由于未遍历到的候选车道线中不存在需要与L4合并的目标候选车道线,不执行处理,接着遍历到L5,由于未遍历到的候选车道线中不存在需要与L5合并的目标候选车道线,接着遍历到L1,L2是需要与L1合并的目标候选车道线,因而执行步骤S302。Referring to FIG. 2, for example, traversing to L4 first, because there is no target candidate lane line that needs to be merged with L4 in the candidate lane line that has not been traversed, the process is not executed, and then traversing to L5, because the candidate lane line has not There is no target candidate lane line that needs to be merged with L5, and then traversed to L1, L2 is a target candidate lane line that needs to be merged with L1, so step S302 is executed.
步骤S301的按照指定顺序遍历各个候选车道线中,当遍历到最后一个候选车道线时,便结束聚类。参看图2,比如,当遍历到L3时,说明本次遍历过程中,对于任何一个遍历到的当前候选车道线来说,在未遍历到的候选车道线中都不存在需与当前候选车道线聚类合并的目标候选车道线,说明已经完成聚类,结束聚类即可。In step S301, each candidate lane line is traversed in the specified order, and when the last candidate lane line is traversed, the clustering ends. Referring to Figure 2, for example, when traversing to L3, it means that for any current candidate lane line traversed during this traversal, there is no candidate lane line that has not been traversed. The target candidate lane line of clustering merge indicates that the clustering has been completed and the clustering can be ended.
在按照指定顺序遍历各个候选车道线时,可先判断候选车道线的数量是否大于1,若是,则依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线;若否,则结束聚类。When traversing each candidate lane line in the specified order, you can first determine whether the number of candidate lane lines is greater than 1, and if so, based on the relationship between the endpoint position parameters of the traversed current candidate lane line and the untraversed candidate lane line Determine whether there is a target candidate lane line to be merged with the current candidate lane line cluster among the untraversed candidate lane lines; if not, the clustering ends.
步骤S302中,当未遍历到的候选车道线中存在需与当前候选车道线聚类合并的目标候选车道线时,将所述当前候选车道线和所述目标候选车道线确定为属于同一类别,并利用预设的第二曲线模型对所述图像中所述当前候选车道线和所述目标候选车道线执行曲线拟合处理得到拟合后的候选车道线,计算该拟合后的候选车道线的端点位置参数。In step S302, when there is a target candidate lane line to be merged with the current candidate lane line among the untraversed candidate lane lines, the current candidate lane line and the target candidate lane line are determined to belong to the same category, And perform a curve fitting process on the current candidate lane line and the target candidate lane line in the image using a preset second curve model to obtain a fitted candidate lane line, and calculate the fitted candidate lane line End position parameter.
参看图2,比如,L2是需要与L1合并的目标候选车道线,因而将L1和L2确定为属于同一类别(该类别可以是新的类别,可以是L1的类别,也可以是L2的类别,具体不限,只要区别于其他类别即可),并利用第二曲线模型对L1和L2执行曲线拟合处理。Referring to FIG. 2, for example, L2 is a target candidate lane line that needs to be merged with L1, so L1 and L2 are determined to belong to the same category (the category can be a new category, a category of L1, or a category of L2, Specific is not limited, as long as it is different from other categories), and the second curve model is used to perform curve fitting processing on L1 and L2.
这里的曲线拟合处理同样可以采用最小二乘法曲线拟合等方式,在此不再赘述。第二曲线模型比如可以是多项式曲线模型、对数函数模型、分段函数模型等。The curve fitting process here can also adopt least squares curve fitting and other methods, which will not be repeated here. The second curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
在实施例中,在将当前候选车道线和所述目标候选车道线确定为属于同一类别的同时,还对当前候选车道线和所述目标候选车道线执行曲线拟合处理,即采用了边聚类边拟合的方式,可在聚合过程中调整候选车道线及其端点位置参数,有利于提高聚类的准确度。In an embodiment, while determining that the current candidate lane line and the target candidate lane line belong to the same category, curve fitting processing is also performed on the current candidate lane line and the target candidate lane line, that is, edge aggregation is used The method of class edge fitting can adjust the position parameters of the candidate lane line and its endpoints during the aggregation process, which is helpful to improve the accuracy of clustering.
作为一种可选的方式,也可在聚类的过程中不执行曲线拟合处理,而在聚类完成之后,再将属于同一类别的候选车道线执行曲线拟合处理。As an optional method, the curve fitting process may not be performed during the clustering process, and after the clustering is completed, the curve fitting process may be performed on the candidate lane lines belonging to the same category.
步骤S302中,返回所述按照指定顺序遍历各个候选车道线的步骤,即重新开始执行按照指定顺序遍历各个候选车道线。在新的遍历中仍按照该指定顺序,当然,候选车道线的长度顺序和数量会因执行了聚类、及曲线拟合而不同,即,拟合后的候选车道线的长度会变长,所有候选车道线的数量会减少。In step S302, returning to the step of traversing each candidate lane line in the specified order, that is, restarting traversing each candidate lane line in the specified order. In the new traversal, the specified order is still followed. Of course, the length order and number of candidate lane lines will be different due to clustering and curve fitting, that is, the length of the candidate lane line after fitting will become longer, The number of all candidate lane lines will be reduced.
在一个实施例中,步骤S301中,所述依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线,包括以下步骤:In one embodiment, in step S301, it is determined whether there is a need in the untraversed candidate lane line according to the relationship between the endpoint position parameters of the traversed current candidate lane line and the untraversed candidate lane line The target candidate lane line merged with the current candidate lane line cluster includes the following steps:
S3011:依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线;S3011: Determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line;
S3012:若是,针对每个第一候选车道线,计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,判断该关系是否满足设定关系,若满足,则所述第一候选车道线为目标候选车道线。S3012: If yes, for each first candidate lane line, calculate the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, and determine whether the relationship satisfies the set relationship, and if so, Then, the first candidate lane line is the target candidate lane line.
每个候选车道线都有两个端点,但是,依据候选车道线上的一个端点执行相应的处理,同样可以达到确定出目标候选车道线的目的,还可以减少计算量。Each candidate lane line has two endpoints, but performing the corresponding processing according to one endpoint on the candidate lane line can also achieve the purpose of determining the target candidate lane line, and can also reduce the amount of calculation.
步骤S3011中,依据指定端点位置参数从未遍历到的候选车道线中找出满足指定条件的第一候选车道线,针对第一候选车道线执行步骤S3012,可以减少执行步骤S3012所需的计算量。当然,也可以不执行判断处理,而是将所有的未遍历到的候选车道线均确定为第一候选车道线。In step S3011, find the first candidate lane line that satisfies the specified condition from the candidate lane lines that have not been traversed according to the specified endpoint position parameter. Performing step S3012 for the first candidate lane line can reduce the amount of calculation required to perform step S3012 . Of course, instead of performing the judgment process, all the candidate lane lines that have not been traversed may be determined as the first candidate lane line.
步骤S3012中,计算每个第一候选车道线的目标端点位置参数与指定端点位置参数的关系,如果计算出的关系满足设定关系时,说明是目标候选车道线。In step S3012, the relationship between the target endpoint position parameter of each first candidate lane line and the specified endpoint position parameter is calculated. If the calculated relationship satisfies the set relationship, it is the target candidate lane line.
当前候选车道线的指定端点可以是当前候选车道线两个端点中的任意一个,当指定端点确定时,第一候选车道线的目标端点位置参数也对应确定。The designated end point of the current candidate lane line may be any one of the two end points of the current candidate lane line. When the designated end point is determined, the target endpoint position parameter of the first candidate lane line is also determined correspondingly.
可选的,所述指定端点为所述当前候选车道线的指定方向上坐标值较小 的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较大的端点;或者,Optionally, the designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line, and the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line; or,
所述指定端点为所述当前候选车道线的指定方向上坐标值较大的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较小的端点。The designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line, and the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
在一个实施例中,所述指定方向为应用于所述图像的坐标系中的竖直方向或水平方向。当然,若图像在步骤S300之前执行过变换处理(比如逆透视变换处理),则该指定方向为应用于变换后的图像的坐标系中的竖直方向或水平方向。In one embodiment, the specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image. Of course, if the image has undergone transformation processing (such as inverse perspective transformation processing) before step S300, the designated direction is the vertical direction or the horizontal direction in the coordinate system applied to the transformed image.
参看图2和图4,比如,L1为当前候选车道线,L2为确定出的第一候选车道线,P1为L1的指定端点(当前候选车道线的应用于所述图像的坐标系中的竖直方向上坐标值较大的端点),相应的,P2为L2的目标端点(目标候选车道线的应用于所述图像的坐标系中的竖直方向上上坐标值较小的端点),计算P1与P2之间的关系,当该关系满足设定关系时,P2即为目标候选车道线。2 and 4, for example, L1 is the current candidate lane line, L2 is the determined first candidate lane line, and P1 is the designated end point of L1 (the vertical axis of the current candidate lane line applied to the coordinate system of the image The end point with the larger coordinate value in the vertical direction), correspondingly, P2 is the target end point of L2 (the end point with the lower coordinate value in the vertical direction in the coordinate system of the target candidate lane line applied to the image), calculate The relationship between P1 and P2. When the relationship satisfies the set relationship, P2 is the target candidate lane line.
在一个实施例中,所述端点的位置参数包括端点在对应候选车道线上的切向量和法向量;In one embodiment, the position parameter of the endpoint includes the tangent vector and normal vector of the endpoint on the corresponding candidate lane line;
步骤S3012中,所述计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,包括以下步骤:In step S3012, the calculation of the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line includes the following steps:
S30121:计算第一向量投影在所述指定端点的切向量上所得的第一切向距离、第一向量投影在所述指定端点的法向量上所得的第一法向距离、第二向量投影在所述目标端点的切向量上所得的第二切向距离、第二向量投影在所述目标端点的法向量上所得的第二法向距离;所述第一向量为所述指定端点到目标端点的向量,所述第二向量为所述目标端点到指定端点的向量;S30121: Calculate the first tangential distance obtained by projecting the first vector onto the tangent vector of the specified endpoint, the first normal distance obtained by projecting the first vector onto the normal vector of the specified endpoint, and the second vector projected at A second tangential distance obtained on the tangent vector of the target endpoint, and a second normal distance obtained by projecting a second vector on the normal vector of the target endpoint; the first vector is the specified endpoint to the target endpoint , The second vector is the vector from the target endpoint to the specified endpoint;
S30122:将所述第一切向距离和第二切向距离中的较大者确定为目标切向距离,将所述第一法向距离和第二法向距离中的较大者确定为目标法向距离;S30122: Determine the larger of the first tangential distance and the second tangential distance as the target tangential distance, and determine the larger of the first normal distance and the second normal distance as the target Normal distance
S30123:将所述目标切向距离和目标法向距离确定为所述指定端点位置 参数与所述目标端点位置参数之间的关系。S30123: Determine the target tangential distance and the target normal distance as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
参看图4和图5,以计算第二向量投影在所述目标端点的切向量上所得的第二切向距离为例,
Figure PCTCN2018118186-appb-000001
为第二向量(即目标端点到指定端点的向量),n为目标端点的切向量,P2Q1即为
Figure PCTCN2018118186-appb-000002
投影在n上的第二切向距离,其中,P1Q1垂直于P2Q1。其他距离类似,在此不再赘述。
Referring to FIGS. 4 and 5, taking the calculation of the second tangential distance obtained by projecting the second vector onto the tangent vector of the target endpoint as an example
Figure PCTCN2018118186-appb-000001
Is the second vector (that is, the vector from the target endpoint to the specified endpoint), n is the tangent vector of the target endpoint, and P2Q1 is
Figure PCTCN2018118186-appb-000002
The second tangential distance projected on n, where P1Q1 is perpendicular to P2Q1. The other distances are similar and will not be repeated here.
在一个实施例中,步骤S3012中,所述判断该关系是否满足设定关系,包括:In one embodiment, in step S3012, the judging whether the relationship satisfies the set relationship includes:
S30124:当所述目标切向距离小于设定切向阈值、且所述目标法向距离小于设定法向阈值时,确定该关系满足设定关系。S30124: When the target tangential distance is less than the set tangential threshold, and the target normal distance is less than the set normal threshold, it is determined that the relationship satisfies the set relationship.
目标切向距离是第一切向距离和第二切向距离中的较大者,目标法向距离是第一法向距离和第二法向距离中的较大者,在较大者都满足上述设定关系时,较小者必然也满足上述设定关系。The target tangential distance is the larger of the first tangential distance and the second tangential distance. The target normal distance is the larger of the first normal distance and the second normal distance. In the above setting relationship, the smaller one must also satisfy the above setting relationship.
设定切向阈值和设定法向阈值具体取值不限,可以根据具体的车道线情况而定。The specific values of the set tangential threshold and the set normal threshold are not limited, and can be determined according to the specific lane line conditions.
在正常情况下,所有第一候选车道线中仅会确定出一个目标候选车道线,即只会有一个第一候选车道线的目标端点位置参数与指定端点位置参数的关系满足设定关系。因此,在计算出各个第一候选车道线的目标端点位置参数与指定端点位置参数之间的关系后,可先对所有第一候选车道线的目标切向距离或目标法向距离进行排序,选取其中目标切向距离或目标法向距离最小的关系去与设定关系进行比较。当然,也可将每个第一候选车道线对应的关系都与设定关系进行比较。Under normal circumstances, only one target candidate lane line will be determined among all the first candidate lane lines, that is, there will be only one first candidate lane line whose relationship between the target endpoint position parameter and the specified endpoint position parameter satisfies the set relationship. Therefore, after calculating the relationship between the target endpoint position parameter of each first candidate lane line and the specified endpoint position parameter, you can first sort the target tangential distance or target normal distance of all the first candidate lane lines and select The relationship between the target tangential distance or the target normal distance is the smallest and compared with the set relationship. Of course, the relationship corresponding to each first candidate lane line may also be compared with the set relationship.
在一个实施例中,步骤S3011中,依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线,包括以下步骤:In one embodiment, in step S3011, determining whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line includes the following steps:
S30111:依据所述指定端点位置参数确定用于确定查找范围的边界;S30111: Determine the boundary for determining the search range according to the specified endpoint position parameter;
S30112:依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围;S30112: Determine a search range required to search for the first candidate lane line in the image according to the boundary;
S30113:在所述图像中查找处于所述查找范围内的候选车道线,若查找到,则将查找到的候选车道线确定为所述第一候选车道线。S30113: Search for a candidate lane line within the search range in the image, and if found, determine the found candidate lane line as the first candidate lane line.
先依据指定端点位置参数确定出边界,依据边界所确定出的查找范围更合适,避免漏掉第一候选车道线,也不至于包含过多的第一候选车道线,将在查找范围中查找的候选车道线确定为第一候选车道线,相比于将整个图像中的候选车道线都作为第一候选车道线来说,可以减少第一候选车道线的数量,相应地减少了后续所需的计算量,同时不影响目标候选车道线的确定。First determine the boundary according to the specified endpoint position parameters, and the search range determined according to the boundary is more suitable to avoid missing the first candidate lane line, and it will not contain too many first candidate lane lines. The candidate lane line is determined as the first candidate lane line. Compared with using the candidate lane lines in the entire image as the first candidate lane line, the number of first candidate lane lines can be reduced, and accordingly the subsequent required The amount of calculation does not affect the determination of the target candidate lane line.
在一个实施例中,所述边界为所述当前候选车道线上所述指定端点的法线;In one embodiment, the boundary is the normal of the specified endpoint on the current candidate lane line;
步骤S30112中,依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围,包括以下步骤:In step S30112, determining the search range required to search for the first candidate lane line in the image according to the boundary includes the following steps:
确定所述图像中处于所述边界的两侧的第一区域和第二区域,其中,所述当前候选车道线位于所述第一区域中;Determining a first area and a second area on both sides of the boundary in the image, wherein the current candidate lane line is located in the first area;
将所述第二区域确定为所述查找范围。The second area is determined as the search range.
继续参看图2,以L1为当前后续车道线为例,P1为L1的指定端点,则将L1在P1处的法线确定为边界,图像被边界分为L1未处于的第二区域和L1处于的第一区域,将第二区域确定为查找范围,在查找范围中查找候选车道线,可以依据候选车道线两端的端点来判断是否处于查找范围,比如L2和L3两端的端点都处于查找范围,则在查找范围中查找到L2和L3,将L2和L3均确定为第一候选车道线。Continuing to refer to FIG. 2, taking L1 as the current subsequent lane line as an example, and P1 as the designated end point of L1, the normal of L1 at P1 is determined as the boundary, and the image is divided into the second area where L1 is not located and the L1 is In the first area, determine the second area as the search range, and search for the candidate lane line in the search range. You can judge whether it is in the search range according to the endpoints at both ends of the candidate lane line. Then, L2 and L3 are found in the search range, and both L2 and L3 are determined as the first candidate lane line.
在一个实施例中,步骤S300的所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,该方法还进一步包括以下步骤:In one embodiment, after clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line in step S300, the method further includes the following steps:
S310:利用预设的第三曲线模型对聚类后的各个候选车道线执行曲线拟合处理;其中,所述第三曲线模型的最高项次数大于所述第二曲线模型的最高项次数;S310: Perform a curve fitting process on each candidate lane line after clustering using a preset third curve model; wherein, the highest number of terms of the third curve model is greater than the highest number of terms of the second curve model;
步骤S400中,所述将聚类后的候选车道线确定为从所述图像中检测出的车道线,包括:In step S400, the determining the clustered candidate lane line as the lane line detected from the image includes:
将利用所述第三曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
将属于同一类别的候选车道线执行曲线拟合处理,这里的曲线拟合处理同样可以采用最小二乘法曲线拟合等方式,在此不再赘述。第三曲线模型比如可以是多项式曲线模型、对数函数模型、分段函数模型等。The curve fitting process is performed on the candidate lane lines belonging to the same category. The curve fitting process here can also adopt the method of least square curve fitting and the like, which will not be repeated here. The third curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
具体的,第二曲线模型比如可以是:x=a*y^2+b*y+c;第三曲线模型比如可以是:x=a*y^3+b*y^2+c*y+d。Specifically, the second curve model may be: x=a*y^2+b*y+c; the third curve model may be: x=a*y^3+b*y^2+c*y +d.
第二曲线模型的最高项次数比第三曲线模型的最高项次数低,防止在聚类迭代过程中产生非常弯曲的曲线导致聚类结果错误。The highest order number of the second curve model is lower than the highest order number of the third curve model, to prevent a very curved curve from being generated during the clustering iteration process, resulting in incorrect clustering results.
在一个实施例中,步骤S100中,所述确定图像中待聚类的若干候选车道线,可以包括以下步骤:In one embodiment, in step S100, the determining a plurality of candidate lane lines to be clustered in the image may include the following steps:
S101:按照预设的车道线检测方式从所述图像中检测出待分类的若干候选车道线;S101: Detect, according to a preset lane line detection method, several candidate lane lines to be classified from the image;
S102:为待分类的每个候选车道线确定对应的类别;S102: Determine a corresponding category for each candidate lane line to be classified;
S103:将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线。S103: Determine each candidate lane line after the category is determined as the several candidate lane lines to be clustered.
步骤S101中,预设的车道线检测方式比如可以是边缘检测、特征提取等车道线检测方式,将图像中的候选车道线检测出来,作为待分类的候选车道线。In step S101, the preset lane line detection method may be, for example, edge detection, feature extraction and other lane line detection methods, and the candidate lane lines in the image are detected as candidate lane lines to be classified.
步骤S102中,为待分类的每个候选车道线确定对应的类别,比如可以将不同候选车道线标记不同的颜色,每种颜色代表一种类别,在后续进行聚类时,若两种类别被聚合为同一类别,则将两种类别的颜色进行统一,比如将两者中的一种颜色修改为两者中的另一种颜色。In step S102, a corresponding category is determined for each candidate lane line to be classified, for example, different candidate lane lines may be marked with different colors, and each color represents a category. In subsequent clustering, if two categories are If they are aggregated into the same category, the colors of the two categories will be unified, for example, one of the two colors will be modified to the other of the two colors.
可以理解,颜色标记仅是为候选车道线确定类别的一种方式,具体并不限于此,也可以不需要在图像中进行标记,比如,可以为候选车道线设置类别标识(包括字符、数字等),将候选车道线与类别标识对应地存在存储器中,如此,确定候选车道线便可确定出候选车道线对应的类别标识,同样可实现 为待分类的每个候选车道线确定对应的类别。It can be understood that the color marking is only a way to determine the category of the candidate lane line, which is not limited to this, and it may not need to be marked in the image, for example, the category mark (including characters, numbers, etc.) can be set for the candidate lane line ), store the candidate lane line and the category identifier in the memory, so that the candidate lane line can be determined to determine the category identifier corresponding to the candidate lane line, and the corresponding category can also be determined for each candidate lane line to be classified.
S103中,将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线,接着执行后续的步骤S200-S400。In S103, each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered, and then the subsequent steps S200-S400 are performed.
在一个实施例中,步骤S102的所述为待分类的每个候选车道线确定对应的类别之后,该方法还进一步包括以下步骤:In one embodiment, after determining the corresponding category for each candidate lane line to be classified in step S102, the method further includes the following steps:
S112:对各个候选车道线执行骨架提取处理,以细化各个候选车道线;S112: Perform skeleton extraction processing on each candidate lane line to refine each candidate lane line;
步骤S103中,所述将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线,包括:In step S103, the determination of each candidate lane line after the determination of the category as the several candidate lane lines to be clustered includes:
将细化后的各个候选车道线确定为所述待聚类的若干候选车道线。The refined candidate lane lines are determined as the candidate lane lines to be clustered.
由于步骤S101中检测出的候选车道线通常具有一定宽度,包含的像素过多导致在后续拟合等步骤时所需处理的像素点数太多,计算量巨大,所以通过步骤S112中,通过各个候选车道线执行骨架提取处理,可以大大减少后续拟合等处理量。Since the candidate lane line detected in step S101 usually has a certain width, and contains too many pixels, the number of pixels to be processed in the subsequent fitting and other steps is too large, and the calculation amount is huge. Therefore, in step S112, pass each candidate Carrying out skeleton extraction processing on lane lines can greatly reduce the amount of processing such as subsequent fitting.
对各个候选车道线执行骨架提取处理的方式比如可以是,只保留候选车道线的宽度方向上处于中间的单个像素点,得到细化后的候选车道线。当然具体不限于此,比如也可以提取候选车道线长度方向上的边缘。在执行骨架提取处理后,还可以对候选车道线执行一定的图像处理,比如执行平滑处理等。The manner of performing skeleton extraction processing on each candidate lane line may be, for example, to retain only a single pixel point in the middle of the width direction of the candidate lane line to obtain the refined candidate lane line. Of course, the specific is not limited to this, for example, the edge in the length direction of the candidate lane line may also be extracted. After the skeleton extraction process is performed, certain image processing can also be performed on the candidate lane lines, such as smoothing processing and the like.
在一个实施例中,步骤S112的对各个候选车道线执行骨架提取处理之后,该方法还进一步包括以下步骤:In one embodiment, after performing skeleton extraction processing on each candidate lane line in step S112, the method further includes the following steps:
S122:对细化后的各个所述候选车道线执行逆透视变换处理,以使所述候选车道线在所述图像中处于目标视角下,所述目标视角是采集候选车道线时俯视候选车道线的视角;S122: Perform an inverse perspective transformation process on each of the thinned candidate lane lines, so that the candidate lane lines are in a target perspective in the image, and the target perspective is to look down on the candidate lane lines when collecting the candidate lane lines Perspective
步骤S103中,所述将细化后的各个候选车道线确定为所述待聚类的若干候选车道线,包括:In step S103, the determination of each refined lane line as the candidate lane lines to be clustered includes:
将逆透视变换处理后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
对细化后的各个所述候选车道线执行逆透视变换处理之后,候选车道线都处于目标视角下,在目标视角下,候选车道线的尺寸比例符合真实尺寸比例,不会出现候选车道线扭曲的现象,能够提高鲁棒性。After performing the inverse perspective transformation processing on each of the refined candidate lane lines, the candidate lane lines are all under the target angle of view. Under the target angle of view, the size ratio of the candidate lane lines conforms to the true size ratio, and no distortion of the candidate lane lines will occur The phenomenon can improve the robustness.
逆透视变换处理的方式不限,比如,可以预先建立好候选车道线从当前视角转换到目标视角的坐标转换关系,并保存在电子设备中,在计算时,电子设备直接调用该坐标转换关系即可确定实现对细化后的各个所述候选车道线执行逆透视变换处理。The method of inverse perspective transformation is not limited. For example, the coordinate conversion relationship between the candidate lane line from the current perspective to the target perspective can be established in advance and stored in the electronic device. During calculation, the electronic device directly calls the coordinate conversion relationship, that is It may be determined that inverse perspective transformation processing is performed on each of the thinned candidate lane lines.
从当前视角转换到目标视角的坐标转换关系可以依据成像设备的焦距、光轴位置参数及成像设备相对地面的角度、高度参数等来建立,具体不限。The coordinate conversion relationship from the current angle of view to the target angle of view can be established according to the focal length of the imaging device, the optical axis position parameters, and the angle and height parameters of the imaging device relative to the ground, etc., without limitation.
在一个实施例中,步骤S102的所述为待分类的每个候选车道线确定对应的类别之前,该方法还进一步包括:In one embodiment, before determining the corresponding category for each candidate lane line to be classified in step S102, the method further includes:
S111:对待分类的每个候选车道线执行膨胀处理,以使所述候选车道线中无效的像素值被修改为有效的像素值;S111: Perform dilation processing for each candidate lane line to be classified, so that the invalid pixel value in the candidate lane line is modified to a valid pixel value;
S121:对膨胀处理后的候选车道线执行腐蚀处理,以使腐蚀后的候选车道线具有与膨胀前的对应候选车道线相同的尺寸。S121: Perform corrosion processing on the candidate lane line after the expansion process, so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
步骤S101中检测出的候选车道线中可能会存在一些空洞(空洞是指候选车道线中与邻域像素点的像素值不同的像素点或像素块,该邻域可以是4邻域、8邻域等),空洞处的像素值是无效的像素值,需要修改为有效的像素值。但是检测空洞所需的处理量非常大,因而,为了减少处理量,在本实施例中,不进行是否存在空洞的判断,直接对待分类的每个候选车道线执行膨胀处理。There may be some voids in the candidate lane line detected in step S101 (voids refer to pixels or pixel blocks in the candidate lane line that have different pixel values from neighboring pixel points. The neighborhood may be 4 neighborhoods or 8 neighbors. Field, etc.), the pixel value at the hole is an invalid pixel value and needs to be modified to a valid pixel value. However, the amount of processing required to detect a hole is very large. Therefore, in order to reduce the amount of processing, in this embodiment, the determination of whether there is a hole is not performed, and each candidate lane line to be classified is directly subjected to inflation processing.
膨胀处理的方式比如可以是:针对每个候选车道线中的每个像素,以像素为中心在上下左右四个方向上按照第一半径膨胀该像素(即将该第一半径范围内的像素的像素值均修改为该膨胀的像素的像素值)。整体来说,候选车道线在长度上和宽度上都变大了两个第一半径。The expansion processing method may be, for example: for each pixel in each candidate lane line, the pixel is used as the center to expand the pixel by the first radius in the four directions of up, down, left, and right (that is, the pixels of the pixels within the first radius) The values are all modified to the pixel values of the expanded pixels). Overall, the candidate lane line becomes larger in length and width by two first radii.
为了使得候选车道线恢复原有的长度及宽度,步骤S121中,对膨胀处理后的候选车道线执行腐蚀处理。腐蚀处理的方式比如可以是:针对每个膨胀后的候选车道线,将候选车道线的边缘向内腐蚀所述第一半径的像素(即将 该第一半径范围内的像素的像素值均修改为候选车道线之外与该候选车道线的边缘相邻的像素的像素值),腐蚀后的候选车道线具有与膨胀前的对应候选车道线相同的尺寸。In order to restore the candidate lane line to the original length and width, in step S121, a corrosion process is performed on the candidate lane line after the expansion process. The corrosion processing method may be, for example: for each inflated candidate lane line, the edge of the candidate lane line is eroded inwardly to the pixels of the first radius (that is, the pixel values of the pixels within the first radius range are all modified to Pixel values of pixels adjacent to the edge of the candidate lane line outside the candidate lane line), the eroded candidate lane line has the same size as the corresponding candidate lane line before inflation.
通过膨胀腐蚀处理后,可以将候选车道线中的空洞填充为邻域像素点的像素值。After the expansion and corrosion treatment, the holes in the candidate lane line can be filled with the pixel values of the neighboring pixels.
在一个实施例中,步骤S300的所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还包括可以包括以下步骤:In one embodiment, after clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line in step S300, the method may further include the following steps:
S320:利用预设的曲线模型对聚类后的各个候选车道线执行曲线拟合处理;S320: Perform curve fitting processing on each candidate lane line after clustering by using a preset curve model;
步骤S400中,所述将聚类后的候选车道线确定为从所述图像中检测出的车道线,包括以下步骤:In step S400, the determining the clustered candidate lane line as the lane line detected from the image includes the following steps:
将利用所述预设的曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
步骤S300的聚类过程中,可以无需进行曲线拟合处理,而是在聚类结束之后,再对属于同一类别的候选车道线执行曲线拟合处理。In the clustering process of step S300, the curve fitting process may not be performed, but after the clustering ends, the curve fitting process is performed on the candidate lane lines belonging to the same category.
步骤S320中的曲线拟合处理同样可以采用最小二乘法曲线拟合等方式,在此不再赘述。该预设的曲线模型比如可以是多项式曲线模型、对数函数模型、分段函数模型等。The curve fitting process in step S320 may also use least squares curve fitting and other methods, which will not be repeated here. The preset curve model may be, for example, a polynomial curve model, a logarithmic function model, a piecewise function model, or the like.
具体的,该预设的曲线模型比如可以是:x=a*y^3+b*y^2+c*y+d。Specifically, the preset curve model may be, for example: x=a*y^3+b*y^2+c*y+d.
在一个实施例中,步骤S400中,所述将聚类后的候选车道线确定为从所述图像中检测出的车道线之后,该方法还进一步包括以下步骤:In one embodiment, in step S400, after the clustered candidate lane line is determined as the lane line detected from the image, the method further includes the following steps:
S501:计算每个所述检测出的车道线的指定特征值;S501: Calculate the specified characteristic value of each detected lane line;
S502:判断所述指定特征值是否处于设定取值范围;S502: Determine whether the specified characteristic value is within a set value range;
S503:若否,则将该车道线从所有检测出的车道线中删除。S503: If not, delete the lane line from all detected lane lines.
优选的,所述指定特征值包括以下参数的至少一种:Preferably, the specified characteristic value includes at least one of the following parameters:
车道线的曲率;The curvature of the lane line;
车道线的斜率;The slope of the lane line;
车道线的宽度。The width of the lane line.
可以理解,指定特征值不限于上述三种,还可以是其他参数,只要能够表征车道线的形状特征即可。设定取值范围也可根据先验知识来确定,具体不限,不同特征值对应的设定取值范围也可不同。It can be understood that the specified feature value is not limited to the above three, but may be other parameters as long as it can characterize the shape characteristics of the lane line. The setting value range can also be determined according to a priori knowledge, which is not limited to specific, and the setting value range corresponding to different characteristic values can also be different.
根据车道线的曲率、斜率、宽度等指定特征值,删除掉检测出的不符合实际的车道线,有助于提高鲁棒性。According to the specified characteristic values such as the curvature, slope, and width of the lane line, deleting the detected lane line that does not conform to the actual situation is helpful to improve the robustness.
基于与上述车道线检测方法同样的构思,参看图6,一种电子设备500,包括:存储器501和处理器502(如一个或多个处理器)。电子设备具体类型不限,电子设备可以是成像设备但不限于成像设备。电子设备例如也可以是与成像设备电连接的设备,可获取成像设备采集的图像,进而执行相应的方法。Based on the same concept as the above lane line detection method, referring to FIG. 6, an electronic device 500 includes a memory 501 and a processor 502 (such as one or more processors). The specific type of the electronic device is not limited, and the electronic device may be an imaging device but not limited to an imaging device. The electronic device may also be a device electrically connected to the imaging device, for example, and may acquire the image collected by the imaging device, and then execute the corresponding method.
在一个实施例中,所述存储器,用于存储程序代码;In one embodiment, the memory is used to store program code;
所述处理器,用于调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor is used to call the program code, and when the program code is executed, it is used to perform the following operations:
确定图像中待聚类的若干候选车道线;Determine several candidate lane lines to be clustered in the image;
确定各个候选车道线的端点在所述图像中的位置参数;Determine the location parameters of the endpoints of each candidate lane line in the image;
依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类;Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
将聚类后的候选车道线确定为从所述图像中检测出的车道线。The candidate lane line after clustering is determined as the lane line detected from the image.
优选的,所述处理器确定各个候选车道线的端点在所述图像中的位置参数时具体用于:Preferably, the processor is specifically used when determining the position parameter of the endpoint of each candidate lane line in the image:
针对所述图像中的每个候选车道线,利用预设的第一曲线模型对所述候选车道线执行曲线拟合处理,并计算拟合后的所述候选车道线的端点的位置参数;For each candidate lane line in the image, a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
所述端点的位置参数包括端点在对应拟合后的候选车道线上的切向量和法向量。The position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
优选的,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类时具体用于:Preferably, the processor is specifically used for clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line:
按照指定顺序遍历各个候选车道线,依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线;Traverse each candidate lane line in the specified order, and determine whether there is a current candidate in the untraversed candidate lane line according to the relationship between the endpoint location parameters of the traversed current candidate lane line and the untraversed candidate lane line The target candidate lane line of cluster merge of lane lines;
若是,将所述当前候选车道线和所述目标候选车道线确定为属于同一类别,并利用预设的第二曲线模型对所述图像中所述当前候选车道线和所述目标候选车道线执行曲线拟合处理得到拟合后的候选车道线,计算该拟合后的候选车道线的端点位置参数,返回所述按照指定顺序遍历各个候选车道线的步骤。If yes, determine that the current candidate lane line and the target candidate lane line belong to the same category, and perform the current candidate lane line and the target candidate lane line in the image using a preset second curve model The curve fitting process obtains the fitted candidate lane line, calculates the end position parameter of the fitted candidate lane line, and returns to the step of traversing each candidate lane line in the specified order.
优选的,所述处理器依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线时具体用于:Preferably, the processor determines whether there is a current candidate lane line among the untraversed candidate lane lines according to the relationship between the endpoint position parameters of the traversed current candidate lane lines and the untraversed candidate lane lines The target candidate lane line of cluster merge is specifically used for:
依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线;Determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line;
若是,针对每个第一候选车道线,计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,判断该关系是否满足设定关系,若满足,则所述第一候选车道线为目标候选车道线。If so, for each first candidate lane line, calculate the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, and determine whether the relationship satisfies the set relationship. The first candidate lane line is the target candidate lane line.
优选的,所述端点的位置参数包括端点在对应候选车道线上的切向量和法向量;Preferably, the position parameter of the endpoint includes a tangent vector and a normal vector of the endpoint on the corresponding candidate lane line;
所述处理器计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系时具体用于:When the processor calculates the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, it is specifically used to:
计算第一向量投影在所述指定端点的切向量上所得的第一切向距离、第一向量投影在所述指定端点的法向量上所得的第一法向距离、第二向量投影在所述目标端点的切向量上所得的第二切向距离、第二向量投影在所述目标端点的法向量上所得的第二法向距离;所述第一向量为所述指定端点到目标端点的向量,所述第二向量为所述目标端点到指定端点的向量;Calculate the first tangential distance obtained by projecting the first vector onto the tangent vector at the specified endpoint, the first normal distance obtained by projecting the first vector onto the normal vector at the specified endpoint, and the second vector projected at the A second tangential distance obtained on the tangent vector of the target endpoint, and a second normal distance obtained by projecting the second vector on the normal vector of the target endpoint; the first vector is the vector from the specified endpoint to the target endpoint , The second vector is a vector from the target endpoint to a specified endpoint;
将所述第一切向距离和第二切向距离中的较大者确定为目标切向距离,将所述第一法向距离和第二法向距离中的较大者确定为目标法向距离;The larger of the first and second tangential distances is determined as the target tangential distance, and the larger of the first and second normal distances is determined as the target normal direction distance;
将所述目标切向距离和目标法向距离确定为所述指定端点位置参数与所述目标端点位置参数之间的关系。The target tangential distance and the target normal distance are determined as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
优选的,所述处理器判断该关系是否满足设定关系时具体用于:Preferably, the processor is specifically used to determine whether the relationship satisfies the set relationship:
当所述目标切向距离小于设定切向阈值、且所述目标法向距离小于设定法向阈值时,确定该关系满足设定关系。When the target tangential distance is less than the set tangential threshold and the target normal distance is less than the set normal threshold, it is determined that the relationship satisfies the set relationship.
优选的,所述处理器依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线时具体用于:Preferably, the processor is specifically used to determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line:
依据所述指定端点位置参数确定用于确定查找范围的边界;Determine the boundary for determining the search range according to the specified endpoint position parameter;
依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围;Determining a search range required to search for the first candidate lane line in the image according to the boundary;
在所述图像中查找处于所述查找范围内的候选车道线,若查找到,则将查找到的候选车道线确定为所述第一候选车道线。Searching for a candidate lane line within the search range in the image, and if found, determining the found candidate lane line as the first candidate lane line.
优选的,所述边界为所述当前候选车道线上所述指定端点的法线;Preferably, the boundary is a normal line of the specified endpoint on the current candidate lane line;
所述依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围时具体用于:The determining the search range required to search for the first candidate lane line in the image according to the boundary is specifically used to:
确定所述图像中处于所述边界的两侧的第一区域和第二区域,其中,所述当前候选车道线位于所述第一区域中;Determining a first area and a second area on both sides of the boundary in the image, wherein the current candidate lane line is located in the first area;
将所述第二区域确定为所述查找范围。The second area is determined as the search range.
优选的,Preferably,
所述指定端点为所述当前候选车道线的指定方向上坐标值较小的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较大的端点;或者,The designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line, and the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line; or,
所述指定端点为所述当前候选车道线的指定方向上坐标值较大的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较小的端点。The designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line, and the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
优选的,Preferably,
所述指定方向为应用于所述图像的坐标系中的竖直方向或水平方向。The specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image.
优选的,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还进一步用于:Preferably, after the processor clusters the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, it is further used to:
利用预设的第三曲线模型对聚类后的各个候选车道线执行曲线拟合处理;其中,所述第三曲线模型的最高项次数大于所述第二曲线模型的最高项次数;Using a preset third curve model to perform curve fitting processing on each candidate lane line after clustering; wherein, the highest number of terms of the third curve model is greater than the highest number of terms of the second curve model;
所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线时具体用于:When the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used for:
将利用所述第三曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
优选的,Preferably,
所述指定顺序为各个候选车道线的长度由长到短的顺序。The designated order is an order in which the length of each candidate lane line is long to short.
优选的,所述处理器确定图像中待聚类的若干候选车道线时具体用于:Preferably, when the processor determines several candidate lane lines to be clustered in the image, it is specifically used to:
按照预设的车道线检测方式从所述图像中检测出待分类的若干候选车道线;Detecting, according to a preset lane line detection method, several candidate lane lines to be classified from the image;
为待分类的每个候选车道线确定对应的类别;Determine the corresponding category for each candidate lane line to be classified;
将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered.
优选的,所述处理器为待分类的每个候选车道线确定对应的类别之后,还进一步用于:Preferably, after the processor determines the corresponding category for each candidate lane line to be classified, it is further used to:
对各个候选车道线执行骨架提取处理,以细化各个候选车道线;Perform skeleton extraction processing on each candidate lane line to refine each candidate lane line;
所述处理器将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线时具体用于:When the processor determines each candidate lane line after determining the category as the several candidate lane lines to be clustered, it is specifically used for:
将细化后的各个候选车道线确定为所述待聚类的若干候选车道线。The refined candidate lane lines are determined as the candidate lane lines to be clustered.
优选的,所述处理器对各个候选车道线执行骨架提取处理之后,还进一步用于:Preferably, after the processor performs skeleton extraction processing on each candidate lane line, it is further used to:
对细化后的各个所述候选车道线执行逆透视变换处理,以使所述候选车道线在所述图像中处于目标视角下,所述目标视角是采集候选车道线时俯视候选车道线的视角;Perform an inverse perspective transformation process on each of the refined lane lines so that the candidate lane lines are in the target angle of view in the image, and the target angle of view is the perspective of looking down the candidate lane lines when collecting the candidate lane lines ;
所述处理器将细化后的各个候选车道线确定为所述待聚类的若干候选车道线时具体用于:When the processor determines the refined candidate lane lines as the candidate lane lines to be clustered, it is specifically used for:
将逆透视变换处理后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
优选的,所述处理器为待分类的每个候选车道线确定对应的类别之前,还进一步用于:Preferably, before the processor determines the corresponding category for each candidate lane line to be classified, it is further used to:
对待分类的每个候选车道线执行膨胀处理,以使所述候选车道线中无效的像素值被修改为有效的像素值;Performing dilation processing for each candidate lane line to be classified, so that the invalid pixel value in the candidate lane line is modified to a valid pixel value;
对膨胀处理后的候选车道线执行腐蚀处理,以使腐蚀后的候选车道线具有与膨胀前的对应候选车道线相同的尺寸。Corrosion processing is performed on the candidate lane line after the expansion process so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
优选的,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还用于:Preferably, after the processor clusters the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, it is also used to:
利用预设的曲线模型对聚类后的各个候选车道线执行曲线拟合处理;Perform curve fitting processing on each candidate lane line after clustering by using a preset curve model;
所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线时具体用于:When the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used for:
将利用所述预设的曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
优选的,所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线之后,还进一步用于:Preferably, after the processor determines the clustered candidate lane line as the lane line detected from the image, it is further used to:
计算每个所述检测出的车道线的指定特征值;Calculating the specified characteristic value of each detected lane line;
判断所述指定特征值是否处于设定取值范围;Determine whether the specified characteristic value is within the set value range;
若否,则将该车道线从所有检测出的车道线中删除。If not, the lane line is deleted from all detected lane lines.
优选的,所述指定特征值包括以下参数的至少一种:Preferably, the specified characteristic value includes at least one of the following parameters:
车道线的曲率;The curvature of the lane line;
车道线的斜率;The slope of the lane line;
车道线的宽度。The width of the lane line.
基于与上述方法同样的发明构思,本发明还提供一种计算机可读存储介 质,所述计算机可读存储介质上存储有计算机指令,所述计算机指令被执行时,实现前述实施例所述的车道线检测方法。Based on the same inventive concept as the above method, the present invention also provides a computer-readable storage medium that stores computer instructions, and when the computer instructions are executed, the lane described in the foregoing embodiment is implemented Line detection method.
上述实施例阐明的系统、装置、模块或单元,可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The system, device, module or unit explained in the above embodiments may be realized by a computer chip or entity, or by a product with a certain function. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本发明时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit may be implemented in one or more software and/or hardware.
本领域内的技术人员应明白,本发明实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present invention may take the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可以由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device An apparatus for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and/or one block or multiple blocks of a block diagram.
而且,这些计算机程序指令也可以存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能。Moreover, these computer program instructions may also be stored in a computer readable memory that can guide the computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including instruction means, The instruction device implements the functions specified in one block or multiple blocks of one flow or multiple blocks of the flowchart and/or block diagram.
这些计算机程序指令也可装载到计算机或其它可编程数据处理设备,使 得在计算机或者其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to generate computer-implemented processing, thereby executing instructions on the computer or other programmable device Steps are provided for implementing the functions specified in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.
以上所述仅为本发明实施例而已,并不用于限制本发明。对于本领域技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进,均应包含在本发明的权利要求范围之内。The above are only the embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.

Claims (39)

  1. 一种车道线检测方法,其特征在于,该方法包括:A lane line detection method, characterized in that the method includes:
    确定图像中待聚类的若干候选车道线;Determine several candidate lane lines to be clustered in the image;
    确定各个候选车道线的端点在所述图像中的位置参数;Determine the location parameters of the endpoints of each candidate lane line in the image;
    依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类;Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
    将聚类后的候选车道线确定为从所述图像中检测出的车道线。The candidate lane line after clustering is determined as the lane line detected from the image.
  2. 如权利要求1所述的车道线检测方法,其特征在于,所述确定各个候选车道线的端点在所述图像中的位置参数,包括:The lane line detection method according to claim 1, wherein the determining position parameters of the endpoints of each candidate lane line in the image includes:
    针对所述图像中的每个候选车道线,利用预设的第一曲线模型对所述候选车道线执行曲线拟合处理,并计算拟合后的所述候选车道线的端点的位置参数;For each candidate lane line in the image, a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
    所述端点的位置参数包括端点在对应拟合后的候选车道线上的切向量和法向量。The position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
  3. 如权利要求1所述的车道线检测方法,其特征在于,所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类,包括:The lane line detection method according to claim 1, wherein the clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line includes:
    按照指定顺序遍历各个候选车道线,依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线;Traverse each candidate lane line in the specified order, and determine whether there is a current candidate in the untraversed candidate lane line according to the relationship between the endpoint location parameters of the traversed current candidate lane line and the untraversed candidate lane line The target candidate lane line of cluster merge of lane lines;
    若是,将所述当前候选车道线和所述目标候选车道线确定为属于同一类别,并利用预设的第二曲线模型对所述图像中所述当前候选车道线和所述目标候选车道线执行曲线拟合处理得到拟合后的候选车道线,计算该拟合后的候选车道线的端点位置参数,返回所述按照指定顺序遍历各个候选车道线的步骤。If yes, determine that the current candidate lane line and the target candidate lane line belong to the same category, and perform the current candidate lane line and the target candidate lane line in the image using a preset second curve model The curve fitting process obtains the fitted candidate lane line, calculates the end position parameter of the fitted candidate lane line, and returns to the step of traversing each candidate lane line in the specified order.
  4. 如权利要求3所述的车道线检测方法,其特征在于,所述依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标 候选车道线,包括:The lane line detection method according to claim 3, wherein the untraversed candidate is determined according to the relationship between the endpoint position parameters of the traversed current candidate lane line and the untraversed candidate lane line Whether there is a target candidate lane line in the lane line to be merged with the current candidate lane line cluster, including:
    依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线;Determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line;
    若是,针对每个第一候选车道线,计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,判断该关系是否满足设定关系,若满足,则所述第一候选车道线为目标候选车道线。If so, for each first candidate lane line, calculate the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, and determine whether the relationship satisfies the set relationship. The first candidate lane line is the target candidate lane line.
  5. 如权利要求4所述的车道线检测方法,其特征在于,所述端点的位置参数包括端点在对应候选车道线上的切向量和法向量;The lane line detection method according to claim 4, wherein the position parameter of the endpoint includes a tangent vector and a normal vector of the endpoint on the corresponding candidate lane line;
    所述计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,包括:The calculating the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line includes:
    计算第一向量投影在所述指定端点的切向量上所得的第一切向距离、第一向量投影在所述指定端点的法向量上所得的第一法向距离、第二向量投影在所述目标端点的切向量上所得的第二切向距离、第二向量投影在所述目标端点的法向量上所得的第二法向距离;所述第一向量为所述指定端点到目标端点的向量,所述第二向量为所述目标端点到指定端点的向量;Calculate the first tangential distance obtained by projecting the first vector onto the tangent vector at the specified endpoint, the first normal distance obtained by projecting the first vector onto the normal vector at the specified endpoint, and the second vector projected at the A second tangential distance obtained on the tangent vector of the target endpoint, and a second normal distance obtained by projecting the second vector on the normal vector of the target endpoint; the first vector is the vector from the specified endpoint to the target endpoint , The second vector is a vector from the target endpoint to a specified endpoint;
    将所述第一切向距离和第二切向距离中的较大者确定为目标切向距离,将所述第一法向距离和第二法向距离中的较大者确定为目标法向距离;The larger of the first and second tangential distances is determined as the target tangential distance, and the larger of the first and second normal distances is determined as the target normal direction distance;
    将所述目标切向距离和目标法向距离确定为所述指定端点位置参数与所述目标端点位置参数之间的关系。The target tangential distance and the target normal distance are determined as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
  6. 如权利要求5所述的车道线检测方法,其特征在于,所述判断该关系是否满足设定关系,包括:The lane line detection method according to claim 5, wherein the judging whether the relationship satisfies the set relationship includes:
    当所述目标切向距离小于设定切向阈值、且所述目标法向距离小于设定法向阈值时,确定该关系满足设定关系。When the target tangential distance is less than the set tangential threshold and the target normal distance is less than the set normal threshold, it is determined that the relationship satisfies the set relationship.
  7. 如权利要求4所述的车道线检测方法,其特征在于,依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线,包括:The lane line detection method according to claim 4, characterized in that it is determined whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line ,include:
    依据所述指定端点位置参数确定用于确定查找范围的边界;Determine the boundary for determining the search range according to the specified endpoint position parameter;
    依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围;Determining a search range required to search for the first candidate lane line in the image according to the boundary;
    在所述图像中查找处于所述查找范围内的候选车道线,若查找到,则将查找到的候选车道线确定为所述第一候选车道线。Searching for a candidate lane line within the search range in the image, and if found, determining the found candidate lane line as the first candidate lane line.
  8. 如权利要求7所述的车道线检测方法,其特征在于,所述边界为所述当前候选车道线上所述指定端点的法线;The lane line detection method according to claim 7, wherein the boundary is a normal line of the specified endpoint on the current candidate lane line;
    依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围,包括:The search range required to search for the first candidate lane line in the image according to the boundary includes:
    确定所述图像中处于所述边界的两侧的第一区域和第二区域,其中,所述当前候选车道线位于所述第一区域中;Determining a first area and a second area on both sides of the boundary in the image, wherein the current candidate lane line is located in the first area;
    将所述第二区域确定为所述查找范围。The second area is determined as the search range.
  9. 如权利要求4所述的车道线检测方法,其特征在于,The lane line detection method according to claim 4, wherein:
    所述指定端点为所述当前候选车道线的指定方向上坐标值较小的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较大的端点;或者,The designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line, and the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line; or,
    所述指定端点为所述当前候选车道线的指定方向上坐标值较大的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较小的端点。The designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line, and the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
  10. 如权利要求9所述的车道线检测方法,其特征在于,The lane line detection method according to claim 9, wherein:
    所述指定方向为应用于所述图像的坐标系中的竖直方向或水平方向。The specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image.
  11. 如权利要求3所述的车道线检测方法,其特征在于,所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,该方法还进一步包括:The lane line detection method according to claim 3, wherein after clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, the method further comprises:
    利用预设的第三曲线模型对聚类后的各个候选车道线执行曲线拟合处理;其中,所述第三曲线模型的最高项次数大于所述第二曲线模型的最高项次数;Using a preset third curve model to perform curve fitting processing on each candidate lane line after clustering; wherein, the highest number of terms of the third curve model is greater than the highest number of terms of the second curve model;
    所述将聚类后的候选车道线确定为从所述图像中检测出的车道线,包括:The determination of the candidate lane line after clustering as the lane line detected from the image includes:
    将利用所述第三曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
  12. 如权利要求3所述的车道线检测方法,其特征在于,The lane line detection method according to claim 3, wherein:
    所述指定顺序为各个候选车道线的长度由长到短的顺序。The designated order is an order in which the length of each candidate lane line is long to short.
  13. 如权利要求1-12中任一项所述的车道线检测方法,其特征在于,所述确定图像中待聚类的若干候选车道线,包括:The lane line detection method according to any one of claims 1-12, wherein the determining a plurality of candidate lane lines to be clustered in the image includes:
    按照预设的车道线检测方式从所述图像中检测出待分类的若干候选车道线;Detecting, according to a preset lane line detection method, several candidate lane lines to be classified from the image;
    为待分类的每个候选车道线确定对应的类别;Determine the corresponding category for each candidate lane line to be classified;
    将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered.
  14. 如权利要求13所述的车道线检测方法,其特征在于,所述为待分类的每个候选车道线确定对应的类别之后,该方法还进一步包括:The lane line detection method according to claim 13, wherein after the corresponding category is determined for each candidate lane line to be classified, the method further comprises:
    对各个候选车道线执行骨架提取处理,以细化各个候选车道线;Perform skeleton extraction processing on each candidate lane line to refine each candidate lane line;
    所述将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线,包括:The determination of each candidate lane line after determining the category as the several candidate lane lines to be clustered includes:
    将细化后的各个候选车道线确定为所述待聚类的若干候选车道线。The refined candidate lane lines are determined as the candidate lane lines to be clustered.
  15. 如权利要求14所述的车道线检测方法,其特征在于,对各个候选车道线执行骨架提取处理之后,该方法还进一步包括:The lane line detection method according to claim 14, wherein after performing skeleton extraction processing on each candidate lane line, the method further comprises:
    对细化后的各个所述候选车道线执行逆透视变换处理,以使所述候选车道线在所述图像中处于目标视角下,所述目标视角是采集候选车道线时俯视候选车道线的视角;Perform an inverse perspective transformation process on each of the refined lane lines so that the candidate lane lines are in the target angle of view in the image, and the target angle of view is the perspective of looking down the candidate lane lines when collecting the candidate lane lines ;
    所述将细化后的各个候选车道线确定为所述待聚类的若干候选车道线,包括:The determination of each candidate lane line after refinement as the several candidate lane lines to be clustered includes:
    将逆透视变换处理后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
  16. 如权利要求13所述的车道线检测方法,其特征在于,所述为待分类的每个候选车道线确定对应的类别之前,该方法还进一步包括:The lane line detection method according to claim 13, wherein before the corresponding category is determined for each candidate lane line to be classified, the method further comprises:
    对待分类的每个候选车道线执行膨胀处理,以使所述候选车道线中无效的像素值被修改为有效的像素值;Performing dilation processing for each candidate lane line to be classified, so that the invalid pixel value in the candidate lane line is modified to a valid pixel value;
    对膨胀处理后的候选车道线执行腐蚀处理,以使腐蚀后的候选车道线具 有与膨胀前的对应候选车道线相同的尺寸。Corrosion processing is performed on the candidate lane line after the expansion process so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
  17. 如权利要求1所述的车道线检测方法,其特征在于,所述依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还包括:The lane line detection method according to claim 1, wherein after clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line, further comprising:
    利用预设的曲线模型对聚类后的各个候选车道线执行曲线拟合处理;Perform curve fitting processing on each candidate lane line after clustering by using a preset curve model;
    所述将聚类后的候选车道线确定为从所述图像中检测出的车道线,包括:The determination of the candidate lane line after clustering as the lane line detected from the image includes:
    将利用所述预设的曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
  18. 如权利要求1所述的车道线检测方法,其特征在于,所述将聚类后的候选车道线确定为从所述图像中检测出的车道线之后,该方法还进一步包括:The lane line detection method according to claim 1, wherein after the clustered candidate lane line is determined as the lane line detected from the image, the method further comprises:
    计算每个所述检测出的车道线的指定特征值;Calculating the specified characteristic value of each detected lane line;
    判断所述指定特征值是否处于设定取值范围;Determine whether the specified characteristic value is within the set value range;
    若否,则将该车道线从所有检测出的车道线中删除。If not, the lane line is deleted from all detected lane lines.
  19. 如权利要求18所述的车道线检测方法,其特征在于,所述指定特征值包括以下参数的至少一种:The lane line detection method according to claim 18, wherein the specified characteristic value includes at least one of the following parameters:
    车道线的曲率;The curvature of the lane line;
    车道线的斜率;The slope of the lane line;
    车道线的宽度。The width of the lane line.
  20. 一种电子设备,其特征在于,包括:存储器和处理器;An electronic device, characterized in that it includes: a memory and a processor;
    所述存储器,用于存储程序代码;The memory is used to store program codes;
    所述处理器,用于调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor is used to call the program code, and when the program code is executed, it is used to perform the following operations:
    确定图像中待聚类的若干候选车道线;Determine several candidate lane lines to be clustered in the image;
    确定各个候选车道线的端点在所述图像中的位置参数;Determine the location parameters of the endpoints of each candidate lane line in the image;
    依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类;Cluster the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line;
    将聚类后的候选车道线确定为从所述图像中检测出的车道线。The candidate lane line after clustering is determined as the lane line detected from the image.
  21. 如权利要求20所述的设备,其特征在于,所述处理器确定各个候选车道线的端点在所述图像中的位置参数时具体用于:The device according to claim 20, wherein the processor is specifically used when determining the position parameter of the endpoint of each candidate lane line in the image:
    针对所述图像中的每个候选车道线,利用预设的第一曲线模型对所述候选车道线执行曲线拟合处理,并计算拟合后的所述候选车道线的端点的位置参数;For each candidate lane line in the image, a curve fitting process is performed on the candidate lane line using a preset first curve model, and the position parameter of the end point of the candidate lane line after fitting is calculated;
    所述端点的位置参数包括端点在对应拟合后的候选车道线上的切向量和法向量。The position parameter of the endpoint includes the tangent vector and the normal vector of the endpoint on the corresponding candidate lane line after fitting.
  22. 如权利要求20所述的设备,其特征在于,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类时具体用于:The device according to claim 20, wherein the processor is specifically used for clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line:
    按照指定顺序遍历各个候选车道线,依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线;Traverse each candidate lane line in the specified order, and determine whether there is a current candidate in the untraversed candidate lane line according to the relationship between the endpoint location parameters of the traversed current candidate lane line and the untraversed candidate lane line The target candidate lane line of cluster merge of lane lines;
    若是,将所述当前候选车道线和所述目标候选车道线确定为属于同一类别,并利用预设的第二曲线模型对所述图像中所述当前候选车道线和所述目标候选车道线执行曲线拟合处理得到拟合后的候选车道线,计算该拟合后的候选车道线的端点位置参数,返回所述按照指定顺序遍历各个候选车道线的步骤。If yes, determine that the current candidate lane line and the target candidate lane line belong to the same category, and perform the current candidate lane line and the target candidate lane line in the image using a preset second curve model The curve fitting process obtains the fitted candidate lane line, calculates the end position parameter of the fitted candidate lane line, and returns to the step of traversing each candidate lane line in the specified order.
  23. 如权利要求22所述的设备,其特征在于,所述处理器依据遍历到的当前候选车道线与未遍历到的候选车道线的端点位置参数之间的关系判断所述未遍历到的候选车道线中是否存在需与当前候选车道线聚类合并的目标候选车道线时具体用于:The device according to claim 22, wherein the processor determines the untraversed candidate lane according to the relationship between the endpoint position parameters of the traversed current candidate lane line and the untraversed candidate lane line Whether there is a target candidate lane line to be merged with the current candidate lane line cluster is specifically used for:
    依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线;Determine whether there is at least one first candidate lane line that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line;
    若是,针对每个第一候选车道线,计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系,判断该关系是否满足设定关系,若满足,则所述第一候选车道线为目标候选车道线。If so, for each first candidate lane line, calculate the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, and determine whether the relationship satisfies the set relationship. The first candidate lane line is the target candidate lane line.
  24. 如权利要求23所述的设备,其特征在于,所述端点的位置参数包括端点在对应候选车道线上的切向量和法向量;The device according to claim 23, wherein the position parameter of the endpoint includes a tangent vector and a normal vector of the endpoint on the corresponding candidate lane line;
    所述处理器计算所述指定端点位置参数与所述第一候选车道线的目标端点位置参数之间的关系时具体用于:When the processor calculates the relationship between the specified endpoint position parameter and the target endpoint position parameter of the first candidate lane line, it is specifically used to:
    计算第一向量投影在所述指定端点的切向量上所得的第一切向距离、第一向量投影在所述指定端点的法向量上所得的第一法向距离、第二向量投影在所述目标端点的切向量上所得的第二切向距离、第二向量投影在所述目标端点的法向量上所得的第二法向距离;所述第一向量为所述指定端点到目标端点的向量,所述第二向量为所述目标端点到指定端点的向量;Calculate the first tangential distance obtained by projecting the first vector onto the tangent vector at the specified endpoint, the first normal distance obtained by projecting the first vector onto the normal vector at the specified endpoint, and the second vector projected at the A second tangential distance obtained on the tangent vector of the target endpoint, and a second normal distance obtained by projecting the second vector on the normal vector of the target endpoint; the first vector is the vector from the specified endpoint to the target endpoint , The second vector is a vector from the target endpoint to a specified endpoint;
    将所述第一切向距离和第二切向距离中的较大者确定为目标切向距离,将所述第一法向距离和第二法向距离中的较大者确定为目标法向距离;The larger of the first and second tangential distances is determined as the target tangential distance, and the larger of the first and second normal distances is determined as the target normal direction distance;
    将所述目标切向距离和目标法向距离确定为所述指定端点位置参数与所述目标端点位置参数之间的关系。The target tangential distance and the target normal distance are determined as the relationship between the specified endpoint position parameter and the target endpoint position parameter.
  25. 如权利要求24所述的设备,其特征在于,所述处理器判断该关系是否满足设定关系时具体用于:The device according to claim 24, wherein the processor is specifically used to determine whether the relationship satisfies the set relationship:
    当所述目标切向距离小于设定切向阈值、且所述目标法向距离小于设定法向阈值时,确定该关系满足设定关系。When the target tangential distance is less than the set tangential threshold and the target normal distance is less than the set normal threshold, it is determined that the relationship satisfies the set relationship.
  26. 如权利要求23所述的设备,其特征在于,所述处理器依据所述当前候选车道线的指定端点位置参数判断未遍历到的候选车道线中是否存在满足指定条件的至少一个第一候选车道线时具体用于:The device according to claim 23, wherein the processor determines whether there is at least one first candidate lane that satisfies the specified condition among the candidate lane lines that have not been traversed according to the specified endpoint position parameter of the current candidate lane line The line time is specifically used for:
    依据所述指定端点位置参数确定用于确定查找范围的边界;Determine the boundary for determining the search range according to the specified endpoint position parameter;
    依据所述边界在所述图像中确定查找第一候选车道线所需的查找范围;Determining a search range required to search for the first candidate lane line in the image according to the boundary;
    在所述图像中查找处于所述查找范围内的候选车道线,若查找到,则将查找到的候选车道线确定为所述第一候选车道线。Searching for a candidate lane line within the search range in the image, and if found, determining the found candidate lane line as the first candidate lane line.
  27. 如权利要求26所述的设备,其特征在于,所述边界为所述当前候选车道线上所述指定端点的法线;The apparatus according to claim 26, wherein the boundary is a normal line of the specified endpoint on the current candidate lane line;
    所述依据所述边界在所述图像中确定查找第一候选车道线所需的查找范 围时具体用于:The determining the search range required to search for the first candidate lane line in the image according to the boundary is specifically used to:
    确定所述图像中处于所述边界的两侧的第一区域和第二区域,其中,所述当前候选车道线位于所述第一区域中;Determining a first area and a second area on both sides of the boundary in the image, wherein the current candidate lane line is located in the first area;
    将所述第二区域确定为所述查找范围。The second area is determined as the search range.
  28. 如权利要求23所述的设备,其特征在于,The device of claim 23, wherein
    所述指定端点为所述当前候选车道线的指定方向上坐标值较小的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较大的端点;或者,The designated endpoint is an endpoint with a smaller coordinate value in the designated direction of the current candidate lane line, and the target endpoint is an endpoint with a larger coordinate value in the designated direction of the target candidate lane line; or,
    所述指定端点为所述当前候选车道线的指定方向上坐标值较大的端点,所述目标端点为所述目标候选车道线的指定方向上坐标值较小的端点。The designated endpoint is an endpoint with a larger coordinate value in a designated direction of the current candidate lane line, and the target endpoint is an endpoint with a smaller coordinate value in a designated direction of the target candidate lane line.
  29. 如权利要求28所述的设备,其特征在于,The device according to claim 28, characterized in that
    所述指定方向为应用于所述图像的坐标系中的竖直方向或水平方向。The specified direction is a vertical direction or a horizontal direction applied in the coordinate system of the image.
  30. 如权利要求22所述的设备,其特征在于,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还进一步用于:The device according to claim 22, wherein the processor further clusters the candidate lane lines after clustering the candidate lane lines according to the relationship between the endpoint position parameters of each candidate lane line:
    利用预设的第三曲线模型对聚类后的各个候选车道线执行曲线拟合处理;其中,所述第三曲线模型的最高项次数大于所述第二曲线模型的最高项次数;Using a preset third curve model to perform curve fitting processing on each candidate lane line after clustering; wherein, the highest number of terms of the third curve model is greater than the highest number of terms of the second curve model;
    所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线时具体用于:When the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used for:
    将利用所述第三曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the third curve model is determined as the lane line detected from the image.
  31. 如权利要求22所述的设备,其特征在于,The device of claim 22, wherein
    所述指定顺序为各个候选车道线的长度由长到短的顺序。The designated order is an order in which the length of each candidate lane line is long to short.
  32. 如权利要求20-31中任一项所述的设备,其特征在于,所述处理器确定图像中待聚类的若干候选车道线时具体用于:The device according to any one of claims 20 to 31, wherein the processor is specifically used when determining a plurality of candidate lane lines to be clustered in the image:
    按照预设的车道线检测方式从所述图像中检测出待分类的若干候选车道线;Detecting, according to a preset lane line detection method, several candidate lane lines to be classified from the image;
    为待分类的每个候选车道线确定对应的类别;Determine the corresponding category for each candidate lane line to be classified;
    将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after determining the category is determined as the several candidate lane lines to be clustered.
  33. 如权利要求32所述的设备,其特征在于,所述处理器为待分类的每个候选车道线确定对应的类别之后,还进一步用于:The device of claim 32, wherein after the processor determines a corresponding category for each candidate lane line to be classified, it is further used to:
    对各个候选车道线执行骨架提取处理,以细化各个候选车道线;Perform skeleton extraction processing on each candidate lane line to refine each candidate lane line;
    所述处理器将确定类别后的各个候选车道线确定为所述待聚类的若干候选车道线时具体用于:When the processor determines each candidate lane line after determining the category as the several candidate lane lines to be clustered, it is specifically used for:
    将细化后的各个候选车道线确定为所述待聚类的若干候选车道线。The refined candidate lane lines are determined as the candidate lane lines to be clustered.
  34. 如权利要求33所述的设备,其特征在于,所述处理器对各个候选车道线执行骨架提取处理之后,还进一步用于:The device according to claim 33, wherein after the processor performs skeleton extraction processing on each candidate lane line, it is further used to:
    对细化后的各个所述候选车道线执行逆透视变换处理,以使所述候选车道线在所述图像中处于目标视角下,所述目标视角是采集候选车道线时俯视候选车道线的视角;Perform an inverse perspective transformation process on each of the refined lane lines so that the candidate lane lines are in the target angle of view in the image, and the target angle of view is the perspective of looking down the candidate lane lines when collecting the candidate lane lines ;
    所述处理器将细化后的各个候选车道线确定为所述待聚类的若干候选车道线时具体用于:When the processor determines the refined candidate lane lines as the candidate lane lines to be clustered, it is specifically used for:
    将逆透视变换处理后的各个候选车道线确定为所述待聚类的若干候选车道线。Each candidate lane line after inverse perspective transformation processing is determined as the several candidate lane lines to be clustered.
  35. 如权利要求32所述的设备,其特征在于,所述处理器为待分类的每个候选车道线确定对应的类别之前,还进一步用于:The device according to claim 32, wherein before the processor determines a corresponding category for each candidate lane line to be classified, it is further used to:
    对待分类的每个候选车道线执行膨胀处理,以使所述候选车道线中无效的像素值被修改为有效的像素值;Performing dilation processing for each candidate lane line to be classified, so that the invalid pixel value in the candidate lane line is modified to a valid pixel value;
    对膨胀处理后的候选车道线执行腐蚀处理,以使腐蚀后的候选车道线具有与膨胀前的对应候选车道线相同的尺寸。Corrosion processing is performed on the candidate lane line after the expansion process so that the candidate lane line after the corrosion has the same size as the corresponding candidate lane line before expansion.
  36. 如权利要求20所述的设备,其特征在于,所述处理器依据各个候选车道线的端点位置参数之间的关系对所述候选车道线进行聚类之后,还用于:The apparatus according to claim 20, wherein the processor is further used to: after clustering the candidate lane lines according to the relationship between the endpoint position parameters of the respective lane lane lines
    利用预设的曲线模型对聚类后的各个候选车道线执行曲线拟合处理;Perform curve fitting processing on each candidate lane line after clustering by using a preset curve model;
    所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线 时具体用于:When the processor determines the clustered candidate lane line as the lane line detected from the image, it is specifically used to:
    将利用所述预设的曲线模型执行曲线拟合处理后的各个候选车道线确定为从所述图像中检测出的车道线。Each candidate lane line after performing curve fitting processing using the preset curve model is determined as the lane line detected from the image.
  37. 如权利要求20所述的设备,其特征在于,所述处理器将聚类后的候选车道线确定为从所述图像中检测出的车道线之后,还进一步用于:The device of claim 20, wherein the processor determines the clustered candidate lane line as the lane line detected from the image, and is further used to:
    计算每个所述检测出的车道线的指定特征值;Calculating the specified characteristic value of each detected lane line;
    判断所述指定特征值是否处于设定取值范围;Determine whether the specified characteristic value is within the set value range;
    若否,则将该车道线从所有检测出的车道线中删除。If not, the lane line is deleted from all detected lane lines.
  38. 如权利要求37所述的设备,其特征在于,所述指定特征值包括以下参数的至少一种:The device according to claim 37, wherein the specified characteristic value includes at least one of the following parameters:
    车道线的曲率;The curvature of the lane line;
    车道线的斜率;The slope of the lane line;
    车道线的宽度。The width of the lane line.
  39. 一种计算机可读存储介质,其特征在于,A computer-readable storage medium, characterized in that
    所述计算机可读存储介质上存储有计算机指令,所述计算机指令被执行时,实现权利要求1-19中任一项所述的车道线检测方法。Computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the lane line detection method according to any one of claims 1-19 is implemented.
PCT/CN2018/118186 2018-11-29 2018-11-29 Lane line detection method, device and computer readale storage medium WO2020107326A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880068401.7A CN111433780A (en) 2018-11-29 2018-11-29 Lane line detection method, lane line detection apparatus, and computer-readable storage medium
PCT/CN2018/118186 WO2020107326A1 (en) 2018-11-29 2018-11-29 Lane line detection method, device and computer readale storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/118186 WO2020107326A1 (en) 2018-11-29 2018-11-29 Lane line detection method, device and computer readale storage medium

Publications (1)

Publication Number Publication Date
WO2020107326A1 true WO2020107326A1 (en) 2020-06-04

Family

ID=70852683

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118186 WO2020107326A1 (en) 2018-11-29 2018-11-29 Lane line detection method, device and computer readale storage medium

Country Status (2)

Country Link
CN (1) CN111433780A (en)
WO (1) WO2020107326A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223113A (en) * 2021-04-30 2021-08-06 阿波罗智联(北京)科技有限公司 Lane line processing method and device, electronic equipment and cloud control platform
CN115797896A (en) * 2023-01-30 2023-03-14 智道网联科技(北京)有限公司 Lane line clustering method, lane line clustering apparatus, and computer-readable storage medium
CN116030286A (en) * 2023-03-29 2023-04-28 高德软件有限公司 Boundary lane line matching method and device, electronic equipment and storage medium
WO2023142865A1 (en) * 2022-01-28 2023-08-03 灵动科技(北京)有限公司 Autonomous mobile robot and method for lane line detection using same
CN113223113B (en) * 2021-04-30 2024-04-19 阿波罗智联(北京)科技有限公司 Lane line processing method and device, electronic equipment and cloud control platform

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449629B (en) * 2021-06-25 2022-10-28 重庆卡佐科技有限公司 Lane line false and true identification device, method, equipment and medium based on driving video
CN114708569B (en) * 2022-02-22 2023-03-24 广州文远知行科技有限公司 Road curve detection method, device, equipment and storage medium
CN116304142B (en) * 2023-05-12 2023-08-08 智道网联科技(北京)有限公司 Point cloud data acquisition method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201370A1 (en) * 2008-02-05 2009-08-13 Hitachi, Ltd. Traveling Lane Detector
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN105320927A (en) * 2015-03-25 2016-02-10 中科院微电子研究所昆山分所 Lane line detection method and system
CN105740782A (en) * 2016-01-25 2016-07-06 北京航空航天大学 Monocular vision based driver lane-changing process quantization method
CN108052880A (en) * 2017-11-29 2018-05-18 南京大学 Traffic monitoring scene actual situation method for detecting lane lines

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260699B (en) * 2015-09-10 2018-06-26 百度在线网络技术(北京)有限公司 A kind of processing method and processing device of lane line data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201370A1 (en) * 2008-02-05 2009-08-13 Hitachi, Ltd. Traveling Lane Detector
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN105320927A (en) * 2015-03-25 2016-02-10 中科院微电子研究所昆山分所 Lane line detection method and system
CN105740782A (en) * 2016-01-25 2016-07-06 北京航空航天大学 Monocular vision based driver lane-changing process quantization method
CN108052880A (en) * 2017-11-29 2018-05-18 南京大学 Traffic monitoring scene actual situation method for detecting lane lines

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223113A (en) * 2021-04-30 2021-08-06 阿波罗智联(北京)科技有限公司 Lane line processing method and device, electronic equipment and cloud control platform
CN113223113B (en) * 2021-04-30 2024-04-19 阿波罗智联(北京)科技有限公司 Lane line processing method and device, electronic equipment and cloud control platform
WO2023142865A1 (en) * 2022-01-28 2023-08-03 灵动科技(北京)有限公司 Autonomous mobile robot and method for lane line detection using same
CN115797896A (en) * 2023-01-30 2023-03-14 智道网联科技(北京)有限公司 Lane line clustering method, lane line clustering apparatus, and computer-readable storage medium
CN116030286A (en) * 2023-03-29 2023-04-28 高德软件有限公司 Boundary lane line matching method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111433780A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
WO2020107326A1 (en) Lane line detection method, device and computer readale storage medium
JP6830139B2 (en) 3D data generation method, 3D data generation device, computer equipment and computer readable storage medium
TW202011733A (en) Method and device for performing target sampling on pictures
CN111640089B (en) Defect detection method and device based on feature map center point
WO2021003823A1 (en) Video frame image analysis-based vehicle illegal parking detection method and apparatus
US20140047367A1 (en) Image processing apparatus, image processing method, and program
CN110969145B (en) Remote sensing image matching optimization method and device, electronic equipment and storage medium
CN112257698B (en) Method, device, equipment and storage medium for processing annular view parking space detection result
CN112085033A (en) Template matching method and device, electronic equipment and storage medium
WO2022110862A1 (en) Method and apparatus for constructing road direction arrow, electronic device, and storage medium
CN112336342A (en) Hand key point detection method and device and terminal equipment
CN111259710A (en) Parking space structure detection model training method adopting parking space frame lines and end points
WO2021056339A1 (en) Positioning method and system, and movable platform
CN106771329B (en) Method for detecting running speed of unmanned aerial vehicle in deceleration process
CN111401143A (en) Pedestrian tracking system and method
CN111080640A (en) Hole detection method, device, equipment and medium
CN114092909A (en) Lane line extraction method and device, vehicle and storage medium
CN112580565A (en) Lane line detection method, lane line detection device, computer device, and storage medium
JP6249508B2 (en) Change detection support device, change detection support method, and program
CN115239776B (en) Point cloud registration method, device, equipment and medium
CN114170257A (en) Curved target contour fitting device, computer equipment and storage medium
CN110728688B (en) Energy optimization-based three-dimensional mesh model segmentation method and system
CN112686155A (en) Image recognition method, image recognition device, computer-readable storage medium and processor
CN109993695B (en) Image fragment splicing method and system for irregular graphic annotation
CN115249407A (en) Indicating lamp state identification method and device, electronic equipment, storage medium and product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941703

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941703

Country of ref document: EP

Kind code of ref document: A1