An automatic detection method for road potholes based on binocular camera and convolutional neural network

By combining binocular cameras and convolutional neural networks with RANSAC and genetic algorithms, the problem in the existing technology that it is difficult to quickly and accurately obtain depth information for pavement pothole detection is solved, and efficient and low-cost pavement pothole detection and measurement are achieved. , improving detection accuracy and market competitiveness.

CN113643232BActive Publication Date: 2024-09-24SHANGHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110743188.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-01
Publication Date
2024-09-24
Estimated Expiration
2041-07-01

AI Technical Summary

Technical Problem

Existing automatic detection methods for pavement potholes are difficult to quickly and accurately detect and obtain pavement depth information, and are costly or have limited practicality.

Method used

Using a detection method based on binocular cameras and convolutional neural networks, the left and right views of the road are obtained through binocular stereo vision, a pre-trained target recognition neural network is used to detect potholes, and RANSAC and genetic algorithms are combined for depth map and point cloud fitting. Calculate the depth and area of ​​the trench.

Benefits of technology

It achieves fast and accurate detection and measurement of road potholes, obtains high-resolution road depth information, reduces the amount of calculation and cost, and improves market competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113643232B
    Figure CN113643232B
Patent Text Reader

Abstract

The present invention discloses a road pothole detection method based on neural network and binocular stereo vision. The method comprises: using a binocular camera installed in front of a vehicle to obtain left and right views of a road scene; using a target detection neural network to detect the left view; when a pothole is detected, stereo matching the left and right views to obtain a depth map; cutting out the depth map of the pothole and the road surface around the pothole according to the pothole position information predicted by the neural network; fitting the road plane around the pothole using a method combining RANSAC and a genetic algorithm; calculating the distance from the pothole point cloud to the fitting plane, and averaging the distance to obtain the pothole depth; projecting the pothole point cloud onto the fitting road plane, obtaining the minimum circumscribed rectangle of the projection point, and finally obtaining the area of ​​the minimum circumscribed rectangle to obtain the area of ​​the pothole. The present invention can effectively detect and measure the depth and area of ​​the pothole, and can provide reference information for road maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic detection method for road potholes, in particular to a road pothole detection method based on neural network and binocular stereo vision. Background Art

[0002] my country's car ownership and road mileage are growing rapidly year by year. Road maintenance has become a huge project, especially the defects of potholes on the road, which will have a significant impact on driving comfort and safety. At the same time, autonomous driving also needs to detect the road environment. The detection of potholes on the road can provide better route planning information for autonomous driving.

[0003] At present, the automatic detection methods for potholes on the road are mainly based on image processing and three-dimensional laser. The former uses the image obtained by the monocular camera to detect potholes through traditional computer vision edge detection and other methods. This method is easily interfered by various shadows, stains, debris and water stains on the road surface, and cannot obtain depth information. The latter uses the strong anti-interference ability of lasers, has strong robustness, and can obtain the depth information of the road surface. However, the price is relatively high, the installation requires high precision, and it also needs to work with encoders, which limits its practicality.

[0004] Therefore, it is necessary to provide a road pothole detection and measurement method that can quickly and accurately detect road potholes and obtain road depth information. Summary of the invention

[0005] In order to solve the problems of the prior art, the purpose of the present invention is to overcome the shortcomings of the existing technology and provide an automatic detection method for road potholes based on a binocular camera and a convolutional neural network, which can not only quickly and accurately detect road potholes, but also obtain road depth information.

[0006] In order to achieve the above invention purpose, the present invention adopts the following technical solutions:

[0007] A method for automatically detecting potholes in a road surface based on a binocular camera and a convolutional neural network comprises the following steps:

[0008] (1) Use a binocular stereo camera installed on the vehicle to obtain the left and right views of the road ahead and send them to the computing unit;

[0009] (2) preprocessing the obtained left view or right view;

[0010] (3) importing the preprocessed image into a pre-trained target recognition neural network for detection;

[0011] (4) If no pits are detected, repeat step (1). If pits are detected, record the number of pits and their coordinates in the left view.

