Driver face recognition method, electronic device and computer storage medium while driving

By combining real-time collection and recognition models of multi-angle face photos with business data, the problem of unreliable quality of driver's face recognition photos in logistics and transportation is solved, achieving higher recognition accuracy and precision.

CN113780186BActive Publication Date: 2024-09-17SHENZHEN E6 TECHNOLOGE CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111071033.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-09-17
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

In logistics and transportation scenarios, the quality of facial recognition photos taken by drivers while driving is unreliable, leading to recognition errors by traditional facial recognition models.

Method used

By collecting driver photos in real time and inputting them into the face recognition model for calculation, combined with multi-angle photo samples and business data, the optimal decision-making model is used to calculate the matching gain, and a rule weight model is constructed to improve recognition accuracy.

Benefits of technology

The accuracy and precision of face recognition are improved. Through the combination of multiple angles and business data, recognition errors are reduced and the confirmation of the driver's identity is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113780186B
    Figure CN113780186B
Patent Text Reader

Abstract

The present invention provides a method for face recognition while a driver is driving, an electronic device and a computer storage medium. The method comprises: collecting and inputting driver photos into a face recognition model in real time to calculate the face model; obtaining a first preset number of similar driver identifications with the highest similarity; the photo samples corresponding to the same driver identification include photos taken at multiple angles; inputting the portrait data corresponding to the first preset number of similar driver identifications into an optimal decision model; performing gain calculation according to preset rules on the matching degree of each similar driver identification; taking the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo; thereby realizing face recognition from face photos of multiple angles, improving the accuracy of face recognition, and at the same time, taking the business data corresponding to the vehicle identification and the driver identification as factors for determining the real driver identification, that is, combining the driver business data to make auxiliary decisions, and further improving the accuracy of face recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of face recognition, and more specifically, particularly relates to a method for driver face recognition while driving, an electronic device and a computer storage medium. Background Art

[0002] In logistics and transportation scenarios, the same truck may be driven by multiple different drivers. Companies need to accurately count each driver's driving time period and mileage based on driving safety and driver performance considerations. They generally install smart cameras in the cab to collect the current driver's facial information in real time and send it back to the cloud service platform. They then perform facial recognition on the collected photos to determine who was driving the car when the photo was taken. However, due to the randomness of the driver's facial orientation and uncertainty in lighting when the photo is taken, the quality of each photo used for facial recognition cannot be guaranteed to be reliable, resulting in incorrect driver recognition in some photos based only on traditional facial recognition models. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method, electronic device and computer storage medium for driver face recognition while driving, which are used to assist decision-making in combination with driver business data to further improve the accuracy of face recognition.

[0004] The first aspect of the present invention discloses a method for face recognition while a driver is driving, comprising:

[0005] Collect driver photos in real time;

[0006] Input the collected driver photos into the face recognition model to calculate the face model; and obtain a first preset number of similar driver identifications with the highest similarity; wherein the face recognition model is a model trained based on photo samples of each driver identification; the photo samples corresponding to the same driver identification include photos taken from multiple angles;

[0007] The portrait data corresponding to the first preset number of similar driver identifications are input into the optimal decision model; the gain calculation of the preset rule is performed on the matching degree of each similar driver identification; the driver identification with the highest matching degree is taken as the real driver identification corresponding to the driver photo; the optimal decision model is a rule weight model constructed based on the business data corresponding to the vehicle identification and the driver identification.

[0008] Optionally, the specific process of training the face recognition model based on the photo samples of each driver identification includes:

[0009] Constructing a training sample set; wherein the training sample set includes: a second preset number of historical photos of drivers;

[0010] For each of the training sample sets, inputting the input features of the training sample set into the training model to obtain a sample training result;

[0011] The training model is continuously adjusted using the error between the sample recognition result and the actual result until the error between the sample recognition result of the adjusted training model and the actual result meets a preset convergence condition, and the adjusted training model is determined as the face recognition model.

[0012] Optionally, for each of the training sample sets, inputting the input features of the training sample set into a training model to obtain a sample training result includes:

[0013] Extracting features from the training sample set using the training model, and obtaining a multi-dimensional vector for each driver's historical photo;

[0014] Training vector retrieval models with multi-dimensional matrices;

[0015] For each driver identification, multiple historical photos of the driver are selected to generate a retrieval vector as control data for driver face vector matching.

[0016] Optionally, the driver's historical photo is cut from the driver's video taken in real time; and

