A method, device, equipment and medium for detecting drunk driving by users

By installing gravity sensors and image acquisition equipment in cars for automated drunk driving testing, the problem of drinking driving testing in the existing technology relies on manual investigation and handling, improving detection efficiency and safety, and reducing the risk of traffic accidents.

CN115944288BActive Publication Date: 2025-08-19GAC HONDA AUTOMOBILE CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211578128.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-08-19
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

In the prior art, drunk driving testing requires on-site supervision and inspection by traffic police, which consumes police force and affects road traffic capacity. There is a high risk of traffic accidents before the driver is intercepted and has low safety.

Method used

By installing gravity sensors under the driver's seat to detect that the driver gets on the car, combining the image acquisition equipment to perform face recognition, judge the consistency of the face recognition results, and perform alcohol detection when the car is turned off or the neutral state reaches the threshold, automatic drunk driving risk detection is achieved.

Benefits of technology

No manual operation is required, which improves detection efficiency, reduces the risk of drunk drivers driving before being intercepted, improves the safety of car use, and ensures the safety of occupants' lives and property.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115944288B_ABST
    Figure CN115944288B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for detecting drunk driving by a user. The method detects whether a driver is in the car by means of a gravity sensor installed under the driver's seat; when it is determined that a driver is in the car, the image information of the driver is collected by means of an image acquisition device, and facial recognition is performed on the image information to obtain a corresponding facial recognition result; it is determined whether the current facial recognition result is consistent with the facial recognition result obtained last time; if the current facial recognition result is consistent with the facial recognition result obtained last time, it is determined whether the car is in an ignition-off state; if the car is in an ignition-off state, or the time the car is in a neutral position is greater than or equal to a first threshold, the alcohol detection mechanism is controlled to perform an alcohol test on the driver to obtain a corresponding test result. This method is conducive to reducing drunk driving and protecting the life and property safety of passengers. The present application can be widely used in the field of automotive technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automotive technology, and in particular to a method, device, equipment, and medium for detecting drunk driving by a user. Background Art

[0002] Cars are an important means of transportation today, bringing significant convenience to people's lives and work. However, due to their high speeds, driving safety is a critical requirement. It's well known that alcohol consumption significantly impairs physiological states such as reaction speed, operating speed, judgment, recognition, and vision. Therefore, drivers who drive under the influence are highly susceptible to traffic accidents.

[0003] In related technologies, traffic management departments typically set up drunk driving checkpoints at random locations and times, imposing severe penalties on confirmed drunk drivers. While this approach can accurately identify drivers who have been drinking, it requires on-site police supervision and investigation, which not only consumes police resources but also reduces road traffic capacity. Furthermore, the risk of a drunk driver causing an accident remains high while driving before being stopped, making the situation less safe.

[0004] Therefore, the problems existing in the existing technology still need to be solved and optimized. Summary of the Invention

[0005] The purpose of this application is to solve one of the technical problems existing in the related art to at least a certain extent.

[0006] To this end, one purpose of the embodiments of the present application is to provide a method, device, equipment and medium for detecting user drunk driving.

[0007] In order to achieve the above technical objectives, the technical solutions adopted in the embodiments of the present application include:

[0008] In one aspect, an embodiment of the present application provides a method for detecting drunk driving by a user, the method comprising:

[0009] The gravity sensor installed under the driver's seat detects whether the driver is in the car;

[0010] When it is determined that a driver has boarded the vehicle, the image information of the driver is collected by an image acquisition device, and face recognition is performed on the image information to obtain a corresponding face recognition result;

[0011] Determine whether the current face recognition result is consistent with the last face recognition result;

[0012] If the current face recognition result is consistent with the last face recognition result, determine whether the car is in the off state;

[0013] If the car is in an ignition-off state, or the time the car is in a neutral position is greater than or equal to a first threshold, the alcohol detection mechanism is controlled to perform an alcohol test on the driver to obtain a corresponding test result.

[0014] In addition, the user drunk driving detection method according to the above embodiment of the present application may also have the following additional technical features:

