Image processing method and system in highway technical condition assessment system
By using image processing methods in the highway detection system to automatically identify and mark highway disease areas, the problems of low disease identification efficiency and poor reliability in the existing technology are solved, and a more efficient and reliable highway technical condition assessment is achieved.
Patent Information
- Application Number
- CN202210280093.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-22
Smart Images

Figure CN114757887B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image processing method and system in a highway technical condition assessment system. Background Art
[0002] In daily maintenance, highways usually need to be assessed for their technical condition every year. In existing highway inspections, inspection vehicles usually collect image data of road conditions, and users visually demarcate the diseased area and mark the disease type in the diseased area. However, in actual operations, due to the limitations of image resolution and the ability of the naked eye to distinguish, manual identification of diseased areas is prone to omissions. At the same time, since there are many types of diseases corresponding to various road materials, and the same disease can also be graded as mild, moderate, and severe; in existing highway inspections, due to the huge amount of image data, it is also easy to cause human errors in the process of marking disease types, thereby affecting the reliability of relevant statistical data in the final inspection report. Summary of the invention
[0003] The present invention aims to disclose an image processing method and system in a highway technical condition assessment system to improve efficiency and reliability.
[0004] To achieve the above object, the present invention discloses an image processing method in a highway technical condition assessment system, comprising:
[0005] Step S1, calibrating the length and width of the highway corresponding to a single image captured by an image acquisition terminal on board the inspection vehicle;
[0006] Step S2, taking the length of the road as the minimum division unit of the measured road, collecting a continuous image set of the measured road mileage by lane in a time-sharing manner, and saving the road surface material and mileage information corresponding to each image in the image set;
[0007] Step S3, detecting the damage of the road section corresponding to each image in the image set; specifically comprising:
[0008] Step S31, equally divide each image into grid units of a set uniform pixel specification; and divide each image into at least four non-intersecting rectangular sub-regions, each sub-region including at least four grid units in a matrix;
[0009] Step S32: for any target image, randomly select a grid in each sub-region, and determine whether the variance of the grayscale sequence of the pixel points in the selected grid is less than or equal to a set first threshold. If yes, confirm the grid as the target grid;
[0010] Step S33, clustering the grayscale sequence of the target grid pixel points confirmed in each sub-region, selecting the class with the most objects in the same cluster, and setting the grid corresponding to the grayscale sequence of the pixel points with the smallest variance in the selected class as the reference background grid;
[0011] Step S34, subtracting each grid image in the target image from the image corresponding to the reference background grid, and then calculating whether the variance of the grayscale sequence of each pixel in the grid image after the subtraction is greater than a set second threshold value, and if so, confirming the corresponding grid as a potential defect grid;
[0012] Step S35, determining whether there are adjacent potential disease grids for each potential disease grid, and merging the adjacent potential disease grids into the same potential disease area, automatically marking the boundary information of each potential disease area and calculating the corresponding area;
[0013] Step S36: pre-screen the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image, so that the user can manually enter the disease type and save it.
[0014] To achieve the above-mentioned purpose, the present invention also discloses an image processing system in a highway technical condition assessment system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method when executing the computer program.
[0015] The present invention has the following beneficial effects:
[0016] In a large amount of statistical data, the area occupied by the diseased area in the collected image is usually much smaller than the normal area, and in the image set of continuous highway mileage, the image with disease is also a low-probability event compared to the normal image without disease. In this way, the reference background grid selected based on the above method of the present invention corresponds to the normal road condition background image without disease with a great probability. Moreover, each collected image determines the reference background grid based on its own lighting and other conditions, and there is no coupling relationship with the series of images collected before. On the one hand, it avoids the misjudgment caused by the noise caused by differences in lighting, etc., and on the other hand, it simplifies the complexity of system data processing. After that, the difference between each grid image in the target image and the image corresponding to the reference background grid is calculated, and then the variance of the grayscale sequence of each pixel in the grid image after the difference is calculated to be greater than the set second threshold. If so, the corresponding grid is confirmed as a potential disease grid. In this process, the setting of the second threshold can be reasonably obtained based on statistical experience values, and the second threshold corresponding to different road materials can be set separately. At the same time, since the defects often have characteristics such as cracks, potholes, looseness, subsidence, and rutting, the corresponding manifestation of this feature in the grid image is that the pixel information fluctuates significantly, and the image information is significantly different from the baseline background grid, which makes the logic of confirming the potential defect grid scientific and reasonable; at the same time, it also facilitates the automatic calculation of more detailed defect information such as subsequent crack bandwidth.
[0017] In addition, the disease list corresponding to each potential disease area is pre-screened according to the area of each potential disease area and the road material of the target image. In essence, the disease types that do not match the road material and the disease area are automatically hidden to reduce human misoperation. The relevant misoperation includes but is not limited to marking the grading information of ruts in roads with cement road materials, marking severe potholes directly related to the area as mild potholes, etc. Among them, by automatically marking the boundary information of each potential disease area and calculating the corresponding area, the defects that are easy to cause many omissions in manual identification of disease areas are effectively avoided.
[0018] Thereby, the image processing method and system in the highway technical condition assessment system of the present invention automatically mark the boundaries of each potential disease area and pre-screen the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image to which it belongs, thereby improving efficiency and reliability through the above two aspects.
[0019] The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1 It is a flow chart of an image processing method in a highway technical condition assessment system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0023] Example 1
[0024] This embodiment discloses an image processing method in a highway technical condition assessment system, which is mainly used for the detection of road surface diseases, and is particularly suitable for the detection of roads with fewer road surface markings (such as left turn, right turn, straight, lane dividing lines, etc.) or before the laying of road surface markings and speed bumps. Its main purpose mainly includes: collecting a continuous image set of the measured highway mileage by lane in a time-sharing manner; determining the corresponding reference background grid for each target image; subtracting each grid image in the target image from the image corresponding to the reference background grid, and then calculating whether the variance of the grayscale sequence of each pixel point in the grid image after the subtraction is greater than the set second threshold value, if so, confirming the corresponding grid as a potential disease grid; and merging adjacent potential disease grids into the same potential disease area, automatically marking the boundary information of each potential disease area and calculating the corresponding area; pre-screening the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image to which it belongs, so that the user can manually enter the disease type and save it.
[0025] In order to facilitate those skilled in the art to fully understand the main idea of this embodiment and the above-mentioned "reference background grid" and other related definitions, as shown in FIG. Figure 1 As shown, the more detailed steps of this embodiment specifically include:
[0026] Step S1, calibrating the length and width of the highway corresponding to a single image captured by an image acquisition terminal on board the detection vehicle.
[0027] In this step, the length of the road corresponding to a single image mainly refers to the mileage length corresponding to the single image. Usually, the width of the captured image should be slightly wider than the width of a lane. Preferably, the central symmetry axis of the width direction of the captured image is consistent or substantially consistent with the symmetry axis of the left and right directions of the detection vehicle body. Through calibration, the conditions are provided for the subsequent calculation of the actual corresponding road surface distance (such as crack distance, area, etc.) according to the relationship between points, lines and surfaces in the image.
[0028] Step S2: taking the length of the road as the minimum division unit of the measured road, collecting a continuous image set of the measured road mileage by lane in a time-sharing manner, and saving the road surface material and mileage information corresponding to each image in the image set.
[0029] In this step, for example, if the mileage length corresponding to a single image is 2 meters, then the number of images in the image set corresponding to a 100-kilometer expressway lane is 50,000.
[0030] The above two steps are prior art well known to those skilled in the art and will not be described in detail. Related common sense content includes but is not limited to: while saving the road material and mileage information, also saving the classification information such as the up or down direction of the measured road.
[0031] Step S3: Detect the damage of the road section corresponding to each image in the image set. Specifically, it includes:
[0032] Step S31, equally divide each image into grid units of a set uniform pixel specification; and divide each image into at least four non-intersecting rectangular sub-regions, each sub-region including at least four grid units in a matrix.
[0033] In this step, the pixel points covered by each grid unit are usually arranged in a matrix, such as 3*3, 4*4, or 5*5. Preferably, according to the statistical experience value and the highway technical condition assessment standard JTG5210-2018, the road surface size actually corresponding to the grid unit is set to 0.1m*0.1m. Thus, if a 2m*2m acquisition image is corresponding, the number of grids that can be divided is 400. The road surface size corresponding to the grid unit is calibrated in the above step S1.
[0034] In addition, in this step, the number of sub-regions should be consistent with the corresponding clustering algorithm in the subsequent step S33 to provide a reasonable object sample; the specific number can also be set according to statistical experience values.
[0035] Step S32: for any target image, randomly select a grid in each sub-area, and determine whether the variance of the grayscale sequence of the pixels in the selected grid is less than or equal to a set first threshold. If so, confirm the grid as the target grid.
[0036] In this step, the grayscale sequence creation method may arrange the grayscale values of the corresponding pixels in order from left to right in rows and from top to bottom in columns.
[0037] The first threshold can be reasonably obtained based on statistical experience, and the first thresholds corresponding to different road surface materials can be set separately. If it is greater than the first threshold, it means that the pixel information in the grid fluctuates significantly, and it is more likely to be a potential defective grid.
[0038] Step S33: cluster the grayscale sequence of the target grid pixel points confirmed in each sub-region, select the class with the most objects in the same cluster, and set the grid corresponding to the grayscale sequence of the pixel points with the smallest variance in the selected class as the reference background grid.
[0039] In this step, the relevant clustering methods include but are not limited to: K-MEANS, K-MEDOIDS, Clara or Clarans algorithms. Moreover, since the grid unit set in step S31 adopts a uniform pixel specification, the grayscale sequences of the pixels of the objects participating in the clustering are naturally aligned.
[0040] The so-called "reference background grid" is the grid corresponding to the normal road condition image used as a reference.
[0041] Step S34, subtract each grid image in the target image from the image corresponding to the reference background grid, and then calculate whether the variance of the grayscale sequence of each pixel in the grid image after subtraction is greater than a set second threshold. If so, the corresponding grid is confirmed as a potential defective grid.
[0042] In this step, the setting of the second threshold can be reasonably derived based on statistical empirical values, and the second thresholds corresponding to different road surface materials can be set separately; and the second threshold is usually greater than the above-mentioned first threshold.
[0043] Step S35: determine whether there are adjacent potential disease grids for each potential disease grid, merge the adjacent potential disease grids into the same potential disease area, automatically mark the boundary information of each potential disease area and calculate the corresponding area.
[0044] In this step, the nature is to default to treating the disease type corresponding to the potential disease area as unique, and then automatically hide the disease type that does not match the road material and the disease area to reduce human error. Among them, by automatically marking the boundary information of each potential disease area and calculating the corresponding area, it effectively avoids the defects of many omissions caused by manual identification of the disease area.
[0045] Step S36: pre-screen the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image, so that the user can manually enter the disease type and save it.
[0046] Preferably, the method of this embodiment further includes: before the user manually enters the disease type, the boundary of the corresponding potential disease area automatically marked is corrected. The relevant correction process mainly includes the addition and deletion of relevant grid units. Thereby, a complementary relationship can be formed with the above-mentioned step S35, further improving flexibility and user experience.
[0047] Preferably, the method of this embodiment further includes: after any of the potential damage areas has cracks corresponding to the manually entered damage type, the contour information of the cracks is extracted from the grid image after subtraction with the reference background grid and the width of the cracks is calculated, so as to accurately assess the grade of damages such as cracking, transverse cracks, longitudinal cracks, and block cracks. Usually, the width information can be determined based on a two-dimensional image. Furthermore, if the depth information needs to be determined, it is preferred that the image acquisition terminal synchronously acquires images with a binocular camera, and then performs parallax matching on the left and right views corresponding to the same road section, and calculates the depth information of the potential damage area based on the matched data combined with the physical parameters of the binocular camera. The depth information is usually used for depth calculation in pothole damage, height difference between crests and troughs in wave pockets, rutting depth, subsidence depth, gully depth, etc. In the process of calculating the specific depth, the actual horizontal spacing between the corresponding road surfaces of each pixel point is a known quantity, and the distance between each pixel point and the center point of the binocular camera can be calculated through the parallax data. Therefore, combined with the physical parameters of the binocular camera, the three-dimensional information of the real road surface corresponding to the potential disease area can be reconstructed and restored.
[0048] Example 2
[0049] Corresponding to the above method embodiment, this embodiment discloses an image processing system in a highway technical condition assessment system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps corresponding to the above method embodiment when executing the computer program.
[0050] In summary, the image processing method and system in the highway technical condition assessment system disclosed in the above embodiments of the present invention respectively have at least the following beneficial effects:
[0051] In a large amount of statistical data, the area occupied by the diseased area in the collected image is usually much smaller than the normal area, and in the image set of continuous highway mileage, the image with disease is also a low-probability event compared to the normal image without disease. In this way, the reference background grid selected based on the above method of the present invention corresponds to the normal road condition background image without disease with a great probability. Moreover, each collected image determines the reference background grid based on its own lighting and other conditions, and there is no coupling relationship with the series of images collected before. On the one hand, it avoids the misjudgment caused by the noise caused by differences in lighting, etc., and on the other hand, it simplifies the complexity of system data processing. After that, the difference between each grid image in the target image and the image corresponding to the reference background grid is calculated, and then the variance of the grayscale sequence of each pixel in the grid image after the difference is calculated to be greater than the set second threshold. If so, the corresponding grid is confirmed as a potential disease grid. In this process, the setting of the second threshold can be reasonably obtained based on statistical experience values, and the second threshold corresponding to different road materials can be set separately. At the same time, since the defects often have characteristics such as cracks, potholes, looseness, subsidence, and rutting, the corresponding manifestation of this feature in the grid image is that the pixel information fluctuates significantly, and the image information is significantly different from the baseline background grid, which makes the logic of confirming the potential defect grid scientific and reasonable; at the same time, it also facilitates the automatic calculation of more detailed defect information such as subsequent crack bandwidth.
[0052] In addition, the disease list corresponding to each potential disease area is pre-screened according to the area of each potential disease area and the road material of the target image. In essence, the disease types that do not match the road material and the disease area are automatically hidden to reduce human misoperation. The relevant misoperation includes but is not limited to marking the grading information of ruts in roads with cement road materials, marking severe potholes directly related to the area as mild potholes, etc. Among them, by automatically marking the boundary information of each potential disease area and calculating the corresponding area, the defects that are easy to cause many omissions in manual identification of disease areas are effectively avoided.
[0053] Thereby, the image processing method and system in the highway technical condition assessment system of the present invention automatically mark the boundaries of each potential disease area and pre-screen the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image to which it belongs, thereby improving efficiency and reliability through the above two aspects.
[0054] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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. An image processing method in a highway technical condition assessment system, It is characterized in that include: Step S1, calibrating the length and width of the highway corresponding to a single image captured by an image acquisition terminal on board the inspection vehicle; Step S2, taking the length of the road as the minimum division unit of the measured road, collecting a continuous image set of the measured road mileage by lane in a time-sharing manner, and saving the road surface material and mileage information corresponding to each image in the image set; Step S3, detecting the damage of the road section corresponding to each image in the image set; specifically comprising: Step S31, equally divide each image into grid units of a set uniform pixel specification; and divide each image into at least four non-intersecting rectangular sub-regions, each sub-region including at least four grid units in a matrix; Step S32: for any target image, randomly select a grid in each sub-region, and determine whether the variance of the grayscale sequence of the pixel points in the selected grid is less than or equal to a set first threshold. If yes, confirm the grid as the target grid; Step S33, clustering the grayscale sequence of the target grid pixel points confirmed in each sub-region, selecting the class with the most objects in the same cluster, and setting the grid corresponding to the grayscale sequence of the pixel points with the smallest variance in the selected class as the reference background grid; Step S34, subtracting each grid image in the target image from the image corresponding to the reference background grid, and then calculating whether the variance of the grayscale sequence of each pixel in the grid image after the subtraction is greater than a set second threshold value, and if so, confirming the corresponding grid as a potential defect grid; Step S35, determining whether there are adjacent potential disease grids for each potential disease grid, and merging the adjacent potential disease grids into the same potential disease area, automatically marking the boundary information of each potential disease area and calculating the corresponding area; Step S36: pre-screen the disease list corresponding to each potential disease area according to the area of each potential disease area and the road surface material of the target image, so that the user can manually enter the disease type and save it.
2. The method according to claim 1, It is characterized in that Also includes: Before the user manually enters the disease type, the boundaries of the corresponding automatically marked potential disease areas should be corrected.
3. The method according to claim 1 or 2, It is characterized in that Also includes: After any of the potential damage areas has cracks corresponding to the damage type manually entered, the contour information of the cracks is extracted from the grid image after subtraction from the reference background grid, and the width of the cracks is calculated.
4. The method according to claim 3, It is characterized in that The image acquisition terminal synchronously acquires images with a binocular camera, and the method further includes: Parallax matching is performed on the left and right views corresponding to the same road section, and the depth information of the potential damage area is calculated based on the matched data combined with the physical parameters of the binocular camera.
5. An image processing system in a highway technical condition assessment system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
