Method, system and device for controlling phase duration of traffic light, medium and product
By obtaining the congestion level and traffic light status of the intersection, correcting the green light phase duration, and optimizing the traffic light control independently of the bus hardware status, it solves the low traffic efficiency and congestion problems caused by hardware failures in autonomous driving bus priority, and realizes the rapid passage of buses. and optimization of traffic flow.
Patent Information
- Application Number
- CN202410787987.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
AI Technical Summary
The existing self-driving bus priority control relies too much on the bus hardware status, which can easily lead to traffic light deadlocks due to hardware failures, causing congestion to social vehicles and affecting traffic efficiency.
By obtaining the congestion level and traffic light status in each direction of the intersection, the green light phase duration is corrected based on the expected driving direction of the bus, independent of the bus hardware status, and the traffic light control is optimized to ensure that the bus passes quickly.
Without being affected by the bus hardware status, it can improve bus traffic efficiency, reduce waiting time, avoid traffic light deadlocks, and optimize traffic flow.
Smart Images

Figure CN118692248A
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a method, system, device, medium and product for controlling the phase duration of a traffic light. Background Art
[0002] Autonomous driving bus priority means that when autonomous driving technology is applied to public buses, through corresponding traffic management and priority control strategies, autonomous driving public buses can obtain higher priority and smoother driving conditions.
[0003] Autonomous driving bus priority can improve the efficiency of the transportation system. By communicating and coordinating autonomous driving buses with traffic lights in real time, it can reduce the waiting time of buses and increase the average speed of buses, thereby reducing congestion and traffic delays. Autonomous driving bus priority can improve passengers' public transportation experience. Through more precise priority control and the application of autonomous driving technology, buses can provide more punctual, reliable and efficient services. Passengers can reduce waiting time, improve travel predictability and comfort, and increase dependence on and satisfaction with public transportation.
[0004] However, the existing bus priority is mostly implemented by active control. Although it has certain advantages in efficiency, it still has the following problems:
[0005] (1) Over-reliance on bus status reporting: The triggering conditions of active bus priority are more dependent on the direction and speed of the bus itself. If a bus reports a false alarm, it will cause abnormal changes in traffic lights, resulting in;
[0006] (2) Over-emphasis on bus right of way: When the conditions for bus travel are triggered, traffic lights will be forced to change their information to accommodate the buses. This will result in the lateral lanes being in a red light state when multiple buses are traveling, causing significant congestion to the travel of other vehicles.
[0007] (3) Over-reliance on the stability of hardware equipment: In active bus priority control, since the hardware equipment needs to send control instructions to the traffic light to achieve the effect of a permanent green light, if the hardware equipment is disconnected at this moment and the traffic light controller has no active recovery device, the traffic light at the intersection will be deadlocked, which may easily cause a traffic accident. Summary of the invention
[0008] One purpose of the present application is to provide a method for controlling the phase duration of traffic lights, at least to solve the problem of how to ensure the traffic efficiency of buses without being affected by the hardware status of the buses.
[0009] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0010] In a first aspect, some embodiments of the present application further provide a method for controlling the phase duration of a traffic light, comprising:
[0011] In response to the bus reaching a preset position of a current intersection, obtaining the congestion degree in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus;
[0012] Based on the congestion degree in each direction, the traffic light status in each direction and the expected travel direction of the bus, the green light phase duration in each direction of the current intersection is corrected to obtain a corrected green light phase duration in each direction;
[0013] The traffic light at the current intersection is controlled based on the corrected green light phase durations in each direction, so that the bus can pass through the current intersection more quickly.
[0014] In a second aspect, some embodiments of the present application further provide a system for controlling the phase duration of a traffic light, the system comprising:
[0015] An acquisition module, configured to acquire the congestion degree in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus in response to the bus reaching a preset position of the current intersection;
[0016] A correction module is configured to correct the green light phase duration in each direction of the current intersection based on the congestion degree in each direction, the traffic light status in each direction and the expected travel direction of the bus, so as to obtain the corrected green light phase duration in each direction;
[0017] A control module is configured to control the traffic light at the current intersection based on the corrected green light phase durations in each direction, so that the bus can pass through the current intersection more quickly.
[0018] In a third aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0019] In a fourth aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0020] In a fifth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0021] Compared with the related art, in the solution provided in the embodiment of the present application, in response to the bus reaching a preset position of the current intersection, the congestion degree in each direction of the current intersection, the traffic light status in each direction and the expected travel direction of the bus are obtained; based on the congestion degree in each direction, the traffic light status in each direction and the expected travel direction of the bus, the green light phase duration in each direction of the current intersection is corrected to obtain the corrected green light phase duration in each direction; based on the corrected green light phase duration in each direction, the traffic light at the current intersection is controlled. Among them, the method is applied to an edge device, and the edge device is communicatively connected to the traffic light. Through the above configuration, the method of the present application is applied to the edge device, so it will not be affected by the hardware status of the bus, that is, when the bus hardware fails, the method of the present application will not be affected in any way. The present application obtains the congestion level in each direction of the current intersection, the traffic light status in each direction and the expected travel direction of the bus; based on the congestion level in each direction, the traffic light status in each direction and the expected travel direction of the bus, the green light phase duration in each direction of the current intersection is corrected to obtain the corrected green light phase duration in each direction, and the traffic light at the current intersection is controlled based on the corrected green light phase duration in each direction, thereby reducing the waiting time of the bus. Therefore, the present application can solve the problem of how to ensure the traffic efficiency of the bus without being affected by the hardware status of the bus. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0023] Figure 1 This is a flow chart of the main steps of a method for controlling the phase duration of a traffic light according to an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of the main components of a system for controlling the phase duration of a traffic light according to an embodiment of the application;
[0025] Figure 3 is a schematic diagram of an exemplary structure of a processor and a memory according to the present application;
[0026] Figure 4It is a schematic diagram of an exemplary structure of an electronic device according to the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a method for controlling the phase duration of a traffic light according to an embodiment of the present application. Figure 1 As shown, the method for controlling the phase duration of a traffic light in an embodiment of the present application mainly includes the following steps S101 to S103, and the method is applied to an edge device, and the edge device is communicatively connected with the traffic light.
[0029] Step S101: In response to a bus reaching a preset position of a current intersection, the congestion degree of each direction of the current intersection, the traffic light status of each direction, and the expected travel direction of the bus are obtained.
[0030] In this embodiment, in response to the bus reaching a preset position of the current intersection, the congestion degree in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus are obtained.
[0031] In one embodiment, the edge device may be a smart street light.
[0032] In one implementation, the edge device may directly determine the expected travel direction of the bus by capturing the state of the turn signal light of the bus.
[0033] In one implementation, the preset position of the current intersection may be set at a position 25 meters away from the intersection.
[0034] In one embodiment, the congestion degree in each direction can be obtained according to the following steps: first, the vehicle flow in each direction of the current intersection within a preset time period is obtained, and then the vehicle flow in each direction of the current intersection is input into a preset congestion degree assessment model to obtain the congestion degree in each direction.
[0035] Step S102: based on the congestion levels in the directions, the traffic light states in the directions and the expected travel direction of the bus, the green light phase durations in the directions of the current intersection are corrected to obtain corrected green light phase durations in the directions.
[0036] In this embodiment, the green light phase durations in each direction of the current intersection are corrected based on the congestion levels in each direction, the traffic light states in each direction and the expected travel direction of the bus to obtain corrected green light phase durations in each direction.
[0037] In one embodiment, when the first direction is consistent with the expected travel direction of the bus and the traffic light status of the first direction is green, the green light phase duration of the first direction is equal to the corrected green light phase duration of the first direction; the correction coefficient of the second direction is obtained, and the corrected green light phase duration of the second direction is obtained based on the correction coefficient of the second direction, the green light phase duration of the second direction and the congestion level of the second direction; the correction coefficient of the third direction is obtained, and the corrected green light phase duration of the third direction is obtained based on the correction coefficient of the third direction, the green light phase duration of the third direction and the congestion level of the third direction; the correction coefficient of the fourth direction is obtained, and the corrected green light phase duration of the fourth direction is obtained based on the correction coefficient of the fourth direction, the green light phase duration of the fourth direction and the congestion level of the fourth direction.
[0038] In one example, the lights in the first direction, the second direction, the third direction, and the fourth direction turn green in sequence.
[0039] In one example, a bus travels from south to north and reaches the preset position of the current intersection. The light for going straight north and south (first direction) is green:
[0040] The current north-south straight green light phase duration remains unchanged;
[0041] The corrected green light phase duration for the north-south left turn (second direction) is:
[0042] t snc1 =β[min(15,t snc0 )+max(s,n)]
[0043] Where β is the correction coefficient of the second direction, t snc0 is the green light phase duration of the second direction. s is the congestion level in the south direction of the intersection, n is the congestion level in the north direction of the intersection, and the congestion level in the second direction is the maximum value of s and n.
[0044] The corrected east-west straight (third direction) green light phase duration is:
[0045] t ews1 =γ[min(20,t ews0 )+max(e,w)]
[0046] Among them, γ is the correction coefficient of the third direction, t ews0 is the green light phase duration of the third direction. e is the congestion level in the east direction of the intersection, w is the congestion level in the west direction of the intersection, and the congestion level in the third direction is the maximum value of e and w.
[0047] The corrected green light phase duration for the east-west left turn (fourth direction) is
[0048] t ewc1 =δ[min(15,t ewc0 )+max(e,w)]
[0049] Among them, δ is the correction coefficient of the third direction, t ewc0 is the green light phase duration of the fourth direction. The congestion level of the fourth direction is the maximum value of e and w.
[0050] In one embodiment, when the first direction is consistent with the expected travel direction of the bus and the traffic light status of the second direction is green, the green light phase duration of the second direction is equal to the corrected green light phase duration of the first direction; the correction coefficient of the third direction is obtained, and the corrected green light phase duration of the third direction is obtained based on the correction coefficient of the third direction, the green light phase duration of the third direction and the congestion level of the third direction; the correction coefficient of the fourth direction is obtained, and the corrected green light phase duration of the fourth direction is obtained based on the correction coefficient of the fourth direction, the green light phase duration of the fourth direction and the congestion level of the fourth direction; the correction coefficient of the first direction is obtained, and the corrected green light phase duration of the first direction is obtained based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction.
[0051] In one example, a bus travels from south to north and reaches the preset position of the current intersection. The south-north left turn (second direction) is green:
[0052] The current north-south left turn green light phase remains unchanged
[0053] The corrected east-west straight green light phase duration is:
[0054] t ews1 =γ[min(20,t ews0 )+max(e,w)]
[0055] The corrected east-west left turn green light phase duration is
[0056] t ewc1 =δ[min(15,t ewc0 )+max(e,w)]
[0057] The corrected north-south straight green light phase duration is:
[0058] t sns1 =α[max(50,t snc0 )+max(s,n)]
[0059] Wherein, α is the correction coefficient of the third direction.
[0060] In one embodiment, when the first direction is consistent with the expected travel direction of the bus and the traffic light state of the third direction is green, the green light phase duration of the third direction is equal to the corrected green light phase duration of the third direction; the correction coefficient of the fourth direction is obtained, and the corrected green light phase duration of the fourth direction is obtained based on the correction coefficient of the fourth direction, the green light phase duration of the fourth direction and the congestion level of the fourth direction. The correction coefficient of the first direction is obtained, and the corrected green light phase duration of the first direction is obtained based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction.
[0061] In one example, a bus travels from south to north and reaches the preset position of the current intersection. The east-west straight (third direction) light is green:
[0062] The current east-west straight green light phase duration remains unchanged;
[0063] The corrected east-west left turn green light phase duration is
[0064] t ewc1 =δ[min(15,t ewc0 )+max(e,w)]
[0065] The corrected north-south straight green light phase duration is:
[0066] t sns1 =α[max(50,t snc0 )+max(s,n)]
[0067] In one embodiment, when the first direction is consistent with the expected travel direction of the bus and the traffic light status of the fourth direction is green, the green light phase duration of the fourth direction is equal to the corrected green light phase duration of the third direction; the correction coefficient of the first direction is obtained, and based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction, the corrected green light phase duration of the first direction is obtained.
[0068] In one example, a bus travels from south to north and reaches the preset position of the current intersection. The east-west left turn (the fourth direction) is green:
[0069] The current east-west left turn green light phase duration remains unchanged;
[0070] The corrected north-south straight green light phase duration is:
[0071] t sns1 =α[max(50,t snc0 )+max(s,n)].
[0072] It should also be noted that those skilled in the art may customize the correction coefficient of the first direction, the correction coefficient of the second direction, the correction coefficient of the third direction, and the correction coefficient of the fourth direction according to actual practical conditions.
[0073] Step S103: Control the traffic light at the current intersection based on the corrected green light phase durations in each direction.
[0074] In this embodiment, the traffic light at the current intersection is controlled according to the corrected green light phase durations in each direction.
[0075] Based on the above steps S101 to S103, in response to the bus reaching the preset position of the current intersection, the congestion levels in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus are obtained; based on the congestion levels in each direction, the traffic light status in each direction, and the expected travel direction of the bus, the green light phase durations in each direction of the current intersection are corrected to obtain the corrected green light phase durations in each direction; based on the corrected green light phase durations in each direction, the traffic lights at the current intersection are controlled. Among them, the method is applied to an edge device, and the edge device is communicatively connected to the traffic light. Through the above configuration, the method of the present application is applied to the edge device, so it will not be affected by the hardware status of the bus, that is, when the bus hardware fails, the method of the present application will not be affected in any way. The present application obtains the congestion level in each direction of the current intersection, the traffic light status in each direction and the expected travel direction of the bus; based on the congestion level in each direction, the traffic light status in each direction and the expected travel direction of the bus, the green light phase duration in each direction of the current intersection is corrected to obtain the corrected green light phase duration in each direction, and the traffic light at the current intersection is controlled based on the corrected green light phase duration in each direction, thereby reducing the waiting time of the bus. Therefore, the present application can solve the problem of how to ensure the traffic efficiency of the bus without being affected by the hardware status of the bus.
[0076] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0077] See attached Figure 2 , Figure 2 FIG. 1 is a main structural block diagram of a system for controlling the phase duration of a traffic light according to an embodiment of the present application. Figure 2As shown, the system for controlling the phase duration of traffic lights in the embodiment of the present application mainly includes an acquisition module 11, a correction module 12 and a control module 13. In some embodiments, one or more of the acquisition module 11, the correction module 12 and the control module 13 can be combined into one module. In some embodiments, the acquisition module 11 can be configured to obtain the congestion level in each direction of the current intersection, the status of the traffic lights in each direction and the expected travel direction of the bus in response to the bus reaching the preset position of the current intersection; the correction module 12 can be configured to correct the green light phase duration in each direction of the current intersection based on the congestion level in each direction, the status of the traffic lights in each direction and the expected travel direction of the bus, and obtain the corrected green light phase duration in each direction; the control module 13 can be configured to control the traffic lights at the current intersection based on the corrected green light phase duration in each direction.
[0078] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
[0079] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0080] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 3 An exemplary structural diagram of the electronic device is disclosed. Figure 3As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0081] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0082] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. 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.
[0083] To provide interaction with a user, the electronic device may be a computer. The computer has: 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 a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0084] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0085] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0086] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0087] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0088] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs 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 technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0089] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0090] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0091] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.
[0092] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0094] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A method for controlling the phase duration of a traffic light, characterized in that: The method is applied to an edge device, the edge device is communicatively connected with the traffic light, and includes: In response to the bus reaching a preset position of a current intersection, obtaining the congestion degree in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus; Based on the congestion degree in each direction, the traffic light status in each direction and the expected travel direction of the bus, the green light phase duration in each direction of the current intersection is corrected to obtain a corrected green light phase duration in each direction; The traffic light at the current intersection is controlled based on the corrected green light phase durations in each direction.
2. The method for controlling the phase duration of a traffic light according to claim 1, characterized in that: The directions include a first direction, a second direction, a third direction and a fourth direction; The green light phase durations in each direction of the current intersection are corrected based on the congestion levels in each direction, the traffic light states in each direction, and the expected travel direction of the bus to obtain the corrected green light phase durations in each direction, including: When the first direction is consistent with the expected travel direction of the bus and the traffic light state in the first direction is green, the green light phase duration in the first direction is equal to the corrected green light phase duration in the first direction; Obtaining a correction coefficient for the second direction, and obtaining a corrected green light phase duration for the second direction based on the correction coefficient for the second direction, the green light phase duration for the second direction, and the congestion level for the second direction; Obtaining a correction coefficient for the third direction, and obtaining a corrected green light phase duration for the third direction based on the correction coefficient for the third direction, the green light phase duration for the third direction, and the congestion level for the third direction; A correction coefficient of the fourth direction is obtained, and based on the correction coefficient of the fourth direction, the green light phase duration of the fourth direction and the congestion level of the fourth direction, a corrected green light phase duration of the fourth direction is obtained.
3. The method for controlling the phase duration of a traffic light according to claim 1, characterized in that: The directions include a first direction, a second direction, a third direction and a fourth direction; The green light phase durations in each direction of the current intersection are corrected based on the congestion levels in each direction, the traffic light states in each direction, and the expected travel direction of the bus to obtain the corrected green light phase durations in each direction, including: When the first direction is consistent with the expected travel direction of the bus and the traffic light state of the second direction is green, the green light phase duration of the second direction is equal to the corrected green light phase duration of the first direction; Obtaining a correction coefficient for the third direction, and obtaining a corrected green light phase duration for the third direction based on the correction coefficient for the third direction, the green light phase duration for the third direction, and the congestion level for the third direction; Obtaining a correction coefficient for the fourth direction, and obtaining a corrected green light phase duration for the fourth direction based on the correction coefficient for the fourth direction, the green light phase duration for the fourth direction, and the congestion level for the fourth direction; A correction coefficient of the first direction is obtained, and based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction, a corrected green light phase duration of the first direction is obtained.
4. The method for controlling the phase duration of a traffic light according to claim 1, characterized in that: The directions include a first direction, a second direction, a third direction and a fourth direction; The green light phase durations in each direction of the current intersection are corrected based on the congestion levels in each direction, the traffic light states in each direction, and the expected travel direction of the bus to obtain the corrected green light phase durations in each direction, including: When the first direction is consistent with the expected travel direction of the bus and the traffic light state of the third direction is green, the green light phase duration of the third direction is equal to the corrected green light phase duration of the third direction; A correction coefficient of the fourth direction is obtained, and based on the correction coefficient of the fourth direction, the green light phase duration of the fourth direction and the congestion level of the fourth direction, a corrected green light phase duration of the fourth direction is obtained. A correction coefficient of the first direction is obtained, and based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction, a corrected green light phase duration of the first direction is obtained.
5. The method for controlling the phase duration of a traffic light according to claim 1, characterized in that: The directions include a first direction, a second direction, a third direction and a fourth direction; The green light phase durations in each direction of the current intersection are corrected based on the congestion levels in each direction, the traffic light states in each direction, and the expected travel direction of the bus to obtain the corrected green light phase durations in each direction, including: When the first direction is consistent with the expected travel direction of the bus and the traffic light state of the fourth direction is green, the green light phase duration of the fourth direction is equal to the corrected green light phase duration of the third direction; A correction coefficient of the first direction is obtained, and based on the correction coefficient of the first direction, the green light phase duration of the first direction and the congestion level of the first direction, a corrected green light phase duration of the first direction is obtained.
6. The method for controlling the phase duration of a traffic light according to claim 1, characterized in that: The method further includes obtaining the congestion degree in each direction according to the following steps: Get the traffic flow in each direction of the current intersection within a preset time period; The traffic flow in each direction of the current intersection is input into a preset congestion degree assessment model to obtain the congestion degree in each direction.
7. A system for controlling the phase duration of traffic lights, characterized in that: The system comprises: An acquisition module, configured to acquire the congestion degree in each direction of the current intersection, the traffic light status in each direction, and the expected travel direction of the bus in response to the bus reaching a preset position of the current intersection; A correction module is configured to correct the green light phase duration in each direction of the current intersection based on the congestion degree in each direction, the traffic light status in each direction and the expected travel direction of the bus, so as to obtain the corrected green light phase duration in each direction; A control module is configured to control the traffic light at the current intersection based on the corrected green light phase durations in each direction, so that the bus can pass through the current intersection more quickly.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 6.
9. A computer readable medium having a computer program / instructions stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