[0015] Furthermore, in one embodiment of the present application, the detecting whether a driver is on board the vehicle by using a gravity sensor installed under the driver's seat includes:

[0016] Detect the door status of the car driver's seat;

[0017] When it is determined that the door state changes from the closed state to the open state, obtaining gravity data detected by the gravity sensor;

[0018] Determining whether the gravity data is greater than a second threshold;

[0019] If the gravity data is greater than a second threshold, it is determined that a driver has boarded the vehicle;

[0020] Alternatively, if the gravity data is less than or equal to the second threshold, it is determined that no driver is boarding the vehicle.

[0021] Furthermore, in one embodiment of the present application, the method further includes:

[0022] If the current face recognition result is inconsistent with the face recognition result obtained last time, the alcohol detection mechanism is controlled to perform an alcohol test on the driver to obtain a corresponding test result.

[0023] Further, in one embodiment of the present application, the alcohol detection mechanism includes a rotating mechanism, a connecting rod and a detection mechanism;

[0024] One end of the rotating mechanism is arranged on the driver's seat, and the other end of the rotating mechanism is connected to the connecting rod. The detection mechanism includes an alcohol concentration sensor, and the detection mechanism is connected to the connecting rod.

[0025] Furthermore, in one embodiment of the present application, the alcohol test on the driver to obtain the corresponding test result includes:

[0026] detecting the driver's exhaled breath flow data;

[0027] Determining whether the flow data is greater than a third threshold;

[0028] If the flow rate data is greater than a third threshold, obtaining concentration data detected by the alcohol concentration sensor;

[0029] Determining whether the concentration data is greater than a fourth threshold;

[0030] If the concentration data is greater than a fourth threshold, determining that the driver has a risk of drunk driving;

[0031] Alternatively, if the concentration data is less than the fourth threshold, it is determined that the driver does not have the risk of drunk driving.

[0032] Furthermore, in one embodiment of the present application, the method further includes:

[0033] If the flow data is less than or equal to the third threshold, a prompt message is output; the prompt message is used to prompt the driver to exhale again.

[0034] On the other hand, an embodiment of the present application provides a device for detecting drunk driving, the device comprising:

[0035] A detection unit is used to detect whether a driver has boarded the vehicle through a gravity sensor installed under the driver's seat;

[0036] The recognition unit is configured to, when determining that a driver has boarded the vehicle, collect image information of the driver through an image acquisition device, perform facial recognition on the image information, and obtain a corresponding facial recognition result;

[0037] The first judgment unit is used to judge whether the current face recognition result is consistent with the last face recognition result;

[0038] The second judgment unit is used to judge whether the car is in an off state if the current face recognition result is consistent with the last face recognition result;

[0039] The processing unit is used to control the alcohol detection mechanism to perform an alcohol test on the driver if the car is in an off state or the time the car is in a neutral position is greater than or equal to a first threshold, and obtain a corresponding test result.

[0040] In another aspect, an embodiment of the present application provides a computer device, including:

[0041] at least one processor;

[0042] at least one memory for storing at least one program;

[0043] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned method for detecting drunk driving by a user.

[0044] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the above-mentioned method for detecting drunk driving by a user.

[0045] The advantages and benefits of this application will be partially given in the following description, and partially become apparent from the following description, or learned through practice of this application:

[0046] The present application discloses a method for detecting drunk driving by a user, the method comprising: detecting whether a driver has boarded the vehicle using a gravity sensor installed under the driver's seat; when it is determined that a driver has boarded the vehicle, capturing image information of the driver using an image acquisition device, performing facial recognition on the image information, and obtaining a corresponding facial recognition result; determining whether the current facial recognition result is consistent with the previous facial recognition result; if the current facial recognition result is consistent with the previous facial recognition result, determining whether the vehicle is in an ignition-off state; if the vehicle is in an ignition-off state, or if the vehicle has been in neutral for a period of time greater than or equal to a first threshold, controlling an alcohol detection mechanism to perform an alcohol test on the driver and obtaining a corresponding test result. The method detects whether a user is at risk of drunk driving based on a detailed logical judgment process, does not require manual operation, and has high detection efficiency; and, since the method is triggered as soon as the driver boards the vehicle, it can effectively reduce the occurrence of drunk driving drivers who have already engaged in driving behavior before being intercepted and discovered, thereby reducing the risk of traffic accidents, improving the safety of vehicle use, and helping to reduce drunk driving behavior and protect the lives and property of passengers. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following introduction is made to the drawings of the embodiments of the present application or the related technical solutions in the prior art. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0048] Figure 1 A flowchart of a method for detecting drunk driving by a user provided in an embodiment of the present application is shown;