[0017] The driver historical photos are in black and white, and the driver historical photos corresponding to each driver identification include at least: a frontal photo, a face photo taken from the upper left corner of the face, a face photo taken from the lower left corner of the face, a face photo taken from the lower right corner of the face, and a face photo taken from the upper right corner of the face.

[0018] Optionally, the process of constructing the optimal decision model includes:

[0019] Establish a vehicle portrait database; the vehicle portrait database includes: the driver identification of the corresponding vehicle that has been driven in the past, the driver identification of the corresponding vehicle that has been driven in the past month, the driver identification of the corresponding vehicle that has been driven in the past three days, the department to which the corresponding vehicle belongs, and the routes that the corresponding vehicle often runs;

[0020] Establishing a driver portrait database; the driver portrait database includes: vehicles driven by the driver in the past, vehicles driven in the past month, vehicles driven in the past three days, the department the driver works for, and the routes the driver often runs;

[0021] A rule weight model is constructed based on the characteristic portraits of the vehicles in the vehicle portrait library and the drivers in the driver portrait library; the rules include: whether the driver and the corresponding vehicle belong to the same department, whether the corresponding driver has driven the corresponding vehicle in the past three days, whether the driver has driven the corresponding vehicle in the past month, whether the driver has driven the corresponding vehicle before, and whether the driver's usual route is the same as the driving route of the corresponding vehicle.

[0022] Optionally, after obtaining the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo, the method further includes:

[0023] If the same vehicle is traveling at different time periods and matches different driver IDs, a multi-modal verification of the driver ID is adopted.

[0024] Optionally, the multi-modal verification of the driver identification includes:

[0025] The correlation between the driver portrait and the vehicle portrait is compared, and the driver identification with the highest correlation is used as the driver identification of the actual driver of the corresponding vehicle.

[0026] Optionally, the multi-modal verification of the driver identification includes:

[0027] The real-time information of the matched current multiple drivers is obtained, and the real-time information includes: geographic location and whether the driver is working; based on the real-time information, the driver identification of the actual driver of the corresponding vehicle is determined.

[0028] A second aspect of the present invention discloses an electronic device, comprising:

[0029] one or more processors;

[0030] a storage device having one or more programs stored thereon;

[0031] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for driver face recognition while driving as described in any one of the first aspects of the present invention.

[0032] The third aspect of the present invention discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for face recognition while driving as described in any one of the first aspect of the present invention is implemented.

[0033] It can be seen from the above technical scheme that the present invention provides a method for face recognition of a driver while driving, comprising: collecting driver photos in real time; inputting the collected driver photos into a face recognition model to calculate the face model; and obtaining a first preset number of similar driver identifications with the highest similarity; wherein the face recognition model is a model trained based on photo samples of each driver identification; the photo samples corresponding to the same driver identification include photos taken at multiple angles; the portrait data corresponding to the first preset number of similar driver identifications are input into the optimal decision model; the gain calculation of the matching degree of each similar driver identification is performed according to a preset rule; the driver identification with the highest matching degree is taken as the real driver identification corresponding to the driver photo; the optimal decision model is a rule weight model constructed based on the business data corresponding to the vehicle identification and the driver identification, so as to realize face recognition from face photos of multiple angles and improve the accuracy of face recognition. At the same time, the business data corresponding to the vehicle identification and the driver identification are used as factors for determining the real driver identification, that is, auxiliary decision-making is performed in combination with the driver's business data, further improving the accuracy of face recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 This is a flow chart of a method for face recognition while a driver is driving provided by an embodiment of the present invention;

[0036] Figure 2 It is a block diagram of a method for face recognition while a driver is driving provided by an embodiment of the present invention;

[0037] Figure 3 An electronic device is provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0040] An embodiment of the present invention provides a method for face recognition while a driver is driving, which is used to solve the problem in the prior art that the driver's facial orientation is random and the lighting is uncertain when taking photos, so the quality of each photo for face recognition cannot be guaranteed to be reliable, resulting in the problem of incorrect driver recognition in some photos based only on traditional face recognition models.

[0041] See also Figure 1 , the driver's face recognition method while driving includes:

[0042] S101. Collect driver photos in real time.

[0043] It should be noted that a camera is installed on each vehicle to collect photos of the driver. Specifically, when the vehicle is started, the camera enters the collection state from the standby state. That is, while the driver is driving, the camera collects photos of the driver in real time and transmits the photos to the processor.