[0012] (5) Obtaining a depth map relative to the left camera or the right camera by obtaining the left and right views according to step (1);

[0013] (6) According to the pothole coordinates obtained in step (4), the depth map is cut to obtain a depth map of the pothole and the road surface around the pothole;

[0014] (7) Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further project it to the camera coordinate system;

[0015] (8) performing plane fitting on the point cloud around the pit projected onto the camera coordinate system, and distinguishing the point cloud belonging to the pit based on the fitting plane;

[0016] (9) Calculate the distance from the pit point cloud to the fitting plane, and sum and average to obtain the depth of the pit;

[0017] (10) Project the pit point cloud onto the fitting plane, and find the minimum circumscribed rectangle of the projection points on the fitting plane.

[0018] The area of ​​the small circumscribed rectangle is taken as the area of ​​the pit;

[0019] (11) Save the coordinates, depth and area information in the left and right views, depth map, GPS data, and pit image coordinate system for subsequent research and repair.

[0020] Preferably, the steps of obtaining the road pothole depth in steps (2) to (9) include:

[0021] a. Preprocessing the left view of the road in the left and right views obtained by the binocular camera, and then using the trained target detection neural network to predict the preprocessed left view;

[0022] b. If the prediction result shows that there are one or more potholes in the road ahead, the coordinates of the potholes in the original left view are calculated according to the scaling ratio during preprocessing and the predicted pothole pixel coordinates, where the pothole coordinates are the coordinates of the upper left corner and the lower right corner of the rectangular box that just surrounds the pothole in the image;

[0023] c. Perform stereo matching on the obtained left and right views to obtain a road depth map;

[0024] d. Expand the periphery of the pit by a certain proportion according to the calculated pit coordinate information so that the rectangular frame includes the road surface around the pit, and the road surface around the pit can be considered to be a plane;

[0025] e. cutting out the road surface depth map of the pothole and the road surface depth map around the pothole according to the coordinate information of the enlarged rectangular frame;

[0026] f. Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further convert it to the camera coordinate system;

[0027] g. Perform plane fitting on the road surface around the pothole in the camera coordinate system, and distinguish the point cloud belonging to the pothole in the camera coordinate system based on the fitted plane;

[0028] h. Calculate the distance from the pit point cloud to the fitting plane, and average all the distance data as the depth of the pit.

[0029] Preferably, in step (2), preprocessing the obtained left view includes filtering, denoising and resizing to an input size required by the neural network model.

[0030] Preferably, in step (3), the characteristics of the target recognition neural network are similar to DenseNet, a large number of densely connected modules are used in the backbone to extract features, and YOLOv3-tiny is used to predict the input at two scales, three anchor boxes are defined at each scale, and the anchor boxes are generated by K-means.

[0031] Preferably, in step (4), the pit coordinates predicted by the neural network are expressed as (u1, v1, u2, v2), wherein (u1, v1) represents the position of the predicted upper left corner of the rectangular box in the image coordinate system of the left view, and (u2, v2) represents the position of the predicted lower right corner of the rectangular box in the image coordinate system of the left view.

[0032] Preferably, the equation for converting the cropped depth map from the pixel coordinate system (u, v) to the image coordinate system (x, y) is:

[0033]

[0034] In formula (1), u0 and v0 represent the horizontal and vertical coordinates of the origin of the image coordinate system in the pixel coordinate system, and d x , d y Represents the width and height of each pixel in the pixel coordinate system. The cropped depth map is converted from the image coordinate system (x, y) to the camera coordinate system (x c ,y c , z c ) is:

[0035]

[0036] In formula (2), z c Indicates the value obtained when the coordinates in the image coordinate system are (x, y), that is, the distance from the road surface to the imaging surface of the left camera, and f represents the focal length of the left camera.c ,y c , z c ) is expressed as:

[0037]

[0038] In formula (3), f x , f y It is the equivalent focal length on the x-axis and y-axis. Like u0 and v0, it is an internal parameter of the camera and its specific value can be obtained during calibration.

