Optimized Deployment System and Method for Road Environment Detection Network Based on Bus Routes
By screening and merging the equipment information of bus lines and optimizing the road environment detection line, the problem of low detection efficiency caused by large video recognition processing volume in the prior art is solved, and more efficient road network environment detection is achieved.
Patent Information
- Application Number
- CN202510062918.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-01-15
AI Technical Summary
In the existing road network environment detection methods, the video recognition processing volume is large, resulting in low detection efficiency.
By obtaining the information on bus routes and bus equipment in the road network, filtering out the existing shooting equipment lines, counting the total number of passing sections, and combining and selecting the line collection to optimize the road environment detection route.
It reduces the amount of video recognition processing and improves the efficiency of road network environmental detection.
Smart Images

Figure CN119476893B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of data processing, and in particular, to an optimized deployment system and method for a road environment detection network based on bus lines. Background Art
[0002] Currently, in order to promote the application of smart cities through intensive construction, most regions have begun to install camera devices at the front of buses to take pictures, and use the pictures taken at the front of buses and video structuring algorithms to identify events that affect road traffic in the road network, such as road potholes, cracks, missing manhole covers, missing traffic signs, and road construction occupying the road, so as to reduce the investment of enterprises in dedicated inspection manpower and material resources.
[0003] In related technologies, most of them choose to install camera devices on all bus lines in the road network or on buses on bus lines with a higher frequency of defects to detect the road network environment. However, the video recognition processing volume of this method is large, resulting in a low efficiency of road network environment detection. Summary of the Invention
[0004] The embodiments of the present application provide an optimized deployment system and method for a road environment detection network based on bus lines, which solves the problem that the video recognition processing volume in the existing method for detecting the road network environment is large, resulting in a low efficiency of road network environment detection. By screening and processing the detection lines according to the installation situation of the bus shooting devices, the video recognition processing volume can be reduced.
[0005] In a first aspect, the embodiments of the present application provide an optimized deployment method for a road environment detection network based on bus lines, including:
[0006] Obtain multiple bus lines in the road network and the device information of the buses on each of the bus lines. The road network includes multiple road sections, and the bus lines include multiple passing sections;
[0007] According to the device information, respectively determine whether each bus line is a line with an existing shooting device. In the case of multiple lines with existing shooting devices, count the total number of passing sections of each line with an existing shooting device, and perform screening processing based on the multiple passing sections of the line with an existing shooting device and the total number of passing sections to obtain a first selection line set, and determine multiple bus lines outside the first selection line set as unselected lines;
[0008] Determine a plurality of unselected road segments according to the first set of selected routes and the plurality of road segments, perform screening processing based on the plurality of unselected road segments and the plurality of unselected routes to obtain a second set of selected routes, and merge the first set of selected routes and the second set of selected routes to obtain multiple road environment detection routes for environmental detection of the road network.
[0009] Optionally, the screening process based on the plurality of traversed road segments of the existing camera device routes and the total number of traversed road segments to obtain the first set of selected routes includes:
[0010] Determine the route with the most road segments in the existing camera device routes according to the total number of traversed road segments, and determine the route with the most road segments as the first selected route. Perform comparison processing based on the first selected route and the remaining existing camera device routes to obtain the first set of selected routes.
[0011] Optionally, when there are multiple routes with the most road segments, the step of determining the route with the most road segments as the first selected route includes:
[0012] Perform road segment coincidence comparison processing on the traversed road segments of each route with the most road segments. When there are coincidence road segments in each route with the most road segments, obtain the total length of the covered detection road segments of each route with the most road segments, and determine the route with the most road segments having the longest total length of the covered detection road segments as the first selected route;
[0013] When there is a route with the most road segments having no coincidence road segments, if there is only one such route, determine the route with the most road segments having no coincidence road segments as the first selected route. If there are multiple such routes, randomly select one of the routes with the most road segments having no coincidence road segments as the first selected route.
[0014] Optionally, the comparison processing based on the first selected route and the remaining existing camera device routes to obtain the first set of selected routes includes:
[0015] Compare each traversed road segment of the first selected route with each traversed road segment of the remaining existing camera device routes to obtain multiple routes with no coincidence road segments, and determine the route with the most road segments among the routes with no coincidence road segments as the second selected route;
[0016] Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each passing section of the first selected route with each passing section of the remaining existing shooting device routes to obtain multiple non-overlapping section routes. Determine the non-overlapping section route with the largest total number of passing sections as the second selected route until there are no routes available, and combine each selected route into the first selected route set.
[0017] Optionally, the process of obtaining the second selected route set based on the multiple unselected sections and multiple unselected routes includes:
[0018] Compare each of the multiple unselected sections with each passing section of the multiple unselected routes respectively, determine the proportion of unselected sections in each unselected route according to the comparison results, and determine the unselected route with the highest proportion of unselected sections as the first selected route;
[0019] Perform a comparison process based on the first selected route and the remaining unselected routes to obtain the second selected route set.
[0020] Optionally, in the case where there are multiple unselected routes with the highest proportion of unselected sections, the step of determining the unselected route with the highest proportion of unselected sections as the first selected route includes:
[0021] Obtain the preset detection weights of each unselected section in each unselected route with the highest proportion of unselected sections, calculate the sum of the unselected section detection weights of each unselected route with the highest proportion of unselected sections according to the preset detection weights, and determine the unselected route with the highest sum of unselected section detection weights as the first selected route.
[0022] Optionally, the process of performing a comparison process based on the first selected route and the remaining unselected routes to obtain the second selected route set includes:
[0023] Compare each passing section of the first selected route with each passing section of the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the largest proportion of unselected sections as the second selected route;
[0024] Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each passing section of the first selected route with each passing section of the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the largest proportion of unselected sections as the second selected route until there are no routes available, and combine each selected route into the second selected route set.
[0025] Optionally, when the device information of the buses on each of the bus lines does not meet the pre-stored conditions of the road environment detection device and it is determined to deploy dedicated shooting devices, the method includes:
[0026] Obtain multiple road sections to be detected, compare the passing sections of each bus line with the multiple road sections to be detected to obtain the covered road sections to be detected for each bus line, and determine the bus line with the most covered road sections to be detected as the first selected line;
[0027] Compare the covered road sections to be detected of the first selected line with the covered road sections to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines, and determine the non-overlapping road section line with the most covered road sections to be detected as the second selected line;
[0028] Based on the second selected line and the remaining non-overlapping road section lines, repeat the operation of comparing the covered road sections to be detected of the first selected line with the covered road sections to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines, and determine the non-overlapping road section line with the most covered road sections to be detected as the second selected line until no line is available, and combine the selected lines into a dedicated shooting device line set for the installation of the dedicated shooting device and perform the environment detection of the road network through the installed dedicated shooting device.
[0029] In a second aspect, an embodiment of the present application further provides a device for optimizing the deployment of a road environment detection network based on bus lines, including:
[0030] An acquisition module, configured to acquire multiple bus lines in a road network and the device information of the buses on each bus line, where the road network includes multiple road sections and the bus lines include multiple passing sections;
[0031] A judgment module, configured to respectively determine whether each bus line is an existing shooting device line according to the device information;
[0032] A first screening and processing module, configured to, when there are multiple existing shooting device lines, count the total number of passing sections of each existing shooting device line, and perform screening and processing based on the multiple passing sections of the existing shooting device line and the total number of passing sections to obtain a first selection line set;
[0033] A second screening and processing module, configured to determine multiple bus lines other than the first selection line set as unselected lines, determine multiple unselected sections according to the first selection line set and the multiple road sections, and perform screening and processing based on the multiple unselected sections and the multiple unselected lines to obtain a second selection line set;
[0034] A set merging module, configured to merge the first selected route set and the second selected route set to obtain multiple road environment detection routes for environmental detection of the road network.
[0035] In a third aspect, an embodiment of the present application further provides an optimized deployment device for a road environment detection network based on bus routes, and the device includes:
[0036] One or more processors;
[0037] A storage device, configured to store one or more programs,
[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for optimizing the deployment of the road environment detection network based on bus routes according to the embodiments of the present application.
[0039] In a fourth aspect, an embodiment of the present application further provides a storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the method for optimizing the deployment of the road environment detection network based on bus routes according to the embodiments of the present application when executed by a computer processor.
[0040] In the embodiment of the present application, devices information of multiple bus routes in a road network and buses on each bus route is obtained. The road network includes multiple road segments, and each bus route includes multiple passing segments. Whether each bus route is an existing shooting device route is determined according to the devices information. In the case of multiple existing shooting device routes, the total number of passing segments of each existing shooting device route is counted. Screening processing is performed based on the multiple passing segments and the total number of passing segments of the existing shooting device routes to obtain a first selected route set. Multiple bus routes other than the first selected route set are determined as unselected routes. Multiple unselected segments are determined according to the first selected route set and the multiple road segments. Screening processing is performed based on the multiple unselected segments and the multiple unselected routes to obtain a second selected route set. The first selected route set and the second selected route set are merged to obtain multiple road environment detection routes for environmental detection of the road network. This solution screens and processes the detection routes based on the installation situation of bus shooting devices, solves the problem that the video recognition processing volume is large in the existing method for road network environment detection, resulting in low efficiency of road network environment detection, and can reduce the video recognition processing volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a flowchart of a method for optimizing the deployment of a road environment detection network based on bus routes provided by an embodiment of the present application;
[0042] Figure 2A flowchart of an optimized deployment method for a road environment detection network based on bus lines, including a method for determining a first set of selected lines, provided by an embodiment of the present application;
[0043] Figure 3 A flowchart of an optimized deployment method for a road environment detection network based on bus lines, including a method for determining a second set of selected lines, provided by an embodiment of the present application;
[0044] Figure 4 A block diagram of the module structure of a device for optimizing the deployment of a road environment detection network based on bus lines provided by an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the structure of a device for optimizing the deployment of a road environment detection network based on bus lines provided by an embodiment of the present application. Detailed implementation manners
[0046] The following further elaborates on the embodiments of the present application in conjunction with the accompanying drawings and examples. It can be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than limiting the embodiments of the present application. Additionally, it should be noted that for the sake of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all the structures.
[0047] Terms such as "first" and "second" in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and do not limit the number of objects. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character "or" generally represents an "or" relationship between the associated objects before and after.
[0048] An optimized deployment method for a road environment detection network based on bus lines provided by an embodiment of the present application can be applied to the scenario of selecting detection lines for a road network. For example, when a certain road network needs to conduct road environment detection, the method for optimizing the deployment of a road environment detection network based on bus lines provided by an embodiment of the present application can be used to select lines. For an optimized deployment method for a road environment detection network based on bus lines provided by an embodiment of the present application, the execution entity of each step is a server.
[0049] Figure 1 A flowchart of an optimized deployment method for a road environment detection network based on bus lines provided by an embodiment of the present application, as Figure 1 shown, specifically includes:
[0050] Step S101: Obtain multiple bus lines within the road network and the device information of the buses on each of the bus lines. The road network includes multiple road segments, and each bus line includes multiple passing segments. Determine whether each bus line is a line with existing shooting devices according to the device information.
[0051] Among them, the road network refers to a road system within a certain area, composed of various roads that are interconnected and intertwined in a network distribution. The road network can include multiple road segments, and a road segment can be a road section connecting between various intersections. A bus line is used to represent the running route of a bus. The bus line can include multiple passing segments, and a passing segment can be each road segment that the bus line passes through in the road network. A bus is used to represent a bus running on the bus line. The device information can be the relevant information of the devices installed on the bus. Using this device information, it can be determined whether a bus line is a line with existing shooting devices. A line with existing shooting devices can be a bus line where the bus is equipped with a camera device for shooting road videos. An exemplary example can be that there are multiple bus lines in road network a, namely Line 1, Line 2, Line 3, Line 4, and Line 5. There is no camera device for shooting road videos in the device information of the buses on Line 1, Line 3, and Line 4, while there is a camera device for shooting road videos in the device information of the buses on Line 2 and Line 5. Then, Line 2 and Line 5 are determined as lines with existing shooting devices.
[0052] Step S102: In the case where there are multiple lines with existing shooting devices, count the total number of passing segments of each line with existing shooting devices, and perform screening processing based on the multiple passing segments of the line with existing shooting devices and the total number of passing segments to obtain the first selected line set.
[0053] Among them, the total number of passed road segments is used to represent the total number of passed road segments on the existing shooting device line. The first selection line set can be determined by using the total number of passed road segments and the multiple passed road segments of each existing shooting device line. The first selection line set can be the set of bus lines selected during the first screening process. In one embodiment, a screening method can be to arrange the existing shooting device lines in descending order according to the total number of passed road segments, compare the respective passed road segments of multiple existing shooting device lines arranged before the preset ratio to obtain multiple non-overlapping road segment lines, and determine the multiple non-overlapping road segment lines as the first selection line set. Optionally, a screening method can be to determine the line with the most road segments among the existing shooting device lines according to the total number of passed road segments, and determine the line with the most road segments as the first selection line. Based on the first selection line and the remaining existing shooting device lines, a comparison process is performed to obtain the first selection line set. By selecting the environmental detection line from the existing shooting device lines through the total number of passed road segments, the road environment detection range can be made as large as possible.
[0054] Step S103: Determine the multiple bus lines other than the first selection line set as unselected lines, and determine multiple unselected road segments according to the first selection line set and the multiple road segments.
[0055] Among them, the unselected road segments are used to represent the road segments in the multiple road segments other than the respective passed road segments in the first selection line set. An exemplary example can be that the multiple bus lines in road network a are respectively bus line 1, bus line 2... bus line 10, the multiple road segments are respectively road segment 1, road segment 2... road segment 60, and the first selection line set includes bus line 1 and bus line 2. Then, bus line 3 to bus line 10 are determined as unselected lines. The passed road segments of bus line 1 are respectively road segment 1, road segment 2, road segment 3, road segment 4, road segment 5, road segment 6, and the passed road segments of bus line 2 are road segment 7, road segment 8, road segment 9, road segment 10, road segment 11. Then, road segment 12 to road segment 60 are determined as unselected road segments.
[0056] Step S104: Perform a screening process based on the multiple unselected road segments and the multiple unselected lines to obtain a second selection line set, and merge the first selection line set and the second selection line set to obtain multiple road environment detection lines for the environmental detection of the road network.
[0057] Among them, the second selected route set can be the set of bus routes selected during the second screening process. Using this second selected route set and the first selected route set, multiple road environment detection routes can be obtained. The road environment detection routes are used to represent the bus routes for road environment detection. Using these road environment detection routes, the environment of the road network can be detected. In one embodiment, a way to determine the second selected route set can be to compare each of the multiple unselected sections with the sections passed through in each unselected route to obtain the set of unselected sections in each unselected route, determine the multiple unselected routes for which the respective sets of unselected sections can be combined into all unselected sections, and determine them as the second selected route set. Optionally, a way to determine the second selected route set can be to compare each of the multiple unselected sections with the respective sections passed through in the multiple unselected routes, determine the proportion of unselected sections in each unselected route according to the comparison results, determine the unselected route with the highest proportion of unselected sections as the first selected route, and perform a comparison process based on the first selected route and the remaining unselected routes to obtain the second selected route set. Determining other detection routes among the unselected routes based on the proportion of unselected sections can maximize the road environment detection range within the road network as much as possible.
[0058] In one embodiment, when the device information of the buses on the bus lines within each road network does not meet the pre-stored road environment detection device conditions and it is determined to deploy dedicated shooting devices, multiple road sections to be detected are obtained. The passing road sections of each bus line are compared with the multiple road sections to be detected, and each covered road section to be detected of each bus line is obtained. The bus line that covers the most road sections to be detected is determined as the first selected line. The covered road sections to be detected of the first selected line are compared with the covered road sections to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines. The non-overlapping road section line that covers the most road sections to be detected is determined as the second selected line. Based on the second selected line and the remaining non-overlapping road section lines, the operation of comparing the covered road sections to be detected of the first selected line with the covered road sections to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines, and determining the non-overlapping road section line that covers the most road sections to be detected as the second selected line is repeatedly executed until no line is available for selection. The selected lines are combined into a dedicated shooting device line set for the installation of dedicated shooting devices and the environment detection of the road network is carried out through the installed dedicated shooting devices. Among them, the road environment detection device conditions are used to characterize the conditions that the device information of the bus needs to meet when used for road environment detection. Exemplarily, the road environment detection device conditions are that the clarity of the shooting device in the device information of the bus is higher than the preset clarity and the permissions of the shooting device are publicly available. The dedicated shooting device can be a device specifically used by an enterprise to shoot the road condition information. The road sections to be detected are used to characterize the road sections waiting for road condition shooting and road condition detection. The covered road sections to be detected are used to characterize the covered road sections to be detected among the passing road sections of the bus line. The first selected line can be the line selected from multiple bus lines for installing dedicated shooting devices. "First", "second", etc. are used to distinguish similar objects. The non-overlapping road section line can be the bus line with non-overlapping covered road sections to be detected compared with the bus line being compared.
[0059] An exemplary example could be that the device information of the buses on each bus line within the road network does not meet the pre-stored road environment detection device conditions, and it is determined to deploy dedicated shooting devices. There are currently 10 bus lines within, namely Line 1 to Line 10, and 15 sections to be detected are obtained. The sections passed by each bus line within the road network are compared with these 15 sections to be detected to obtain the covered sections to be detected for each bus line. Among them, the covered sections to be detected in Line 1 are the most, so Line 1 is determined as the first selected line. The covered sections to be detected of Line 1 are compared with the covered sections to be detected of the bus lines numbered 2 to 10, and the non-overlapping sections are Lines 3, 4, 5, 7, 8, and 10. Among them, the one with the most covered sections to be detected is Line 3, so Line 3 is determined as the second selected line. The covered sections to be detected of Line 3 are compared with the covered sections to be detected of Lines 4, 5, 7, 8, and 10, and the non-overlapping sections are Lines 5, 7, 8, and 10. Among them, the one with the most covered sections to be detected is Line 5, so Line 5 is determined as the third selected line. The covered sections to be detected of Line 5 are compared with the covered sections to be detected of Lines 7, 8, and 10, and the non-overlapping sections are Lines 8 and 10. Among them, the one with the most covered sections to be detected is Line 8, so Line 8 is determined as the fourth selected line. The covered sections to be detected of Line 8 are compared with the covered sections to be detected of Line 10, and there are no overlapping covered sections to be detected between Line 10 and Line 8, so Line 10 is determined as the fifth selected line. Lines 1, 3, 5, 8, and 10 are combined into a dedicated shooting device line set.
[0060] As described above, devices for obtaining multiple bus lines within a road network and the information of buses on each bus line are provided. The road network includes multiple road segments, and each bus line includes multiple passing segments. According to the device information, it is determined whether each bus line is a line with existing shooting devices. In the case where there are multiple lines with existing shooting devices, the total number of passing segments of each line with existing shooting devices is counted. Based on the multiple passing segments and the total number of passing segments of the line with existing shooting devices, screening processing is performed to obtain a first set of selected lines. Multiple bus lines outside the first set of selected lines are determined as unselected lines. Multiple unselected segments are determined based on the first set of selected lines and the multiple road segments. Screening processing is performed based on the multiple unselected segments and the multiple unselected lines to obtain a second set of selected lines. The first set of selected lines and the second set of selected lines are combined to obtain multiple road environment detection lines for environmental detection of the road network. This solution performs screening processing on detection lines based on the installation of bus shooting devices, solves the problem that the video recognition processing volume is large in the existing method for road network environment detection, resulting in low efficiency of road network environment detection, and can reduce the video recognition processing volume.
[0061] Figure 2 This is a flowchart of an optimization deployment method for a road environment detection network based on bus lines, which includes a method for determining a first set of selected lines provided by an embodiment of the present application. As Figure 2 shown, it specifically includes:
[0062] Step S201: Obtain multiple bus lines within a road network and the device information of buses on each of the bus lines. The road network includes multiple road segments, and each bus line includes multiple passing segments. According to the device information, it is determined whether each bus line is a line with existing shooting devices.
[0063] Step S202: In the case where there are multiple lines with existing shooting devices, count the total number of passing segments of each line with existing shooting devices. Determine the line with the most segments among the lines with existing shooting devices according to the total number of passing segments, and determine the line with the most segments as the first selected line. Based on the first selected line and the remaining lines with existing shooting devices, comparison processing is performed to obtain a first set of selected lines.
[0064] Among them, the line with the most sections is used to represent the existing camera device line with the largest total number of sections passed. The first selection line can be determined using this line with the most sections. The first selection line can be an existing camera device line selected from multiple existing camera device lines for road environment detection. "First", "second", etc. are used to distinguish similar objects. Optionally, when there are multiple lines with the most sections, one way to determine the first selection line is to perform section coincidence comparison processing on the sections passed by each line with the most sections. When there are coincidence sections in each line with the most sections, obtain the total length of the coverage detection sections of each line with the most sections, and determine the line with the most sections with the longest total length of the coverage detection sections as the first selection line. When there is a line with the most sections without coincidence sections, if there is only one line with the most sections without coincidence sections, determine the line with the most sections without coincidence sections as the first selection line. When there are multiple lines with the most sections without coincidence sections, randomly select one line with the most sections without coincidence sections as the first selection line. Among them, the coincidence section can be a section in the existing camera device line that is the same as a certain section passed in other existing camera device lines. The total length of the coverage detection sections is used to represent the total length of all sections for road detection covered in the bus line. An exemplary example can be that the lines with the most sections are respectively the existing camera device line 1, the existing camera device line 2, and the existing camera device line 3. The sections passed in the existing camera device line 1 are respectively section 1, section 2, section 3, section 4, section 5. The sections passed in the existing camera device line 2 are respectively section 1, section 2, section 6, section 7, section 8. The sections passed in the existing camera device line 3 are respectively section 9, section 10, section 11, section 12, section 13. The coincidence sections between the existing camera device line 1 and the existing camera device line 2 are section 1 and section 2. There is no section in the existing camera device line 3 that coincides with the existing camera device line 1 and the existing camera device line 2. Then, the existing camera device line 3 is determined as the first selection line. In another embodiment, obtain the preset detection weight of each line with the most sections, and determine the line with the most sections with the largest preset detection weight as the first selection line.
[0065] Optionally, a way to determine the first set of selected routes can be as follows: Compare each section passed by the first selected route with each section passed by the remaining existing camera device routes to obtain multiple non-overlapping section routes. Determine the non-overlapping section route with the largest total number of passed sections as the second selected route. Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each section passed by the first selected route with each section passed by the remaining existing camera device routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the largest total number of passed sections as the second selected route until there are no routes available. Combine each selected route into the first set of selected routes. Here, the non-overlapping section route is used to represent a bus route that has no overlapping sections with the compared bus route. An exemplary example can be that multiple existing camera device routes are respectively Bus Route 1, Bus Route 2, Bus Route 3, Bus Route 4, Bus Route 5, and Bus Route 6. It is determined that Bus Route 1 is the first selected route. Compare each section passed by Bus Route 1 with each section passed by Bus Route 2, Bus Route 3, Bus Route 4, Bus Route 5, and Bus Route 6 to obtain non-overlapping section routes as Bus Route 3, Bus Route 4, Bus Route 5, and Bus Route 6. Among them, the one with the largest total number of passed sections is Bus Route 3, so Bus Route 3 is determined as the second selected route. Compare each section passed by Bus Route 3 with each section passed by Bus Route 4, Bus Route 5, and Bus Route 6 to obtain non-overlapping section routes as Bus Route 5 and Bus Route 6. The total number of passed sections of Bus Route 5 is greater than that of Bus Route 6, so Bus Route 5 is determined as the third selected route. Compare each section passed by Bus Route 5 with each section passed by Bus Route 6. There are overlapping sections between Bus Route 6 and Bus Route 5, and there are no routes available currently. Then combine Bus Route 1, Bus Route 3, and Bus Route 5 into the first set of selected routes. In another embodiment, compare each section passed by the first selected route with each section passed by the remaining existing camera device routes to obtain multiple non-overlapping section routes. Determine the non-overlapping section route with the longest total length of the covered detection sections as the second selected route. Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each section passed by the first selected route with each section passed by the remaining existing camera device routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the longest total length of the covered detection sections as the second selected route until there are no routes available. Combine each selected route into the first set of selected routes.
[0066] Step S203: Determine multiple bus routes other than the first set of selected routes as unselected routes, and determine multiple unselected sections according to the first set of selected routes and the multiple road sections.
[0067] Step S204: Based on multiple unselected road sections and multiple unselected routes, perform screening processing to obtain a second set of selected routes, and merge the first set of selected routes and the second set of selected routes to obtain multiple road environment detection routes for environmental detection of the road network.
[0068] As can be seen from the above, determine the route with the most road sections in the existing shooting device routes according to the total number of passing road sections, and determine the route with the most road sections as the first selected route. Based on the first selected route and the remaining existing shooting device routes, perform comparison processing to obtain the first set of selected routes. This solution selects the environmental detection routes from the existing shooting device routes through the total number of passing road sections and the road section coincidence situation, which can reduce the video recognition processing volume and make the road environment detection range as large as possible.
[0069] Figure 3 It is a flowchart of an optimized deployment method for a road environment detection network based on bus lines provided in an embodiment of the present application, including a method for determining a second set of selected routes. As Figure 3 shown, it specifically includes:
[0070] Step S301: Obtain multiple bus lines in the road network and the device information of the buses on each bus line. The road network includes multiple road sections, and each bus line includes multiple passing road sections. Determine whether each bus line is an existing shooting device route according to the device information.
[0071] Step S302: In the case of multiple existing shooting device routes, count the total number of passing road sections of each existing shooting device route, and perform screening processing based on the multiple passing road sections of the existing shooting device route and the total number of passing road sections to obtain the first set of selected routes.
[0072] Step S303: Determine multiple unselected routes from the bus lines other than the first set of selected routes, and determine multiple unselected road sections according to the first set of selected routes and the multiple road sections.
[0073] Step S304: Compare each unselected road section with the passing road sections of multiple unselected routes respectively, determine the proportion of unselected road sections in each unselected route according to the comparison result, and determine the first selected route as the unselected route with the highest proportion of unselected road sections.
[0074] Among them, the proportion of unselected sections is used to represent the ratio of the number of unselected sections among multiple passed sections in the unselected route to the total number of unselected sections. The first selected route can be determined using this proportion of unselected sections. The first selected route can be an unselected route selected from multiple unselected routes for road environment detection. Optionally, in the case where there are multiple unselected routes with the highest proportion of unselected sections, one way to determine the first selected route is to obtain the preset detection weights of each unselected section in each unselected route with the highest proportion of unselected sections, calculate the sum of the unselected section detection weights of each unselected route with the highest proportion of unselected sections according to this preset detection weight, and determine the unselected route with the highest sum of unselected section detection weights as the first selected route. The preset detection weight can be the importance degree of the pre-set section for environmental detection. An exemplary example can be that the unselected routes with the highest proportion of unselected sections are Bus Route 1, Bus Route 2, and Bus Route 3 respectively. The unselected sections in Bus Route 1 are Section 1, Section 2, and Section 3 respectively. The unselected sections in Bus Route 2 are Section 3, Section 4, and Section 5 respectively. The unselected sections in Bus Route 3 are Section 2, Section 4, and Section 5 respectively. The preset detection weight of Section 1 is 0.5, the preset detection weight of Section 2 is 0.8, the preset detection weight of Section 3 is 0.6, the preset detection weight of Section 4 is 0.9, and the preset detection weight of Section 5 is 0.3. It is calculated that the sum of the unselected section detection weights of Bus Route 1 is 1.9, the sum of the unselected section detection weights of Bus Route 2 is 1.8, and the sum of the unselected section detection weights of Bus Route 3 is 2. The unselected route with the highest sum of unselected section detection weights is Bus Route 3, so Bus Route 3 is determined as the first selected route. In another embodiment, obtain the line lengths of each unselected section in each unselected route with the highest proportion of unselected sections, calculate the sum of the line lengths of each unselected section in each such unselected route respectively, and determine the unselected route with the largest sum of the line lengths as the first selected route.
[0075] Step S305: Perform a comparison process based on the first selected route and the remaining unselected routes to obtain a second set of selected routes, and merge the first set of selected routes and the second set of selected routes to obtain multiple road environment detection routes for environmental detection of the road network.
[0076] Optionally, a method for determining a second set of alternative routes may be as follows: compare each section passed by the first selected route with each section passed by the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the largest proportion of unselected sections as the second selected route. Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each section passed by the first selected route with each section passed by the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the largest proportion of unselected sections as the second selected route until there are no routes available. Then, combine all the selected routes into a second set of alternative routes. An exemplary example may be as follows: multiple unselected routes are respectively Bus Route 2, Bus Route 4, Bus Route 6, Bus Route 7, Bus Route 8, and Bus Route 9. It is determined that Bus Route 2 is the first selected route. Compare each section passed by Bus Route 2 with each section passed by Bus Route 4, Bus Route 6, Bus Route 7, Bus Route 8, and Bus Route 9 to obtain non-overlapping section routes as Bus Route 6, Bus Route 7, Bus Route 8, and Bus Route 9. Among them, the one with the largest proportion of unselected sections is Bus Route 6, so Bus Route 6 is determined as the second selected route. Compare each section passed by Bus Route 6 with each section passed by Bus Route 7, Bus Route 8, and Bus Route 9 to obtain non-overlapping section routes as Bus Route 8 and Bus Route 9. The total number of sections passed by Bus Route 8 is greater than that of Bus Route 9, so Bus Route 8 is determined as the third selected route. Compare each section passed by Bus Route 8 with each section passed by Bus Route 9. There are no overlapping sections between Bus Route 9 and Bus Route 8, so Bus Route 9 is determined as the fourth selected route. Currently, there are no routes available, so Bus Route 2, Bus Route 6, Bus Route 8, and Bus Route 9 are combined into a second set of alternative routes. In another embodiment, compare each section passed by the first selected route with each section passed by the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the longest total length of unselected sections as the second selected route. Based on the second selected route and the remaining non-overlapping section routes, repeat the process of comparing each section passed by the first selected route with each section passed by the remaining unselected routes to obtain multiple non-overlapping section routes, and determine the non-overlapping section route with the longest total length of unselected sections as the second selected route until there are no routes available. Then, combine all the selected routes into a second set of alternative routes.
[0077] As can be seen from the above, multiple unselected road segments are respectively compared with the passing road segments of multiple unselected bus lines, and the proportion of unselected road segments in each unselected bus line is determined according to the comparison results. The unselected bus line with the highest proportion of unselected road segments is determined as the first selected bus line, and a second selection bus line set is obtained through comparison processing based on the first selected bus line and the remaining unselected bus lines. This solution can determine other detection bus lines in the unselected bus lines based on the proportion of unselected road segments, and can maximize the detection range of the road environment in the road network as much as possible.
[0078] Figure 4 This is a module structure block diagram of a device for optimizing the deployment of a road environment detection network based on bus lines provided by an embodiment of the present application. This system is used to execute a method for optimizing the deployment of a road environment detection network based on bus lines provided by the above embodiment, and has functional modules and beneficial effects corresponding to the execution of the method. As Figure 4 shown, this system specifically includes:
[0079] An acquisition module 101, configured to acquire multiple bus lines in a road network and device information of buses on each of the bus lines. The road network includes multiple road segments, and each bus line includes multiple passing road segments;
[0080] A judgment module 102, configured to respectively determine whether each of the bus lines is an existing shooting device line according to the device information;
[0081] A first screening and processing module 103, configured to, when there are multiple existing shooting device lines, count the total number of passing road segments of each existing shooting device line, and perform screening and processing based on the multiple passing road segments of the existing shooting device line and the total number of passing road segments to obtain a first selection bus line set;
[0082] A second screening and processing module 104, configured to determine multiple bus lines other than the first selection bus line set as unselected bus lines, determine multiple unselected road segments according to the first selection bus line set and the multiple road segments, and perform screening and processing based on the multiple unselected road segments and the multiple unselected bus lines to obtain a second selection bus line set;
[0083] A set merging module 105, configured to merge the first selection bus line set and the second selection bus line set to obtain multiple road environment detection bus lines for environmental detection of the road network.
[0084] As can be seen from the above solution, devices for obtaining multiple bus lines within a road network and the information of buses on each bus line are provided. The road network includes multiple road segments, and each bus line includes multiple passing segments. According to the device information, it is determined whether each bus line is a line with existing shooting devices. In the case of multiple lines with existing shooting devices, the total number of passing segments of each line with existing shooting devices is counted. Based on the multiple passing segments and the total number of passing segments of the line with existing shooting devices, screening processing is performed to obtain a first set of selected lines. Multiple bus lines outside the first set of selected lines are determined as unselected lines. According to the first set of selected lines and the multiple road segments, multiple unselected segments are determined. Based on the multiple unselected segments and the multiple unselected lines, screening processing is performed to obtain a second set of selected lines. The first set of selected lines and the second set of selected lines are combined to obtain multiple road environment detection lines for environmental detection of the road network. This solution performs screening processing on detection lines based on the installation situation of bus shooting devices, solves the problem of large video recognition processing volume in the existing method for road network environmental detection, resulting in low efficiency of road network environmental detection, and can reduce the video recognition processing volume.
[0085] In a possible embodiment, the first screening processing module 103 is specifically configured to:
[0086] Determine the line with the most segments among the lines with existing shooting devices according to the total number of passing segments, and determine the line with the most segments as the first selected line. Based on the first selected line and the remaining lines with existing shooting devices, comparison processing is performed to obtain a first set of selected lines.
[0087] In a possible embodiment, the first screening processing module 103 is further configured to:
[0088] Perform segment coincidence comparison processing on the passing segments of each line with the most segments. In the case where there are coincidence segments in each line with the most segments, obtain the total length of the covered detection segments of each line with the most segments, and determine the line with the most segments having the longest total length of the covered detection segments as the first selected line;
[0089] In the case where there is a line with the most segments having no coincidence segments, when there is one line with the most segments having no coincidence segments, determine the line with the most segments having no coincidence segments as the first selected line. When there are multiple lines with the most segments having no coincidence segments, randomly select one line with the most segments having no coincidence segments and determine it as the first selected line.
[0090] In a possible embodiment, the first screening processing module 103 is further configured to:
[0091] Compare each passing section of the first selected line with each passing section of the remaining existing shooting device lines to obtain multiple non-overlapping section lines, and determine the non-overlapping section line with the largest total number of passing sections as the second selected line;
[0092] Based on the second selected line and the remaining non-overlapping section lines, repeat the process of comparing each passing section of the first selected line with each passing section of the remaining existing shooting device lines to obtain multiple non-overlapping section lines, and determine the non-overlapping section line with the largest total number of passing sections as the second selected line until no line is available for selection, and combine each selected line into the first selected line set.
[0093] In a possible embodiment, the second screening processing module 104 is specifically configured to:
[0094] Compare each of the multiple unselected sections with each passing section of the multiple unselected lines respectively, determine the proportion of unselected sections in each unselected line according to the comparison results, and determine the unselected line with the highest proportion of unselected sections as the first selected line;
[0095] Perform a comparison process based on the first selected line and the remaining unselected lines to obtain a second selected line set.
[0096] In a possible embodiment, the second screening processing module 104 is further configured to:
[0097] Obtain the preset detection weights of each unselected section in the unselected line with the highest proportion of unselected sections, calculate the sum of the unselected section detection weights of the unselected line with the highest proportion of unselected sections according to the preset detection weights, and determine the unselected line with the highest sum of unselected section detection weights as the first selected line.
[0098] In a possible embodiment, the second screening processing module 104 is further configured to:
[0099] Compare each passing section of the first selected line with each passing section of the remaining unselected lines to obtain multiple non-overlapping section lines, and determine the non-overlapping section line with the largest proportion of unselected sections as the second selected line;
[0100] Based on the second selected line and the remaining non-overlapping section lines, repeat the process of comparing each passing section of the first selected line with each passing section of the remaining unselected lines to obtain multiple non-overlapping section lines, and determine the non-overlapping section line with the largest proportion of unselected sections as the second selected line until no line is available for selection, and combine each selected line into the second selected line set.
[0101] In a possible embodiment, it further includes a dedicated shooting device line determination module, specifically used for:
[0102] Obtain multiple road sections to be detected, compare the passing road sections of each bus line with the multiple road sections to be detected to obtain each covered road section to be detected of each bus line, and determine the bus line with the most covered road sections to be detected as the first selected line;
[0103] Compare each covered road section to be detected of the first selected line with each covered road section to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines, and determine the non-overlapping road section line with the most covered road sections to be detected as the second selected line;
[0104] Based on the second selected line and the remaining non-overlapping road section lines, repeatedly execute comparing each covered road section to be detected of the first selected line with each covered road section to be detected of the remaining bus lines to obtain multiple non-overlapping road section lines, and determine the non-overlapping road section line with the most covered road sections to be detected as the second selected line until no line is available for selection. Combine each selected line into a dedicated shooting device line set for the installation of the dedicated shooting device and perform environmental detection of the road network through the installed dedicated shooting device.
[0105] Figure 5 The figure is a schematic structural diagram of a device for optimizing the deployment of a road environment detection network based on bus lines provided by an embodiment of the present application. As Figure 5 shown, the device includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of processors 201 in the device can be one or more, Figure 5 taking one processor 201 as an example; the processor 201, memory 202, input device 203, and output device 204 in the device can be connected through a bus or other means, Figure 5 taking connection through a bus as an example. The memory 202, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions or modules corresponding to a method for optimizing the deployment of a road environment detection network based on bus lines in an embodiment of the present application. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 202, that is, implements the above-mentioned method for optimizing the deployment of a road environment detection network based on bus lines. The input device 203 can be used to receive input digital or character information, and generate key signal inputs related to user settings and function controls of the device. The output device 204 can include a display device such as a display screen.
[0106] An embodiment of the present application further provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute an optimized deployment method for a road environment detection network based on bus lines when executed by a computer processor. The method includes:
[0107] Obtain multiple bus lines within the road network and the device information of the buses on each of the bus lines. The road network includes multiple road segments, and each bus line includes multiple passing segments;
[0108] Determine whether each of the bus lines is an existing camera device line according to the device information. In the case of multiple existing camera device lines, count the total number of passing segments of each existing camera device line, and perform screening processing based on the multiple passing segments of the existing camera device line and the total number of passing segments to obtain a first selection line set, and determine multiple bus lines outside the first selection line set as unselected lines;
[0109] Determine multiple unselected segments according to the first selection line set and the multiple road segments, perform screening processing based on the multiple unselected segments and the multiple unselected lines to obtain a second selection line set, and merge the first selection line set and the second selection line set to obtain multiple road environment detection lines for environmental detection of the road network.
[0110] It should be noted that in the above embodiments of the optimized deployment method system for the road environment detection network based on bus lines, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present application.
[0111] Note that the above is only a preferred embodiment of the embodiments of the present application and the applied technical principles. Those skilled in the art will understand that the embodiments of the present application are not limited to the specific embodiments described herein, and various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present application. Therefore, although the embodiments of the present application have been described in more detail through the above embodiments, the embodiments of the present application are not limited to the above embodiments. Without departing from the concept of the embodiments of the present application, more other equivalent embodiments can be included, and the scope of the embodiments of the present application is determined by the scope of the appended claims.
Claims
1. A method for optimizing the deployment of a road environment detection network based on bus routes, characterized in that: The method comprises: Acquire equipment information of a plurality of bus routes and buses on each of the bus routes in a road network, wherein the road network includes a plurality of road sections, and the bus routes include a plurality of passing sections; Determine whether each of the bus routes is an existing camera route according to the device information; if there are multiple existing camera routes, count the total number of sections passed by each of the existing camera routes; determine the route with the most sections among the existing camera routes according to the total number of sections passed by, and determine the route with the most sections as a first selected route; perform comparison processing based on the first selected route and the remaining existing camera routes to obtain a first selected route set, and determine multiple bus routes other than the first selected route set as unselected routes; Determine a plurality of unselected sections based on the first selected route set and the plurality of road sections, compare the plurality of unselected sections with the respective passing sections of the plurality of unselected routes, determine the proportion of unselected sections in each of the unselected routes based on the comparison results, and determine the unselected route with the highest proportion of unselected sections as the first selected route; obtain a second selected route set based on the comparison of the first selected route and the remaining unselected routes, and merge the first selected route set and the second selected route set to obtain a plurality of road environment detection routes for use in the environment detection of the road network.
2. The method for optimizing the deployment of a road environment detection network based on a bus route according to claim 1 is characterized in that: In the case where there are multiple routes with the most sections, the method for determining the first selected route includes: Performing a segment overlap comparison process on the segments passed by each of the routes with the most segments, and when there are overlapped segments in each of the routes with the most segments, obtaining the total length of the covered detection segments of each of the routes with the most segments, and determining the route with the most segments with the longest total length of the covered detection segments as the first selected route; In the case where there is a route with the most sections without overlapping sections, when there is only one route with the most sections without overlapping sections, the route with the most sections without overlapping sections is determined as the first selected route; when there are multiple routes with the most sections without overlapping sections, one of the routes with the most sections without overlapping sections is randomly selected as the first selected route.
3. The method for optimizing the deployment of a road environment detection network based on a bus route according to claim 1 is characterized in that: The step of performing comparison processing based on the first selected circuit and the remaining existing shooting device circuits to obtain a first selected circuit set includes: Compare the sections passed by the first selected route with the sections passed by the remaining existing shooting equipment routes to obtain multiple routes with no overlapped sections, and determine the route with the largest number of sections passed by no overlapped sections as the second selected route; Based on the second selected route and the remaining routes without overlapping sections, the process of repeatedly comparing the passing sections of the first selected route with the passing sections of the remaining existing shooting equipment routes is repeated to obtain multiple routes without overlapping sections, and the route without overlapping sections having the largest total number of passing sections is determined as the second selected route until there is no route available, and the selected routes are combined into a first selected route set.
4. The method for optimizing the deployment of a road environment detection network based on a bus route according to claim 1, characterized in that: When there are multiple unselected routes with the highest proportion of unselected sections, the method for determining the first selected route includes: Obtain the preset detection weights of each unselected section in the unselected routes with the highest proportion of unselected sections, calculate the sum of the unselected section detection weights of each unselected route with the highest proportion of unselected sections according to the preset detection weights, and determine the unselected route with the highest sum of the unselected section detection weights as the first selected route.
5. The method for optimizing the deployment of a road environment detection network based on a bus route according to claim 1, characterized in that: The step of performing comparison processing based on the first selected circuit and the remaining unselected circuits to obtain a second selected circuit set includes: Compare the sections passed by the first selected route with the sections passed by the remaining unselected routes to obtain multiple routes without overlapping sections, and determine the route without overlapping sections with the largest proportion of unselected sections as the second selected route; Based on the second selected route and the remaining routes without overlapping sections, repeatedly compare the various passing sections of the first selected route with the various passing sections of the remaining unselected routes to obtain multiple routes without overlapping sections, determine the route without overlapping sections with the largest proportion of unselected sections as the second selected route until there are no routes to be selected, and combine the various selected routes into a second selected route set.
6. The method for optimizing the deployment of a road environment detection network based on a bus route according to claim 1, characterized in that: When the equipment information of the buses on each bus route does not meet the pre-stored road environment detection equipment conditions and it is determined to deploy a dedicated shooting device, the method includes: Acquire multiple sections to be detected, compare the sections passed by each bus line with the multiple sections to be detected to obtain the sections to be detected covered by each bus line, and determine the bus line with the most sections to be detected covered as the first selected line; Compare the covered sections to be detected of the first selected route with the covered sections to be detected of the remaining bus routes to obtain multiple routes with no overlapping sections, and determine the route with the most covered sections to be detected with no overlapping sections as the second selected route; Based on the second selected route and the remaining routes without overlapping road sections, the method of repeatedly comparing the covered sections to be detected of the first selected route with the covered sections to be detected of the remaining bus routes is performed to obtain multiple routes without overlapping road sections, and the route without overlapping road sections that covers the most sections to be detected is determined as the second selected route until there is no route available, and the selected routes are combined into a special shooting equipment route set for the installation of the special shooting equipment and the environmental detection of the road network is performed through the installed special shooting equipment.
7. A road environment detection network optimization deployment device based on bus routes, characterized in that: include: An acquisition module, used to acquire equipment information of a plurality of bus routes and buses on each of the bus routes in a road network, wherein the road network includes a plurality of road sections, and the bus routes include a plurality of passing sections; A judgment module, used to determine whether each of the bus routes is a route with existing photographing equipment according to the equipment information; A first screening processing module is used for counting the total number of sections passed by each of the existing shooting device routes when there are multiple existing shooting device routes, determining the route with the most sections among the existing shooting device routes according to the total number of sections passed, determining the route with the most sections as a first selected route, and performing a comparison process based on the first selected route and the remaining existing shooting device routes to obtain a first selected route set; A second screening processing module is used to determine multiple bus routes other than the first selected route set as unselected routes, determine multiple unselected sections according to the first selected route set and the multiple road sections, compare the multiple unselected sections with each of the passing sections of the multiple unselected routes, determine the proportion of unselected sections in each of the unselected routes according to the comparison results, and determine the unselected route with the highest proportion of unselected sections as the first selected route; Comparing the first selected circuit and the remaining unselected circuits to obtain a second selected circuit set; A set merging module is used to merge the first selected route set and the second selected route set to obtain multiple road environment detection routes for use in the environment detection of the road network.
8. A road environment detection network optimization deployment device based on bus routes, the device comprising: one or more processors; A storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the road environment detection network optimization deployment method based on bus lines as described in any one of claims 1-6.
9. A storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the road environment detection network optimization deployment method based on bus lines as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for constructing joint topology of bus road network and road network, and upper computer
CN111753030A
Road section bus route repetition coefficient data calculation method and device and storage medium
CN113850996A