[0049] Figure 2 This is a structural diagram of a user drunk driving detection system provided in an embodiment of the present application;

[0050] Figure 3 A schematic structural diagram of a rotating mechanism provided in an embodiment of the present application;

[0051] Figure 4A schematic structural diagram of another rotating mechanism provided in an embodiment of the present application;

[0052] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be considered as limiting the present application. All other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0054] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0056] Cars are an important means of transportation today, bringing significant convenience to people's lives and work. However, due to their high speeds, driving safety is a critical requirement. It's well known that alcohol consumption significantly impairs physiological states such as reaction speed, operating speed, judgment, recognition, and vision. Therefore, drivers who drive under the influence are highly susceptible to traffic accidents.

[0057] In related technologies, traffic management departments typically set up drunk driving checkpoints at random locations and times, imposing severe penalties on confirmed drunk drivers. While this approach can accurately identify drivers who have been drinking, it requires on-site police supervision and investigation, which not only consumes police resources but also reduces road traffic capacity. Furthermore, the risk of a drunk driver causing an accident remains high while driving before being stopped, making the situation less safe.

[0058] In view of this, a method for detecting drunk driving by a user is provided in an embodiment of the present application. The method detects whether the user has a risk of drunk driving based on a detailed logical judgment process, does not rely on manual operation, and has high detection efficiency. Moreover, the method is triggered as soon as the driver gets in the car, which can effectively reduce the situation where the drunk driver has already engaged in driving behavior before being intercepted and discovered, can reduce the risk of traffic accidents, improve the safety of car use, and is conducive to reducing drunk driving behavior and protecting the lives and property of passengers.

[0059] Please refer to Figure 1 , Figure 1 This is a flow chart of a method for detecting drunk driving provided by an embodiment of the present application, with reference to Figure 1 The user drunk driving detection method includes but is not limited to:

[0060] Step 110: Detect whether a driver is in the vehicle by using a gravity sensor installed under the driver's seat;

[0061] In this step, when the user is tested for drunk driving, the process is triggered based on the user's (mainly the driver's) behavior of getting on the car. It is understandable that in conventional detection methods, only the detection accuracy is generally considered, and the triggering logic of the detection is not considered. There may be a situation where the driver has been driving drunk for a period of time before the driver is detected to be driving drunk. In this way, not only may the driver himself be at risk of violating the law, but the personal safety of the driver and others may also be endangered. Therefore, in the embodiment of the present application, the detection method first detects whether the driver gets on the car. When the driver gets on the car, the subsequent detection logic is executed once, which can greatly improve the comprehensiveness and reliability of the detection and eliminate the drunk driving behavior at the initial node.

[0062] Step 120: When it is determined that a driver has boarded the vehicle, an image acquisition device is used to capture image information of the driver, and facial recognition is performed on the image information to obtain a corresponding facial recognition result;

[0063] In this step, once it is determined that a driver has boarded the vehicle, an image capture device can be used to capture the driver's image information. Specifically, the image capture device can be a camera, which can be positioned in front of the driver's seat. The captured image information can be subjected to facial recognition, analyzed for the driver's identity information, and a corresponding facial recognition result can be obtained. The purpose of performing facial recognition on the driver is to determine whether the same driver has been driving for a continuous period of time or whether a new driver has been driving.

[0064] Step 130: Determine whether the current face recognition result is consistent with the last face recognition result;

