Driver identification method and vehicle
By dynamically enabling and disabling the facial recognition function when the vehicle starts, the problem of CPU resource waste caused by continuous operation in the DMS is solved, and timely recognition and resource optimization are achieved when the driver is changed.
Patent Information
- Application Number
- CN202310894880.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2043-07-20
AI Technical Summary
The facial recognition algorithm in the driver monitoring system (DMS) of existing vehicles runs continuously after the vehicle is started, consuming a large amount of CPU resources and resulting in resource waste.
The facial recognition function is enabled when the vehicle starts and disabled under preset conditions. Facial recognition is only re-enabled when a driver change is detected, in order to reduce unnecessary CPU resource consumption.
By dynamically controlling the activation and deactivation of the facial recognition function, CPU resource consumption is reduced, ensuring timely identification of new drivers when drivers are replaced, thus improving resource utilization efficiency and system intelligence.
Smart Images

Figure CN116665194B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of vehicles, and particularly relates to a driver identification method and a vehicle. BACKGROUND
[0002] With the development of social economy, the number of motor vehicles is increasing, and the increase of vehicles facilitates people's travel, but also brings some problems, such as accidents caused by some operations of the driver during driving. Therefore, requirements are put forward for driver identity recognition, fatigue state monitoring, etc.
[0003] In the related art, a driver monitoring system (DMS) is widely used in vehicles to realize functions such as driver identity recognition and fatigue state monitoring. However, in order to achieve timely detection, the face recognition algorithm of the DMS in the vehicle often takes the ignition of the vehicle as a precondition for starting the algorithm, and continues to run in the background after starting, thereby occupying a large amount of CPU resources. SUMMARY
[0004] Therefore, the embodiments of the present application provide a driver identification method and a vehicle to reduce the occupation of CPU resources while ensuring the timeliness of face recognition.
[0005] The first aspect of the embodiments of the present application provides a driver identification method, comprising:
[0006] When the vehicle is started, the face recognition function is controlled to be started and the identity information of the driver is recognized;
[0007] In the state that the vehicle is started and the face recognition function is started, it is detected whether a preset face recognition function closing condition is met;
[0008] If the face recognition function closing condition is met, the face recognition function is controlled to be closed;
[0009] In the state that the vehicle is started and the face recognition function is closed, it is detected whether the driver is replaced, and if the driver is replaced, the face recognition function is controlled to be started again and the identity information of the driver is recognized.
[0010] In combination with the first aspect, in a possible implementation manner of the first aspect, whether the driver is replaced is detected, comprising:
[0011] It is detected whether the gear of the vehicle is in the parking gear, and whether the main driver side door of the vehicle is switched from the closed state to the open state;
[0012] If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is determined that the driver is replaced.
[0013] With reference to the first aspect, in a possible implementation manner of the first aspect, the driver identification method further includes:
[0014] If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, whether the cumulative time length of missing driver face images detected by the face recognition camera reaches a first preset time length threshold is detected;
[0015] If the cumulative time length of missing driver face images detected by the face recognition camera reaches the first preset time length threshold, it is determined that the driver replacement occurs.
[0016] With reference to the first aspect, in a possible implementation manner of the first aspect, the driver identification method further includes:
[0017] If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, whether a person gets up is detected by the seat pressure sensor of the main driver, and whether a person sits down after the main driver side door is closed is detected by the pressure sensor;
[0018] If it is detected by the seat pressure sensor that a person gets up, and it is detected by the pressure sensor that a person sits down after the main driver side door is closed, it is determined that the driver replacement occurs.
[0019] With reference to the first aspect, in a possible implementation manner of the first aspect, the face recognition function closing condition includes one or more of the following:
[0020] The identity information of the driver is successfully identified;
[0021] A face recognition function closing instruction is received;
[0022] The gear of the vehicle is not in the parking gear;
[0023] The speed of the vehicle is greater than a preset speed threshold;
[0024] The cumulative running time length of the face recognition function reaches a second preset time length threshold;
[0025] Correspondingly, if the face recognition function closing condition is met, the face recognition function is controlled to be closed, including: if at least one of the above face recognition function closing conditions is met, the face recognition function is controlled to be closed.
[0026] With reference to the first aspect, in a possible implementation manner of the first aspect, after the identity information of the driver is identified, the method further includes:
[0027] According to the identity information of the driver, the driving preference information of the driver is obtained;
[0028] According to the driving preference information, the vehicle is adjusted.
[0029] With reference to the first aspect, in a possible implementation manner of the first aspect, the driver identification method further includes:
[0030] If the identification result shows that the identity information of the driver does not exist, a prompt of whether to establish profile information of the driver is generated, the profile information including the identity information of the driver and corresponding driving preference information;
[0031] If an instruction of agreeing to establish the profile information of the driver is received, a profile information providing interface is displayed through a display screen of the vehicle, and the profile information is saved after the profile information is obtained.
[0032] With reference to the first aspect, in a possible implementation manner of the first aspect, before the profile information is saved, the method further includes:
[0033] A saving mode prompt of the profile information is generated, and the saving mode includes temporary saving and long-term saving;
[0034] If an instruction of temporary saving is received, the corresponding profile information is automatically cleared after a saving time length reaches a third preset time length threshold;
[0035] If an instruction of long-term saving is received, the corresponding profile information is not automatically cleared.
[0036] With reference to the first aspect, in a possible implementation manner of the first aspect, the driver identification method further includes:
[0037] If the identification result shows that the identity information of the driver does not exist, face images of each passenger in the vehicle in a preset time period before identification are obtained;
[0038] According to the face images, it is judged whether the identified driver is a passenger in the vehicle;
[0039] If the identified driver is not a passenger in the vehicle, the vehicle is locked, and the vehicle cannot be driven in the locked state;
[0040] If the identified driver is a passenger in the vehicle, the vehicle is not locked.
[0041] The second aspect of the embodiment of the application provides a driver identification device, including:
[0042] The identification module is configured to control a face recognition function to be turned on and to identify the identity information of the driver when the vehicle is started.
[0043] The first processing module is configured to detect whether a preset face recognition function closing condition is met in a state where the vehicle is started and the face recognition function is enabled; and if the face recognition function closing condition is met, the face recognition function is controlled to be closed.
[0044] The second processing module is configured to detect whether a driver replacement occurs in a state where the vehicle is started and the face recognition function is closed; and if the driver replacement occurs, the face recognition function is re-controlled to be enabled and identity information of the driver is recognized.
[0045] The third aspect of the embodiment of the present application provides a vehicle including an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method in the first aspect or any one of the implementation manners of the first aspect when executing the computer program.
[0046] The fourth aspect of the embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing a computer program, and the computer program implements the steps of the method in the first aspect or any one of the implementation manners of the first aspect when executed by a processor.
[0047] Compared with the prior art, the embodiment of the present application has the following beneficial effects:
[0048] In the embodiment of the present application, the face recognition function is controlled to be enabled when the vehicle is started, and then the face recognition function is controlled to be closed when the preset face recognition function closing condition is met, so that the face recognition function does not run in the background and occupy CPU resources when face recognition is not needed. After the face recognition function is closed, if the driver replacement scenario is detected, the face recognition function is re-controlled to be enabled and the identity information of the driver is recognized, so that the situation of replacing the driver during the driving of the vehicle is identified in time. BRIEF DESCRIPTION OF DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0050] Figure 1 is a flowchart of the driver recognition method provided by the embodiment of the present application Figure 1 ;
[0051] Figure 2 is a flowchart of the driver recognition method provided by the embodiment of the present application Figure 2 ;
[0052] Figure 3 is a structural schematic diagram of a driver identification device provided by an embodiment of the present application;
[0053] Figure 4 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0054] In the following description, for the purpose of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
[0055] In order to illustrate the technical solutions of the present application, the following will be described through specific embodiments.
[0056] The driver identification method of the embodiment of the present application can be integrated into a management system of a vehicle, specifically a driver monitoring system (DMS), and realize a face recognition function by matching a DMS camera.
[0057] The DMS camera can collect a face image of a driver and record face feature data of different drivers to a database of a vehicle terminal. When the driver gets into the vehicle again, the face feature data extracted is matched with a feature template stored in the database, and an identity ID of the current driver is output for account management.
[0058] The DMS needs to pre-enter face feature data to perform identity recognition in subsequent use. That is, a user triggers face information input by operating a vehicle terminal interface, collects face features of the user using a DMS camera, and stores feature values in a local database of a body domain controller. In the present embodiment, the upper limit of the number of users that can be stored is 5 (the number of users that can be input is set by the user, and the upper limit is generally not more than 10, and after exceeding, the algorithm recognition performance will be affected). When the number of input users reaches the upper limit of 5, further input will return an error code that the number of input users is full. A registered user can also delete his own face feature data, thereby realizing a management function. It can be set that a login account can only delete its own face data and cannot delete other people's data.
[0059] The specific steps of face input are as follows:
[0060] (1) After an unregistered driver starts the vehicle, the first start will directly enter "face input guidance" after completion of input condition self-checking, and the non-first start needs to manually click "face input".
[0061] (2) After the face recognition function is turned on, the first self-check of the input condition is performed, including whether the vehicle gear is in the parking gear "P", whether the camera is faulty, and whether the camera is blocked. If any of the three conditions is not met, the instrument and the display screen pop-up window, and the voice reminds the driver of the corresponding fault.
[0062] Exemplary:
[0063] If the gear is not in the "P" gear, the instrument and the display screen prompt "Please park the vehicle and put the gear into the "P" gear, and then retry";
[0064] If the camera is faulty, the instrument and the display screen prompt "Camera fault";
[0065] If the camera is blocked, the instrument and the display screen prompt "Camera blocked";
[0066] When two or more faults are triggered, the priority of the broadcast reminder is: gear > fault > blockage, and only the fault reminder with high priority is broadcast. If all three conditions are met, the "mobile phone verification code" authentication process is entered. After the mobile phone authentication process is completed, the "face input guide" is entered, and the display screen interface informs the user how to input the face, for example: "Sit down in the driving position and look straight ahead".
[0067] (3) Click "Start input", the instrument and the display screen enter the "face input" interface, the instrument displays an input prompt box, and the display screen interface text and voice remind the driver "Please look straight ahead", and the driver needs to be reminded of the problems that occur during the collection process, for example:
[0068] The input action holding time is not enough, the display screen text and voice remind "Please hold", the face collection position is not suitable, the display screen text and voice remind "Please turn your head to avoid blocking", etc.
[0069] (4) After the face input collection is completed, the face input result is returned.
[0070] Further, the basic function of face recognition is that when the user gets on the vehicle, the DMS camera collects the user's face features, compares them with the feature templates stored in the local database, identifies the driver's identity, and informs the host, which triggers the personal center login and personalized functions.
[0071] At present, in order to achieve timely detection, the DMS face recognition algorithm in the vehicle is usually turned on when the vehicle is started and continuously runs, which occupies a large amount of CPU resources. The inventors of the present application found that in addition to the need for face recognition when the vehicle is started, if the fatigue driving monitoring function is not turned on, the face recognition scene during driving is mainly the replacement of the driver in the middle.
[0072] Therefore, the present embodiment proposes a driver recognition method, as shown inFigure 1 As shown, the method comprises the following steps:
[0073] Step S101, when the vehicle starts, the face recognition function is controlled to be turned on and the identity information of the driver is recognized.
[0074] When the user gets on the vehicle and starts the vehicle, the DMS camera collects the facial features of the user and compares them with the stored facial feature values inside to recognize the driver's identity and trigger the personal center login and personalized function settings (such as seat adjustment, light adjustment, air conditioning adjustment, music adjustment, etc.).
[0075] Step S102, in the state where the vehicle starts and the face recognition function is turned on, it is detected whether the preset face recognition function closing condition is met, and if so, the face recognition function is controlled to be turned off.
[0076] After the face recognition function is turned on, if the preset face recognition function closing condition is met, the face recognition function will be controlled to be turned off in this embodiment, thereby releasing the occupation of CPU resources.
[0077] As a possible implementation manner, the face recognition function closing condition can include one or more of the following, but is not limited to:
[0078] (1) successfully recognizing the identity information of the driver;
[0079] (2) receiving a request for face entry;
[0080] (3) receiving a face recognition function closing instruction input by the user;
[0081] (4) the vehicle gear is not in the parking gear, ensuring safety;
[0082] (5) the vehicle speed is greater than a preset speed threshold (for example, 3 km / h), ensuring safety;
[0083] (6) the cumulative running time of the face recognition function reaches a first preset time threshold (for example, 15s), that is, no face is recognized or no successful recognition for a long time, and the program exits;
[0084] (7) the face recognition function works abnormally.
[0085] It can be understood that if any of the above conditions is met, the face recognition function is temporarily not needed, and the face recognition function can be controlled to be turned off to release the occupation of CPU resources.
[0086] Step S103, in the state where the vehicle starts and the face recognition function is turned off, it is detected whether the driver replacement scenario occurs, and if so, the face recognition function is controlled to be turned on again and the identity information of the driver is recognized.
[0087] After the face recognition function is closed, the face recognition function is re-opened when the driver replacement is detected, the face recognition of the new driver is performed, the personal center login and personalization of the new driver are triggered, the face recognition function is ensured to be timely, and the vehicle design is more intelligent. After the face recognition function is re-opened, if the face recognition function closing condition is met again, the face recognition function is closed.
[0088] It can be seen that, in the embodiment of the present application, the face recognition function is controlled to be opened when the vehicle starts, and then the face recognition function is controlled to be closed when the preset face recognition function closing condition is met, so that the face recognition function is avoided to run in the background and occupy CPU resources when face recognition is not needed. After the face recognition function is closed, if the driver replacement scenario is detected, the face recognition function is re-controlled to be opened and the identity information of the driver is recognized, so that the situation of replacing the driver during the vehicle driving is timely recognized.
[0089] As a possible implementation manner, the step S103 of detecting whether the driver replacement scenario occurs can be detailed as follows:
[0090] Detecting whether the gear of the vehicle is in the parking gear, and detecting whether the main driver side door of the vehicle is switched from the closed state to the opened state;
[0091] If it is detected that the gear of the vehicle is in the parking gear, and the main driver side door is switched from the closed state to the opened state, it is determined that the driver replacement occurs.
[0092] When the driver is replaced during the vehicle driving, the usual operation is to control the vehicle to enter the parking gear, then open the door, the driver gets off, and a new driver gets on after a period of time. Therefore, the detection method designed in the embodiment can be that it is determined that the driver replacement scenario occurs when it is detected that the vehicle is in the parking gear, and the main driver side door is opened during this period. Moreover, this manner can avoid misjudging the situation that the driver does not open the door when parking and looking down to pick up something as the driver replacement scenario.
[0093] Further, the detection of whether the driver replacement scenario occurs can also be designed as follows: it is determined that the driver replacement scenario occurs when it is detected that the vehicle is in the parking gear, and the main driver side door is opened during this period, and the DMS camera loses the driver face image for more than 3s after the door is opened. The three conditions are triggered at the same time, which can avoid misjudging the situation that the driver opens the door when parking but does not get off as the driver replacement scenario, thereby further improving the accuracy of the judgment and preventing the face recognition function from being misopened to cause trouble to the user. It should be noted that after the face recognition function is closed, the system only does not run the face recognition algorithm, and the DMS camera can still collect the driver face image and simply determine whether there is a person.
[0094] Further, detecting whether the driver changes the scene can also be designed as follows: for the vehicle model equipped with seat pressure sensors, the pressure sensor can also be used as a precondition, for example, the gear is in "P" gear, the seat pressure sensor detects that the person has stood up after the door is opened, and the pressure sensor detects that the person has sat down again after the door is closed. The face recognition function is opened. The three conditions are triggered at the same time, which can avoid misjudgment of "the driver parks the car, opens the door, but does not get off" and other situations as the driver changes the scene, thereby further improving the accuracy of the determination and preventing the face recognition function from being mistakenly opened to cause trouble to the user.
[0095] In combination with the first aspect, in a possible implementation manner of the first aspect, after successfully identifying the identity information of the current driver, the method further includes:
[0096] obtaining driving preference information of the driver according to the identity information of the driver;
[0097] automatically adjusting a driving parameter of the vehicle according to the driving preference information.
[0098] In the embodiment, the driving preference information can include, but is not limited to, driving seat position information, driving seat air conditioner temperature and air conditioner wind direction setting information, rearview mirror setting information, steering wheel height or comfort setting information, music mode and volume information, and the like. Among them, the driving seat position information and the steering wheel height or comfort setting information also need a precondition before being adjusted, that is, the parking gear and the inquiry request pushed by the display screen, and the user decides whether to automatically adjust to avoid accidents.
[0099] In some embodiments, the driver identification method can further include:
[0100] If the identification result shows that there is no identity information of the driver, the user is asked whether to agree to establish the driver's archive information, and the archive information includes the identity information and the driving preference information;
[0101] If an instruction of agreeing to establish the archive information of the driver is received, the archive information input interface is displayed to the user through the display screen of the vehicle, and the archive information is saved after the user inputs.
[0102] In the embodiment, if the identification result shows that there is no identity information of the driver, the user can decide whether to establish the archive information of the driver, and the specific steps are referred to the face input process described above.
[0103] In one embodiment, before saving the archive information, the method further includes:
[0104] asking the user about the saving mode of the archive information; wherein the saving mode includes temporary saving and long-term saving;
[0105] If the saving mode of the archive information is temporary saving, the archive information is automatically cleared after the saving time reaches a third preset time threshold;
[0106] If the saving mode of the archive information is long-term saving, the archive information is not automatically cleared.
[0107] In the embodiment, the established archive information can be saved for a long time or temporarily. For the person who uses the vehicle for a long time, the archive information can be saved for a long time. For the person who temporarily uses the vehicle, the archive information can be temporarily saved. The third preset time threshold can be defined by the user according to the time of using the vehicle, which is equivalent to a timing deletion function.
[0108] For example, during long-distance driving, the scenario of taking turns to drive can be encountered. The replacement person can not be the person who uses the vehicle for a long time, but also needs to drive several times in the same day. At this time, the archive information can be established and temporarily saved, for example, the saving period can be one day. The vehicle will automatically identify and adjust the driving preference every time it drives in a day, which is very convenient. The archive information is automatically deleted after one day to avoid occupying the memory. Or for a public vehicle, the user establishes temporary archive information during use and sets the saving time, for example, one day. The archive information is automatically deleted after one day. Since there is a storage limit for user identity data, and the more users are stored, the more the algorithm recognition performance is affected. Therefore, by the design, the useless archive information is removed from the memory, the algorithm recognition performance is improved, and the user's trouble of frequently deleting archive information is saved.
[0109] In some embodiments, the driver identification method can further include:
[0110] If the identification result shows that there is no identity information of the driver, the face images of each passenger in the vehicle in a preset time period before identification are obtained;
[0111] According to the face images, it is judged whether the driver is a passenger in the vehicle;
[0112] If not, the vehicle is locked, and the vehicle cannot drive in the locked state;
[0113] If yes, the vehicle is not locked.
[0114] Some vehicles have safety restrictions, that is, the vehicle owner sets that non-authenticated users cannot drive the vehicle to avoid vehicle theft. The safety restriction program generally runs when the vehicle starts, that is, the identification result shows that there is no identity information of the driver, the vehicle is locked, and the vehicle is unlocked only after receiving the unlocking instruction of the vehicle owner.
[0115] However, for the scenario of long-distance driving, if the user does not want to establish the profile information, the security limiting program is run every time the driver changes, and the owner needs to unlock the vehicle every time, which is very inconvenient. Therefore, whether the driver is a passenger in the vehicle can be determined through face recognition, and if not, the vehicle is locked; if so, the passenger in the vehicle is considered as a safe driver, and the vehicle is not locked. Thus, the vehicle safety is ensured, and the operation is simplified. The face images of the passengers in the vehicle in the preset period can be obtained from the monitoring camera in the vehicle.
[0116] In one embodiment, the face recognition process can be as shown in Figure 2
[0117] (1) The vehicle is started.
[0118] (2) The face recognition function is started and the identity information of the driver is recognized; this process includes the operations of successful recognition, failed recognition, establishment of the profile information of the driver, etc.
[0119] (3) Whether the preset face recognition function closing condition is met is detected, and if not, the face recognition function remains open; if so, the face recognition function is controlled to be closed.
[0120] (4) Whether the driver replacement scenario appears is detected, and if so, the face recognition function is re-started and the identity information of the driver is recognized.
[0121] (5) Steps 3 and 4 are repeatedly executed until the vehicle is turned off, and the process is ended.
[0122] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0123] Referring to Figure 3 , the embodiment of the present application provides a driver recognition device 30, which comprises:
[0124] The recognition module 31 is configured to control the face recognition function to be started and the identity information of the driver to be recognized when the vehicle is started.
[0125] The first processing module 32 is configured to detect whether the preset face recognition function closing condition is met in the state that the vehicle is started and the face recognition function is started; if the face recognition function closing condition is met, the face recognition function is controlled to be closed.
[0126] The second processing module 33 is configured to detect whether the driver replacement appears in the state that the vehicle is started and the face recognition function is closed; if the driver replacement appears, the face recognition function is re-started and the identity information of the driver is recognized.
[0127] As a possible implementation manner, the second processing module 33 is specifically configured to:
[0128] detect whether the gear of the vehicle is in the parking gear and whether the main driver side door of the vehicle is switched from the closed state to the open state;
[0129] if it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is determined that the driver replacement occurs.
[0130] As a possible implementation manner, the second processing module 33 is specifically further configured to:
[0131] if it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is detected through the face recognition camera whether the cumulative time length of missing the driver's face image reaches a first preset time length threshold;
[0132] if it is detected through the face recognition camera that the cumulative time length of missing the driver's face image reaches the first preset time length threshold, it is determined that the driver replacement occurs.
[0133] As a possible implementation manner, the second processing module 33 is specifically further configured to:
[0134] if it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is detected through the seat pressure sensor of the main driver whether someone gets up, and after the main driver side door is closed, it is detected through the pressure sensor whether someone sits down;
[0135] if it is detected through the seat pressure sensor that someone gets up, and after the main driver side door is closed, it is detected through the pressure sensor that someone sits down, it is determined that the driver replacement occurs.
[0136] As a possible implementation manner, the face recognition function closing condition comprises one or more of the following:
[0137] the identity information of the driver is successfully recognized;
[0138] a face recognition function closing instruction is received;
[0139] the gear of the vehicle is not in the parking gear;
[0140] the vehicle speed of the vehicle is greater than a preset vehicle speed threshold;
[0141] the cumulative running time length of the face recognition function reaches a second preset time length threshold;
[0142] Correspondingly, if the face recognition function closing condition is met, the face recognition function is controlled to be closed, including: if at least one of the above face recognition function closing conditions is met, the face recognition function is controlled to be closed.
[0143] As a possible implementation manner, after the identity information of the driver is identified, the identification module 31 is further configured to:
[0144] According to the identity information of the driver, the driving preference information of the driver is obtained;
[0145] According to the driving preference information, the vehicle is adjusted.
[0146] As a possible implementation manner, the identification module 31 is further configured to:
[0147] If the identification result shows that there is no identity information of the driver, a prompt for whether to establish the profile information of the driver is generated, the profile information including the identity information of the driver and the corresponding driving preference information;
[0148] If an instruction to agree to establish the profile information of the driver is received, a profile information providing interface is displayed through the display screen of the vehicle, and the profile information is saved after the profile information is obtained.
[0149] As a possible implementation manner, before the profile information is saved, the identification module 31 is further configured to:
[0150] A saving mode prompt of the profile information is generated; wherein the saving mode includes temporary saving and long-term saving;
[0151] If a temporary saving instruction is received, the corresponding profile information is automatically cleared after the saving time reaches a third preset time threshold;
[0152] If a long-term saving instruction is received, the corresponding profile information is not automatically cleared.
[0153] As a possible implementation manner, the identification module 31 is further configured to:
[0154] If the identification result shows that there is no identity information of the driver, the facial images of each passenger in the vehicle in a preset time period before identification are obtained;
[0155] According to the facial images, it is judged whether the identified driver is a passenger in the vehicle;
[0156] If the identified driver is not a passenger in the vehicle, the vehicle is locked, and the vehicle cannot be driven in the locked state;
[0157] If the identified driver is a passenger in the vehicle, the vehicle is not locked.
[0158] The embodiment of the present application provides a vehicle, comprising an electronic device 40. Figure 4 Fig. 1 is a schematic diagram of the electronic device 40 provided by the embodiment of the present application. As shown in the figure, the electronic device 40 of the embodiment comprises a processor 41, a memory 42, and a computer program 43 stored in the memory 42 and executable on the processor 41, for example, a driver identification program. Figure 4 The processor 41 implements the steps in each of the above driver identification method embodiments when executing the computer program 43, for example, the steps S101-S103 shown in Fig. 1. Figure 1 Alternatively, the processor 41 implements the functions of each module in each of the above device embodiments when executing the computer program 43, for example, the functions of the modules 31-33 shown in Fig. 1. Figure 3
[0159] For example, the computer program 43 can be divided into one or more modules / units, one or more modules / units are stored in the memory 42 and executed by the processor 41 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program 43 in the electronic device 40.
[0160] The electronic device 40 can be a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The electronic device 40 can include, but is not limited to, the processor 41 and the memory 42. Those skilled in the art can understand that Figure 4 The electronic device 40 is only an example and does not constitute a limitation on the electronic device 40, and can include more or fewer components than shown, or combine certain components, or different components, for example, the electronic device 40 can also include an input / output device, a network access device, a bus and the like.
[0161] The processor 41 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0162] The memory 42 can be an internal storage unit of the electronic device 40, such as a hard disk or a memory of the electronic device 40. The memory 42 can also be an external storage device of the electronic device 40, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the electronic device 40. Further, the memory 42 can include both the internal storage unit and the external storage device of the electronic device 40. The memory 42 is used to store computer programs and other programs and data required by the electronic device 40. The memory 42 can also be used to temporarily store data that has been output or will be output.
[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or software. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0164] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0165] Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0166] In the embodiments of the present application, it should be understood that the disclosed apparatus / equipment and method can be implemented in other manners. For example, the embodiments of the apparatus / equipment described above are merely schematic, and the division of the modules or units can be different, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0167] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0168] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can be physically present separately, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0169] If the integrated module / unit is realized 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, all or part of the processes in the above-mentioned embodiment methods can also be completed by computer programs instructing related hardware, and the computer programs can be stored in a computer readable storage medium. When the processor executes the computer programs, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0170] The above examples are only used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing examples, those ordinarily skilled in the art should understand: the technical solutions recorded in the foregoing examples can still be modified, or some technical features can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A driver identification method characterized by, The method comprises the following steps: When the vehicle is started, the face recognition function is controlled to be turned on to identify the identity information of the driver; In the state that the vehicle is started and the face recognition function is turned on, it is detected whether a preset face recognition function closing condition is met; If the face recognition function closing condition is met, the face recognition function is controlled to be turned off; In the state that the vehicle is started and the face recognition function is turned off, it is detected whether the driver is replaced, and if the driver is replaced, the face recognition function is re-controlled to be turned on to identify the identity information of the driver; If the identification result shows that there is no identity information of the driver, the face images of each passenger in the vehicle in a preset period before identification are obtained; According to the face images, it is judged whether the identified driver is a passenger in the vehicle; If the identified driver is not a passenger in the vehicle, the vehicle is locked, and the vehicle cannot be driven in the locked state; If the identified driver is a passenger in the vehicle, the vehicle is not locked.
2. The driver identification method according to claim 1, characterized by, The detection of whether the driver is replaced comprises: It is detected whether the gear of the vehicle is in the parking gear and whether the main driver side door of the vehicle is switched from the closed state to the open state; If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is determined that the driver is replaced.
3. The driver identification method according to claim 2, characterized by, Further comprising: If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is detected through the face recognition camera whether the cumulative time length of missing driver face images reaches a first preset time length threshold; If the cumulative time length of missing driver face images reaches the first preset time length threshold through the face recognition camera, it is determined that the driver is replaced.
4. The driver identification method according to claim 2, characterized by, Further comprising: If it is detected that the gear of the vehicle is in the parking gear and the main driver side door is switched from the closed state to the open state, it is detected through the seat pressure sensor of the main driver whether someone gets up, and after the main driver side door is closed, it is detected through the pressure sensor whether someone sits down; If it is detected through the seat pressure sensor that someone gets up, and after the main driver side door is closed, it is detected through the pressure sensor that someone sits down, it is determined that the driver is replaced.
5. The driver identification method according to any one of claims 1 to 4, characterized in that, The face recognition function closing condition comprises one or more of the following: The identity information of the driver is successfully identified; A face recognition function closing instruction is received; The gear of the vehicle is not in the parking gear; The speed of the vehicle is greater than a preset speed threshold; The cumulative running time length of the face recognition function reaches a second preset time length threshold; Correspondingly, if the face recognition function closing condition is met, the face recognition function is controlled to be turned off, which comprises: if at least one of the above face recognition function closing conditions is met, the face recognition function is controlled to be turned off.
6. The driver identification method according to any one of claims 1 to 4, characterized by, After the identity information of the driver is identified, the method further comprises the following steps: According to the identity information of the driver, the driving preference information of the driver is obtained; According to the driving preference information, the vehicle is adjusted.
7. The driver identification method according to claim 1, characterized by, Further comprising: If the identification result shows that there is no identity information of the driver, a prompt is generated whether to establish profile information of the driver, the profile information including identity information of the driver and corresponding driving preference information; If an instruction of agreeing to establish the profile information of the driver is received, a profile information providing interface is displayed through a display screen of the vehicle, and the profile information is saved after the profile information is obtained.
8. The driver identification method according to claim 7, characterized by, Before saving the profile information, further comprising: generating a saving mode prompt of the profile information; wherein the saving mode includes temporary saving and long-term saving; If an instruction of temporary saving is received, the corresponding profile information is automatically cleared after a saving duration reaches a third preset duration threshold; If an instruction of long-term saving is received, the corresponding profile information is not automatically cleared.
9. A vehicle comprising an electronic device, the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Method for identifying a driver change in a motor vehicle
CN107757625A
Method and device for adjusting vehicle equipment parameters based on vehicle face recognition
CN111137296A