[0039] Preferably, the point cloud plane fitting around the pit in the camera coordinate system adopts a method combining RANSAC and genetic algorithm. Specifically: RANSAC first iterates a certain number of times, calculates and records the number of inliers and the values ​​of each parameter in each iteration, and then sorts them from large to small according to the number of inliers, and counts the value range of each parameter in the top 20%, which is used as the coded value range of each parameter of the genetic algorithm, and finally performs a certain number of population iterations to obtain the optimal value of the plane parameter.

[0040] Preferably, the plane fitting in step (9) includes:

[0041] (9-1) The object of plane fitting is the point cloud data of the road surface around the pothole in the camera coordinate system, excluding the point cloud of the pothole;

[0042] (9-2) Use the RANSAC algorithm to iterate a certain number of times for plane fitting, record the plane coefficients and the number of interior points obtained by each random sampling, sort them from high to low according to the number of interior points, select the results with the highest sorting from the sorted plane parameter results, and make statistics on the variation range of each parameter in the selected results;

[0043] (9-3) Genetic algorithm is used to optimize the fitting plane, the parameters are encoded according to the statistical variation range of each parameter, and the final plane fitting result is obtained through iteration.

[0044] Preferably, the step of obtaining the road pothole area in step (10) includes:

[0045] (10-1) distinguishing the point cloud data belonging to the pit from the camera coordinate system according to the fitting plane;

[0046] (10-2) Projecting the point cloud of the pit onto the fitted plane;

[0047] (10-3) Obtain the minimum circumscribed rectangle of the projection point on the fitting plane;

[0048] (10-4) The length and width of the rectangle are calculated based on the coordinate information of the minimum circumscribed rectangle, and thus the area of ​​the minimum circumscribed rectangle is calculated. The area of ​​the minimum circumscribed rectangle is the area of ​​the pit.

[0049] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:

[0050] 1. The method of the present invention is a complete binocular-based road pothole detection and measurement solution; using a binocular camera, it is possible to obtain road depth information with higher resolution than that of a laser radar and a ToF camera; the convolutional neural network uses a large number of densely connected modules, making the model deeper, repeatedly utilizing shallow features of the neural network, and greatly reducing the parameters and memory occupied by the model; detecting potholes through a neural network is more robust and has a higher detection accuracy, and binocular stereo matching is performed only when the existence of potholes is detected, which greatly reduces the calculation; the target detection neural network directly outputs the location information of the potholes, and when performing coordinate conversion and plane fitting, only a certain range of road surface around the potholes is operated, which greatly reduces the amount of calculation and reduces the interference of the pothole point cloud on the plane fitting; when performing plane fitting on the converted point cloud, a method combining RANSAC and genetic algorithm is used, which can better fit the road plane;

[0051] 2. The present invention can effectively detect and measure the depth and area of ​​potholes, and can provide reference information for road maintenance;

[0052] 3. The present invention can quickly and accurately detect potholes on the road surface;

[0053] 4. The present invention has low cost, high cost performance and great market competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A flow chart of a road pothole detection method based on neural network and binocular stereo vision provided by the present invention.

[0055] Figure 2 This is a relationship diagram between the pixel coordinate system and the image coordinate system provided by the present invention.

[0056] Figure 3 This is a relationship diagram between the image coordinate system and the camera coordinate system provided by the present invention. DETAILED DESCRIPTION

[0057] The above scheme is further described below in conjunction with specific implementation examples. The preferred embodiments of the present invention are described in detail as follows:

[0058] Embodiment 1:

[0059] In this embodiment, see Figure 1, a method for automatically detecting potholes in a road surface based on a binocular camera and a convolutional neural network, comprising the following steps:

[0060] (1) Use a binocular stereo camera installed on the vehicle to obtain the left and right views of the road ahead and send them to the computing unit;

[0061] (2) preprocessing the obtained left view or right view;

[0062] (3) importing the preprocessed image into a pre-trained target recognition neural network for detection;

[0063] (4) If no pits are detected, repeat step (1). If pits are detected, record the number of pits and their coordinates in the left view.

[0064] (5) Obtaining a depth map relative to the left camera or the right camera by obtaining the left and right views according to step (1);

[0065] (6) According to the pothole coordinates obtained in step (4), the depth map is cut to obtain a depth map of the pothole and the road surface around the pothole;