[0065] In this step, after obtaining the current face recognition result, it can be matched and verified with the face recognition result obtained by the last face recognition to determine whether the two face recognition results are consistent. If the current face recognition result is consistent with the face recognition result obtained last time, it means that the same driver was driving the car twice; conversely, if the current face recognition result is inconsistent with the face recognition result obtained last time, it means that the driver is not the same driver in the two driving. It can be understood that in the embodiment of the present application, when the driver of the car is changed, the new driver needs to be tested for drunk driving. Therefore, if the current face recognition result is inconsistent with the face recognition result obtained last time, the relevant alcohol detection mechanism can be controlled to perform an alcohol test on the driver to obtain the corresponding test result.

[0066] Here, the alcohol detection mechanism may include a relevant alcohol concentration sensor. By performing an alcohol test on the driver, it can be determined whether the driver is at risk of driving under the influence. If the driver is not at risk of driving under the influence, the vehicle can be started and operated normally. If the driver is determined to be at risk of driving under the influence, relevant alarm information can be triggered, such as a buzzer to remind the user that they may be drinking and should not drive the vehicle for safety reasons. Of course, in some embodiments, it can also be linked with the relevant control unit of the vehicle. If the risk of driving under the influence is detected, the vehicle can be controlled to remain in the parking state, and only the air conditioning, audio and other functions can be provided to the user, preventing the user from starting the vehicle and causing unnecessary accidents.

[0067] Step 140: If the current face recognition result is consistent with the last face recognition result, determine whether the car is in an ignition-off state;

[0068] In this step, when the current driver is determined to be the same as the previous driver, there are generally two main scenarios. The first is driving behavior at two different time points. For example, a user drives a car one day and parks it at a designated location. Some time later, if the user uses the car again, the facial recognition results detected at this time will be consistent with the previous facial recognition results. However, since a long period of time has passed and the car has been out of use, it is uncertain whether the user consumed alcohol between the two uses. Therefore, a breathalyzer test is required for the driver. Another scenario is that the user briefly exits the car during a particular drive due to a need. For example, if the driver needs to retrieve a tool from the trunk while driving, they may not turn off the car, but immediately return to the driver's seat after retrieving the tool and continue driving. In this case, retesting the driver according to the aforementioned logic would be unnecessary, wasteful, and likely cause user annoyance. Therefore, embodiments of the present application need to effectively distinguish between the two aforementioned scenarios.

[0069] In some embodiments, the time interval between the driver exiting the vehicle and re-entering it can be detected. If the time interval is short, it indicates that the driver has not left the vehicle and a further alcohol test may not be necessary. In other embodiments, a determination can be made based on whether the vehicle is currently in a stalled state. It is understood that if the vehicle is currently in a stalled state, it is likely in the process of starting up again, so a driver alcohol test can be performed at this time.

[0070] Step 150: If the car is in an ignition-off state, or the time the car is in a neutral position is greater than or equal to a first threshold, control the alcohol detection mechanism to perform an alcohol test on the driver to obtain a corresponding test result.

[0071] In this step, if the current face recognition result is consistent with the face recognition result obtained last time, and the car is not currently in a flameout state, then it is highly likely that the driver has just gotten off the car to do some urgent tasks. However, it is not ruled out that the driver may be away for a long time, and there is drinking behavior during this time period. Therefore, in an embodiment of the present application, the time during which the car is not in a flameout (i.e., in a neutral position) is restricted. If the duration that the current car is in a neutral position is less than a first threshold value (e.g., 5 minutes), it can be considered that the time interval between the driver's two driving behaviors is short, and the probability of drinking is small. At this time, an alcohol test can be performed on the driver. On the contrary, if the duration that the car is in a neutral position is greater than or equal to the first threshold value, the alcohol detection mechanism can be controlled to perform an alcohol test on the driver to obtain a corresponding test result, so as to improve the comprehensiveness of the detection of the car's driving behavior, while taking into account the user's actual situation, minimizing interference with the user as much as possible, and avoiding inconvenience to the user's normal use of the car.

[0072] Specifically, in the embodiment of the present application, the above detection method can be implemented by relying on the user drunk driving detection system built, referring to Figure 2 , the system comprises:

[0073] Gravity sensor 2, controller 3, rotating mechanism 5, connecting rod 6, detection mechanism 7, alarm and power module;

