A smart city highway maintenance method, computer equipment and medium
Through grayscale processing and vehicle information recognition of highway surveillance videos, highway defects can be identified, timely detection and effective repair of highway damage can be achieved, and maintenance costs can be reduced.
Patent Information
- Application Number
- CN202111630622.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing technology makes it difficult to detect road damage in a timely manner, resulting in increased repair costs and shortened service life.
By obtaining surveillance video, extract road surface and vehicle information, perform grayscale processing and speed recognition, identify road surface defects, and determine highway maintenance strategies.
It improves the efficiency of detecting road damage and reduces maintenance costs.
Smart Images

Figure CN114283383B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a smart city highway maintenance method, computer equipment and medium. Background Art
[0002] With the rapid development of infrastructure projects in my country, many highways have been built in many cities, and the current highway network has basically been formed. Highways must be maintained scientifically and rationally to ensure that they remain in good operating condition. In order to ensure the safety, functionality and structure of highways, highways need to be maintained in a timely manner. Highway maintenance refers to the maintenance and upkeep of highways. Maintenance focuses on the whole process of maintenance from the completion of the construction and opening to traffic, and maintenance focuses on repairing the damaged parts. Furthermore, highway maintenance must repair the damaged parts in a timely manner, otherwise it will lead to increased investment in the repair project, shorten the service life of the highway, and cause losses to road users. Therefore, how to detect damage to the highway in a timely manner and repair it in a timely manner has become a key issue.
[0003] Generally speaking, highway maintenance personnel conduct road inspections to determine whether the highway is damaged and where the damage is located, or arrange for highway maintenance personnel to repair the damaged section based on public reports.
[0004] The inventors found in their research that whether it is through road maintenance personnel conducting road inspections to determine whether the road is damaged, or through public feedback, the damage to the road cannot be discovered in a timely manner, which may result in the road being discovered and maintained only when the damage is relatively serious, which may in turn lead to an increase in the cost of maintaining the road. Summary of the invention
[0005] The purpose of this application is to provide a smart city highway maintenance method, computer equipment and medium to solve the above technical problems.
[0006] The above-mentioned application objective 1 of the present application is achieved through the following technical solutions:
[0007] In a first aspect, a smart city highway maintenance method is provided, comprising:
[0008] Get the surveillance video corresponding to the preset road section;
[0009] Determining multimedia information including road surface information and multimedia information including vehicle information based on the surveillance video corresponding to the preset road section;
[0010] Filtering at least one piece of image information from the multimedia information containing the road surface;
[0011] Performing grayscale processing on the at least one piece of image information to obtain grayscale processed image information;
[0012] Performing speed recognition and / or driving route recognition on the multimedia information containing the vehicle information to obtain a speed recognition result and / or a driving route result;
[0013] Based on at least one of the speed recognition result and the driving route result, and the grayscale processed image information, determining whether there are defects in the road surface of the preset road section;
[0014] If there is a defect, determining road surface defect information, the road surface defect information including: road surface defect type information and road surface defect location information;
[0015] A corresponding highway maintenance strategy is determined based on the road surface defect information.
[0016] In a possible implementation, determining whether there are defects on the road surface of a preset road section based on the grayscale processed image information includes:
[0017] Determine the pixel value corresponding to each pixel in the image information after the grayscale processing;
[0018] Converting the grayscale processed image information into a depth image;
[0019] Determine whether the current road surface has defects based on the pixel values corresponding to the pixels and the depth image.
[0020] In another possible implementation, the speed recognition result includes: speed change information of at least one vehicle during driving, and the driving route result includes: driving route information corresponding to at least one vehicle;
[0021] Determining whether a road surface of a preset road section has defects based on the speed recognition result and the driving route result includes:
[0022] Determining a road section that meets a first preset condition based on speed change information of the at least one vehicle during driving;
[0023] Determining actual driving route information corresponding to at least one vehicle in the road section that meets the first preset condition;
[0024] Determining an offset of the actual driving route;
[0025] If the deviation of the actual driving route meets the second preset condition, it is determined that there is a defect in the road surface of the preset road section;
[0026] Among them, the road section that meets the first preset condition includes: a road section where the speed drop amplitude is greater than the preset amplitude; the second preset condition includes: the offset of the driving route is greater than the preset offset.
[0027] In another possible implementation, determining the offset of the actual driving route of any vehicle includes:
[0028] Identifying lane lines in the road section that meets the first preset condition; and / or,
[0029] Identifying a lane edge line in the road section that meets the first preset condition; and / or,
[0030] Identifying the shape of the road section that meets the first preset condition;
[0031] Determine the driving direction of any one of the vehicles at a preset reference point and the position information of the preset reference point, wherein the preset reference point is the reference point corresponding to when any one of the vehicles enters a road section that meets the first preset condition;
[0032] Predicting a driving route based on at least one of the lane line, the lane edge line, and the shape of the road section that meets the first preset condition, the driving direction of any vehicle at a preset point, and the position information of the preset reference point;
[0033] Based on the predicted driving route and the actual driving route, an offset of the actual driving route of any one of the vehicles is determined.
[0034] In another possible implementation, determining the offset of the actual driving route of any vehicle based on the predicted driving route and the actual driving route includes at least one of the following:
[0035] Determine an offset between each first reference point and a corresponding second reference point, and determine an offset of an actual driving route of any vehicle based on the offset between each first reference point and the corresponding second reference point, wherein the first reference point is a reference point on the predicted driving route and the second reference point is a reference point on the actual driving route;
[0036] Determine the curvature information of the predicted driving route and the curvature information of the actual driving route, and determine the offset of the actual driving route of any vehicle based on the position information of the preset reference point, the curvature information of the predicted driving route and the curvature information of the actual driving route.
[0037] In another possible implementation, determining the road surface defect information includes:
[0038] If the speed drop is greater than a preset range, and / or the offset of the actual driving route is not within a preset offset range, a first position is determined, where the speed drop is greater than a preset range and / or the offset of the actual driving route is not within a preset offset range;
[0039] Based on the first position, at least one image that meets a third preset condition is selected from the images, and based on the at least one image that meets the third preset condition, it is predicted whether there is a raised area and / or a sunken area on the current road surface, wherein the image that meets the third preset condition includes: an image that includes the current road surface;
[0040] If it exists, determine that the current defect information is a convex type and / or a concave type, and determine the attribute information of the convex area and / or the attribute information of the concave area, the attribute information of the convex area includes: the position information corresponding to the convex area, the convex area range of the convex area, and the convex height of the convex area; the attribute information of the concave area includes: the position information corresponding to the concave area, the concave range of the concave area, and the concave depth of the concave area.
[0041] In another possible implementation manner, determining the attribute information of the sunken area based on at least one image that meets the third preset condition includes:
[0042] Based on the at least one image satisfying the third preset condition, determining a positional relationship between the recessed area and the camera, and determining position information of the recessed area based on the position information of the camera and the positional relationship between the recessed area and the camera;
[0043] Performing gradient detection on the at least one image that meets the third preset condition to obtain gradient information, and performing non-maximum suppression processing on the gradient information to obtain a processing result;
[0044] The depression range of the depression area and the depression depth of the depression area are determined based on the processing result.
[0045] In another possible implementation manner, determining the attribute information of the raised area based on at least one image that meets the third preset condition includes:
[0046] Based on the at least one image satisfying the third preset condition, determining a relationship between the raised area and the camera, and determining position information of the raised area based on the position information of the camera and the relationship between the raised area and the camera;
[0047] Feature extraction is performed on the raised area, and based on the extracted features, a raised type of the raised area, a raised area range of the raised area, and a raised height of the raised area are determined.
[0048] In another possible implementation, the determining a corresponding highway maintenance strategy based on the road surface defect information includes:
[0049] Obtain vehicle information and road thickness information on road sections with road defects;
[0050] Based on the pavement defect information, the pavement thickness information and the vehicle information of the road section with pavement defects, a highway maintenance strategy is determined, and the highway maintenance strategy includes: pavement maintenance time, pavement maintenance location, pavement maintenance tools, pavement maintenance materials and the time required to complete pavement maintenance.
[0051] In a second aspect, a smart city highway maintenance device is provided, comprising:
[0052] An acquisition module is used to acquire surveillance videos corresponding to a preset road section;
[0053] A first determination module, configured to determine multimedia information including road surface information and multimedia information including vehicle information based on the surveillance video corresponding to the preset road section;
[0054] A screening module, used for screening at least one piece of image information from the multimedia information containing the road surface;
[0055] A grayscale processing module, used for performing grayscale processing on the at least one image information to obtain grayscale processed image information;
[0056] an identification module, used to perform speed identification and / or driving route identification on the multimedia information containing vehicle information, and obtain a speed identification result and / or a driving route result;
[0057] A second determination module is used to determine whether there is a road surface defect in a preset road section based on at least one of the speed recognition result and the driving route result, and the grayscale processed image information;
[0058] A third determination module is used to determine road surface defect information when there is a defect, wherein the road surface defect information includes: road surface defect type information and road surface defect location information;
[0059] The fourth determination module is used to determine a corresponding highway maintenance strategy based on the road surface defect information.
[0060] In a possible implementation, when the second determination module determines whether there are defects on the road surface of a preset road section based on the grayscale processed image information, it is specifically used to:
[0061] Determine the pixel value corresponding to each pixel in the image information after the grayscale processing;
[0062] Converting the grayscale processed image information into a depth image;
[0063] Determine whether the current road surface has defects based on the pixel values corresponding to the pixels and the depth image.
[0064] In another possible implementation, the speed recognition result includes: speed change information of at least one vehicle during driving, and the driving route result includes: driving route information corresponding to at least one vehicle;
[0065] When the second determination module determines whether there are defects on the road surface of the preset road section based on the speed recognition result and the driving route result, it is specifically used to:
[0066] Determining a road section that meets a first preset condition based on speed change information of the at least one vehicle during driving;
[0067] Determining actual driving route information corresponding to at least one vehicle in the road section that meets the first preset condition;
[0068] Determining an offset of the actual driving route;
[0069] If the deviation of the actual driving route meets the second preset condition, it is determined that there is a defect in the road surface of the preset road section;
[0070] Among them, the road section that meets the first preset condition includes: a road section where the speed drop amplitude is greater than the preset amplitude; the second preset condition includes: the offset of the driving route is greater than the preset offset.
[0071] In another possible implementation, when determining the offset of the actual driving route of any vehicle, the second determination module is specifically configured to:
[0072] Identifying lane lines in the road section that meets the first preset condition; and / or,
[0073] Identifying a lane edge line in the road section that meets the first preset condition; and / or,
[0074] Identifying the shape of the road section that meets the first preset condition;
[0075] Determine the driving direction of any one of the vehicles at a preset reference point and the position information of the preset reference point, wherein the preset reference point is the reference point corresponding to when any one of the vehicles enters a road section that meets the first preset condition;
[0076] Predicting a driving route based on at least one of the lane line, the lane edge line, and the shape of the road section that meets the first preset condition, the driving direction of any vehicle at a preset point, and the position information of the preset reference point;
[0077] Based on the predicted driving route and the actual driving route, an offset of the actual driving route of any one of the vehicles is determined.
[0078] In another possible implementation, when the second determination module determines the offset of the actual driving route of any vehicle based on the predicted driving route and the actual driving route, it is specifically used for at least one of the following:
[0079] Determine an offset between each first reference point and a corresponding second reference point, and determine an offset of an actual driving route of any vehicle based on the offset between each first reference point and the corresponding second reference point, wherein the first reference point is a reference point on the predicted driving route and the second reference point is a reference point on the actual driving route;
[0080] Determine the curvature information of the predicted driving route and the curvature information of the actual driving route, and determine the offset of the actual driving route of any vehicle based on the position information of the preset reference point, the curvature information of the predicted driving route and the curvature information of the actual driving route.
[0081] In another possible implementation, when determining the road surface defect information, the third determination module is specifically configured to:
[0082] When the speed decrease amplitude is greater than a preset amplitude, and / or the offset of the actual driving route is not within a preset offset range, determining a first position, the first position being a position where the speed decrease amplitude is greater than a preset amplitude and / or the offset of the actual driving route is not within a preset offset range;
[0083] Based on the first position, at least one image that meets a third preset condition is selected from the images, and based on the at least one image that meets the third preset condition, it is predicted whether there is a raised area and / or a sunken area on the current road surface, wherein the image that meets the third preset condition includes: an image that includes the current road surface;
[0084] When there are raised areas and / or sunken areas, the current defect information is determined to be a raised type and / or a sunken type, and the attribute information of the raised area and / or the attribute information of the sunken area is determined, the attribute information of the raised area includes: the position information corresponding to the raised area, the raised area range of the raised area, and the raised height of the raised area; the attribute information of the sunken area includes: the position information corresponding to the sunken area, the sunken range of the sunken area, and the sunken depth of the sunken area.
[0085] In another possible implementation manner, when determining the attribute information of the sunken area based on at least one image that meets the third preset condition, the third determination module is specifically configured to:
[0086] Based on the at least one image satisfying the third preset condition, determining a positional relationship between the recessed area and the camera, and determining position information of the recessed area based on the position information of the camera and the positional relationship between the recessed area and the camera;
[0087] Performing gradient detection on the at least one image that meets the third preset condition to obtain gradient information, and performing non-maximum suppression processing on the gradient information to obtain a processing result;
[0088] The depression range of the depression area and the depression depth of the depression area are determined based on the processing result.
[0089] In another possible implementation manner, when determining the attribute information of the raised area based on at least one image that meets the third preset condition, the third determination module is specifically configured to:
[0090] Based on the at least one image satisfying the third preset condition, determining a relationship between the raised area and the camera, and determining position information of the raised area based on the position information of the camera and the relationship between the raised area and the camera;
[0091] Feature extraction is performed on the raised area, and based on the extracted features, a raised type of the raised area, a raised area range of the raised area, and a raised height of the raised area are determined.
[0092] In another possible implementation, when determining the corresponding highway maintenance strategy based on the road surface defect information, the fourth determination module is specifically configured to:
[0093] Obtain vehicle information and road thickness information on road sections with road defects;
[0094] Based on the pavement defect information, the pavement thickness information and the vehicle information of the road section with pavement defects, a highway maintenance strategy is determined, and the highway maintenance strategy includes: pavement maintenance time, pavement maintenance location, pavement maintenance tools, pavement maintenance materials and the time required to complete pavement maintenance.
[0095] In a third aspect, a computer device is provided, comprising:
[0096] at least one processor;
[0097] Memory;
[0098] At least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, and the at least one application is configured to: execute a smart city highway maintenance method according to the first aspect.
[0099] In a fourth aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement a smart city highway maintenance method as described in the first aspect.
[0100] In summary, the present application includes at least one of the following beneficial technical effects:
[0101] The present application provides a smart city highway maintenance method, computer equipment and medium. Compared with the related art, the present application processes the monitoring video corresponding to the preset road section to obtain multimedia information including the road surface and multimedia information including vehicle information, performs grayscale processing on the multimedia information including the road surface to obtain a grayscale processed image, and performs vehicle speed recognition and / or vehicle driving route recognition on the multimedia information including the vehicle information to obtain a speed recognition result and / or a driving route result. Based on this information, it is possible to determine whether there are defects in the road surface of the preset road section and the corresponding road surface defect information, so that the corresponding highway maintenance strategy can be determined according to the road surface defect information, thereby improving the efficiency of discovering highway damage and further reducing the cost of highway maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] Figure 1 This is a schematic diagram of a smart city highway maintenance method provided by an embodiment of the present application;
[0103] Figure 2 It is a schematic diagram of the structure of a smart city highway maintenance device provided in an embodiment of the present application;
[0104] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0105] The present application is further described in detail below in conjunction with the accompanying drawings.
[0106] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.
[0107] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0108] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0109] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0110] The present application embodiment provides a smart city highway maintenance method, such as Figure 1 As shown, the smart city highway maintenance method provided in the embodiment of the present application can be executed by a computer device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. The method includes:
[0111] Step S101: Obtain the surveillance video corresponding to the preset road section.
[0112] Specifically, the preset road section may be carried in the highway maintenance request triggered by the user, that is, when the highway maintenance request information triggered by the user is detected, the monitoring video corresponding to the preset road section is obtained based on the request information; the relationship between the road section and the maintenance time may also be pre-set, that is, when the maintenance time for the preset road section is reached, the monitoring video corresponding to the preset road section is obtained.
[0113] Furthermore, a mapping relationship between a road section and a camera is preset, the camera information corresponding to the preset road section is obtained, and the surveillance video corresponding to the preset road section is obtained based on the camera information corresponding to the preset road section. In the embodiment of the present application, the surveillance video corresponding to the preset road section is not limited to the surveillance video shot by one camera, and can be the surveillance video shot by at least two cameras, which is not limited in the embodiment of the present application.
[0114] Step S102: Determine multimedia information including road surface information and multimedia information including vehicle information based on the surveillance video corresponding to the preset road section.
[0115] Specifically, when obtaining the surveillance video corresponding to the preset road section, target recognition or target detection can be performed on each video frame in the surveillance video to determine the multimedia information containing the road surface and the multimedia information containing the vehicle information; or when obtaining the surveillance video corresponding to the preset road section, multiple frames of video frames can be extracted from the surveillance video corresponding to the preset road section, and target recognition or target detection can be performed based on the extracted multiple frames of video frames to determine the multimedia information containing the road surface and the multimedia information containing the vehicle information.
[0116] Step S103: Filter out at least one piece of image information from the multimedia information containing the road surface.
[0117] For the embodiment of the present application, since the multimedia information containing the road surface may contain many frame images, in order to reduce the complexity of grayscale processing, at least one image information may be screened out from the multimedia information contained therein, and grayscale processing may be performed on the at least one image information subsequently. Specifically, the method of screening out at least one image information from the multimedia information containing the road surface may include: randomly screening out at least one image information from the multimedia information containing the road surface, or screening out at least one image information containing the complete road surface from the multimedia information containing the road surface.
[0118] Step S104: grayscale processing is performed on at least one piece of image information to obtain grayscale processed image information.
[0119] Specifically, in the embodiment of the present application, grayscale processing is performed on each image information in at least one image information to obtain grayscale processed image information. The grayscale processing method is not limited in the embodiment of the present application.
[0120] Step S105: Perform speed recognition and / or driving route recognition on the multimedia information containing the vehicle information to obtain a speed recognition result and / or a driving route result.
[0121] For the embodiments of the present application, the method for identifying the speed of multimedia information containing vehicle information can be identified through a trained network model, or the speed of the vehicle can be identified through other algorithms; similarly, the method for identifying the driving route of multimedia information containing vehicle information can be identified through a trained network model, or the driving route of the vehicle can be identified through other algorithms.
[0122] It should be noted that step S105 may be executed before step S103, before step S104, after step S104, simultaneously with step S103, or simultaneously with step S104. Figure 1 This is only a possible schematic diagram of the execution sequence and is not intended to be a limitation of the embodiments of the present application.
[0123] Step S106: Determine whether there are defects in the road surface of the preset road section based on at least one of the speed recognition result and the driving route result, and the image information after grayscale processing.
[0124] For the embodiment of the present application, after obtaining at least one of the speed recognition result and the driving route result and the grayscale processed image information through the above embodiment, it is determined whether there are defects in the road surface of the preset road section based on the information. For example, it can be determined whether there are defects such as road depression, road bulge and / or crack.
[0125] Step S107: If there is a defect, determine the road surface defect information.
[0126] The road surface defect information includes: road surface defect type information and road surface defect location information.
[0127] Step S108: Determine a corresponding highway maintenance strategy based on the road surface defect information.
[0128] For the embodiment of the present application, different road surface defect types correspond to different road maintenance strategies, and the road surface defect location information is different, and the corresponding road maintenance strategies may also be different. In the embodiment of the present application, different road surface defect types may correspond to different road maintenance tools, road maintenance materials, and road maintenance methods; different road surface defect location information may correspond to different road maintenance times.
[0129] The embodiment of the present application provides a smart city highway maintenance method. Compared with the related art, the embodiment of the present application processes the monitoring video corresponding to the preset road section to obtain multimedia information including the road surface and multimedia information including vehicle information, and performs grayscale processing on the multimedia information including the road surface to obtain a grayscale processed image, and performs vehicle speed identification and / or vehicle driving route identification on the multimedia information including the vehicle information to obtain a speed identification result and / or a driving route result. Based on this information, it is possible to determine whether there are defects in the road surface of the preset road section and the corresponding road surface defect information, so that a corresponding highway maintenance strategy can be determined according to the road surface defect information, thereby improving the efficiency of discovering highway damage and further reducing the cost of highway maintenance.
[0130] Specifically, in the embodiment of the present application, steps S101 to S105 can be implemented in the manner described in the embodiment of the present application, or can be implemented in the manner described in the related art.
[0131] Specifically, determining whether there are defects on the road surface of the preset road section based on the grayscale processed image information in step S106 may specifically include: step S1061 (not shown in the figure), step S1062 (not shown in the figure) and step S1063 (not shown in the figure), wherein:
[0132] Step S1061, determining the pixel value corresponding to each pixel in the image information after grayscale processing.
[0133] Step S1062: Convert the grayscale processed image information into a depth image.
[0134] Specifically, in the embodiment of the present application, the corresponding depth image can be determined by one grayscale processed image information, or the depth image can be determined by at least two grayscale processed images. Specifically, the method of determining the depth image by two grayscale processed images can include: calculating the horizontal offset of the pixel points corresponding to the same position of the target in the first grayscale processed image and the second grayscale processed image; according to the offset, using a calculation formula to obtain the depth information of the pixel points; according to the depth information of all the pixel points in the first grayscale processed image or the second grayscale processed image, obtaining the corresponding depth image.
[0135] Specifically, step S1061 may be executed before step S1062, may be executed after step S1062, or may be executed simultaneously with step S1062, which is not limited in the embodiments of the present application.
[0136] Step S1063: determine whether there are defects on the current road surface based on the pixel values corresponding to each pixel and the depth image.
[0137] Specifically, determining whether there are defects in the road surface based on the pixel values corresponding to each pixel and the depth image may include: obtaining the distribution of grayscale values at each pixel based on the pixel values corresponding to each pixel, and determining whether there are defects in the current road surface based on the distribution of grayscale values at each pixel and the depth image.
[0138] Specifically, determining whether the current road surface has defects based on the distribution of grayscale values at each pixel and the depth image may include: determining the relative depth at each corresponding position based on the distribution of grayscale values at each pixel, and determining whether the current road surface has defects based on the determined relative depth at each corresponding position; determining whether the current road surface has defects based on the depth image. If at least one of the above items can determine the defect, it can be determined that the current road surface has defects.
[0139] Specifically, determining whether the current road surface has defects based on the distribution of grayscale values at each pixel and the depth image may also include: determining the relative depth at each corresponding position based on the distribution of grayscale values at each pixel, and adjusting the depth image based on the relative depth at each corresponding position, and determining whether the current road surface has defects based on the adjusted depth image.
[0140] Furthermore, the speed recognition result includes: speed change information of at least one vehicle during driving, and the driving route result includes: driving route information corresponding to at least one vehicle; in the embodiment of the present application, in step S106, based on the speed recognition result and the driving route result, it is determined whether there are defects in the road surface of the preset section, which may specifically include: step S106a (not shown in the figure), step S106b (not shown in the figure), step S106c (not shown in the figure) and step S106d (not shown in the figure). In the embodiment of the present application, steps S106a-step S106d may be executed before steps S1061-step S1063, or after steps S1061-step S1063, or simultaneously with steps S1061-step S1063, or in other execution orders, which are not limited in the embodiment of the present application.
[0141] Step S106a: determining a road section that meets a first preset condition based on speed change information of at least one vehicle during driving.
[0142] Among them, the road section that meets the first preset condition includes: the road section where the speed reduction amplitude is greater than the preset amplitude. In the embodiment of the present application, the preset amplitude can be pre-set, can be input by the user, or can be calculated in a specific way, which is not limited in the embodiment of the present application. Further, if the preset amplitude is calculated based on a specific method, it can be determined by the vehicle type and the vehicle speed information specified in the preset road section.
[0143] Step S106b: determining the actual driving route information corresponding to at least one vehicle in a road section that meets the first preset condition.
[0144] Step S106c, determining the offset of the actual driving route. In the embodiment of the present application, determining the offset of the actual driving route may specifically include: determining the offset of the actual driving route relative to the predicted driving route.
[0145] Specifically, determining the offset of the actual driving route of any vehicle may include: at least one of step S1 (not shown in the figure), step S2 (not shown in the figure) and step S3 (not shown in the figure), step S4 (not shown in the figure), step S5 (not shown in the figure) and step S6 (not shown in the figure), wherein:
[0146] Step S1: Identify lane lines in a road section that meets a first preset condition.
[0147] Specifically, multimedia information corresponding to a road section that meets a first preset condition is determined from multimedia information containing a road surface, and lane lines are identified based on the multimedia information corresponding to the road section that meets the first preset condition.
[0148] Furthermore, in order to reduce the complexity of identifying lane lines and reduce the computational pressure, at least one image may be screened out from the multimedia information corresponding to the first preset condition, and the lane lines may be identified based on the at least one screened image.
[0149] Step S2: Identify lane edge lines in a road section that meets a first preset condition.
[0150] Specifically, multimedia information corresponding to a road section that meets a first preset condition is determined from multimedia information containing a road surface, and a lane edge line is identified based on the multimedia information corresponding to the road section that meets the first preset condition.
[0151] Furthermore, in order to reduce the complexity of identifying lane edge lines and reduce the computational pressure, at least one image may be screened out from the multimedia information corresponding to the first preset condition, and the lane edge line may be identified based on the at least one screened image.
[0152] Step S3: Identify the shape of the road section that meets the first preset condition.
[0153] Specifically, the multimedia information corresponding to the road section that meets the first preset condition is determined from the multimedia information containing the road surface, and the shape of the road section that meets the first preset condition is identified based on the multimedia information corresponding to the road section that meets the first preset condition.
[0154] Furthermore, in order to reduce the complexity of identifying the shape of the road section and reduce the calculation pressure, at least one image can be screened out from the multimedia information corresponding to the first preset condition, and the shape of the road section that meets the first preset condition can be identified based on the at least one screened image.
[0155] For the embodiment of the present application, the multimedia information corresponding to the road sections that meet the first preset condition used in steps S1, S2 and S3 can be the same multimedia information, different multimedia information, or partially the same, which is not limited in the embodiment of the present application.
[0156] It should be noted that if step S1, step S2 and step S3 are included at the same time, the execution order of step S1, step S2 and step S3 can be any possible execution order, for example, step S1, step S2 and step S3 can be executed at the same time.
[0157] Step S4: Determine the driving direction of any vehicle at a preset reference point and the position information of the preset reference point.
[0158] The preset reference point is a reference point corresponding to when any vehicle enters a road section that meets the first preset condition.
[0159] Step S5, predicting the driving route based on at least one of the lane line, the lane edge line and the shape of the road section that meets the first preset condition, the driving direction of any vehicle at the preset point and the position information of the preset reference point.
[0160] Specifically, based on at least one of the lane lines, lane edge lines and the shapes of road sections that meet the first preset condition, the driving direction of any vehicle at a preset point and the position information of a preset reference point, a method of predicting a driving route can specifically include predicting the driving route through a trained driving route prediction model, and predicting the driving route through other algorithms.
[0161] Step S6: Based on the predicted driving route and the actual driving route, determine the offset of the actual driving route of any vehicle.
[0162] Specifically, in an embodiment of the present application, the offset of the actual driving route of any vehicle may specifically include: the offset between each reference point in the actual driving route and the reference point of the corresponding predicted driving route; it may also include: the maximum offset between the actual driving route and the predicted driving route; it may also include: the average offset between the actual driving route and the predicted driving route.
[0163] Specifically, based on the predicted driving route and the actual driving route, determining the offset of the actual driving route of any vehicle may specifically include at least one of step S61 (not shown in the figure) and step S62 (not shown in the figure), wherein:
[0164] Step S61, determining the offset between each first reference point and the corresponding second reference point, and determining the offset of the actual driving route of any vehicle based on the offset between each first reference point and the corresponding second reference point.
[0165] The first reference point is a reference point on the predicted driving route, and the second reference point is a reference point on the actual driving route.
[0166] In the embodiment of the present application, determining the offset between each first reference point and the corresponding second reference point in step S61 can be implemented in at least two ways, wherein:
[0167] The first method: each first reference point and each second reference point can be drawn by an engineer on the predicted driving route and the actual driving route, respectively. Further, the offset between each first reference point and the corresponding second reference point is determined based on the reference points drawn by the engineer on the predicted driving route and the actual driving route.
[0168] In a second manner, the offset between each first reference point and its corresponding second reference point is determined through a network model.
[0169] Furthermore, after obtaining the offsets (each offset) between each first reference point and the corresponding second reference point through the above embodiment, each offset is determined as the offset of the actual driving route of any vehicle, or the average value corresponding to each offset is determined as the offset of the actual driving route of any vehicle, and the maximum offset among each offset is determined as the offset of the actual driving route of any vehicle.
[0170] Step S62, determining the curvature information of the predicted driving route and the curvature information of the actual driving route, and determining the offset of the actual driving route of any vehicle based on the position information of the preset reference point, the curvature information of the predicted driving route and the curvature information of the actual driving route.
[0171] Specifically, after the predicted driving route and the actual driving route are obtained through the above-mentioned embodiment, the corresponding curvature information can be determined according to the predicted driving route and the actual driving route. After the corresponding curvature information is obtained, the offset of the actual driving route of any vehicle is determined based on the respective curvature information and the position information of the preset reference point. In the embodiment of the present application, the offset of the actual driving route of any vehicle can be determined by a network model, or by a related curvature algorithm.
[0172] Step S106d: If the deviation of the actual driving route meets the second preset condition, it is determined that there are defects in the road surface of the preset road section.
[0173] The second preset condition includes: the offset of the driving route is greater than the preset offset.
[0174] Specifically, after obtaining the offset of the actual driving route, it is predicted whether the road surface of the preset section has defects according to the offset of the actual driving route. In the embodiment of the present application, when the offset of the actual driving route is greater than the preset offset, it is predicted that the road surface of the preset section has defects, and if the offset of the actual driving route is not greater than the preset offset, it is predicted that the road surface of the preset section has no defects.
[0175] Specifically, if the offset of the actual driving route is each offset (the offset between each first reference point and each corresponding second reference point), then the offset among the offsets that is greater than the preset threshold is greater than the preset offset, then it is predicted that there are defects in the road surface of the preset section, otherwise it is predicted that there are no defects in the road surface of the preset section; if the offset of the actual driving route is the average offset, when the average offset is greater than the preset offset, it is determined that there are defects in the road surface of the preset section, otherwise it is predicted that there are no defects in the road surface of the preset section; if the offset of the actual route is the maximum offset, when the maximum offset is greater than the preset offset, it is determined that there are defects in the road surface of the preset section, otherwise it is predicted that there are no defects in the road surface of the preset section.
[0176] Furthermore, after determining that there are defects on the road surface of the preset road section, it is necessary to further determine the specific information of the road surface defects, such as the defect type and defect location, etc.
[0177] In the embodiment of the present application, determining the road surface defect information may specifically include: step Sa (not shown in the figure), step Sb (not shown in the figure) and step Sc (not shown in the figure), wherein:
[0178] Step Sa: if the speed drop is greater than a preset speed drop, and / or the deviation of the actual driving route is not within a preset deviation range, then the first position is determined.
[0179] The first position is a position where the speed decrease amplitude is greater than a preset amplitude and / or a position where the offset of the actual driving route is not within a preset offset range.
[0180] For the embodiment of the present application, if the speed drop is greater than a preset range, the position where the speed drop is greater than the preset range is determined as the first position; if the offset of the actual driving route is not within the preset offset range, the position where the actual driving route is not within the preset offset range is determined as the first position; if the speed drop is greater than the preset range, and the offset of the actual driving route is not within the preset offset range, the first position is determined based on the first position being the position where the speed drop is greater than the preset range and the offset of the actual driving route is not within the preset offset range.
[0181] Step Sb: selecting at least one image satisfying a third preset condition from the images based on the first position, and predicting whether there is a raised area and / or a sunken area on the current road surface based on the at least one image satisfying the third preset condition.
[0182] The image satisfying the third preset condition includes: an image containing the current road surface.
[0183] For the embodiment of the present application, the road surface of the road section corresponding to the first position is called the current road surface. After determining the position information of the first position, at least one image containing the current road surface is filtered out from the multimedia information containing the road surface based on the position information of the first position, and based on the at least one filtered image, it is predicted whether there are raised areas and / or sunken areas on the current road surface.
[0184] Specifically, in the embodiment of the present application, the method of screening out at least one image that meets the third preset condition in step Sb, and the method of predicting whether there are raised areas and / or sunken areas on the current road surface can be achieved through a trained network model, or through related image processing techniques, which are not limited in the embodiment of the present application.
[0185] Step Sc: if it exists, determine that the current defect information is a convex type and / or a concave type, and determine the attribute information of the convex area and / or the attribute information of the concave area.
[0186] Among them, the attribute information of the raised area includes: the position information corresponding to the raised area, the raised area range of the raised area and the raised height of the raised area; the attribute information of the sunken area includes: the position information corresponding to the sunken area, the sunken range of the sunken area and the sunken depth of the sunken area.
[0187] Specifically, determining the attribute information of the sunken area based on at least one image that meets the third preset condition may specifically include: determining the positional relationship between the sunken area and the camera based on at least one image that meets the third preset condition, and determining the positional information of the sunken area based on the positional information of the camera and the positional relationship between the sunken area and the camera; performing gradient detection on at least one image that meets the third preset condition to obtain gradient information, and performing non-maximum suppression processing on the gradient information to obtain a processing result; determining the sunken range of the sunken area and the sunken depth of the sunken area based on the processing result. In the embodiment of the present application, determining the sunken range and the sunken depth of the sunken area may be performed before determining the positional information of the sunken area, or after determining the positional information of the sunken area, or may be performed simultaneously, which is not limited in the embodiment of the present application.
[0188] Specifically, consider the image as a two-dimensional discrete function f(x,y), and the image gradient is actually the derivative of this two-dimensional discrete function (that is, the derivative of f(x,y) is G(x,y)), where
[0189] Image gradient: G(x,y) = dx(i,j) + dy(i,j);
[0190] dx(i,j) = I(i+1,j) - I(i,j);
[0191] dy(i,j) = I(i,j+1) - I(i,j);
[0192] Among them, I is the value of the image pixel (such as RGB value), and (i, j) is the coordinate of the pixel.
[0193] In another possible implementation, the image gradient can also be generally calculated using the median difference, as shown below:
[0194] dx(i,j) = [I(i+1,j) - I(i-1,j)] / 2;
[0195] dy(i,j) = [I(i,j+1) - I(i,j-1)] / 2;
[0196] The direction of the gradient is the direction in which the image function f(x, y) changes the fastest. When there is an edge in the image, there must be a larger gradient value. On the contrary, when there is a relatively smooth part in the image, the gray value changes less, and the corresponding gradient is also smaller. In image processing, the gradient modulus is simply referred to as the gradient. The gradient information in the embodiment of the present application may include: gradient amplitude and gradient direction.
[0197] In order to obtain accurate edges, we need to perform non-maximum suppression, determine only one local maximum and set the others to zero, thereby removing blur near the edge. In the embodiment of the present application, non-maximum suppression (NMS), as the name implies, is to suppress elements that are not maxima, which can be understood as a local maximum search. This local represents a neighborhood, and the neighborhood has two variable parameters, one is the dimension of the neighborhood, and the other is the size of the neighborhood.
[0198] Furthermore, after the maximum value suppression process, the final edge detection result can be obtained, and based on the final edge detection result, the concave range of the concave area can be determined. For example, the maximum distance between points on the edge can be used to determine the concave range of the concave area. Furthermore, in the embodiment of the present application, after the final edge detection result is determined, the image depth detection is performed to obtain the concave depth of the concave area.
[0199] Further, in the embodiment of the present application, determining the attribute information of the sunken area based on any image that meets the third preset condition may specifically include: determining the depth value corresponding to each pixel in any image that meets the third preset condition, determining the area where the pixels whose depth values are less than the preset depth value are located, and determining the sunken range of the sunken area based on the area where the pixels whose depth values are less than the preset depth value are located, and further determining the sunken depth of the sunken area based on the depth values corresponding to each pixel point in the sunken area. For example, the sunken depth of the sunken area is determined based on the maximum value of the depth values of the pixels in the sunken area.
[0200] Specifically, determining the attribute information of the raised area based on at least one image that meets the third preset condition may specifically include: determining the relationship between the raised area and the camera based on at least one image that meets the third preset condition, and determining the position information of the raised area based on the position information of the camera and the relationship between the raised area and the camera; extracting features of the raised area, and determining the raised type of the raised area, the raised area range of the raised area, and the raised height of the raised area based on the extracted features.
[0201] For the embodiment of the present application, the method of determining the position of the raised area is similar to the method of determining the position information of the recessed area described above, and will not be repeated in the embodiment of the present application.
[0202] Furthermore, determining the position information of the raised area can be performed before determining the raised type, raised range and raised height of the raised area, or after determining the raised type, raised range and raised height of the raised area, or simultaneously with determining the raised type, raised range and raised height of the raised area, which is not limited in the embodiments of the present application.
[0203] Furthermore, in the embodiment of the present application, by extracting features from the image of the raised area, brightness features, color features, and texture features are extracted, and then the type of raised area, the range of raised area, and the height of raised area are determined according to the brightness features and color features. In the embodiment of the present application, the type of raised area may mainly include: road surface raised area and non-road surface raised area. In the embodiment of the present application, road surface raised area is used to indicate road surface defects, and non-road surface raised area may be leaves, soil clods, etc. that have fallen on the road surface, and is not used to indicate road surface defects.
[0204] Furthermore, after the pavement defect information is determined, a corresponding highway maintenance strategy is determined based on the pavement defect information, which may specifically include: obtaining vehicle information and pavement thickness information of the road section with pavement defects; determining the highway maintenance strategy based on the pavement defect information, pavement thickness information and vehicle information of the road section with pavement defects.
[0205] For the embodiment of the present application, the mapping relationship between each highway and the road surface thickness is pre-stored, and even the mapping relationship between each road section and the road surface thickness can be pre-stored. After the road section with road surface defects is determined, the road surface thickness with road surface defects is determined. In addition to pre-storing the road surface thickness corresponding to each highway, the road surface thickness can also be determined by a network model, or by other image processing methods.
[0206] Furthermore, after obtaining the surveillance video of the preset road section, the traffic volume of the preset road section can be determined, and the traffic volume corresponding to the preset road section in each time period can also be determined. In the embodiment of the present application, the method of obtaining the traffic volume is not limited.
[0207] Furthermore, after obtaining the vehicle information and the road thickness information of the road section with road defects, the road maintenance strategy is determined through the trained network model based on the road defect information, the road thickness information and the vehicle information of the road section with road defects. Furthermore, the road maintenance strategy determined under the current road defect information, the road thickness information and the vehicle information of the road section with road defects can be recorded in real time, and the trained network model can be updated based on this to obtain a more accurate model, thereby improving the accuracy of the road maintenance strategy determined based on the model.
[0208] Among them, highway maintenance strategies include: the time of pavement maintenance, the location of pavement maintenance, the tools of pavement maintenance, the materials of pavement maintenance and the time required to complete pavement maintenance.
[0209] The above embodiment introduces a smart city highway maintenance method from the perspective of method flow, and the following embodiment introduces a smart city highway maintenance device from the perspective of a module or unit. Please refer to the following embodiment for details.
[0210] The present application embodiment provides a smart city road maintenance device, such as Figure 2 As shown, the smart city highway maintenance device 20 may include: an acquisition module 21, a first determination module 22, a screening module 23, a grayscale processing module 24, an identification module 25, a second determination module 26, a third determination module 27 and a fourth determination module 28, wherein:
[0211] The acquisition module 21 is used to acquire the surveillance video corresponding to the preset road section.
[0212] The first determination module 22 is used to determine multimedia information including road surface information and multimedia information including vehicle information based on the monitoring video corresponding to the preset road section.
[0213] The screening module 23 is used to screen out at least one piece of image information from the multimedia information containing the road surface.
[0214] The grayscale processing module 24 is used to perform grayscale processing on at least one piece of image information to obtain grayscale processed image information.
[0215] The identification module 25 is used to perform speed identification and / or driving route identification on the multimedia information containing the vehicle information to obtain a speed identification result and / or a driving route result.
[0216] The second determination module 26 is used to determine whether there are defects in the road surface of the preset road section based on at least one of the speed recognition result and the driving route result, and the image information after grayscale processing.
[0217] The third determination module 27 is used to determine road surface defect information when a defect exists.
[0218] The road surface defect information includes: road surface defect type information and road surface defect location information.
[0219] The fourth determination module 28 is used to determine the corresponding highway maintenance strategy based on the road surface defect information.
[0220] Specifically, the first determination module 22, the second determination module 26, the third determination module 27 and the fourth determination module 28 may be the same determination module, may be different determination modules, or may be partially the same determination module, which is not limited in the embodiments of the present application.
[0221] In a possible implementation of the embodiment of the present application, when the second determination module 26 determines whether there are defects in the road surface of the preset road section based on the image information after grayscale processing, it is specifically used to:
[0222] Determine the pixel value corresponding to each pixel in the image information after grayscale processing;
[0223] Convert the grayscale processed image information into a depth image;
[0224] Determine whether the current road surface has defects based on the pixel values corresponding to each pixel and the depth image.
[0225] In another possible implementation of the embodiment of the present application, the speed recognition result includes: speed change information of at least one vehicle during driving, and the driving route result includes: driving route information corresponding to at least one vehicle;
[0226] When the second determination module 26 determines whether there are defects on the road surface of the preset road section based on the speed recognition result and the driving route result, it is specifically used to:
[0227] Determining a road section that meets a first preset condition based on speed change information of at least one vehicle during driving;
[0228] Determining actual driving route information corresponding to at least one vehicle in a road section that meets a first preset condition;
[0229] Determine the offset of the actual driving route;
[0230] If the deviation of the actual driving route meets the second preset condition, it is determined that there is a defect in the road surface of the preset road section;
[0231] Among them, the road section that meets the first preset condition includes: the road section where the speed drop amplitude is greater than the preset amplitude; the second preset condition includes: the offset of the driving route is greater than the preset offset.
[0232] In another possible implementation of the embodiment of the present application, when determining the offset of the actual driving route of any vehicle, the second determination module 26 is specifically used to:
[0233] Identifying lane lines in a road section that meets a first preset condition; and / or,
[0234] Identifying a lane edge line in a road section that meets a first preset condition; and / or,
[0235] identifying the shape of a road section that meets a first preset condition;
[0236] Determine the driving direction of any vehicle at a preset reference point and the position information of the preset reference point, where the preset reference point is the reference point corresponding to when any vehicle enters a road section that meets the first preset condition;
[0237] Predicting a driving route based on at least one of a lane line, a lane edge line, and a shape of a road section that meets a first preset condition, a driving direction of any vehicle at a preset point, and position information of a preset reference point;
[0238] Based on the predicted driving route and the actual driving route, the offset of the actual driving route of any vehicle is determined.
[0239] In another possible implementation of the embodiment of the present application, when the second determination module 26 determines the offset of the actual driving route of any vehicle based on the predicted driving route and the actual driving route, it is specifically used for at least one of the following:
[0240] Determine an offset between each first reference point and each corresponding second reference point, and determine an offset of an actual driving route of any vehicle based on the offset between each first reference point and each corresponding second reference point, the first reference point being a reference point on the predicted driving route, and the second reference point being a reference point on the actual driving route;
[0241] Determine the curvature information of the predicted driving route and the curvature information of the actual driving route, and determine the offset of the actual driving route of any vehicle based on the position information of the preset reference point, the curvature information of the predicted driving route and the curvature information of the actual driving route.
[0242] In another possible implementation of the embodiment of the present application, when determining the road surface defect information, the third determination module 27 is specifically used to:
[0243] When the speed decrease amplitude is greater than the preset amplitude, and / or the offset of the actual driving route is not within the preset offset range, a first position is determined, the first position being a position where the speed decrease amplitude is greater than the preset amplitude and / or the offset of the actual driving route is not within the preset offset range;
[0244] Based on the first position, at least one image that meets a third preset condition is selected from the images, and based on the at least one image that meets the third preset condition, it is predicted whether there is a raised area and / or a sunken area on the current road surface, wherein the image that meets the third preset condition includes: an image that includes the current road surface;
[0245] When there are raised areas and / or sunken areas, the current defect information is determined to be a raised type and / or a sunken type, and the attribute information of the raised area and / or the attribute information of the sunken area is determined. The attribute information of the raised area includes: the position information corresponding to the raised area, the raised area range of the raised area, and the raised height of the raised area; the attribute information of the sunken area includes: the position information corresponding to the sunken area, the sunken range of the sunken area, and the sunken depth of the sunken area.
[0246] In another possible implementation of the embodiment of the present application, when the third determination module 27 determines the attribute information of the sunken area based on at least one image that meets the third preset condition, it is specifically used to:
[0247] Determine a positional relationship between the recessed area and the camera based on at least one image that meets a third preset condition, and determine position information of the recessed area based on the position information of the camera and the positional relationship between the recessed area and the camera;
[0248] Performing gradient detection on at least one image that meets the third preset condition to obtain gradient information, and performing non-maximum suppression processing on the gradient information to obtain a processing result;
[0249] The concave range and the concave depth of the concave area are determined based on the processing result.
[0250] In another possible implementation of the embodiment of the present application, when the third determination module 27 determines the attribute information of the raised area based on at least one image that meets the third preset condition, it is specifically used to:
[0251] Determine the relationship between the raised area and the camera based on at least one image that meets the third preset condition, and determine the position information of the raised area based on the position information of the camera and the relationship between the raised area and the camera;
[0252] Features are extracted from the raised area, and based on the extracted features, a raised type of the raised area, a raised area range of the raised area, and a raised height of the raised area are determined.
[0253] In another possible implementation of the embodiment of the present application, when the fourth determination module 28 determines the corresponding highway maintenance strategy based on the road surface defect information, it is specifically used to:
[0254] Obtain vehicle information and road thickness information on road sections with road defects;
[0255] Based on the road surface defect information, road surface thickness information and vehicle information of the road section with road surface defects, the highway maintenance strategy is determined. The highway maintenance strategy includes: the time of road surface maintenance, the location of road surface maintenance, the tools of road surface maintenance, the materials of road surface maintenance and the time required to complete road surface maintenance.
[0256] The embodiment of the present application provides a smart city highway maintenance device. Compared with the related art, the embodiment of the present application processes the monitoring video corresponding to the preset road section to obtain multimedia information including the road surface and multimedia information including vehicle information, performs grayscale processing on the multimedia information including the road surface to obtain a grayscale processed image, and performs vehicle speed identification and / or vehicle driving route identification on the multimedia information including the vehicle information to obtain a speed identification result and / or a driving route result. Based on this information, it is possible to determine whether there are defects in the road surface of the preset road section and the corresponding road surface defect information, so that a corresponding highway maintenance strategy can be determined according to the road surface defect information, thereby improving the efficiency of discovering highway damage and further reducing the cost of highway maintenance.
[0257] An electronic device is provided in an embodiment of the present application, such as Figure 3 As shown, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 5003. The processor 301 and the memory 303 are connected, such as through a bus 5002. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0258] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0259] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0260] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0261] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.
[0262] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0263] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer is run on a computer, the computer can execute the corresponding content in the above method embodiment. Compared with the related art, the embodiment of the present application processes the monitoring video corresponding to the preset road section to obtain multimedia information containing road surface and multimedia information containing vehicle information, and grayscale processes the multimedia information containing road surface to obtain a grayscale processed image, and performs vehicle speed recognition and / or vehicle driving route recognition on the multimedia information containing vehicle information to obtain speed recognition results and / or driving route results, and can determine whether there are defects in the road surface of the preset road section and the corresponding road surface defect information based on this information, so that the corresponding highway maintenance strategy can be determined according to the road surface defect information, thereby improving the efficiency of highway damage detection, and further reducing the cost of highway maintenance.
[0264] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0265] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A smart city highway maintenance method, characterized in that: include: Get the surveillance video corresponding to the preset road section; Determining multimedia information including road surface information and multimedia information including vehicle information based on the surveillance video corresponding to the preset road section; Filtering at least one piece of image information from the multimedia information containing the road surface; Performing grayscale processing on the at least one piece of image information to obtain grayscale processed image information; Performing speed recognition and / or driving route recognition on the multimedia information containing the vehicle information to obtain a speed recognition result and / or a driving route result; Based on the speed recognition result and the driving route result, and the grayscale processed image information, determining whether there are defects in the road surface of the preset road section; If there is a defect, determining road surface defect information, the road surface defect information including: road surface defect type information and road surface defect location information; Determining a corresponding highway maintenance strategy based on the road surface defect information; The speed recognition result includes: speed change information of at least one vehicle during driving, and the driving route result includes: driving route information corresponding to at least one vehicle; based on the speed recognition result and the driving route result, determining whether there is a road surface defect in a preset section includes: determining a section that meets a first preset condition based on the speed change information of the at least one vehicle during driving; determining the actual driving route information corresponding to at least one vehicle in the section that meets the first preset condition; determining the offset of the actual driving route; if the offset of the actual driving route meets the second preset condition, determining that there is a road surface defect in the preset section; wherein the section that meets the first preset condition includes: a section corresponding to a speed drop greater than a preset amplitude; the second preset condition includes: the offset of the driving route is greater than a preset offset; Determining the offset of the actual driving route of any vehicle, including: identifying a lane line in the road section that meets the first preset condition; and / or, identifying a lane edge line in the road section that meets the first preset condition; and / or, identifying the shape of the road section that meets the first preset condition; determining the driving direction of any vehicle at a preset reference point and the position information of the preset reference point, wherein the preset reference point is a reference point corresponding to when any vehicle enters the road section that meets the first preset condition; predicting a driving route based on at least one of the lane line, the lane edge line and the shape of the road section that meets the first preset condition, the driving direction of any vehicle at a preset point and the position information of the preset reference point; determining the offset of the actual driving route of any vehicle based on the predicted driving route and the actual driving route; The method of determining the offset of the actual driving route of any vehicle based on the predicted driving route and the actual driving route includes at least one of the following: determining the offset between each first reference point and each corresponding second reference point, and determining the offset of the actual driving route of any vehicle based on the offset between each first reference point and each corresponding second reference point, the first reference point being a reference point on the predicted driving route, and the second reference point being a reference point on the actual driving route; determining the curvature information of the predicted driving route and the curvature information of the actual driving route, and determining the offset of the actual driving route of any vehicle based on the position information of the preset reference point, the curvature information of the predicted driving route and the curvature information of the actual driving route.
2. The method according to claim 1, characterized in that Determining whether there are defects on the road surface of a preset road section based on the grayscale processed image information includes: Determine the pixel value corresponding to each pixel in the image information after the grayscale processing; Converting the grayscale processed image information into a depth image; Determine whether the current road surface has defects based on the pixel values corresponding to the pixels and the depth image.
3. The method according to claim 1, characterized in that The determining of road surface defect information includes: If the speed drop is greater than a preset range, and / or the offset of the actual driving route is not within a preset offset range, a first position is determined, where the speed drop is greater than a preset range and / or the offset of the actual driving route is not within a preset offset range; Based on the first position, at least one image that meets a third preset condition is selected from the images, and based on the at least one image that meets the third preset condition, it is predicted whether there is a raised area and / or a sunken area on the current road surface, wherein the image that meets the third preset condition includes: an image that includes the current road surface; If it exists, determine that the current defect information is a convex type and / or a concave type, and determine the attribute information of the convex area and / or the attribute information of the concave area, the attribute information of the convex area includes: the position information corresponding to the convex area, the convex area range of the convex area, and the convex height of the convex area; the attribute information of the concave area includes: the position information corresponding to the concave area, the concave range of the concave area, and the concave depth of the concave area.
4. The method according to claim 3, characterized in that Determining attribute information of the sunken area based on at least one image that meets a third preset condition includes: Based on the at least one image satisfying the third preset condition, determining a positional relationship between the recessed area and the camera, and determining position information of the recessed area based on the position information of the camera and the positional relationship between the recessed area and the camera; Performing gradient detection on the at least one image that meets the third preset condition to obtain gradient information, and performing non-maximum suppression processing on the gradient information to obtain a processing result; The depression range of the depression area and the depression depth of the depression area are determined based on the processing result.
5. The method according to claim 3, characterized in that: Determining attribute information of the raised area based on at least one image that meets a third preset condition includes: Based on the at least one image satisfying the third preset condition, determining a relationship between the raised area and the camera, and determining position information of the raised area based on the position information of the camera and the relationship between the raised area and the camera; Feature extraction is performed on the raised area, and based on the extracted features, a raised type of the raised area, a raised area range of the raised area, and a raised height of the raised area are determined.
6. The method according to claim 1, characterized in that The determining of a corresponding highway maintenance strategy based on the road surface defect information includes: Obtain vehicle information and road thickness information on road sections with road defects; Based on the pavement defect information, the pavement thickness information and the vehicle information of the road section with pavement defects, a highway maintenance strategy is determined, and the highway maintenance strategy includes: pavement maintenance time, pavement maintenance location, pavement maintenance tools, pavement maintenance materials and the time required to complete pavement maintenance.
7. A computer device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, and the at least one application is configured to: execute a smart city highway maintenance method according to any one of claims 1 to 6.
