Road disease location determination method, device, electronic device and readable storage medium
By combining GPS positioning and distance information of road markers, the target location of road diseases is calculated, which solves the problem of low GPS positioning accuracy and improves the positioning accuracy and treatment efficiency of road diseases.
Patent Information
- Application Number
- CN202410921019.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-09
AI Technical Summary
In the existing technology, when locating road diseases through GPS, the location accuracy is low due to occlusion and other reasons, making it difficult to accurately determine the location of road diseases and affecting the efficiency of treatment.
When a road disease is detected, the road marker associated with the disease is determined, the distance between the disease detection equipment and the marker and the distance between the disease and the marker are obtained, and combined with the distance number on the marker, the target location of the road disease is calculated to improve Positioning accuracy.
Based on GPS positioning, the indirect positioning of the relationship between road markers and disease locations is achieved, which improves the positioning accuracy of road diseases, reduces position drift, and improves the accuracy of treatment.
Smart Images

Figure CN118565404B
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning, and in particular to a method, device, electronic device and readable storage medium for determining the location of road damage. Background Art
[0002] As the number of vehicles continues to increase, road damage poses an increasing threat to the safety of people and vehicles. Specifically, road damage refers to cracks, fissures, potholes, ruts, waves, etc. caused by various reasons on roads in various scenarios (such as highways, national roads, provincial roads, rural roads, etc.).
[0003] In order to treat road damage, it is necessary to inspect the road and determine the location of the road damage after detecting the road damage. After that, a road damage treatment worker (if the road damage is a pothole, the road damage treatment worker may be a road repair worker) arrives at the location to treat the road damage.
[0004] In actual applications, high-precision GPS (Global Positioning System) positioning is used to determine the GPS coordinates as the disease location. However, the disease location determined in this way may drift seriously relative to the actual disease location, such as drifting by tens of meters, due to reasons such as the positioning device used to determine the GPS coordinates being blocked. This results in a very low accuracy of the disease location. Summary of the invention
[0005] In view of this, the present application provides a method, device, electronic device and readable storage medium for determining the location of road damage.
[0006] Specifically, the present application is implemented through the following technical solutions:
[0007] According to a first aspect of an embodiment of the present application, a method for determining a road defect location is provided, comprising:
[0008] When a road defect is detected, a road marker associated with the road defect is determined, and a first distance between the defect detection device and the road marker is obtained, and a second distance between the defect detection device and the road defect is obtained;
[0009] Obtaining a first distance number recorded on the road marker, and determining a first position of the road defect on a target road according to the first distance, the second distance, and the first distance number; wherein the target road is the road where the road defect is located; and the first distance number is used to identify the position of the road marker on the target road;
[0010] The first position and the second position are used as the target position of the road damage; wherein the second position is the position of the road damage determined based on GPS.
[0011] According to a second aspect of an embodiment of the present application, a device for determining a road defect location is provided, the device comprising:
[0012] an acquisition unit, configured to, when a road defect is detected, determine a road marker associated with the road defect, acquire a first distance between a defect detection device and the road marker, and acquire a second distance between the defect detection device and the road defect;
[0013] a determination unit, configured to obtain a first distance number recorded on the road marker, and determine a first position of the road defect on a target road according to the first distance, the second distance, and the first distance number; wherein the target road is the road where the road defect is located; and the first distance number is used to identify the position of the road marker on the target road;
[0014] A processing unit is used to use the first position and the second position as the target position of the road damage; wherein the second position is the position of the road damage determined based on GPS.
[0015] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method provided in the first aspect.
[0016] According to a fourth aspect of an embodiment of the present application, a machine-readable storage medium is provided, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the method provided in the first aspect is implemented.
[0017] The method for determining the location of road defects in an embodiment of the present application determines, when a road defect is detected, a road marker associated with the road defect is determined, and a first distance between the defect detection device and the road marker is obtained, as well as a second distance between the defect detection device and the road defect, a first distance number recorded on the road marker is obtained, and a first location of the road defect on a target road is determined based on the first distance, the second distance and the first distance number. Furthermore, the first location and the second location of the road defect determined based on GPS can be used as the target location of the road defect, thereby indirectly locating the first location of the road defect on the road based on the position of the road defect determined based on GPS and the positional relationship between the road marker and the road defect. Compared with the method of locating road defects through GPS in traditional solutions, the accuracy of locating road defects is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flow chart of a method for determining a road hazard location according to an exemplary embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of the positional relationship between a road, a disease detection device, a road disease, and a road marker, shown in an exemplary embodiment of the present application;
[0020] Figure 3a It is a structural schematic diagram of a 100-meter pile shown in an exemplary embodiment of the present application;
[0021] Figure 3b It is a structural schematic diagram of a mileage sign shown in an exemplary embodiment of the present application;
[0022] Figure 4 is a schematic structural diagram of a device for determining a road defect location shown in an exemplary embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of the hardware structure of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first leg may also be referred to as the second leg, and similarly, the second leg may also be referred to as the first leg.
[0025] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, some terms that may be involved in the embodiments of the present application are explained below:
[0026] Road damage: refers to cracks, fissures, potholes, ruts, wave hugs and other damages caused by various reasons on roads in various scenarios (highways, national roads, provincial roads, rural roads, etc.).
[0027] GPS positioning: The Global Positioning System is a high-precision radio navigation positioning system based on artificial satellites, providing accurate geographic location, driving speed and precise time information.
[0028] Milepost (also called milepost or milestone): indicates the mileage, road number or name of a highway or city expressway, etc. Mileposts are set up every one kilometer.
[0029] Hundred-meter sign: It is set between the mileage signs on both sides of the highway or urban expressway, and there is one Hundred-meter sign every 100 meters.
[0030] Hundred-meter post: indicates the distance of 100 meters on the road, set between the mileage signs on the right side of the road, one every 100 meters. The 100-meter post is a square cylinder, and the corresponding surface is marked with a 100-meter serial number as needed. The cylinder is white, with red letters on national roads, blue letters on provincial roads, black letters on county roads, and black letters on township roads.
[0031] It can be seen that the functions of the 100-meter signs and the 100-meter posts are similar. This article takes the 100-meter posts as an example for explanation, but it should be recognized that for roads where 100-meter signs are deployed instead of 100-meter posts, the implementation principle is similar.
[0032] In order to enable those skilled in the art to better understand the technical solution provided in the embodiments of the present application, the following is a more detailed description of the reasons why position drift may occur when determining the location of a disease using high-precision GPS (hereinafter referred to as GPS positioning) in actual applications:
[0033] When using GPS positioning, positioning is less accurate when there are obstructions (such as buildings), and the location of the disease determined by this method has a large deviation, causing the location of the disease to drift. Especially in some mountainous areas or tunnels, the GPS signal is particularly weak and the drift is more serious.
[0034] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0035] See also Figure 1 , is a flow chart of a method for determining the location of road damage provided in an embodiment of the present application, such as Figure 1 As shown, the method for determining the location of road damage may include the following steps:
[0036] Step S100: When a road defect is detected, a road marker associated with the road defect is determined, and a first distance between the defect detection device and the road marker is obtained, and a second distance between the defect detection device and the road defect is obtained.
[0037] Among them, road damage can be warned by road inspectors and they can give instructions for detecting road damage. The road damage can also be detected by corresponding models with the assistance of corresponding detection equipment. The corresponding model can be a model based on CNN (Convolutional Neural Network), YOLO (an object detection algorithm), SSD (Single Shot MultiBox Detector), etc.
[0038] It should be noted that the road sign associated with the road defect refers to the road sign set on the right side of the vehicle travel direction of the road where the road defect is located, that is, the association between the two lies in the road.
[0039] See also Figure 2 , is a schematic diagram of the positional relationship between a road, a disease detection device, a road disease, and a road marker provided in an embodiment of the present application, such as Figure 2 As shown, the disease detection device 204 detects a road disease 202 on the road 201 , and there is a road marker 203 on the right side of the road 201 .
[0040] Exemplarily, the disease detection equipment includes, but is not limited to, a camera device handheld by a road inspector, a camera device mounted on a vehicle, or a camera device mounted on an unmanned aerial vehicle. When conducting a road inspection, the first location of the road disease on the road is determined through the video recorded or the image taken by the camera device, wherein the camera device may include a camera, a mobile phone, etc.
[0041] Among them, when the disease detection equipment is a camera device held by road inspectors, the road inspectors generally conduct inspections on foot; when the disease detection equipment is a camera device mounted on a vehicle or a camera device carried on a drone, it is generally an automatic inspection.
[0042] The data obtained by the camera device can be processed locally, such as directly processed by the camera device or indirectly processed by a local processing device that is communicatively connected to the camera device; the data obtained by the camera device can also be processed on a cloud server.
[0043] Accordingly, the processing device can serve as the execution subject of the embodiment of the present application, that is, the various steps of the method for determining the location of road defects are executed on the processing device; the execution subject of the embodiment of the present application can also be the cloud server, that is, the various steps of the method for determining the location of road defects are executed on the cloud server, and the processing device is used to collect data (such as the first distance, video, etc.) and upload it to the cloud server, and receive the results returned by the cloud server.
[0044] Among them, road markers are used to identify some relevant information of the road, such as the route number, identification information for identifying the road, etc. Generally, the road markers are set on the right side of the road in the form of road posts or road signs. Among them, roads include but are not limited to expressways, national roads, provincial roads, county roads, and township roads.
[0045] It can be understood that when a road disease is detected, there is a definite positional relationship between the disease detection device and the road disease and road markers, wherein there is a first distance between the disease detection device and the road marker, and the first distance can be the straight-line distance between the two, or the projection distance of the straight-line distance in the x-direction or y-direction on the plane rectangular coordinate system; there is a second distance between the disease detection device and the road disease, and correspondingly, the second distance can be the straight-line distance between the two, or the projection distance of the straight-line distance in the x-direction or y-direction on the plane rectangular coordinate system. Among them, one coordinate axis of the plane rectangular coordinate system is parallel to the road, and the other coordinate axis is perpendicular to the road. This embodiment does not limit whether the first distance and the second distance are specifically straight-line distances or projection distances.
[0046] It should be noted that since road defects are generally located in front of the moving direction of the defect detection device, that is, the road defects appear in the field of view of the defect detection device, the second distance is generally short, and the straight-line distance or projection distance can be directly used to determine the second distance. The first distance may be shorter or longer. When determining the first distance, it is necessary to combine the positional relationship between the road marker, the road defect and the defect detection device. The positional relationship exists in the following three situations:
[0047] Case 1: The road sign is between the road defect and the defect detection equipment. The position relationship can be referred to Figure 2 .
[0048] Case 2: Road damage is between road markings and damage detection equipment.
[0049] Case 3: The defect detection equipment is between the road defect and the road marking.
[0050] For case 1 and case 2, road damage and road markings generally appear in the field of view of the damage detection device, and accordingly, the distance between them is relatively short. That is, the above straight-line distance or projection distance can be directly used to determine the first distance.
[0051] Regarding the third case, the third case is more special. Since the road marker is behind the moving direction of the disease detection equipment, it generally does not appear in the field of view of the disease detection equipment. This makes the distance between the road marker and the disease detection equipment may be short or long, such as 20m, 800m (the road marker is a mileage sign, and there is no mileage sign in the field of view of the disease detection equipment). When the distance is long, calculating the first distance by the calculation method of the above-mentioned case one or case two may result in poor accuracy of the first distance, because the road disease management personnel need to find the road disease based on the first distance in the end, and the road is generally rarely paved in a straight line, and there are generally curves, that is, the road generally has at least one curved section. If the first distance is determined directly by the straight-line distance between the road marker and the disease detection equipment, after the road disease management personnel find the road marker, it will result in the road disease management personnel still being far away from the road disease after moving the straight-line distance, so the accuracy of the location of the road disease will be very low.
[0052] In order to solve this problem, the applicant took into account the characteristics of curved roads and, when the distance between the road marker and the disease detection equipment is long, used the distance between the road marker and the disease detection equipment as the first distance.
[0053] Step S110, obtaining the first journey number recorded on the road sign, and determining the first position of the road defect on the target road based on the first distance, the second distance and the first journey number; wherein the target road is the road where the road defect is located; and the first journey number is used to identify the position of the road sign on the target road.
[0054] The first distance number is recorded on the road marker, and is used to identify the distance between the road marker and the target reference object (referred to herein as the fourth distance), thereby identifying the position of the road marker on the target road.
[0055] Exemplarily, the target reference object is specifically determined based on a road marker. For example, if the road marker is a 100-meter post, the target reference object is a mileage sign, and the fourth distance is the distance between the 100-meter post (or the 100-meter sign, collectively referred to as the 100-meter post in this article) and the mileage sign. For another example, if the road marker is a mileage sign, the target reference object is the starting point of the road, and the fourth distance is the distance between the mileage sign and the starting point.
[0056] Among them, on the road, a mileage sign is set every 1000m, and 9 hundred-meter stakes are set between every two mileage signs, that is, the interval between two adjacent hundred-meter stakes is 100m. It can be understood that the hundred-meter stakes are used to subdivide the distance between the mileage signs. The mileage sign can provide the distance between the current position and the starting point on the road. The hundred-meter stake can further supplement the distance between the current position and the starting point, that is, it is used to improve the accuracy of the distance, specifically, to improve the accuracy of the mileage sign 1000m to 100m of the hundred-meter stake. Of course, road markers can also be set in other forms, as long as the first distance number is recorded, and this embodiment is not limited.
[0057] For example, see Figure 3a , is a schematic diagram of a 100-meter pile provided in an embodiment of the present application, such as Figure 3a As shown, the first distance number is recorded on the 100-meter pile ( Figure 3a (3 in the figure).
[0058] For example, see Figure 3b , is a schematic diagram of the structure of a milepost provided in an embodiment of the present application, such as Figure 3b As shown, the mileage sign has the first trip number ( Figure 3b 230 in the figure), the mileage plate also records identification information ( Figure 3b G56 in the figure).
[0059] It can be understood that as a target reference object of a 100-meter pile, the milepost is generally a milepost with a smaller number among the mileposts adjacent to the 100-meter pile. For example, assuming that the mileposts adjacent to the 100-meter pile include mileposts 58 and 59, among which the milepost with a distance number of 58 has a smaller distance number, the milepost with a distance number of 58 is the target reference object of the 100-meter pile.
[0060] The first distance number is a simplified identifier of the fourth distance, which is convenient for recording and for people to obtain information from road markers. For example, if the road marker is a 100-meter post, the first distance number is 3, which means that the fourth distance between the 100-meter post and the target reference object, i.e., the corresponding milepost, is 300 meters; if the road marker is a milepost, the first distance number is 230, which means that the fourth distance between the milepost and the target reference object, i.e., the starting point of the road, is 230 kilometers.
[0061] When calculating the distance between a road sign and a road defect (hereinafter referred to as the third distance) by using the first distance and the second distance, the first distance and the second distance are straight-line distances, and the third distance is the third side of a triangle. The triangle is constructed with the positions of the road sign, the road defect and the defect detection equipment as vertices, and the lengths of the other two sides of the triangle are the first distance and the second distance respectively. In addition, the angles of the triangle can also be obtained by measurement. The specific process of calculating the length of the third side based on the lengths of the two sides and the known angle will not be repeated here.
[0062] The first distance and the second distance are projection distances, and the third distance is the length of the projection of the third side on an axis in the plane rectangular coordinate system parallel to the road. In other words, the projection distance is the length of the projection of the line connecting the road sign and the road disease along the road. If the direction of the road is from west to east, the length of the line is 8m, and the direction is northeast, then the length of the line projected from the northeast to the direction from west to east is 4m. In addition, the sum of the first distance and the second distance can be directly used as the third distance.
[0063] In summary, the first position includes a first distance number and a third distance. The first distance number can be a hundred-meter post or a mileage sign.
[0064] For example, if the road marker is a milepost, the corresponding first route number is 230, and the third distance is a straight-line distance with a value of 15, then the first position can be expressed as (K230+15), where K represents km, and (K230+15) represents that the straight-line distance between the road damage and the milepost with the first route number of 230 is 15m. For another example, if the road marker is a hundred-meter post, the corresponding first route number is 3, and the third distance is a projection distance with a value of 5, then the first position can be expressed as (3+5), and (3+5) represents that the projection distance between the road damage and the hundred-meter post with the first route number of 3 is 5m. Of course, the first position can also be expressed in other ways such as a two-dimensional vector (such as (K230,15)), which is not limited in this embodiment.
[0065] It should be noted that, in specific implementation, the third distance can be determined as a projection distance or a straight-line distance based on the positional relationship between the road marker and the road defect. If the distance between the road marker and the road defect in the direction perpendicular to the road is greater than or equal to a preset distance threshold, the third distance is determined to be a projection distance; if the distance between the road marker and the road defect in the direction perpendicular to the road is less than the preset distance threshold, the third distance is determined to be a straight-line distance. The preset distance threshold can be set as needed, and this embodiment does not limit it.
[0066] Accordingly, when the third distance is output to the designated terminal, the third distance can be identified by corresponding identification information, so that the road damage management personnel can use the third distance accurately according to the identification information. The designated terminal can be a device used by the road damage management personnel to assist in finding the road damage when performing road management.
[0067] Optionally, in order to more clearly indicate the location of road defects on the road, it is also possible to consider indicating in the first position whether the road defect is in front of or behind the road sign in the direction of the road. If the direction of the road is from west to east, it is possible to indicate whether the road defect is in the east or west of the road sign.
[0068] If the road marker is a mileage sign, the corresponding first route number is 230, the third distance is 15m, the direction of the road is from west to east, and the road damage is to the east of the road marker, then the first position can be expressed as (K230, +15), which indicates that the road damage is 15m in front of the mileage sign with the route number of 230; if the road damage is to the west of the road marker, then the first position can be expressed as (K230, -15), which indicates that the road damage is 15m behind the mileage sign with the route number of 230.
[0069] The first route number may be identified from road signs through techniques including but not limited to OCR (Optical Character Recognition) technology, machine learning models, deep learning models, and image and text recognition technology based on specific applications.
[0070] Step S120, taking the first position and the second position as the target position of the road damage; wherein the second position is the position of the road damage determined by GPS.
[0071] Exemplarily, the second location is a GPS coordinate, which is the longitude and latitude of the road defect, such as the GPS coordinate is (29.11342, 115.44523).
[0072] Among them, how to determine the GPS coordinates based on GPS can refer to the relevant existing technology, and this embodiment will not be repeated.
[0073] Exemplarily, the target position may be a combination of the first position and the second position. For example, if the first position is (K230+15) and the second position is (29.11342, 115.44523), the target position may be expressed as ((29.11342, 115.44523)+K230+15).
[0074] In summary, since the second position may drift relative to the actual position of the road damage, after determining the approximate position of the road damage through the second position, the road damage management personnel can first find the approximate area where the road damage is located based on the second position, and then find the corresponding road sign based on the first distance number in the first position, and then accurately find the road damage based on the third distance between the road sign and the road damage, which improves the accuracy of the target position of the road damage.
[0075] Exemplarily, the road marker is a mileage sign or a hundred-meter post. It can be understood that since a hundred-meter post is set every 100 meters and a mileage sign is set every 1000 meters, and the field of view of the camera device is generally less than 100 meters, there will generally be no mileage sign in the field of view when there is a hundred-meter post, and there will be no hundred-meter post when there is a mileage sign. Even when the disease detection device is between two hundred-meter posts, or when the hundred-meter post and / or mileage sign are blocked by obstacles (such as vehicles), there will be neither a hundred-meter post nor a mileage sign in the field of view, that is, both the hundred-meter post and the mileage sign are outside the field of view. Among them, within the field of view means that the disease detection device can detect the hundred-meter post or mileage sign from its field of view, and outside the field of view means that the disease detection device does not detect the hundred-meter post or mileage sign from its field of view.
[0076] Among them, whether there is a hundred-meter post or a mileage sign in the field of view can be detected by the target detection model. The detection process is explained below and will not be repeated here.
[0077] In the case where there is a mileage sign (which can be called the first mileage sign) within the field of view of the disease detection equipment, the first mileage sign can be directly used as a road marker; in the case where there is a hundred-meter post (which can be called the first hundred-meter post) within the field of view of the disease detection equipment, the first hundred-meter post can be directly used as a road marker; in the case where there is no mileage sign and no hundred-meter post within the field of view of the disease detection equipment, the second mileage sign adjacent to the disease detection equipment or the second hundred-meter post adjacent to the disease detection equipment can be used as a road marker.
[0078] Among them, adjacent means adjacent in geographical location, that is, there are no other hundred-meter posts or mileage signs between the adjacent second hundred-meter post or the adjacent second mileage sign and the disease detection equipment. For example, the road marker is the second hundred-meter post, and there are hundred-meter posts with distance numbers 2, 3 and 4, and the disease detection equipment is between the hundred-meter post with distance number 2 and the hundred-meter post with distance number 3, then the second hundred-meter post can be the hundred-meter post with distance number 2, and cannot be the hundred-meter post with distance number 4.
[0079] For example, when determining the adjacent second hundred-meter post or the adjacent second milepost, since it is outside the field of view of the disease detection device, the second hundred-meter post or the second milepost cannot be detected at the same time as the road disease is detected. At this time, it can be determined by the hundred-meter post or milepost detected at other times except the time when the road disease is detected, specifically, it can be determined based on the third hundred-meter post or the third milepost detected most recently. Among them, the most recent detection is the last detection before the road disease is found.
[0080] It should be noted that the third 100-meter post or the third milepost may or may not be geographically adjacent to the disease detection equipment. The latter is caused by missed detection during the detection process. For example, during the road inspection process, the distance numbers of the 100-meter posts detected are 1, 2, 3, 5, etc. It can be found that during the detection process, the 100-meter post with a distance number of 4 was not detected, but the 100-meter post actually exists, which is caused by missed detection.
[0081] Exemplary reasons for missed detection include, but are not limited to, being blocked by obstacles such as vehicles and other reasons (such as misjudgment by the detection model).
[0082] Exemplarily, for the 100-meter pile and the mileage sign, the reasons for missed detection are basically the same, and therefore, whether missed detection occurs can be determined by basically the same means.
[0083] When the road marker is the 200-meter post, whether a missed detection occurs can be determined in the following ways:
[0084] Obtain a first moving speed and a first moving duration of the disease detection device; the first moving duration is the duration for the disease detection device to move from the third position of the third 100-meter pile to the current position; based on the first moving speed and the first moving duration (for example, the product of the two), obtain a third distance for the disease detection device to move from the third position to the current position; if the third distance is greater than or equal to a first preset distance threshold, it is determined that a missed detection has occurred; if the third distance is less than the first preset distance threshold, it is determined that no missed detection has occurred.
[0085] When the road marker is the second milepost, whether missed detection occurs can be determined in the following ways:
[0086] Obtain a second moving speed and a second moving duration of the disease detection device; the second moving duration is the duration for the disease detection device to move from the fourth position of the third milepost to the current position; based on the second moving speed and the second moving duration, obtain a fourth distance for the disease detection device to move from the fourth position to the current position, for example, the fourth distance can be obtained by multiplying the second moving speed and the second moving duration; if the fourth distance is greater than or equal to the second preset distance threshold, it is determined that a missed detection has occurred; if the fourth distance is less than the second preset distance threshold, it is determined that no missed detection has occurred.
[0087] The first moving speed is the average moving speed of the disease detection device during the process of moving from the third position to the current position, and the second moving speed is the average moving speed of the disease detection device during the process of moving from the fourth position to the current position. The current position is the position where the disease detection device is located when the road disease is detected.
[0088] For the first preset distance threshold, the road marker is a 100-meter post (set at intervals of 100m on the road), and the first preset distance threshold can be set based on the 100m, such as the first preset distance threshold is 100 (or a value near 100 (such as 99.9, 100.1, etc. within an acceptable range)) m; accordingly, for the second preset distance threshold, the road marker is a mileage sign (set at intervals of 1000m on the road), and the second preset distance threshold can be set based on the 1000m, such as the second preset distance threshold is 1000 (or a value near 1000 (such as 999, 1001, etc. within an acceptable range)) m.
[0089] For example, in the case of missed detection, no further processing may be performed on the missed detection, that is, the third 100-meter post detected most recently may still be used as the second 100-meter post, or the third milepost detected most recently may still be used as the second milepost, that is, the third 100-meter post or the third milepost may be used as a road marker.
[0090] If the distance of the third hundred-meter post is numbered 2, the second distance is 10m, and the third distance is 150m, then the first distance is 150m. By taking the difference between the 150m and the 10m, the third distance can be calculated to be 140m. It can be understood that since the road deterioration is in front of the third hundred-meter post, the first position can be (2+140), and the first position indicates that the road deterioration is 140m in front of the hundred-meter post numbered 2.
[0091] For example, when there is a missed detection, the missed detection can be further processed, that is, the geographically adjacent second hundred-meter post is determined based on the third hundred-meter post, or the geographically adjacent second milepost is determined based on the third milepost. Then the second hundred-meter post or the second milepost is used as a road marker.
[0092] During further processing:
[0093] When the road marker is the second hundred-meter post, the process includes the following steps: determining the first number gain based on the third distance and the first preset distance threshold, for example, the third distance and the first preset distance threshold can be divided to obtain the first number gain; the first number gain represents the number of the fourth hundred-meter post missed by the disease detection equipment within the first moving time; obtaining the first initial distance number recorded on the third hundred-meter post; summing the first initial distance number and the first number gain to obtain the first distance number.
[0094] When the road marker is the second mileage sign, the process includes the following steps: determining a second numbering gain based on the fourth distance and the second preset distance threshold, for example, the second numbering gain can be obtained by taking the quotient of the fourth distance and the second preset distance threshold; the second numbering gain represents the number of fourth mileage signs missed by the disease detection equipment within the second moving time; obtaining the second initial distance number recorded on the third mileage sign; and summing the second initial distance number and the second numbering gain to obtain the first distance number.
[0095] It can be understood that both the third 100-meter post and the third milepost are located behind the current position of the disease detection device in the direction of the target road. For the missed 100-meter post or milepost, its distance number is greater than the initial distance number recorded on the third 100-meter post or the third milepost. Therefore, when calculating the distance number of the missed 100-meter post or milepost through the initial distance number, the distance number of the third 100-meter post or the third milepost needs to be increased.
[0096] It should be noted that for the 100-meter post, the largest journey number is 9. If the missed detection is related to three mileposts (for example, there are milepost 1, milepost 2 and milepost 3, the last detected 100-meter post is between milepost 1 and milepost 2, and the current position is between milepost 2 and milepost 3), and the calculated first journey number is greater than 10, then subtract 10 to get the final first journey number.
[0097] Taking the second 100-meter post as an example, the first initial distance number recorded on the third 100-meter post is 2, the first preset distance threshold is 100m, the first moving speed is 50km / h, and the first moving time is 0.003h, then the third distance is 0.15km, that is, 150m. From this, it can be calculated that the first number gain is 1 (where the remainder is 50), that is, the calculation formula for the first distance number is 2+1, and the result is 3, that is, the first distance number recorded on the second 100-meter post is 3.
[0098] Exemplarily, when the road marker is a hundred-meter post, the hundred-meter post may be the above-mentioned first hundred-meter post or the second hundred-meter post (referred to as the fifth hundred-meter post in the example), and the first distance number is the distance number recorded on the fifth hundred-meter post. The first position may further include a second distance number on the basis of including the third distance and the first distance number. The second distance number is recorded on the fifth milepost corresponding to the fifth hundred-meter post. The first distance number recorded on the fifth hundred-meter post represents the first distance between the fifth hundred-meter post and the fifth milepost, and the second distance number represents the second distance between the fifth milepost and the starting point of the target road.
[0099] It should be noted that, generally, the 100-meter post and the mileage sign record the first distance number and the second distance number respectively, and some 100-meter posts include both the first distance number and the second distance number. Therefore, the second distance number can also be obtained directly from the fifth 100-meter post (which is also the fifth mileage sign).
[0100] Among them, for the hundred-meter piles and mileage signs with independently set first and second distance numbers, when determining the fifth mileage sign, there may be a hundred-meter pile in the field of view of the disease detection equipment (in this case, the road marker is the above-mentioned first hundred-meter pile), and there may not be a hundred-meter pile in the field of view of the disease detection equipment (in this case, the road marker is the above-mentioned second hundred-meter pile). It can be understood that in the case where there is no hundred-meter pile in the field of view of the disease detection equipment, the third hundred-meter pile detected most recently can be determined first, and then the second hundred-meter pile can be determined based on the third hundred-meter pile, and the fifth mileage sign corresponding to the second hundred-meter pile can be determined. In the case where there is a hundred-meter pile in the field of view of the disease detection equipment, its fifth mileage sign is not in the field of view of the disease detection equipment. For the fifth mileage sign that is not in the field of view of the disease detection equipment, it can be obtained according to the method of obtaining the second mileage sign as described above, which will not be repeated here.
[0101] For ease of understanding, the following example illustrates a case where the first position includes the third distance, the first route number, and the second route number:
[0102] For example, if the first position is (K230+3+15), where "230" represents the second journey number, "3" represents the first journey number, and "15" represents the third distance, the first position indicates that the road defect is 15 meters away from the 100-meter post with the journey number 3 corresponding to the mileage sign with the journey number 230.
[0103] It can be understood that by adding the second route number in the first position, the process of finding the road damage by the road damage management personnel is made more convenient.
[0104] Exemplarily, when the first position is determined by the first route number, or by the first route number and the second route number, that is, when the road marker is a mileage sign or the road marker is associated with a mileage sign (that is, when the road marker is a 100-meter post, the mileage sign corresponding to the 100-meter post (such as the fifth mileage sign) is also determined), the identification information of the road recorded on the mileage sign can also be obtained (such as the identification information is G56, and the G56 indicates that the road is a highway numbered 56), and the identification information is output to the designated terminal. The identification information is used to assist in locating road damage, specifically, the first position can be determined by the identification information, or the identification information can be used to assist road damage management personnel in finding road damage based on the first position.
[0105] With respect to determining the first position through the identification information, specifically, the first position of the road deterioration on the road is determined based on the first distance, the second distance, the first leg number and the identification information, such as the first position is (G56+2+36), which indicates that the road deterioration is 36m away from the 100-meter post with leg number 2 on the expressway G56; or, the first position of the road deterioration on the road is determined based on the first distance, the second distance, the first leg number, the second leg number and the identification information, such as the first position is (G56+K134+2+36), which indicates that the road deterioration is 36m away from the 100-meter post with leg number 2 corresponding to the mileage sign with leg number 134 on the expressway G56.
[0106] With respect to assisting the road disease treatment personnel to find the road disease according to the first position by using the identification information, the identification information is not used as a part of the first position, and the first position is determined according to the first distance, the second distance, and the first route number, or according to the first distance, the second distance, the first route number, and the second route number. At this time, the identification information is output to the designated terminal, and the identification information is used to instruct the road disease treatment personnel to use the first position, that is, the road disease treatment personnel can obtain the identification information through the designated terminal, and determine the target road from at least two roads according to the identification information, thereby instructing the road disease treatment personnel to continue to use the first position on the target road to find the road disease.
[0107] In addition, in actual applications, mainstream lightweight road disease detection products use high-precision GPS to locate road diseases. Road maintenance companies conduct road inspections almost every day. Many maintenance departments cannot manually review and process the tens of thousands of road diseases reported every day because the number is too large. Among the reported road diseases, 99% are repeated road diseases, and for the same road disease, only one alarm is required. This means that when performing road disease deduplication operations and GPS positioning based on the disease location, the same road disease will be mistaken for different road diseases due to position drift, resulting in a low accuracy rate for road disease deduplication.
[0108] It can be understood that since the embodiment of the present application determines the location of the disease (target location) through the above-mentioned first location and second location, the accuracy of the location of the disease is improved, thereby solving the above-mentioned problem. Specifically, after obtaining the location of the reported historical road disease, the embodiment of the present application determines whether there is a fifth location in the location of the historical road disease whose similarity with the target location is greater than or equal to the preset similarity, and whether the time interval between reporting the fifth location and reporting the target location is less than or equal to the preset time interval threshold. If so, the target location is not reported; if not, the target location is reported.
[0109] Since the second position of the road damage has a lower accuracy, the first position is mainly used for comparison and determination of whether to report. Of course, the second position can also be used for auxiliary comparison.
[0110] For example, for comparison by the first position, the similarity can be determined by the third distance between the historical road damage location and the road marker and the third distance between the target location and the road marker. For example, the difference between the two third distances is calculated and the absolute value is obtained. The similarity can be calculated by the formula: ,in, is the absolute value, It is the third distance between the location of the historical road damage and the road marker.
[0111] Among them, the road markers corresponding to the location of historical road damage and the road markers corresponding to the target location should be the same. For example, if the road markers are all mileage signs with the first road number 230 on the target road, the road markers can be matched before determining the similarity, and the similarity is determined only after the match is successful.
[0112] The preset similarity and the preset time interval threshold can be set as needed, and this embodiment does not limit this.
[0113] In addition, the presence of a hundred-meter post or mileage sign in the field of view can be detected through the target detection model.
[0114] When using the target detection model to determine whether there are 100-meter posts or mileposts in the field of view of the disease detection device, it is usually necessary to first obtain the video captured by the disease detection device or the continuously captured images, and then input the image or the data frame corresponding to the video into the target detection model to obtain the detection result output by the target detection model. Among them, the detection result includes the existence of 100-meter posts and their positions in the image (or data frame), or the existence of mileposts and their positions in the image (or data frame), or the absence of mileposts and the absence of 100-meter posts.
[0115] The target detection model is obtained by training an untrained model built based on AutoAssign (an anchor-free detector) with sample data, and the sample data includes a target sample image and a sample label. The target sample image is obtained by performing corresponding processing on the initial sample image, and the corresponding processing is described below and will not be repeated here.
[0116] For the untrained model, the embodiment of the present application introduces AutoAssign's solutions to some widespread problems in current small target detection during training, specifically:
[0117] First, regarding sample allocation:
[0118] Current object detection widely follows the following two paradigms: 1) either positive or negative distribution and supervision principle; 2) separate optimization of classification and regression.
[0119] In addition, the current models have network designs with and without anchor boxes. Among them, for the network design with anchor boxes, since the proportion of training samples of small targets in the sample data during training is small, it contributes little to the loss function. Therefore, the network design with anchor boxes is not friendly to small targets and is sensitive to anchor boxes. For the network design without anchor boxes, there is a problem of small target aggregation, that is, after multiple downsampling, they are aggregated into one point on the deep feature map, which easily causes small targets to be missed.
[0120] The above implementation method will lead to the aggregation of small targets and it is difficult to correctly select FPN (Feature Pyramid Network) when small targets are aggregated, which makes target selection problematic.
[0121] Among them, FPN is an important structure in the field of target detection. It is mainly used to solve the problem of target scale change in target detection. In the forward propagation process of traditional convolutional neural networks, as the network goes deeper, the size of the feature map will gradually decrease, the resolution will decrease, the semantic information will be enhanced, and the spatial information will be weakened. This characteristic makes the network less effective in detecting small targets. FPN, by fusing feature maps of different scales, enables the network to obtain strong semantic information and spatial information at the same time, thereby improving the detection performance of targets of different scales.
[0122] The basic idea of FPN is to fuse the feature maps rich in high-level semantic information with the feature maps rich in low-level spatial information through upsampling, and obtain a series of feature maps that fuse information of different scales. These feature maps have the same number of channels but different sizes, and can be used to detect objects of different scales.
[0123] In one example, the target detection model may be an anchor-free target detection model;
[0124] During the training process of the target detection model, the target center point of each training sample is calculated, and a weight is assigned according to the distance between the predicted center point and the actual center point to obtain a center point weighted weight map; and, according to the model's prediction of the existence of the target, a confidence weighted weight map is obtained;
[0125] For positive samples, the center point position and the target boundary position are predicted based on the center point weighted weight map and the confidence weighted weight map, and the model loss is determined based on the distance between the predicted value and the true value, and the model parameters are updated based on the training loss;
[0126] For negative samples, the confidence loss of the target is determined based on the confidence weighted weight map, and the model parameters are updated based on the confidence loss;
[0127] During the reasoning process, for any image to be detected, the trained target detection model is used to determine the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected. Based on the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected, it is determined whether there is a target in the image to be detected, and if there is a target, the target center point position and boundary position are determined.
[0128] Exemplarily, for the above problem, the embodiment of the present application transforms the sample label allocation step into two weight maps, including a center point weighted weight map and a confidence weighted weight map, and generates positive and negative weights for all spatial positions by combining these two weight maps, thereby avoiding the non-positive or negative allocation method and supervision principle, as well as the problems caused by the separate optimization of classification and regression. And the dynamic allocation of spatial positions is realized through the two weight maps, so that the allocated spatial positions are more appropriate, and the correct FPN is automatically selected for each instance in an anchor-free manner, so that the selected FPN is more reasonable, avoiding the target selection problem in the case of small target aggregation. Among them, an instance refers to a set of image data containing small targets, or a specific detection task such as detecting a hundred-meter pile.
[0129] Exemplarily, during the training process of the target detection model, the target center point of each training sample is calculated, and a weight is assigned according to the distance between the predicted center point and the actual center point to obtain a center point weighted weight map; and, based on the model's prediction of the existence of the target, a confidence weighted weight map is obtained.
[0130] Among them, the anchor-free method specifically relocates each point in the final feature map corresponding to each stage of FPN to the coordinates of the original image, thereby replacing the anchor to generate the target. The center point weighted weight map refers to a learnable distribution through parameters to obtain a standard center point prior, and then learn the distribution of the category of each small target, where the category is related and depends on the data. Confidence-weighted weight map: adapts to the appearance and scale of each instance, and calculates the confidence based on the true value and the predicted value. Generate positive and negative weights: positive samples use center point weighting and confidence weighting, and negative samples use confidence weighting to generate positive and negative weight maps.
[0131] Among them, center point prior is a strategy or method in the field of object detection, which is mainly used to improve the prediction accuracy and efficiency of the detection box. This strategy is based on the observation that the center point of the target object often falls in certain specific areas of the image, rather than being evenly distributed throughout the image.
[0132] Specifically, the center point prior assumes that the center of the target is more likely to appear at certain locations in the feature map rather than at random locations. Based on this assumption, the model will give higher weight or attention to these locations where the center of the target is more likely to appear when predicting the target position and size. This helps the algorithm locate the target more accurately while reducing unnecessary search space, thereby improving detection speed and accuracy.
[0133] In terms of implementation, the center point prior is usually reflected by designing a specific loss function or network structure. For example, the loss function can add constraints on the center point position so that the untrained model pays more attention to these positions during the training process. In terms of network structure, some mechanisms can be designed to enhance the feature extraction capability of the area near the center point.
[0134] Among them, the true value refers to the actual position and category information of the small target in the image.
[0135] Exemplarily, in the reasoning process (i.e., the process of performing target detection tasks using a trained target detection model), for any image to be detected, the trained target detection model can be used to determine the center point weighted weight map and the confidence weighted weight map corresponding to the image to be detected, and based on the center point weighted weight map and the confidence weighted weight map corresponding to the image to be detected, determine whether there is a target in the image to be detected, and if there is a target, determine the target center point position and boundary position.
[0136] For example, for any pixel position, a probability value can be obtained based on the product of the weight in the center point weighted weight map and the weight in the confidence weighted weight map, and based on the probability value and a preset probability threshold, it is determined whether there is a target at the position.
[0137] Second, for multi-scale feature fusion:
[0138] In one example, the target detection model is an FPN-based target detection model;
[0139] In the process of extracting features from an input image using FPN, one or more of the following feature fusion operations may be included:
[0140] For the features obtained by downsampling fusion in two consecutive stages of FPN, the downsampling fusion features of the previous stage in the two consecutive stages are upsampled and fused with the downsampling fusion features of the next stage to obtain the upsampled fusion features;
[0141] For the features of any stage of FPN, the unfused features of this stage are fused with the multiple fused features of this stage;
[0142] For the features of any stage of FPN, the cascade network is used to perform at least one cascade operation on the features of that stage to obtain a corresponding feature sequence; wherein the input features of the first cascade operation are the initial features of that stage of FPN, and the input features of non-first cascade operations are the features in the feature sequence obtained by the previous cascade operation.
[0143] For example, considering that conventional FPN does not have lateral information fusion, only top-down fusion, and no bottom-up fusion process, it focuses more on abstract information and lacks detail information, making it more difficult for the model to detect small targets, resulting in omissions in small target detection. AutoAssign's multi-scale feature fusion considers both shallow representation information and deep semantic information, which is conducive to the feature extraction of small targets, thereby effectively improving the performance of small target detection.
[0144] Exemplarily, one or more of a bottom-up fusion path, a cross-connection path, and a cascade network may be added on the basis of a conventional FPN.
[0145] For example, Pm_n represents the feature map of the mth stage of FPN, and n represents the number of fusions:
[0146] 1. Bottom-up fusion path: Based on the original FPN, feature fusion in the reverse direction is added. For example, the original downsampling fusion of Pm_0 and Pm+1_0 obtains Pm_1, and the upsampling of Pm_1 is added and fused with Pm+1_1 to obtain Pm+1_2.
[0147] 2. Cross-connection path: realize the connection between two nodes separated by a gap, and utilize backbone information in both top-up and bottom-up methods, such as adding the fusion of Pm and Pm_2 to obtain Pm_3.
[0148] 3. Cascade network: A structure in which multiple identical structures are connected in series. If cascaded once, the structures of Pm_1, Pm_2, and Pm_3 are obtained. Pm_3 is used as the input of the next cascade structure to generate Pm_4, Pm_5, and Pm_6. Cascaded twice, Pm_7, Pm_8, and Pm_9 are obtained, and so on.
[0149] It should be noted that since mileage signs and 100-meter posts are small in the field of view and are usually difficult to detect, detecting small targets requires high performance of the target detection model, otherwise missed detections are likely to occur.
[0150] In order to improve the performance of the target detection model, the embodiment of the present application makes the following adjustments to the untrained model and its training process:
[0151] 1. The sample data is enhanced for the characteristics of mileage signs or 100-meter piles;
[0152] 2. For sample allocation, we added the strategy of forced allocation of lost positive samples, regression optimization strategy, low-quality positive sample filtering strategy, and center point initialization optimization strategy;
[0153] 3. For the multi-scale feature fusion of the model, before feature fusion, the same supervision information is added to the features of each layer for different levels of the model.
[0154] It should be noted that the above adjustments are also applied in the application process of the target detection model, which will not be repeated here.
[0155] Regarding adjustment 1:
[0156] At present, small target detection faces many challenges such as low resolution, few extractable features, insufficient number of samples and uneven distribution. The importance of data enhancement is becoming more and more significant. Sample data enhancement can solve the problems of small target information, lack of appearance features and texture to a certain extent, and effectively improve the generalization ability of the network. However, in practical applications, improperly designed data enhancement strategies may introduce new noise, thereby damaging the performance of feature extraction.
[0157] The embodiment of the present application designs a specific data enhancement strategy for the characteristics of mileage signs / hundred-meter posts, thereby optimizing the target characteristics and improving the performance of feature extraction. The data enhancement strategy is to perform corresponding processing on the initial sample image, and the corresponding processing includes at least one of the following: photometric transformation, image cropping, copy and paste, and image scaling.
[0158] Among them, photometric transformation is used to simulate different light and different fields of view; the cropped image includes complete 100-meter posts or mileage signs; copy and paste is used to copy and paste the image of the 100-meter posts or mileage signs into the initial sample image that does not include the 100-meter posts or mileage signs; the scale of the 100-meter posts or mileage signs in the scaled sample image is the preset scale.
[0159] It can be understood that through the above corresponding processing, the increase of sample images is achieved and the relative size consistency of the natural scale of small targets is ensured, so that while amplifying the data, the generated data needs to meet the requirements of the characteristics of mileage signs or 100-meter posts.
[0160] Regarding adjustment 2:
[0161] For the strategy of forced allocation of missing positive samples, in the target sample image, for small targets, there may be a situation where there is no valid point corresponding to the true value, that is, for small targets, due to their small size in the target sample image, it may be difficult for the annotator to accurately determine their boundaries and positions. Even if the annotation is accurate, since a large amount of detail information may be lost in the feature extraction process of small targets, it is difficult for the model to learn effective representations from limited features, which results in the model being unable to find valid points corresponding to the true value during prediction. Among them, valid points are pixel points that can represent the features of small targets. When there is a small target with no valid point corresponding to the true value, since there is no corresponding target sample image, the trained target detection model will be unable to detect the small target corresponding to the true value.
[0162] In this case, we can sort the center points of the small targets by their weights and take the first n points as positive samples, thereby ensuring that there are positive samples of the small targets. Where n is a positive integer.
[0163] For the regression optimization strategy, add candidate points to the points in the feature map. Specifically, each point in the feature map is modified from one coordinate corresponding to the original image (target sample image) to two coordinates. This modification operation can increase the coordinate gain at each point. For example, if there is a point in the feature map with the original image coordinate (1, 1), and the coordinate gain is the horizontal coordinate gain and is 1, then the point is modified from corresponding to (1, 1) to corresponding to (1, 1) and (2, 1).
[0164] For the low-quality positive sample filtering strategy, detection and identification include the detection box and the polygon corresponding to the polar coordinates. Among them, the detection box is generally a rectangle or square, which is used to frame the area where the small target in the target sample image is located, and the polygon is the area where the small target in the target sample image is located. It can be understood that the area corresponding to the polygon has less background than the area corresponding to the detection box.
[0165] Low-quality positive samples usually refer to those samples that are marked as positive samples (i.e., belong to a certain category) but whose features are not obvious, whose information content is low, or whose characteristics do not fully represent the characteristics of the category due to noise, incorrect labeling, etc. These low-quality positive samples will cause the learned polygons to be inaccurately positioned. Specifically, when the same polygon is described by different polar coordinate centers, the described polygons will be inconsistent, which will lead to a decrease in model performance.
[0166] The solution to this problem is to filter out low-quality positive samples, that is, to filter by increasing the polar coordinate quality calculation weight.
[0167] For the center point initialization optimization strategy, the center of the polygon is used to replace the center of the detection box as the prior of the center point, so as to make full use of the more accurate positioning information of the polygon to achieve optimization.
[0168] Among them, the lost positive sample forced allocation strategy and regression optimization strategy can increase the recall of small targets, the low-quality positive sample filtering strategy can optimize the sample quality, and the center point initialization optimization strategy can reduce the regression difficulty of the model.
[0169] Regarding adjustment 3:
[0170] During model training, there are semantic differences between features at different levels, and direct feature fusion will weaken the expressive power of multi-scale features. Therefore, before feature fusion, the same supervision information is added to the features of each layer, thereby reducing the semantic differences between them. That is, each FPN shares a head, forcing different feature maps to learn similar semantic information outside the same supervision signal. Based on this, in order to obtain more stable optimization results, a weight can also be used to balance the auxiliary loss and initial loss generated by consistent supervision, as well as to remove auxiliary branches in the prediction stage.
[0171] Among them, head usually refers to the last layer or layers of the model, and its main function is to map the features extracted from the previous layers to task-related outputs, which may include category labels, location information, etc.
[0172] In order to enable those skilled in the art to better understand the technical solution provided by the embodiments of the present application, the specific process of the embodiments of the present application is described below in conjunction with specific embodiments.
[0173] In this embodiment, the camera performs data processing and obtains the target location of the road damage, and the target detection is performed through the above target detection model. Based on this, the implementation process of determining the target location of the road damage is as follows:
[0174] A road inspector was driving a vehicle on the G56 expressway. At a certain moment, the on-board camera detected a pothole on the G56 expressway. The camera calculated that the pothole was 20m away from the camera, i.e., the second distance, and no mileage sign was found in the camera's field of view.
[0175] In order to identify the road markers, the camera traces back to the last detected milepost. During the traceback process, it is detected that the first distance of the adjacent 100-meter post is numbered 3, and the second distance of the adjacent milepost is numbered 230. The identification information recorded on the milepost is G56. The distance between the 100-meter post and the camera is calculated to be 80m through the vehicle's moving speed and moving time. After taking this distance as the first distance, the first distance is added to the second distance to obtain the third distance of 100m. The first position is thus determined to be (G56+K230+3+100).
[0176] The second position determined by GPS is obtained, and the second position is (29.11342, 115.44523). The first position and the second position are used together as the target position of the road disease, and the target position is ((29.11342, 115.44523)+G56+K230+3+100).
[0177] After obtaining the location of the reported historical road diseases, it is found that the target location does not exist, and the target location is reported.
[0178] Based on the same application concept as the above method, a road disease location determination device is proposed in the embodiment of the present application, such as Figure 4 FIG. 1 is a schematic diagram of the structure of the device, and the device may include:
[0179] The acquisition unit 401 is used to determine a road marker associated with the road damage when a road damage is detected, and to acquire a first distance between a damage detection device and the road marker, and to acquire a second distance between the damage detection device and the road damage;
[0180] The determining unit 402 is used to obtain a first distance number recorded on the road sign, and determine a first position of the road defect on a target road according to the first distance, the second distance and the first distance number; wherein the target road is the road where the road defect is located; and the first distance number is used to identify the position of the road sign on the target road;
[0181] The processing unit 403 is used to use the first position and the second position as the target position of the road damage; wherein the second position is the position of the road damage determined based on GPS.
[0182] In some embodiments, the apparatus further comprises:
[0183] A judgment unit is used for using a first mileage sign as the road marker if there is a first mileage sign in the field of view of the disease detection device; using the first 100-meter post as the road marker if there is a first 100-meter post in the field of view of the disease detection device; and using a second mileage sign adjacent to the disease detection device or a second 100-meter post adjacent to the disease detection device as the road marker if there is no 100-meter post and no mileage sign in the field of view of the disease detection device.
[0184] In some embodiments, when the road marker is the second 100-meter stake, the second 100-meter stake is determined based on the third 100-meter stake detected most recently;
[0185] The acquisition unit 401 is further used to acquire a first moving speed and a first moving duration of the disease detection device; the first moving duration is the time taken for the disease detection device to move from the third position of the third 100-meter stake to the current position; and to acquire a first initial distance number recorded on the third 100-meter stake;
[0186] The device also includes:
[0187] The first calculation unit is used to obtain the third distance of the disease detection device from the third position to the current position according to the first moving speed and the first moving time; if the third distance is greater than or equal to the first preset distance threshold, then obtain the first numbering gain according to the third distance and the first preset distance threshold; the first numbering gain represents the number of fourth-hundred-meter piles missed by the disease detection device within the first moving time; the first initial distance number and the first numbering gain are summed to obtain the first distance number.
[0188] In some embodiments, when the road marker is the second mileage sign, the second mileage sign is determined based on the third mileage sign detected most recently;
[0189] The acquisition unit 401 is further configured to acquire a second moving speed and a second moving duration of the disease detection device; the second moving duration is the duration of the disease detection device moving from the fourth position of the third milepost to the current position; and acquire a second initial journey number recorded on the third milepost;
[0190] The device also includes:
[0191] The second calculation unit is used to obtain a fourth distance of the disease detection device from the fourth position to the current position according to the second moving speed and the second moving time; if the fourth distance is greater than or equal to a second preset distance threshold, obtain a second numbering gain according to the fourth distance and the second preset distance threshold; the second numbering gain represents the number of fourth mileposts missed by the disease detection device within the second moving time; the second initial distance number and the second numbering gain are summed to obtain a first distance number.
[0192] In some embodiments, when the road marker is a 100-meter post,
[0193] The determination unit 402 is specifically used to determine the fifth milepost corresponding to the one-hundred-meter post; the first distance number recorded on the one-hundred-meter post represents the first distance between the one-hundred-meter post and the fifth milepost; obtain the second distance number recorded on the fifth milepost, the second distance number represents the second distance between the fifth milepost and the starting point of the target road; determine the first position of the road defect on the target road based on the first distance, the second distance, the first distance number and the second distance number.
[0194] In some embodiments, the acquisition unit 401 is further used to acquire the identification information of the road recorded on the fifth milepost;
[0195] The device also includes:
[0196] An output unit is used to output the identification information to a designated terminal, wherein the identification information is used to assist in locating the road hazard.
[0197] In some embodiments, the acquisition unit 401 is further used to acquire the location of the reported historical road damage;
[0198] The processing unit 403 is also used for not reporting the target location if there is a fifth location among the locations of historical road damages whose similarity with the target location is greater than or equal to a preset similarity, and the time interval between reporting the fifth location and reporting the target location is less than or equal to a preset time interval threshold.
[0199] In some embodiments, whether there is a hundred-meter post or a mileage sign in the field of view of the disease detection device is determined by:
[0200] The acquisition unit 401 is also used to acquire an image corresponding to the field of view of the disease detection device;
[0201] The device also includes:
[0202] An input unit, used to input the image into a target detection model to obtain a detection result output by the target detection model;
[0203] The detection result includes the existence of a hundred-meter post, the existence of a mileage sign, or the absence of a mileage sign and the absence of a hundred-meter post.
[0204] In some embodiments, the target detection model is obtained by training an untrained model with sample data; the sample data includes a target sample image and a sample label; the target sample image is obtained by performing corresponding processing on an initial sample image, and the corresponding processing includes at least one of the following:
[0205] Photometric transformation, image cropping, copy and paste, image scaling;
[0206] Among them, the photometric transformation is used to simulate different light and different fields of view; the cropped image includes a complete hundred-meter post or mileage sign; the copy and paste is used to copy and paste the image of the hundred-meter post or mileage sign into an initial sample image that does not include the hundred-meter post or mileage sign; the scale of the hundred-meter post or mileage sign in the scaled sample image is a preset scale.
[0207] In some embodiments, the target detection model is an anchor-free target detection model;
[0208] During the training process of the target detection model, the target center point of each training sample is calculated, and a weight is assigned according to the distance between the predicted center point and the actual center point to obtain a center point weighted weight map; and, according to the model's prediction of the existence of the target, a confidence weighted weight map is obtained;
[0209] For positive samples, the center point position and the target boundary position are predicted based on the center point weighted weight map and the confidence weighted weight map, and the model loss is determined based on the distance between the predicted value and the true value, and the model parameters are updated based on the training loss;
[0210] For negative samples, the confidence loss of the target is determined based on the confidence weighted weight map, and the model parameters are updated based on the confidence loss;
[0211] During the reasoning process, for any image to be detected, the trained target detection model is used to determine the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected. Based on the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected, it is determined whether there is a target in the image to be detected, and if there is a target, the target center point position and boundary position are determined.
[0212] In some embodiments, the target detection model is a target detection model based on a feature pyramid network FPN;
[0213] In the process of extracting features from an input image using FPN, one or more of the following feature fusion operations are included:
[0214] For the features obtained by downsampling fusion in two consecutive stages of FPN, the downsampling fusion features of the previous stage in the two consecutive stages are upsampled and fused with the downsampling fusion features of the next stage to obtain the upsampled fusion features;
[0215] For the features of any stage of FPN, the unfused features of this stage are fused with the multiple fused features of this stage;
[0216] For the features of any stage of FPN, the cascade network is used to perform at least one cascade operation on the features of that stage to obtain a corresponding feature sequence; wherein the input features of the first cascade operation are the initial features of that stage of FPN, and the input features of non-first cascade operations are the features in the feature sequence obtained by the previous cascade operation.
[0217] In some embodiments, before feature fusion, the same supervision information is added to features at different levels of the model.
[0218] It should be noted that, in practical applications, the first computing unit and the second computing unit can be implemented by the same computing unit.
[0219] An embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the road defect location determination method described above.
[0220] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 501 and a memory 502 storing machine executable instructions. The processor 501 and the memory 502 may communicate via a system bus 503. Furthermore, by reading and executing the machine executable instructions corresponding to the road defect location determination logic in the memory 502, the processor 501 may execute the road defect location determination method described above.
[0221] The memory 502 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0222] In some embodiments, a machine-readable storage medium is also provided. Figure 5 The memory 502 in the machine readable storage medium stores machine executable instructions, and when the machine executable instructions are executed by the processor, the road disease location determination method described above is implemented. For example, the storage medium can be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Claims
1. A method for determining the location of road damage, characterized in that: The method comprises: When a road defect is detected, a road marker associated with the road defect is determined, and a first distance between the defect detection device and the road marker is obtained, and a second distance between the defect detection device and the road defect is obtained; Obtaining a first distance number recorded on the road marker, and determining a first position of the road defect on a target road according to the first distance, the second distance, and the first distance number; wherein the target road is the road where the road defect is located; and the first distance number is used to identify the position of the road marker on the target road; The first position and the second position are used as the target position of the road damage; wherein the second position is the position of the road damage determined based on GPS.
2. The method according to claim 1, characterized in that: Before obtaining the first distance between the disease detection device and the road marker, the method includes: If a first milepost is present in the field of view of the disease detection device, the first milepost is used as the road marker; If there is a 100-meter pile in the field of view of the disease detection equipment, the 100-meter pile is used as the road marker; If there is no hundred-meter post and no mileage sign within the field of view of the disease detection equipment, the second mileage sign adjacent to the disease detection equipment or the second hundred-meter post adjacent to the disease detection equipment will be used as the road marker.
3. The method according to claim 2, characterized in that When the road marker is the second 100-meter stake, the second 100-meter stake is determined based on the third 100-meter stake detected most recently; the method further includes: Acquire a first moving speed and a first moving duration of the disease detection device; the first moving duration is the duration for the disease detection device to move from the third position of the third 100-meter pile to the current position; Obtaining a third distance for the disease detection device to move from the third position to the current position according to the first moving speed and the first moving duration; If the third distance is greater than or equal to the first preset distance threshold, a first numbering gain is obtained according to the third distance and the first preset distance threshold; the first numbering gain represents the number of the fourth hundred-meter piles missed by the disease detection device within the first moving time; Obtaining the first initial distance number recorded on the third hundred-meter stake; The first initial distance number and the first number gain are summed to obtain a first distance number.
4. The method according to claim 2, characterized in that: When the road marker is the second mileage sign, the second mileage sign is determined based on the third mileage sign detected most recently; the method further includes: Acquire a second moving speed and a second moving duration of the disease detection device; the second moving duration is the time it takes for the disease detection device to move from the fourth position of the third milepost to the current position; According to the second moving speed and the second moving duration, a fourth distance of the disease detection device from the fourth position to the current position is obtained; If the fourth distance is greater than or equal to the second preset distance threshold, a second numbering gain is obtained according to the fourth distance and the second preset distance threshold; the second numbering gain represents the number of fourth mileposts missed by the disease detection device within the second moving time; Obtaining a second initial distance number recorded on the third mileage sign; The second initial distance number and the second number gain are summed to obtain a first distance number.
5. The method according to claim 1, characterized in that When the road marker is a 100-meter stake, determining the first position of the road defect on the target road according to the first distance, the second distance and the first journey number includes: Determine a fifth milepost corresponding to the 100-meter post; the first distance number recorded on the 100-meter post represents a first distance between the 100-meter post and the fifth milepost; Acquire a second distance number recorded on the fifth milepost, where the second distance number represents a second distance between the fifth milepost and a starting point of the target road; A first position of the road defect on the target road is determined according to the first distance, the second distance, the first leg number, and the second leg number.
6. The method according to claim 5, characterized in that The method further comprises: obtaining identification information of the road recorded on the fifth milepost; The identification information is output to a designated terminal, and the identification information is used to assist in locating the road damage.
7. The method according to claim 2, characterized in that The method further comprises: Whether there is a hundred-meter stake or mileage sign in the field of view of the disease detection device is determined by the following method: Acquire an image corresponding to the field of view of the disease detection device; Inputting the image into a target detection model to obtain a detection result output by the target detection model; The detection result includes the existence of a hundred-meter post, the existence of a mileage sign, or the absence of a mileage sign and the absence of a hundred-meter post.
8. The method according to claim 7, characterized in that The target detection model is obtained by training an untrained model with sample data; the sample data includes a target sample image and a sample label; the target sample image is obtained by performing corresponding processing on an initial sample image, and the corresponding processing includes at least one of the following: Photometric transformation, image cropping, copy and paste, image scaling; Among them, the photometric transformation is used to simulate different light and different fields of view; the cropped image includes a complete hundred-meter post or mileage sign; the copy and paste is used to copy and paste the image of the hundred-meter post or mileage sign into an initial sample image that does not include the hundred-meter post or mileage sign; the scale of the hundred-meter post or mileage sign in the scaled sample image is a preset scale.
9. The method according to claim 8, characterized in that The target detection model is an anchor-free target detection model; During the training process of the target detection model, the target center point of each training sample is calculated, and a weight is assigned according to the distance between the predicted center point and the actual center point to obtain a center point weighted weight map; and, according to the model's prediction of the existence of the target, a confidence weighted weight map is obtained; For positive samples, the center point position and the target boundary position are predicted based on the center point weighted weight map and the confidence weighted weight map, and the model loss is determined based on the distance between the predicted value and the true value, and the model parameters are updated based on the training loss; For negative samples, the confidence loss of the target is determined based on the confidence weighted weight map, and the model parameters are updated based on the confidence loss; During the reasoning process, for any image to be detected, the trained target detection model is used to determine the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected. Based on the center point weighted weight map and confidence weighted weight map corresponding to the image to be detected, it is determined whether there is a target in the image to be detected, and if there is a target, the target center point position and boundary position are determined.
10. The method according to claim 8, characterized in that The target detection model is a target detection model based on feature pyramid network FPN; In the process of extracting features from an input image using FPN, one or more of the following feature fusion operations are included: For the features obtained by downsampling fusion in two consecutive stages of FPN, the downsampling fusion features of the previous stage in the two consecutive stages are upsampled and fused with the downsampling fusion features of the next stage to obtain the upsampled fusion features; For the features of any stage of FPN, the unfused features of this stage are fused with the multiple fused features of this stage; For the features of any stage of FPN, the cascade network is used to perform at least one cascade operation on the features of that stage to obtain a corresponding feature sequence; wherein the input features of the first cascade operation are the initial features of that stage of FPN, and the input features of non-first cascade operations are the features in the feature sequence obtained by the previous cascade operation.
11. The method according to claim 10, characterized in that Before feature fusion, the same supervision information is added to the features at different levels of the model.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: Obtain the location of reported historical road damage; If there is a fifth location among the locations of historical road damages whose similarity with the target location is greater than or equal to a preset similarity, and the time interval between reporting the fifth location and reporting the target location is less than or equal to a preset time interval threshold, the target location will not be reported.
13. A device for determining the location of road damage, characterized in that: The device comprises: an acquisition unit, configured to, when a road defect is detected, determine a road marker associated with the road defect, acquire a first distance between a defect detection device and the road marker, and acquire a second distance between the defect detection device and the road defect; a determination unit, configured to obtain a first distance number recorded on the road marker, and determine a first position of the road defect on a target road according to the first distance, the second distance, and the first distance number; wherein the target road is the road where the road defect is located; and the first distance number is used to identify the position of the road marker on the target road; A processing unit is used to use the first position and the second position as the target position of the road damage; wherein the second position is the position of the road damage determined based on GPS.
14. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method according to any one of claims 1 to 12.
15. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.