[0074] The gravity sensor 2 is arranged below the driver's seat 1, one end of the rotating mechanism 5 is arranged on the driver's seat 1, and the other end of the rotating mechanism 5 is connected to the connecting rod 6. The detection mechanism 7 includes an alcohol concentration sensor, and the detection mechanism 7 is connected to the connecting rod 6;

[0075] The controller 3 is connected to the gravity sensor 2, the alcohol concentration sensor and the alarm;

[0076] The power supply module is used to supply power to the gravity sensor 2, the controller 3, the rotating mechanism 5, the alcohol concentration sensor and the alarm.

[0077] The user drunk driving detection system provided in the embodiments of the present application includes a gravity sensor 2, a controller 3, a rotating mechanism 5, a connecting rod 6, a detection mechanism 7, an alarm, and a power module. The gravity sensor 2 can be positioned below the driver's seat 1 to detect whether a new person has entered the vehicle and taken the driver's seat, i.e., whether a driver has entered the vehicle. In some embodiments, the system of the present application can also be associated with the vehicle's door sensor switch 9 to determine whether a driver has entered the vehicle based on a comprehensive assessment of the door sensor switch 9 and the gravity sensor 2.

[0078] In this embodiment of the present application, controller 3 is the core control system within the system. It can determine whether a driver is currently in the vehicle based on the detection data from gravity sensor 2 and obtain image information from image acquisition device 4, thereby controlling the movement of rotation mechanism 5 to perform drunk driving detection. Furthermore, it can determine whether the user has been drinking based on the alcohol concentration test results from detection mechanism 7. If the alcohol concentration is high, an alarm will sound, alerting relevant personnel to the risk of drunk driving.

[0079] In some embodiments, detecting whether a driver is in the vehicle by using a gravity sensor installed under the driver's seat includes:

[0080] Detect the door status of the car driver's seat;

[0081] When it is determined that the door state changes from the closed state to the open state, obtaining gravity data detected by the gravity sensor;

[0082] Determining whether the gravity data is greater than a second threshold;

[0083] If the gravity data is greater than a second threshold, it is determined that a driver has boarded the vehicle;

[0084] Alternatively, if the gravity data is less than or equal to the second threshold, it is determined that no driver is boarding the vehicle.

[0085] In an embodiment of the present application, when detecting whether there is an event of a driver getting on the car, the state of the door of the driver's seat of the car can be detected in real time. When it is opened, it indicates that there may be an event of the driver getting on the car. At this time, the gravity data detected by the gravity sensor can be obtained. The gravity data can then be compared with a pre-set second threshold to determine whether there is someone in the driver's seat. If the gravity data is greater than the second threshold, it can be determined that there is an event of the driver getting on the car. Conversely, if the gravity data is less than or equal to the second threshold, it can be determined that there is no event of the driver getting on the car. In an embodiment of the present application, the dual logical judgment based on the door state and the gravity sensor can improve the accuracy and response speed of detection.

[0086] In some embodiments, the alcohol detection mechanism includes a rotating mechanism, a connecting rod, and a detection mechanism;

[0087] One end of the rotating mechanism is arranged on the driver's seat, and the other end of the rotating mechanism is connected to the connecting rod. The detection mechanism includes an alcohol concentration sensor, and the detection mechanism is connected to the connecting rod.

[0088] In the embodiment of the present application, the rotating structure is connected to the detection mechanism 7 through a connecting rod 6. The rotating mechanism 5 can rotate the detection mechanism 7 in front of the driver by executing an action, thereby realizing drunk driving detection conveniently and quickly.