[0044] The collected driver photo may be captured from a video; that is, the camera may capture video in real time and send the video to a processor, and after the processor receives the video, it may capture the video to obtain the driver photo.

[0045] S102, inputting the collected driver photos into a face recognition model to calculate the face model; and obtaining a first preset number of similar driver identifications with the highest similarity.

[0046] The face recognition model is a model trained based on the photo samples of each driver identification. The photo samples corresponding to the same driver identification include photos taken from multiple angles.

[0047] After the driver's photo is input into the face recognition model, the face recognition model calculates the face model of the driver's photo; and finds the top 10 similar driver identifiers with the highest similarity. Of course, the first preset number can also be other numbers, such as top 20, etc., which will not be repeated here one by one, and are all within the protection scope of this application.

[0048] It should be noted that the face recognition model can also output portrait data of the similar driver identification.

[0049] S103, inputting the portrait data corresponding to the first preset number of similar driver identifications into the optimal decision model; performing a gain calculation according to preset rules on the matching degree of each similar driver identification; and taking the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo.

[0050] The optimal decision model is a rule weight model constructed based on the business data corresponding to the vehicle identification and driver identification.

[0051] The portrait data corresponding to the similar driver identification can be obtained from a face recognition model or from an optimal decision model, which will not be elaborated here one by one and are all within the scope of protection of this application.

[0052] It should be noted that in this optimal decision model, the gain calculation is performed on each similar driver identification based on the business data corresponding to the vehicle identification and the driver identification; that is, the result of face recognition based on the collected driver photos is not directly used as the real driver identification; instead, multiple similar driver identifications are matched with business data. The business data may include the driver's driving vehicle, the driver's driving route, etc., so as to achieve multi-faceted identification and confirmation.

[0053] The gain range is 0 to 1, that is, when the service characteristics of the driver and the vehicle are very mismatched, the gain is 0, and when they are very matched, the gain is 1. Of course, it is not limited to this, and will not be described one by one here, and all are within the protection scope of this application.

[0054] Specifically, a driver profile is established through the driver's historical data; the top 10 drivers are retrieved through the recognition model, and the driver's profile data is obtained using the top 10 similar driver identifiers. The rules may include matching the relevance between the driver and the vehicle and matching the relevance between the driver and the actual business based on the vehicle profile, driver profile and business characteristics.

[0055] like Figure 2 As shown, the driver's photo is input into the face recognition model, and the face recognition model outputs the top 10 similar driver identifications with the highest similarity and their feature data to the optimal decision model (such as Figure 2 The optimal decision model outputs the top 1 similar driver identification with the highest similarity. That is, the driver corresponding to the driver identification is regarded as the driver currently driving the vehicle.

[0056] In this embodiment, face recognition is implemented by taking face photos from multiple angles to improve the accuracy of face recognition. At the same time, the business data corresponding to the vehicle identification and the driver identification are used as factors to determine the real driver identification, that is, the driver's business data is combined to assist in decision-making, thereby further improving the accuracy of face recognition.

[0057] In actual applications, the specific process of training a face recognition model based on the photo samples of each driver identification includes:

[0058] (1) Constructing a training sample set; wherein the training sample set includes: a second preset number of historical photos of drivers.

[0059] The larger the second preset number, the better, wherein each photo is taken at a different angle and in a different light, which is more conducive to recognition; and generally, the number of photos corresponding to each driver identification can be preset to be no less than a specific number, such as 5 photos, etc. Specifically, one million photos can be collected as a training sample set.

[0060] In actual applications, the driver's historical photos are cut from the driver's video taken in real time. In other words, the driver's historical photos are obtained in a similar way to the photos taken during driving, thereby improving the accuracy of recognition.

[0061] Moreover, the driver's historical photos are in black and white to reduce the impact of too many colors on the recognition effect. In addition, the driver's historical photos corresponding to each driver identification include at least: a frontal photo, a face photo taken from the upper left corner of the face, a face photo taken from the lower left corner of the face, a face photo taken from the lower right corner of the face, and a face photo taken from the upper right corner of the face. In other words, the driver's historical photos corresponding to each driver identification include photos taken at multiple angles.

[0062] (2) For each training sample set, the input features of the training sample set are input into the training model to obtain the sample training results.

[0063] Specifically, the above-mentioned historical photos of drivers are used for face recognition transfer learning, and the training model can use the FaceNet network.