[0066] (7) Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further project it to the camera coordinate system;

[0067] (8) performing plane fitting on the point cloud around the pit projected onto the camera coordinate system, and distinguishing the point cloud belonging to the pit based on the fitting plane;

[0068] (9) Calculate the distance from the pit point cloud to the fitting plane, and sum and average to obtain the depth of the pit;

[0069] (10) Project the pit point cloud onto the fitting plane, and find the minimum circumscribed rectangle of the projection points on the fitting plane.

[0070] The area of ​​the small circumscribed rectangle is taken as the area of ​​the pit;

[0071] (11) Save the coordinates, depth and area information in the left and right views, depth map, GPS data, and pit image coordinate system for subsequent research and repair.

[0072] The automatic road pothole detection method based on a binocular camera and a convolutional neural network in this embodiment can not only detect road potholes quickly and accurately, but also obtain road depth information.

[0073] Embodiment 2:

[0074] This embodiment is basically the same as the first embodiment, except that:

[0075] In this embodiment, the steps of obtaining the road pothole depth from step (2) to step (9) include:

[0076] a. Preprocessing the left view of the road in the left and right views obtained by the binocular camera, and then using the trained target detection neural network to predict the preprocessed left view;

[0077] b. If the prediction result shows that there are one or more potholes in the road ahead, the coordinates of the potholes in the original left view are calculated according to the scaling ratio during preprocessing and the predicted pothole pixel coordinates, where the pothole coordinates are the coordinates of the upper left corner and the lower right corner of the rectangular box that just surrounds the pothole in the image;

[0078] c. Perform stereo matching on the obtained left and right views to obtain a road depth map;

[0079] d. Expand the periphery of the pit by a certain proportion according to the calculated pit coordinate information so that the rectangular frame includes the road surface around the pit, and the road surface around the pit can be considered to be a plane;

[0080] e. cutting out the road surface depth map of the pothole and the road surface depth map around the pothole according to the coordinate information of the enlarged rectangular frame;

[0081] f. Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further convert it to the camera coordinate system;

[0082] g. Perform plane fitting on the road surface around the pothole in the camera coordinate system, and distinguish the point cloud belonging to the pothole in the camera coordinate system based on the fitted plane;

[0083] h. Calculate the distance from the pit point cloud to the fitting plane, and average all the distance data as the depth of the pit.

[0084] In this embodiment, in step (2), the obtained left view is preprocessed including filtering and denoising and changing the size to the input size required by the neural network model.

[0085] In this embodiment, the plane fitting in step (9) includes:

[0086] (9-1) The object of plane fitting is the point cloud data of the road surface around the pothole in the camera coordinate system, excluding the point cloud of the pothole;

[0087] (9-2) Use the RANSAC algorithm to iterate a certain number of times for plane fitting, record the plane coefficients and the number of interior points obtained by each random sampling, sort them from high to low according to the number of interior points, select the results with the highest sorting from the sorted plane parameter results, and make statistics on the variation range of each parameter in the selected results;

[0088] (9-3) Genetic algorithm is used to optimize the fitting plane, the parameters are encoded according to the statistical variation range of each parameter, and the final plane fitting result is obtained through iteration.

[0089] In this embodiment, the step of obtaining the road pothole area in step (10) includes:

[0090] (10-1) distinguishing the point cloud data belonging to the pit from the camera coordinate system according to the fitting plane;

[0091] (10-2) Projecting the point cloud of the pit onto the fitted plane;

[0092] (10-3) Obtain the minimum circumscribed rectangle of the projection point on the fitting plane;

[0093] (10-4) The length and width of the rectangle are calculated based on the coordinate information of the minimum circumscribed rectangle, and thus the area of ​​the minimum circumscribed rectangle is calculated. The area of ​​the minimum circumscribed rectangle is the area of ​​the pit.

