Method and device for preventing driver from fatigue
By installing an oxygen release device in the vehicle, the oxygen release rate can be monitored in real time and adjusted according to the in-vehicle environmental conditions, thus solving the problem of driver fatigue caused by insufficient oxygen in the closed cockpit and ensuring that the driver is alert and comfortable.
Patent Information
- Application Number
- CN202511153461.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2025-11-14
AI Technical Summary
In the enclosed cockpit of a vehicle, insufficient oxygen supply can lead to driver fatigue and increase driving risks.
By installing an oxygen release device in the vehicle, the oxygen content inside the vehicle is monitored in real time. When the oxygen content is lower than the threshold, oxygen is released. The release rate is adjusted in combination with the temperature and humidity inside the vehicle to ensure that the oxygen concentration inside the vehicle is appropriate.
It effectively prevents driver fatigue caused by insufficient oxygen, keeps the driver alert, and improves driver comfort and safety.
Smart Images

Figure CN120941949A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and more specifically to methods and devices for preventing driver fatigue. Background Technology
[0002] During vehicle operation, the cabin often needs to be enclosed for various reasons, and the air conditioning cannot be set to external circulation, such as in extreme windy and sandy weather or when air pollution is severe. Driving for extended periods in such a closed environment can easily lead to insufficient oxygen supply and hypoxemia due to poor air circulation; or driving in high-altitude areas where oxygen is scarce, which can cause brain hypoxia, resulting in symptoms such as dizziness and blurred vision, driver fatigue, and ultimately, increased driving risks.
[0003] Therefore, how to prevent driver fatigue has become a technical problem that needs to be solved. Summary of the Invention
[0004] In view of this, the present invention provides a method and apparatus for preventing driver fatigue.
[0005] In a first aspect, the present invention provides a method for preventing driver fatigue, the method being applied to a vehicle, the vehicle including an oxygen release device, and the method comprising: acquiring relevant data of the vehicle when the vehicle meets preset conditions; wherein the relevant data of the vehicle includes the oxygen content inside the vehicle; and controlling the oxygen release device to release oxygen when the oxygen content inside the vehicle is not greater than an oxygen content threshold.
[0006] The method for preventing driver fatigue provided in this embodiment obtains the oxygen content inside the vehicle when preset conditions are met during vehicle operation. When the oxygen content is not greater than the set oxygen content threshold, the oxygen release device is immediately controlled to release oxygen, thereby replenishing the oxygen inside the vehicle in a timely manner. This avoids the problem of driver fatigue caused by insufficient oxygen leading to brain hypoxia, and keeps the driver clear-headed and in a good mental state.
[0007] In one possible implementation, the relevant vehicle data includes the vehicle interior temperature and humidity; controlling the oxygen release device to release oxygen includes: detecting whether the vehicle interior temperature is greater than a temperature threshold; detecting whether the vehicle interior humidity is greater than a humidity threshold; when the vehicle interior temperature is greater than the temperature threshold and the vehicle interior humidity is greater than the humidity threshold, determining the oxygen release rate based on the vehicle interior temperature and humidity; and controlling the oxygen release device to release oxygen according to the oxygen release rate.
[0008] The method for preventing driver fatigue provided in this embodiment determines the oxygen release rate based on the specific values of temperature and humidity inside the vehicle, rather than using a fixed release mode, which makes the oxygen release more in line with actual needs.
[0009] In one possible implementation, the oxygen release rate is determined based on the vehicle interior temperature and humidity, including: determining a first weighting coefficient corresponding to the vehicle interior temperature based on a first correspondence between the preset vehicle interior temperature and weighting coefficients; determining a second weighting coefficient corresponding to the vehicle interior humidity based on a second correspondence between the preset vehicle interior humidity and weighting coefficients; and determining the oxygen release rate based on the first weighting coefficient, the second weighting coefficient, the vehicle interior temperature, the vehicle interior humidity, and the initial oxygen release rate.
[0010] The method for preventing driver fatigue provided in this embodiment recognizes that in-vehicle temperature and humidity significantly impact a driver's physiological sensations and fatigue levels. High temperatures make it difficult for the driver to dissipate heat, leading to irritability and fatigue; high humidity hinders sweat evaporation, exacerbating the feeling of stuffiness and further affecting the driver's attention and reaction speed. By establishing the correspondence between preset temperature and preset humidity and their respective weighting coefficients, the oxygen release rate can be precisely adjusted according to different temperature and humidity conditions.
[0011] In one possible implementation, the method further includes: obtaining the vehicle door status and the vehicle window status; when the vehicle door status and the vehicle window status are in the first closed state, it is determined that the vehicle meets the preset conditions; when the vehicle door status or the vehicle window status is in the first closed state, it is determined that the vehicle does not meet the preset conditions.
[0012] The method for preventing driver fatigue provided in this embodiment creates a relatively enclosed and stable space inside the vehicle when both doors and windows are closed. At this time, the vehicle meets preset conditions, ensuring that if the doors or windows are open, outside air exchanges with inside air, resulting in a relatively stable oxygen content inside the vehicle and reducing the likelihood of driver fatigue due to oxygen deficiency. In this scenario, acquiring vehicle-related data and taking subsequent measures may be unnecessary and could even lead to a waste of resources.
[0013] In one possible implementation, the relevant data for the vehicle includes the oxygen content outside the vehicle; controlling the oxygen release device to release oxygen includes: determining the oxygen content outside the vehicle; determining the amount of oxygen to be released into the vehicle based on the oxygen content outside the vehicle; and controlling the oxygen release device to release oxygen based on the amount.
[0014] The method for preventing driver fatigue provided in this embodiment can maintain the oxygen concentration inside the vehicle at a relatively stable and suitable level by determining the amount of oxygen released into the vehicle based on the oxygen content outside the vehicle. This allows the driver and passengers to breathe more smoothly, reduces fatigue, irritability and other negative emotions caused by unsuitable oxygen concentration, and improves the comfort and enjoyment of driving.
[0015] Secondly, the present invention provides a device for preventing driver fatigue, the device being applied to a vehicle, the vehicle including an oxygen release device, and the device comprising: an acquisition module for acquiring relevant data of the vehicle when the vehicle meets preset conditions; wherein the relevant data of the vehicle includes the oxygen content inside the vehicle; and a control module for controlling the oxygen release device to release oxygen when the oxygen content inside the vehicle is not greater than an oxygen content threshold.
[0016] In one possible implementation, the relevant vehicle data includes the vehicle interior temperature and humidity; the control module includes: a first detection unit for detecting whether the vehicle interior temperature is greater than a temperature threshold; a second detection unit for detecting whether the vehicle interior humidity is greater than a humidity threshold; an oxygen release rate determination unit for determining the oxygen release rate based on the vehicle interior temperature and humidity when both the vehicle interior temperature and humidity are greater than the temperature threshold and humidity threshold; and a control unit for controlling the oxygen release device to release oxygen according to the oxygen release rate.
[0017] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method for preventing driver fatigue described in the first aspect or any corresponding embodiment thereof.
[0018] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method for preventing driver fatigue described in the first aspect or any corresponding embodiment thereof.
[0019] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the method for preventing driver fatigue described in the first aspect or any corresponding embodiment thereof. Attached Figure Description
[0020] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0021] Figure 1 This is a schematic flowchart of a system for preventing driver fatigue according to an embodiment of the present invention;
[0022] Figure 2 This is a flowchart illustrating a method for preventing driver fatigue according to an embodiment of the present invention;
[0023] Figure 3 This is a structural block diagram of a device for preventing driver fatigue according to an embodiment of the present invention;
[0024] Figure 4 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] Please refer to Figure 1 , Figure 1 This is a schematic diagram of a system for preventing driver fatigue according to an embodiment of the present invention.
[0027] Systems that prevent driver fatigue may include: an on-board computer, a first detection device, a second detection device, a third detection device, an oxygen release device, and an oxygen release device controller.
[0028] The first detection device, the second detection device, the third detection device, and the oxygen release device controller are all connected to the vehicle's computer, and the oxygen release device and the oxygen release device controller are connected to each other.
[0029] The first detection device is used to detect the oxygen content inside the vehicle; the second detection device is used to detect the status of the doors and windows; and the third detection device is used to detect the oxygen content outside the vehicle.
[0030] The vehicle's computer can receive information about the status of the doors and windows. When both the door and window statuses meet preset conditions, it receives the oxygen content and then sends a control signal to the oxygen release device controller based on the oxygen content. This allows the oxygen release device controller to control the oxygen release device to release oxygen based on the control signal.
[0031] The vehicle's computer can also receive the oxygen content outside the vehicle and then determine the amount of oxygen that the oxygen release device needs to release into the vehicle based on the outside oxygen content.
[0032] According to an embodiment of the present invention, a method for preventing driver fatigue is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0033] This embodiment provides a method for preventing driver fatigue, which can be used in a vehicle's on-board computer. Figure 2 This is a flowchart illustrating a method for preventing driver fatigue according to an embodiment of the present invention, as shown below. Figure 2 As shown, the process includes the following steps:
[0034] Step S201: When the vehicle meets the preset conditions, acquire relevant vehicle data; wherein, the relevant vehicle data includes the oxygen content inside the vehicle.
[0035] Preset conditions can indicate the conditions under which a vehicle needs to obtain relevant data.
[0036] As an example, a preset condition could be that the vehicle doors are closed. Preset conditions could also include that the vehicle windows are closed, etc., but this is not specifically limited to these conditions.
[0037] The relevant data can indicate various information such as vehicle operating status and in-vehicle environment. Among these, the relevant data can include the oxygen content inside the vehicle.
[0038] As an example, relevant data may also include the carbon dioxide content, temperature, humidity, etc. inside the vehicle, without specific limitations.
[0039] In practice, when a vehicle meets preset conditions, relevant vehicle data can be detected by sensors installed inside the vehicle.
[0040] Step S202: When the oxygen content inside the vehicle is not greater than the oxygen content threshold, control the oxygen release device to release oxygen.
[0041] The oxygen content threshold can be a pre-set critical value used to determine whether the oxygen content inside the vehicle is normal. Specifically, when the oxygen content inside the vehicle is not greater than the oxygen content threshold, it is determined that the oxygen content inside the vehicle is insufficient, and the oxygen release device can be controlled to release oxygen.
[0042] As an example, the vehicle's onboard computer is directly connected to the oxygen release system, controlling its on / off state via electrical signals. When the onboard computer determines that the oxygen level inside the vehicle is not higher than the oxygen level threshold, it immediately outputs an on signal to start the oxygen release system releasing oxygen; when the oxygen level inside the vehicle returns to normal, it outputs an off signal to stop oxygen release.
[0043] As an example, the vehicle's computer can receive the status of the doors and windows. When both the door and window statuses meet preset conditions, it receives the oxygen content and then sends a control signal to the oxygen release device controller based on the oxygen content, so that the oxygen release device controller can control the oxygen release device to release oxygen according to the control signal.
[0044] In one scenario, vehicle door and window sensors monitor the status of the doors and windows in real time, while a speed sensor monitors the vehicle's speed. When the vehicle stops, its speed is 0, and the door and window sensors indicate that the doors and windows are closed, the vehicle's onboard computer determines that the vehicle meets preset conditions. Subsequently, the onboard computer activates the oxygen content sensor installed inside the vehicle to acquire oxygen content data. Assume the acquired oxygen content is 18% (normal onboard oxygen content is generally around 20%-21%). The preset oxygen content threshold is 20%. The onboard computer compares the acquired 18% oxygen content with the threshold 20% and finds that 18% is not greater than 20%, meaning the oxygen content is insufficient. Therefore, the onboard computer sends a control signal to the valve of the oxygen cylinder installed in the trunk, opening the valve and releasing oxygen from the cylinder into the vehicle through a pipe. Meanwhile, the vehicle's computer continuously monitors the oxygen content inside the vehicle. When the oxygen content inside the vehicle rises to 20.5%, the vehicle's computer sends a shutdown signal to close the oxygen tank valve and stop releasing oxygen.
[0045] The method for preventing driver fatigue provided in this embodiment obtains the oxygen content inside the vehicle when preset conditions are met during vehicle operation. When the oxygen content is not greater than the set oxygen content threshold, the oxygen release device is immediately controlled to release oxygen, thereby replenishing the oxygen inside the vehicle in a timely manner. This avoids the problem of driver fatigue caused by insufficient oxygen leading to brain hypoxia, and keeps the driver clear-headed and in a good mental state.
[0046] In one possible implementation, the relevant vehicle data includes the vehicle interior temperature and humidity; step S202 above includes:
[0047] Step S2021: Detect whether the temperature inside the vehicle is greater than the temperature threshold.
[0048] The interior temperature refers to the air temperature inside the vehicle. The temperature threshold is a pre-set critical value used to determine whether the interior temperature is within a suitable range. When the interior temperature exceeds this threshold, it indicates that the interior may be overheating. Specifically, a temperature sensor installed inside the vehicle can be used to detect whether the interior temperature exceeds the temperature threshold.
[0049] Step S2022: Detect whether the humidity inside the vehicle is greater than the humidity threshold.
[0050] Interior humidity refers to the amount of water vapor in the air inside the vehicle. A humidity threshold is a pre-set humidity cutoff value used to determine whether the humidity level inside the vehicle is suitable. When the interior humidity exceeds this threshold, it indicates that the interior is too damp. Specifically, a humidity sensor installed in the vehicle can be used to detect whether the interior humidity exceeds the humidity threshold.
[0051] Step S2023: When the interior temperature is greater than the temperature threshold and the interior humidity is greater than the humidity threshold, determine the oxygen release rate based on the interior temperature and interior humidity.
[0052] The oxygen release rate indicates the amount of oxygen released into the vehicle interior by the oxygen release device per unit time. Specifically, when both the interior temperature and humidity are determined to be above a temperature threshold and a humidity threshold, the oxygen release rate can be further determined based on these parameters.
[0053] As an example, a table is pre-created containing different combinations of in-vehicle temperature and humidity and their corresponding oxygen release rates. Once the in-vehicle temperature and humidity are detected, a matching temperature and humidity combination is found in the table to determine the corresponding oxygen release rate.
[0054] As an example, a neural network model can be used to determine the oxygen release rate based on the vehicle's interior temperature and humidity. The vehicle's interior temperature and humidity are the inputs to the neural network model, and the oxygen release rate is the output.
[0055] Step S2024: Control the oxygen release device to release oxygen according to the oxygen release rate.
[0056] A control command is sent to the oxygen release device to cause it to release oxygen into the vehicle at that rate.
[0057] In one scenario, after the vehicle starts, the digital temperature sensor installed on the center console inside the car activates and detects a current interior temperature of 32°C. The vehicle's computer reads this temperature value and compares it with a preset temperature threshold of 30°C, finding that 32°C > 30°C, indicating that the interior temperature is too high. A capacitive humidity sensor installed near the air conditioning vents detects an interior humidity of 75%. The vehicle's computer compares this humidity value with a preset humidity threshold of 70%, concluding that 75% > 70%, indicating that the interior humidity is too high.
[0058] Because the interior temperature and humidity both exceeded the temperature and humidity thresholds, the vehicle's computer used a lookup table to determine the oxygen release rate. According to the pre-made table, when the interior temperature was 32°C and the humidity was 75%, the corresponding oxygen release rate was 5 L / min. The vehicle computer then used PWM control to output a 50% duty cycle PWM signal to the oxygen release device's drive circuit. The drive circuit adjusted its output power based on the PWM signal, causing the oxygen release device to release oxygen into the vehicle at a rate of 5 L / min to improve the high-temperature and high-humidity environment inside the vehicle.
[0059] The method for preventing driver fatigue provided in this embodiment determines the oxygen release rate based on the specific values of temperature and humidity inside the vehicle, rather than using a fixed release mode, which makes the oxygen release more in line with actual needs.
[0060] In one possible implementation, the step S2023 above, which determines the oxygen release rate based on the vehicle interior temperature and humidity, includes:
[0061] Step a1: Based on the first correspondence between the preset in-vehicle temperature and the weighting coefficient, determine the first weighting coefficient corresponding to the in-vehicle temperature.
[0062] The preset correspondence between in-vehicle temperature and weighting coefficients can be a pre-defined set of data relationships, which clarifies the first weighting coefficient corresponding to different in-vehicle temperature values. The first weighting coefficient can be a value associated with the in-vehicle temperature, reflecting the proportion of the in-vehicle temperature in determining the oxygen release rate.
[0063] Based on the pre-set first correspondence between in-vehicle temperature and weighting coefficient, the currently detected in-vehicle temperature is used as input to find and determine the corresponding first weighting coefficient.
[0064] Step a2: Based on the second correspondence between the preset in-vehicle humidity and the weighting coefficient, determine the second weighting coefficient corresponding to the in-vehicle humidity.
[0065] The second correspondence between preset in-vehicle humidity and weighting coefficients can be a set of pre-defined data, specifying the second weighting coefficients corresponding to different in-vehicle humidity values, used to measure the degree of influence of in-vehicle humidity on the oxygen release rate. The second weighting coefficient can indicate its correlation with in-vehicle humidity, reflecting the proportion of in-vehicle humidity in determining the oxygen release rate.
[0066] Based on the pre-set second correspondence between in-vehicle humidity and weighting coefficient, the currently detected in-vehicle humidity is used as input to find and determine the corresponding second weighting coefficient.
[0067] Step a3: Determine the oxygen release rate based on the first weighting coefficient, the second weighting coefficient, the vehicle interior temperature, the vehicle interior humidity, and the initial oxygen release rate.
[0068] The initial oxygen release rate can be a pre-set baseline value, which serves as a starting reference for calculating the final oxygen release rate.
[0069] Taking into account the first weighting coefficient obtained in step a1, the second weighting coefficient obtained in step a2, the current in-vehicle temperature, in-vehicle humidity, and the initial oxygen release rate, the final oxygen release rate is determined through a specific calculation method.
[0070] As an example, the oxygen release rate can be determined using the following formula.
[0071] v = k1 × (T - T0) + k2 × (H - H0) + v0; where k1 is the first weighting coefficient, k2 is the second weighting coefficient, T is the in-vehicle temperature, H is the in-vehicle humidity, T0 is the temperature threshold, H0 is the humidity threshold, v0 is the initial oxygen release rate, and v is the oxygen release rate.
[0072] For example, after experiments and adjustments, k1 = 0.5, k2 = 0.3, T0 = 25℃, H0 = 50%, and v0 = 10 were determined. When the interior temperature T = 30℃ and the humidity H = 60%, the oxygen release rate v = 15.5 liters / minute.
[0073] The method for preventing driver fatigue provided in this embodiment recognizes that in-vehicle temperature and humidity significantly impact a driver's physiological sensations and fatigue levels. High temperatures make it difficult for the driver to dissipate heat, leading to irritability and fatigue; high humidity hinders sweat evaporation, exacerbating the feeling of stuffiness and further affecting the driver's attention and reaction speed. By establishing the correspondence between preset temperature and preset humidity and their respective weighting coefficients, the oxygen release rate can be precisely adjusted according to different temperature and humidity conditions.
[0074] In one possible implementation, the above method also includes:
[0075] Step b1: Obtain the vehicle door status and vehicle window status.
[0076] The vehicle door status refers to the current state of each door of the vehicle. The closed state means that the door is fully closed and locked, while the open state means that the door is either open or not fully closed.
[0077] The vehicle window status refers to the current state of each window in the vehicle. The closed state is when the window is fully raised, and the open state is when the window is partially or fully lowered.
[0078] By using sensors or related detection devices installed on the vehicle, the current status information of all doors and windows of the vehicle can be obtained to determine whether they are open or closed.
[0079] Step b2: When the vehicle doors and windows are in the first closed state, the vehicle is determined to meet the preset conditions.
[0080] The system judges the obtained door and window statuses. When all doors and windows are in the first closed state, the vehicle is determined to meet the preset conditions.
[0081] Step b3: When the vehicle door is in the first closed state or the vehicle window is in the first closed state, it is determined that the vehicle does not meet the preset conditions.
[0082] If at least one door or at least one window is not in the first closed state, the vehicle is determined not to meet the preset conditions.
[0083] As an example, whether the car door is closed can be used as the first condition, and whether the car window is closed can be used as the second condition. That is, first check whether the car door is closed, and then check whether the car window is closed if the door is closed, which can save the computing resources of the vehicle's computer.
[0084] The method for preventing driver fatigue provided in this embodiment creates a relatively enclosed and stable space inside the vehicle when both doors and windows are closed. At this time, the vehicle meets preset conditions, ensuring that if the doors or windows are open, outside air exchanges with inside air, resulting in a relatively stable oxygen content inside the vehicle and reducing the likelihood of driver fatigue due to oxygen deficiency. In this scenario, acquiring vehicle-related data and taking subsequent measures may be unnecessary and could even lead to a waste of resources.
[0085] In one possible implementation, the relevant vehicle data includes the oxygen content outside the vehicle; step S202 above includes:
[0086] Step c1: Determine the oxygen content outside the vehicle.
[0087] The oxygen content outside a vehicle indicates the volume percentage or concentration of oxygen in the ambient air. This is achieved by using specific detection equipment or sensors to measure the oxygen content in the vehicle's external environment in real time, thus obtaining an accurate estimate of the oxygen content outside the vehicle.
[0088] Step c2: Determine the amount of oxygen to be released into the vehicle based on the oxygen content outside the vehicle.
[0089] Based on the oxygen content outside the vehicle obtained in step c1, and combined with preset rules or algorithms, the specific amount of oxygen that should be released into the vehicle is calculated.
[0090] As an example, a table mapping the external oxygen content to the oxygen released into the vehicle is pre-defined. The table is set according to different oxygen content ranges, the possible number of people in the vehicle, air quality requirements, and other factors. After step c1 obtains the external oxygen content, the corresponding oxygen release value is looked up in the table. For example, when the external oxygen content is between 18% and 20%, if there is one person in the vehicle, the oxygen release value is 5 liters / minute; if there are two people, the oxygen release value is 10 liters / minute.
[0091] Step c3: Based on the value, control the oxygen release device to release oxygen.
[0092] Based on the oxygen release value determined in step c2, control the oxygen release device to perform corresponding operations, such as opening the valve and adjusting the oxygen generator power, to ensure that oxygen is released into the vehicle according to the calculated value.
[0093] The method for preventing driver fatigue provided in this embodiment can maintain the oxygen concentration inside the vehicle at a relatively stable and suitable level by determining the amount of oxygen released into the vehicle based on the oxygen content outside the vehicle. This allows the driver and passengers to breathe more smoothly, reduces fatigue, irritability and other negative emotions caused by unsuitable oxygen concentration, and improves the comfort and enjoyment of driving.
[0094] This embodiment also provides a device for preventing driver fatigue, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0095] This embodiment provides a device to prevent driver fatigue, such as... Figure 3 As shown, it includes: an acquisition module 301, used to acquire relevant data of the vehicle when the vehicle meets preset conditions; wherein the relevant data of the vehicle includes the oxygen content inside the vehicle; and a control module 302, used to control the oxygen release device to release oxygen when the oxygen content inside the vehicle is not greater than the oxygen content threshold.
[0096] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0097] In this embodiment, the device for preventing driver fatigue is presented in the form of a functional unit. Here, a functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0098] This invention also provides a computer device having the above-described features. Figure 3 The device shown is designed to prevent driver fatigue.
[0099] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 4 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 4 Take a processor 10 as an example.
[0100] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0101] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0102] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0103] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0104] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0105] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0106] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0107] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for preventing driver fatigue, characterized in that, The method is applied to a vehicle, the vehicle including an oxygen release device, and the method includes: When the vehicle meets the preset conditions, relevant vehicle data is acquired; wherein, the relevant vehicle data includes the oxygen content inside the vehicle; When the oxygen content inside the vehicle is not greater than the oxygen content threshold, the oxygen release device is controlled to release oxygen.
2. The method for preventing driver fatigue according to claim 1, characterized in that, The vehicle's relevant data includes the vehicle's interior temperature and humidity; controlling the oxygen release device to release oxygen includes: Detect whether the interior temperature of the vehicle exceeds a temperature threshold; Detect whether the humidity inside the vehicle is greater than the humidity threshold; When the vehicle interior temperature is greater than a temperature threshold and the vehicle interior humidity is greater than a humidity threshold, the oxygen release rate is determined based on the vehicle interior temperature and the vehicle interior humidity. The oxygen release device is controlled to release oxygen according to the oxygen release rate.
3. The method for preventing driver fatigue according to claim 2, characterized in that, Determining the oxygen release rate based on the vehicle interior temperature and humidity includes: Based on the first correspondence between the preset in-vehicle temperature and the weighting coefficient, the in-vehicle temperature is used to determine the first weighting coefficient corresponding to the in-vehicle temperature. Based on the second correspondence between the preset in-vehicle humidity and the weighting coefficient, the second weighting coefficient corresponding to the in-vehicle humidity is determined. The oxygen release rate is determined based on the first weighting coefficient, the second weighting coefficient, the vehicle interior temperature, the vehicle interior humidity, and the initial oxygen release rate.
4. The method for preventing driver fatigue according to claim 1, characterized in that, The method further includes: Obtain the status of the vehicle's doors and windows; When the vehicle's doors are in the first closed state and the vehicle's windows are in the first closed state, the vehicle is determined to meet the preset conditions. If the vehicle door is in the first closed state or the vehicle window is in the first closed state, then the vehicle is determined not to meet the preset conditions.
5. The method for preventing driver fatigue according to claim 1, characterized in that, Vehicle-related data includes the oxygen content outside the vehicle; controlling the oxygen release device to release oxygen includes: Determine the oxygen content outside the vehicle; The amount of oxygen to be released into the vehicle is determined based on the oxygen content outside the vehicle. Based on the stated value, the oxygen release device is controlled to release oxygen.
6. A device for preventing driver fatigue, characterized in that, The device is applied to a vehicle, the vehicle including an oxygen release device, and the device includes: The acquisition module is used to acquire relevant data of the vehicle when the vehicle meets preset conditions; wherein, the relevant data of the vehicle includes the oxygen content inside the vehicle; The control module is used to control the oxygen release device to release oxygen when the oxygen content in the vehicle is not greater than the oxygen content threshold.
7. The device for preventing driver fatigue according to claim 6, characterized in that, The vehicle's relevant data includes the interior temperature and humidity; the control module includes: The first detection unit is used to detect whether the temperature inside the vehicle is greater than a temperature threshold. The second detection unit is used to detect whether the humidity inside the vehicle is greater than the humidity threshold. An oxygen release rate determination unit is used to determine the oxygen release rate based on the vehicle interior temperature and the vehicle interior humidity when the vehicle interior temperature is greater than a temperature threshold and the vehicle interior humidity is greater than a humidity threshold. The control unit is used to control the oxygen releasing device to release oxygen according to the oxygen release rate.
8. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the method for preventing driver fatigue as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the method for preventing driver fatigue as described in any one of claims 1 to 5.
10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method for preventing driver fatigue as described in any one of claims 1 to 5.