Collision risk prompting method, electronic equipment, readable storage medium and chip
By providing electronic device alerts that display real-time traffic light status and remaining time, the problem of navigation systems being unable to assess collision risks at complex intersections has been solved, thus improving safety and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2026-03-31
AI Technical Summary
Existing navigation systems are unable to effectively assess the collision risk of vehicles at complex intersections, leading to frequent traffic accidents.
The system uses electronic devices to obtain the status and remaining time of traffic lights in real time, and outputs prompts, including the status and remaining time of traffic lights in the target direction, to remind drivers to drive cautiously and reduce the risk of collision.
It improves the safety and user experience of the navigation system and reduces the risk of vehicle collisions at complex intersections.
Smart Images

Figure CN121768233A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent driving technology, and in particular to a collision risk warning method, electronic device, readable storage medium, and chip. Background Technology
[0002] With social development and the improvement of people's living standards, cars have become an important means of transportation, which has led to an increase in the number of cars and the frequency of people's travel, resulting in a corresponding increase in the probability of road traffic accidents.
[0003] Currently, road traffic accidents are often caused by drivers misjudging the current safe passage conditions, especially at intersections where vehicles are relatively concentrated and vehicles traveling in different directions are converging. When drivers fail to accurately judge the current safe passage conditions at the intersection, there is a risk of collision, which can lead to traffic accidents.
[0004] Therefore, how to reduce the risk of collisions between vehicles is a technical problem that urgently needs to be solved. Summary of the Invention
[0005] This application provides a collision risk warning method, electronic device, readable storage medium, and chip to solve the problem in the prior art that when a vehicle driver fails to accurately determine whether the current intersection has safe passage conditions, a collision risk may occur, leading to a traffic accident.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] Firstly, a collision risk warning method is provided, applied to an electronic device. The electronic device provides a navigation path for a vehicle that passes through a first intersection equipped with traffic lights, and the planned driving direction at the first intersection is a first driving direction. The method includes: determining the distance between the vehicle and the first intersection; if the distance is less than a distance threshold, and if there is a target driving direction at the first intersection that poses a collision risk with the first driving direction, then outputting a warning message, which includes the status and remaining duration of the traffic lights in the target driving direction.
[0008] The method provided in this application embodiment enables an electronic device to output a prompt message during navigation that indicates a target driving direction with a risk of collision with the current first driving direction. The prompt message includes the status and remaining duration of the traffic lights in the target driving direction to remind the driver to drive cautiously, thereby reducing the risk of collision during vehicle operation and enhancing the user's navigation experience.
[0009] In some embodiments, the first driving direction is a permitted passage state, and the target driving direction is a permitted passage state.
[0010] The permitted passage status includes the status corresponding to the traffic light in the direction of travel being yellow or green.
[0011] In this embodiment, both the planned driving direction for the vehicle and the target driving direction with collision risk are in a passable state. Therefore, the probability of collision risk is increased. In this state, a warning is given to reduce the risk of collision during vehicle operation.
[0012] In some embodiments, the first driving direction is in a permitted passage state, the target driving direction is in a prohibited passage state, and the remaining duration of the prohibited passage state is less than or equal to a time threshold.
[0013] Among them, the prohibited passage status includes the status corresponding to the traffic light being red in the direction of travel.
[0014] In this embodiment, although the target driving direction that has a collision risk with the first driving direction is in a prohibited state, the remaining duration of the prohibited state is less than or equal to the time threshold. In other words, a vehicle will soon enter the target driving direction. In this state, a prompt message is used to remind the driver to drive carefully, thereby reducing the risk of collision during the vehicle's journey.
[0015] In some embodiments, the first driving direction is a prohibited state, and the remaining duration of the prohibited state is less than or equal to a time threshold, and the target driving direction is the direction of the permitted state.
[0016] In this embodiment, although the electronic device plans the vehicle's driving direction as a prohibited state, the remaining duration of the prohibited state is less than or equal to the time threshold. Therefore, it is in a state of about to drive and cross the current first intersection, while the target driving direction is a permitted state. Thus, there is a certain risk of collision. In this state, a prompt message is used to remind the driver to drive cautiously, thereby reducing the risk of collision during the vehicle's journey.
[0017] In some embodiments, the first driving direction is in a prohibited state, and the remaining duration of the prohibited state is less than or equal to a time threshold, and the target driving direction is in a prohibited state, and the remaining duration of the prohibited state is less than or equal to a time threshold.
[0018] In this embodiment, although the electronic device plans a driving direction for the vehicle and a target driving direction that has a collision risk with the first driving direction, both are in a state of prohibited communication. However, the remaining duration of the prohibited passage state in both directions is less than or equal to the time threshold. When vehicles in both directions are driving, there is a certain risk of collision. In this state, a prompt message is used to remind the driver to drive carefully, thereby reducing the risk of collision during vehicle operation.
[0019] In some embodiments, outputting prompt information includes: displaying prompt information on a display interface; and / or playing voice information, which includes the prompt information.
[0020] In this embodiment, the electronic device can visually and audibly alert the driver to potential collisions in the current driving direction, allowing the user to enter a state of cautious driving in advance and reducing the likelihood of accidents at intersections. Furthermore, this alert method enriches the displayed or broadcast content in the navigation system, thereby enhancing the user experience.
[0021] In some embodiments, the road surface associated with the target driving direction is highlighted in the navigation interface with a first color, and the first color has a color difference from the color of the navigation interface.
[0022] By highlighting the road surface associated with the target driving direction in a first color that differs from the navigation interface, the driver can have a stronger perception of conflicting directions, thus achieving a further reminder. For example, this first color can be a specific and highly visible color, such as red.
[0023] In some embodiments, when the remaining duration of the traffic light in the target driving direction is less than or equal to a time threshold, the first color is switched to a second color, the second color having a color difference from the color of the navigation interface, and the second color being different from the first color.
[0024] In this embodiment, the color switching is associated with the remaining duration of the traffic light, thereby enhancing the driver's perception of the direction of the target conflict. For example, when the remaining duration of the traffic light is 3 seconds, the first color is blue; when the remaining duration of the traffic light is 2 seconds, the first color is yellow; and when the remaining duration of the traffic light is 1 second, the first color is red.
[0025] In some embodiments, the method for determining the target driving direction includes: obtaining route fishbone information of a navigation path, wherein the route fishbone information indicates all sets of roads into or out of the navigation path; determining a first set of all conflicting directions of the first driving direction at the first intersection based on the route fishbone information; determining a second set of conflicting directions with collision risk corresponding to the first driving direction based on a mapping table of driving directions and conflicting directions; determining the conflicting directions in the first set that are included in the second set as the second driving direction; sending a first request message to a traffic light server, wherein the first request message instructs the traffic light server to return the status and remaining duration of the traffic lights at the first intersection for the first and second driving directions, the first request message including the location information of the first intersection and the direction information of the first and second driving directions; and determining the target driving direction from the second driving direction based on the status and remaining duration of the traffic lights for the first and second driving directions.
[0026] The method provided in this application embodiment allows the electronic device to determine the target driving direction by combining the acquisition of the conflict direction at the first intersection with the real-time traffic light status. On the one hand, it can more accurately determine the target driving direction that has a collision risk with the driving direction planned by the electronic device. On the other hand, compared with the traditional method of obtaining the conflict direction through sensors, it can reduce the implementation cost.
[0027] In a second aspect, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method shown in the first aspect.
[0028] Thirdly, a computer-readable storage medium is provided that stores a computer program, which, when executed by a processor, implements the method shown in the first aspect.
[0029] Fourthly, a chip is provided, the chip including a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the method shown in the first aspect.
[0030] It is understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0031] Figure 1 This is a schematic diagram of a navigation system provided in an embodiment of this application;
[0032] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0033] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of this application;
[0034] Figure 4A This application provides a schematic diagram of a display style for full road network information.
[0035] Figure 4B This is a schematic diagram illustrating another display style of full road network information provided in an embodiment of this application;
[0036] Figure 5 This application provides a schematic diagram of a road topology.
[0037] Figure 6A This is a schematic diagram illustrating the display style of the route fishbone information provided in the embodiments of this application;
[0038] Figure 6B A schematic diagram illustrating the display style of the entry route fishbone and exit route fishbone provided in the embodiments of this application;
[0039] Figure 6C Provided for the embodiments of this application Figure 4B A schematic diagram of the road topology at intersection 2;
[0040] Figure 7 A schematic diagram of a crossroads scene provided for an embodiment of this application;
[0041] Figure 8 A schematic flowchart illustrating a collision risk warning method provided in an embodiment of this application;
[0042] Figure 9 An interactive flowchart illustrating the process by which an electronic device, according to an embodiment of this application, determines a second driving direction;
[0043] Figure 10 An interactive flowchart illustrating the process by which an electronic device, according to an embodiment of this application, determines a target driving direction;
[0044] Figure 11 A schematic diagram illustrating the location information of a first intersection provided in an embodiment of this application;
[0045] Figure 12A A schematic diagram of the interface before displaying prompt information in a navigation interface provided in an embodiment of this application;
[0046] Figure 12B This is a schematic diagram of the interface after the navigation interface displays prompt information, according to an embodiment of this application.
[0047] Figure 13 This is a schematic diagram illustrating a scenario of voice broadcast prompts provided in an embodiment of this application;
[0048] Figure 14 This is a schematic diagram of the collision risk warning device provided in the embodiments of this application;
[0049] Figure 15 This is a schematic diagram of the chip structure provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions provided in the embodiments of this application will be described below with reference to the accompanying drawings.
[0051] It should be understood that in the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
[0052] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0053] With social development and the improvement of people's living standards, cars have become an important means of transportation, leading to an increase in both the number of cars and the frequency of travel. Along with the widespread use of vehicles, people's living radius has expanded, urban road conditions have become increasingly complex, and the probability of road traffic accidents has consequently increased.
[0054] Many intersections are now equipped with traffic lights to control the alternating passage of vehicles. Vehicles follow traffic rules and the information provided by the traffic lights to reduce the risk of collisions. Specifically, traffic lights control the permitted and prohibited times for each direction of travel at the intersection, guiding vehicles through the intersection sequentially via a countdown timer. However, when the road conditions at an intersection are complex, such as a busy crossroads where vehicles from different directions are converging, it's possible that vehicles from two directions controlled by the traffic lights may both be permitted to pass, and their travel paths may intersect. In such cases, a collision risk may arise, leading to a traffic accident. The permitted passage state can also be referred to as the authorized passage state or the allowed passage state.
[0055] Currently, with the continuous development of computer technology and the widespread adoption of navigation functions, people are increasingly reliant on navigation during travel. Therefore, using navigation for route planning and navigation while traveling in a vehicle has become very common. On one hand, users can use the in-vehicle navigation system on the vehicle's display screen to achieve navigation. On the other hand, when a vehicle's intelligence is weak, such as lacking an in-vehicle navigation function, or having an in-vehicle navigation function but the user experience of the in-vehicle application is worse than that of a mobile phone application (e.g., slower map updates, less accurate map navigation on the in-vehicle system compared to mobile phone applications), users will generally rely on navigation applications on mobile phones, tablets, or other electronic devices to perform navigation. Navigation functions provided by in-vehicle terminals or electronic devices offer convenient navigation services during travel, while also allowing users to monitor the vehicle's current location and road traffic conditions in real time, resulting in a better user experience.
[0056] However, while navigation functions in in-vehicle terminals or electronic devices can provide convenience for people's travel, the functionality offered by these applications is still insufficient due to the increasing complexity of urban road conditions. For example, current navigation functions can only indicate whether the road is passable or impassable in the current direction of travel, but cannot determine the passability in other directions, especially those with a collision risk with the vehicle's current direction of travel. Therefore, they cannot effectively assist drivers in accurately judging whether the current driving conditions are safe, thus reducing the user experience of navigation functions.
[0057] Therefore, how to predict the risk of vehicle collisions during vehicle operation and remind drivers to drive safely during navigation is a technical problem that urgently needs to be solved.
[0058] Therefore, this application provides a collision risk warning method, which is applied to an electronic device equipped with a navigation application. During navigation, the electronic device can output warning information indicating the direction of a target vehicle that poses a collision risk with the current driving direction, reminding the driver to drive cautiously, thereby reducing the risk of collisions during driving and enhancing the user experience of the navigation application.
[0059] To facilitate understanding of the embodiments of this application, let's first take... Figures 1 to 3 The navigation system shown in the figure is used as an example to illustrate the system to which the method provided in this embodiment is applicable.
[0060] Figure 1 This is a schematic diagram of a navigation system provided in an embodiment of this application. Figure 1As shown, the system 100 includes a vehicle 101, an electronic device 102, one or more application cloud service platforms (referred to as application servers) 103 and a traffic signal server 104. The electronic device 102 is installed on the vehicle 101, for example, the electronic device 102 is installed (or fixed) on the vehicle 101 by a bracket.
[0061] In some embodiments, vehicle 101 is communicatively connected to electronic device 102. Vehicle 101 can send information to or receive information from electronic device 102. For example, if vehicle 101 and electronic device 102 are connected via Bluetooth, voice, music, and other data from electronic device 102 can be transmitted to vehicle 101 via Bluetooth and played through vehicle 101's speaker; or electronic device 102 can project its application interface (such as a navigation interface, video interface, etc.) displayed on its screen onto vehicle's screen.
[0062] In this embodiment of the application, the electronic device 102 can install one or more applications (APPs), and each application can correspond to an application cloud service platform. For example... Figure 1 As shown, electronic device 102 can receive information from application cloud service platform 103, and can also transfer the acquired information to application cloud service platform 103.
[0063] Upon receiving a request message from electronic device 102 instructing it to return the status information of traffic lights at the corresponding intersection, traffic light server 104 returns real-time traffic light status for multiple intersections and directions to the electronic device based on the request message. The status information includes the status and remaining duration of the traffic lights.
[0064] The application cloud service platform 103 involved in the embodiments of this application can be a cloud service center, cloud server, cloud-side computing device, or cloud-side storage device, etc. In some embodiments, Figure 1 The application cloud service platform 103 in the middle can also be replaced by a server, such as a load balancing server group consisting of multiple computers.
[0065] Vehicle 101 can be a gasoline-powered vehicle, a natural gas-powered vehicle, or a new energy vehicle. New energy vehicles can be pure electric vehicles, hybrid electric vehicles, or range-extended electric vehicles, etc. As an example and not a limitation, vehicle 101 can be a sedan, truck, motorcycle, bus, recreational vehicle, amusement park vehicle, construction equipment, tram, golf cart, train, etc., and this application embodiment does not impose any particular limitation on this.
[0066] Electronic device 102 can be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), and other electronic devices with display and / or voice broadcast functions. This application embodiment does not limit the specific type of electronic device 102.
[0067] For example, Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application is shown. Figure 2 The electronic device 102 shown can be Figure 1 A specific example of the electronic device 102 shown. See also Figure 2 As shown, the electronic device 102 includes a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.
[0068] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 102. In other embodiments of this application, the electronic device 102 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0069] Processor 210 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of electronic device 102. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0070] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0071] The charging management module 240 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 receives charging input from the wired charger via a USB interface 230. In some wireless charging embodiments, the charging management module 240 receives wireless charging input via the wireless charging coil of the electronic device 102. While charging the battery 242, the charging management module 240 can also supply power to the electronic device 102 via the power management module 241.
[0072] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, providing power to the processor 210, internal memory 221, external memory, display 294, camera 293, and wireless communication module 260, etc. The power management module 241 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance).
[0073] The wireless communication function of electronic device 102 can be realized through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor, etc.
[0074] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 102 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0075] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 102. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0076] In some embodiments, at least some functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be disposed in the same device.
[0077] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio playback device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.
[0078] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 102, including wireless local area networks (WLAN) (e.g., Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0079] Camera 293 is used to capture still images or videos. In some embodiments, electronic device 102 may include one or N cameras 293, where N is a positive integer greater than 1.
[0080] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0081] In some embodiments, the electronic device 102 may include one or N displays 294, where N is a positive integer greater than 1.
[0082] The external storage interface 220 can be used to connect an external memory card, such as a microsecure digital memory card (Micro SD card), to expand the storage capacity of the electronic device 102. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be stored on the external memory card.
[0083] Internal memory 221 can be used to store executable program code, including instructions. Processor 210 executes various functional applications and data processing of electronic device 102 by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function (such as sound playback, image playback, etc.). The data storage area may store data created during the use of electronic device 102 (such as audio data, phonebook, etc.).
[0084] In addition, the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0085] Electronic device 102 can implement audio functions through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor.
[0086] The audio module 270 is used to convert digital audio signals into analog audio signals for output, and also to convert analog audio inputs into digital audio signals. The audio module 270 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be located in the processor 210, or some functional modules of the audio module 270 may be located in the processor 210.
[0087] The speaker 270A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 102 can listen to music or hands-free calls through the speaker 270A. For example, the speaker can play the comparison analysis results provided in the embodiments of this application.
[0088] The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 102 receives a telephone call or voice message, the receiver 270B can be brought close to the ear to receive the voice message.
[0089] Microphone 270C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 270C, inputting the sound signal into microphone 270C. Electronic device 102 may have at least one microphone 270C. In some embodiments, electronic device 102 may have two microphones 270C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 102 may also have three, four, or more microphones 270C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0090] In some embodiments, the electronic device 102 can receive ultrasonic signals sent by other electronic devices via the microphone 270C, and the processor 210 can identify the frequency and received intensity of the ultrasonic signals.
[0091] The headphone jack 270D is used to connect wired headphones. The headphone jack 270D can be a USB 230 interface or a 2.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0092] The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0093] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. Electronic device 102 can receive button input and generate key signal inputs related to user settings and function control of electronic device 102.
[0094] Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 291 can also provide different vibration feedback effects for touch operations applied to different areas of the display screen 294.
[0095] Indicator 292 can be an indicator light, which can be used to indicate the charging status and power changes of electronic device 102, or to indicate messages, missed calls, notifications, etc.
[0096] The SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to make contact with and detach from the electronic device 102. The electronic device 102 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types.
[0097] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 102. In other embodiments of this application, the electronic device 102 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0098] The above provides schematic diagrams illustrating possible hardware structures of electronic devices. The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture system as an example to exemplify the software structure of an electronic device. However, it is understood that the software system of the electronic device in this application embodiment can also be other systems, such as HarmonyOS. system, Systems, etc., will not be described in detail here.
[0099] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of this application is shown. Figure 3 As shown, the layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system runtime library layer, and the kernel layer.
[0100] The application layer can include a series of application packages. For example... Figure 3 As shown, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and voice assistant. The applications primarily concern the user interface (UI), and are typically written using the Java language to call the application framework layer's interfaces.
[0101] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 3 As shown, the application framework layer may include a window manager, content provider, phone manager, resource manager, notification manager, view system, etc.
[0102] The window manager manages all windows in the system, primarily responsible for starting, adding, and deleting windows; managing window size, borders, and hierarchy; managing input method windows; and displaying animations when switching windows and managing window display when switching users. The window manager also acts as a relay station for input events, updating information from all windows to the input dispatcher, enabling the dispatcher to dispatch user-generated input events to the appropriate window. The window manager can also obtain screen size, determine the presence of a status bar, lock the screen, and capture screenshots.
[0103] The windows involved in the embodiments of this application include split-screen windows, full-screen windows, and floating windows.
[0104] A floating window, also known as a floating window, is a small window that floats above the application interface. For example, it could be a window of application B floating above application A's interface, or a notification window within application A floating above application A's interface. A floating window will obscure the application area displayed at the bottom. Furthermore, the content of the floating window and the content of the bottom interface can be refreshed and interacted with separately. The system can control the displayed area and position of the floating window, and whether the user can move its position.
[0105] Window splitting divides the display area of a screen into multiple window regions. Different window regions can display the interface content of different applications and can be refreshed and interacted with independently. Each window region can be called a split-screen window. Split-screen windows will not obscure or overlap each other, and the system can control the window size changes; if one window region increases in size, other window regions will automatically shrink.
[0106] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0107] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).
[0108] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0109] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating the device, and flashing indicator lights.
[0110] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0111] The system runtime library layer is a collection of libraries located below the application framework layer. It can be divided into two parts: system libraries and application runtime (e.g., Android runtime).
[0112] The application runtime consists of the core libraries and the virtual machine. The application runtime is responsible for the scheduling and management of the software system. The core libraries comprise two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the software system.
[0113] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0114] System libraries support the application framework and can include multiple functional modules, such as: surface manager, media libraries, 2D graphics engine (e.g., SGL), 3D graphics processing library (e.g., OpenGL ES), image processing library, etc.
[0115] The Interface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0116] The media library supports playback and recording of various commonly used audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as Moving Pictures Experts Group (MPEG) 4, H.264, MPEG Audio Layer 3, MP3, Advanced Audio Coding (AAC), and Adaptive Multi-Rate (AMR).
[0117] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0118] A 2D graphics engine is a graphics engine for 2D drawing.
[0119] The kernel layer is the layer between hardware and software, providing essential operating system functions such as file management, memory management, process management, and network protocol stacks. The kernel layer includes at least display drivers, camera drivers, audio drivers, sensor drivers, and Bluetooth drivers.
[0120] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 2 and Figure 3 The electronic device with the structure shown, and Figure 1 Taking the navigation system shown as an example, and in conjunction with the accompanying drawings and application scenarios, the collision risk warning method provided in this application embodiment will be specifically described.
[0121] To better understand the embodiments of this application, some terms and related technologies used in the embodiments of this application will be described below.
[0122] Full road network information refers to the set of all roads near the current location of the electronic device or the determined travel path of the vehicle. For example, Figure 4A This shows one display style of full road network information, such as Figure 4A As shown, the full road network information includes the set of all roads near the current location A, such as... Figure 4A As shown by the dashed line in the image. Figure 4B This shows another display style for full road network information, such as... Figure 4B As shown, the full road network information includes the set of all roads near the planned driving route, such as... Figure 4B As shown by the dashed line in the image.
[0123] Road topology refers to the relationships between two connected and reachable roads, i.e., the upstream and downstream relationships between roads. Based on road topology, a feasible path from the starting point to the destination can be planned. For example, Figure 5 A schematic diagram of road topology, such as Figure 5 As shown, the road topology relationship illustrates the relationship between five roads (Link) 1, Link 2, Link 3, Link 4 and Link 5. Among them, Link 1 has a topological relationship with Link 2 and Link 3, Link 2 has a topological relationship with Link 4, and Link 3 has a topological relationship with Link 5.
[0124] Route fishbone information: This includes the set of all roads that can enter or exit the current route, which can be obtained from the road topology relationships in the full road network information. For example, Figure 6A This shows the display style of the route fishbone information, such as Figure 6A As shown, the solid line represents the planned driving path of the vehicle, and the dashed line represents the route fishbone information of that driving path.
[0125] The route frigate information can be further subdivided into entry route frigates and exit route frigates. Entry route frigates include the set of roads within the route frigate information that allow entry into the current route; exit route frigates include the set of roads within the route frigate information that allow exit from the current route. It should be noted that the roads involved in this embodiment have direction. For example, on an actual road with two driving directions, such as south to north and north to south, there are two route frigates for that road. That is, in this embodiment, entry and exit route frigates are relative to the driving direction along the vehicle's path. Therefore, for a given driving path, the entry and exit route frigates are determined. See also... Figure 6B The diagram shows a partial route fishbone from the starting position to the target position. The route fishbone information indicated by the solid arrow is the entry route fishbone, and the route fishbone information indicated by the dashed arrow is the exit route fishbone.
[0126] An intersection is a place where two or more roads meet, and each intersection has at least two directions of travel. Examples include T-junctions and crossroads. Figure 4B Taking the full road network information map shown as an example, the travel route includes a total of five intersections, namely... Figure 4B The intersections shown are 1, 2, 3, 4, and 5.
[0127] Conflicting direction: At an intersection, when a first driving direction and a second driving direction intersect at the intersection, the second driving direction is the conflicting direction with the first driving direction at that intersection. For example, Figure 6C It shows Figure 4B The road topology at intersection 2, such as Figure 6CAs shown, Link1 to Link2 form the first driving direction at intersection 2, and Link3 to Link4 form the second driving direction at intersection 2. Link3 to Link4 and Link1 to Link2 intersect at intersection 2. Therefore, the second driving direction corresponding to Link3 to Link4 is the conflicting direction of the first driving direction corresponding to Link1 to Link2 at intersection 2.
[0128] It should be noted that at an intersection, for a given direction of travel, there may be one or more conflicting directions, especially at intersections with multiple directions of travel, such as crossroads. For example, combining... Figure 6C As shown, the continuous road sequence through intersection 2 is Link1 to Link2. The entry route fishbone at intersection 2 is Link3 and Link6, and the exit route fishbone is Link4 and Link5. According to the road topology, the travel route through intersection 2 can have 7 route combinations: (1) Link1 to Link2; (2) Link1 to Link4; (3) Link3 to Link4; (4) Link3 to Link2; (5) Link1 to Link5; (6) Link6 to Link5; (7) Link6 to Link2. In addition to the current travel route Link1 to Link2, 6 conflicting directions of the travel route Link1 to Link2 can be obtained through the route fishbone information: Link1 to Link4; Link3 to Link4; Link3 to Link2; Link1 to Link5; Link6 to Link5 and Link6 to Link2.
[0129] In this embodiment, the set of all possible conflicting directions in the first driving direction is called the first set. For example... Figure 6C As shown, the set of all possible conflicting directions corresponding to the first driving direction of the driving path Link1 to Link2 includes the driving directions corresponding to Link1 to Link4, Link3 to Link4 and Link3 to Link2, Link1 to Link5, Link6 to Link5 and Link6 to Link2 respectively.
[0130] It is understandable that at a certain intersection in the driving path, there may be roads with both entry and exit routes. Therefore, for such an intersection, the road corresponding to the entry route fishbone can be paired with the road corresponding to the exit route fishbone, as well as the roads entering and leaving the intersection on the current driving path, to form road pairs passing through the intersection. Each road pair constitutes a driving direction at the intersection. By combining road pairs, the set of all possible conflicting directions corresponding to a certain driving direction can be obtained.
[0131] It should be noted that among all possible conflict directions corresponding to a certain driving direction, some directions may pose a collision risk with the driving direction, while others may not pose a collision risk. Electronic devices can further determine the conflict directions that pose a collision risk with the driving direction based on the mapping table of conflict directions.
[0132] Conflict Direction Mapping Table: Also known simply as a mapping table, this table shows the correspondence between a driving direction and all potential conflict directions along that driving direction. Potential conflict directions refer to the set of all possible conflict directions that pose a collision risk to the driving direction. For example, see [link to example]. Figure 7 As shown, in Figure 7 At the intersection shown (where east-west and north-south roads converge), vehicles traveling from west to east (direction 1 indicated by the dotted arrow in the diagram) will encounter a conflict if vehicles traveling from east to south (direction 2 indicated by the dotted arrow in the diagram) are also passing through. Without considering right turns (since right turns are usually permitted, traffic light status can be disregarded during passage), there are actually eight different travel directions when passing through this intersection: straight ahead (east to west, west to east, south to north, north to south), and left turns (north to east, south to west, east to south, west to north). Considering the combinations between the west-to-east direction and each of these travel directions, the mapping relationship table for all the alternative conflict directions corresponding to the west-to-east travel direction when passing through the intersection is shown in Table 1 below.
[0133] Table 1
[0134]
[0135] It is understandable that at a certain intersection, different driving directions have their own corresponding alternative conflict directions. In practical applications, the correspondence in the above mapping table can be enriched by combining the specific driving directions. This embodiment will not list them one by one.
[0136] The collision risk warning method provided in the embodiments of this application will be described by way of example below.
[0137] Before introducing the collision risk warning method provided in this embodiment, the application scenario of the method will be briefly described first. The collision risk warning method provided in this application embodiment is applied to an electronic device, which can be a mobile terminal device such as a mobile phone or tablet, or a vehicle or vehicle central control device, and the electronic device has a navigation application installed. The electronic device can provide navigation services for the vehicle through the navigation application. In the process of the electronic device providing navigation services for the vehicle, the navigation route provided or planned by the electronic device for the vehicle passes through the first intersection where traffic lights are installed, and the planned driving direction at the first intersection is the first driving direction.
[0138] The navigation route includes the driving path from the starting point to the destination determined by the electronic device through a navigation application. The navigation route may consist of one or more road segments. While the electronic device provides navigation services to the vehicle through the navigation application, the navigation route can be switched at any time based on the vehicle's current location. Once the navigation route is determined, the electronic device can control the display of the navigation interface on the screen to guide the driver from the starting point to the destination, either by running the navigation application in the foreground or by controlling the electronic device to provide navigation services to the vehicle via voice prompts, allowing the driver to reach the destination based on the voice guidance. It is understandable that even when the navigation application is running in the foreground, the electronic device can also perform navigation functions by displaying a navigation interface and providing voice prompts.
[0139] In some embodiments, when the navigation application is running in the background, a navigation icon is displayed on the display interface of the electronic device to indicate that it is currently in a navigation state. For example, the electronic device controls the display of a blue oval icon in the upper left corner of the display interface. The blue oval icon is located at the bottom layer of the content displayed in the upper left corner of the display interface and does not cover the content displayed in the upper left corner.
[0140] Optionally, the navigation icon can also be a navigation card. When the navigation application is running in the background, this navigation card remains resident on various display interfaces of the electronic device. The navigation card can display the user's driving direction, speed, distance to the next intersection, road name, etc., thus providing visual navigation services to the user even when the navigation application is running in the background, without affecting the user's use of other applications. In other words, when the electronic device is running in the background, it performs navigation functions by displaying a navigation icon and providing voice prompts, thereby guiding the user from their current location to their destination.
[0141] As described in the preceding embodiments, the electronic device provides or plans a navigation route for the vehicle through a first intersection equipped with traffic lights, and the planned driving direction at the first intersection is a first driving direction. This first intersection can be the intersection closest to the vehicle's current location as the vehicle travels along the navigation route, i.e., the intersection the vehicle will pass through ahead of it. This first intersection can be any intersection along the navigation route that includes traffic lights.
[0142] In some embodiments, when a navigation application runs in the foreground of an electronic device, its navigation interface can display road information, building information, the user's driving path, direction, speed, and so on, around the user's real-time location. For example, the navigation interface can be the display interface of the electronic device when the user uses it for navigation, such as the interface displayed when a navigation application on a mobile phone performs its navigation function; the navigation interface can also be the interface displayed when the electronic device is projected onto the vehicle's main control device; or the navigation interface can be the navigation interface of a navigation application installed in the vehicle's central control device.
[0143] Figure 8 A schematic flowchart illustrating a collision risk warning method provided in an embodiment of this application is shown below. Figure 8 As shown, the method includes the following steps S801 to S802.
[0144] S801, electronic equipment determines the distance between the vehicle and the first intersection.
[0145] In some embodiments, the electronic device can detect the distance between its current location and the lane stop line at the first intersection, and use this distance as the distance between the vehicle and the first intersection. Specifically, while the vehicle is in motion, the electronic device can capture images or videos of its front using a camera. Then, it can use algorithms such as object detection to detect whether a lane stop line is present ahead. If a lane stop line is detected, the distance between the current location and the lane stop line can be calculated. The electronic device can also detect traffic lights, pedestrian crossings, etc., and determine the distance between the current location and the traffic lights or pedestrian crossing at the first intersection as the distance between the vehicle and the first intersection.
[0146] In other embodiments, the electronic device can also obtain its own location through a positioning system, and then determine the distance between the vehicle and the first intersection based on its own location and a high-precision map. Specifically, the electronic device can obtain its current location through a positioning system such as GPS, and then the vehicle can use this location to determine its specific location on a high-precision map. Furthermore, it can combine this location with external environmental information collected by a camera to further refine its location. Finally, the vehicle can use the high-precision map to determine the distance between the vehicle and the first intersection.
[0147] S802, if the electronic device outputs a warning message if there is a target driving direction at the first intersection that poses a collision risk with the first driving direction when the distance is less than the distance threshold, the warning message includes the status and remaining time of the traffic light in the target driving direction.
[0148] The distance threshold can be any value between 0 and 30 meters. When the electronic device determines that the distance between the vehicle and the first intersection is less than the distance threshold, it determines that the vehicle is about to arrive at the first intersection. At this time, the electronic device needs to determine whether the target travel direction exists at the first intersection in the first travel direction. Optionally, the distance threshold for each intersection can be the same or different. The specific distance threshold can be set according to the actual situation, and this embodiment does not impose any restrictions on this.
[0149] Optionally, the electronic device can detect the distance between the vehicle and the first intersection in real time or periodically (e.g., every 0.5 seconds or 1 second) to determine the target driving direction in advance. This allows the device to detect its approach to the intersection beforehand, ensuring that the target driving direction is determined before reaching the intersection and providing a basis for outputting subsequent prompts. Alternatively, the electronic device can first determine the target driving direction in the first direction at the first intersection, and then output prompts after determining the distance between the vehicle and the first intersection.
[0150] In this embodiment, the target driving direction refers to the conflicting direction that poses a collision risk with the first driving direction. It is understood that at a given intersection, there may be multiple conflicting directions with the first driving direction, and these multiple conflicting directions do not necessarily all pose a collision risk with the first driving direction. Therefore, the electronic device can make a judgment based on the specific circumstances. It should be understood that there can be one or more conflicting directions posing a collision risk with the first driving direction. This embodiment will provide two methods for determining the target driving direction, which will be described below.
[0151] The first method for an electronic device to determine a target driving direction includes: the electronic device acquiring the route fishbone information of the navigation path; based on the route fishbone information, determining the set of all conflicting directions for the first driving direction at the first intersection; and based on a mapping table between driving directions and conflicting directions, determining the second driving direction that has a collision risk with the first driving direction from the set of all conflicting directions. Then, the electronic device sends a first request message to a traffic light server, instructing the traffic light server to return to the status and remaining duration of the traffic lights for the first and second driving directions at the first intersection. This first request message includes the location information of the first intersection and the direction information for the first and second driving directions. Finally, based on the status and remaining duration of the traffic lights for the first and second driving directions, the electronic device determines the target driving direction from the second driving direction.
[0152] The process of the electronic device determining the second driving direction can be determined by the electronic device after obtaining the route fishbone information of the navigation path; the target driving direction can be determined by the electronic device sending a first request message to the traffic signal server when it determines that the distance between the vehicle and the first intersection is less than a distance threshold, and then determining it based on the information returned by the traffic signal server.
[0153] In this embodiment, when the electronic device outputs a prompt after determining the target driving direction, it directly outputs the status and remaining duration of the traffic light in the determined target driving direction.
[0154] The second method for electronic devices to determine the target driving direction includes: the electronic device acquiring route fishbone information of the navigation path, which indicates the set of all roads that can be entered or exited from the navigation path; based on the route fishbone information, determining a first set of all conflicting directions at the first intersection for the first driving direction; then, based on a mapping table between driving directions and conflicting directions, determining a second set of conflicting directions with collision risk corresponding to the first driving direction; and finally, determining the conflicting directions in the first set that are included in the second set as the target driving direction. The process of the electronic device determining the target driving direction can be done after the electronic device has acquired the route fishbone information of the navigation path.
[0155] In this embodiment, after determining the target driving direction, when the electronic device outputs a prompt message, it first sends a second request message to the traffic light server. This second request message instructs the traffic light server to return to the first intersection and check the status and remaining duration of the traffic lights in the first driving direction and the target driving direction. The second request message includes the location information of the first intersection and the direction information of the first and target driving directions. Then, the electronic device outputs the prompt message based on the status and remaining duration of the traffic lights in the first and target driving directions.
[0156] In one implementation, the electronic device outputs a prompt message based on the status and remaining duration of traffic lights in the first and target travel directions. This includes determining the traffic conditions in the first and target travel directions based on the status and remaining duration of the traffic lights. It should be understood that in this embodiment, a red traffic light in the first travel direction indicates a prohibited travel state; a yellow or green traffic light in the first travel direction indicates a permitted travel state. If the electronic device determines that both the first and target travel directions are permitted to travel, it outputs the prompt message. For example, if both the first and target travel directions have a green light.
[0157] Optionally, if the electronic device determines that the first direction of travel is permitted to proceed, the target direction of travel is prohibited from proceeding, and the remaining duration of the prohibited state is less than or equal to a time threshold, then it outputs a prompt message. The time threshold can be any value between 0 and 3 seconds. For example, if the first direction of travel has a green light and the target direction has a red light, but the remaining duration of the red light is short, such as 3 seconds, then a prompt message is output.
[0158] Optionally, if the electronic device determines that the first direction of travel is in a prohibited state, and the remaining duration of the prohibited state is less than a time threshold, and the target direction of travel is also in a permitted state, then it outputs a prompt message. For example, if the first direction of travel has a red light, but the remaining duration of the red light is short, such as 2 seconds, and the target direction of travel has a green light, then a prompt message is output.
[0159] Optionally, if the electronic device determines that the first direction of travel is in a prohibited state, and the remaining duration of the prohibited state is less than or equal to a time threshold, and the target direction of travel is also in a prohibited state, and the remaining duration of the prohibited state is less than or equal to the time threshold, then it outputs a prompt message. For example, if the first direction of travel has a red light, but the remaining duration of the red light is short, say 2 seconds, and the target direction of travel also has a red light, but the remaining duration of the red light is short, say 1 second, then a prompt message is output.
[0160] Optionally, if the target driving direction is a prohibited traffic situation and the remaining duration of the prohibited traffic situation is greater than a time threshold, the electronic device will not output a prompt message. For example, if the target driving direction is a red light, but the remaining red light duration is long, such as 12 seconds, then no prompt message will be output.
[0161] In some embodiments, outputting prompt information includes displaying prompt information on the navigation interface of a navigation application. For example, displaying pop-ups, floating windows, prompt boxes, or bubbles on the navigation interface, wherein the pop-ups, floating windows, prompt boxes, or bubbles include the text content of the prompt information.
[0162] In other embodiments, the output prompt information includes broadcast voice information, which includes the specific content of the prompt information.
[0163] In some other embodiments, outputting prompts includes displaying prompts in the form of pop-ups or bubbles on the navigation interface of a navigation application and broadcasting the specific content of the prompts via voice.
[0164] Optionally, the prompt information may include, but is not limited to, the status and remaining duration of the traffic lights in the target direction of travel, and may also include the status and remaining duration of the traffic lights in the current direction of travel, i.e., the first direction of travel.
[0165] The collision risk warning method provided in this embodiment enables electronic devices to predict the risk of vehicle collisions while controlling a navigation application to provide navigation services to the vehicle. It outputs warning information about target driving directions with a collision risk to the first driving direction, thereby reminding the driver of a potential collision at an upcoming intersection and urging them to drive cautiously. This reduces the risk of collisions during driving and enhances the user experience of the navigation application. Compared to traditional technologies that rely on costly drones or pre-installed communication sensors in vehicles to detect collision risks, this method is cost-effective, has a simple execution process, and can be applied to most traffic scenarios.
[0166] The collision risk warning method provided in this embodiment will be illustrated below with specific examples, taking the method of determining the target driving direction by the first electronic device as an example. The method is divided into three parts: (i) determining the second driving direction, (ii) determining the target driving direction, and (iii) outputting warning information. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0167] (a) Determining the second driving direction
[0168] Electronic devices can determine the second driving direction at the first intersection based on the route fishbone information of the navigation path and the conflict direction mapping table.
[0169] Figure 9 The flowchart illustrates the process by which an electronic device determines a second driving direction according to an embodiment of this application. The execution entities involved include the electronic device and an application server. See also... Figure 9 As shown, the method includes the following steps S901 to S909.
[0170] S901, the electronic equipment acquires the starting position and target position of the vehicle's operation.
[0171] In this embodiment, the vehicle's starting position can be the current position located by the electronic device using its built-in GPS sensor, or it can be another position determined by user input. The target position is the position determined by the electronic device based on user input.
[0172] User input can be either text input or voice input.
[0173] S902, the electronic device sends a route planning request to the application server. The route planning request includes location information of the starting position and the target position, and is used to request the application server to generate and return the route planning result based on the location information.
[0174] S903, the application server generates and returns route planning results to the electronic device based on the route planning request.
[0175] After receiving a route planning request, the application server determines the full road network information within the range from the starting position to the target position based on the location information of the starting position and the target position in the route planning request. Then, it generates a route planning result including at least one alternative path based on the full road network information and sends the route planning result including the at least one alternative path to the electronic device.
[0176] S904, after receiving the route planning results returned by the application server, the electronic device displays at least one alternative path from the route planning results.
[0177] In some embodiments, after receiving the route planning results returned by the application server, the electronic device displays the at least one alternative route in the map display interface of the navigation application.
[0178] S905, after determining a navigation path from at least one alternative path, the electronic device sends a navigation request for the navigation path to the application server.
[0179] In some embodiments, the electronic device determines a navigation path from at least one alternative path based on user input. For example, when a user clicks on the location of the shortest path among at least one alternative path displayed by the electronic device, the electronic device determines the shortest path as the navigation path in response to the click operation.
[0180] In other embodiments, the electronic device defaults to selecting the route with the shortest travel time or the best road conditions as the navigation route.
[0181] When there is only one alternative route, the electronic device will determine the current alternative route as the navigation route.
[0182] When an electronic device responds to a user clicking the "Start Navigation" option from the navigation interface, it sends a navigation request for a navigation path to the application server. This navigation request carries identification information for the navigation path, instructing the application server to return route information and route fishbone information. The route information indicates the roads the vehicle must traverse when following the navigation path, and the route fishbone information includes the set of roads at the branching points of the navigation path.
[0183] After receiving a navigation request for a navigation path, the application server obtains the route information of the navigation path and retrieves the route fishbone information of the navigation path based on the road topology relationship around the navigation path.
[0184] S906, the application server sends navigation path information and route herringbone information to the electronic device.
[0185] After receiving a navigation request for a navigation path, the application server retrieves full road network information near the navigation path and then determines the route information and route fishbone information of the navigation path based on the road topology relationship between roads in the full road network information.
[0186] In some embodiments, route information includes information about one or more road segments corresponding to the navigation path, as well as planned travel time information for the vehicle on one or more road segments. Route fishbone information includes information on all roads into or out of the navigation path, including information on entering and exiting the route fishbone.
[0187] S907, the electronic device determines the first set of all conflicting directions of the first driving direction at the first intersection based on the route information and route herringbone information of the navigation path.
[0188] For example, with Figure 4B The path shown is a navigation path, which includes intersections 1, 2, 3, 4, and 5. Combined with... Figure 6C As shown, taking intersection 2 as the first intersection, when the electronic device determines the set of all conflicting directions for the first driving direction at intersection 2, it first determines the first driving direction at intersection 2 as west to east (Link1 to Link2) based on the route information of the navigation path. Based on the first driving direction and the route fishbone information of the navigation path, it determines the entry route fishbone at intersection 2 as Link3 and the exit route fishbone as Link4. The electronic device then combines the roads Link1 and Link2 of the first driving direction, as well as the entry route fishbones Link3 and Link6, and the exit route fishbones Link4 and Link5, in pairs to generate road pairs for intersection 2: Link1 to Link2, Link1 to Link4, Link3 to Link4, Link3 to Link2, Link1 to Link5; Link6 to Link5 and Link6 to Link2. Therefore, the first set of all conflicting directions on Link1 to Link2 in the first direction of travel (west to east) includes: Link1 to Link4 in the west to south, Link3 to Link4 in the north to south, Link3 to Link2 in the north to east, Link1 to Link5 in the west to north, Link6 to Link5 in the south to north, and Link6 to Link2 in the south to east. Similarly, the determination process for all conflicting directions in the first direction of travel at other intersections can be found in the initial conflicting direction determination process for intersection 2.
[0189] In this step, the electronic device has determined the first set of all conflicting directions of the first driving direction at the first intersection based on the route information and route fishbone information of the navigation path. In the following steps S908 to S909, the electronic device determines the second driving direction with collision risk corresponding to the first driving direction based on the correspondence between the driving direction and the alternative conflicting directions in the conflicting direction mapping table.
[0190] S908, the electronic device determines a second set of conflict directions with collision risk corresponding to the first driving direction based on the mapping table between driving direction and conflict direction.
[0191] For example, as shown in Table 1 of the above embodiments, if the first driving direction is west to east, then the second set of conflict directions with collision risk corresponding to the first driving direction includes: south to north, south to west, north to south, north to east, and east to south.
[0192] S909, the electronic equipment determines the conflicting directions in the first set, which are included in the second set, as the second driving direction.
[0193] For example, taking the path shown in 4B as the navigation path, and taking intersection 2 as the first intersection, the first set of all conflicting directions from west to east (Link1 to Link2) at the first intersection includes: west to south (Link1 to Link4), north to south (Link3 to Link4), north to east (Link3 to Link2), west to north (Link1 to Link5), south to north (Link6 to Link5), and south to east (Link6 to Link2). Combining this with the second set of conflicting directions with collision risk corresponding to the first driving direction shown in Table 1, it can be seen that north to south (Link3 to Link4) and north to east (Link3 to Link2) are included in the second set. The electronic device will then identify north to south (Link3 to Link4) and north to east (Link3 to Link2) as the second driving direction.
[0194] In this embodiment, after obtaining the route information and herringbone information of the navigation path, the electronic device can determine a second set of conflict directions with collision risk corresponding to the first driving direction at all intersections along the navigation path, based on the route information and herringbone information. The electronic device can also determine the second driving direction at an intersection when it determines that the vehicle is about to reach it. The specific method used to determine the second driving direction at an intersection can be set according to actual usage requirements; this embodiment does not impose any restrictions on this.
[0195] It should be understood that during actual driving, vehicles sometimes do not follow the route planned by the navigation. When the electronic device detects that the vehicle deviates from its course, it will replan the driving route for the user. At this time, the electronic device can re-execute the process of determining the second driving direction at each intersection based on the planned route.
[0196] The method for determining the second driving direction provided in this embodiment enables an electronic device to determine the second driving direction at each intersection in the navigation path that corresponds to the first driving direction and has a collision risk, based on the interaction with the application server, the route information and route fishbone information of the navigation path obtained from the application server, and a conflict direction mapping table. Since the route information and route fishbone information of the navigation path returned by the application server to the electronic device are generated based on the full road network information of the navigation path, they possess high accuracy and comprehensive coverage, providing accuracy assurance for the electronic device to determine the second driving direction of the first driving direction. Compared to the traditional process of identifying conflict directions through visual or other methods, the process for determining the second driving direction provided in this application is more accurate and comprehensive.
[0197] (II) Determine the target driving direction
[0198] This embodiment mainly relates to the process by which an electronic device determines a target driving direction from a first driving direction and a second driving direction.
[0199] Figure 10 This is an interactive flowchart illustrating the process of an electronic device determining a target driving direction according to an embodiment of this application. The execution entities involved include the electronic device and a traffic signal server. For example... Figure 10 As shown, the method includes the following steps S1001 to S1003.
[0200] S1001, the electronic device sends a request message to the traffic signal server, which instructs the traffic signal server to return the status information of the traffic signal at the first intersection.
[0201] The status information of traffic lights includes the status of the traffic lights (such as red, yellow or green) and the remaining time.
[0202] In some embodiments, the request message includes the location information of the first intersection and the direction information of the first and second driving directions, which is used to instruct the traffic signal server to return the status and remaining duration of the traffic signals corresponding to the first and second driving directions at the first intersection based on the location information of the first intersection.
[0203] In other embodiments, the request message includes the location information of the first intersection, which instructs the traffic light server to return the status and remaining duration of the traffic lights corresponding to all driving directions at the first intersection based on the location information of the first intersection.
[0204] The location information of the first intersection includes its latitude and longitude. For example, see... Figure 11 As shown, the location information of the first intersection can be represented by the latitude and longitude range (x1, y1)-(x2, y2) that can identify a unique intersection, where |x2-x1| is any value between 30 and 50 meters, and |y2-y1| is any value between 30 and 50 meters. Alternatively, the location information of the first intersection can be a region with a radius of 30 to 50 meters centered at its location (x, y).
[0205] S1002, after receiving the request message, the traffic signal server sends the status information of the traffic signal at the first intersection to the electronic device.
[0206] In some embodiments, when the request message includes the location information of the first intersection and the direction information of the first and second driving directions, the traffic signal server sends the status and remaining duration of the traffic lights corresponding to the first and second driving directions at the first intersection to the electronic device.
[0207] In other embodiments, when the request message includes the location information of the first intersection, the traffic signal server sends the status and remaining duration of the traffic lights corresponding to all driving directions at the first intersection to the electronic device.
[0208] S1003, the electronic equipment determines the target driving direction from the second driving direction based on the status information of the traffic lights at the first intersection.
[0209] Corresponding to the aforementioned step S1002, in some embodiments, after the electronic device receives the status and remaining time of the traffic lights corresponding to the first and second driving directions at the first intersection from the traffic light server, it determines the target driving direction from the second driving direction based on the status and remaining time of the traffic lights corresponding to the first and second driving directions.
[0210] For example, taking the path shown in 4B as the navigation path, with intersection 2 as the first intersection, the second driving directions at the first intersection, from west to east (Link1 to Link2), include north to south (Link3 to Link4) and north to east (Link3 to Link2). When the electronic device sends a request message to the traffic light server, the request message carries the direction information for the first driving direction (west to east) and the second driving directions (north to south and north to east). After receiving the request message, the traffic light server sends the status and remaining duration of the traffic lights in the three directions (west to east, north to south, and north to east) to the electronic device.
[0211] If the electronic device determines that the first travel direction (west-to-east) is green based on the received traffic light status in each direction, and the second travel direction (north-to-south) is also green, then the second travel direction (north-to-south) will be designated as the target travel direction. Simultaneously, if the second travel direction (north-to-east) is also green, then that direction will also be designated as the target travel direction; if the second travel direction (north-to-east) is red, then only the second travel direction (north-to-south) will be designated as the target travel direction.
[0212] In other embodiments, when the electronic device receives the status and remaining duration of traffic lights corresponding to all directions at the first intersection from the traffic light server, it first determines the status and remaining duration of the traffic lights corresponding to the first and second driving directions from the status and remaining duration of the traffic lights corresponding to all directions, and then determines the target driving direction from the second driving direction based on the status and remaining duration of the traffic lights corresponding to the first and second driving directions.
[0213] The process by which electronic devices determine the target driving direction from the second driving direction based on the status and remaining time of the traffic lights corresponding to the first and second driving directions can be categorized into the following situations.
[0214] Scenario 1: When the electronic device determines that the first travel direction is permitted to proceed based on the status and remaining time of the traffic lights in the first travel direction, the target travel direction includes the direction within the second travel direction that is permitted to proceed, as determined by the status and remaining time of the traffic lights in the second travel direction. For example, taking the path shown in 4B as the navigation route, with intersection 2 as the first intersection, the second travel directions at the first intersection, from west to east (Link1 to Link2), include north to south (Link3 to Link4) and north to east (Link3 to Link2). If the electronic device determines that the first travel direction (west to east) is green based on the status and remaining time of the traffic lights in the first travel direction, and determines that the second travel direction (north to south) is green and the second travel direction (north to east) is red based on the status and remaining time of the traffic lights in the second travel direction, then the target travel direction is the north to south direction within the second travel direction.
[0215] Scenario 2: When the electronic device determines that the first travel direction is permitted to proceed based on the status and remaining time of the traffic lights in the first travel direction, the target travel direction includes the direction within the second travel direction that is prohibited from proceeding, as determined by the status and remaining time of the traffic lights in the second travel direction, and where the remaining time of the prohibited state is less than or equal to a time threshold. Referring to the example in Scenario 1, if the electronic device determines that the west-to-east direction is green based on the status and remaining time of the traffic lights in the first travel direction, and determines that the north-to-south direction is red based on the status and remaining time of the traffic lights in the second travel direction, with a remaining red light time of 2 seconds, and the north-to-east direction is red with a remaining red light time of 10 seconds, then the target travel direction is the north-to-south direction within the second travel direction.
[0216] Scenario 3: When the electronic device determines that the first travel direction is prohibited from proceeding based on the status and remaining duration of the traffic light in the first travel direction, and the remaining duration of the prohibited state is less than or equal to a time threshold, the target travel direction includes the direction within the second travel direction that is permitted to proceed, as determined by the status and remaining duration of the traffic light in the second travel direction. Combining the examples in Scenario 1 and Scenario 2, if the electronic device determines that the west-to-east direction is red with a remaining red light of 2 seconds based on the status and remaining duration of the traffic light in the first travel direction, and determines that the north-to-south direction is red and the north-to-east direction is green based on the status and remaining duration of the traffic light in the second travel direction, then the target travel direction is the north-to-east direction within the second travel direction.
[0217] Scenario 4: When the electronic device determines, based on the status and remaining duration of the traffic lights in the first direction of travel, that the first direction of travel is prohibited from proceeding, and the remaining duration of the prohibited state is less than or equal to a time threshold, the target travel direction includes the direction within the second direction of travel that is prohibited from proceeding, as determined by the status and remaining duration of the traffic lights in the second direction, and the remaining duration of the prohibited state is less than or equal to the time threshold. Combining the examples in Scenario 1, Scenario 2, and Scenario 3, if the electronic device determines, based on the status and remaining duration of the traffic lights in the first direction of travel, that the west-to-east direction is red with a remaining red light of 2 seconds, and based on the status and remaining duration of the traffic lights in the second direction of travel, that the north-to-south direction is red with a remaining red light of 2 seconds, and the north-to-east direction is red with a remaining red light of 10 seconds, then the target travel direction is the north-to-south direction within the second direction of travel.
[0218] The target driving direction determination method provided in this embodiment enables an electronic device to obtain the traffic light status of the second driving direction and the first driving direction from a traffic light server with a single request. The traffic light status of the second driving direction and the first driving direction can be used to determine the target driving direction from the second driving direction, and can also be used to display traffic light status information during general navigation. That is, the process of obtaining traffic lights during navigation is completed with a single request.
[0219] (III) Outputting prompt information
[0220] As described in the foregoing embodiments, the electronic device has obtained the status and remaining duration of the traffic lights in the target driving direction during the process of determining the target driving direction. Therefore, the electronic device can output prompt information based on the status and remaining duration of the traffic lights in the target driving direction.
[0221] In some embodiments, when the electronic device determines that the distance between the vehicle and the first intersection is less than a distance threshold, it displays a pop-up window, floating window, prompt box, or bubble on the navigation interface. The pop-up window, floating window, prompt box, or bubble includes the text content of the prompt information. The process by which the electronic device determines the distance between the vehicle and the first intersection can be found in step S801 of the aforementioned embodiments, and will not be repeated here.
[0222] For example, Figure 12A This diagram illustrates the scenario as the vehicle approaches the first intersection. Figure 12AAs shown, at the first intersection, the primary direction of travel for vehicles is west to south. The electronic device, following the process of determining the target direction of travel as illustrated in the aforementioned embodiment, determines that west to east is the primary direction of travel for the target west-to-south direction. At this time, the electronic device displays a pop-up window or bubble on the navigation application's display interface. This pop-up window or bubble includes text information about the status and remaining duration of the traffic lights for the west-to-east direction.
[0223] It should be understood that, generally, when electronic devices use navigation applications to perform navigation functions, they typically use conventional language or general navigation terminology to remind drivers, such as indicating oncoming straight lanes, right lanes, or left turns at the upcoming intersection. For example, when a vehicle is... Figure 7 When traveling in direction 1 (west to east), navigation applications typically use the direction the electronic device screen is facing upwards as the standard for navigation prompts and output navigation prompts. For example, they might say "Go straight at the next intersection," but they usually won't give navigation prompts like "Go west to east at the next intersection."
[0224] Based on this, in some embodiments, when the electronic device displays a prompt message, the displayed message includes "The westbound lane is currently under a green light for 5 seconds. Please be aware of the risk of collision." In other embodiments, when the electronic device displays a prompt message, see [reference needed]. Figure 12B As shown, the electronic device displays a message including "The oncoming straight lane is currently under a green light for 5 seconds. Please be aware of the risk of collision."
[0225] Optionally, when an electronic device outputs a prompt message in text format, it can highlight key information in the prompt message, such as bolding "go straight in the opposite direction", "green light status", "duration 5 seconds", etc.
[0226] Electronic devices can also simultaneously display the countdown timers for the traffic lights in the first and target directions on the navigation interface. For example, the remaining time for the first direction is "14 seconds" and the remaining time for the target direction is "0.5 seconds".
[0227] Optionally, the electronic device can also highlight the road surface associated with the target driving direction using specific colors or by highlighting key points. For example... Figure 12BAs shown, the electronic device highlights the road surface in the west-to-east direction (i.e., the oncoming straight lane). In specific applications, the electronic device can render the west-to-east road surface with a specific, eye-catching color. Furthermore, the electronic device can also, based on the countdown timer for the target travel direction, switch the rendered color from the current color to a more eye-catching color and flash it as a warning when the remaining time of the traffic light in the target travel direction is less than or equal to a time threshold. For example, it can switch from yellow to red and flash the red area, thereby reminding drivers to be cautious of the risk of collision.
[0228] In other embodiments, the electronic device announces the status and remaining duration of the traffic light in the target direction of travel via voice broadcast. For example, Figure 13 This diagram illustrates a scenario where an electronic device broadcasts prompts via voice. Figure 13 As shown, the vehicle driver executes the navigation function through the navigation application in the vehicle's central control unit, and when outputting prompts, the prompts are broadcast via voice. The electronic device can control the voice broadcasts 1 to 3 times.
[0229] Optionally, the electronic device may display the status and remaining duration of the traffic lights in the target direction of travel on the navigation application's navigation interface in the form of a pop-up or floating window, while simultaneously broadcasting the prompt information via voice.
[0230] It should be noted that when the electronic device determines the two target driving directions of the first driving direction, it will output prompt information for the two target driving directions respectively.
[0231] In some embodiments, the electronic device may stop outputting prompts in response to control operations on the navigation interface, such as clicking or voice control. For example, it may stop displaying prompts as pop-ups or floating windows, or disable the content of voice prompts.
[0232] In this embodiment, the electronic device can visually and audibly alert the driver to the collision risk in the target direction of the current driving direction, thereby allowing the driver to enter a state of cautious driving in advance and reducing the possibility of accidents at intersections. Additionally, it can enrich the navigation functions of navigation applications and improve the user experience.
[0233] In summary, the collision risk warning method provided in this application, which determines the target driving direction using electronic devices, has a lower implementation cost compared to traditional technologies that rely on sensors. It does not require additional hardware and can be implemented simply by combining the vehicle's central control device or existing electronic devices with the navigation application's output of prompt information during the navigation service process. This saves costs and improves the user experience of the navigation application.
[0234] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0235] This application also provides a collision risk warning device applied to an electronic device. The electronic device provides a navigation route for a vehicle that passes through a first intersection equipped with traffic lights, and the planned driving direction at the first intersection is a first driving direction. See [link to relevant documentation]. Figure 14 As shown, the device includes a determination module 1401 and an output module 1402.
[0236] The determination module 1401 is used to determine the distance between the vehicle and the first intersection.
[0237] The output module 1402 is used to output a prompt message if it is determined that there is a target driving direction with a collision risk with the first driving direction at the first intersection when the distance is less than the distance threshold. The prompt message includes the status and remaining time of the traffic light in the target driving direction.
[0238] This application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the collision risk warning method shown in the above embodiments.
[0239] This application also provides a chip, see [link to relevant documentation] Figure 15 As shown, the chip includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, it implements the collision risk warning method in the above embodiments.
[0240] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the collision risk warning method provided in the above embodiments.
[0241] This application also provides a computer program product, which includes a computer program that, when run by an electronic device, enables the electronic device to implement the collision risk warning method provided in the above embodiments.
[0242] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0243] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0244] In the embodiments provided in this application, the division of each framework or module is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple frameworks or modules may be combined or integrated into another system, or some features may be ignored or not executed.
[0245] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0246] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0247] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0248] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A collision risk prompting method characterized by comprising: The method is applied to an electronic device, a first intersection provided with a traffic signal is installed on a navigation path of a vehicle, a driving direction planned at the first intersection is a first driving direction, and the method comprises: determining a distance between the vehicle and the first intersection; if there is a target driving direction having a collision risk with the first driving direction at the first intersection, outputting prompt information including a state and a remaining time of a traffic signal of the target driving direction when the distance is less than a distance threshold.
2. The method of claim 1, wherein: the first driving direction is a permitted driving state, and the target driving direction is a permitted driving state.
3. The method of claim 1 or 2, wherein: the first driving direction is a permitted driving state, the target driving direction is a prohibited driving state, and a remaining time of the prohibited driving state is less than or equal to a time threshold.
4. The method of any one of claims 1 to 3, wherein: the first driving direction is a prohibited driving state, a remaining time of the prohibited driving state is less than or equal to a time threshold, and the target driving direction is a direction of a permitted driving state.
5. The method of any one of claims 1 to 4, wherein: the first driving direction is a prohibited driving state, a remaining time of the prohibited driving state is less than or equal to a time threshold, the target driving direction is a prohibited driving state, and a remaining time of the prohibited driving state is less than or equal to a time threshold.
6. The method according to any one of claims 1 to 5, characterized in that, the outputting of the prompt information comprises: displaying the prompt information on a display interface; and / or, playing voice information, the voice information comprising the prompt information.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: highlighting a road surface associated with the target driving direction in a navigation interface in a first color, the first color having a color difference from a color of the navigation interface.
8. The method of claim 7, wherein, The method further comprises: switching the first color to a second color when a remaining time of the traffic signal of the target driving direction is less than or equal to a time threshold, the second color having a color difference from a color of the navigation interface, and the second color being different from the first color.
9. The method according to any one of claims 1 to 8, characterized in that, The determination of the target driving direction comprises: obtaining route fishbone information of the navigation path, the route fishbone information being used to indicate a set of all roads capable of entering or exiting the navigation path; determining a first set of all conflict directions of the first driving direction at the first intersection according to the route fishbone information; determining a second set of conflict directions having a collision risk corresponding to the first driving direction according to a driving direction and conflict direction mapping relationship table; determining a second driving direction from the first set of conflict directions, the second driving direction including conflict directions in the second set of conflict directions. sending a first request message to a traffic signal lamp server, the first request message being used to instruct the traffic signal lamp server to return states and remaining time lengths of traffic signal lamps at the first intersection, the first driving direction and the second driving direction, the first request message comprising position information of the first intersection and direction information of the first driving direction and the second driving direction; determining the target driving direction from the second driving direction according to the states and the remaining time lengths of the traffic signal lamps of the first driving direction and the second driving direction.
10. An electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-9.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-9.
12. A chip, characterized by The chip comprises a processor and a memory, and the memory stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-9.