Automatic road patrol method, device, electronic equipment, medium and program product
By cutting the highway patrol section into multiple monitoring sections and determining the target equipment, and using the automatic patrol model to process the video information, the problem of low efficiency and high cost of the existing patrol method is solved, and efficient, low-cost all-weather highway patrol is realized. .
Patent Information
- Application Number
- CN202210462223.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-04-27
AI Technical Summary
The existing highway patrol methods are inefficient, time-sensitive, and costly, and cannot meet the needs of all-weather high-frequency patrols. Moreover, manual adjustment of the camera pan/tilt loses the significance and cost advantage of artificial intelligence applications.
By cutting the inspection road section into multiple monitoring sections, and determining the target monitoring equipment for each monitoring section, using the target equipment to capture video information, and inputting the video information and inspection rules into the automatic inspection model, automatic output of inspection results is achieved and manual intervention is reduced. Improve inspection efficiency and timeliness.
It significantly improves the efficiency and timeliness of highway inspections, reduces inspection costs, and makes full use of existing high-altitude observation video surveillance to achieve all-weather high-frequency inspections without manual intervention.
Smart Images

Figure CN114782896B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and more specifically, to an automatic road patrol method, device, electronic device, medium and computer program product. Background Art
[0002] At present, there are two main ways to patrol highways. One is for patrol personnel to drive vehicles along the highway for patrols, which has low patrol frequency and high cost. The other is to conduct remote online patrols through high-altitude observation cameras by manually controlling the pan / tilt and zoom. The existing patrol methods are inefficient, time-sensitive, and costly, and cannot meet the needs of all-weather high-frequency patrols. With the development of artificial intelligence technology, video analysis capabilities have gradually increased. Through video recognition algorithms, a series of behaviors that affect highway driving safety and cause highway congestion can be identified, such as vehicles driving in the wrong direction on highways, illegal parking on highways, vehicles breaking down on highways, and vehicle accidents on highways. However, since highways are long and narrow, it is costly to deploy cameras along the highway to cover the entire road surface, and manually adjusting the camera pan / tilt has lost the significance and cost advantage of artificial intelligence applications. Summary of the invention
[0003] In view of this, the present disclosure provides a method, device, electronic device, computer-readable storage medium and computer program product for automatic road patrol with high patrol efficiency, low cost and good effectiveness.
[0004] One aspect of the present disclosure provides a method for automatic road inspection, comprising: determining a starting point and an end point of an inspection section; cutting the inspection section according to the starting point, the end point and the cutting distance to obtain m monitoring sections, wherein m is an integer greater than or equal to 1; determining the A of each monitoring section i monitoring devices, wherein the shooting range of each of the monitoring devices includes the monitored road section, A i is an integer greater than or equal to 1, i is an integer greater than or equal to 1 and less than or equal to m; obtain the road information of the monitored section; obtain the A i equipment information of each monitoring device in the monitoring devices; determining the A according to the road information and the equipment information i a target monitoring device among the monitoring devices; using the target device to photograph the section information of the patrol section; and inputting the section information and patrol rules into an automatic patrol model to obtain a patrol result.
[0005] According to the automatic road patrol method of the disclosed embodiment, by cutting the patrol section into m monitoring sections and determining the target monitoring device for each monitoring section, the target monitoring device can be allowed to capture video information of the corresponding monitoring section, thereby obtaining video information of the entire patrol section, and by inputting the video information and patrol rules into the automatic patrol model, the automatic patrol model can automatically output the patrol results, thereby reducing the patrol cost without human intervention, and at the same time can significantly improve the patrol efficiency of the highway and improve the timeliness of the patrol.
[0006] In some embodiments, the determining of the A of each monitored road segment i The monitoring devices specifically include: taking the end point of each monitoring section as the center, the devices within the center threshold range from the end point are the monitoring devices of the monitoring section.
[0007] In some embodiments, the obtaining of the road information of the monitored section specifically includes: obtaining the longitude, latitude and elevation of the end point of the monitored section.
[0008] In some embodiments, the obtaining of the A i The device information of each monitoring device in the monitoring devices specifically includes: obtaining the A i The longitude, latitude and altitude of each monitoring device in the world coordinate system; and obtaining the A i The focal length range, resolution, horizontal angle adjustment range and vertical angle adjustment range of each monitoring device in the monitoring devices.
[0009] In some embodiments, the A is determined based on the road information and the device information. i The target monitoring device in the monitoring device specifically includes: i The device information of each monitoring device is used to determine the azimuth relationship between the monitoring section and each of the monitoring devices; and the azimuth relationship between the monitoring section and the A i The position relationship of the monitoring devices and the A i The device information of the monitoring device is determined as follows: i The pixel density of each monitoring device; and i The pixel density and device information of the monitoring device are filtered out. i The target monitoring device among the monitoring devices.
[0010] In some embodiments, the azimuth relationship includes a horizontal angle, a vertical angle, and a distance between the two directions. iThe device information of each monitoring device is used to determine the azimuth relationship between the monitored section and each of the monitoring devices, specifically including: determining the horizontal angle between the monitored section and each of the monitoring devices according to the longitude and latitude of the end point of the monitored section and the longitude and latitude of each of the monitoring devices in the world coordinate system; determining the vertical angle between the monitored section and each of the monitoring devices according to the longitude, latitude and elevation of the end point of the monitored section and the longitude, latitude and elevation of each of the monitoring devices in the world coordinate system; and determining the interval distance between the monitored section and each of the monitoring devices according to the longitude, latitude and elevation of the end point of the monitored section and the longitude, latitude and elevation of each of the monitoring devices in the world coordinate system.
[0011] In some embodiments, the pixel density includes horizontal pixel density and vertical pixel density. i The position relationship of the monitoring devices and the A i The device information of the monitoring device is determined as follows: i The pixel density of each monitoring device specifically includes: according to the vertical angle, the spacing distance and the A i The focal length range and resolution of each monitoring device in the monitoring devices determine the A i The horizontal pixel density of each monitoring device; and according to the vertical angle, the spacing distance and the A i The focal length range and resolution of each monitoring device in the monitoring devices determine the A i The vertical pixel density of each monitoring device.
[0012] In some embodiments, the i The pixel density and device information of the monitoring device are filtered out. i The target monitoring device among the monitoring devices specifically includes: comparing the pixel density with a pixel threshold, and taking the monitoring device corresponding to the pixel density that meets the pixel threshold as the first pre-selected device; comparing the azimuth relationship between each monitoring device in the first pre-selected device and the monitored road section with the horizontal angle adjustable range and the vertical angle adjustable range, and taking the first pre-selected device corresponding to the azimuth relationship that meets the horizontal angle adjustable range and the vertical angle adjustable range as the second pre-selected device; and sorting the pixel densities of the second pre-selected devices, and filtering out the target monitoring device according to the sorting result.
[0013] In some embodiments, the patrol rules include at least one of a specified road section, a specified clarity, a specified direction, a specified lane, and a specified duration; the patrol results include at least one of driving speed, whether the vehicle is in an accident, whether it is illegally parked, whether the vehicle is driving in the wrong direction, whether it is driving in an emergency lane, whether an obstacle is left behind, and whether it is speeding.
[0014] Another aspect of the present disclosure provides an automatic road patrol device, comprising: a first determination module, the first determination module is used to determine the starting point and the end point of the patrol section; a second determination module, the second determination module is used to cut the patrol section according to the starting point, the end point and the cutting distance to obtain m monitoring sections, wherein m is an integer greater than or equal to 1; a third determination module, the third determination module is used to determine the A of each monitoring section i monitoring devices, wherein the shooting range of each of the monitoring devices includes the monitored road section, A i is an integer greater than or equal to 1, i is an integer greater than or equal to 1 and less than or equal to m; a first acquisition module, the first acquisition module is used to execute the acquisition of the road information of the monitored section; a second acquisition module, the second acquisition module is used to execute the acquisition of the A i a fourth determining module, the fourth determining module is used to determine the A according to the road information and the device information i a target monitoring device among the monitoring devices; a shooting module, which is used to use the target device to shoot the section information of the patrol section; and an output module, which is used to input the section information and patrol rules into an automatic patrol model to obtain a patrol result.
[0015] Another aspect of the present disclosure provides an electronic device, comprising one or more processors and one or more memories, wherein the memories are used to store executable instructions, and when the executable instructions are executed by the processors, the above-mentioned method is implemented.
[0016] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0017] Another aspect of the present disclosure provides a computer program product, comprising a computer program, wherein the computer program comprises computer executable instructions, and the instructions are used to implement the method as described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1 An exemplary system architecture to which the method and apparatus according to an embodiment of the present disclosure can be applied is schematically shown;
[0020] Figure 2A flowchart of an automatic road patrol method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 3 A schematic diagram of a patrol section according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 4 A flowchart schematically shows how to cut a patrol section according to a starting point, an end point and a cutting distance to obtain m monitoring sections according to an embodiment of the present disclosure;
[0023] Figure 5 Schematically shows the process of determining the A of each monitored section according to an embodiment of the present disclosure. i Flowchart of monitoring equipment;
[0024] Figure 6 A flowchart for obtaining the road information of the monitored road section according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 7 Schematically illustrates the acquisition of A according to an embodiment of the present disclosure i A flowchart of device information of each monitoring device in the monitoring devices;
[0026] Figure 8 Schematically illustrates the process of determining A based on road information and device information according to an embodiment of the present disclosure. i A flowchart of a target monitoring device among the monitoring devices;
[0027] Fig. 9 Schematically shows a method for calculating the road information and A according to an embodiment of the present disclosure. i The device information of each monitoring device, and a flow chart to determine the positional relationship between the monitoring section and each monitoring device;
[0028] Fig.10 The schematic diagram shows, according to an embodiment of the present disclosure, determining A according to the position relationship between the monitored road section and Ai monitoring devices and the device information of Ai monitoring devices. i A flowchart of the pixel density of each monitoring device;
[0029] Fig.11 Schematically illustrates the embodiment of the present disclosure according to A i Monitor the pixel density and device information of devices, and select A i A flowchart of a target monitoring device among the monitoring devices;
[0030] Fig.12 A flowchart of an automatic road patrol method according to an embodiment of the present disclosure is schematically shown;
[0031] Fig.13The structure block diagram of the automatic road patrol device according to the embodiment of the present disclosure is schematically shown;
[0032] Fig.14 The structure block diagram of the third determination module according to the embodiment of the present disclosure is schematically shown;
[0033] Fig.15 The structure block diagram of the first acquisition module according to the embodiment of the present disclosure is schematically shown;
[0034] Fig.16 The structure block diagram of the second acquisition module according to the embodiment of the present disclosure is schematically shown;
[0035] Fig.17 The structure block diagram of the fourth determination module according to the embodiment of the present disclosure is schematically shown;
[0036] Fig.18 The structure block diagram of the second determination unit according to the embodiment of the present disclosure is schematically shown;
[0037] Fig.19 The structure block diagram of the third determining unit according to the embodiment of the present disclosure is schematically shown;
[0038] Fig. 20 The structural block diagram of the screening unit according to the embodiment of the present disclosure is schematically shown;
[0039] Fig.21 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0041] In the technical solution of this disclosure, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and they do not violate public order and good morals. In the technical solution of this disclosure, the acquisition, collection, storage, use, processing, transmission, provision, disclosure and application of data are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and they do not violate public order and good morals.
[0042] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0043] When using expressions such as "at least one of A, B or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the said features.
[0044] At present, there are two main ways to patrol highways. One is for patrol personnel to drive vehicles along the highway for patrols, which has low patrol frequency and high cost. The other is to conduct remote online patrols through high-altitude observation cameras by manually controlling the pan / tilt and zoom. The existing patrol methods are inefficient, time-sensitive, and costly, and cannot meet the needs of all-weather high-frequency patrols. With the development of artificial intelligence technology, video analysis capabilities have gradually increased. Through video recognition algorithms, a series of behaviors that affect highway driving safety and cause highway congestion can be identified, such as vehicles driving in the wrong direction on highways, illegal parking on highways, vehicles breaking down on highways, and vehicle accidents on highways. However, since highways are long and narrow, it is costly to deploy cameras along the highway to cover the entire road surface, and manually adjusting the camera pan / tilt has lost the significance and cost advantage of artificial intelligence applications.
[0045] The embodiments of the present disclosure provide a method, device, electronic device, computer-readable storage medium and computer program product for automatic road patrol. The method for automatic road patrol includes: determining the starting point and the end point of the patrol section; cutting the patrol section according to the starting point, the end point and the cutting distance to obtain m monitoring sections, where m is an integer greater than or equal to 1; determining the A of each monitoring section. i monitoring devices, wherein the shooting range of each monitoring device includes the monitored road section, A i is an integer greater than or equal to 1, i is an integer greater than or equal to 1 and less than or equal to m; obtain the road information of the monitored section; obtain A i The device information of each monitoring device in the monitoring devices; according to the road information and the device information, determine A ia target monitoring device among the monitoring devices; using the target device to shoot the section information of the patrol section; and inputting the section information and the patrol rules into the automatic patrol model to obtain the patrol result.
[0046] It should be noted that the automatic road patrol method, device, electronic device, computer-readable storage medium and computer program product disclosed in the present invention can be used in the field of artificial intelligence technology, and can also be used in any field outside the field of artificial intelligence technology, such as the financial field. The field of the present invention is not limited here.
[0047] Figure 1 The exemplary system architecture 100 to which the automatic road patrol method, apparatus, electronic device, computer-readable storage medium and computer program product according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0048] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0049] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0050] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0051] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0052] It should be noted that the automatic road patrol method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the automatic road patrol device provided in the embodiment of the present disclosure can generally be set in the server 105. The automatic road patrol method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the automatic road patrol device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0053] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0054] The following will be based on Figure 1 The scene described by Figure 2 to Figure 11 The automatic road patrol method of the embodiment of the present disclosure is described in detail.
[0055] Figure 2 The flowchart of the automatic road patrol method according to the embodiment of the present disclosure is schematically shown.
[0056] like Figure 2 As shown, the automatic road patrol method of this embodiment includes operations S210 to S280.
[0057] In operation S210, the starting point and the end point of the patrol section are determined. It is understandable that a certain section of road can be determined as a patrol section as needed, combined with Figure 3 The road from B start to B end can be understood as a patrol section, B start is the starting point of the patrol section, and B end is the end point of the patrol section.
[0058] In operation S220, the patrol section is cut according to the starting point, the end point and the cutting distance to obtain m monitoring sections, where m is an integer greater than or equal to 1. Here, the cutting distance can be understood as the distance set to divide the patrol section into m monitoring sections. For example, the length of the patrol section B from the beginning to the end of B is 100 meters, and the cutting distance is set to 20 meters, then 5 monitoring sections can be obtained, namely, B from the beginning to B1, B1 to B2, B2 to B3, B3 to B4 and B4 to B end.
[0059] As a possible implementation method, Figure 4 As shown, operation S220 cuts the patrol section according to the starting point, the end point and the cutting distance to obtain m monitoring sections, which specifically includes operations S221 to S223.
[0060] In operation S221, a middle line of the patrol section is determined, and the start point and the end point are located on the middle line.
[0061] In operation S222, the middle line is divided into m line segments according to the cutting distance; and
[0062] In operation S223, a road section including each line segment is regarded as a monitoring road section.
[0063] Therefore, through operations S221 to S223, it is easy to cut the patrol section according to the starting point, the end point and the cutting distance to obtain m monitoring sections.
[0064] In operation S230, determine the A of each monitored road segment. i monitoring devices, wherein the shooting range of each monitoring device includes the monitored road section, A i is an integer greater than or equal to 1, and i is an integer greater than or equal to 1 and less than or equal to m.
[0065] As an implementable approach, Figure 5 As shown, operation S230 determines the A of each monitored road segment. i A monitoring device is specifically included in operation S231.
[0066] In operation S231, the end point of each monitored section is taken as the center, and the devices within the center threshold range from the end point are the monitoring devices of the monitored section. For example, the end point of each monitored section can be located on the middle line, and the end point is taken as the center, and the devices whose distance from the end point meets the center threshold range are the monitoring devices of the monitored section. The center threshold range can be set according to actual needs. In this way, it is easy to determine the A of each monitored section. i A monitoring device.
[0067] In operation S240, road information of the monitored road section is obtained.
[0068] As some specific examples, Figure 6 As shown, operation S240 obtains the road information of the monitored section, which specifically includes operation S241.
[0069] In operation S241, the longitude, latitude and altitude of the end point of the monitored section are obtained. Thus, the road information of the monitored section can be constructed through the longitude, latitude and altitude to facilitate the subsequent steps.
[0070] In operation S250, obtain A i The device information of each monitoring device in the monitoring devices.
[0071] As an implementable approach, Figure 7As shown, operation S250 obtains A i The device information of each monitoring device in the monitoring devices specifically includes operation S251 and operation S252.
[0072] In operation S251, obtain A i The longitude, latitude and altitude of each monitoring device in the world coordinate system.
[0073] In operation S252, obtain A i The focal length range, resolution, horizontal angle adjustment range and vertical angle adjustment range of each monitoring device in the monitoring devices.
[0074] Thus, operations S251 and S252 can facilitate the acquisition of A. i The device information of each monitoring device in the monitoring devices.
[0075] In operation S260, A is determined based on the road information and the equipment information. i The target monitoring device among the monitoring devices.
[0076] As a possible implementation method, Figure 8 As shown, operation S260 determines A based on the road information and the equipment information. i The target monitoring device among the monitoring devices specifically includes operations S261 to S263.
[0077] In operation S261, according to the road information and A i The device information of each monitoring device is used to determine the azimuth relationship between the monitored road section and each monitoring device.
[0078] In some specific examples, the orientation relationship may include a horizontal angle, a vertical angle, and an interval distance, such as Fig. 9 As shown, operation S261 is based on the road information and A i The device information of each monitoring device is determined to determine the azimuth relationship between the monitored road section and each monitoring device, specifically including operations S2611 to S2613.
[0079] In operation S2611, the horizontal angle between the monitored section and each monitoring device is determined based on the longitude and latitude of the end point of the monitored section and the longitude and latitude of each monitoring device in the world coordinate system. For example, the horizontal angle between the monitored section and each monitoring device is set to α (A-B) , we can get α through formula (1) (A-B) The value of .
[0080]
[0081] Among them, B WIndicates the latitude of the end point of the monitored section, B J Indicates the longitude of the end point of the monitored section, A nW Indicates the latitude of each monitoring device in the world coordinate system, A nJ Indicates the longitude of each monitoring device in the world coordinate system. Therefore, the horizontal angle between the monitoring section and each monitoring device can be determined according to the longitude and latitude of the end point of the monitoring section and the longitude and latitude of each monitoring device in the world coordinate system.
[0082] In operation S2612, the vertical angle between the monitored section and each monitoring device is determined based on the longitude, latitude and elevation of the end point of the monitored section and the longitude, latitude and elevation of each monitoring device in the world coordinate system. For example, the vertical angle between the monitored section and each monitoring device is set to β (A-B) , we can get β by formula (2) (A-B) The value of .
[0083]
[0084] Among them, B W Indicates the latitude of the end point of the monitored section, B J Indicates the longitude of the end point of the monitored section, B G Indicates the elevation of the end point of the monitored section, A nW Indicates the latitude of each monitoring device in the world coordinate system, A nJ Indicates the longitude of each monitoring device in the world coordinate system, A nG Indicates the elevation of each monitoring device in the world coordinate system, and R is the radius of the guiding earth, which is approximately equal to 6371000 meters. Therefore, the vertical angle between the monitoring section and each monitoring device can be determined based on the longitude, latitude and elevation of the end point of the monitoring section and the longitude, latitude and elevation of each monitoring device in the world coordinate system.
[0085] In operation S2613, the interval between the monitored section and each monitoring device is determined according to the longitude, latitude and elevation of the end point of the monitored section and the longitude, latitude and elevation of each monitoring device in the world coordinate system. For example, the interval between the monitored section and each monitoring device is set to L, and the value of L can be obtained by formula (3).
[0086]
[0087] Among them, B W Indicates the latitude of the end point of the monitored section, B J Indicates the longitude of the end point of the monitored section, B G Indicates the elevation of the end point of the monitored section, A nWIndicates the latitude of each monitoring device in the world coordinate system, A nJ Indicates the longitude of each monitoring device in the world coordinate system, A nG represents the elevation of each monitoring device in the world coordinate system, and R is the radius of the guiding earth, which is approximately equal to 6371000 meters. Therefore, the interval distance between the monitoring section and each monitoring device can be determined according to the longitude, latitude and elevation of the end point of the monitoring section and the longitude, latitude and elevation of each monitoring device in the world coordinate system.
[0088] Through operations S2611 to S2613, it is possible to realize the i The device information of each monitoring device is used to determine the azimuth relationship between the monitored road section and each monitoring device.
[0089] In operation S262, according to the monitored road section and A i The position relationship of the monitoring equipment and A i The device information of each monitoring device is determined i The pixel density of each monitoring device.
[0090] In some specific examples, the pixel density may include a horizontal pixel density and a vertical pixel density, such as Fig.10 As shown, operation S262 is performed according to the monitored road section and A i The position relationship of the monitoring equipment and A i The device information of each monitoring device is determined i The pixel density of a monitoring device specifically includes operation S2621 and operation S2622.
[0091] In operation S2621, according to the vertical angle and the spacing distance and A i The focal length range and resolution of each monitoring device in the monitoring devices determine A i The horizontal pixel density of each monitoring device. For example, the horizontal pixel density of each monitoring device is set to DH, and the value of DH can be obtained by formula (4).
[0092]
[0093] Among them, β (A-B) represents the vertical angle between the monitoring section and each monitoring device, L represents the interval between the monitoring section and each monitoring device, Rs represents the resolution of the monitoring device, and assuming that the focal length range of the monitoring device is (Fn.min, Fn.max), then Fn.min represents the minimum value within the focal length range, and Fn.max represents the maximum value within the focal length range. i The focal length range and resolution of each monitoring device in the monitoring devices determine A iThe horizontal pixel density of each monitoring device.
[0094] In operation S2622, according to the vertical angle and the interval distance and A i The focal length range and resolution of each monitoring device in the monitoring devices determine A i The vertical pixel density of each monitoring device. For example, the vertical pixel density of each monitoring device is set to DV, and the value of DV can be obtained by formula (5).
[0095]
[0096] Among them, β (A-B) represents the vertical angle between the monitoring section and each monitoring device, L represents the interval between the monitoring section and each monitoring device, Rs represents the resolution of the monitoring device, and assuming that the focal length range of the monitoring device is (Fn.min, Fn.max), then Fn.min represents the minimum value within the focal length range, and Fn.max represents the maximum value within the focal length range. i The focal length range and resolution of each monitoring device in the monitoring devices determine A i The vertical pixel density of each monitoring device.
[0097] Operations S2621 and S2622 can be used to facilitate the implementation of the monitoring section and A i The position relationship of the monitoring equipment and A i The device information of each monitoring device is determined i The pixel density of each monitoring device.
[0098] In operation S263, according to A i Monitor the pixel density and device information of devices, and select A i The target monitoring device among the monitoring devices.
[0099] In some specific examples, such as Fig.11 As shown, operation S263 is performed according to A i Monitor the pixel density and device information of devices, and select A i The target monitoring device among the monitoring devices specifically includes operations S2631 to S2633.
[0100] In operation S2631, the pixel density is compared with the pixel threshold, and the monitoring device corresponding to the pixel density that meets the pixel threshold is used as the first pre-selected device. It can be understood that the pixel density may include horizontal pixel density and vertical pixel density. As some specific examples, operation S2631 compares the pixel density with the pixel threshold, and the monitoring device corresponding to the pixel density that meets the pixel threshold is used as the first pre-selected device, specifically including operation S001: the monitoring device corresponding to the horizontal pixel density that meets the first pixel threshold and the vertical pixel density that meets the second pixel threshold is used as the first pre-selected device. For example, the monitoring device corresponding to the horizontal pixel density greater than the first pixel threshold and the vertical pixel density greater than the second pixel threshold is used as the first pre-selected device.
[0101] In operation S2632, the azimuth relationship between each monitoring device in the first preselected device and the monitored section is compared with the adjustable horizontal angle range and the adjustable vertical angle range, and the first preselected device corresponding to the azimuth relationship that satisfies the adjustable horizontal angle range and the adjustable vertical angle range is used as the second preselected device. As some specific examples, operation S2632 compares the azimuth relationship between each monitoring device in the first preselected device and the monitored section with the adjustable horizontal angle range and the adjustable vertical angle range, and the first preselected device corresponding to the azimuth relationship that satisfies the adjustable horizontal angle range and the adjustable vertical angle range is used as the second preselected device, specifically including operation S002: comparing the horizontal angle between each monitoring device in the first preselected device and the monitored section with the adjustable horizontal angle range, comparing the vertical angle between each monitoring device in the first preselected device and the monitored section with the adjustable vertical angle range, and the first preselected device corresponding to the horizontal angle within the adjustable horizontal angle range and the vertical angle within the adjustable vertical angle range is used as the second preselected device.
[0102] In operation S2633, the pixel densities of the second pre-selected devices are sorted, and the target monitoring device is screened out according to the sorting results. Here, the horizontal pixel densities of the second pre-selected devices can be sorted in ascending order, and the maximum value of the sorting result is used as the target monitoring device; the horizontal pixel densities of the second pre-selected devices can be sorted in descending order, and the maximum value of the sorting result is used as the target monitoring device; the vertical pixel densities of the second pre-selected devices can be sorted in ascending order, and the maximum value of the sorting result is used as the target monitoring device; the vertical pixel densities of the second pre-selected devices can be sorted in descending order, and the maximum value of the sorting result is used as the target monitoring device.
[0103] Therefore, through operations S2631 to S2633, it is easy to implement the i Monitor the pixel density and device information of devices, and select A i The target monitoring device among the monitoring devices.
[0104] In operation S270, the target device is used to capture the road section information of the patrol road section. Here, the road section information can be understood as the video, audio, image, etc. of the patrol road section captured by the target device. The present disclosure takes the road section information as a video as an example for explanation.
[0105] In operation S280, the road section information and the patrol rules are input into the automatic patrol model to obtain a patrol result.
[0106] As an implementable method, the patrol rule includes at least one of a specified road section, a specified definition, a specified direction, a specified lane, and a specified duration. For example, the video recognition algorithm in the automatic patrol model can identify the required road section in the video according to the specified road section; process the video to the required definition according to the specified definition; identify the vehicle in the video that meets the direction according to the specified direction; identify the vehicle traveling in the specified lane according to the specified lane; and extract the video stream of the corresponding duration in the video according to the specified duration.
[0107] The automatic patrol model processes the road section information according to the patrol rules to obtain patrol results, which may include at least one of driving speed, whether the vehicle has an accident, whether it has parked illegally, whether the vehicle is driving in the wrong direction, whether it is driving in the emergency lane, whether it has left behind obstacles, and whether it is speeding. Therefore, by inputting the road section information and patrol rules into the automatic patrol model, the automatic patrol model can automatically obtain patrol results, reduce manpower input, and improve patrol efficiency.
[0108] According to the automatic road patrol method of the disclosed embodiment, by cutting the patrol section into m monitoring sections and determining the target monitoring device for each monitoring section, the target monitoring device can be allowed to capture video information of the corresponding monitoring section, thereby obtaining video information of the entire patrol section, and by inputting the video information and patrol rules into the automatic patrol model, the automatic patrol model can automatically output the patrol results, thereby reducing the patrol cost without human intervention, and at the same time can significantly improve the patrol efficiency of the highway and improve the timeliness of the patrol.
[0109] Refer to the following Fig.12 The automatic road patrol method according to the embodiment of the present disclosure is described in detail. It is worth noting that the following description is only an exemplary description and is not a specific limitation of the present disclosure.
[0110] The disclosed embodiment uses an automated control algorithm for the pan-tilt camera to adjust and control the vertical direction, horizontal direction, and focal length of the camera's pan-tilt, and outputs a video stream of a specified position (or road section), specified clarity, specified direction (bidirectional), specified lane, and specified duration. The video algorithm is then used to identify behaviors that affect driving safety, such as driving speed, vehicle accidents, illegal parking, vehicles driving in the wrong direction, using the emergency lane, leaving obstacles behind, speeding, and the like.
[0111] The algorithm is as follows:
[0112] Input: the starting and ending points of the road section to be inspected SE (a two-dimensional array consisting of the longitude and latitude of the starting point and the longitude and latitude of the ending point), the inspection frequency F (that is, the number of inspections within one hour within the set inspection range. The maximum number of inspections shall not exceed the inverse ratio of the time required for a patrol cycle. If it exceeds, the maximum number shall prevail), the start time and the end time (Ts, Te, with the time accuracy accurate to seconds, that is, year, month, day, hour, minute, and second).
[0113] Algorithm parameters: video resolution R (the number of pixels per square meter in the horizontal direction, provided by the algorithm), designated lane Ln (n = 1-10, multiple selections are supported, provided by the algorithm), single-point video duration T (in seconds, provided by the algorithm), sampling interval distance M (i.e. the shortest distance between two sampling points, provided by the algorithm).
[0114] Basic data: geographic information data G of the expressway (i.e., the longitude and latitude + elevation string of the expressway road surface); basic information of video surveillance, including: video surveillance location G (an array consisting of the video surveillance number No, the longitude j, the latitude w, and the elevation g), video surveillance parameters P (consisting of the video surveillance resolution Rsn, (Fn·min, Fn·max) (equivalent to 35mm), vertical adjustable angle range c (αn-min, αn-max), vertical angle adjustable range (βn-min, βn-max), real-time horizontal angle αn (due east is 0°), and real-time vertical angle data βn (horizontal is 0°).
[0115] Algorithm output: video surveillance number No, high-speed corresponding position (longitude, latitude), video surveillance focal length Ft, horizontal angle adjustment reading St, vertical angle adjustment degree Ct, video screen cropping position (upper left corner pixel coordinates, lower right corner pixel coordinates), video stream.
[0116] Based on the output structured data, the computer automatically controls the pan / tilt rotation and focal length change of the corresponding video surveillance, and outputs a video of a specified length. After cropping the video according to the cropping position of the video screen, it is fed into the video recognition algorithm and outputs a structured result (such as vehicle speed). This result is merged with the data output by the algorithm to form a piece of data, which is stored in the database for various applications to call.
[0117] According to the starting point of the input SE patrol section, the section information of the expressway is cut out, and the available video surveillance within the range is circled; the calculation logic is to compare the longitude and latitude of the starting point with the longitude and latitude in the expressway geographic information data G, cut out the section, and calculate the longitude and latitude string of the middle line of the expressway, and then filter out the cameras within 500 meters around the middle line to obtain the numbers of all video surveillance.
[0118] Then, according to the interval M required by the specific calling algorithm, the length of the middle line is cut to obtain the longitude and latitude array Bn (n=1-6) of the point where the video needs to be shot. For example, point B1 is composed of (A1j, A1w, A1G), that is, (longitude, latitude, elevation).
[0119] by Figure 3 Taking point B1 as an example, find the most suitable camera An, and then determine the horizontal angle α of the video surveillance (A-B) , vertical angle β (A-B) , focal length Fn. Including the longitude A of the video surveillance in the world coordinate system nJ , Latitude A nW 、Elevation A nG As well as the focal length range of the video surveillance itself (Fn·min, Fn·max) (equivalent to 35mm), resolution Rsn (1920*1080, 3840*2160, 1280*800), horizontal angle adjustable range (αn-min, αn-max), vertical angle adjustable range (βn-min, βn-max), real-time horizontal angle αn (due east is 0°), and real-time vertical angle data βn (horizontal is 0°).
[0120] Calculate the horizontal angle between An and Bn for any video surveillance Vertical Angle distance Three pieces of information. In order to calculate the distance, we also need to know the radius of the earth R ≈ 6371000 meters.
[0121] In addition, according to the focal length range (Fn·min, Fn·max) of the video surveillance itself, the resolution and the distance L between the video surveillance and the monitoring point, the pixel density corresponding to the distance is calculated, including the horizontal pixel density and vertical pixel density Discard video surveillance points with less than X pixels and satisfy α (A-B) ∈(αn-min, αn-max)∩β (A-B) ∈(βn-min, βn-max), and then sort them in descending order according to the density DH or DV, and take the An corresponding to the maximum value.
[0122] According to the selected video monitoring current real-time horizontal angle αn, real-time vertical angle βn, and the horizontal angle α between the video monitoring and the monitoring point (A-B) , vertical angle β (A-B) , calculate the angle that the video surveillance needs to rotate as horizontal rotation αn-α (A-B) , vertical rotation βn-β (A-B) , when the pixel density DH or DV is given, the focal length is or
[0123] The solution of the disclosed embodiment significantly improves the inspection efficiency of highways (automatically scheduling videos for inspection through algorithms, without the need for human intervention, and a complete inspection can be completed in as fast as 5 minutes), reduces inspection costs (no human intervention is required, and existing high-altitude video surveillance is fully utilized), and improves the timeliness of inspections (for congested sections of highways, video surveillance can be automatically scheduled for identification).
[0124] Based on the above-mentioned road automatic patrol method, the present disclosure also provides a road automatic patrol device 10. Figures 13 to 20 The automatic road patrol device 10 is described in detail.
[0125] Fig.13 The structure block diagram of the automatic road patrol device 10 according to the embodiment of the present disclosure is schematically shown.
[0126] The automatic road patrol device 10 includes a first determination module 1 , a second determination module 2 , a third determination module 3 , a first acquisition module 4 , a second acquisition module 5 , a fourth determination module 6 , a shooting module 7 and an output module 8 .
[0127] The first determining module 1 is used to perform operation S210: determine the starting point and the end point of the patrol section.
[0128] The second determining module 2 is used to perform operation S220: cutting the patrol section according to the starting point, the end point and the cutting distance to obtain m monitoring sections, where m is an integer greater than or equal to 1.
[0129] The third determining module 3 is used to perform operation S230: determine the A of each monitored road section i monitoring devices, wherein the shooting range of each monitoring device includes the monitored road section, A i is an integer greater than or equal to 1, and i is an integer greater than or equal to 1 and less than or equal to m.
[0130] The first acquisition module 4 is used to perform operation S240: acquiring road information of the monitored road section.
[0131] The second acquisition module 5 is used to perform operation S250: acquire A i The device information of each monitoring device in the monitoring devices.
[0132] The fourth determining module 6 is used to perform operation S260: determine A according to the road information and the equipment information. i The target monitoring device among the monitoring devices.
[0133] The shooting module 7 is used to perform operation S270: using the target device to shoot the section information of the patrolled section.
[0134] The output module 8 is used to perform operation S280: input the road section information and the patrol rule into the automatic patrol model to obtain the patrol result.
[0135] Fig.14 The structural block diagram of the third determination module 3 according to the embodiment of the present disclosure is schematically shown. The third determination module 3 comprises a first determination unit 31 .
[0136] The first determining unit 31 is used to perform operation S231: taking the end point of each monitored section as the center, the devices within the center threshold range from the end point are the monitoring devices of the monitored section.
[0137] Fig.15 The structural block diagram of the first acquisition module 4 according to the embodiment of the present disclosure is schematically shown. The first acquisition module 4 includes a first acquisition unit 41.
[0138] The first acquiring unit 41 is used to perform operation S241: acquiring the longitude, latitude and altitude of the end point of the monitored road section.
[0139] Fig.16 The structural block diagram of the second acquisition module 5 according to the embodiment of the present disclosure is schematically shown. The second acquisition module 5 includes a second acquisition unit 51 and a third acquisition unit 52.
[0140] The second acquisition unit 51 is used to perform operation S251: acquire A i The longitude, latitude and altitude of each monitoring device in the world coordinate system.
[0141] The third acquisition unit 52 is used to perform operation S252: acquire A i The focal length range, resolution, horizontal angle adjustment range and vertical angle adjustment range of each monitoring device in the monitoring devices.
[0142] Fig.17 The structure block diagram of the fourth determination module 6 according to the embodiment of the present disclosure is schematically shown. The fourth determination module 6 includes a second determination unit 61, a third determination unit 62 and a screening unit 63.
[0143] The second determining unit 61 is used to perform operation S261: according to the road information and A i The device information of each monitoring device is used to determine the azimuth relationship between the monitored road section and each monitoring device.
[0144] The third determining unit 62 is used to perform operation S262: according to the monitored road section and A i The position relationship of the monitoring equipment and A i The device information of each monitoring device is determined i The pixel density of each monitoring device.
[0145] The screening unit 63 is used to perform operation S263: according to A i Monitor the pixel density and device information of devices, and select A i The target monitoring device among the monitoring devices.
[0146] Fig.18 The structural block diagram of the second determination unit 61 according to the embodiment of the present disclosure is schematically shown. The second determination unit 61 includes a first determination element 611, a second determination element 612 and a third determination element 613.
[0147] The first determining element 611 is used to perform operation S2611: determine the horizontal angle between the monitored section and each monitoring device according to the longitude and latitude of the end point of the monitored section and the longitude and latitude of each monitoring device in the world coordinate system.
[0148] The second determining element 612 is used to perform operation S2612: determine the vertical angle between the monitored section and each monitoring device according to the longitude, latitude, and elevation of the end point of the monitored section and the longitude, latitude, and elevation of each monitoring device in the world coordinate system.
[0149] The third determining element 613 is used to perform operation S2613: determine the interval distance between the monitored section and each monitoring device according to the longitude, latitude, elevation of the end point of the monitored section and the longitude, latitude, elevation of each monitoring device in the world coordinate system.
[0150] Fig.19 The structure block diagram of the third determination unit 62 according to the embodiment of the present disclosure is schematically shown. The third determination unit 62 includes a fourth determination element 621 and a fifth determination element 622.
[0151] The fourth determining element 621 is used to perform operation S2621: according to the vertical angle, the interval distance and A i The focal length range and resolution of each monitoring device in the monitoring devices determine A i The horizontal pixel density of each monitoring device.
[0152] The fifth determining element 622 is used to perform operation S2622: according to the vertical angle, the interval distance and A i The focal length range and resolution of each monitoring device in the monitoring devices determine A i The vertical pixel density of each monitoring device.
[0153] Fig. 20 The structural block diagram of the screening unit 63 according to the embodiment of the present disclosure is schematically shown. The screening unit 63 includes a sixth determination element 631 , a seventh determination element 632 and a screening element 633 .
[0154] The sixth determining element 631 is used to perform operation S2631: compare the pixel density with the pixel threshold, and select the monitoring device corresponding to the pixel density that meets the pixel threshold as the first pre-selected device.
[0155] The seventh determination element 632 is used to perform operation S2632: compare the azimuth relationship between each monitoring device in the first pre-selected device and the monitored road section with the horizontal angle adjustable range and the vertical angle adjustable range, and use the first pre-selected device corresponding to the azimuth relationship that satisfies the horizontal angle adjustable range and the vertical angle adjustable range as the second pre-selected device.
[0156] The screening element 633 is used to perform operation S2633: sort the pixel densities of the second pre-selected devices, and screen out the target monitoring devices according to the sorting results.
[0157] According to the automatic road patrol device of the embodiment of the present disclosure, by cutting the patrol section into m monitoring sections and determining the target monitoring device of each monitoring section, the target monitoring device can be allowed to shoot video information of the corresponding monitoring section, thereby obtaining video information of the entire patrol section, and by inputting the video information and patrol rules into the automatic patrol model, the automatic patrol model can automatically output the patrol results, thereby reducing the patrol cost without human intervention, and at the same time can significantly improve the patrol efficiency of the highway and improve the timeliness of the patrol.
[0158] In addition, according to an embodiment of the present disclosure, any multiple modules among the first determination module 1, the second determination module 2, the third determination module 3, the first acquisition module 4, the second acquisition module 5, the fourth determination module 6, the shooting module 7 and the output module 8 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module.
[0159] According to an embodiment of the present disclosure, at least one of the first determination module 1, the second determination module 2, the third determination module 3, the first acquisition module 4, the second acquisition module 5, the fourth determination module 6, the shooting module 7 and the output module 8 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them.
[0160] Alternatively, at least one of the first determination module 1, the second determination module 2, the third determination module 3, the first acquisition module 4, the second acquisition module 5, the fourth determination module 6, the shooting module 7 and the output module 8 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.
[0161] Fig.21 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present disclosure is schematically shown.
[0162] like Fig.21 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0163] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0164] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.
[0165] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0166] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.
[0167] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method of the embodiment of the present disclosure.
[0168] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0169] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0170] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0171] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0172] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0173] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0174] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for automatic road patrol, It is characterized in that include: Determine the starting and ending points of the patrol section; The patrol section is cut according to the starting point, the end point and the cutting distance to obtain m monitoring sections, where m is an integer greater than or equal to 1; Determine the A of each monitored section i monitoring devices, wherein the shooting range of each of the monitoring devices includes the monitored road section, A i is an integer greater than or equal to 1, i is an integer greater than or equal to 1 and less than or equal to m; Obtaining road information of the monitored road section; Get the A i Device information of each monitoring device in the monitoring devices; Determine the A according to the road information and the equipment information i A target monitoring device among the monitoring devices; Using the target monitoring device to photograph the road section information of the patrol road section; and Inputting the road section information and patrol rules into an automatic patrol model to obtain patrol results; Wherein, the A is determined according to the road information and the equipment information. i The target monitoring devices in the monitoring devices include: According to the road information and the A i equipment information of each monitoring device, and determining the positional relationship between the monitored road section and each of the monitoring devices; According to the monitoring section and the A i The position relationship of the monitoring devices and the A i The device information of the monitoring device is determined as follows: i The pixel density of each monitoring device; and According to the A i The pixel density and device information of the monitoring device are filtered out. i The target monitoring device among the monitoring devices.
2. The method according to claim 1, It is characterized in that Determining the A of each monitored section i Monitoring equipment, including: Taking the end point of each monitoring section as the center, the devices within the center threshold range from the end point are the monitoring devices of the monitoring section.
3. The method according to claim 1, It is characterized in that The obtaining of the road information of the monitored road section specifically includes: Get the longitude, latitude, and elevation of the end point of the monitored road section.
4. The method according to claim 3, It is characterized in that The acquisition of A i The device information of each monitoring device in the monitoring devices includes: Get the A i The longitude, latitude and elevation of each monitoring device in the world coordinate system; and Get the A i The focal length range, resolution, horizontal angle adjustment range and vertical angle adjustment range of each monitoring device in the monitoring devices.
5. The method according to claim 1, It is characterized in that The azimuth relationship includes a horizontal angle, a vertical angle and a distance between the two directions. i The device information of each monitoring device is used to determine the position relationship between the monitored road section and each of the monitoring devices, specifically including: Determine the horizontal angle between the monitored section and each of the monitoring devices according to the longitude and latitude of the end point of the monitored section and the longitude and latitude of each of the monitoring devices in the world coordinate system; Determine the vertical angle between the monitored road section and each of the monitoring devices according to the longitude, latitude and elevation of the end point of the monitored road section and the longitude, latitude and elevation of each of the monitoring devices in the world coordinate system; and The distance between the monitored section and each of the monitoring devices is determined based on the longitude, latitude and elevation of the end point of the monitored section and the longitude, latitude and elevation of each of the monitoring devices in the world coordinate system.
6. The method according to claim 5, It is characterized in that The pixel density includes horizontal pixel density and vertical pixel density. i The position relationship of the monitoring devices and the A i The device information of the monitoring device is determined as follows: i The pixel density of each monitoring device includes: According to the vertical angle, the spacing distance and the A i The focal length range and resolution of each monitoring device in the monitoring devices determine the A i The horizontal pixel density of each monitoring device; and According to the vertical angle, the spacing distance and the A i The focal length range and resolution of each monitoring device in the monitoring devices determine the A i The vertical pixel density of each monitoring device.
7. The method according to claim 4, It is characterized in that According to the A i The pixel density and device information of the monitoring device are filtered out. i The target monitoring devices in the monitoring devices include: Compare the pixel density with a pixel threshold, and select a monitoring device corresponding to the pixel density that meets the pixel threshold as a first pre-selected device; Compare the azimuth relationship between each monitoring device in the first pre-selected devices and the monitored road section with the horizontal angle adjustable range and the vertical angle adjustable range, and select the first pre-selected device corresponding to the azimuth relationship that satisfies the horizontal angle adjustable range and the vertical angle adjustable range as the second pre-selected device; and The pixel densities of the second pre-selected devices are sorted, and the target monitoring devices are screened out according to the sorting results.
8. The method according to any one of claims 1 to 7, It is characterized in that The patrol rule includes at least one of a specified road section, a specified clarity, a specified direction, a specified lane, and a specified duration; The inspection result includes at least one of driving speed, whether the vehicle has an accident, whether the vehicle has illegally parked, whether the vehicle is driving in the wrong direction, whether the vehicle is driving in the emergency lane, whether an obstacle is left behind, and whether the vehicle is speeding.
9. An automatic road patrol device, It is characterized in that include: A first determination module, the first determination module is used to determine the starting point and the end point of the patrol section; A second determination module, the second determination module is used to execute cutting of the patrol road section according to the starting point, the end point and the cutting distance to obtain m monitoring road sections, wherein m is an integer greater than or equal to 1; The third determining module is used to determine the A of each monitored road section. i monitoring devices, wherein the shooting range of each of the monitoring devices includes the monitored road section, A i is an integer greater than or equal to 1, i is an integer greater than or equal to 1 and less than or equal to m; A first acquisition module, the first acquisition module is used to execute acquisition of road information of the monitored road section; A second acquisition module, the second acquisition module is used to execute the acquisition of the A i Device information of each monitoring device in the monitoring devices; A fourth determining module, the fourth determining module is used to determine the A according to the road information and the equipment information. i A target monitoring device among the monitoring devices; A shooting module, the shooting module is used to execute the use of the target monitoring device to shoot the road section information of the patrol road section; and An output module, the output module is used to input the road section information and patrol rules into an automatic patrol model to obtain patrol results; Wherein, the A is determined according to the road information and the equipment information. i The target monitoring devices in the monitoring devices include: According to the road information and the A i equipment information of each monitoring device, and determining the positional relationship between the monitored road section and each of the monitoring devices; According to the monitoring section and the A i The position relationship of the monitoring devices and the A i The device information of the monitoring device is determined as follows: i The pixel density of each monitoring device; and According to the A i The pixel density and device information of the monitoring device are filtered out. i The target monitoring device among the monitoring devices.
10. An electronic device, It is characterized in that include: one or more processors; One or more memories, used to store executable instructions, which, when executed by the processor, implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that The storage medium stores executable instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 8.
12. A computer program product, It is characterized in that The method comprises a computer program, wherein the computer program comprises one or more executable instructions, and when the executable instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Navigation display method and system
CN111854789A
Road operation condition determination method and device, equipment and storage medium
CN112312082A