[0064] In practical applications, the training sample set can be firstly feature extracted through the training model, and each driver's historical photo can obtain a multi-dimensional vector, such as 512 dimensions; then the vector retrieval model is trained with a multi-dimensional matrix, such as a 18000x512 matrix; then, each driver ID selects multiple driver historical photos, and generates a retrieval vector as reference data for driver face vector matching. The selected photos can be 3-10, or other numbers, which will not be described here one by one, and are all within the protection scope of this application.

[0065] (3) The training model is continuously adjusted using the error between the sample recognition result and the actual result until the error between the sample recognition result and the actual result of the adjusted training model meets the preset convergence condition, and the adjusted training model is determined as the face recognition model.

[0066] In practical applications, the construction process of the optimal decision model includes:

[0067] (1) Establish a vehicle image database.

[0068] The vehicle image library includes: the driver IDs of the corresponding vehicles that have been driven in the past, the driver IDs of the corresponding vehicles that have been driven in the past month, the driver IDs of the corresponding vehicles that have been driven in the past three days, the department to which the corresponding vehicles belong, and the routes that the corresponding vehicles often run. Of course, the vehicle image library may also include other data, which will not be described here one by one, and are all within the protection scope of this application.

[0069] (2) Establish a driver portrait database.

[0070] The driver portrait database includes: the vehicles driven by the driver in the past, the vehicles driven in the past month, the vehicles driven in the past three days, the department the driver works for, and the routes the driver often runs. Of course, the driver portrait database can also include other data, such as the driver's working hours, etc., which will not be repeated here one by one, and are all within the scope of protection of this application.

[0071] (3) Construct a rule weight model based on the vehicle feature profiles in the vehicle profile library and the driver feature profiles in the driver profile library.

[0072] The rules include: whether the driver and the corresponding vehicle belong to the same department, whether the corresponding driver has driven the corresponding vehicle in the last three days, whether the driver has driven the corresponding vehicle in the last month, whether the driver has driven the corresponding vehicle before, and whether the driver's usual route is the same as the route of the corresponding vehicle. Of course, the rules can also include other data, which will not be described here one by one, and are all within the scope of protection of this application.

[0073] Specifically, different weights are assigned to the above rules according to the business situation, and the maximum total weight is 1.0. In other words, different situations have different weights, and the sum of the weights in each situation is 1.0. For example, the weight of whether the driver and the corresponding vehicle belong to the same department is 0.2, the weight of whether the corresponding driver has driven the corresponding vehicle in the past three days is 0.1, and the weight of whether the driver has driven the corresponding vehicle in the past month is 0.2; the weight of whether the driver has driven the corresponding vehicle before is 0.1, and the weight of whether the driver's usual route is the same as the driving route of the corresponding vehicle is 0.4.

[0074] It should be noted that the purpose of establishing a vehicle portrait database is to find the correlation between the vehicle and the driver; to establish a behavioral habit profile of the driver; and to determine the probability that the driver is in the vehicle through the vehicle portrait description and the driver's behavioral profile. The optimal decision model can include an isolation forest and a decision tree. The isolation forest model is used to predict the abnormal behavior of the drivers in the top 10; the decision tree model is used as a soft rule of the business rule to supplement the correlation judgment.

[0075] In this embodiment, on the basis of image recognition of facial photos, an optimal decision model based on business rules and features is added to realize auxiliary decision-making in combination with driver business data, thereby improving the accuracy of facial recognition.

[0076] Based on any of the above embodiments, after obtaining the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo, the method further includes:

[0077] If the same vehicle is traveling at different time periods and matches different driver IDs, a multi-modal verification of the driver ID is adopted.

[0078] The following is an explanation of the implementation method of multi-modal verification of driver identification:

[0079] (1) Verify the correlation between the driver and the vehicle.

[0080] Specifically, the correlation between the driver portrait and the vehicle portrait is compared, and the driver identification with the highest correlation is used as the driver identification of the actual driver of the corresponding vehicle.

[0081] That is to say, when the same vehicle is driving at different time periods and matching different driver IDs, the correlations between these driver IDs and the vehicle portrait are obtained respectively, and these correlations are compared, and the driver ID with the highest correlation is used as the actual driving driver ID of the corresponding vehicle.

[0082] (2) Verify the driver’s real-time information.

[0083] Specifically, the real-time information of the matched current multiple drivers is obtained, and the real-time information includes: geographic location, whether working; based on the real-time information, the driver identification of the actual driver of the corresponding vehicle is determined.

