Road violation event detection method and device
Real-time monitoring of roads through video surveillance equipment, calculation and processing of violation points for traffic violation events, solves the problem of the existing system's lack of versatility and quantitative evaluation of different types of violation events, improves detection accuracy and efficiency, and saves traffic management department resources.
Patent Information
- Application Number
- CN202411230801.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing traffic violation detection system lacks versatility and adaptability to different types of violation events, and lacks a quantitative evaluation and processing mechanism, resulting in inaccurate and consistent violation processing decisions, and there may be waste in processing lower-severity violations. Issues of manpower and material resources.
Monitor the road in real time through video surveillance equipment to determine whether the behavior of the detection target violates regulations, calculate violation points and handle them accordingly, including preset lane width, traffic flow and environmental parameters, combined with feature extraction and coordinate system construction to determine lane width parameters, providing A quantitative basis for handling violations.
It improves the accuracy and efficiency of traffic violation detection, provides quantitative processing basis for the traffic management department, saves manpower and material resources, and ensures the accuracy and consistency of violation processing.
Smart Images

Figure CN118736846A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and in particular to a method and device for detecting road violation events. Background Art
[0002] With the acceleration of urbanization and the sharp increase in the number of motor vehicles, urban traffic management faces unprecedented challenges. Traffic violations not only increase the risk of traffic accidents, but also seriously affect the smoothness of traffic flow. Therefore, how to effectively monitor and handle traffic violations has become a key issue in intelligent transportation systems.
[0003] Traditional traffic violation detection methods mainly rely on manual monitoring, which is costly and inefficient. With the development of computer vision technology, automatic traffic violation event detection methods based on video surveillance have gradually become a research hotspot. These methods analyze video streams to identify and record traffic violations, such as vehicles driving in the wrong direction, illegal parking, speeding, etc.
[0004] Existing video-based traffic violation detection systems usually use techniques such as motion detection, target tracking, and pattern recognition to identify traffic violations. For example, some systems use Hough transform to detect lane lines and illegal parking areas, use deep learning models such as YOLO-v5 for vehicle detection and speed estimation, and analyze the vehicle's motion trajectory to determine whether there is a violation.
[0005] However, existing technologies still have some limitations in practical applications. Existing detection algorithms are often designed for specific types of violations, lack universality and adaptability to different types of violations, and lack a mechanism for quantitative evaluation and processing of violations, which makes violation processing decisions imprecise and inconsistent. Moreover, since the severity of violations is not classified, there may be a problem of wasting manpower and material resources in processing some violations with lower severity. Summary of the invention
[0006] In view of this, the present application provides a road violation event detection method and device to improve the accuracy and efficiency of violation detection, and can also provide a quantitative basis for violation handling for traffic management departments.
[0007] A first aspect of the present application provides a method for detecting road violation events, the method comprising: Monitor the target road in real time by means of video surveillance equipment to determine each detection target on the target road and the type of the detection target; Determine whether the current behavior of the target violates the rules according to the type of the detection target, and when it is determined, determine the instant image of the detection target, determine the detection target as a violation target, and compare the instant image with each violation image in the alarm pool according to preset conditions, and when it is determined that there is no violation image that meets the preset conditions in the alarm pool, determine the alarm information of the violation target and store it in the alarm pool, wherein the alarm information includes the instant image and the violation time; Determine the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target, determine the traffic flow parameter of the target by the historical traffic flow of the preset target road, determine the environmental parameter of the target by the environmental information, and determine the violation time parameter of the target by the violation time and the current time; The violation score of the violation target is determined by the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and corresponding violation processing is performed according to the violation score.
[0008] Optionally, comparing the instant image with each violation image in the alarm pool according to a preset condition includes: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
[0009] Optionally, determining the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the illegal target includes: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
[0010] Optionally, performing corresponding violation processing according to the violation points includes: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
[0011] Optionally, after removing the illegal target from the target road, the method further includes: The alarm information of the illegal target is deleted from the alarm pool.
[0012] A second aspect of the present application provides a road violation event detection device, the device comprising: A detection target determination unit, used to monitor a target road in real time through a video monitoring device, and determine each detection target on the target road and the type of the detection target; a violation determination unit, configured to determine whether a violation occurs in the current behavior of the target according to the type of the detection target, and when determined, determine a real-time image of the detection target, determine the detection target as a violation target, and compare the real-time image with each violation image in an alarm pool according to a preset condition, and when it is determined that there is no violation image satisfying the preset condition in the alarm pool, determine the alarm information of the violation target and store it in the alarm pool, wherein the alarm information includes the real-time image and the violation time; a parameter determination unit, configured to determine the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target, determine the traffic flow parameter of the target by the historical traffic flow of the preset target road, determine the environmental parameter of the target by the environmental information, and determine the violation time parameter of the target by the violation time and the current time; The violation processing unit is used to determine the violation score of the violation target according to the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and perform corresponding violation processing according to the violation score.
[0013] Optionally, the step of comparing the instant image with each violation image in the alarm pool according to a preset condition in the violation determination unit includes: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
[0014] Optionally, the parameter determination unit determines the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the illegal target, including: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
[0015] Optionally, the violation processing unit performing corresponding violation processing according to the violation points includes: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
[0016] Optionally, after the violation processing unit removes the violation target from the target road, the device further includes: The alarm pool updating unit is used to delete the alarm information of the illegal target in the alarm pool.
[0017] In the embodiment provided by the present application, the target road is monitored in real time by a video surveillance device, so that when a violation event occurs in the detection target of the target road, it is first determined whether the violation event has been recorded in the alarm pool, and it is recorded if it is determined that it has not been recorded; then multiple parameters for determining the violation points of the detection target are determined, and the final violation points are determined; finally, the violation treatment of the detection target is determined and processed according to the violation points. This solves the problem that the existing violation handling methods lack versatility and adaptability for different types of violation events, and also lack a mechanism for quantitative evaluation and processing of violations, which makes the violation handling decision-making not accurate and consistent. And it can also save manpower and material resources of the transportation department. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of the method provided in the embodiment of the present application; Figure 2A road profile map provided for an embodiment of the present application; Figure 3 A road coordinate map provided for an embodiment of the present application; Figure 4 A structural diagram of a device provided in an embodiment of the present application; Figure 5 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0020] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0021] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0022] The present application provides a road violation event detection method to improve the accuracy and efficiency of violation detection, and can also provide a quantitative basis for violation handling for traffic management departments, and can also save manpower and material resources of traffic management departments.
[0023] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0024] like Figure 1 As shown, it is a flow chart of a road violation event detection method provided by the present application, and the process may include the following steps: Step S101, monitor a target road in real time through a video monitoring device to determine each detection target on the target road and the type of the detection target.
[0025] In this embodiment, the video monitoring device determines each obstacle on the target road as a detection target, and classifies each detection target according to its image, thereby determining the type of the detection target. For example, the type of the detection target can be divided into pedestrians, vehicles, safety cones, spilled objects, etc.
[0026] Step S102, judging whether the current behavior of the target is in violation of the rules according to the type of the detection target, and if so, determining the instant image of the detection target, determining the detection target as a violation target, and comparing the instant image with each violation image in the alarm pool according to preset conditions, and when determining that there is no violation image satisfying the preset conditions in the alarm pool, determining the alarm information of the violation target and storing it in the alarm pool.
[0027] In this embodiment, for different types of detection targets, different methods can be used to determine whether they are in violation. For example, when detecting target spilled objects and other obstacles, it is determined whether the size of the spilled objects or obstacles exceeds a threshold value. If it is determined to be exceeded, it is determined that it will cause an image to the passage of vehicles on the road, and it is determined to be a violation target. When the detection target is a vehicle, a preliminary detection is performed on each video frame of the vehicle to determine whether there is abnormal movement or stillness. If it is determined, the vehicle is determined to be a violation target. For certain roads that do not allow pedestrians and non-motor vehicles to pass, such as expressways and certain large vehicle passage sections in construction areas, when the type of the detection target is pedestrians and non-motor vehicles, it can also be directly determined as a violation target.
[0028] Furthermore, the present application can also monitor pedestrians and non-motor vehicles in the construction area at regular intervals. For example, a construction mode switch can be set. When the construction mode is turned on, pedestrians and non-motor vehicles on the target road are identified as illegal targets, so that when pedestrians and non-motor vehicles are detected, they can be processed immediately to prevent pedestrians and non-motor vehicles from passing and reduce the probability of accidents. When the construction mode is turned off, pedestrians and non-motor vehicles on the target road are not identified as illegal targets.
[0029] In this embodiment, a blank alarm pool is pre-constructed to store violation images. When it is determined that there is a violation target, a real-time image of the violation target is captured by a video surveillance device, and the real-time image is compared with the violation images in the alarm pool according to preset conditions, such as repetition rate. When the repetition rate between the real-time image and a certain violation image is greater than a set value, it can be determined that the violation image meets the preset conditions, and it is determined that the violation event has been recorded in the alarm pool, and there is no need to process the violation target. When the real-time image and any violation image in the alarm pool do not meet the preset conditions, it can be determined that the violation event has not been recorded in the alarm pool, and the current time is determined as the violation time, the real-time image is determined as the violation image, and the violation time and the real-time image constitute the alarm information and are stored in the alarm pool.
[0030] In another embodiment, comparing the instant image with each violation image in the alarm pool according to a preset condition includes: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
[0031] In this embodiment, since the time span of the violation event of the illegal target may be large, such as illegal parking for several hours. Then the environment, weather and other factors of the several real-time images taken by the video surveillance equipment during this time period are not the same. After the first real-time image is stored in the alarm pool, a lower repetition rate needs to be set so that the repetition rate of subsequent real-time images and the first real-time image meets the preset conditions, so that the subsequent real-time images will not be stored in the alarm pool. However, if the repetition rate is low, the real-time images of some newly added illegal targets will match other illegal images in the alarm pool, resulting in misjudgment. Therefore, this embodiment can effectively remove third-party factors by extracting the detection target in the real-time image and the illegal target in the illegal image for comparison, thereby improving the accuracy of the comparison and reducing the occurrence of misjudgment.
[0032] Step S103, determining the occupied width of the target road and the remaining width of the target road by the video surveillance device to determine the lane width parameter of the violating target, determining the traffic flow parameter of the violating target by the historical traffic flow of the preset target road, determining the environmental parameters of the violating target by the environmental information, and determining the violation time parameter of the violating target by the violation time and the current time.
[0033] In this embodiment, the method for determining each parameter is as follows: 1. Lane width parameter: The contour map of the target road and the illegal target can be determined by video monitoring equipment, such as Figure 2 As shown in the figure, there are illegal targets, obstacle A and illegally parked vehicle B on the target road. The remaining width of the target road at the location of obstacle A and illegally parked vehicle B can be estimated through the contour map. The occupied width of A and B can be determined by subtracting the remaining width from the lane width, and then the ratio of the occupied width to the remaining width is determined as the lane width parameter.
[0034] 2. Traffic volume parameters. The traffic volume of the target road in each time period can be determined based on the historical traffic volume, and traffic volume parameters can be configured for each time period based on the traffic volume. For example, in the time periods of 7:00-10:00 and 16:00-19:00, the traffic volume of the target road is large, and a traffic volume parameter TV1 (traffic volume) can be configured for it. The traffic volume in other time periods is small, and a traffic volume parameter TV2 that is smaller than TV1 can be configured for it.
[0035] Furthermore, in this embodiment, several traffic flow intervals may be pre-determined, each interval corresponding to a different traffic flow parameter, and the traffic flow of the target road may be counted in real time through video monitoring equipment or other road traffic equipment, and the corresponding traffic flow parameter may be determined based on the traffic flow.
[0036] 3. Environmental parameters. Environmental parameters for various weather conditions can be preset. For example, the environmental parameter for rainy days is set as E1, the road surface is icy as E2, snow is E3, etc. This allows the parameter to be determined according to different weather conditions.
[0037] 4. Violation time parameter: The specific duration of the violation event of the violation target is determined by the violation time and the current time. The violation time parameter can be determined based on the duration, or the duration can be directly determined as the violation time parameter.
[0038] After determining the above parameters, the final violation score of the violation target can be determined, so that corresponding processing can be made.
[0039] In another embodiment, determining the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target includes: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
[0040] Since the accuracy of determining the remaining width and the occupied width through the contour map is not high enough, the present embodiment can accurately determine the remaining width and the occupied width through the coordinate system. Figure 3 As shown in the figure, when there is no detection target on the road, the coordinate system of the road is constructed to determine the coordinate values of both sides of the road and the coordinate value of the center line. When an illegal target is detected, the coordinates of the side of the illegal target closer to the middle of the road are determined, such as the right side of obstacle A and the left side of the illegally parked vehicle B. Then, the shortest distance between obstacle A and the center line is determined by the coordinate values of the right side of obstacle A and the coordinate value of the center line. The shortest distance is added to half of the width of the road to accurately obtain the remaining width of the road after the obstacle A occupies it.
[0041] Compared with the above-mentioned method of estimating the remaining width and occupied width through the contour map, the accuracy of this method is significantly higher. When the traffic management department is short of manpower and material resources, this method can be used to design a more accurate and smaller remaining width threshold while ensuring that the road can be normally passed (because under the premise of insufficient accuracy, only a larger value can be set to ensure that the road can be normally passed), thereby minimizing the consumption of manpower and material resources.
[0042] Step S104, determining the violation score of the violation target through the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and performing corresponding violation processing according to the violation score.
[0043] In this embodiment, a weight value can be set for each parameter, such as a lane width parameter with a weight value A, a vehicle flow parameter with a weight value B, an environmental parameter with a weight value C, and a time parameter with a weight value D. Then, the violation points of the violation target can be determined by the calculation formula: violation points = lane width parameter * A + vehicle flow parameter * B + environmental parameter * C + time parameter * D. After the violation points are determined, warnings, fines, etc. can be issued according to the violation points.
[0044] It should be noted that the weight values corresponding to various parameters can be adjusted accordingly according to different requirements and scenarios.
[0045] In another embodiment, performing corresponding violation processing according to the violation points includes: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
[0046] In this embodiment, the first warning process can be understood as a minor warning, such as a text message warning to the owner of the illegally parked vehicle, and the second warning process is a serious warning. When the violation score is less than M, it can be considered that the violation target has a certain impact on road traffic and does not need to be processed immediately. When the violation score is greater than N, it is determined that the violation target has a great impact on road traffic and needs to be processed immediately. The specific values of M and N can be adjusted according to different scenarios.
[0047] It should be noted that when determining the lane width parameter, traffic flow parameter, environmental parameter and violation time parameter, a threshold value can be set for each parameter. When a parameter reaches a preset condition, such as when a violation target makes the remaining width of the lane less than the minimum pass value, the product of the lane width parameter and the corresponding weight value is directly determined as N, so that the determined violation score is greater than N, so that the traffic management department immediately handles the violation target.
[0048] In another embodiment, after removing the illegal target from the target road, the method further includes: The alarm information of the illegal target is deleted in the alarm pool to update the alarm pool.
[0049] So far, completed Figure 1 The process shown.
[0050] In an embodiment of the present application, the target road is monitored in real time by a video surveillance device, so that when a violation event occurs in the detection target of the target road, it is first determined whether the violation event has been recorded in the alarm pool, and it is recorded if it is determined that it has not been recorded; then multiple parameters for determining the violation points of the detection target are determined, and the final violation points are determined; finally, the violation treatment of the detection target is determined and processed according to the violation points. This solves the problem that the existing violation handling methods lack versatility and adaptability for different types of violation events, and also lack a mechanism for quantitative evaluation and processing of violations, which makes the violation handling decision-making not accurate and consistent. It can also save manpower and material resources of the transportation department.
[0051] like Figure 4As shown, the present application also provides a road violation event detection device, the device comprising: A detection target determination unit 401 is used to monitor a target road in real time through a video monitoring device, and determine each detection target on the target road and the type of the detection target; A violation determination unit 402 is used to determine whether the current behavior of the target violates the law according to the type of the detection target, and when it is determined, determine the instant image of the detection target, determine the detection target as a violation target, and compare the instant image with each violation image in the alarm pool according to a preset condition. When it is determined that there is no violation image that meets the preset condition in the alarm pool, determine the alarm information of the violation target and store it in the alarm pool, wherein the alarm information includes the instant image and the violation time; The parameter determination unit 403 is used to determine the occupied width of the target road occupied by the illegal target and the remaining width of the target road through the video monitoring device to determine the lane width parameter of the illegal target, determine the traffic flow parameter of the illegal target through the historical traffic flow of the preset target road, determine the environmental parameter of the illegal target through environmental information, and determine the violation time parameter of the illegal target through the violation time and the current time; The violation processing unit 404 is used to determine the violation score of the violation target according to the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and perform corresponding violation processing according to the violation score.
[0052] In another embodiment, the comparing of the instant image with each violation image in the alarm pool according to a preset condition in the violation determination unit includes: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
[0053] In another embodiment, the parameter determination unit determines the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the illegal target, including: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
[0054] In another embodiment, the violation processing unit performs corresponding violation processing according to the violation points, including: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
[0055] In another embodiment, after the violation processing unit removes the violation target from the target road, the device further includes: The alarm pool updating unit 405 is used to delete the alarm information of the illegal target in the alarm pool.
[0056] The above embodiment of the present invention provides a road violation event detection method, and based on this method provides a road violation event detection device. Through the above method and device, the accuracy and efficiency of violation detection by the traffic management department can be improved, and the manpower and material resources of the traffic management department can also be saved.
[0057] This embodiment also discloses a computer device, such as Figure 5 As shown, the computer device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement any of the above-mentioned road violation event detection methods.
[0058] In addition, in the implementation of the road violation event detection device in the above-mentioned example, the logical division of each program module is only an example. In actual application, the above-mentioned functions can be assigned to different program modules as needed, for example, for the configuration requirements of the corresponding hardware or the convenience of software implementation. That is, the internal structure of the road violation event detection device is divided into different program modules to complete all or part of the functions described above.
[0059] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A road violation event detection method, characterized in that: The method comprises: Monitor the target road in real time through video monitoring equipment to determine each detection target on the target road and the type of the detection target; Determine whether the current behavior of the target violates the rules according to the type of the detection target, and when it is determined, determine the instant image of the detection target, determine the detection target as a violation target, and compare the instant image with each violation image in the alarm pool according to preset conditions, and when it is determined that there is no violation image that meets the preset conditions in the alarm pool, determine the alarm information of the violation target and store it in the alarm pool, wherein the alarm information includes the instant image and the violation time; Determine the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target, determine the traffic flow parameter of the target by the historical traffic flow of the preset target road, determine the environmental parameter of the target by the environmental information, and determine the violation time parameter of the target by the violation time and the current time; The violation score of the violation target is determined by the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and corresponding violation processing is performed according to the violation score.
2. The method according to claim 1, characterized in that The comparing the instant image with each violation image in the alarm pool according to preset conditions includes: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
3. The method according to claim 1, characterized in that: The determining, by the video monitoring device, the occupied width of the target road occupied by the illegal target and the remaining width of the target road to determine the lane width parameter of the illegal target includes: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
4. The method according to claim 1, characterized in that: The corresponding violation handling according to the violation points includes: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
5. The method according to claim 4, characterized in that After removing the illegal target from the target road, the method further includes: The alarm information of the illegal target is deleted from the alarm pool.
6. A road violation event detection device, characterized in that: The device comprises: A detection target determination unit, used to monitor a target road in real time through a video monitoring device, and determine each detection target on the target road and the type of the detection target; a violation determination unit, configured to determine whether a violation occurs in the current behavior of the target according to the type of the detection target, and when determined, determine a real-time image of the detection target, determine the detection target as a violation target, and compare the real-time image with each violation image in an alarm pool according to a preset condition, and when it is determined that there is no violation image satisfying the preset condition in the alarm pool, determine the alarm information of the violation target and store it in the alarm pool, wherein the alarm information includes the real-time image and the violation time; a parameter determination unit, configured to determine the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target, determine the traffic flow parameter of the target by the historical traffic flow of the preset target road, determine the environmental parameter of the target by the environmental information, and determine the violation time parameter of the target by the violation time and the current time; The violation processing unit is used to determine the violation score of the violation target according to the lane width parameter, the vehicle flow parameter, the environmental parameter and the violation time parameter, and perform corresponding violation processing according to the violation score.
7. The device according to claim 6, characterized in that The violation determination unit compares the instant image with each violation image in the alarm pool according to a preset condition, including: Extracting the detection target in the real-time image and the illegal target in each illegal image, and determining the overlap between the detection target and the illegal target by feature extraction and comparison; When the overlap degree is greater than a preset threshold, it is determined that the detection target is the same as the violation target.
8. The device according to claim 6, characterized in that The parameter determination unit determines the occupied width of the target road and the remaining width of the target road by the video monitoring device to determine the lane width parameter of the target road, including: Pre-constructing a coordinate system of the target road, and determining the coordinate values of both sides of the target road and the coordinate value of the center line of the road through the coordinate system; The boundary coordinate value of the geometric contour boundary of the illegal target in the coordinate system is determined by the video monitoring equipment, the occupied width and the remaining width are determined by the coordinate values on both sides of the target road, the coordinate value of the center line of the road and the boundary coordinate value, and then the lane width parameter is determined according to the ratio of the occupied width to the remaining width.
9. The device according to claim 6, characterized in that The violation processing unit performs corresponding violation processing according to the violation points, including: Presetting a violation score M and a violation score N, and when it is determined that the violation score is less than or equal to the violation score M, performing a first warning process on the violation target; When it is determined that the violation score is greater than the violation score M and less than or equal to the violation score N, a second warning process is performed on the violation target; When it is determined that the violation score is greater than the violation score N, the violating object is removed from the target road.
10. The device according to claim 9, characterized in that After the violation processing unit removes the violation target from the target road, the device further includes: The alarm pool updating unit is used to delete the alarm information of the illegal target in the alarm pool.