[0094] The method of this embodiment is a complete binocular-based road pothole detection and measurement solution; using a binocular camera, it is possible to obtain road depth information with higher resolution than lidar and ToF cameras; the convolutional neural network uses a large number of densely connected modules, which makes the model deeper, reuses shallow features of the neural network, and greatly reduces the parameters and memory occupied by the model; the detection of potholes through a neural network is more robust and has a higher detection accuracy. At the same time, binocular stereo matching is only performed when the existence of potholes is detected, which greatly reduces the calculation; the target detection neural network directly outputs the position information of the potholes. When performing coordinate conversion and plane fitting, only a certain range of road surface around the potholes is operated, which greatly reduces the amount of calculation and reduces the interference of the pothole point cloud on the plane fitting; when performing plane fitting on the converted point cloud, a method combining RANSAC and genetic algorithm is used to better fit the road plane.

[0095] Embodiment three:

[0096] This embodiment is basically the same as the above embodiment, with the following features:

[0097] In this embodiment, Figure 1 This is a schematic diagram of the road pothole detection process based on neural network and binocular stereo vision. The method includes two parts, S101-S104 is the preparation part of the embodiment and S105-S115 is the specific working part of the embodiment:

[0098] Step S101, calibrate the binocular camera, and Zhang Zhengyou's chessboard calibration method can be used;

[0099] Step S102, installing a binocular camera in parallel in front of the vehicle to obtain left and right views of the road scene in front of the vehicle;

[0100] Step S103, first manually select road images containing potholes, mark them, and randomly divide the collected pothole images into a training set and a test set;

[0101] Step S104, first establish a target detection neural network model, then use the training set established in step S103 to train the model, and save the model parameters that perform best on the test set;

[0102] Step S105, the specific working part of the embodiment begins, using a binocular camera installed in parallel in front of the vehicle to obtain left and right views of the road;

[0103] Step S106, filtering and denoising the obtained left view image or right view image, and adjusting the size to the size required by the target detection neural network;

[0104] The right view image shown may correspond to the camera for obtaining the depth map in the following steps. In this embodiment, the left view image or the right view image is used in its entirety.

[0105] Step S107, inputting the preprocessed left view or right view into the object detection neural network. The result of the object detection network is represented by a rectangular box, and the output is the pixel coordinates of the upper left corner and the lower right corner of the rectangular box in the preprocessed left view or right view. The result needs to be processed to obtain the pixel coordinates of the left view or right view in the original size.

[0106] Step S108, if the output coordinates are empty, indicating that there is no pothole on the road ahead, then directly return to step S105, otherwise continue processing;

[0107] Step S109, performing stereo matching on the left and right views obtained in step S105 to obtain a depth map relative to the left camera or the right camera;

[0108] Step S110, according to the pixel coordinates obtained in step S107, the four sides of the rectangular frame are expanded to a certain range of 20% to obtain a new rectangular frame, the new rectangular frame not only includes the pothole, but also includes a certain range of the road surface around the pothole; the new rectangular frame is used to cut the depth map to obtain a depth map of the pothole and the surrounding road surface;

[0109] Step S111, converting the coordinates of each point on the cropped depth map obtained in step S110 from the pixel coordinate system to the image coordinate system, such as Figure 2 As shown;

[0110] Step S112, convert the points on the image coordinate system obtained in step S111 to the camera coordinate system, such as Figure 3 As shown;

[0111] Step S113, plane fitting is performed on the road surface point cloud around the pothole converted to the camera coordinate system; when fitting the plane, RANSAC is used to randomly select 3 point clouds each time to obtain various parameters of the plane, calculate the number of internal points, and repeat 200 times; the obtained plane parameters are sorted from large to small according to the number of internal points, the first 40 planes are selected, and the variation range of each parameter of the selected 40 planes is counted, and then the genetic algorithm is used to encode the parameters according to the variation range of each parameter. The number of individuals in the group is 200, and selection, crossover, and mutation are repeated for 100 iterations. The plane with the maximum value on the fitness function is taken as the final fitting result;

[0112] Step S114, using the fitting plane to distinguish the point cloud of the input pit, calculating the distance of each point from the fitting plane, and summing and averaging the distances as the depth of the pit;

[0113] Step S115, projecting the pit point cloud onto the fitting plane, and then calculating the minimum circumscribed rectangle. After obtaining the minimum circumscribed rectangle, the length and width are calculated according to the coordinates of each vertex on the rectangle in the camera coordinate system, so as to obtain the pit area.