[0084] That is to say, when the same vehicle is driving at different time periods and matches different driver IDs, the real-time information corresponding to these driver IDs is obtained respectively; after comparing these real-time information, the driver ID that best fits the real-time information is used as the actual driving driver ID of the corresponding vehicle.

[0085] Specifically, real-time information corresponding to multiple driver identifications, such as geographic locations, is obtained respectively. If the geographic location of one driver identification matches the geographic location of the vehicle, and the geographic location of another driver identification is far away from the geographic location of the vehicle, the matching driver identification is used as the actual driving driver identification. Whether it works is similar, and it will not be repeated here one by one, and all are within the protection scope of this application.

[0086] In this embodiment, the usage scenario can be face recognition of logistics truck drivers while driving, and it is also applicable to driver identification during driving for non-logistics transportation; as long as it is necessary to identify the driver during driving, the method provided by this application is used, and no further details are given here, and all are within the scope of protection of this application.

[0087] The embodiment of the present invention also provides a real-time face recognition system for a driver while driving, comprising:

[0088] The collection unit is used to collect driver photos in real time.

[0089] It should be noted that a camera is installed on each vehicle to collect photos of the driver. Specifically, when the vehicle is started, the camera enters a collection state from a standby state. That is, while the driver is driving, the camera collects photos of the driver in real time and transmits the photos to the processor. That is, the collection unit can be a camera.

[0090] The captured driver photo may be captured from a video; that is, the camera may capture video in real time and send the video to a processor, and after the processor receives the video, it may capture the video to obtain the driver photo.

[0091] The face image recognition unit is used to input the collected driver photos into the face recognition model to calculate the face model; and obtain a first preset number of similar driver identifications with the highest similarity.

[0092] The face recognition model is a model trained based on the photo samples of each driver identification. The photo samples corresponding to the same driver identification include photos taken from multiple angles.

[0093] After the driver's photo is input into the face recognition model, the face recognition model calculates the face model of the driver's photo; and finds the top 10 similar driver identifiers with the highest similarity. Of course, the first preset number can also be other numbers, such as top 20, etc., which will not be repeated here one by one, and are all within the protection scope of this application.

[0094] The auxiliary recognition unit is used to input the portrait data corresponding to the first preset number of similar driver identifications into the optimal decision model; to perform gain calculation according to preset rules on the matching degree of each similar driver identification; and to take the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo.

[0095] The optimal decision model is a rule weight model constructed based on the business data corresponding to the vehicle identification and driver identification.

[0096] It should be noted that in this optimal decision model, the gain calculation is performed on each similar driver identification based on the business data corresponding to the vehicle identification and the driver identification; that is, the result of face recognition based on the collected driver photos is not directly used as the real driver identification; instead, multiple similar driver identifications are matched with business data. The business data may include the driver's driving vehicle, the driver's driving route, etc., so as to achieve multi-faceted identification and confirmation.

[0097] The gain range is 0 to 1, that is, when the service characteristics of the driver and the vehicle are very mismatched, the gain is 0, and when they are very matched, the gain is 1. Of course, it is not limited to this, and will not be described one by one here, and all are within the protection scope of this application.

[0098] Specifically, a driver profile is established through the driver's historical data; the top 10 drivers are retrieved through the recognition model, and the driver's profile data is obtained using the top 10 similar driver identifiers. The rules may include matching the relevance between the driver and the vehicle and matching the relevance between the driver and the actual business based on the vehicle profile, driver profile and business characteristics.

[0099] The working process and principle of each module are detailed in the above embodiments, which will not be described here one by one, and are all within the protection scope of this application.

[0100] In this embodiment, face recognition is implemented by taking face photos from multiple angles to improve the accuracy of face recognition. At the same time, the business data corresponding to the vehicle identification and the driver identification are used as factors to determine the real driver identification, that is, the driver's business data is combined to assist in decision-making, thereby further improving the accuracy of face recognition.

[0101] Another embodiment of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes:

[0102] One or more processors 601 .

[0103] The storage device 602 stores one or more programs.

[0104] When one or more programs are executed by one or more processors 601, the one or more processors 601 implement the driver face recognition method while driving as provided in the above embodiment.

[0105] The working process and principle of the face recognition method for the driver while driving are detailed in the above embodiments and will not be described in detail here, all of which are within the protection scope of this application.

[0106] Another embodiment of the present invention provides a computer storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the method for driver face recognition while driving provided in the above embodiment is implemented.

[0107] The working process and principle of the face recognition method for the driver while driving are detailed in the above embodiments and will not be described in detail here, all of which are within the protection scope of this application.

