Traffic marking optimization method and device, electronic equipment and storage medium
By identifying and adjusting road traffic markings, the problems of vehicle congestion and accidents caused by unreasonable road markings are solved, traffic flow is optimized, and driving and pedestrian safety are improved.
Patent Information
- Application Number
- CN202410279829.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2025-09-12
AI Technical Summary
The unreasonable existing road markings lead to vehicle congestion and traffic accidents, especially the frequent occurrence of illegal lane changes.
By obtaining vehicle-related information on the target road section, identifying vehicles that change lanes illegally, analyzing their driving monitoring images to distinguish objectively illegal vehicles, judging the rationality of virtual and real traffic markings, and making corresponding adjustments.
Optimize traffic markings, reduce illegal lane changes, improve driving safety and pedestrian safety, and ensure that vehicles effectively choose driving routes and speeds.
Smart Images

Figure CN120633960A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road planning, and in particular to a traffic marking optimization method, device, electronic equipment and storage medium. Background Art
[0002] With the acceleration of urbanization and increasing traffic pressure, road marking is receiving increasing attention. The role and significance of road marking are not only related to traffic safety but also closely related to urban management. The primary purpose of road marking is to improve traffic safety. By marking roads, traffic rules for vehicles and pedestrians are clarified, reducing the occurrence of traffic accidents. However, in real life, unreasonable road markings often lead to traffic congestion and even traffic accidents. Summary of the Invention
[0003] The present invention provides a traffic marking optimization method, device, electronic device and storage medium, which can optimize traffic markings in a target road section and reduce the phenomenon of illegal lane changes by vehicles.
[0004] According to one aspect of the present invention, a traffic marking optimization method is provided, comprising:
[0005] Obtaining first vehicle-related information of a dotted line segment passing through a target road segment and second vehicle-related information of a solid line segment passing through the target road segment within a preset time period; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs;
[0006] Determining a vehicle that has illegally changed lanes based on the first vehicle-related information and the second vehicle-related information;
[0007] Obtaining a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determining an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image;
[0008] Determining whether the virtual traffic markings and the real traffic markings in the target road section are reasonable based on the objective illegal vehicles;
[0009] When it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, the virtual traffic markings and the real traffic markings in the target road section are adjusted.
[0010] According to another aspect of the present invention, a traffic marking optimization device is provided, comprising:
[0011] A vehicle-related information acquisition module is configured to acquire first vehicle-related information of a virtual line segment passing through a target road segment and second vehicle-related information of a solid line segment passing through the target road segment within a preset time period; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs;
[0012] a lane-changing vehicle determining module, configured to determine a lane-changing vehicle that has illegally changed lanes based on the first vehicle-related information and the second vehicle-related information;
[0013] an objective illegal vehicle determination module, configured to obtain a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determine an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image;
[0014] A traffic marking judgment module is used to judge whether the virtual traffic markings and the real traffic markings in the target road section are reasonable according to the objective illegal vehicles;
[0015] The traffic marking adjustment module is used to adjust the virtual traffic markings and the real traffic markings in the target road section when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably drawn.
[0016] According to another aspect of the present invention, an electronic device is provided, comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the traffic marking optimization method described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the traffic marking optimization method according to any embodiment of the present invention when executed.
[0021] The traffic marking optimization scheme of the embodiment of the present invention obtains first vehicle-related information of a virtual line segment passing through a target road segment within a preset time period and second vehicle-related information of a real line segment passing through the target road segment; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs; based on the first vehicle-related information and the second vehicle-related information, determines the vehicle that has illegally changed lanes; obtains a driving monitoring image of the vehicle that has illegally changed lanes within the target road segment, and determines the objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image; determines whether the virtual traffic markings and real traffic markings within the target road segment are reasonably delineated based on the objective illegal vehicle; when it is determined that the virtual traffic markings and real traffic markings within the target road segment are not reasonably delineated, adjusts the virtual traffic markings and real traffic markings within the target road segment. The technical scheme provided by the embodiment of the present invention can optimize the traffic markings within the target road segment, reduce the phenomenon of illegal lane changes by vehicles, and allow drivers to more effectively choose driving routes and driving speeds, thereby increasing the protection of pedestrians and driving safety.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 This is a flow chart of a traffic marking optimization method provided according to the first embodiment of the present invention;
[0025] Figure 2 A schematic diagram of a target road section provided by an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of the adjustment effect of virtual traffic markings and real traffic markings in a target road section provided by an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of the effect of a vehicle driving from a construction site to a target road section provided by an embodiment of the present invention;
[0028] Figure 5 This is a schematic structural diagram of a traffic marking optimization device provided according to a second embodiment of the present invention;
[0029] Figure 6It is a structural diagram of an electronic device for implementing the traffic marking optimization method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Example 1
[0033] Figure 1 A flow chart of a traffic marking optimization method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of planning traffic markings on a target road section. The method can be executed by a traffic marking optimization device, which can be implemented in the form of hardware and / or software. The traffic marking optimization device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0034] S110. Obtain first vehicle association information of a dotted line segment passing through a target road segment within a preset time period and second vehicle association information of a solid line segment passing through the target road segment; wherein the vehicle association information includes vehicle identification information and a lane to which the vehicle belongs.
[0035] Roads generally consist of straight sections and intersections. Intersections are typically equipped with traffic lights to guide traffic. When the traffic light is red or there is traffic congestion ahead, vehicles may queue on the straight section. Furthermore, for standard driving, straight sections adjacent to intersections are typically equipped with virtual and real traffic markings. Vehicles can change lanes at virtual markings, but not at real and virtual markings. In embodiments of the present invention, a target section can be identified by tracing back from the intersection to the straight lane. Figure 2 A schematic diagram of a target road section provided by an embodiment of the present invention. Figure 2 As shown, the target road section includes real traffic markings and virtual traffic markings. The critical line between the real traffic markings and the virtual traffic markings constitutes a violation detection line (also known as a warning line). Among them, the road section containing the virtual traffic markings is the virtual line section in the target road section, and the road section containing the real traffic markings is the real line section of the target road section. Monitoring equipment can be deployed at the entry point, exit point and violation detection line of the target road section to monitor the vehicles traveling on the target road section through the monitoring equipment, thereby obtaining vehicle-related information. In addition, the lanes in the target road section can include a through lane, a left turn lane and / or a right turn lane.
[0036] In an embodiment of the present invention, vehicle association information of a dotted line segment passing through a target road segment within a preset time period and vehicle association information of a solid line segment passing through the target road segment are obtained. For the convenience of description, the vehicle association information of the dotted line segment passing through the target road segment is referred to as first vehicle association information, and the vehicle association information of the solid line segment passing through the target road segment is referred to as second vehicle association information. The vehicle association information may include vehicle identification information (such as the vehicle's license plate number) and the lane to which the vehicle belongs. For example, Table 1 is a first vehicle association information table of a dotted line segment passing through a target road segment provided by an embodiment of the present invention; Table 2 is a second vehicle association information table of a solid line segment passing through a target road segment provided by an embodiment of the present invention.
[0037] Table 1 First vehicle related information table
[0038] Straight lane Left turn lane Right turn lane #*123456 #*55347 #*12885 #*123457 #*55348 #*12886 #*123458 #*55349 #*12887 #*123459 #*55350 #*12888
[0039] Table 2 Second vehicle related information table
[0040] Straight lane Left turn lane Right turn lane #*123456 #*55347 #*12885 #*55348 #*123457 #*12886 #*12887 #*55349 #*123458 #*123459 #*55350 #*12888
[0041] S120. Determine the vehicle that has illegally changed lanes based on the first vehicle-related information and the second vehicle-related information.
[0042] In this embodiment of the present invention, the first vehicle association information is compared with the second vehicle association information to identify vehicles that changed lanes at the actual traffic markings on the target road section, and the vehicles that changed lanes at the actual traffic markings on the target road section are identified as vehicles that changed lanes illegally. For example, by comparing the vehicle associations in Table 1 and Table 2, it can be determined that the vehicles that changed lanes illegally include vehicles with license plate numbers #*55348, #*12887, #*123457, and #*123458.
[0043] S130: Obtain a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determine an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image.
[0044] Among them, illegal lane-changing vehicles can include subjective illegal vehicles and objective illegal vehicles. Subjective illegal vehicles can be understood as vehicles that meet the lane-changing conditions within the virtual line segment (that is, the virtual traffic line), but illegally change lanes due to the driver's weak traffic awareness, while objective illegal vehicles can be understood as vehicles that have lane-changing needs but have not met the lane-changing conditions within the virtual line segment, resulting in the inability to change lanes within the virtual line segment and can only change lanes within the real line segment. In an embodiment of the present invention, the driving monitoring screen of the illegal lane-changing vehicles within the target road section is obtained by the monitoring equipment deployed within the target road section, and the objective illegal vehicles and subjective illegal vehicles are determined from the illegal lane-changing vehicles based on the driving monitoring screen.
[0045] Optionally, an objective illegal vehicle is determined from the illegal lane-changing vehicles based on the driving monitoring screen, including: determining whether the illegal lane-changing vehicle has a lane-changing demand within the virtual line segment based on the driving monitoring screen; when the illegal lane-changing vehicle has a lane-changing demand within the virtual line segment, determining the vehicle-to-vehicle distance between the illegal lane-changing vehicle and the front and rear adjacent vehicles within the virtual line segment; when the vehicle-to-vehicle distance does not meet the preset lane-changing condition, determining that the illegal lane-changing vehicle is an objective illegal vehicle.
[0046] In an embodiment of the present invention, for each illegal lane-changing vehicle, a determination is made based on the driving monitoring image to determine whether the illegal lane-changing vehicle has activated its turn signal within a virtual line segment of the target road section. If so, it indicates that the illegal lane-changing vehicle has activated its turn signal within the virtual line segment of the target road section. Otherwise, it indicates that the illegal lane-changing vehicle has not activated its turn signal within the virtual line segment of the target road section. If the illegal lane-changing vehicle has activated its turn signal within the virtual line segment, the distance between the illegal lane-changing vehicle and its adjacent vehicles in front and behind it is determined within the virtual line segment. The distance between the illegal lane-changing vehicle and its adjacent vehicles in front and behind it can be determined based on the driving monitoring image or by radar detection within the target road section. The distance between the illegal lane-changing vehicle and its adjacent vehicles in front and behind it can include the distance between the illegal lane-changing vehicle and its adjacent vehicles in the lane it is currently in, as well as the distance between the illegal lane-changing vehicle and its adjacent vehicles in the lane it is about to change into. Determine whether the vehicle-to-vehicle distance meets the preset lane-changing conditions, such as whether the vehicle-to-vehicle distance is greater than the preset distance threshold. If not, determine that the illegal lane-changing vehicle is an objective illegal vehicle. The preset distance threshold can be associated with the vehicle body length of the illegal lane-changing vehicle. For example, the preset distance threshold can be the vehicle body length of the illegal lane-changing vehicle, or the product of the vehicle body length of the illegal lane-changing vehicle and a certain coefficient. It should be noted that the vehicle body length of the illegal lane-changing vehicle can be determined through the driving monitoring screen, or the vehicle body length of the illegal lane-changing vehicle can be detected by the radar deployed in the target road section. It is understandable that illegal lane-changing vehicles that have a lane-changing demand in the virtual line segment but whose vehicle-to-vehicle distance with the front and rear adjacent vehicles in the virtual line segment does not meet the preset lane-changing conditions will be regarded as objective illegal vehicles.
[0047] S140: Determine whether the virtual traffic markings and the real traffic markings in the target road section are reasonable based on the objective illegal vehicles.
[0048] In an embodiment of the present invention, whether the delineation of virtual traffic markings and real traffic markings within a target road section is reasonable is determined based on the objective illegal vehicles. For example, when the number of objective illegal vehicles is greater than a preset vehicle number threshold, it can be determined that the delineation of virtual traffic markings and real traffic markings within the target road section is unreasonable. Optionally, whether the delineation of virtual traffic markings and real traffic markings within the target road section is reasonable is determined based on the objective illegal vehicles, including: determining a violation coefficient within the target road section based on the objective illegal vehicles and the illegal lane-changing vehicles; and determining whether the delineation of virtual traffic markings and real traffic markings within the target road section is reasonable based on the violation coefficient.
[0049] Optionally, determining the violation coefficient within the target road section based on the objective illegal vehicles and the illegal lane-changing vehicles includes: counting a first number of the objective illegal vehicles and a second number of the illegal lane-changing vehicles; and using the ratio of the first number to the second number as the violation coefficient within the target road section. Specifically, counting the number of all objective illegal vehicles and the number of all illegal lane-changing vehicles that pass through the target road section within a preset time period. For the convenience of description, the number of all objective illegal vehicles that pass through the target road section within the preset time period is referred to as the first number, and the number of all illegal lane-changing vehicles that pass through the target road section within the preset time period is referred to as the second number. Using the ratio of the first number to the second number as the violation coefficient within the target road section. Optionally, the ratio of the number of all objective illegal vehicles to the number of all subjective illegal vehicles that pass through the target road section within the preset time period can also be used as the violation coefficient within the target road section.
[0050] In an embodiment of the present invention, whether the delineation of virtual traffic markings and real traffic markings within a target road section is reasonable is determined based on the violation coefficient. Optionally, determining whether the delineation of virtual traffic markings and real traffic markings within the target road section is reasonable based on the violation coefficient includes: when the violation coefficient is greater than a preset coefficient threshold, determining that the delineation of virtual traffic markings and real traffic markings within the target road section is unreasonable; and when the violation coefficient is less than the preset coefficient threshold, determining that the delineation of virtual traffic markings and real traffic markings within the target road section is reasonable. The preset coefficient threshold can be a violation coefficient threshold obtained by weighted calculation of the violation coefficients of multiple monitored road sections, or can be a manually set violation coefficient threshold. It is understood that when the violation coefficient is greater than the preset coefficient threshold, it indicates that there are a large number of objectively violating vehicles in the target road section, and the reason for the objectively violating vehicles is that the virtual traffic markings delineated in the target road section are relatively short, while the real traffic markings are relatively long, i.e., the delineation of virtual traffic markings and real traffic markings within the target road section is unreasonable.
[0051] S150: When it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, the virtual traffic markings and the real traffic markings in the target road section are adjusted.
[0052] In an embodiment of the present invention, when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably drawn, the virtual traffic markings and the real traffic markings in the target road section are adjusted, such as lengthening the virtual traffic markings of the target road section by a preset length and shortening the real traffic markings by a preset length.
[0053] Optionally, when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, the virtual traffic markings and the real traffic markings in the target road section are adjusted, including: when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, obtaining the lane change positions of all objective illegal vehicles in the target road section within a preset historical time period; and adjusting the virtual traffic markings and the real traffic markings in the target road section according to the lane change positions. Exemplarily, when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, obtaining the lane change positions Q (Q1, Q2, Q3, ..., Qn) of all objective illegal vehicles in the target road section within one month, then determining the lane change distance between the lane change position of each objective illegal vehicle among all the objective illegal vehicles and the entry position of the target road section, calculating the mean of all the lane change distances, or averaging the lane change distances after removing the maximum and minimum values among all the lane change distances, thereby obtaining the target distance. Optionally, the maximum lane change distance among all lane change distances can be used as the target distance. The length of the virtual traffic markings in the target road section is extended to the target distance, and the real traffic markings in the target road section are shortened accordingly. Figure 3 A schematic diagram of the adjustment effect of virtual traffic markings and real traffic markings in a target road section provided by an embodiment of the present invention.
[0054] Optionally, adjusting the virtual traffic markings and real traffic markings within the target road section based on the lane change position includes: determining the length of the virtual traffic markings and the length of the real traffic markings within the target road section based on the lane change position; adjusting the virtual traffic markings within the target road section based on the virtual traffic marking lengths, and adjusting the real traffic markings within the target road section based on the real traffic marking lengths. Exemplarily, the center position of all lane change positions is determined, and the distances from the center position to the entry position and exit position of the target road section are calculated, respectively. The distance from the center position to the entry position of the target road section is used as the virtual traffic marking length, and the distance from the center position to the exit position of the target road section is used as the real traffic marking length. Another exemplary embodiment is determining a first lane change distance from the lane change position of each objectively violating vehicle to the entry position of the target road section, calculating the average of all first lane change distances, or averaging the first lane change distances after removing the maximum and minimum values of all first lane change distances to obtain the virtual traffic marking length. Determine the second lane-changing distance between the lane-changing position of each objectively violating vehicle and the exit position of the target road section, calculate the average of all second lane-changing distances, or average the second lane-changing distances after removing the maximum and minimum values of all second lane-changing distances to obtain the actual traffic marking length. Adjust the virtual traffic marking length within the target road section from its original length to the virtual traffic marking length, and simultaneously adjust the actual traffic marking length within the target road section from its original length to the actual traffic marking length.
[0055] The traffic marking optimization method of the embodiment of the present invention obtains first vehicle-related information of a virtual line segment passing through a target road segment within a preset time period and second vehicle-related information of a real line segment passing through the target road segment; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs; based on the first vehicle-related information and the second vehicle-related information, determines a vehicle that has illegally changed lanes; obtains a driving monitoring image of the vehicle that has illegally changed lanes within the target road segment, and determines an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image; determines whether the virtual traffic markings and real traffic markings within the target road segment are reasonably delineated based on the objective illegal vehicle; when it is determined that the virtual traffic markings and real traffic markings within the target road segment are not reasonably delineated, adjusts the virtual traffic markings and real traffic markings within the target road segment. The technical solution provided by the embodiment of the present invention can optimize the traffic markings within the target road segment, reduce the phenomenon of illegal lane changes by vehicles, and allow drivers to more effectively choose driving routes and driving speeds, thereby increasing the protection of pedestrians and driving safety.
[0056] In some embodiments, there may be construction sites around urban roads, such as gas stations and shopping malls. If a vehicle directly passes through the construction site to the target road section, it may also change lanes at the actual traffic markings. For example, Figure 4 A schematic diagram of the effect of a vehicle driving from a construction site to a target road section provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, both Vehicle 1 and Vehicle 2 can only change lanes at real traffic markings. Therefore, if the virtual and real traffic markings within the target road section are determined to be improperly drawn, the source of the vehicle can be determined based on objective driving monitoring footage of the offending vehicle. Besides the through lane, the vehicle can be checked to see if it is exiting a nearby construction site. If so, the virtual and real traffic markings within the target road section near the construction site exit can be optimized.
[0057] In some embodiments, while the vehicle is driving on the target road section, it can also be linked to the navigation device to provide real-time reports based on the number of vehicles in each lane in the target road section and whether the vehicle has the conditions to change lanes before entering the violation detection area under the current driving state, guiding the vehicle to enter the corresponding lane in advance, reducing corresponding violations and lane change traffic jams.
[0058] Example 2
[0059] Figure 5 This is a structural diagram of a traffic marking optimization device provided in Example 2 of the present invention.
[0060] like Figure 5 As shown, the device includes:
[0061] The vehicle-related information acquisition module 510 is configured to acquire first vehicle-related information of a dashed line segment passing through a target road segment and second vehicle-related information of a solid line segment passing through the target road segment within a preset time period; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs;
[0062] A lane-changing illegal vehicle determining module 520 is configured to determine a lane-changing illegal vehicle based on the first vehicle-related information and the second vehicle-related information;
[0063] an objective illegal vehicle determination module 530 for obtaining a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determining an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image;
[0064] A traffic marking judgment module 540 is configured to judge whether the virtual traffic markings and the real traffic markings in the target road section are reasonable based on the objective illegal vehicle;
[0065] The traffic marking adjustment module 550 is configured to adjust the virtual traffic markings and the real traffic markings in the target road section when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated.
[0066] Optionally, the objective traffic violation vehicle determination module is used to:
[0067] Determining whether the illegally lane-changing vehicle has a lane-changing requirement within the virtual line segment according to the driving monitoring image;
[0068] When the illegal lane-changing vehicle has a lane-changing requirement within the virtual line segment, determining the vehicle-to-vehicle distance between the illegal lane-changing vehicle and the front and rear adjacent vehicles within the virtual line segment;
[0069] When the distance between vehicles does not meet the preset lane-changing condition, the lane-changing vehicle is determined to be an objectively illegal vehicle.
[0070] Optionally, the traffic marking judgment module includes:
[0071] a violation coefficient determination unit, configured to determine a violation coefficient within the target road section based on the objective violation vehicle and the illegal lane-changing vehicle;
[0072] The traffic marking judgment unit is used to judge whether the virtual traffic markings and the real traffic markings in the target road section are reasonable according to the violation coefficient.
[0073] Optionally, the traffic marking judgment unit is used to:
[0074] When the violation coefficient is greater than a preset coefficient threshold, determining that the virtual traffic markings and the real traffic markings in the target road section are unreasonable;
[0075] When the violation coefficient is less than the preset coefficient threshold, it is determined that the virtual traffic markings and the real traffic markings in the target road section are reasonably delineated.
[0076] Optionally, the violation coefficient determination unit is configured to:
[0077] Counting a first number of the objectively violating vehicles and a second number of the illegally changing lanes vehicles;
[0078] The ratio of the first number to the second number is used as a violation coefficient in the target road section.
[0079] Optionally, the traffic marking adjustment module includes:
[0080] a lane change position determination unit, configured to obtain lane change positions of all objectively illegal vehicles on the target road section within a preset historical time period when it is determined that the virtual traffic markings and the real traffic markings on the target road section are not reasonably delineated;
[0081] The traffic marking adjustment unit is used to adjust the virtual traffic markings and the real traffic markings in the target road section according to the lane change position.
[0082] Optionally, the lane change position determination unit is configured to:
[0083] Determining the length of the virtual traffic marking and the length of the real traffic marking in the target road section according to the lane change position;
[0084] The virtual traffic markings in the target road section are adjusted according to the length of the virtual traffic markings, and the real traffic markings in the target road section are adjusted based on the length of the real traffic markings.
[0085] The traffic marking optimization device provided in the embodiment of the present invention can execute the traffic marking optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0086] Example 3
[0087] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0088] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0089] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0090] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the traffic marking optimization method.
[0091] In some embodiments, the traffic marking optimization method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the traffic marking optimization method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the traffic marking optimization method in any other suitable manner (e.g., via firmware).
[0092] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0094] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. 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 acoustic input, voice input, or tactile input).
[0096] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0097] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0098] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0099] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A traffic marking optimization method, characterized in that: include: Obtaining first vehicle-related information of a dotted line segment passing through a target road segment and second vehicle-related information of a solid line segment passing through the target road segment within a preset time period; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs; Determining a vehicle that has illegally changed lanes based on the first vehicle-related information and the second vehicle-related information; Obtaining a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determining an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image; Determining whether the virtual traffic markings and the real traffic markings in the target road section are reasonable based on the objective illegal vehicles; When it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, the virtual traffic markings and the real traffic markings in the target road section are adjusted.
2. The method according to claim 1, characterized in that Determining objective illegal vehicles from the illegal lane-changing vehicles based on the driving monitoring image includes: Determining whether the illegally lane-changing vehicle has a lane-changing requirement within the virtual line segment according to the driving monitoring image; When the illegal lane-changing vehicle has a lane-changing requirement within the virtual line segment, determining the vehicle-to-vehicle distance between the illegal lane-changing vehicle and the front and rear adjacent vehicles within the virtual line segment; When the distance between vehicles does not meet the preset lane-changing condition, the lane-changing vehicle is determined to be an objectively illegal vehicle.
3. The method according to claim 1, characterized in that Judging whether the virtual traffic markings and the real traffic markings in the target road section are reasonable based on the objective illegal vehicles includes: Determine the violation coefficient within the target road section according to the objective violation vehicle and the illegal lane-changing vehicle; Whether the virtual traffic markings and the real traffic markings in the target road section are reasonable is determined according to the violation coefficient.
4. The method according to claim 3, characterized in that Judging whether the virtual traffic markings and the real traffic markings in the target road section are reasonable according to the violation coefficient includes: When the violation coefficient is greater than a preset coefficient threshold, determining that the virtual traffic markings and the real traffic markings in the target road section are unreasonable; When the violation coefficient is less than the preset coefficient threshold, it is determined that the virtual traffic markings and the real traffic markings in the target road section are reasonably delineated.
5. The method according to claim 3, characterized in that Determining a violation coefficient within the target road section based on the objectively violating vehicles and the illegally lane-changing vehicles includes: Counting a first number of the objectively violating vehicles and a second number of the illegally changing lanes vehicles; The ratio of the first number to the second number is used as a violation coefficient in the target road section.
6. The method according to claim 1, characterized in that When it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, the virtual traffic markings and the real traffic markings in the target road section are adjusted, including: When it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably delineated, obtaining lane change positions of all objective vehicles violating traffic rules in the target road section within a preset historical time period; The virtual traffic markings and the real traffic markings in the target road section are adjusted according to the lane change position.
7. The method according to claim 6, characterized in that Adjusting virtual traffic markings and real traffic markings within the target road section according to the lane change position includes: Determining the length of the virtual traffic marking and the length of the real traffic marking in the target road section according to the lane change position; The virtual traffic markings in the target road section are adjusted according to the length of the virtual traffic markings, and the real traffic markings in the target road section are adjusted based on the length of the real traffic markings.
8. A traffic marking optimization device, characterized in that: include: A vehicle-related information acquisition module is configured to acquire first vehicle-related information of a virtual line segment passing through a target road segment and second vehicle-related information of a solid line segment passing through the target road segment within a preset time period; wherein the vehicle-related information includes vehicle identification information and the lane to which the vehicle belongs; a lane-changing vehicle determining module, configured to determine a lane-changing vehicle that has illegally changed lanes based on the first vehicle-related information and the second vehicle-related information; an objective illegal vehicle determination module, configured to obtain a driving monitoring image of the illegal lane-changing vehicle within the target road section, and determine an objective illegal vehicle from the illegal lane-changing vehicles based on the driving monitoring image; A traffic marking judgment module is used to judge whether the virtual traffic markings and the real traffic markings in the target road section are reasonable according to the objective illegal vehicles; The traffic marking adjustment module is used to adjust the virtual traffic markings and the real traffic markings in the target road section when it is determined that the virtual traffic markings and the real traffic markings in the target road section are not reasonably drawn.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the traffic marking optimization method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the traffic marking optimization method according to any one of claims 1 to 7 when executed.