Expressway marking extraction method, device, equipment, medium and product
Through the road point cloud segmentation network and edge template matching algorithm based on deep learning, the problem of information loss and complex type marking identification in MLS point cloud road marking extraction is solved, and high reliability and stability of highway markings are achieved. Extraction, suitable for large-scale scenes, and supports reticle degradation analysis.
Patent Information
- Application Number
- CN202411085159.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing MLS point cloud road marking extraction solutions suffer from information loss, difficulty in accurately extracting complex types of markings, and problems such as a wide variety of scene elements, scale differences, and sample imbalance in large-scale MLS point cloud scenes.
The road point cloud segmentation network based on deep learning is used to extract road point cloud data, the point cloud is rasterized and binarized, and the geometric information of the minimum circumscribed rectangle is combined to determine the marking type, and an edge template matching algorithm is used to identify non-real markings. Line type, summarize the determined line types to obtain the highway line extraction results.
It avoids information loss, accurately extracts complex types of markings, improves the reliability and stability of extraction results in large-scale MLS point cloud scenes, facilitates practical application and promotion, and supports degradation analysis of markings for maintenance.
Smart Images

Figure CN118658065A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of point cloud data analysis, and specifically relates to a method, device, equipment, medium and product for extracting highway markings. Background Art
[0002] Road markings are typical elements of highway asset digitization and informatization, and are also an important basis for realizing highway alignment extraction and road modeling. Therefore, extracting the accurate position of road markings and their semantic recognition results can provide important support for the digital operation, maintenance and intelligent management of highways.
[0003] In recent years, 3D point cloud data acquired by airborne LiDAR (Light Laser Detection and Ranging) has been widely used in real-life 3D city modeling and the generation of more sophisticated DEM (Digital Elevation Model). Mobile Laser Scanning (MLS) systems efficiently, reliably and at low cost acquire 3D point cloud data of road scenes with high density, high precision and many details, making it an effective data source for semantic recognition and updating of road markings.
[0004] Highway markings are highly reflective materials attached to asphalt or concrete pavement. Compared with the pavement point cloud, the intensity value of the road markings becomes a significant feature that distinguishes them from the pavement. Based on semantic knowledge (such as shape) and MLS point cloud intensity attributes, existing MLS point cloud road marking extraction methods are mainly divided into two categories: (1) 2D image-based methods; (2) 3D point cloud-based methods.
[0005] At present, the two-dimensional image-based method will inevitably cause information loss in the process of converting point cloud unstructured data into raster images, and it is difficult to accurately extract complex types of road markings. The three-dimensional point cloud-based method has developed to the point where deep learning methods are introduced. However, deep learning-based methods not only require a large number of samples, but also face challenges such as a wide variety of scene elements, scale differences, and sample imbalance when facing large-scale MLS point cloud scenes. In addition, most of the existing MLS point cloud road marking extraction solutions focus on the extraction and classification of road markings from vehicle-mounted point clouds. Few studies not only digitize the extracted road markings, but also perform degradation analysis on the markings for maintenance needs. Summary of the invention
[0006] The purpose of the present invention is to provide a method, device, computer equipment, computer readable storage product and computer program product for extracting highway markings, so as to solve the problems existing in the existing MLS point cloud road marking extraction scheme, such as easy information loss, difficulty in accurately extracting complex types of markings, and challenges such as a wide variety of scene elements, scale differences and sample imbalance when facing large-scale MLS point cloud scenes.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, a method for extracting highway markings is provided, comprising: Acquire point cloud data collected by mobile laser scanning equipment on the target highway; Using a road point cloud segmentation network based on deep learning to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data; Performing point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image; Binarizing the road surface strength characteristic image to obtain a road surface strength binary image; Performing foreground connected area analysis on the road strength binary image to obtain multiple clustering objects; For each cluster object in the plurality of cluster objects, judging whether the marking type of the corresponding cluster object is a solid marking type according to the geometric information of the corresponding minimum circumscribed rectangle, and if not, further identifying the corresponding non-solid marking type by using an edge template matching algorithm, wherein the non-solid marking type refers to other marking types except the solid marking type; All cluster objects of determined road marking types are summarized to obtain a road marking extraction result for the target highway.
[0008] Based on the above invention content, a new scheme for highway marking extraction driven by point cloud data is provided, that is, after obtaining the point cloud data collected by a mobile laser scanning device on the target highway, a road surface point cloud segmentation network based on deep learning is first used to extract the road surface point cloud data, and then the point cloud is rasterized and binarized in turn to obtain a road surface intensity binary image, and then the binary image is subjected to foreground connected area analysis and processing to obtain multiple clustering objects, and for each clustering object, according to the geometric information of the corresponding minimum circumscribed rectangle, it is determined whether the marking type of the corresponding object is a solid line marking, if not, the edge template matching algorithm is further used to identify the corresponding non-solid marking type, and finally all clustering objects with determined marking types are summarized to obtain the marking extraction result of the target highway, so that the advantages of the existing methods based on two-dimensional images and three-dimensional point clouds can be combined, so as to avoid information loss and accurately extract complex types of markings, and can also easily challenge the various types of scene elements, scale differences and sample imbalance when facing large-scale MLS point cloud scenes, so that the extraction results have high reliability and high stability, which is convenient for practical application and promotion.
[0009] In a possible design, a road point cloud segmentation network based on deep learning is used to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data, including: Performing noise filtering preprocessing on the point cloud data to obtain denoised point cloud data; A road point cloud segmentation network based on deep learning is used to perform road point cloud extraction processing on the denoised point cloud data to obtain road point cloud data, wherein the road point cloud segmentation network is a network with the highest road point cloud segmentation accuracy among the PointNet network, PointNet++ network and RandLA-Net network pre-trained based on a road point sample annotation set.
[0010] In a possible design, the road surface point cloud data is subjected to point cloud rasterization processing to obtain a road surface intensity characteristic image, including: Projecting each road surface point in the road surface point cloud data onto a rasterized two-dimensional road surface; For each grid on the two-dimensional road surface, if there is no projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to zero, and if there is at least one projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to the average laser intensity of the at least one road surface point; According to the pixel values of all pixels, a road surface intensity characteristic image is obtained.
[0011] In a possible design, the road surface strength characteristic image is binarized to obtain a road surface strength binarized image, including: Performing block processing on the road surface strength characteristic image to obtain a plurality of sub-images; For each sub-image in the plurality of sub-images, using a maximum cross entropy threshold segmentation algorithm to determine a corresponding optimal pixel threshold; For each of the sub-images, taking the pixel points in the corresponding image whose pixel values are greater than the corresponding pixel optimal threshold as foreground pixel points, and taking the pixel points in the corresponding image whose pixel values are less than or equal to the corresponding pixel optimal threshold as background pixel points, to obtain a binarized sub-image that summarizes all foreground pixel points and all background pixel points and corresponds to the image; All binary sub-images are stitched together to obtain a road surface strength binary image.
[0012] In a possible design, for each cluster object in the plurality of cluster objects, judging whether the marking type of the corresponding cluster object is a solid line marking type according to geometric information of the corresponding minimum circumscribed rectangle includes: For a cluster object among the multiple cluster objects, a corresponding minimum bounding rectangle is generated, and geometric information of the minimum bounding rectangle is calculated, wherein the geometric information includes a rectangle width , Rectangle Aspect Ratio Ratio of the area of the object rectangle to the , the object rectangle area ratio It refers to the area ratio of the cluster object to the minimum enclosing rectangle; Determine whether the geometric information of the minimum bounding rectangle of the cluster object meets the following conditions:
[0013] In the formula, represents the standard width of the solid line of the target highway, Indicates the preset aspect ratio threshold. Indicates the preset area ratio threshold, Indicates the preset allowable difference threshold; If it is determined that the geometric information of the minimum circumscribed rectangle of the certain cluster object meets the condition, then the line type of the certain cluster object is determined to be a solid line type line, otherwise it is determined that the line type of the certain cluster object is not a solid line type line; And / or, for each cluster object whose marking type is not a solid line marking type in the plurality of cluster objects, further identifying the corresponding non-solid marking type using an edge template matching algorithm, including: For any cluster object whose marking type is not a solid line among the plurality of cluster objects, a corresponding rectangular sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire template instance images of all non-solid marking lines, wherein the non-solid marking lines refer to highway marking lines of non-solid marking type, the non-solid marking line type refers to marking line types other than solid line marking line, the marking line types of all non-solid marking lines are different from each other, and the template instance image is a binary image with template marking line instance pixel points as foreground pixel points; For each non-solid marking line among all the non-solid marking lines, using a similarity measurement method to compare the corresponding template instance image with all foreground edge pixels of the rectangular sub-image to obtain a corresponding similarity measurement index value; Determine a non-solid marked line having a maximum similarity measurement index value from all the non-solid marked lines; It is determined whether the maximum similarity measurement index value reaches a preset index threshold value. If so, the non-solid marking line type of the certain non-solid marking line is used as the marking line type of any clustering object.
[0014] In a possible design, all cluster objects of determined road marking types are aggregated to obtain road marking extraction results for the target highway, including: For any cluster object that has been determined to be a non-real marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels; Comparing all foreground edge pixels of the template instance image and the rectangular binary sub-image using a similarity measurement method to obtain a marking line contour integrity degradation index value; If the line marking profile integrity degradation index value is greater than or equal to a preset first degradation index threshold, determining that the first line marking maintenance strategy for any one of the cluster objects is no maintenance; otherwise, determining that the first line marking maintenance strategy for any one of the cluster objects is maintenance required; The non-real marking type, the rectangular binary sub-image, the template instance image, the marking contour integrity degradation index value, the first marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects are used as the marking extraction result for the target highway and for any one of the cluster objects; And / or, summarizing all cluster objects of determined road marking types to obtain road marking extraction results for the target highway, including: For any cluster object that has been determined to be a non-real marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels; According to all pixel values of the template instance image and the rectangular binary sub-image, the radiation consistency degradation index value of the marking line is calculated according to the following formula: :
[0015] In the formula, represents a pixel point in the template instance image, Indicates the radiation range, Indicates that in the rectangular binary sub-image and with the pixel point The corresponding radiation pixel point, Represents pixel The pixel value of Represents the radiation pixel The pixel value of If the marking radiation consistency degradation index value is greater than or equal to a preset second degradation index threshold, the second marking maintenance strategy for any one of the cluster objects is determined to be no maintenance; otherwise, the second marking maintenance strategy for any one of the cluster objects is determined to require maintenance; The certain non-real line marking type, the rectangular binary sub-image, the template instance image, the line marking radiation consistency degradation index value, the second line marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects are used as the line marking extraction result for the target highway and for any one of the cluster objects.
[0016] In a second aspect, a highway marking extraction device is provided, comprising a point cloud data acquisition unit, a road surface point cloud extraction unit, a point cloud rasterization processing unit, an image binarization processing unit, a connected area analysis processing unit, a marking type identification unit, and a marking extraction summary unit, which are sequentially connected in communication; The point cloud data acquisition unit is used to acquire point cloud data collected by a mobile laser scanning device on a target highway; The road surface point cloud extraction unit is used to use a road surface point cloud segmentation network based on deep learning to perform road surface point cloud extraction processing on the point cloud data to obtain road surface point cloud data; The point cloud rasterization processing unit is used to perform point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image; The image binarization processing unit is used to perform binarization processing on the road surface strength characteristic image to obtain a road surface strength binarization image; The connected region analysis processing unit is used to perform foreground connected region analysis processing on the road strength binary image to obtain multiple cluster objects; The marking type identification unit is used to determine, for each cluster object in the plurality of cluster objects, whether the marking type of the corresponding cluster object is a solid line marking according to the geometric information of the corresponding minimum circumscribed rectangle, and if not, further identify the corresponding non-solid marking type by using an edge template matching algorithm, wherein the non-solid marking type refers to other marking types except the solid line marking type; The line marking extraction and summarization unit is used to summarize all cluster objects of determined line marking types to obtain a line marking extraction result for the target highway.
[0017] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the highway marking extraction method as described in the first aspect or any possible design of the first aspect.
[0018] In a fourth aspect, the present invention provides a computer-readable storage product having instructions stored thereon, which, when executed on a computer, executes the highway marking extraction method as described in the first aspect or any possible design of the first aspect.
[0019] In a fifth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the highway marking extraction method as described in the first aspect or any possible design of the first aspect.
[0020] Beneficial effects of the above scheme: (1) The present invention provides a new highway marking extraction solution based on point cloud data drive, that is, after obtaining the point cloud data collected by a mobile laser scanning device on the target highway, the road surface point cloud segmentation network based on deep learning is first used to extract the road surface point cloud data, and then the point cloud is rasterized and binarized to obtain a road surface intensity binary image, and then the binary image is subjected to foreground connected area analysis to obtain multiple cluster objects, and for each cluster object, according to the geometric information of the corresponding minimum circumscribed rectangle, it is determined whether the marking type of the corresponding object is a solid line marking. If not, the edge template matching algorithm is further used to identify the corresponding non-solid marking type, and finally all cluster objects with the determined marking type are summarized to obtain the marking extraction result of the target highway. In this way, the advantages of the existing methods based on two-dimensional images and three-dimensional point clouds can be combined to avoid information loss and accurately extract complex types of markings. In addition, when facing large-scale MLS point cloud scenes, it can easily challenge the various types of scene elements, scale differences and sample imbalance, so that the extraction results have high reliability and high stability, which is convenient for practical application and promotion; (2) It can also perform degradation analysis on identification markings, which helps highway maintenance departments to efficiently locate worn or partially missing markings and implement maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A schematic diagram of the process of extracting highway markings provided in an embodiment of the present application.
[0023] Figure 2 This is a comparison example diagram of some point cloud data before and after annotation provided in the embodiment of the present application, where: Figure 2 (a) shows an example image of some point cloud data before annotation. Figure 2 (b) in the figure shows an example image after some point cloud data is annotated.
[0024] Figure 3 This is an example diagram of a road surface strength characteristic image obtained based on road surface point cloud data provided in an embodiment of the present application, wherein: Figure 3 (a) shows an example of road point cloud data. Figure 3 (b) in the figure shows an example of a road surface strength feature image.
[0025] Figure 4 This is an example diagram of obtaining a pavement strength binary image based on a pavement strength feature image provided in an embodiment of the present application.
[0026] Figure 5 The template example images of the short thick dashed line marking, the long thin dashed line marking, the straight arrow type marking, the left arrow type marking, the right arrow type marking and the straight-right turn arrow type marking provided in the embodiment of the present application, wherein: Figure 5 (a) shows an example of a template instance image of a short thick dashed line. Figure 5 (b) shows an example of a template instance image of a long and thin dashed line. Figure 5 (c) shows an example of a template instance image of a straight arrow-shaped marking line. Figure 5 (d) shows an example of a template instance image of a left arrow-shaped marking line. Figure 5 (e) in the figure shows an example of a template instance image of a right arrow type marking line. Figure 5 (f) shows an example of a template instance image of a straight-right turn arrow type marking line.
[0027] Figure 6 This is an example diagram of the line extraction results and local details of the Duwen Expressway section provided in an embodiment of the present application.
[0028] Figure 7 This is an example diagram of the line extraction results and local details of the Ya'an-Xichang Expressway section provided in an embodiment of the present application.
[0029] Figure 8 An example diagram of a marking extraction result including a marking profile integrity degradation index value and a first marking maintenance strategy provided in an embodiment of the present application.
[0030] Fig. 9 An example diagram of a marking extraction result including a marking radiation consistency degradation index value and a second marking maintenance strategy provided in an embodiment of the present application.
[0031] Fig.10 A schematic diagram of the structure of a highway marking extraction device provided in an embodiment of the present application.
[0032] Fig.11 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0034] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.
[0035] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.
[0036] Example like Figure 1 As shown, the highway marking extraction method provided in the first aspect of this embodiment can be, but is not limited to, executed by a computer device with certain computing resources, such as a data processing server or other electronic device. Figure 1 As shown, the highway marking extraction method may include but is not limited to the following steps S1 to S7.
[0037] S1. Obtain point cloud data collected by a mobile laser scanning device on a target highway.
[0038] In step S1, the target expressway is a section of expressway for which highway marking extraction is to be performed. The mobile laser scanning device may be an existing vehicle-mounted laser scanning device, so that when a vehicle equipped with the vehicle-mounted laser scanning device passes through the target expressway, the vehicle-mounted laser scanning device scans the road surface area in front of the vehicle or the road surface area behind the vehicle to obtain the point cloud data (i.e., MLS point cloud data). It may also be an existing airborne laser radar device.
[0039] S2. Use a road point cloud segmentation network based on deep learning to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data.
[0040] In step S2, it is considered that highways are different from general urban roads: usually there are no prominent features such as road bumps on the edge of highways, making it difficult to extract highway boundaries through sudden changes in road elevation, so it is necessary to introduce a point cloud deep learning method to extract road point clouds. Preferably, a road point cloud segmentation network based on deep learning is used to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data, including but not limited to the following steps S21 to S22.
[0041] S21. Perform noise filtering preprocessing on the point cloud data to obtain denoised point cloud data.
[0042] In the step S21, the specific process of the noise filtering preprocessing includes but is not limited to: first, for each point in the point cloud data, if the corresponding point is taken as the center of the sphere and the preset value is If the total number of other points in the spherical space with a spherical radius (for example, 0.05M) is less than a preset point count threshold (for example, 10), the corresponding points are regarded as noise points and eliminated; then the moving trajectory data of the mobile laser scanning device (that is, the moving trajectory data of the car or drone, etc.) is used to remove a large number of off-road points in the remaining point cloud data to obtain denoised point cloud data.
[0043] S22. Use a road point cloud segmentation network based on deep learning to perform road point cloud extraction processing on the denoised point cloud data to obtain road point cloud data, wherein the road point cloud segmentation network can be but is not limited to a network with the highest road point cloud segmentation accuracy among the PointNet network, PointNet++ network, and RandLA-Net network that have been pre-trained based on a road point sample annotation set.
[0044] In step S22, the PointNet network is the earliest deep network model that attempts to directly use unstructured point clouds as learning primitives, without the need to learn through indirect expression of point clouds (such as two-dimensional multi-views or three-dimensional voxels, etc.); it mainly solves problems such as point cloud disorder, permutation invariance and rotation invariance through modules such as symmetric function aggregation, multilayer perceptron (MLP) and spatial transformer networks (STN for short); although the PointNet network overcomes the above problems and can directly learn solid point cloud classification and segmentation of the original point cloud, the network only processes each independent point and cannot capture the neighborhood information of the point, which limits its receptive field. The PointNet++ network is a hierarchical version of the PointNet network. It uses the farthest point sampling method to downsample step by step, increase the utilization of neighborhood information, effectively use contextual semantic information, and interpolate the semantic labels to the original input point cloud through the K-Nearest Neighbor (KNN) classification algorithm; the PointNet++ network not only solves the problem of uneven point cloud sampling, but also makes the learned network more robust by learning local features in a hierarchical manner. The RandLA-Net network is a lightweight network for large-scale point cloud processing. The network uses a random point sampling method to replace the farthest point sampling method of the PointNet++ network, and uses a local feature aggregation module to capture and retain local geometric features, achieving significant improvements in storage and computing. The road surface point sample annotation set is the result of point-by-point sample annotation of known point cloud data based on segmentation categories (specifically road surface points and non-road surface points). Some of the annotation results are as follows: Figure 2 As shown in (b) in the figure. The road point sample annotation set is used as a learning sample, and the PointNet network, the PointNet++ network and the RandLA-Net network are trained respectively (the specific training process is the existing conventional calibration modeling process) and the test results are compared. Finally, the network with the best road point cloud segmentation accuracy is selected to perform road point cloud extraction processing on the denoised point cloud data to obtain road point cloud data. For example, the comparison results of the PointNet network, the PointNet++ network and the RandLA-Net network trained under the same sample size and parameter conditions for road point cloud segmentation of a certain test data are shown in Table 1 below: Table 1. Comparison results of road point cloud segmentation using PointNet, PointNet++, and RandLA-Net for a test data set Network Type Enter points Road surface point extraction accuracy (%) PointNet Network 8192 97.86 PointNet++ Network 8192 99.62 RandLA Network 65536 99.27 Based on the above comparison results, it can be seen that the extraction accuracy of the road surface points (that is, the road surface point cloud segmentation accuracy) of the PointNet++ network reaches 99.62%, which is better than the 97.86% of the PointNet network and the 99.27% of the RandLA-Net network. Therefore, in this embodiment, the PointNet++ network can be selected to perform road surface point cloud extraction processing on the denoised point cloud data.
[0045] S3. Perform point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image.
[0046] In step S3, the point cloud rasterization process is a process of using point cloud attribute information as image grayscale values and generating feature images according to the three-dimensional point cloud space range and image resolution. Preferably, the road surface point cloud data is subjected to point cloud rasterization to obtain a road surface intensity feature image, including but not limited to the following steps S31 to S33.
[0047] S31. Project each road surface point in the road surface point cloud data onto a rasterized two-dimensional road surface.
[0048] In step S31, it is assumed that a road surface point in the road surface point cloud data is ,in, represents the three-dimensional coordinates of the road point, represents the laser intensity value at the certain road surface point; the certain road surface point is projected onto the two-dimensional road surface, and the plane position after projection is obtained as ,in, Indicates the scale coefficient relationship between the road surface point and the projection point; the grid to which the projection point of the road surface point belongs can be further expressed by the following formula:
[0049] In the formula, Represents the corresponding pixel coordinates of the grid to which it belongs, Indicates the size of the grid (its size determines the size and detail of the generated image; considering that the actual point cloud interval is 0.04M, the size can be designed to be 0.08M for example), represents the minimum abscissa among all projection positions, Represents the minimum ordinate among all projected positions.
[0050] S32. For each grid on the two-dimensional road surface, if there is no projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to zero; and if there is at least one projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to the average laser intensity of the at least one road surface point.
[0051] S33. Obtain a road surface intensity characteristic image based on the pixel values of all pixel points.
[0052] Based on the above steps S31 to S33, for example, Figure 3 The road point cloud data shown in (a) is obtained as follows Figure 3 The road surface strength feature image shown in (b).
[0053] S4. Binarize the road surface strength characteristic image to obtain a road surface strength binary image.
[0054] In step S4, considering that in the process of point cloud data acquisition, the laser intensity value depends not only on the material of the object being measured, but also on factors such as the scanning distance and the incident angle, it is difficult to accurately extract the road markings by relying solely on a single threshold segmentation. To this end, this embodiment preferably adopts the idea of divide and conquer to first divide the road intensity feature image into blocks, so that the incident angle and span of each sub-image after the block are greatly reduced, thereby effectively overcoming the problem of different scanning modes or large intensity differences, that is, preferably, the road intensity feature image is binarized to obtain a road intensity binarized image, including but not limited to the following steps S41 to S44.
[0055] S41. Divide the road surface strength characteristic image into blocks to obtain multiple sub-images.
[0056] In the step S41, the block size of the block processing can be preset, for example, a sub-image is obtained by dividing every 3M along the route direction.
[0057] S42. For each sub-image in the plurality of sub-images, use a maximum cross entropy threshold segmentation algorithm to determine a corresponding optimal pixel threshold.
[0058] In step S42, the maximum cross entropy threshold segmentation algorithm is used to unsupervisedly select an optimal threshold so that the sum of the entropy of the background and foreground parts is maximized: given a specific threshold , , Represents the total number of pixels for the two image regions separated by this threshold and , the corresponding probability density is estimated according to the following formula:
[0059]
[0060] In the formula, Indicates threshold-based The probability of segmenting background pixels, Indicates threshold-based The cumulative probability of segmented background pixels, Indicates threshold-based The cumulative probability of the segmented foreground pixels, the sum of the two is 1. The entropy corresponding to the background and prospects The corresponding entropies are expressed as follows:
[0061] Under the above threshold, the total entropy of the image is Finally, the total entropy of the image under all segmentation thresholds is calculated, the maximum entropy is found, and the segmentation threshold corresponding to the maximum entropy is used as the final optimal threshold of the pixel.
[0062] S43. For each of the sub-images, the pixel points in the corresponding image whose pixel values are greater than the corresponding pixel optimal threshold are taken as foreground pixel points, and the pixel points in the corresponding image whose pixel values are less than or equal to the corresponding pixel optimal threshold are taken as background pixel points, so as to obtain a corresponding binary sub-image that summarizes all foreground pixel points and all background pixel points.
[0063] S44. Perform image stitching processing on all binary sub-images to obtain a road surface strength binary image.
[0064] Based on the above steps S41 to S44, for example, Figure 3 The road strength characteristic image shown in (b) is obtained as follows Figure 4 The pavement strength binarization image is shown.
[0065] S5. Perform foreground connected area analysis on the road strength binary image to obtain multiple clustering objects.
[0066] In step S5, since the foreground pixels in the road intensity binary image are considered to be the markings to be extracted, but the marking pixels have not been objectified and cannot further identify different types of markings, this step needs to use connected area analysis to achieve clustering of different marking objects. In addition, the specific process of the foreground connected area analysis is a prior art and will not be repeated here.
[0067] S6. For each cluster object in the multiple cluster objects, determine whether the marking type of the corresponding cluster object is a solid line marking according to the geometric information of the corresponding minimum circumscribed rectangle. If not, further use an edge template matching algorithm to further identify the corresponding non-solid line marking type, wherein the non-solid line marking type refers to other line marking types except solid line markings.
[0068] In the step S6, specifically, for each cluster object in the plurality of cluster objects, it is determined whether the marking type of the corresponding cluster object is a solid line according to the geometric information of the corresponding minimum circumscribed rectangle, including but not limited to the following steps S611 to S613.
[0069] S611. For a certain cluster object among the plurality of cluster objects, generate a corresponding minimum bounding rectangle, and calculate geometric information of the minimum bounding rectangle, wherein the geometric information includes but is not limited to the width of the rectangle. , Rectangle Aspect Ratio Ratio of the area of the object rectangle to the , the object rectangle area ratio It refers to the area ratio of the cluster object to the minimum enclosing rectangle.
[0070] In step S611, the width of the rectangle , the aspect ratio of the rectangle and the area ratio of the object rectangle It can be obtained by conventional calculation based on the shape of the minimum bounding rectangle and the shape of the cluster object. In addition, the geometric information may also include but is not limited to the length of the rectangle .
[0071] S612. Determine whether the geometric information of the minimum bounding rectangle of the cluster object satisfies the following conditions:
[0072] In the formula, represents the standard width of the solid line of the target highway, Indicates the preset aspect ratio threshold. Indicates the preset area ratio threshold, Indicates the preset allowed difference threshold.
[0073] In the step S612, the solid line standard width may be obtained in advance based on highway road specifications. It is a constraint on the aspect ratio of the minimum circumscribed rectangle of the candidate marking area. For the aspect ratio of solid markings, a larger threshold should be set, for example, 8M; It indicates the restriction on the rectangularity of clusters; It reflects the difference in width between the clustering objects and the design size. and are restriction coefficients, which are related to the density of clustered point clouds and the integrity of point clouds, and can generally be set to 0.6, 0.2.
[0074] S613. If it is determined that the geometric information of the minimum circumscribed rectangle of the certain cluster object meets the condition, then determine that the line marking type of the certain cluster object is a solid line marking type; otherwise, determine that the line marking type of the certain cluster object is not a solid line marking type.
[0075] In step S6, the non-solid marking type may include but is not limited to short thick dashed line type marking, long thin dashed line type marking, straight arrow type marking, left arrow type marking, right arrow type marking, straight-left turn arrow type marking, straight-right turn arrow type marking, left turn U-turn type marking and / or right turn U-turn type marking, etc. Specifically, for each clustering object in the plurality of clustering objects whose marking type is not a solid line type marking, an edge template matching algorithm is used to further identify the corresponding non-solid marking type, including but not limited to the following steps S621 to S625.
[0076] S621. For any cluster object whose marking type is not a solid line among the plurality of cluster objects, obtain a corresponding rectangular sub-image from the road surface strength binary image according to the corresponding minimum circumscribed rectangle.
[0077] S622. Obtain template instance images of all non-solid line markings, wherein the non-solid line markings refer to highway line markings of a non-solid line marking type, the non-solid line marking type refers to line marking types other than solid line markings, the line marking types of all non-solid line markings are different from each other, and the template instance image is a binary image with the template line marking instance pixel points as foreground pixel points.
[0078] In step S622, all the non-solid markings include but are not limited to short thick dashed line markings, long thin dashed line markings, straight arrow type markings, left arrow type markings, right arrow type markings, straight-left turn arrow type markings, straight-right turn arrow type markings, left turn U-turn type markings and / or right turn U-turn type markings, etc., and their template instance images can be designed in advance based on highway road specifications, such as Figure 5 shown.
[0079] S623. For each non-solid marking line among all the non-solid marking lines, use a similarity measurement method to compare the corresponding template instance image with all foreground edge pixels of the rectangular sub-image to obtain a corresponding similarity measurement index value.
[0080] In step S623, the similarity metric is used to calculate the sum of the dot products of all normalized gradient vectors of the template instance image, and search the image at all points in the model data set (i.e., search the rectangular sub-image), and search the score of each edge point in the image. The calculation is as follows:
[0081] In the formula, and Respectively represent the gradient values of the template instance image in the x direction and the y direction, and Respectively represent the gradient values of the search image in the x direction and y direction of the corresponding point, Represents the total number of edge points, so the similarity metric value can be based on the above scores of all points In addition, if there is a perfect match between the template instance image and the search image, the similarity metric value will be 1, specifically corresponding to the part of the object visible in the search image, and if there is no object in the search image, the similarity metric value will be 0.
[0082] S624. Determine a non-solid marked line having a maximum similarity measurement index value from all the non-solid marked lines.
[0083] S625. Determine whether the maximum similarity measurement index value reaches a preset index threshold; if so, use the non-solid marking line type of the certain non-solid marking line as the marking line type of any clustering object.
[0084] In step S625, the index threshold can be determined based on multiple test results. If it is determined that the maximum similarity metric index value is less than the index threshold, then any clustering object can be determined to be a non-marked line. Based on the aforementioned steps S621 to S625, the influence of missing marked lines and intensity noise can be overcome to a certain extent, making the subsequent extraction results more robust to the original data noise.
[0085] S7. Summarize all cluster objects of determined road marking types to obtain road marking extraction results for the target highway.
[0086] In step S7, the line marking extraction result specifically includes but is not limited to the line marking type, rectangular sub-image, template instance image and / or geographic location corresponding to the cluster object of the determined line marking type, which can provide important support for the digital operation, maintenance and intelligent management of highways.
[0087] In order to verify the effectiveness of the highway marking extraction method described in the above steps S1 to S7, this embodiment also collects point cloud data of the two end highways of Duwen Expressway and Ya'an-Xichang Expressway in Sichuan Province (their lengths are 3.964 kilometers and 12.854 kilometers respectively, wherein the former involves the urban suburban scene with an overpass, and the latter involves the scene with high mountains and canyon areas) to evaluate the above method; the mobile measurement and acquisition system used for the collection of the above point cloud data integrates laser scanners, panoramic cameras, IMU, GNSS, odometers, and computing control equipment, wherein the specific parameters of the laser scanner are shown in Table 2 below: Table 2. Vehicle-mounted laser scanner data acquisition parameters
[0088] Based on the aforementioned point cloud data, after implementing the above-mentioned highway marking extraction method using C++ program, the following can be obtained: Figure 6 and Figure 7 The line extraction results and local details of two sections of highway are shown in FIG. In order to quantitatively evaluate the recognition results, this embodiment also uses the following accuracy , Summoning Rate and F1 score As evaluation indicators:
[0089]
[0090]
[0091] In the formula, Indicates the number of correctly identified markings, Indicates the number of misidentified line markings, Indicates the number of unrecognized line markings. Solid line markings are counted according to the recognized length (M or meters), while non-solid line markings are counted according to the number of categories. The evaluation index data of the line marking extraction results of the two sections of highways obtained based on the above evaluation indicators are shown in Tables 3 and 4 below: Table 3. Road marking recognition accuracy of Duwen Expressway section (GT represents the true value of road marking recognition)
[0092] Table 4. Road marking recognition accuracy of Yaxi Expressway (GT represents the true value of road marking recognition)
[0093] From the evaluation results shown in Tables 3 and 4 above, it can be seen that the average call rate and precision of the solid and non-solid line markings on the Duwen Expressway section are 96.2% and 93.6% respectively; similarly, the average call rate and precision of the solid and non-solid line markings on the Ya'an-Xichang Expressway section are 94.7% and 94.3% respectively; the precision, recall rate and F1 score of the recognition of various types of markings on the two expressway sections are all above 91% with little difference, indicating that the proposed method has high reliability and stability.
[0094] In step S7, in order to quantitatively describe the degradation of the markings, this embodiment also constructs a marking profile integrity degradation index and / or a marking radiation consistency degradation index to perform degradation analysis on the identified markings, so as to characterize the health of the markings from two dimensions: the marking geometry and / or the radiation information. Specifically, all cluster objects of the determined marking type are summarized to obtain the marking extraction result of the target highway, including but not limited to the following steps S711 to S715.
[0095] S711. For any cluster object that has been determined to be a non-solid marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle.
[0096] S712. Obtain a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels.
[0097] S713. Compare all foreground edge pixels of the template instance image and the rectangular binary sub-image using a similarity measurement method to obtain a marking line contour integrity degradation index value.
[0098] In step S713, the marking line profile integrity degradation index value is the similarity measurement index value obtained in step S623, so the specific process can refer to the aforementioned step S623, which will not be repeated here. In addition, the marking line profile integrity degradation index value has a value range of [0,1]. The lower the value, the more serious the wear or loss of the marking line edge is, and the more maintenance is needed.
[0099] S714. If the line marking profile integrity degradation index value is greater than or equal to a preset first degradation index threshold, determine that the first line marking maintenance strategy for any one of the cluster objects is no maintenance; otherwise, determine that the first line marking maintenance strategy for any one of the cluster objects is maintenance required.
[0100] In the step S714, the first degradation index threshold may be specifically set based on multiple test results under various conditions, for example, set to 0.618.
[0101] S715. Take the certain non-real line marking type, the rectangular binary sub-image, the template instance image, the line marking contour integrity degradation index value, the first line marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects as the line marking extraction result for the target highway and for any one of the cluster objects.
[0102] In the step S715, for example, the extraction result of the marking line includes the type of non-real marking line, the rectangular binary sub-image, the template instance image, the marking line contour integrity degradation index value (represented by SEM in the figure), the first marking line maintenance strategy (a check mark in the figure indicates no maintenance, and a cross indicates maintenance is required) and the geographical location. Figure 8 As shown, it is convenient for highway maintenance departments to efficiently locate worn or partially missing markings and carry out maintenance.
[0103] In the step S7, specifically, all cluster objects of determined line marking types are summarized to obtain line marking extraction results for the target highway, including but not limited to the following steps S721 to S725.
[0104] S721. For any cluster object that has been determined to be a non-real marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle.
[0105] S722. Obtain a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels.
[0106] S723. According to all pixel values of the template instance image and the rectangular binary sub-image, the marking line radiation consistency degradation index value is calculated according to the following formula: :
[0107] In the formula, represents a pixel point in the template instance image, Indicates the radiation range, Indicates that in the rectangular binary sub-image and with the pixel point The corresponding radiation pixel point, Represents pixel The pixel value of Represents the radiation pixel The pixel value of .
[0108] In step S723, the calculation principle of the marking radiation consistency degradation index is known from existing literature: as an important indicator of road safety, the rearward radiation information of the marking material is highly correlated with the point cloud intensity value, so the radiation information of the non-solid line marking can be calculated by the grayscale similarity with the corresponding template, and then the above calculation formula is obtained. In addition, the value range of the marking radiation consistency degradation index value is [0,1]. The lower the value, the more serious the internal wear of the marking, or the current marking lacks a highlight indication function, which will cause safety hazards to drivers driving at night.
[0109] S724. If the marking radiation consistency degradation index value is greater than or equal to a preset second degradation index threshold, determine that the second marking maintenance strategy for any one of the cluster objects is no maintenance; otherwise, determine that the second marking maintenance strategy for any one of the cluster objects is maintenance required.
[0110] In the step S724, the second degradation index threshold may be specifically set based on multiple test results under various conditions, for example, set to 0.618.
[0111] S725. Take the certain non-real line marking type, the rectangular binary sub-image, the template instance image, the line marking radiation consistency degradation index value, the second line marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects as the line marking extraction result for the target highway and for any one of the cluster objects.
[0112] In the step S725, for example, the marking extraction result includes the non-real marking type, the rectangular binary sub-image, the template instance image, the marking radiation consistency degradation index value (represented by SAM in the figure), the second marking maintenance strategy (a check in the figure indicates no maintenance, and a cross indicates maintenance is required) and the geographical location. Fig. 9 As shown, it is convenient for the highway maintenance department to efficiently locate worn or partially missing road markings and implement maintenance. In addition, if the second road marking maintenance strategy conflicts with the first road marking maintenance strategy, the final road marking maintenance strategy can be determined by XOR logic; for example, if the second road marking maintenance strategy is no maintenance and the first road marking maintenance strategy is maintenance required, or if the second road marking maintenance strategy is maintenance required and the first road marking maintenance strategy is no maintenance, then the final road marking maintenance strategy is determined to be maintenance required.
[0113] In step S7, based on the degradation analysis results of the identified markings, conventional statistics can be obtained to obtain the marking degradation statistics of the entire target highway, so as to provide clear guidance for the highway maintenance department to carry out precise and efficient marking repairs or to provide a relative reference for reflecting the changes in marking degradation at different stages.
[0114] Therefore, based on the highway marking extraction method described in the aforementioned steps S1 to S7, a new highway marking extraction scheme driven by point cloud data is provided, that is, after obtaining the point cloud data collected by the mobile laser scanning device on the target highway, the road surface point cloud segmentation network based on deep learning is first used to extract the road surface point cloud data, and then the point cloud is rasterized and binarized in turn to obtain a road surface intensity binary image, and then the foreground connected area analysis processing is performed on the binary image to obtain multiple cluster objects, and for each cluster object, according to the geometric information of the corresponding minimum circumscribed rectangle, Determine whether the marking type of the corresponding object is a solid line marking. If not, use the edge template matching algorithm to further identify the corresponding non-solid marking type. Finally, summarize all cluster objects with the determined marking type to obtain the marking extraction result of the target highway. This can combine the advantages of existing methods based on two-dimensional images and three-dimensional point clouds, avoid information loss, accurately extract complex types of markings, and easily challenge the variety of scene elements, scale differences, and sample imbalance when facing large-scale MLS point cloud scenes. The extraction results have high reliability and stability, which is convenient for practical application and promotion. In addition, the identified markings can also be degraded, which is convenient for highway maintenance departments to efficiently locate worn or partially missing markings and implement maintenance.
[0115] like Fig.10 As shown, the second aspect of this embodiment provides a virtual device for implementing the highway marking extraction method described in the first aspect, comprising a point cloud data acquisition unit, a road surface point cloud extraction unit, a point cloud rasterization processing unit, an image binarization processing unit, a connected area analysis processing unit, a marking type identification unit and a marking extraction summary unit which are sequentially connected in communication; The point cloud data acquisition unit is used to acquire point cloud data collected by a mobile laser scanning device on a target highway; The road surface point cloud extraction unit is used to use a road surface point cloud segmentation network based on deep learning to perform road surface point cloud extraction processing on the point cloud data to obtain road surface point cloud data; The point cloud rasterization processing unit is used to perform point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image; The image binarization processing unit is used to perform binarization processing on the road surface strength characteristic image to obtain a road surface strength binarization image; The connected region analysis processing unit is used to perform foreground connected region analysis processing on the road strength binary image to obtain multiple cluster objects; The marking type identification unit is used to determine, for each cluster object in the plurality of cluster objects, whether the marking type of the corresponding cluster object is a solid line marking according to the geometric information of the corresponding minimum circumscribed rectangle, and if not, further identify the corresponding non-solid marking type by using an edge template matching algorithm, wherein the non-solid marking type refers to other marking types except the solid line marking type; The line marking extraction and summarization unit is used to summarize all cluster objects of determined line marking types to obtain a line marking extraction result for the target highway.
[0116] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the highway marking extraction method described in the first aspect, and will not be repeated here.
[0117] like Fig.11 As shown, the third aspect of this embodiment provides a computer device for executing the highway marking extraction method as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the highway marking extraction method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.
[0118] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be found in the highway marking extraction method described in the first aspect, and will not be repeated here.
[0119] In a fourth aspect of this embodiment, there is provided a computer-readable storage product storing instructions including the method for extracting highway markings as described in the first aspect, that is, the computer-readable storage product stores instructions, and when the instructions are run on a computer, the method for extracting highway markings as described in the first aspect is executed. The computer-readable storage product refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0120] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the highway marking extraction method described in the first aspect, and will not be repeated here.
[0121] A fifth aspect of this embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the highway marking extraction method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
[0122] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for extracting highway markings, characterized in that: include: Acquire point cloud data collected by mobile laser scanning equipment on the target highway; Using a road point cloud segmentation network based on deep learning to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data; Performing point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image; Binarizing the road surface strength characteristic image to obtain a road surface strength binary image; Performing foreground connected area analysis on the road strength binary image to obtain multiple clustering objects; For each cluster object in the plurality of cluster objects, judging whether the marking type of the corresponding cluster object is a solid marking type according to the geometric information of the corresponding minimum circumscribed rectangle, and if not, further identifying the corresponding non-solid marking type by using an edge template matching algorithm, wherein the non-solid marking type refers to other marking types except the solid marking type; All cluster objects of determined road marking types are summarized to obtain a road marking extraction result for the target highway.
2. The highway marking extraction method according to claim 1, characterized in that: A road point cloud segmentation network based on deep learning is used to perform road point cloud extraction processing on the point cloud data to obtain road point cloud data, including: Performing noise filtering preprocessing on the point cloud data to obtain denoised point cloud data; A road point cloud segmentation network based on deep learning is used to perform road point cloud extraction processing on the denoised point cloud data to obtain road point cloud data, wherein the road point cloud segmentation network is a network with the highest road point cloud segmentation accuracy among the PointNet network, PointNet++ network and RandLA-Net network pre-trained based on a road point sample annotation set.
3. The highway marking extraction method according to claim 1, characterized in that: The road surface point cloud data is subjected to point cloud rasterization processing to obtain a road surface strength characteristic image, including: Projecting each road surface point in the road surface point cloud data onto a rasterized two-dimensional road surface; For each grid on the two-dimensional road surface, if there is no projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to zero, and if there is at least one projected road surface point in the corresponding grid, the pixel value of the corresponding pixel point is set to the average laser intensity of the at least one road surface point; According to the pixel values of all pixels, a road surface intensity characteristic image is obtained.
4. The highway marking extraction method according to claim 1, characterized in that: Binarizing the road surface strength characteristic image to obtain a road surface strength binary image includes: Performing block processing on the road surface strength characteristic image to obtain a plurality of sub-images; For each sub-image in the plurality of sub-images, using a maximum cross entropy threshold segmentation algorithm to determine a corresponding optimal pixel threshold; For each of the sub-images, taking the pixel points in the corresponding image whose pixel values are greater than the corresponding pixel optimal threshold as foreground pixel points, and taking the pixel points in the corresponding image whose pixel values are less than or equal to the corresponding pixel optimal threshold as background pixel points, to obtain a binarized sub-image that summarizes all foreground pixel points and all background pixel points and corresponds to the image; All binary sub-images are stitched together to obtain a road surface strength binary image.
5. The highway marking extraction method according to claim 1, characterized in that: For each cluster object in the plurality of cluster objects, judging whether the marking type of the corresponding cluster object is a solid line marking according to geometric information of the corresponding minimum circumscribed rectangle includes: For a cluster object among the multiple cluster objects, a corresponding minimum bounding rectangle is generated, and geometric information of the minimum bounding rectangle is calculated, wherein the geometric information includes a rectangle width , Rectangle Aspect Ratio Ratio of the area of the object rectangle to the , the object rectangle area ratio It refers to the area ratio of the cluster object to the minimum enclosing rectangle; Determine whether the geometric information of the minimum bounding rectangle of the cluster object meets the following conditions: In the formula, represents the standard width of the solid line of the target highway, Indicates the preset aspect ratio threshold. Indicates the preset area ratio threshold, Indicates the preset allowable difference threshold; If it is determined that the geometric information of the minimum circumscribed rectangle of the certain cluster object meets the condition, then the line type of the certain cluster object is determined to be a solid line type line, otherwise it is determined that the line type of the certain cluster object is not a solid line type line; And / or, for each cluster object whose marking type is not a solid line marking type in the plurality of cluster objects, further identifying the corresponding non-solid marking type using an edge template matching algorithm, including: For any cluster object whose marking type is not a solid line among the plurality of cluster objects, a corresponding rectangular sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire template instance images of all non-solid marking lines, wherein the non-solid marking lines refer to highway marking lines of non-solid marking type, the non-solid marking line type refers to marking line types other than solid line marking line, the marking line types of all non-solid marking lines are different from each other, and the template instance image is a binary image with template marking line instance pixel points as foreground pixel points; For each non-solid marking line among all the non-solid marking lines, using a similarity measurement method to compare the corresponding template instance image with all foreground edge pixels of the rectangular sub-image to obtain a corresponding similarity measurement index value; Determine a non-solid marked line having a maximum similarity measurement index value from all the non-solid marked lines; It is determined whether the maximum similarity measurement index value reaches a preset index threshold value. If so, the non-solid marking line type of the certain non-solid marking line is used as the marking line type of any clustering object.
6. The highway marking extraction method according to claim 1, characterized in that: Summarize all cluster objects of the determined road marking type to obtain the road marking extraction result of the target highway, including: For any cluster object that has been determined to be a non-real marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels; Comparing all foreground edge pixels of the template instance image and the rectangular binary sub-image using a similarity measurement method to obtain a marking line contour integrity degradation index value; If the line marking profile integrity degradation index value is greater than or equal to a preset first degradation index threshold, determining that the first line marking maintenance strategy for any one of the cluster objects is no maintenance; otherwise, determining that the first line marking maintenance strategy for any one of the cluster objects is maintenance required; The non-real marking type, the rectangular binary sub-image, the template instance image, the marking contour integrity degradation index value, the first marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects are used as the marking extraction result for the target highway and for any one of the cluster objects; And / or, summarizing all cluster objects of determined road marking types to obtain road marking extraction results for the target highway, including: For any cluster object that has been determined to be a non-real marking line type, a corresponding rectangular binary sub-image is obtained from the road surface strength binary image according to the corresponding minimum circumscribed rectangle; Acquire a template instance image corresponding to the certain non-real marking line type, wherein the template instance image is a binary image with template marking line instance pixels as foreground pixels; According to all pixel values of the template instance image and the rectangular binary sub-image, the radiation consistency degradation index value of the marking line is calculated according to the following formula: : In the formula, represents a pixel point in the template instance image, Indicates the radiation range, Indicates that in the rectangular binary sub-image and with the pixel point The corresponding radiation pixel point, Represents pixel The pixel value of Represents the radiation pixel The pixel value of If the marking radiation consistency degradation index value is greater than or equal to a preset second degradation index threshold, the second marking maintenance strategy for any one of the cluster objects is determined to be no maintenance; otherwise, the second marking maintenance strategy for any one of the cluster objects is determined to require maintenance; The certain non-real line marking type, the rectangular binary sub-image, the template instance image, the line marking radiation consistency degradation index value, the second line marking maintenance strategy and / or the geographical location corresponding to any one of the cluster objects are used as the line marking extraction result for the target highway and for any one of the cluster objects.
7. A highway marking extraction device, characterized in that: It includes a point cloud data acquisition unit, a road surface point cloud extraction unit, a point cloud rasterization processing unit, an image binarization processing unit, a connected area analysis processing unit, a marking type identification unit and a marking extraction summary unit which are sequentially connected in communication; The point cloud data acquisition unit is used to acquire point cloud data collected by a mobile laser scanning device on a target highway; The road surface point cloud extraction unit is used to use a road surface point cloud segmentation network based on deep learning to perform road surface point cloud extraction processing on the point cloud data to obtain road surface point cloud data; The point cloud rasterization processing unit is used to perform point cloud rasterization processing on the road surface point cloud data to obtain a road surface strength characteristic image; The image binarization processing unit is used to perform binarization processing on the road surface strength characteristic image to obtain a road surface strength binarization image; The connected region analysis processing unit is used to perform foreground connected region analysis processing on the road strength binary image to obtain multiple cluster objects; The marking type identification unit is used to determine, for each cluster object in the plurality of cluster objects, whether the marking type of the corresponding cluster object is a solid line marking according to the geometric information of the corresponding minimum circumscribed rectangle, and if not, further identify the corresponding non-solid marking type by using an edge template matching algorithm, wherein the non-solid marking type refers to other marking types except the solid line marking type; The line marking extraction and summarization unit is used to summarize all cluster objects of determined line marking types to obtain a line marking extraction result for the target highway.
8. A computer device, characterized in that: The invention comprises a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the highway marking extraction method as described in any one of claims 1 to 6.
9. A computer readable storage product, characterized in that The computer-readable storage product stores instructions, and when the instructions are run on a computer, the highway marking extraction method as described in any one of claims 1 to 6 is executed.
10. A computer program product comprising a computer program or instructions, characterized in that The computer program or the instruction, when executed by a computer, implements the highway marking extraction method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device, medium and equipment for extracting road marking
CN115273033A
Road marking point cloud semi-automatic extraction and semantic recognition method
CN116246239A
Road marker line detection and identification method based on MLS point cloud
CN117876984A
Point cloud road element target extraction method and device, electronic equipment and storage medium
CN117911970A
Road marking recognition method and apparatus
WO2021062581A1
Cited By
Road marking information determination method, vehicle, equipment and product
CN118999600A