[0114] The road pothole detection method based on neural network and binocular stereo vision in this embodiment includes: using a binocular camera installed in front of a vehicle to obtain left and right views of a road scene; using a target detection neural network to detect the left view; when a pothole is detected, stereo matching the left and right views to obtain a depth map; cutting out the depth map of the pothole and the road surface around the pothole according to the pothole position information predicted by the neural network; fitting the road plane around the pothole using a method combining RANSAC and genetic algorithm; calculating the distance from the pothole point cloud to the fitting plane, and averaging the distance to obtain the pothole depth; projecting the pothole point cloud onto the fitting road plane, obtaining the minimum circumscribed rectangle of the projection point, and finally obtaining the area of ​​the minimum circumscribed rectangle to obtain the area of ​​the pothole. The method in this embodiment can effectively detect and measure the depth and area of ​​the pothole, and can provide reference information for road maintenance.

[0115] Embodiment 4:

[0116] This embodiment is basically the same as the above embodiment, with the following features:

[0117] In this embodiment, in step (3), the characteristics of the target recognition neural network are similar to DenseNet, and a large number of densely connected modules are used in the backbone to extract features. YOLOv3-tiny is used to predict the input at two scales, and three anchor boxes are defined at each scale. The anchor boxes are generated by K-means.

[0118] In this embodiment, in step (4), the pit coordinates predicted by the neural network are expressed as (u1, v1, u2, v2), where (u1, v1) represents the position of the upper left corner of the predicted rectangular box in the image coordinate system of the left view, and (u2, v2) represents the position of the lower right corner of the predicted rectangular box in the image coordinate system of the left view.

[0119] In this embodiment, the equation for converting the cropped depth map from the pixel coordinate system (u, v) to the image coordinate system (x, y) is:

[0120]

[0121] In formula (1), u0 and v0 represent the horizontal and vertical coordinates of the origin of the image coordinate system in the pixel coordinate system, and d x , d y Represents the width and height of each pixel in the pixel coordinate system. The cropped depth map is converted from the image coordinate system (x, y) to the camera coordinate system (x c ,y c , z c ) is:

[0122]

[0123] In formula (2), z c Indicates the value obtained when the coordinates in the image coordinate system are (x, y), that is, the distance from the road surface to the imaging surface of the left camera, and f represents the focal length of the left camera. c ,y c , z c ) is expressed as:

[0124]

[0125] In formula (3), f x , f y It is the equivalent focal length on the x-axis and y-axis. Like u0 and v0, it is an internal parameter of the camera and its specific value can be obtained during calibration.

[0126] In this embodiment, the point cloud plane fitting around the pothole on the camera coordinate system adopts a method combining RANSAC and genetic algorithm. Specifically: RANSAC first iterates a certain number of times, calculates and records the number of internal points and the values ​​of each parameter of each iteration, and then sorts them from large to small according to the number of internal points, and counts the value range of each parameter in the top 20%. This value range is used as the encoding value range of each parameter of the genetic algorithm, and finally a certain number of population iterations are performed to obtain the optimal value of the plane parameter. This embodiment can obtain road depth information with higher resolution than lidar and ToF cameras; the convolutional neural network uses a large number of densely connected modules to make the model deeper, reuse the shallow features of the neural network, and greatly reduce the parameters and memory occupied by the model.

[0127] The above describes the embodiments of the present invention in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made according to the purpose of the invention. Any changes, modifications, substitutions, combinations or simplifications made according to the spirit and principle of the technical solution of the present invention should be equivalent replacement methods. As long as they meet the purpose of the invention and do not deviate from the technical principles and inventive concepts of the present invention, they belong to the protection scope of the present invention.

Claims

