Vehicle illegal behavior monitoring method, electronic device, storage medium and program product
By establishing an electronic fence connection table at intersections and utilizing vehicle trajectory data from roadside sensing devices to analyze vehicle travel directions, the flexibility and accuracy issues of vehicle violation monitoring in existing technologies have been resolved. This has enabled efficient identification and recording of violations while reducing hardware costs.
Patent Information
- Application Number
- CN202511713178.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-24
AI Technical Summary
Existing technologies for deploying camera devices at intersections to monitor vehicle violations lack flexibility, cannot efficiently and accurately handle complex traffic scenarios, and are greatly affected by weather and lighting conditions.
By establishing a connection table of electronic fences at entrances and exits, vehicle trajectory data from roadside sensing devices is obtained, the driving direction category of vehicles is analyzed, and it is determined whether there is a violation of the driving direction. Combined with high-precision map data and vehicle positioning technology, the monitoring of illegal vehicle behavior is realized.
It improves the efficiency and accuracy of vehicle violation monitoring, reduces hardware costs, eliminates the need for additional capture equipment, and is suitable for intelligent traffic management and vehicle violation monitoring.
Smart Images

Figure CN121564992A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of traffic safety technology, and in particular to a method, electronic device, storage medium and program product for monitoring vehicle violations. Background Technology
[0002] With the large-scale construction of intelligent connected roads, the deployment of intelligent roadside equipment such as radar and cameras at connected smart intersections provides traffic management departments with a reliable data source for monitoring traffic violations at intersections.
[0003] Current technologies for capturing traffic violations require the separate deployment of monitoring equipment near intersections to capture violations such as running red lights, failing to follow lane directions, illegal lane changes, and driving against traffic. This deployment method relies on the fixed location and viewing angle of the equipment, which limits its ability to monitor complex and ever-changing traffic scenarios and vehicle trajectories, and cannot flexibly respond to various traffic conditions. Especially at intersections with high traffic volume and dense vehicle traffic, analyzing the images captured by cameras may not be efficient or accurate in calculating vehicle trajectories and determining whether traffic violations have occurred due to limited data processing capabilities. Furthermore, the quality of the images captured by the cameras is greatly affected by weather and lighting conditions; inclement weather or insufficient light may lead to decreased monitoring effectiveness or even malfunction. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this application provides a method, electronic device, storage medium, and program product for monitoring vehicle violations, thereby at least resolving the problem of limited vehicle violation monitoring caused by the separate deployment of capture devices at intersections in existing technologies.
[0005] To achieve the above objectives and other advantages, this application adopts the following technical solution:
[0006] Firstly, this application provides a method for monitoring vehicle violations, including:
[0007] Establish a connection table between the electronic fences at the entrances and exits of traffic intersections;
[0008] Acquire vehicle trajectory data uploaded by roadside sensing devices and group them according to vehicle number;
[0009] Based on the vehicle trajectory data, the first moment when each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the lane where the vehicle is located are obtained. Based on the vehicle trajectory data, the second moment when the vehicle enters the exit electronic fence and the corresponding first exit number are obtained.
[0010] Based on the entrance number and the first exit number, the actual driving direction category of the vehicle is determined from the connection relationship table;
[0011] Determine whether the actual driving direction category matches the guide arrow type to determine whether the vehicle is violating the guide direction.
[0012] According to the vehicle violation monitoring method provided in this application, it also includes:
[0013] Based on the entrance number and the directional arrow type, the second exit number corresponding to the vehicle's entry is obtained from the connection relationship table;
[0014] Determine whether the first exit number and the second exit number are the same to determine whether the vehicle is violating the guidance.
[0015] According to the vehicle violation monitoring method provided in this application, before the step of establishing a connection table between the entrance and exit electronic fences of a traffic intersection, the method further includes: establishing the entrance and exit electronic fences, specifically including:
[0016] Determine the location of road markings at traffic intersections, including entrance and exit markings;
[0017] According to the preset first extension distance, the entrance marking is extended in the opposite direction of the vehicle's direction of travel to form a first extension segment. The first extension segment is connected to the entrance marking to form a closed electronic fence for the entrance.
[0018] According to the preset second extension distance, the exit marking is extended in the direction of vehicle travel to form a second extension segment. The second extension segment is connected to the exit marking to form a closed electronic fence for the exit.
[0019] According to the vehicle violation monitoring method provided in this application, the vehicle trajectory data includes: vehicle number and latitude and longitude information;
[0020] Based on the vehicle trajectory data, the steps to obtain the first moment each vehicle enters the electronic fence at the entrance, the entrance number of the electronic fence, and the directional arrow type of the lane in which the vehicle is located include:
[0021] Determine the coordinates of the first boundary of the electronic fence at the entrance;
[0022] The latitude and longitude information reported by the vehicle is acquired based on a preset acquisition frequency, and the position is calculated with the first boundary coordinates to determine whether the vehicle has entered the electronic fence of the entrance.
[0023] If so, the time when the vehicle enters the electronic fence at the entrance is recorded as the first moment and the entrance number of the electronic fence at the entrance is recorded.
[0024] The latitude and longitude information reported by the vehicle at the first moment is matched with the high-precision map data of the electronic fence at the entrance to obtain the directional arrow type of the lane where the vehicle is located.
[0025] According to the vehicle violation monitoring method provided in this application, based on the vehicle trajectory data, the steps of obtaining the first moment each vehicle enters the electronic fence at the entrance, the entrance number of the electronic fence, and the directional arrow type of the lane in which the vehicle is located, further include:
[0026] Based on the acquisition frequency, obtain the vehicle trajectory data corresponding to the acquisition time after the first time, and determine whether the vehicle position is still within the electronic fence of the entrance with the same entrance number. If so, update the first time when the vehicle enters the intersection to the acquisition time.
[0027] According to the vehicle violation monitoring method provided in this application, the steps of obtaining the second moment when the vehicle enters the electronic fence of the exit and the corresponding first exit number based on the vehicle trajectory data include:
[0028] Determine the second boundary coordinates of the exit electronic fence associated with the entrance electronic fence;
[0029] The latitude and longitude information reported by the vehicle is obtained based on the acquisition frequency, and the position is calculated with the second boundary coordinates to determine whether the vehicle has entered the electronic fence of the exit.
[0030] If so, the time when the vehicle enters the electronic fence at the exit is recorded as the second time and the first exit number of the electronic fence at the exit is recorded.
[0031] According to the vehicle violation monitoring method provided in this application, after determining that the vehicle is violating the guidance driving step, the method further includes:
[0032] Video data between the first and second moments is extracted from the video platform accessed at the intersection to serve as data for replaying vehicle violations.
[0033] Secondly, this application provides an electronic device, the electronic device comprising:
[0034] One or more processors; and a memory storing computer program instructions that, when executed, cause the processors to perform the steps of any of the vehicle violation monitoring methods described above.
[0035] Thirdly, this application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the steps of the vehicle violation monitoring method described above.
[0036] Fourthly, this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the vehicle violation monitoring method as described above.
[0037] This application provides a method, electronic device, storage medium, and program product for monitoring vehicle violations. It establishes a connection table between electronic fences at the entrance and exit of traffic intersections; acquires vehicle trajectory data uploaded by roadside sensing devices and groups it according to vehicle number; based on the vehicle trajectory data, it obtains the first moment each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the vehicle's lane; and based on the vehicle trajectory data, it obtains the second moment each vehicle enters the exit electronic fence and the corresponding first exit number; based on the entrance number and the first exit number, it determines the vehicle's actual driving direction category from the connection table; and it judges whether the actual driving direction category matches the directional arrow type to determine whether the vehicle has violated directional driving. This application combines electronic fence technology and utilizes vehicle trajectory data collected by existing roadside sensing units for analysis and traffic rule judgment. Once a vehicle violates a traffic rule, the system can respond immediately and record it, greatly improving monitoring efficiency. Furthermore, it eliminates the need for additional dedicated capture equipment, reducing hardware costs. It has broad application prospects in intelligent traffic management and vehicle violation monitoring. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other implementation methods can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is one of the flowcharts illustrating the vehicle violation monitoring method provided in this application embodiment;
[0040] Figure 2 This is a schematic diagram of the process for creating an electronic fence at an intersection, provided in an embodiment of this application.
[0041] Figure 3 This is an example diagram of driving and turning between an approach and an exit at an intersection, provided in an embodiment of this application.
[0042] Figure 4 This is the second flowchart illustrating the vehicle violation monitoring method provided in this application embodiment;
[0043] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0044] The above description is merely an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.
[0045] It should be noted that those skilled in the art will understand, explicitly and implicitly, that the embodiments described in this application can be combined with other embodiments without conflict. Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by those skilled in the art. The terms "a," "an," "an," "the," and similar words used in this application do not indicate quantity limitation and can represent singular or plural. The terms "comprising," "including," "having," and any variations thereof used in this application are intended to cover non-exclusive inclusion; the terms "first," "second," "third," etc., used in this application are merely to distinguish similar objects and do not represent a specific ordering of objects.
[0046] Reference Figure 1 As shown in the embodiment of this application, a method for monitoring vehicle violations is provided, the method comprising:
[0047] Step S1: Establish a connection table between the electronic fences at the entrance and exit of the traffic intersection.
[0048] Before step S1, the method further includes: establishing electronic fences at the entrance and exit, referring to... Figure 2 As shown, it specifically includes:
[0049] Step A1: Determine the location of the road markings at the entrance and exit of the traffic intersection, including the entrance markings and the exit markings;
[0050] Step A2: Based on the preset first extension distance, extend the entrance marking in the opposite direction of the vehicle's direction of travel to form the first extension segment. Connect the first extension segment with the entrance marking to form a closed electronic fence at the entrance.
[0051] Step A3: Based on the preset second extension distance, extend the exit marking in the direction of vehicle travel to form a second extension segment. Connect the second extension segment with the exit marking to form a closed electronic fence at the exit.
[0052] Specifically, the first step is to understand the intersection's geometry in detail, including the number and width of lanes, the shape of the intersection, and the location of pedestrian crossings. Based on the intersection's geometry, the boundaries of the electronic fence are defined. Using high-precision map data editing tools or platform software, which typically provide graphical interfaces for easy editing and annotation, the entrance and exit locations of each intersection are clearly marked as road markings. These markings are stop lines, including entrance and exit markings. High-precision map data can be pre-stored in a map database. Based on the determined location of the entrance markings, a preset first extension distance (e.g., 5 meters, 10 meters, etc., set according to actual needs) is set. The entrance markings are then extended by this distance in the opposite direction of vehicle travel, forming the first extension segment. Connecting the first extension segment with the entrance markings forms a closed shape, i.e., the entrance electronic fence. Similarly, the exit electronic fence is created using the same method. The drawn electronic fence data is saved in the high-precision map data, and the geographic coordinates, shape, and attribute information of the electronic fence are transmitted to the vehicle monitoring system in a specific format. Therefore, establishing electronic fences at entrances and exits provides clear boundaries for monitoring vehicle entry and exit. The electronic fences are virtual and can connect to the system in real time. During functional testing at actual intersections, it is ensured that the electronic fences accurately identify vehicle entry and exit behaviors and trigger corresponding monitoring or control actions. Based on the test results, the settings of the electronic fences and the response speed of the monitoring system are optimized to improve overall accuracy and efficiency. This allows for the immediate capture of vehicle dynamic information, improving the real-time nature and response speed of monitoring.
[0053] Based on the layout of traffic intersections and vehicle travel routes, determine which entrance geofences have direct connections to which exit geofences. For example, ... Figure 3As shown, at an intersection, an entrance geofence can be associated with three exit geofences (corresponding to the straight, left-turn, and right-turn directions, respectively). Furthermore, at the same intersection, it can also be associated with the exit geofence of the opposite lane (the U-turn direction). These connections should be recorded in tabular form and stored and managed using a database, spreadsheet, or other suitable data structure. Taking entrance number 1 as an example, the driving direction types between it and its corresponding exit number are shown in Table 1. Similarly, the driving direction types between other entrance numbers and their corresponding exit numbers are shown in Table 1. The connection table should be verified to ensure all relationships are correct. The connection table can be updated promptly to reflect the latest intersection conditions based on changes in road layout or traffic policies. For example, if U-turns are no longer permitted at this intersection, the corresponding data should be deleted from the connection table.
[0054] Table 1. Connection Relationship between Entrance and Exit Electronic Fences
[0055] Entry number Export number Type of driving direction Import 1 Export 1 Turn around Import 1 Export 2 Turn left Import 1 Export 3 straight Import 1 Export 4 Turn right
[0056] Step S2: Obtain vehicle trajectory data uploaded by roadside sensing devices and group them according to vehicle number.
[0057] Specifically, roadside sensing devices (such as cameras, radar, and LiDAR) capture and upload dynamic information about vehicles in real time, including vehicle ID, vehicle location (latitude and longitude), speed, heading angle, direction, and timestamp. This data is typically uploaded to a cloud control platform (which integrates data storage, processing, analysis, and decision-making functions) via wired or wireless networks. The vehicle ID, or vehicle number, is a unique identifier for different vehicles. Intelligent connected vehicles can be authenticated using a unique vehicle ID provided by the cloud platform. Based on the vehicle ID, all trajectory data belonging to the same vehicle are grouped together. Thus, each vehicle ID corresponds to a complete set of vehicle trajectory data.
[0058] Furthermore, the received vehicle trajectory data can be cleaned and optimized to remove invalid, erroneous, or redundant information, ensuring the accuracy and reliability of the data.
[0059] Step S3: Based on vehicle trajectory data, obtain the first moment when each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the lane where the vehicle is located. Also, based on vehicle trajectory data, obtain the second moment when the vehicle enters the exit electronic fence and the corresponding first exit number.
[0060] In this embodiment, step S3, which involves obtaining the first moment each vehicle enters the electronic fence at the entrance, the entrance number of the electronic fence, and the type of directional arrow in the lane where the vehicle is located, based on vehicle trajectory data, specifically includes:
[0061] Step S3A1: Determine the coordinates of the first boundary of the electronic fence at the entrance;
[0062] Step S3A2: Based on the preset collection frequency, obtain the latitude and longitude information reported by the vehicle, and perform position calculation with the first boundary coordinates to determine whether the vehicle has entered the electronic fence of the entrance.
[0063] If so, then execute step S3A3: record the moment when the vehicle enters the electronic fence at the entrance as the first moment and the entrance number of the electronic fence at the entrance;
[0064] Step S3A4: The latitude and longitude information reported by the vehicle at the first moment is matched with the high-precision map data of the electronic fence at the entrance to obtain the directional arrow type of the lane where the vehicle is located.
[0065] Specifically, based on high-precision map data, the precise geographical location of the electronic fence at the entrance is determined, which means extracting the coordinate information of the electronic fence boundary defined in the high-precision map data. This coordinate information is used to determine whether a vehicle has entered the electronic fence. The vehicle reports its current latitude and longitude information through onboard equipment (such as a vehicle-to-everything (V2X) communication module) at a preset collection frequency (such as 10Hz or once per second), and sends it to the cloud control platform for updating.
[0066] The system receives this information and performs a position comparison algorithm with the first boundary coordinates to determine whether the vehicle is within the electronic fence. For example, it might calculate the number of intersections between the vehicle's position and the electronic fence boundary, or determine if the vehicle's position intersects the electronic fence boundary. If the calculation indicates that the vehicle has crossed the first boundary coordinates, this moment is recorded as the first moment T1 of entering the intersection, and the vehicle's corresponding position status is marked as "about to enter the intersection." Based on high-precision map data or the configuration information of the electronic fence at the entrance, the system obtains the entrance number of the electronic fence. If the vehicle has not entered the electronic fence, step S3A2 is repeated to continue monitoring and judgment.
[0067] Using the latitude and longitude information reported by the vehicle at the first moment, a spatial matching algorithm (an algorithm that determines the positional relationship or similarity between two or more spatial objects) is used to match it with high-precision map data to determine the exact location and lane of the vehicle, and to read the type of directional arrows on that lane (such as straight, left turn, right turn, U-turn, etc.).
[0068] In this embodiment, step S3 further includes: obtaining vehicle trajectory data corresponding to the collection time after the first time based on the collection frequency, and determining whether the vehicle position is still at the entrance electronic fence with the same entrance number. If so, the first time the vehicle enters the intersection is updated to the collection time.
[0069] It should be noted that if a vehicle remains within the electronic fence for a period of time after entering the intersection (possibly due to traffic congestion, waiting at traffic lights, etc.), the system will record the latest entry time to reflect the actual time the vehicle entered the intersection. In some complex traffic scenarios, such as multi-lane intersections, vehicles may need to travel a distance within the electronic fence before reaching the actual intersection entrance. By continuously updating the first entry time, the impact of these errors on system performance can be reduced, enhancing the accuracy and reliability of the data.
[0070] In this embodiment, step S3, which involves obtaining the second moment when a vehicle enters the electronic fence at an exit and the corresponding first exit number based on vehicle trajectory data, specifically includes:
[0071] Step S3B1: Determine the second boundary coordinates of the exit electronic fence associated with the entrance electronic fence;
[0072] Step S3B2: Based on the acquisition frequency, obtain the latitude and longitude information reported by the vehicle and perform position calculation on the second boundary coordinates to determine whether the vehicle has entered the electronic fence at the exit.
[0073] If so, then proceed in step S3B3: record the moment when the vehicle enters the electronic fence at the exit as the second moment and the first exit number of the electronic fence at the exit.
[0074] It should be noted that the specific method for determining whether a vehicle has entered or exited the electronic fence at an intersection can be found in steps S3A1 to S3A2. The latitude and longitude information reported by the vehicle is continuously acquired at the collection frequency, and its position is calculated by comparing it with the second boundary coordinates of each exit electronic fence associated with the entry electronic fence. If the position calculation result shows that the vehicle has entered a certain exit electronic fence, the system records the current time as the second time T2 of the vehicle's entry into that exit electronic fence, and the corresponding position status of the vehicle is marked as "departed from the intersection." Based on high-precision map data or the configuration information of the entry electronic fence, the first exit number of that exit electronic fence is obtained. If the vehicle has not entered a certain exit electronic fence, step S3B2 is repeated to continue monitoring and judgment. Accurately recording the time of vehicle entry into and exit electronic fences and the exit number provides an accurate data foundation for subsequent data analysis.
[0075] Step S4: Based on the entrance number and the first exit number, determine the actual driving direction category of the vehicle from the connection relationship table.
[0076] Step S5: Determine whether the actual driving direction category matches the guide arrow type to determine whether the vehicle is driving against the guide direction.
[0077] Specifically, the join table can be a two-dimensional array database table, where each row records the entrance number, exit number, and corresponding driving direction category. Using the obtained entrance number and first exit number as query conditions, the corresponding driving direction category is found in the join table and stored in an appropriate data structure for later use.
[0078] Compare the actual driving direction category determined in step S4 with the directional arrow type obtained in step S3. If they match, it means the vehicle is driving according to the lane's directional arrow; if they do not match, it means the vehicle is violating the lane's directional guidance. Figure 3 As shown, based on the obtained entrance number "Import 1" and first exit number "Exit 2", the corresponding vehicle driving direction category obtained from the connection table is "left turn". However, the actual directional arrow type obtained from the electronic fence at the entrance is a straight-ahead directional arrow. This discrepancy indicates that the vehicle has violated the directional guidance. If a vehicle violates directional guidance, the system can immediately issue a warning or record the violation. Therefore, by combining high-precision map data and vehicle positioning technology, map matching and lane directional arrow type extraction are performed based on the vehicle's latitude and longitude information. The directional arrow type describes the driving direction that the vehicle should follow after entering the intersection. By comparing the vehicle's actual driving direction category with the directional arrow type, the system can effectively identify whether a vehicle has violated directional guidance, thus providing strong support for traffic management and safety.
[0079] In this embodiment, after determining that the vehicle is violating the guidance driving step S5, the method further includes:
[0080] Video data between the first and second moments is extracted from the video platform connected to the intersection to be used as data for replaying vehicle violations.
[0081] Specifically, from the video surveillance platform connected to the intersection, the first moment a vehicle enters the electronic fence at the entrance of the intersection is taken as the start time of the violation, and the second moment a vehicle leaves the electronic fence at the exit of the intersection is taken as the end time or near end time of the violation. Video data between these two time points is extracted. The extracted video data is mainly used for playback and review of vehicle violations, serving as evidence to support traffic violations and is an important part of improving vehicle violation monitoring methods.
[0082] Based on the entrance number and directional arrow type obtained in step S3, the second exit number corresponding to the vehicle's entry point is obtained from the connection table to determine whether the vehicle has violated directional guidance. (Refer to...) Figure 4 As shown in the embodiments of this application, a method for monitoring vehicle violations is also provided, the method comprising:
[0083] Step B1: Establish a connection table between the electronic fences at the entrances and exits of traffic intersections;
[0084] Step B2: Obtain vehicle trajectory data uploaded by roadside sensing devices and group them according to vehicle number;
[0085] Step B3: Based on vehicle trajectory data, obtain the first moment when each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the lane where the vehicle is located; and, based on vehicle trajectory data, obtain the second moment when the vehicle enters the exit electronic fence and the corresponding first exit number.
[0086] Step B4: Based on the entrance number and the type of directional arrow, obtain the second exit number corresponding to the vehicle's entry from the connection table;
[0087] Step B5: Determine if the first exit number and the second exit number are the same to determine if the vehicle is violating the guidance.
[0088] It should be noted that, unlike the vehicle violation monitoring methods provided in steps S1 to S5, this embodiment obtains the corresponding second exit number "Exit 3" from the connection table based on the obtained entrance number "Entrance 1" and the directional arrow type being a straight directional arrow. However, the actual obtained number of the entrance electronic fence is "Exit 2," indicating a discrepancy between the two and indicating that the vehicle has violated the directional guidance. This method directly compares the first and second exit numbers, allowing the system to more directly and accurately determine whether the vehicle is following the directional arrow. In practical applications, the most suitable method can be selected based on the specific situation, or a combination of two methods can be used for comprehensive judgment to suit different traffic monitoring scenarios and needs.
[0089] In summary, this application provides a method for monitoring vehicle violations. This method establishes a connection table between electronic fences at the entrance and exit of traffic intersections; acquires vehicle trajectory data uploaded by roadside sensing devices and groups it according to vehicle number; based on the vehicle trajectory data, it obtains the first moment each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the vehicle's lane; and based on the vehicle trajectory data, it obtains the second moment each vehicle enters the exit electronic fence and the corresponding first exit number; based on the entrance number and the first exit number, it determines the vehicle's actual driving direction category from the connection table; and it judges whether the actual driving direction category matches the directional arrow type to determine whether the vehicle has violated directional driving rules. This application combines electronic fence technology with the analysis and traffic rule judgment of vehicle trajectory data collected by existing roadside sensing units. Once a vehicle violates a traffic rule, the system can respond immediately and record it, greatly improving monitoring efficiency. Furthermore, it eliminates the need for additional dedicated capture equipment, reducing hardware costs. It has broad application prospects in intelligent traffic management and vehicle violation monitoring.
[0090] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0091] Furthermore, some embodiments of this application also provide an electronic device. The electronic device can be various forms of digital computer, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, etc. The electronic device can also be various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices.
[0092] The electronic device includes: one or more processors; and a memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the vehicle violation monitoring method provided in any one or more of the above embodiments. Figure 5 An exemplary structural diagram of the electronic device is disclosed. For example... Figure 5As shown, the electronic device includes one or more processors 1101, a memory 1102, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0093] The electronic device may further include an input device 1103 and an output device 1104. The processor 1101, memory 1102, input device 1103, and output device 1104 may be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.
[0094] Input device 1103 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 1104 may include a display device, auxiliary lighting device (e.g., LED), and haptic feedback device (e.g., vibration motor). The display device may include, but is not limited to, a liquid crystal display (LCD), a light-emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
[0095] To provide interaction with the user, the electronic device can be a computer. The computer has: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0096] In this embodiment, a computer-readable medium stores a computer program / instructions, which, when executed by a processor, implement the steps of the vehicle violation monitoring method provided in any one or more of the above embodiments. This computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into that device. The aforementioned computer-readable medium carries one or more computer-readable instructions.
[0097] The memory 1102 can serve as a non-transitory computer-readable storage medium, used to store non-transitory software programs, non-transitory computer-executable programs, and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 1102, thereby implementing the program instructions / modules corresponding to the methods provided in any one or more of the embodiments described above in this application.
[0098] The memory 1102 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 1102 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1102 may optionally include memory remotely located relative to the processor 1101, and these remote memories can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0099] It should be noted that more specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0100] Computer-readable storage media include permanent and non-permanent, removable and non-removable media, which can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only optical disc (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0101] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0102] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. For example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In some embodiments, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, or similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that works with a processor to perform the various steps or functions.
[0103] The computer program product provided in this application includes one or more computer programs / instructions. When executed by a processor, these computer programs / instructions generate, in whole or in part, the processes or functions described in this application. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0104] The flowcharts or block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-specific system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0105] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily made by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims, and the above embodiments should be regarded as exemplary and non-limiting.
Claims
1. A method for monitoring vehicle violations, characterized in that, include: Establish a connection table between the electronic fences at the entrances and exits of traffic intersections; Acquire vehicle trajectory data uploaded by roadside sensing devices and group them according to vehicle number; Based on the vehicle trajectory data, the first moment when each vehicle enters the entrance electronic fence, the entrance number of the entrance electronic fence, and the directional arrow type of the lane where the vehicle is located are obtained. Based on the vehicle trajectory data, the second moment when the vehicle enters the exit electronic fence and the corresponding first exit number are obtained. Based on the entrance number and the first exit number, the actual driving direction category of the vehicle is determined from the connection relationship table; Determine whether the actual driving direction category matches the guide arrow type to determine whether the vehicle is violating the guide direction.
2. The method for monitoring vehicle violations according to claim 1, characterized in that, Also includes: Based on the entrance number and the directional arrow type, the second exit number corresponding to the vehicle's entry is obtained from the connection relationship table; Determine whether the first exit number and the second exit number are the same to determine whether the vehicle is violating the guidance.
3. The method for monitoring vehicle violations according to claim 1, characterized in that, Before the step of establishing the connection table between the entrance and exit electronic fences of a traffic intersection, the process also includes: establishing the entrance and exit electronic fences, specifically including: Determine the location of road markings at traffic intersections, including entrance and exit markings; According to the preset first extension distance, the entrance marking is extended in the opposite direction of the vehicle's direction of travel to form a first extension segment. The first extension segment is connected to the entrance marking to form a closed electronic fence for the entrance. According to the preset second extension distance, the exit marking is extended in the direction of vehicle travel to form a second extension segment. The second extension segment is connected to the exit marking to form a closed electronic fence for the exit.
4. The method for monitoring vehicle violations according to claim 1, characterized in that, The vehicle trajectory data includes: vehicle number and latitude and longitude information; Based on the vehicle trajectory data, the steps to obtain the first moment each vehicle enters the electronic fence at the entrance, the entrance number of the electronic fence, and the directional arrow type of the lane in which the vehicle is located include: Determine the coordinates of the first boundary of the electronic fence at the entrance; The latitude and longitude information reported by the vehicle is acquired based on a preset acquisition frequency, and the position is calculated with the first boundary coordinates to determine whether the vehicle has entered the electronic fence of the entrance. If so, the time when the vehicle enters the electronic fence at the entrance is recorded as the first moment and the entrance number of the electronic fence at the entrance is recorded. The latitude and longitude information reported by the vehicle at the first moment is matched with the high-precision map data of the electronic fence at the entrance to obtain the directional arrow type of the lane where the vehicle is located.
5. The method for monitoring vehicle violations according to claim 4, characterized in that, Based on the vehicle trajectory data, the steps of obtaining the first moment each vehicle enters the electronic fence at the entrance, the entrance number of the electronic fence, and the directional arrow type of the lane in which the vehicle is located, further include: Based on the acquisition frequency, obtain the vehicle trajectory data corresponding to the acquisition time after the first time, and determine whether the vehicle position is still within the electronic fence of the entrance with the same entrance number. If so, update the first time when the vehicle enters the intersection to the acquisition time.
6. The method for monitoring vehicle violations according to claim 4, characterized in that, Based on the vehicle trajectory data, the steps for obtaining the second moment when the vehicle enters the electronic fence of the exit and the corresponding first exit number include: Determine the second boundary coordinates of the exit electronic fence associated with the entrance electronic fence; The latitude and longitude information reported by the vehicle is obtained based on the acquisition frequency, and the position is calculated with the second boundary coordinates to determine whether the vehicle has entered the electronic fence of the exit. If so, the time when the vehicle enters the electronic fence at the exit is recorded as the second time and the first exit number of the electronic fence at the exit is recorded.
7. The method for monitoring vehicle violations according to claim 1, characterized in that, After determining that the vehicle is violating directional driving, the process further includes: Video data between the first and second moments is extracted from the video platform accessed at the intersection to serve as data for replaying vehicle violations.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; and a memory storing computer program instructions, which, when executed, cause the processors to perform the steps of the vehicle violation monitoring method as described in any one of claims 1-7.
9. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the vehicle violation monitoring method as described in any one of claims 1-7.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the vehicle violation monitoring method as described in any one of claims 1-7.