[0089] For details, please refer to Figure 3 and Figure 4 In the embodiment of the present application, the rotating mechanism 5 is provided with a fixed seat 501 and a mounting tube 502. The mounting tube 502 can be inserted into the driver's seat 1 and is hollow in the middle so that the power line can pass through. The fixed seat 501 passes through one end of the mounting tube 502 and is locked on the seat. One end of the fixed seat 501 is provided with a thread 503, and a corresponding sleeve 504 is provided. The internal thread of the sleeve 504 is assembled with the thread 503 of the fixed seat 501. The end surface of the sleeve 504 is provided with three holes 505 and a groove is provided therein. The rotating mechanism 5 is provided with a first rotating motor 510. The core shaft in the middle of the first rotating motor 510 can rotate. One end of the core shaft is connected to the wire 507, and the other end is provided with a hexagonal prism 512, which is assembled with the motor connecting rod 508, so that the rotation of the middle core shaft of the first rotating motor 510 drives the rotation of the motor connecting rod 508. The outer ring of the first rotary motor 510 is provided with a boss 511. This boss 511 fits into a slot, securing the outer ring of the first rotary motor 510 while allowing the central shaft to rotate. A first contact switch 513 is provided on the central shaft of the first rotary motor 510. A corresponding slot is provided on the outer ring of the first rotary motor 510. The first contact switch 513 moves within this slot as the central shaft rotates.

[0090] The other end of the motor connecting rod 508 is provided with a hole, through which the second rotary motor 520 and the connecting rod 6 are installed together. When the alcohol detection task is activated, the central core shaft of the first rotary motor 510 rotates 90°, and the first contact switch 513 rotates 90° accordingly, triggering the second rotary motor 520 to be energized. The second rotary motor 520 then rotates 45°, driving the connecting rod 6 and the detection mechanism 7 to rotate 45° around the axis of the second rotary motor 520. At this time, the detection mechanism 7 can be positioned at the driver's mouth and can perform alcohol concentration detection. When the detection mechanism 7 completes the detection, the second rotary motor 520 rotates 45° in the opposite direction, and the second contact switch 521 also rotates 45°, triggering the first rotary motor 510 to conduct in the opposite direction. The first rotary motor 510 then rotates 90° in the opposite direction, and the rotating mechanism 5 as a whole returns to its initial position. In addition, the rotating mechanism 5 can also be provided with an outer cover 530, and a groove 531 is opened at the bottom of the outer cover 530 for the connecting rod 6 to rotate therein. The end face of the outer cover 510 is provided with three pins 532, which are inserted into the corresponding three holes 505, and the rotating mechanism 5 is installed.

[0091] In some embodiments, performing an alcohol test on the driver and obtaining a corresponding test result includes:

[0092] detecting the driver's exhaled breath flow data;

[0093] Determining whether the flow data is greater than a third threshold;

[0094] If the flow rate data is greater than a third threshold, obtaining concentration data detected by the alcohol concentration sensor;

[0095] Determining whether the concentration data is greater than a fourth threshold;

[0096] If the concentration data is greater than a fourth threshold, determining that the driver has a risk of drunk driving;

[0097] Alternatively, if the concentration data is less than the fourth threshold, it is determined that the driver does not have the risk of drunk driving.

[0098] In an embodiment of the present application, when conducting an alcohol test on a driver, the flow data of the driver's exhaled breath can be detected, and then the flow data can be compared with a pre-set third threshold value. If the flow data is less than or equal to the third threshold value, the flow data is small, indicating that the current exhalation level does not meet the standard, which may affect the concentration detection result. At this time, a prompt message can be output to prompt the driver to exhale again. If the flow data is greater than the third threshold value, it means that the current exhaled flow rate is compliant and meets the detection standard. At this time, the concentration data detected by the alcohol concentration sensor can be obtained and compared with the pre-set fourth threshold value. If the concentration data is greater than the fourth threshold value, it can be determined that the driver is at risk of drunk driving; conversely, if the concentration data is less than the fourth threshold value, it can be determined that the driver is not at risk of drunk driving.

[0099] It should be noted that in the embodiment of the present application, there is no restriction on the specific size of each threshold value, which can be flexibly set and adjusted as needed.

[0100] In some embodiments, the present application can also determine whether the driver may be driving under the influence by using image recognition to determine whether the driver has suspicious drinking behavior while the car is driving, thereby improving the comprehensiveness of detection and ensuring driving safety.

[0101] The present application also provides a device for detecting drunk driving, comprising:

[0102] A detection unit is used to detect whether a driver has boarded the vehicle through a gravity sensor installed under the driver's seat;

