Face Recognition Method and Device, Electronic Device, and Storage Medium
By allowing users to choose whether to upload face images by themselves, and identify them without allowing the user to upload images through feature extraction, the problem of low privacy leakage and recognition accuracy in the prior art is solved, and accurate face recognition is achieved while respecting user privacy.
Patent Information
- Application Number
- CN202111092935.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-17
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-09-17
AI Technical Summary
The existing facial recognition technology directly collects and uploads user's facial information without the user's consent, which poses a risk of user privacy leakage, and due to computing power limitations, the accuracy of the recognition results is difficult to guarantee.
A face recognition method is proposed, allowing users to choose whether to upload face images by themselves, and recognize them without allowing users to upload images through feature extraction. This method ensures the accuracy of the identification results by extracting and matching features between the terminal device and the server.
Face recognition is realized while respecting user privacy, ensuring the accuracy of recognition results and the security of user privacy, and solving the problem of low privacy leakage and recognition accuracy in the prior art.
Smart Images

Figure CN113807253B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a face recognition method and device, an electronic device, and a storage medium. Background Art
[0002] Currently, face recognition technology is widely used in various fields. Due to the computing power limitations of terminal devices, existing face recognition technology directly collects user face information and uploads it to the server for face recognition without considering the user's wishes, which poses a risk of user privacy leakage. Summary of the invention
[0003] The present disclosure proposes a face recognition method and device, an electronic device and a storage medium, which are intended to perform a face recognition process while respecting the user's privacy choice and to ensure the accuracy of the face recognition result.
[0004] According to a first aspect of the present disclosure, a face recognition method is provided, the method comprising:
[0005] Determine a face image to be recognized;
[0006] Determine a face recognition mode of the face image to be recognized;
[0007] Sending face recognition information to the server according to the face recognition mode, the face recognition information including the face image to be recognized and / or the first face feature obtained by extracting features from the face image to be recognized;
[0008] Receive a face recognition result returned by the server, where the face recognition result is obtained by performing face recognition on the face recognition information.
[0009] In a possible implementation manner, determining the face recognition mode of the face image to be recognized includes:
[0010] Displaying a face recognition mode selection page, wherein the selection page includes a first recognition control and / or a second recognition control;
[0011] In response to the first recognition control being triggered, determining that the face recognition mode of the face image to be recognized is a first recognition mode, where the first recognition mode is used to send the face image to be recognized;
[0012] In response to the second recognition control being triggered, it is determined that the face recognition mode of the face image to be recognized is a second recognition mode, and the second recognition mode is used to send a first face feature obtained by extracting a feature of the face image to be recognized.
[0013] In a possible implementation, sending the face recognition information to the server according to the face recognition mode includes:
[0014] In response to the face recognition mode being the second recognition mode, input the face image to be recognized into a pre-trained first feature extraction model, and determine the output first face feature as face recognition information;
[0015] Send the face recognition information to the server.
[0016] In a possible implementation manner, the process of determining the face recognition result includes:
[0017] Input the face recognition information into a pre-trained second feature extraction model through the server, and output a second face feature;
[0018] Match the second face feature with a pre-stored user face feature set, and obtain a face recognition result. The user face feature set includes at least one user face feature and user information corresponding to the user face feature.
[0019] In a possible implementation manner, the method further includes:
[0020] In response to the face recognition result being a non-registered user, determine the current user information;
[0021] Send the current user information to the server to store the current user information and the corresponding second face feature in the user face feature set.
[0022] According to a second aspect of the present disclosure, a face recognition method is provided. The method includes:
[0023] Receive face recognition information sent by a terminal device. The face recognition information includes a face image to be recognized and / or a first face feature obtained by extracting features from the face image to be recognized through the terminal device;
[0024] Perform face recognition according to the face recognition information to obtain a face recognition result;
[0025] Send the face recognition result to the terminal device.
[0026] In a possible implementation manner, the performing face recognition according to the face recognition information to obtain a face recognition result includes:
[0027] Extract features from the face recognition information to obtain a second face feature;
[0028] Perform face recognition according to the second face feature to obtain a face recognition result.
[0029] In a possible implementation, the feature extraction of the face recognition information to obtain the second face feature includes:
[0030] Input the first face feature or the face image to be recognized into a pre-trained second feature extraction model, and output the second face feature.
[0031] In a possible implementation, the face recognition based on the second face feature to obtain the face recognition result includes:
[0032] Determine a set of user face features, where the set of user face features includes at least one user face feature and the user information corresponding to the user face feature;
[0033] Match the second face feature with each of the user face features to obtain the matching result of each user face feature;
[0034] In response to a matching result of a user face feature being a successful match, use the user information corresponding to the user face feature as the face recognition result;
[0035] In response to there being no matching result of a user face feature being a successful match, determine that the face recognition result is a non-registered user.
[0036] In a possible implementation, the method further includes:
[0037] In response to receiving the current user information returned by the terminal device when the face recognition result is a non-registered user, store the current user information and the corresponding second face feature in the set of user face features.
[0038] According to the third aspect of the present disclosure, a face recognition device is provided, and the device includes:
[0039] An image determination module, configured to determine a face image to be recognized;
[0040] A recognition mode determination module, configured to determine the face recognition mode of the face image to be recognized;
[0041] An information sending module, configured to send face recognition information to a server according to the face recognition mode, where the face recognition information includes the face image to be recognized and / or the first face feature obtained by feature extraction of the face image to be recognized;
[0042] A result receiving module, configured to receive the face recognition result returned by the server, where the face recognition result is obtained by performing face recognition on the face recognition information.
[0043] In a possible implementation, the recognition mode determination module includes:
[0044] A selection page display sub-module for displaying a face recognition mode selection page, where the selection page includes a first recognition control and / or a second recognition control;
[0045] A first mode determination sub-module for determining that the face recognition mode of the to-be-recognized face image is a first recognition mode in response to the triggering of the first recognition control, and the first recognition mode is used to send the to-be-recognized face image;
[0046] A second mode determination sub-module for determining that the face recognition mode of the to-be-recognized face image is a second recognition mode in response to the triggering of the second recognition control, and the second recognition mode is used to send the first face feature obtained by performing feature extraction on the to-be-recognized face image.
[0047] In a possible implementation, the information sending module includes:
[0048] An information determination sub-module for inputting the to-be-recognized face image into a pre-trained first feature extraction model in response to the face recognition mode being the second recognition mode, and determining the output first face feature as face recognition information;
[0049] An information sending sub-module for sending the face recognition information to the server.
[0050] In a possible implementation, the process of determining the face recognition result includes:
[0051] Inputting the face recognition information into a pre-trained second feature extraction model through the server to output a second face feature;
[0052] Matching the second face feature with a pre-stored user face feature set to obtain a face recognition result, where the user face feature set includes at least one user face feature and the user information corresponding to the user face feature.
[0053] In a possible implementation, the device further includes:
[0054] A user information determination sub-module for determining the current user information in response to the face recognition result being a non-registered user;
[0055] A user information sending sub-module for sending the current user information to the server to store the current user information and the corresponding second face feature into the user face feature set.
[0056] According to a fourth aspect of the present disclosure, a face recognition device is provided, and the device includes:
[0057] An information receiving module, configured to receive face recognition information sent by a terminal device, where the face recognition information includes a face image to be recognized, and / or a first face feature obtained by performing feature extraction on the face image to be recognized through the terminal device;
[0058] A face recognition module, configured to perform face recognition according to the face recognition information to obtain a face recognition result;
[0059] A result sending module, configured to send the face recognition result to the terminal device.
[0060] In a possible implementation manner, the face recognition module includes:
[0061] A feature extraction sub-module, configured to perform feature extraction on the face recognition information to obtain a second face feature;
[0062] A face recognition sub-module, configured to perform face recognition according to the second face feature to obtain a face recognition result.
[0063] In a possible implementation manner, the feature extraction sub-module includes:
[0064] A model extraction unit, configured to input the first face feature or the face image to be recognized into a pre-trained second feature extraction model, and output a second face feature.
[0065] In a possible implementation manner, the face recognition sub-module includes:
[0066] A set determination unit, configured to determine a user face feature set, where the user face feature set includes at least one user face feature and user information corresponding to the user face feature;
[0067] A feature matching unit, configured to match the second face feature with each of the user face features to obtain a matching result of each of the user face features;
[0068] A first result determination unit, configured to, in response to a matching result of a user face feature being a successful match, use the user information corresponding to the user face feature as the face recognition result;
[0069] A second result determination unit, configured to, in response to no matching result of a user face feature being a successful match, determine that the face recognition result is a non-registered user.
[0070] In a possible implementation manner, the device further includes:
[0071] A feature storage module, configured to store the current user information and the corresponding second face feature in the user face feature set in response to receiving the current user information returned by the terminal device when the face recognition result is a non-registered user.
[0072] According to a fifth aspect of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0073] According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented.
[0074] In the face recognition process of the embodiments of the present disclosure, the user can decide whether to upload the face image to the server by himself / herself, and when the user does not allow the upload of the face image, the features extracted from the face image can be uploaded to the server for face recognition, and an accurate face recognition process can also be achieved.
[0075] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. According to the following detailed description of the exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.
[0077] Figure 1 A schematic diagram of an application system of a face recognition method according to an embodiment of the present disclosure;
[0078] Figure 2 A flowchart of a face recognition method on the terminal device side according to an embodiment of the present disclosure;
[0079] Figure 3 A schematic diagram of a face recognition mode selection page according to an embodiment of the present disclosure;
[0080] Figure 4 A schematic diagram of a process of extracting a first face feature according to an embodiment of the present disclosure;
[0081] Figure 5 A signaling flowchart of a face recognition method according to an embodiment of the present disclosure;
[0082] Figure 6A signaling flowchart showing another face recognition method according to an embodiment of the present disclosure;
[0083] Figure 7 A signaling flowchart showing a process of updating a user's face feature set according to an embodiment of the present disclosure;
[0084] Figure 8 A flowchart showing a face recognition method on the server side according to an embodiment of the present disclosure;
[0085] Figure 9 A schematic diagram showing a process of extracting a second face feature according to an embodiment of the present disclosure;
[0086] Figure 10 A schematic diagram showing a face recognition device on the terminal device side according to an embodiment of the present disclosure;
[0087] Figure 11 A schematic diagram showing a face recognition device on the server side according to an embodiment of the present disclosure;
[0088] Figure 12 A schematic diagram showing an electronic device according to an embodiment of the present disclosure;
[0089] Figure 13 A schematic diagram showing an electronic device according to an embodiment of the present disclosure. Detailed implementation manners
[0090] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0091] The special term "exemplary" herein means "serving as an example, embodiment, or illustration". Any embodiment described as "exemplary" herein need not be construed as superior to or better than other embodiments.
[0092] The term "and / or" in this document merely describes an association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" in this document means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set composed of A, B, and C.
[0093] In addition, to better illustrate the present disclosure, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present disclosure can be implemented without certain specific details. In some instances, methods, means, elements, and circuits well-known to those skilled in the art are not described in detail so as to highlight the gist of the present disclosure.
[0094] Figure 1 FIG. is a schematic diagram of an application system of a face recognition method according to an embodiment of the present disclosure. As Figure 1 shown, the system applying the face recognition method of the embodiment of the present disclosure may include a terminal device 10 and a server 11 connected through a network. Among them, the terminal device 10 is used to determine the face image to be recognized and the face recognition mode, and directly send the face image to be recognized to the server 11 for face recognition according to the face recognition mode. Or perform first face feature extraction on the image to be processed according to the face recognition mode, and send the extracted first face features to the server 11 for face recognition. After obtaining the face recognition result based on the received face image to be recognized or the first face features, the server 11 returns the face recognition result to the terminal device 10. Further, in the embodiment of the present disclosure, the face image to be recognized and the first face features may also be sent to the server 11 together for face recognition.
[0095] In a possible implementation manner, the terminal device 10 may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc., and may implement the face recognition method of the embodiment of the present disclosure by a processor calling computer-readable instructions stored in a memory. The server 11 may be a single server or a server cluster composed of multiple servers.
[0096] The face recognition method of the embodiment of the present disclosure can be applied to any face recognition scenario, such as an application scenario where a smart phone unlocks by face recognition, or an application scenario where a vehicle built-in terminal's camera acquisition device collects face information to open the door, etc.
[0097] Figure 2 FIG. is a flowchart of a face recognition method on the terminal device side according to an embodiment of the present disclosure. As Figure 2 shown, in a possible implementation manner, the face recognition method on the terminal device side of the embodiment of the present disclosure includes the following steps:
[0098] Step S10: Determine the face image to be recognized.
[0099] In a possible implementation, a to-be-recognized face image for which face recognition needs to be performed is determined. Optionally, the to-be-recognized face image may be a face image directly captured by a mobile terminal executing a face recognition method, or an image obtained by preprocessing the captured user face image. Alternatively, the to-be-recognized face image may also be determined by receiving a face image sent by another electronic device.
[0100] Optionally, when directly capturing a face image by a mobile terminal executing a face recognition method, a face capture page may be displayed through a display device first. When a user triggers a face capture control in the display device, a camera device is activated to capture the user's face image as the to-be-recognized face image.
[0101] Step S20: Determine the face recognition mode of the to-be-recognized face image.
[0102] In a possible implementation, the face recognition mode of the to-be-recognized face image is determined, and this face recognition mode is used to characterize the recognition method of the to-be-recognized face image. Optionally, the face recognition mode may be determined according to information such as the attribute information of the to-be-recognized face image and the user information of the user in the to-be-recognized face image. For example, when obtaining the to-be-recognized face image, the geographical location where the to-be-recognized face image is obtained may be determined. When uploading the to-be-recognized face image is not allowed in the legal regulations corresponding to this geographical location, the face recognition mode is determined as the second mode. Further, when uploading the to-be-recognized face image is allowed in the legal regulations corresponding to this geographical location, the face recognition mode is determined as the first mode.
[0103] Further, in the embodiments of the present disclosure, the face recognition mode may also be selected by the user through a human-computer interaction manner with the user. For example, a face recognition mode selection page may be displayed through the display device of the mobile terminal, and the selection page includes a first recognition control and a second recognition control. In response to the first recognition control being triggered, the face recognition mode of the to-be-recognized face image is determined as the first recognition mode, and the first recognition mode is used to send the to-be-recognized face image. In response to the second recognition control being triggered, the face recognition mode of the to-be-recognized face image is determined as the second recognition mode, and the second recognition mode is used to send the first face feature obtained by performing feature extraction on the to-be-recognized face image. That is, the user can choose by himself whether to upload the to-be-recognized face image to the server for face recognition.
[0104] Optionally, when permitted by legal regulations, in the embodiments of the present disclosure, a face recognition mode of simultaneously sending the to-be-recognized face image and the first face feature may also be determined as the third recognition mode.
[0105] Figure 3 Shows a schematic diagram of a face recognition mode selection page according to an embodiment of the present disclosure. As Figure 3As shown in the figure, the terminal device that executes the face recognition method can display a face recognition mode selection page 30 through a display device, which includes a first recognition control 31 and a second recognition control 32. When the user triggers the first recognition control 31 by clicking or other means, the terminal device determines that the user allows the upload of the face image to be recognized, that is, determines that the face recognition mode is the first recognition mode of sending the face image to be recognized. When the user triggers the second recognition control 32 by clicking or other means, the terminal device determines that the user does not allow the upload of the face image to be recognized, that is, determines that the face recognition mode is the second recognition mode of sending the first face feature obtained by extracting the face image to be recognized.
[0106] Further, the face recognition mode selection page 30 may also include only one recognition control. When the user triggers the recognition control by clicking or other means, the terminal device determines that the user allows the upload of the face image to be recognized and the first face feature, and directly determines that the face recognition mode is the third recognition mode of simultaneously sending the face image to be recognized and the first face feature.
[0107] In a possible implementation manner, the embodiments of the present disclosure may also determine the face recognition mode by combining the above-mentioned multiple methods. For example, when obtaining the face image to be recognized, the geographical location where the face image to be recognized is obtained may be determined. When the legal regulations corresponding to the geographical location do not allow the upload of the face image to be recognized, the face recognition mode is determined to be the second mode. When the legal regulations corresponding to the geographical location allow the upload of the face image to be recognized, the face recognition mode is determined to be the first mode. Further, when the legal regulations corresponding to the geographical location require the user's consent to upload the face image to be recognized, a face recognition mode selection page is displayed, and the user can select the required face recognition mode by himself / herself.
[0108] Step S30: Send face recognition information to the server according to the face recognition mode.
[0109] In a possible implementation manner, after determining the face recognition mode, the terminal device may determine the face recognition information according to the face recognition mode, and send the face recognition information to the server for face recognition. Among them, the face recognition information may include the face image to be recognized, and / or the first face feature obtained by performing feature extraction on the face image to be recognized. For example, when the face recognition mode corresponding to the face image to be recognized is the first recognition mode, the face recognition information can be directly determined to be the face image to be recognized. When the face recognition mode corresponding to the face image to be recognized is the second recognition mode, the face recognition information can be determined to be the first face feature obtained by extracting the face image to be recognized. Further, when the face recognition mode corresponding to the face image to be recognized is the third recognition mode, the face recognition information including the face image to be recognized and the first face feature can also be determined.
[0110] That is to say, when the face recognition mode is the first recognition mode, the to-be-recognized face image can be sent to the server. When the face recognition mode is the second recognition mode, the first face feature can be sent to the server. Or when the face recognition mode is the third recognition mode, the to-be-recognized face image and the first face feature can be sent to the server. Among them, the first face feature can be determined by a first feature extraction model pre-trained in the terminal device. For example, in response to the face recognition mode being the second recognition mode, the to-be-recognized face image is input into the pre-trained first feature extraction model, and the determined output first face feature is used as face recognition information and sent to the server.
[0111] Figure 4 A schematic diagram showing a process of extracting the first face feature according to an embodiment of the present disclosure. As Figure 4 shown, when the face recognition mode corresponding to the to-be-recognized face image is the first recognition mode, the terminal device inputs the to-be-recognized face image 40 into the pre-trained first feature extraction model 41 for preliminary feature extraction to output the first face feature 42 representing the face key point features.
[0112] Step S40: Receive the face recognition result returned by the server.
[0113] In a possible implementation manner, after receiving the face recognition information, the server performs face recognition according to the face recognition information to obtain a face recognition result. Further, the obtained face recognition result is returned to the terminal device. Among them, the process of the server performing face recognition can be that the server inputs the face recognition information into a pre-trained second feature extraction model to output a second face feature, and matches the second face feature with a pre-stored user face feature set. The user face feature set includes at least one user face feature and user information corresponding to the user face feature.
[0114] That is to say, the server pre-stores a user face feature set including at least one user face feature and user information corresponding to the user face feature. After receiving the face recognition information, the server can input the face recognition information into the pre-trained second feature extraction model to output a second face feature. Among them, for face recognition information with different contents, the second feature extraction models for feature extraction can be the same or different. Further, when the second feature extraction models are the same and the face recognition information is a to-be-recognized face image, the server can also perform a first feature extraction through the pre-trained first feature extraction model before inputting it into the second feature extraction model. When the face recognition information is the first face feature, the server performs feature extraction on the first face feature again through the second feature extraction model to obtain a second face feature with higher accuracy.
[0115] When the face recognition information transmitted by the terminal device is the first face feature, the present disclosure embodiment performs secondary feature extraction on the first face feature, so as to perform face recognition based on the second face feature with higher accuracy extracted by the secondary feature extraction, which solves the problem of low accuracy of face recognition results caused by insufficient computing power of the terminal device.
[0116] Optionally, after obtaining the second face feature corresponding to the image to be recognized, calculate the similarity between the second face feature and each user face feature in the user face feature set to determine the face recognition result. Among them, when there is a user face feature with a similarity greater than the threshold, it is determined that the user face feature matches the second face feature, and the user information corresponding to the user face feature is returned as the face recognition result. When there is no user face feature with a similarity greater than the threshold, it is determined that there is no user face feature that matches the second face feature, and the face recognition result is returned as a non-registered user.
[0117] Figure 5 The signaling flowchart showing a face recognition method according to an embodiment of the present disclosure is as follows Figure 5 As shown, in a possible implementation, the face recognition method may include the following steps:
[0118] Step 50: Determine the face image to be recognized through the terminal device.
[0119] Step 51: Determine that the face recognition mode of the face image to be recognized through the terminal device is the first recognition mode.
[0120] Step 52: Directly send the face image to be recognized to the server through the terminal device.
[0121] Step 53: Extract the second face feature with high accuracy according to the face image to be recognized through the server.
[0122] Step 54: Match the second face feature with the pre-stored user face feature set through the server to obtain the face recognition result.
[0123] Step 55: Return the face recognition result to the terminal device through the server.
[0124] The above face recognition method can directly upload an image for feature extraction under the premise of laws and user permission, respecting user privacy and ensuring the accuracy of the recognition result.
[0125] Figure 6 The signaling flowchart showing another face recognition method according to an embodiment of the present disclosure is as follows Figure 6 As shown, in another possible implementation, the face recognition method may further include the following steps:
[0126] Step 60: Determine the face image to be recognized through the terminal device.
[0127] Step 61: Determine that the face recognition mode of the face image to be recognized through the terminal device is the second recognition mode.
[0128] Step 62: Perform preliminary feature extraction on the face image to be recognized through the terminal device to obtain the first face feature.
[0129] Step 63: Send the first face feature to the server through the terminal device.
[0130] Step 64: Perform secondary feature extraction on the first face feature through the server to obtain the second face feature with high precision.
[0131] Step 65: Match the second face feature with the pre-stored user face feature set through the server to obtain the face recognition result.
[0132] Step 66: Return the face recognition result to the terminal device through the server.
[0133] The above face recognition method can perform face recognition by uploading the first face feature obtained by image feature extraction without the user's permission, and ensure the accuracy of the recognition result by performing secondary feature extraction on the first face feature through the server.
[0134] Further, when the face recognition result is a non-registered user, the terminal device can store the current user information of the user and the corresponding second face feature in the server to add the current user as a registered user. For example, in response to the face recognition result being a non-registered user, determine the current user information. Send the current user information to the server to store the current user information and the corresponding second face feature in the user face feature set. Optionally, the way to determine the current user information can be to display a user information collection page through the display device of the terminal device, and after the user inputs the user information through the user information collection page, determine the user information as the current user information. Further, store the second face feature corresponding to the face image to be recognized as the user face feature corresponding to the current user information in the user face feature set.
[0135] Figure 7 Show a signaling flowchart of a process for updating a user face feature set according to an embodiment of the present disclosure. As Figure 7 shown, in a possible implementation manner, the face recognition method of the embodiment of the present disclosure may further include the following steps:
[0136] Step 70: Determine through the terminal device that the face recognition result is a non-registered user.
[0137] Step 71: When the face recognition result is a non-registered user, determine the current user information through the terminal device.
[0138] Step 72: Send the determined current user information to the server through the terminal device.
[0139] Step 73: Update the current user information and the second face feature corresponding to the image to be recognized to the user face feature set through the server.
[0140] In the embodiments of the present disclosure, during the face recognition process, it is possible to determine whether to upload the face image to the server according to legal regulations, or for the user to decide whether to upload the face image to the server by themselves, ensuring compliance with the law and respecting user privacy. Moreover, even when the user does not allow the upload of the face image, the features extracted from the face image can be uploaded to the server, and after the server performs secondary feature extraction, face recognition is carried out to accurately determine the face recognition result.
[0141] Figure 8 The flowchart shows a face recognition method on the server side according to an embodiment of the present disclosure. As Figure 8 shown, in a possible implementation, the face recognition method on the server side of the embodiments of the present disclosure may include the following steps:
[0142] Step S50: Receive the face recognition information sent by the terminal device.
[0143] In a possible implementation, the face recognition information includes the face image to be recognized, and / or the first face feature obtained by the terminal device through feature extraction of the face image to be recognized. Among them, when the face recognition mode corresponding to the face image to be recognized is the first face recognition mode, the face recognition information includes the face image to be recognized. When the face recognition mode corresponding to the face image to be recognized is the second face recognition mode, the face recognition information includes the first face feature obtained by preliminary feature extraction of the face image to be recognized.
[0144] Step S60: Perform face recognition according to the face recognition information to obtain a face recognition result.
[0145] In a possible implementation, due to the computing power limitation of the terminal device, the first face feature obtained by preliminary extraction of the face image to be recognized is a face feature with relatively low accuracy. Therefore, when the face recognition information includes the face image to be recognized or the first face feature, it is necessary to perform feature extraction on the face recognition information before performing face recognition. For example, perform feature extraction on the face recognition information to obtain a second face feature. Perform face recognition according to the second face feature to obtain a face recognition result.
[0146] Optionally, the process of extracting features from the face recognition information may be to input the first face feature or the face image to be recognized into a pre-trained second feature extraction model, and output the second face feature. That is to say, when the face recognition information is the face image to be recognized, the high-precision second face feature is directly extracted through the second feature extraction model of the server. When the face recognition information is the first face feature with low precision, the second feature extraction model of the server is used to extract features from the first face feature again to obtain the second face feature with high precision.
[0147] Further, after obtaining the second face feature, the server determines a user face feature set, which includes at least one user face feature and the user information corresponding to the user face feature. The second face feature is matched with each user face feature to obtain the matching result of each user face feature. In response to the matching result of a user face feature being a successful match, the user information corresponding to the user face feature is used as the face recognition result. In response to there being no matching result of a user face feature being a successful match, the face recognition result is determined to be a non-registered user. Optionally, the method of matching the second face feature with the user face feature may be to calculate the similarity between the second face feature and each user face feature.
[0148] Figure 9 A schematic diagram showing a process of extracting a second face feature according to an embodiment of the present disclosure. As Figure 9 shown, after receiving the face recognition information 90, the face recognition information 90 is input into a pre-trained second feature extraction model 91, and a high-precision second face feature 92 is output.
[0149] Step S40, sending the face recognition result to the terminal device.
[0150] In a possible implementation manner, the server returns the face recognition result to the terminal device after determining the face recognition result. Further, when the face recognition result is a non-registered user, the terminal device may also determine the current user information of the user to update the user face feature set. That is to say, in response to receiving the current user information returned by the terminal device when the face recognition result is a non-registered user, the current user information and the corresponding second face feature are stored in the user face feature set.
[0151] In the embodiments of the present disclosure, during the face recognition process, it is possible to determine whether to upload the face image to the server according to legal regulations, or for the user to decide whether to upload the face image to the server, ensuring compliance with the law and respecting user privacy. Moreover, even when the user does not permit the upload of the face image, it is still possible to upload the features extracted from the face image to the server, and after the server performs secondary feature extraction, face recognition is carried out to accurately determine the face recognition result.
[0152] It can be understood that for the above-mentioned various method embodiments mentioned in the present disclosure, without violating the principle logic, they can all be combined with each other to form combined embodiments. Due to space limitations, the present disclosure will not elaborate further. Those skilled in the art can understand that in the above methods of the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.
[0153] In addition, the present disclosure also provides a face recognition device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any one of the face recognition methods provided by the present disclosure. For the corresponding technical solutions and descriptions, please refer to the corresponding records in the method section and will not be elaborated further.
[0154] Figure 10 The following shows a schematic diagram of a face recognition device on the terminal device side according to an embodiment of the present disclosure, as Figure 10 shown, the device includes:
[0155] An image determination module 100, configured to determine a face image to be recognized;
[0156] A recognition mode determination module 101, configured to determine the face recognition mode of the face image to be recognized;
[0157] An information sending module 102, configured to send face recognition information to the server according to the face recognition mode, where the face recognition information includes the face image to be recognized, and / or the first face features obtained by performing feature extraction on the face image to be recognized;
[0158] A result receiving module 103, configured to receive the face recognition result returned by the server, where the face recognition result is obtained by performing face recognition on the face recognition information.
[0159] In a possible implementation manner, the recognition mode determination module includes:
[0160] A selection page display sub-module, configured to display a face recognition mode selection page, where the selection page includes a first recognition control and / or a second recognition control;
[0161] A first mode determination sub-module, configured to determine that the face recognition mode of the to-be-recognized face image is a first recognition mode in response to the triggering of the first recognition control, where the first recognition mode is used to send the to-be-recognized face image;
[0162] A second mode determination sub-module, configured to determine that the face recognition mode of the to-be-recognized face image is a second recognition mode in response to the triggering of the second recognition control, where the second recognition mode is used to send the first face features obtained by performing feature extraction on the to-be-recognized face image.
[0163] In a possible implementation manner, the information sending module includes:
[0164] An information determination sub-module, configured to input the to-be-recognized face image into a pre-trained first feature extraction model in response to the face recognition mode being the second recognition mode, and determine the output first face features as face recognition information;
[0165] An information sending sub-module, configured to send the face recognition information to the server.
[0166] In a possible implementation manner, the process of determining the face recognition result includes:
[0167] Input the face recognition information into a pre-trained second feature extraction model through the server, and output second face features;
[0168] Match the second face features with a pre-stored user face feature set to obtain a face recognition result, where the user face feature set includes at least one user face feature and user information corresponding to the user face feature.
[0169] In a possible implementation manner, the device further includes:
[0170] A user information determination sub-module, configured to determine current user information in response to the face recognition result being a non-registered user;
[0171] A user information sending sub-module, configured to send the current user information to the server to store the current user information and the corresponding second face features in the user face feature set.
[0172] Figure 11 A schematic diagram showing a face recognition device on the server side according to an embodiment of the present disclosure is as Figure 11 shown, and the device includes:
[0173] An information receiving module 110, configured to receive face recognition information sent by a terminal device, where the face recognition information includes a face image to be recognized, and / or a first face feature obtained by performing feature extraction on the face image to be recognized through the terminal device;
[0174] A face recognition module 111, configured to perform face recognition according to the face recognition information to obtain a face recognition result;
[0175] A result sending module 112, configured to send the face recognition result to the terminal device.
[0176] In a possible implementation manner, the face recognition module includes:
[0177] A feature extraction sub-module, configured to perform feature extraction on the face recognition information to obtain a second face feature;
[0178] A face recognition sub-module, configured to perform face recognition according to the second face feature to obtain a face recognition result.
[0179] In a possible implementation manner, the feature extraction sub-module includes:
[0180] A model extraction unit, configured to input the first face feature or the face image to be recognized into a pre-trained second feature extraction model, and output a second face feature.
[0181] In a possible implementation manner, the face recognition sub-module includes:
[0182] A set determination unit, configured to determine a user face feature set, where the user face feature set includes at least one user face feature and user information corresponding to the user face feature;
[0183] A feature matching unit, configured to match the second face feature with each of the user face features to obtain a matching result of each of the user face features;
[0184] A first result determination unit, configured to, in response to a matching result of a user face feature being a successful match, use the user information corresponding to the user face feature as the face recognition result;
[0185] A second result determination unit, configured to, in response to no matching result of a user face feature being a successful match, determine that the face recognition result is a non-registered user.
[0186] In a possible implementation manner, the device further includes:
[0187] A feature storage module, configured to store the current user information and the corresponding second face feature in the user face feature set in response to receiving the current user information returned by the terminal device when the face recognition result is a non-registered user.
[0188] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0189] The embodiments of the present disclosure also propose a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above methods are implemented. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0190] The embodiments of the present disclosure also propose an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above methods.
[0191] The embodiments of the present disclosure also provide a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in the processor of the electronic device, the processor in the electronic device executes the above methods.
[0192] The electronic device can be provided as a terminal, a server, or other forms of devices.
[0193] Figure 12 A schematic diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 can be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0194] Refer to Figure 12 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0195] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0196] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disks, or optical disks.
[0197] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0198] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0199] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signals can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0200] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0201] The sensor component 814 includes one or more sensors for providing an assessment of the status of various aspects of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0202] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless local area network (WiFi), a second-generation mobile communication technology (2G), or a third-generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0203] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0204] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, and the computer program instructions can be executed by a processor 820 of the electronic device 800 to complete the above method.
[0205] Figure 13 A schematic diagram of an electronic device 1900 according to an embodiment of the present disclosure is shown. For example, the electronic device 1900 may be provided as a server. Referring to Figure 13 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0206] The electronic device 1900 may further include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as the Microsoft server operating system (Windows Server TM ), the graphical user interface-based operating system launched by Apple Inc. (Mac OS X TM ), the multi-user and multi-process computer operating system (Unix TM ), the free and open-source Unix-like operating system (Linux TM ), the open-source Unix-like operating system (FreeBSD TM ) or the like.
[0207] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, and the computer program instructions can be executed by a processing component 1922 of the electronic device 1900 to complete the above method.
[0208] The present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions thereon for causing a processor to implement aspects of the present disclosure.
[0209] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punch card or raised structures in a groove having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not to be construed as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0210] The computer-readable program instructions described herein may be downloaded to respective computing / processing devices from a computer-readable storage medium or may be downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0211] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, state - setting data, or source code or object code written in any combination of one or more programming languages, including object - oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer - readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand - alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer - readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field - programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer - readable program instructions to implement various aspects of the present disclosure.
[0212] Aspects of the present disclosure are described herein with reference to the flowchart and / or block diagram of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer - readable program instructions.
[0213] These computer - readable program instructions can be provided to a processor of a general - purpose computer, a special - purpose computer, or other programmable data - processing apparatus to produce a machine such that the instructions, when executed by the processor of the computer or other programmable data - processing apparatus, create a means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer - readable program instructions can also be stored in a computer - readable storage medium, which causes a computer, a programmable data - processing apparatus, and / or other devices to operate in a particular manner, so that the computer - readable medium storing the instructions includes a manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0214] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process such that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.
[0215] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or by a combination of dedicated hardware and computer instructions.
[0216] The computer program product may be implemented specifically by means of hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium. In another alternative embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK), etc.
[0217] The various embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art in the technical field without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, the practical application, or the improvement of the technology in the market, or to enable other ordinary skill in the technical field to understand the embodiments disclosed herein.
Claims
1. A face recognition method applied to a terminal device, characterized in that, the method includes: Determine a face image to be recognized; Determine the face recognition mode of the face image to be recognized; Send face recognition information to the server according to the face recognition mode, where the face recognition information includes the face image to be recognized, and / or the first face feature obtained by performing feature extraction on the face image to be recognized; Receive the face recognition result returned by the server, where the face recognition result is obtained by performing face recognition on the face recognition information.
2. The method according to claim 1, characterized in that, The determination of the face recognition mode of the face image to be recognized includes: Display a face recognition mode selection page, where the selection page includes a first recognition control and / or a second recognition control; In response to the first recognition control being triggered, determine that the face recognition mode of the face image to be recognized is the first recognition mode, and the first recognition mode is used to send the face image to be recognized; In response to the second recognition control being triggered, determine that the face recognition mode of the face image to be recognized is the second recognition mode, and the second recognition mode is used to send the first face feature obtained by performing feature extraction on the face image to be recognized.
3. The method according to claim 1 or 2, characterized in that, The sending of the face recognition information to the server according to the face recognition mode includes: In response to the face recognition mode being the second recognition mode, input the face image to be recognized into a pre-trained first feature extraction model, and determine the output first face feature as the face recognition information; Send the face recognition information to the server.
4. The method according to any one of claims 1-3, characterized in that, The determination process of the face recognition result includes: Input the face recognition information into a pre-trained second feature extraction model through the server to output a second face feature; Match the second face feature with a pre-stored user face feature set to obtain a face recognition result, where the user face feature set includes at least one user face feature and the user information corresponding to the user face feature.
5. The method according to claim 4, characterized in that, The method further includes: In response to the face recognition result being a non-registered user, determine the current user information; Send the current user information to the server to store the current user information and the corresponding second face feature into the user face feature set.
6. A face recognition method applied to a server, characterized in that, the method includes: Receive the face recognition information sent by the terminal device according to the face recognition mode, where the face recognition information includes the face image to be recognized, and / or the first face feature obtained by performing feature extraction on the face image to be recognized by the terminal device, and the face recognition mode corresponds to the face image to be recognized; Perform face recognition according to the face recognition information to obtain a face recognition result; Send the face recognition result to the terminal device.
7. The method according to claim 6, It is characterized in that performing face recognition based on the face recognition information, and the obtained face recognition result includes: extracting features from the face recognition information to obtain a second face feature; performing face recognition based on the second face feature to obtain a face recognition result.
8. The method according to claim 7, It is characterized in that the extracting features from the face recognition information to obtain a second face feature includes: inputting the first face feature or the face image to be recognized into a pre-trained second feature extraction model, and outputting a second face feature.
9. The method according to claim 7 or 8, It is characterized in that the performing face recognition based on the second face feature to obtain a face recognition result includes: determining a user face feature set, where the user face feature set includes at least one user face feature and user information corresponding to the user face feature; matching the second face feature with each of the user face features to obtain a matching result for each of the user face features; in response to there being a matching result of a user face feature being a successful match, using the user information corresponding to the user face feature as the face recognition result; in response to there being no matching result of a user face feature being a successful match, determining that the face recognition result is a non-registered user.
10. The method according to claim 9, It is characterized in that the method further includes: in response to receiving the current user information returned by the terminal device when the face recognition result is a non-registered user, storing the current user information and the corresponding second face feature in the user face feature set.
11. A face recognition device, It is characterized in that the device includes: an image determination module for determining a face image to be recognized; a recognition mode determination module for determining the face recognition mode of the face image to be recognized; an information sending module for sending face recognition information to a server according to the face recognition mode, where the face recognition information includes the face image to be recognized and / or a first face feature obtained by performing feature extraction on the face image to be recognized; a result receiving module for receiving the face recognition result returned by the server, where the face recognition result is obtained by performing face recognition on the face recognition information.
12. A face recognition device, It is characterized in that the device includes: an information receiving module for receiving face recognition information sent by a terminal device according to a face recognition mode, where the face recognition information includes the face image to be recognized and / or a first face feature obtained by performing feature extraction on the face image to be recognized by the terminal device, and the face recognition mode corresponds to the face image to be recognized; a face recognition module for performing face recognition according to the face recognition information to obtain a face recognition result; a result sending module for sending the face recognition result to the terminal device.
13. An electronic device, It is characterized in that it includes: a processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 10.
14. A computer-readable storage medium, on which computer program instructions are stored, wherein, when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Face recognition method, device and robot and storage medium
CN108197318A
Face recognition method, device and system, storage medium and capture machine
CN108875515A