1. A method for automatic detection of road potholes based on a binocular camera and a convolutional neural network, characterized in that: It includes the following steps: (1) Use the binocular stereo camera installed on the vehicle to obtain the left and right views of the road ahead and send them to the computing unit; (2) Preprocessing the obtained left view or right view; (3) Importing the preprocessed image into a pre-trained target recognition neural network for detection; (4) If no pits are detected, repeat step (1). If pits are detected, record the number of pits and their coordinates in the left view. (5) Obtain the left and right views according to step (1) to obtain a depth map relative to the left camera or the right camera; (6) According to the pothole coordinates obtained in step (4), the depth map is cut to obtain a depth map of the pothole and the road surface around the pothole; (7) Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further project it to the camera coordinate system; (8) Performing plane fitting on the point cloud around the pit projected onto the camera coordinate system, and distinguishing the point cloud belonging to the pit based on the fitting plane; (9) Calculate the distance from the pit point cloud to the fitting plane, and sum and average to obtain the pit depth; (10) Project the pit point cloud onto the fitting plane, and find the minimum circumscribed rectangle for the projected points on the fitting plane. The area of ​​the minimum circumscribed rectangle is taken as the area of ​​the pit; (11) Save the left and right views, depth map, GPS data, coordinates, depth and area information in the pit image coordinate system for subsequent research and repair.

2. The method for automatic detection of potholes in a road surface based on a binocular camera and a convolutional neural network according to claim 1, characterized in that: The steps of obtaining the road pothole depth from step (2) to step (9) include: a. Preprocessing the left view of the road in the left and right views obtained by the binocular camera, and then using the trained target detection neural network to predict the preprocessed left view; b. If the prediction result shows that there are one or more potholes in the road ahead, the coordinates of the potholes in the original left view are calculated according to the scaling ratio during preprocessing and the predicted pothole pixel coordinates, where the pothole coordinates are the coordinates of the upper left corner and the lower right corner of the rectangular box that just surrounds the pothole in the image; c. Perform stereo matching on the obtained left and right views to obtain a road depth map; d. Expand the periphery of the pit by a certain proportion according to the calculated pit coordinate information so that the rectangular frame includes the road surface around the pit, and the road surface around the pit can be considered to be a plane; e. cutting out the road surface depth map of the pothole and the road surface depth map around the pothole according to the coordinate information of the enlarged rectangular frame; f. Convert the cropped depth map from the pixel coordinate system to the image coordinate system, and then further convert it to the camera coordinate system; g. Perform plane fitting on the road surface around the pothole in the camera coordinate system, and distinguish the point cloud belonging to the pothole in the camera coordinate system based on the fitted plane; h. Calculate the distance from the pit point cloud to the fitting plane, and average all the distance data as the depth of the pit.

3. The method for automatic detection of potholes in a road surface based on a binocular camera and a convolutional neural network according to claim 1, characterized in that: In step (2), the obtained left view is preprocessed including filtering and denoising and changing the size to the input size required by the neural network model.

4. The method for automatic detection of potholes in a road surface based on a binocular camera and a convolutional neural network according to claim 1, characterized in that: The plane fitting in step (9) includes: (9-1) The object of plane fitting is the point cloud data of the road surface around the pothole in the camera coordinate system, excluding the point cloud of the pothole; (9-2) Use the RANSAC algorithm to iterate a certain number of times for plane fitting, record the plane coefficients and the number of interior points obtained by each random sampling, sort them from high to low according to the number of interior points, select the results with the highest sorting from the sorted plane parameter results, and make statistics on the variation range of each parameter in the selected results; (9-3) Use genetic algorithm to optimize the fitting plane, encode the parameters according to the statistical variation range of each parameter, and obtain the final plane fitting result through iteration.

5. The method for automatic detection of potholes in a road surface based on a binocular camera and a convolutional neural network according to claim 1, characterized in that: The step of obtaining the road pothole area in step (10) includes: (10-1) Distinguishing the point cloud data belonging to the pit from the camera coordinate system according to the fitting plane; (10-2) Project the point cloud of the pit onto the fitted plane; (10-3) Obtain the minimum circumscribed rectangle of the projection points on the fitting plane; (10-4) The length and width of the rectangle are calculated based on the coordinate information of the minimum circumscribed rectangle, and thus the area of ​​the minimum circumscribed rectangle is calculated. The area of ​​the minimum circumscribed rectangle is the area of ​​the pit.