[0103] The recognition unit is configured to, when determining that a driver has boarded the vehicle, collect image information of the driver through an image acquisition device, perform facial recognition on the image information, and obtain a corresponding facial recognition result;

[0104] The first judgment unit is used to judge whether the current face recognition result is consistent with the last face recognition result;

[0105] The second judgment unit is used to judge whether the car is in an off state if the current face recognition result is consistent with the last face recognition result;

[0106] The processing unit is used to control the alcohol detection mechanism to perform an alcohol test on the driver if the car is in an off state or the time the car is in a neutral position is greater than or equal to a first threshold, and obtain a corresponding test result.

[0107] It is understandable that Figure 1 The contents of the embodiment of the user drunk driving detection method shown in the figure are applicable to the embodiment of the user drunk driving detection device. The functions specifically implemented by the embodiment of the user drunk driving detection device are the same as those in the embodiment of the figure. Figure 1The embodiment of the method for detecting drunk driving of a user shown in FIG. 1 is the same as that of FIG. 1 and has the same beneficial effects as those achieved by Figure 1 The beneficial effects achieved by the embodiment of the user drunk driving detection method shown are also the same.

[0108] Reference Figure 5 , the embodiment of the present application further discloses a computer device, including:

[0109] at least one processor 201;

[0110] At least one memory 202, configured to store at least one program;

[0111] When at least one program is executed by at least one processor 201, the at least one processor 201 implements the following Figure 1 An embodiment of a method for detecting drunk driving by a user is shown.

[0112] It is understandable that if Figure 1 The contents of the embodiment of a method for detecting drunk driving by a user shown in FIG. 1 are applicable to the embodiment of the computer device. The functions specifically implemented by the embodiment of the computer device are similar to those in FIG. Figure 1 The embodiment of the method for detecting drunk driving of a user shown in FIG. 1 is the same as that shown in FIG. 1 and has the same beneficial effects as those of FIG. Figure 1 The beneficial effects achieved by the embodiment of the user drunk driving detection method shown are also the same.

[0113] The present application also discloses a computer-readable storage medium in which a program executable by a processor is stored. When the program is executed by the processor, it is used to implement the following Figure 1 An embodiment of a method for detecting drunk driving by a user is shown.

[0114] It is understandable that if Figure 1 The contents of the embodiment of the user drunk driving detection method shown in FIG. 1 are applicable to the embodiment of this computer-readable storage medium. The functions specifically implemented by this computer-readable storage medium embodiment are similar to those in FIG. Figure 1 The embodiment of the method for detecting drunk driving of a user shown in FIG. 1 is the same as that shown in FIG. 1 and has the same beneficial effects as those of FIG. Figure 1 The beneficial effects achieved by the embodiment of the user drunk driving detection method shown are also the same.

[0115] In some optional embodiments, the functions / operations mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the functions / operations involved, the two boxes shown in succession may actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiments presented and described in the flow chart of the present application are provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operations and logic flows presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.

[0116] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features can be integrated into a single physical system and / or software module, or one or more functions and / or features can be implemented in separate physical systems or software modules. It is also understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present application. More specifically, given the properties, functions, and internal relationships of the various functional modules in the system disclosed herein, the actual implementation of the module will be understood within the conventional skills of an engineer. Therefore, those skilled in the art can implement the present application as set forth in the claims using ordinary techniques without undue experimentation. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the appended claims and their equivalents.

[0117] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0118] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, system, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, system, or device). For purposes of this specification, a "computer-readable medium" can be any system that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, system, or device.

[0119] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic systems), a portable computer disk cartridge (magnetic systems), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic system, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0120] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0121] In the above description of this specification, reference to the terms "one embodiment / example," "another embodiment / example," or "certain embodiments / examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples.

[0122] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.

[0123] The above is a detailed description of the preferred implementation of the present application, but the present application is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

[0124] In the description of this specification, reference to the terms "one embodiment," "another embodiment," or "certain embodiments" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples.

