Driving warning method, vehicle, storage medium and program product
By obtaining the vehicle's positioning data and map data, determining the signal light status of the current driving lane and outputting driving warning information, the problem of drivers accidentally running red lights due to inattention is solved, and driving safety is improved.
Patent Information
- Application Number
- CN202410990441.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-19
AI Technical Summary
Drivers may accidentally run red lights due to inattention, which affects driving safety. The existing electronic navigation system has shortcomings in reminding.
By obtaining the vehicle's positioning data and map data, the signal light status of the current driving lane is determined, and driving warning information is generated and output, including voice reminders, screen reminders and steering wheel vibration reminders, reminding drivers to drive with caution.
Effectively remind the driver of the current signal light status in the lane to avoid accidentally running a red light due to inattention and not paying attention to the countdown of the signal light displayed on the navigation interface, and ensure driving safety.
Smart Images

Figure CN118982928A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle auxiliary safety technology, and in particular to a driving warning method, a vehicle, a storage medium, and a program product. Background Art
[0002] In the related technology, the vehicle's electronic navigation has a traffic light countdown function, which can display the red light countdown of each traffic light on the navigation interface or remind the driver to prepare to start when the light is about to turn green. However, the driver may not pay attention to the current intersection traffic light countdown displayed by the navigation and mistakenly run a red light, affecting driving safety. Summary of the invention
[0003] The main purpose of this application is to provide a driving warning method, a vehicle, a storage medium and a program product, aiming to solve the technical problem that the driver mistakenly runs a red light due to lack of concentration.
[0004] To achieve the above purpose, the present application proposes a driving warning method, comprising:
[0005] If the vehicle is in a driving state, the vehicle's positioning data and map data corresponding to the positioning data are obtained;
[0006] Determine lane information of a current driving lane of the vehicle based on the positioning data and the map data;
[0007] Based on the lane information, determine the signal light data of the current driving lane;
[0008] Generate and output driving warning information based on traffic light data.
[0009] In one embodiment, the signal light data includes the signal light type and the remaining time of the signal light; the driving warning information includes the driving warning strong reminder information and the driving warning weak reminder information;
[0010] The steps of generating and outputting driving warning information based on the signal light data include:
[0011] If the signal light type is a red light and the remaining time of the current red light is greater than a first preset threshold, obtaining the brake pedal state of the vehicle;
[0012] If the brake pedal is in the released state, a driving warning strong reminder message is generated and output.
[0013] In one embodiment, the step of generating and outputting driving warning information based on the signal light data further includes:
[0014] If the signal light type is non-red and the remaining time to the next round of red light is less than a second preset threshold, obtaining the brake pedal state of the vehicle;
[0015] If the brake pedal is in the released state, a driving warning weak reminder message is generated and output.
[0016] In one embodiment, the lane information includes a lane name and / or a lane number;
[0017] Based on the lane information, the steps of determining the signal light data of the current driving lane include:
[0018] Based on the lane name and / or lane number, a preset signal light database is queried to determine the signal light data of the current driving lane.
[0019] In one embodiment, after the step of querying the preset signal light database based on the lane name and / or lane number, the step further includes:
[0020] If the signal light data matching the lane name and / or lane number is not found, a driving warning weak reminder message is generated and output.
[0021] In one embodiment, the step of determining lane information of a current driving lane of the vehicle based on the positioning data and the map data includes:
[0022] Determine the current distance value of the vehicle from the target intersection based on the positioning data and the map data;
[0023] Based on the current distance value, determine whether the vehicle is about to reach the target intersection;
[0024] If the target intersection is about to be reached, the lane information of the current driving lane of the vehicle at the target intersection is determined.
[0025] In one embodiment, the driving warning information includes at least one of a voice reminder, a picture reminder, and a steering wheel vibration reminder.
[0026] In addition, to achieve the above objectives, the present application also proposes a vehicle, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the above-mentioned driving warning method.
[0027] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the driving warning method as described above are implemented.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the above-mentioned driving warning method are implemented.
[0029] One or more technical solutions proposed in this application have at least the following technical effects:
[0030] The driving warning method of the present application can obtain the vehicle's positioning data and the map data corresponding to the positioning data when the vehicle is in a driving state; thereby, the lane information of the vehicle's current driving lane can be determined based on the positioning data and the map data; and the signal light data of the current driving lane can be determined based on the lane information; thereby, driving warning information can be generated and output based on the signal light data of the current driving lane to prompt the driver to drive carefully.
[0031] The present application can combine the vehicle's real-time positioning data and map data to accurately identify the specific lane where the vehicle is located and the status of the traffic lights on that lane, and output relevant warning information to clearly remind the driver of the status of the traffic lights in the current lane, and to drive carefully to avoid the situation where the driver accidentally runs a red light due to inattention and failure to pay attention to the traffic light countdown displayed on the navigation interface, thereby ensuring driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A flow chart of the first embodiment of the driving warning method of the present application;
[0035] Figure 2 A flow chart of the second embodiment of the driving warning method of the present application;
[0036] Figure 3 is a schematic diagram of the structure of an example vehicle;
[0037] Figure 4 A schematic diagram of a simplified process of the driving warning method provided in the second embodiment of the present application;
[0038] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the driving warning method in the embodiment of the present application.
[0039] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0041] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0042] The main solution of the embodiment of the present application is: if the vehicle is in a driving state, the vehicle's positioning data and the map data corresponding to the positioning data are obtained; based on the positioning data and the map data, the lane information of the vehicle's current driving lane is determined; based on the lane information, the signal light data of the current driving lane is determined; based on the signal light data, driving warning information is generated and output.
[0043] In the relevant technology, the vehicle's electronic navigation generally has a traffic light countdown function, which can display the red light countdown of each traffic light on the navigation interface or remind the driver to prepare to start when the light is about to turn green. However, the driver may not pay attention to the current intersection traffic light countdown displayed on the navigation due to lack of concentration, resulting in mistakenly running a red light and affecting driving safety.
[0044] The present application provides a solution that can combine the vehicle's real-time positioning data and map data while the vehicle is driving, accurately identify the specific lane where the vehicle is located and the status of the traffic lights on the lane, and output relevant warning information to clearly remind the driver of the status of the traffic lights in the current lane, and drive carefully. This can prevent the driver from accidentally running a red light due to inattention and not paying attention to the traffic light countdown displayed on the navigation interface, thereby ensuring the safety of the driving process.
[0045] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a personal computer, or an electronic device capable of realizing the above functions. The following takes the intelligent cockpit controller in a vehicle as an example to illustrate this embodiment and the following embodiments.
[0046] Based on this, the embodiment of the present application provides a driving warning method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the driving warning method of the present application.
[0047] In this embodiment, the driving warning method includes steps S100 to S400:
[0048] Step S100: If the vehicle is in a driving state, the positioning data of the vehicle and the map data corresponding to the positioning data are obtained.
[0049] Step S200: determining the lane information of the current driving lane of the vehicle based on the positioning data and the map data.
[0050] Step S300: determining the traffic light data of the current driving lane based on the lane information.
[0051] Step S400: Generate and output driving warning information based on the signal light data.
[0052] Specifically, the current speed of the vehicle can be obtained in real time to determine whether the vehicle is in a driving state. For example, if the current speed exceeds a set threshold, it can be determined that the vehicle is in a driving state; or the vehicle's motion sensor (such as an accelerometer, etc.) can be used to detect whether the vehicle is moving; or the axle sensor can be used to detect whether the wheel is rotating. If the wheel is rotating and the speed is not zero, it can be determined that the vehicle is currently in a driving state.
[0053] When the vehicle is in motion, the positioning data of the vehicle and the map data associated with the current position of the vehicle can be obtained through the positioning device installed on the vehicle, such as GPS, etc. The map data can be obtained from the database provided by the third-party map supplier, and the map data can include road information, traffic signs, road types, etc. By matching the positioning data of the vehicle and the map data, the specific lane information of the vehicle currently traveling can be determined. In a feasible implementation, step S200 can specifically include steps S210 to S230:
[0054] Step S210, determining the current distance value of the vehicle from the target intersection based on the positioning data and the map data.
[0055] Step S220, based on the current distance value, determine whether the vehicle is about to reach the target intersection.
[0056] Step S230: If the target intersection is about to be reached, the lane information of the current driving lane of the vehicle at the target intersection is determined.
[0057] Specifically, the positioning data can be matched with the map data to determine the current distance value of the vehicle from the target intersection; through the current distance value, it is predicted whether the vehicle has reached the target intersection. For example, when the current distance value is greater than the preset distance, it indicates that the vehicle has not reached the intersection. The vehicle positioning data and map data can be continuously monitored to determine the relative distance between the vehicle's current position and the target intersection. When the target distance is less than the preset distance, it indicates that the vehicle is about to reach the target intersection. When the vehicle is about to reach the intersection, the lane information of the vehicle in the current driving lane is obtained to avoid changing lanes before the vehicle reaches the intersection, resulting in inaccurate lane information. At the same time, it also avoids the need to repeatedly obtain lane information, which can reduce the operating load of the intelligent cockpit controller. It should be noted that the preset distance can be set in levels according to the current speed of the vehicle.
[0058] After determining the driving lane where the vehicle is located, the signal light data of the current lane can be obtained. These signal light data may include the status of the traffic light (red light, green light, yellow light), countdown information, signal light type (left turn, straight, right turn), etc. The above signal light data can help the vehicle make the next operation decision. In a feasible implementation, the lane information may include the lane name and / or lane number; in this implementation, step S300 may specifically include: based on the lane name and / or lane number, query the preset signal light database to determine the signal light data of the current driving lane. Among them, the preset signal light database can also be provided by a third-party supplier, and the preset signal light database can be accessed through a third-party interface. The preset signal light database uses the unique identifier of the lane such as the lane name or lane number as an index, and stores the signal light data corresponding to each lane. The preset signal light database can be queried through the lane name or lane number of the vehicle's current driving lane to obtain the signal light data of the current driving lane.
[0059] By using the acquired signal light data, corresponding driving warning information can be generated and output to remind the driver of the traffic signal of the current lane, help the driver to respond to the traffic signal accurately and timely, and avoid situations such as running a red light without paying attention to the driver. Among them, the form of driving warning information can include at least one of voice reminder, screen reminder and steering wheel vibration reminder. For example, the warning information of "the red light is about to turn red, please slow down and stop" can be output in the form of voice reminder, or the steering wheel vibration can be used to draw the driver's attention to the current signal light state to avoid running a red light by mistake; the driving warning information includes strong driving warning reminder information and weak driving warning reminder information to achieve graded reminders for the driver; taking the steering wheel vibration reminder as an example, the strong driving warning reminder information can use the steering wheel vibration with a large vibration amplitude and a long duration; the weak driving warning reminder information can use the steering wheel vibration with a small vibration amplitude or a slightly longer interval between each vibration.
[0060] In a feasible implementation, after the step of querying the preset signal light database based on the lane name and / or lane number, if the signal light data matching the lane name and / or lane number is not found, a weak reminder message of driving warning can be generated and output. It is understandable that if the matching signal light data is not found, it may be that the current lane signal light data has not been updated to the database in time, or there may be an error in data acquisition. At this time, in order to avoid situations such as accidentally running through a signal light, a weak reminder message of driving warning can be generated and output. For example, the driver can be reminded to pay attention to the signal light in the form of a voice message "Currently passing through an intersection, please pay attention to the signal light status and drive safely" to ensure driving safety.
[0061] It can be understood that the driving warning method of this embodiment can combine the vehicle's real-time positioning data and map data when the vehicle is driving, accurately identify the specific lane where the vehicle is located and the status of the traffic lights on the lane, and output relevant warning information to clearly remind the driver of the signal light status of the current lane, and drive carefully. This can avoid the situation where the driver accidentally runs a red light due to inattention and failure to pay attention to the traffic light countdown displayed on the navigation interface, thereby ensuring the safety of the driving process.
[0062] Based on the above-mentioned embodiment 1, the embodiment 2 of the present application is proposed. In the embodiment 2, the same or similar contents as those of the above-mentioned embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 In the vehicle control method provided in this embodiment, the signal light data may include but is not limited to the signal light type and the remaining time of the signal light. Step S400 may specifically include steps S410 to S420:
[0063] Step S410: If the traffic light type is a red light and the remaining time of the current red light is greater than a first preset threshold, the brake pedal state of the vehicle is obtained.
[0064] Step S420: If the brake pedal is in the released state, a driving warning strong reminder message is generated and output.
[0065] Specifically, after obtaining the signal light data, if the signal light type of the current driving lane is a red light, the remaining time of the current red light can be determined. If the remaining time of the current red light is greater than the first preset threshold, it means that when the vehicle reaches the target intersection, the signal light may still be a red light, and the vehicle is not allowed to pass. At this time, the brake pedal state of the vehicle can be obtained. If the brake pedal state is released, it indicates that the driver has not taken reasonable braking measures and there may be a risk of running a red light. At this time, a strong reminder message of driving warning can be generated and output to remind the driver that the driver needs to brake and stop to avoid running a red light by mistake. If the remaining time of the current red light is less than or equal to the first preset threshold, it indicates that when the vehicle arrives at the target intersection, the signal light may have turned green and the vehicle can pass. At this time, no reminder is required. It should be noted that the first preset threshold can be determined comprehensively based on the vehicle speed and the distance from the intersection. In addition, if there is no signal light in the current driving lane, it indicates that there is no possibility of running a signal light by mistake, and no reminder is required at this time.
[0066] In addition, step S400 may further include steps S430 to S440:
[0067] Step S430: If the traffic light type is non-red and the remaining time to the next red light is less than a second preset threshold, the brake pedal state of the vehicle is obtained.
[0068] Step S440: If the brake pedal is in the released state, a driving warning weak reminder message is generated and output.
[0069] Specifically, if the current signal light type is non-red light, and the remaining time to the next round of red light is less than the second preset threshold, it indicates that the signal light may be about to change to a red light state, and the vehicle is not allowed to pass. At this time, the vehicle's brake pedal state can also be obtained. If the brake pedal state is released, it indicates that the driver has not taken braking and deceleration measures, and there may be a risk of accidentally running a red light. At this time, a weak reminder message of driving warning can be generated and output to remind the driver to pay attention to the change of the signal light and avoid accidentally running a red light. If the remaining time to the next round of red light is greater than the second preset threshold, it indicates that the signal light is still in a non-red light state when the vehicle arrives at the target intersection, and the vehicle can pass, and no reminder is required at this time.
[0070] It can be understood that the driving warning method of this embodiment can make logical judgments based on the signal light type, the remaining time of the signal light, and the brake pedal status, and provide intelligent reminders to the driver to avoid the phenomenon of accidentally running a red light due to the driver's misjudgment or lack of concentration and ignoring the red light.
[0071] For example, in order to help understand the implementation process of the driving warning method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3-4 , specifically:
[0072] Figure 3 A schematic diagram of the structure of an example vehicle is provided, such as Figure 3 As shown, the vehicle includes a surrounding environment component, an intelligent cockpit controller and a human-computer interaction medium, wherein the surrounding environment component includes a GPS antenna, a vehicle speed sensor and a brake pedal sensor, etc. The GPS can obtain the vehicle's positioning data in real time, the vehicle speed sensor can detect the vehicle's speed, and the brake pedal sensor is used to obtain the brake pedal status; the intelligent cockpit controller includes a navigation module and an intelligent reminder module, the navigation module can obtain map data and a traffic light database from a third-party map supplier, and make decisions based on the relevant data obtained by the surrounding environment component, the intelligent reminder module can make intelligent reminders based on the judgment results of the navigation module, the intelligent reminder module is connected to the human-computer interaction medium, and can transmit the intelligent reminder content to the human-computer interaction medium in the form of audio data, image data or vehicle bus signals, the human-computer interaction medium can include a speaker, a display screen and a steering wheel, etc., as a window for interaction between the vehicle and the user, to provide the user with picture reminders, voice reminders or steering wheel vibration reminders.
[0073] Figure 4 A brief flow chart of a driving warning method is provided, such as Figure 4As shown, when the vehicle is powered on, the navigation module can obtain the vehicle speed information and determine whether the vehicle is in a driving state. When the obtained speed is equal to 0 or less than a certain tolerance value, it is determined that the vehicle is not in a driving state, and the speed is continuously monitored. When the obtained speed is greater than 0 or greater than a certain tolerance value, it is determined that the speed is in a driving state. When it is determined that the vehicle is in a driving state, the navigation module can continue to obtain the vehicle's GPS positioning information and map data, match the GPS data and map data, and determine in real time whether the vehicle is about to reach the intersection on the map. When the road distance from the vehicle to the intersection on the map is greater than ΔL (preset distance), it is determined that the vehicle has not reached the intersection, and the relative distance between the vehicle positioning and the intersection on the map is continuously monitored. When the road distance from the vehicle to the intersection on the map is less than ΔL, it is determined that the vehicle is about to reach the intersection; the value of ΔL can be set in grades according to the current speed. When it is determined that the vehicle is about to reach an intersection, the navigation module can match the vehicle's positioning information and map information to determine which lane the vehicle is in. At this time, the lane information determined by the navigation module can be used as the index field to query the signal light database provided by the map supplier to obtain the signal light data for the corresponding lane. If the signal light data for the current lane is not found or the data acquisition fails, a weak reminder such as voice reminder can be used to remind the user "Currently passing through an intersection, please pay attention to the signal light status and drive safely"; if the signal light data for the current lane is obtained, continue to determine whether there is a signal light in the current lane.
[0074] If there is no traffic light in the current lane, no reminder will be given to the user; if there is a traffic light in the current lane, the current traffic light status will continue to be determined. If the current traffic light is in a red light state, the remaining time of the red light will be obtained from the traffic light database provided by the map supplier. When the remaining time of the red light is less than ΔT (the first preset threshold), no reminder will be given. When the remaining time of the red light is greater than ΔT, the status of the vehicle's brake pedal will continue to be obtained. When the brake pedal signal is pressed, no reminder will be given. When the brake pedal signal is not pressed, a strong reminder will be given in the form of voice reminder, screen reminder, steering wheel vibration reminder, etc.
[0075] If the vehicle is not in a red light state, the time to the next red light can be obtained from the traffic light database provided by the map provider. When the time to the next red light is greater than Δt (the second preset threshold), no reminder is given. When the time to the next red light is less than Δt, the vehicle brake pedal state is obtained. When the brake pedal signal is pressed, a weak reminder is given in the form of voice reminder, screen reminder, etc., reminding the user that "the red light is about to turn on, please pay attention to the traffic light state".
[0076] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the driving warning method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0077] The present application provides a vehicle, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the driving warning method in the above-mentioned embodiment one.
[0078] Reference below Figure 5 , which shows a schematic diagram of the structure of a vehicle suitable for implementing the embodiment of the present application. The vehicle in the embodiment of the present application may include but is not limited to mobile terminals such as laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The vehicle shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0079] like Figure 5As shown, the vehicle may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for vehicle operation are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0080] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0081] The vehicle provided by the present application adopts the driving warning method in the above embodiment, which can solve the technical problem that the driver mistakenly runs a red light due to lack of concentration. Compared with the related art, the beneficial effects of the vehicle provided by the present application are the same as the beneficial effects of the driving warning method provided by the above embodiment, and the other technical features in the vehicle are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0082] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0083] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0084] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the driving warning method in the above-mentioned embodiment.
[0085] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0086] The computer-readable storage medium may be included in the vehicle, or may exist independently without being installed in the vehicle.
[0087] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle, the vehicle: if the vehicle is in a driving state, obtains the vehicle's positioning data and the map data corresponding to the positioning data; based on the positioning data and the map data, determines the lane information of the vehicle's current driving lane; based on the lane information, determines the signal light data of the current driving lane; based on the signal light data, generates and outputs driving warning information.
[0088] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0090] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0091] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned driving warning method, and can solve the technical problem that the driver mistakenly runs a red light due to lack of concentration. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the driving warning method provided by the above-mentioned embodiment, and will not be repeated here.
[0092] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned driving warning method when executed by a processor.
[0093] The computer program product provided by the present application can solve the technical problem that drivers mistakenly run red lights due to lack of concentration. Compared with the related art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the driving warning method provided by the above embodiment, which will not be repeated here.
[0094] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A driving warning method, characterized in that: The driving warning method comprises: If the vehicle is in a driving state, obtaining the vehicle's positioning data and map data corresponding to the positioning data; Determining lane information of a current driving lane of the vehicle based on the positioning data and the map data; Based on the lane information, determining the signal light data of the current driving lane; Based on the signal light data, driving warning information is generated and output.
2. The driving warning method according to claim 1, characterized in that: The signal light data includes the signal light type and the remaining time of the signal light; the driving warning information includes the driving warning strong reminder information and the driving warning weak reminder information; The step of generating and outputting driving warning information based on the signal light data comprises: If the signal light type is a red light and the remaining duration of the current round of red light is greater than a first preset threshold, obtaining a brake pedal state of the vehicle; If the brake pedal state is a released state, the driving warning strong reminder information is generated and output.
3. The driving warning method according to claim 2, characterized in that: The step of generating and outputting driving warning information based on the signal light data further includes: If the signal light type is non-red and the remaining time to the next round of red light is less than a second preset threshold, obtaining the brake pedal state of the vehicle; If the brake pedal state is a released state, the driving warning weak reminder information is generated and output.
4. The driving warning method according to claim 3, characterized in that: The lane information includes a lane name and / or a lane number; The step of determining the signal light data of the current driving lane based on the lane information comprises: Based on the lane name and / or the lane number, a preset signal light database is queried to determine the signal light data of the current driving lane.
5. The driving warning method according to claim 4, characterized in that: After the step of querying the preset signal light database based on the lane name and / or the lane number, the following step further comprises: If the signal light data matching the lane name and / or the lane number is not found, a driving warning weak reminder message is generated and output.
6. The driving warning method according to claim 1, characterized in that: The step of determining the lane information of the current driving lane of the vehicle based on the positioning data and the map data comprises: Determining a current distance value of the vehicle from a target intersection based on the positioning data and the map data; Based on the current distance value, determining whether the vehicle is about to reach the target intersection; If the target intersection is about to be reached, the lane information of the current driving lane of the vehicle at the target intersection is determined.
7. The driving warning method according to any one of claims 1 to 6, characterized in that: The driving warning information may be in the form of at least one of a voice reminder, a picture reminder, and a steering wheel vibration reminder.
8. A vehicle, characterized in that: The vehicle comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the driving warning method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the driving warning method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the driving warning method according to any one of claims 1 to 7 are implemented.