[0108] The features recorded in the various embodiments in this specification can be replaced or combined with each other, and the same and similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0109] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0110] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for face recognition while a driver is driving. It is characterized in that include: Collect driver photos in real time; Inputting the collected driver photo into a face recognition model to calculate a face model; and obtaining a first preset number of similar driver identifications with the highest similarity; wherein the face recognition model is a model trained based on photo samples of each driver identification; and the photo samples corresponding to the same driver identification include photos taken from multiple angles; The portrait data corresponding to the first preset number of similar driver identifications are input into the optimal decision model; the gain calculation of the preset rule is performed on the matching degree of each similar driver identification; the driver identification with the highest matching degree is taken as the real driver identification corresponding to the driver photo; the optimal decision model is a rule weight model constructed based on the business data corresponding to the vehicle identification and the driver identification; the rules in the rule weight model include: whether the driver belongs to the same department as the corresponding vehicle, whether the corresponding driver has driven the corresponding vehicle in the past three days, whether the driver has driven the corresponding vehicle in the past month, whether the driver has driven the corresponding vehicle before, and whether the driver's frequently traveled route is the same as the driving route of the corresponding vehicle.

2. The method for driver face recognition while driving according to claim 1, It is characterized in that The specific process of training the face recognition model based on the photo samples of each driver identification includes: Constructing a training sample set; wherein the training sample set includes: a second preset number of historical photos of drivers; For each of the training sample sets, inputting the input features of the training sample set into the training model to obtain a sample training result; The training model is continuously adjusted using the error between the sample recognition result and the actual result until the error between the sample recognition result of the adjusted training model and the actual result meets a preset convergence condition, and the adjusted training model is determined as the face recognition model.

3. The method for driver face recognition while driving according to claim 2, It is characterized in that For each of the training sample sets, the input features of the training sample set are input into the training model to obtain a sample training result, including: Extracting features from the training sample set using the training model, and obtaining a multi-dimensional vector for each driver's historical photo; Training vector retrieval models with multi-dimensional matrices; For each driver identification, multiple historical photos of the driver are selected to generate a retrieval vector as control data for driver face vector matching.

4. The method for driver face recognition while driving according to claim 2, It is characterized in that Driver historical photos are cut from real-time driver videos; and, The driver historical photos are in black and white, and the driver historical photos corresponding to each driver identification include at least: a frontal photo, a face photo taken from the upper left corner of the face, a face photo taken from the lower left corner of the face, a face photo taken from the lower right corner of the face, and a face photo taken from the upper right corner of the face.

5. The method for driver face recognition while driving according to claim 1, It is characterized in that The construction process of the optimal decision model includes: Establish a vehicle portrait database; the vehicle portrait database includes: the driver identification of the corresponding vehicle that has been driven in the past, the driver identification of the corresponding vehicle that has been driven in the past month, the driver identification of the corresponding vehicle that has been driven in the past three days, the department to which the corresponding vehicle belongs, and the routes that the corresponding vehicle often runs; Establishing a driver portrait database; the driver portrait database includes: vehicles driven by the driver in the past, vehicles driven in the past month, vehicles driven in the past three days, the department the driver works for, and the routes the driver often runs; A rule weight model is constructed based on the characteristic portraits of vehicles in the vehicle portrait library and drivers in the driver portrait library.

6. The method for driver face recognition while driving according to any one of claims 1 to 5, It is characterized in that After obtaining the driver identification with the highest matching degree as the real driver identification corresponding to the driver photo, the method further includes: If the same vehicle is traveling at different time periods and matches different driver IDs, a multi-modal verification of the driver ID is adopted.

7. The method for driver face recognition while driving according to claim 6, It is characterized in that The multi-modal verification of the driver identification includes: The correlation between the driver portrait and the vehicle portrait is compared, and the driver identification with the highest correlation is used as the driver identification of the actual driving of the corresponding vehicle.

8. The method for driver face recognition while driving according to claim 6, It is characterized in that The multi-modal verification of the driver identification includes: The real-time information of the matched current multiple drivers is obtained, and the real-time information includes: geographic location and whether the driver is working; based on the real-time information, the driver identification of the actual driver of the corresponding vehicle is determined.

9. An electronic device, It is characterized in that include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for driver face recognition while driving as described in any one of claims 1 to 8.

10. A computer storage medium, It is characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the method for face recognition while driving as described in any one of claims 1-8 is implemented.