[0125] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A method for detecting drunk driving by a user, characterized in that: The method comprises: The gravity sensor installed under the driver's seat detects whether the driver is in the car; When it is determined that a driver has boarded the vehicle, the image information of the driver is collected by an image acquisition device, and face recognition is performed on the image information to obtain a corresponding face recognition result; Determine whether the current face recognition result is consistent with the last face recognition result; If the current face recognition result is consistent with the last face recognition result, determine whether the car is in an off state and the length of time the car has been in neutral; If the vehicle is in an ignition-off state, or the vehicle is in a neutral position for a period of time greater than or equal to a first threshold, controlling an alcohol detection mechanism to perform an alcohol detection on the driver and obtaining a corresponding detection result; If the car is not in an engine-off state and the time the car is in the neutral position is less than the first threshold, the driver will not be tested for alcohol this time.

2. A method for detecting drunk driving according to claim 1, characterized in that: The method of detecting whether a driver has boarded the vehicle by using a gravity sensor installed under the driver's seat includes: Detect the door status of the car driver's seat; When it is determined that the door state changes from the closed state to the open state, obtaining gravity data detected by the gravity sensor; Determining whether the gravity data is greater than a second threshold; If the gravity data is greater than a second threshold, it is determined that a driver has boarded the vehicle; Alternatively, if the gravity data is less than or equal to the second threshold, it is determined that no driver is boarding the vehicle.

3. A method for detecting drunk driving according to claim 1, characterized in that: The method further comprises: If the current face recognition result is inconsistent with the face recognition result obtained last time, the alcohol detection mechanism is controlled to perform an alcohol test on the driver to obtain a corresponding test result.

4. A method for detecting drunk driving according to any one of claims 1 to 3, characterized in that: The alcohol detection mechanism includes a rotating mechanism, a connecting rod and a detection mechanism; One end of the rotating mechanism is arranged on the driver's seat, and the other end of the rotating mechanism is connected to the connecting rod. The detection mechanism includes an alcohol concentration sensor, and the detection mechanism is connected to the connecting rod.

5. A method for detecting drunk driving according to claim 4, characterized in that: The alcohol test on the driver is performed to obtain a corresponding test result, including: detecting the driver's exhaled breath flow data; Determining whether the flow data is greater than a third threshold; If the flow rate data is greater than a third threshold, obtaining concentration data detected by the alcohol concentration sensor; Determining whether the concentration data is greater than a fourth threshold; If the concentration data is greater than a fourth threshold, determining that the driver has a risk of drunk driving; Alternatively, if the concentration data is less than the fourth threshold, it is determined that the driver does not have the risk of drunk driving.

6. A method for detecting drunk driving according to claim 5, characterized in that: The method further comprises: If the flow data is less than or equal to the third threshold, a prompt message is output; the prompt message is used to prompt the driver to exhale again.

7. A device for detecting drunk driving, characterized in that: The device comprises: A detection unit is used to detect whether a driver has boarded the vehicle through a gravity sensor installed under the driver's seat; The recognition unit is configured to, when determining that a driver has boarded the vehicle, collect image information of the driver through an image acquisition device, perform facial recognition on the image information, and obtain a corresponding facial recognition result; The first judgment unit is used to judge whether the current face recognition result is consistent with the last face recognition result; a second judgment unit, configured to judge whether the vehicle is in an ignition-off state and a length of time the vehicle has been in a neutral position if the current face recognition result is consistent with the last face recognition result; The processing unit is configured to control the alcohol detection mechanism to perform an alcohol test on the driver and obtain a corresponding test result if the vehicle is in an ignition-off state or the time the vehicle is in a neutral position is greater than or equal to a first threshold; and if the vehicle is not in an ignition-off state and the time the vehicle is in a neutral position is less than the first threshold, not perform an alcohol test on the driver this time.

8. A computer device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a user drunk driving detection method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement a user drunk driving detection method as described in any one of claims 1 to 6 when executed by the processor.

Citation Information

Patent Citations

  • Drunken driving detection method, system, mobile terminal and storage medium

    CN108859756A

  • Driving safety detection method and system and vehicle

    CN111016649A

  • Prevent wine and drive automobile staring system based on alcohol detection

    CN204870582U