Encryption, unlocking method, server, terminal and lock
The server performs liveness detection and comparison on multiple face images sent by the terminal, which solves the limitations of single-person unlocking in the existing technology, realizes real-time remote unlocking of multiple people's collaborative unlocking, and improves the security and convenience of unlocking.
Patent Information
- Application Number
- CN202010883932.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-08-28
AI Technical Summary
Existing technology face unlocking applications are limited to single-person scenarios and cannot achieve collaborative unlocking by multiple people, especially when multiple people's consensus is required, and real-time remote unlocking is not possible.
Obtain at least two face images sent by the terminal through the server, perform liveness detection and feature comparison, and send unlocking instructions if the comparison results are consistent to achieve collaborative unlocking by multiple people; at the same time, establish an association between the lock and multiple facial features to ensure Only authorized users can unlock it.
It realizes real-time remote unlocking through multi-person collaboration, improves the security and convenience of unlocking, and meets the unlocking needs under multi-person consensus.
Smart Images

Figure CN111949966B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of face recognition, and in particular to an encryption and unlocking method, a server, a terminal and a lock. Background Art
[0002] Ordinary encryption methods have many inconveniences, which may lead to risks such as key locks and password locks being unable to unlock due to key loss or password forgetting. With the development of computer vision, face encryption and unlocking have been applied to all aspects of life and production, from mobile phone lock screens to access control systems, which fully demonstrates that face has been widely used in the field of biometric locks.
[0003] However, the application of face unlocking in the existing technology is limited to single-person scenarios. However, in some specific scenarios, single-person operation may bring risks such as lack of consensus or overstepping of authority. The existing technology has also developed multi-person collaborative unlocking, which usually requires multiple people to control the password, and cannot be remotely unlocked in real time by multiple people. Summary of the invention
[0004] In order to solve the problems existing in the prior art, at least one embodiment of the present invention provides an encryption and unlocking method, a server, a terminal and a lock to solve the various problems mentioned in the above background technology section.
[0005] In a first aspect, an embodiment of the present invention proposes an unlocking method, comprising: a server obtains an unlocking request sent by at least one terminal, the unlocking request carrying identification information of a lock; the server obtains at least two face images sent by the terminal; the server performs liveness detection on the at least two face images; extracts features of the face image that passes the liveness detection, and compares the extracted features with a plurality of face features stored in advance, the plurality of face features stored in advance are face features of a plurality of authorized users associated with the identification information of the lock; when the comparison result is that the plurality of authorized users have consistent faces in the face images obtained by the server from the terminal, the server sends an unlocking instruction.
[0006] In some embodiments, when a face image acquired by the server fails the liveness detection, the unlocking is terminated.
[0007] In some embodiments, when the comparison result is that the extracted feature is inconsistent with the facial features of the plurality of authorized users stored in advance, the unlocking is terminated.
[0008] In some embodiments, it also includes: after obtaining the unlock request, the server obtains the information of the associated authorized user according to the identification information of the lock; the server sends reminder information to the associated user according to the information of the associated authorized user, and the reminder information includes one or more of the following: unlock progress, abnormal information.
[0009] In some embodiments, the abnormal information includes one or more of the following: liveness detection failure information, facial feature comparison failure information.
[0010] In some embodiments, the server sends a reminder letter to the associated authorized user according to the information of the associated authorized user: the server instructs the terminal to create a session, and displays the reminder information through the session.
[0011] In some embodiments, after obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated.
[0012] In a second aspect, an embodiment of the present invention further provides an encryption method, comprising: a server obtains a registration request, the registration request carrying identification information of a lock to be encrypted; the server obtains at least two facial images sent by at least one terminal, the at least two facial images being associated with the identification of the lock to be encrypted; the server performs liveness detection on the at least two facial images; after passing the liveness detection, extracts features of the at least two facial images; establishes an association relationship between the identification of the lock to be encrypted and the features of the at least two facial images, so that a user corresponding to the features of the at least two facial images is an authorized user, and the authorized user can unlock the lock through the server; and encrypts the lock according to the association relationship.
[0013] In some embodiments, the at least one terminal includes a first terminal and a second terminal, and the server obtains at least two facial images sent by at least one terminal, including: the server obtains a first facial image sent by the first terminal, the first facial image includes at least one facial image; the server obtains a second facial image sent by the second terminal, the second facial image includes at least one facial image; the method also includes: the server sends the first facial image to the second terminal, and sends the second facial image to the first terminal.
[0014] In some embodiments, it also includes: the server obtaining confirmation information of the second facial image sent by the first terminal; the server obtaining confirmation information of the first facial image sent by the second terminal.
[0015] In some embodiments, it also includes: the server storing the facial image features of the authorized user; the server storing the association relationship between the identifier of the lock to be encrypted and the features of the facial image of the authorized user.
[0016] In the third aspect, an embodiment of the present invention also provides a server, including an unlocking device, the unlocking device including: a first acquisition module, used to obtain an unlocking request sent by at least one terminal, the unlocking request carrying the identification information of the lock; the first acquisition module, also used to obtain at least two face images sent by the terminal; a first liveness detection module, used to perform liveness detection on the at least two face images; a comparison module, used to extract features of the face image that passes the liveness detection, and compare the extracted features with multiple face features stored in advance, the multiple face features stored in advance are face features of multiple authorized users associated with the identification information of the lock; the unlocking module, used to send an unlocking instruction by the server when the comparison result of the comparison module is that the multiple authorized users have consistent faces in the face images obtained by the server from the terminal.
[0017] In some embodiments, it also includes a module for terminating unlocking, which is used to terminate unlocking when a face image obtained by the server fails to pass the liveness detection; or, when the comparison result is that the extracted features are inconsistent with the face features of multiple authorized users stored in advance, terminate unlocking; or, after obtaining the unlocking request, if the server does not send an unlocking instruction within a preset time, terminate the unlocking.
[0018] In some embodiments, the first acquisition module is further used to obtain the information of the associated authorized user according to the identification information of the lock; the server also includes a first sending module for sending reminder information to the associated user, and the reminder information includes one or more of the following: unlocking progress, abnormal information.
[0019] In some embodiments, an encryption device is also included, which includes: a second acquisition module, which is also used to obtain a registration request, and the registration request carries the identification information of the lock to be encrypted; the second acquisition module is also used to obtain at least two facial images sent by at least one terminal, and the at least two facial images are associated with the identification of the lock to be encrypted; a second liveness detection module, which is used to perform liveness detection on the at least two facial images; a second feature extraction module, which is used to extract the features of the at least two facial images after passing the liveness detection; an association establishment module, which is used to establish an association between the identification of the lock to be encrypted and the features of the at least two facial images, so that the user corresponding to the features of the at least two facial images is an authorized user, and the authorized user can unlock the lock through the server; an encryption module, which is used to encrypt the lock according to the association.
[0020] In some embodiments, the second acquisition module is also used to: acquire a first facial image sent by a first terminal, the first facial image including at least one facial image; and acquire a second facial image sent by a second terminal, the second facial image including at least one facial image; the encryption device also includes: a second sending module, used to send the first facial image to the second terminal, and send the second facial image to the first terminal.
[0021] In some embodiments, the second acquisition module is further used to: obtain confirmation information of the second facial image sent by the first terminal; and obtain confirmation information of the first facial image sent by the second terminal.
[0022] In some embodiments, the server further includes: a storage module for storing facial image features of the authorized user, and storing an association between the identifier of the lock to be encrypted and the features of the facial image of the authorized user.
[0023] In a fourth aspect, an embodiment of the present invention further provides an unlocking method, comprising: a terminal obtains a request from a user to unlock, the unlocking instruction carrying identification information of the lock; the terminal sends an unlocking request to a server, the unlocking request carrying identification information of the lock; the terminal obtains an image captured by an image acquisition device to which it is connected, and collects a face image therefrom; the terminal sends the face image to the server, so that the server compares the face image with facial features of at least two authorized users associated with the identification information of the lock; the terminal obtains the unlocking instruction sent by the server; the terminal communicates with the lock according to the unlocking instruction sent by the server, and unlocks the lock.
[0024] In some embodiments, when the images captured by the image acquisition device simultaneously contain at least two face images, acquiring the face images therefrom specifically includes: acquiring the at least two face images; and the terminal sending the face images to the server specifically includes: sending the at least two face images to the server.
[0025] In some embodiments, the method further includes: sending invitation information to other authorized users so that the other authorized users can collaboratively unlock the device according to the invitation information.
[0026] In some embodiments, it also includes: obtaining reminder information sent by the server, and the reminder information includes one or more of the following: unlocking progress and abnormal information.
[0027] In some embodiments, the method further includes: obtaining an unlock termination instruction sent by the server, wherein the unlock termination instruction is sent by the server to the terminal under preset conditions.
[0028] In a fifth aspect, an embodiment of the present invention further provides an encryption method, comprising: a terminal sends a registration request to a server, the registration request carrying identification information of a lock to be encrypted; the terminal obtains an image captured by an image acquisition device to which it is connected, and collects a face image therefrom; the face image is sent to the server, the face image being associated with the identification information of the lock to be encrypted; an encryption instruction sent by the server is obtained, the encryption instruction is issued by the server after establishing an association between the identification of the lock to be encrypted and at least two face image features, wherein at least one of the at least two face image features is a feature of the face image sent by the terminal; and the terminal communicates with the lock to be encrypted according to the encryption instruction, and performs an encryption operation on the lock.
[0029] In some embodiments, when the images captured by the image acquisition device simultaneously contain at least two face images, said acquiring the face images therefrom specifically includes: acquiring the at least two face images; and said sending the face images to the server specifically includes: sending the at least two face images to the server.
[0030] In some embodiments, it also includes: sending invitation information to other users, so that the other users can send the facial images of the other users to the server for collaborative encryption according to the invitation information.
[0031] In some embodiments, it also includes: acquiring the facial images of the other users sent by the server to the server; and sending confirmation or non-confirmation information of the facial images of the other users according to the user's instructions.
[0032] In the sixth aspect, an embodiment of the present invention also provides a terminal, comprising an unlocking device, the unlocking device comprising: a third acquisition module, used to obtain a user's request for unlocking, the unlocking instruction carrying the identification information of the lock; a third sending module, used to send an unlocking request to a server, the unlocking request carrying the identification information of the lock; the third acquisition module is also used to obtain an image captured by an image acquisition device connected to the terminal, and to collect a face image therefrom; the third sending module is also used to send the face image to the server, so that the server compares the face image with the face features of at least two authorized users associated with the identification information of the lock; the third acquisition module is also used to obtain the unlocking instruction sent by the server; the third sending module is also used to communicate with the lock according to the unlocking instruction sent by the server, and unlock the lock.
[0033] In some embodiments, the third sending module is further used to send invitation information to other authorized users, so that the other authorized users can collaboratively unlock according to the invitation information.
[0034] In some embodiments, the third acquisition module is further used to obtain reminder information sent by the server, and the reminder information includes one or more of the following: unlocking progress and abnormal information.
[0035] In some embodiments, the third acquisition module is further used to acquire an unlock termination instruction sent by the server, where the unlock termination instruction is sent by the server to the terminal under preset conditions.
[0036] In some embodiments, an encryption device is also included, and the encryption device includes: a fourth sending module, used to send a registration request to the server, the registration request carries the identification information of the lock to be encrypted; a fourth acquisition module, used to acquire an image acquired by the image acquisition device to which it is connected, and to acquire a facial image therefrom; the fourth sending module is also used to send the facial image to the server, the facial image is associated with the identification information of the lock to be encrypted; the fourth acquisition module is also used to acquire an encryption instruction sent by the server, the encryption instruction is issued by the server after establishing an association relationship between the identification of the lock to be encrypted and at least two facial image features, wherein at least one of the at least two facial image features is a feature of the facial image sent by the terminal; the fourth sending module is also used to communicate with the lock to be encrypted according to the encryption instruction and perform an encryption operation on the lock.
[0037] In some embodiments, the fourth sending module is further used to send invitation information to other users, so that the other users can send the facial images of the other users to the server for collaborative encryption according to the invitation information.
[0038] In some embodiments, the fourth acquisition module is also used to acquire the facial images of other users sent by the other users to the server; the fourth sending module is also used to send confirmation or non-confirmation information for the facial images of other users according to the user's instructions.
[0039] In the seventh aspect, an embodiment of the present invention further provides a lock, comprising a lock body, a communication unit and a processor, wherein the communication unit communicates with the terminal described in any one of the above-mentioned sixth aspect, and the processing unit encrypts or unlocks the lock body according to the information obtained by the communication unit.
[0040] In an eighth aspect, an embodiment of the present invention further provides a computer device, comprising: at least one processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; a memory coupled to the at least one processor, wherein the memory stores executable instructions, wherein the executable instructions, when executed by the at least one processor, implement the method in the first, second, fourth or fifth aspect above.
[0041] In a ninth aspect, an embodiment of the present invention further provides a chip for executing the method in the first aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip is used to execute the method in the first, second, fourth or fifth aspect.
[0042] In the tenth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in the first aspect, the second aspect, the fourth aspect or the fifth aspect is implemented.
[0043] In an eleventh aspect, an embodiment of the present invention further provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect, the second aspect, the fourth aspect or the fifth aspect.
[0044] It can be seen that the unlocking method of the embodiment of the present invention extracts the facial image features sent by the terminal and compares them with the facial features of multiple authorized users stored. When all authorized users have the same face in the facial image obtained by the server from the terminal, the unlocking is performed, thereby realizing multi-person collaborative real-time remote unlocking, which ensures the security of unlocking on the one hand, and meets the requirements of online and real-time remote unlocking in various scenarios on the other hand. The corresponding encryption method of the embodiment of the present invention associates the multiple facial image features sent by the terminal with the lock to be encrypted, so that the unlocking operation can be performed only after all authorized users associated with the lock perform online collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 is a flowchart of a specific embodiment of the unlocking method of the present invention;
[0047] Figure 2 A flowchart of a specific embodiment of the encryption method of the present invention;
[0048] Figure 3 A structural block diagram of a specific embodiment of an unlocking device of a server of the present invention;
[0049] Figure 4 A structural block diagram of a specific embodiment of the encryption device of the server of the present invention;
[0050] Figure 5 is a flowchart of a specific embodiment of the unlocking method of the present invention;
[0051] Figure 6 A flowchart of a specific embodiment of the encryption method of the present invention;
[0052] Figure 7 A structural block diagram of a specific embodiment of an unlocking device for a terminal of the present invention;
[0053] Figure 8 A structural block diagram of a specific embodiment of an encryption device of a terminal of the present invention;
[0054] Fig. 9 This is a basic structural block diagram of the computer device in this embodiment. Specific implementation plan
[0055] The present application is described in detail below in conjunction with the drawings and specific embodiments, so that the purpose, features and advantages of the present application are more clearly understood. It should be understood that the aspects described below in conjunction with the drawings and specific embodiments are only exemplary and should not be construed as limiting the scope of protection of the present application in any way. Unless the context clearly indicates otherwise, the singular forms "one" and "the" include plural referents. As used in the present application, the terms "first" and "second" are used interchangeably to distinguish one or a class of components from another or another class, respectively, and are not intended to represent the position or importance of independent components.
[0056] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0057] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0058] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0059] In some specific scenarios, multi-face collaborative encryption unlocking is a very practical technical solution. For example, in protecting major public equipment of enterprises, common property of husband and wife, important collective secrets, large-amount payment management, etc., certain decisions need to be made on the basis of consensus among multiple people. At this time, the multi-face collaborative encryption unlocking solution can effectively and conveniently maintain the consensus agreement and safeguard collective interests. However, the existing technology cannot meet the requirements of real-time remote multi-person collaborative unlocking. In order to solve the problems of the existing technology, the inventors of this application propose the following specific methods to solve the above problems.
[0060] In a first aspect, an embodiment of the present invention provides an unlocking method. Figure 1 is a flowchart of a specific embodiment of the unlocking method of the present invention, according to Figure 1 As shown, the method of this embodiment includes:
[0061] In step 110, the server obtains an unlock request sent by at least one terminal, and the unlock request carries the identification information of the lock. In this step, the server obtains the unlock request sent by the terminal. It can be understood that multi-person collaborative unlocking includes at least two authorized users. It can be set that the unlocking can only be completed when all authorized users collaborate, or it can be set that not all authorized users are required. For example, a certain proportion of people are pre-set to complete collaborative unlocking, or levels are set for authorized users, and different unlocking weights are assigned to authorized users of different levels. This embodiment is not limited to this. For the convenience of description, the embodiment of the present application takes the example that all authorized users must collaborate to complete unlocking. The authorized user is a user with unlocking authority. In the embodiment of the present application, the server confirms the authorized user by comparing facial image features. The specific method of extracting facial image features and comparing facial image features can be carried out using existing and future technologies, and the embodiment of the present application is not limited to this.
[0062] In the embodiment of the present application, it is understood that a server can manage multiple locks, and each individual lock can be distinguished by, for example, a serial number or identification information. Taking one of the locks as an example, the server can store in advance the facial image features of the authorized user corresponding to the lock, as well as the association between the lock and the authorized user, i.e., the facial features. The pre-storage process can be implemented by an encryption process, which can be specifically referred to in Figure 2 Corresponding specific embodiments. It can be understood that in describing the embodiments of the present application, the authorized user stored in the server includes the facial features or facial image features of the authorized user, and sometimes the several expressions are not distinguished.
[0063] Regardless of the method, the unlocking request sent by the terminal can carry the identification information of the lock, so that the server can implement subsequent unlocking steps according to the pre-stored association relationship between the lock and the authorized user.
[0064] In step 120, the server obtains at least two face images sent by the terminal. It can be understood that there are at least two users participating in collaborative unlocking, that is, there are at least two authorized users associated with a lock, but for the server, it is not limited to whether the at least two users perform collaborative unlocking through the same terminal or through different terminals. For example, each user can perform collaborative unlocking through their own terminal, or at least two users can perform collaborative unlocking through the same terminal, and this application is not limited to this.
[0065] Therefore, the server will receive at least two facial images sent by at least one terminal. The server may also obtain a facial image from each of the two terminals during the collaborative unlocking process, or obtain facial images from two or more terminals during the collaborative unlocking process, obtain a facial image sent by the terminal from some of the terminals, and obtain multiple facial images sent by the terminals from another part of the terminals. The server obtains several facial images from several terminals respectively, which is determined by the operations of the terminal users participating in the collaborative unlocking, and the server does not limit this. However, during the collaborative unlocking process, the server will receive at least two facial images sent by the terminal. In order to facilitate the server to identify which lock among the locks managed by the server the acquired facial image is for collaborative unlocking, the facial images sent by the terminal received by the server can carry the identification number of the lock to be unlocked.
[0066] Step 130, the server performs liveness detection on the at least two face images; in this step, the server performs liveness detection on the at least two face images received. Liveness detection can specifically adopt various existing technologies, including various anti-attack technologies, etc. The server can perform liveness detection when receiving a face image, or after receiving face images equal to the number of authorized users.
[0067] After the liveness detection is passed, the subsequent steps can be carried out. When the acquired face image fails to successfully pass the liveness detection, the server can make a decision to terminate the unlocking. At the same time, the server can send the information of terminating the unlocking to the users participating in the collaborative unlocking. Specifically, the server can choose to send the information to the user through a variety of methods. For example, the server can send the information to the reserved contact information of the authorized user of the lock, such as a mobile phone number, an email address, or the server can also send the information to the terminal participating in the collaborative unlocking. Furthermore, the server can instruct the terminal to create a session and display the information to be sent through the session. This method allows users to obtain information or progress about the unlocking at any time and understand possible abnormalities or risks.
[0068] It is understandable that the server can send information to the terminals participating in collaborative unlocking through a variety of existing technologies, which will not be described in detail in this application. The subsequent server can also refer to the various methods or combinations of this step, and for the sake of brevity, no repetition will be given.
[0069] Step 140, extracting features of the facial image obtained through liveness detection, and comparing the extracted features with a plurality of facial features stored in advance, wherein the plurality of facial features stored in advance are facial features of a plurality of authorized users associated with the identification information of the lock.
[0070] In this step, the server extracts facial image features from the face detected through liveness detection, and the feature extraction method adopted may also adopt any existing or future technology. The extracted facial features are compared with the facial features stored in advance. Since there are at least two authorized users in multi-person collaborative unlocking, at least two facial features are stored. The server queries the authorized user associated with the lock with the identification number to be unlocked carried by the acquired facial image, that is, queries the facial features of the authorized user corresponding to the identification number. The acquired facial features are compared with the stored facial features.
[0071] Specifically, each time a facial image sent by a terminal is obtained, the image is compared with the facial features of N (N is at least 2) authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful.
[0072] At this time, the server can further send the information of successful comparison or verification of the authorized user to the authorized user or to the terminal participating in the collaborative unlocking. This method allows users to obtain information or progress about unlocking in various ways and understand possible anomalies or risks. For example, if other unauthorized users perform unlocking operations, the authorized user can know through the reserved information, which can further improve security.
[0073] Furthermore, the server can use this information as a reminder to create a session through the instruction terminal, and display the reminder information through the session. The session method can transmit and update the unlocking status in real time, improving the user experience.
[0074] Specifically, the server can also set a progress bar according to the number of authorized users and the number of people who have passed verification, so as to intuitively display the progress of unlocking in the session. For example, when there are four authorized users and one of them has a successful facial image feature comparison, that is, the verification is passed, the progress bar will be displayed as one quarter.
[0075] Furthermore, if the facial image features are compared with the N preset authorized users, and the server considers that the face is not any authorized user according to the preset conditions, the verification is considered to have failed, and the server can terminate the unlocking. Correspondingly, information can also be sent to the authorized user or the terminal involved in the unlocking.
[0076] As for the preset conditions for the success or failure of the server's facial feature comparison, they can be achieved through the constantly updated technology in this field, and this application does not limit them.
[0077] When the server confirms through facial feature comparison that the first facial image received is one of the N authorized users, when the server obtains another facial image sent by the terminal, it can compare this facial image with the facial features of the remaining (N-1) authorized users. If the comparison is successful, the unlocking progress is updated to one-half. If the verification fails, the unlocking is terminated and a message is sent. Of course, the server can also compare each received facial image with all N authorized users. The present invention is not limited to this.
[0078] Step 150: When the comparison result shows that the plurality of authorized users have consistent faces in the face images obtained by the server from the terminal, the server sends an unlock instruction.
[0079] Repeat the facial feature comparison in step 140. When the facial image features obtained from the terminal are successfully compared and all authorized users are verified, the unlocking is considered successful. The server can send an unlocking instruction to the terminal so that the terminal can communicate with the lock to be unlocked after receiving the unlocking instruction to implement the unlocking operation.
[0080] The unlocking method of the embodiment of the present invention extracts the facial image features sent by the terminal and compares them with the facial features of multiple stored authorized users. When all authorized users have consistent faces in the facial images obtained by the server from the terminal, unlocking is performed, thereby realizing real-time remote unlocking by multiple people. On the one hand, it ensures the security of unlocking, and on the other hand, it meets the needs of online and real-time remote unlocking in various scenarios.
[0081] In another specific embodiment, after obtaining the unlocking request, the server obtains the information of the associated authorized user based on the identification information of the lock; the server sends a reminder message to the associated user based on the information of the associated authorized user, and the reminder message includes one or more of the following: unlocking progress, abnormal information, and the abnormal information may include one or more of the following: liveness detection failure information, facial feature comparison failure information.
[0082] Furthermore, in another specific implementation, after obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated. Setting a time limit for the unlock can reduce the risk and further improve the safety index.
[0083] In a second aspect, an embodiment of the present invention provides an encryption method. Figure 2 is a flowchart of a specific embodiment of the encryption method of the present invention, according to Figure 2 As shown, the method of this embodiment includes:
[0084] Step 210, the server obtains a registration request, and the registration request carries the identification information of the lock to be encrypted; usually, when the user obtains the lock device, he can download and install the application through the corresponding QR code, and when the user opens the application, he can enter the initialization process of the device configuration. After purchasing the lock, the setting that the user needs to perform before decryption is the encryption setting. The lock device can be configured with a module or port for accessing the network. For example, taking WIFI as an example, it can access the WIFI network or other current or future networks. Specifically, the network configuration of the lock device can be performed through a terminal, such as a mobile phone terminal. This network configuration method and the hardware used can adopt various existing technologies, and this application is not limited.
[0085] After the lock device network configuration is successful, the terminal can send the obtained identification information of the lock device to the server to request registration. Correspondingly, the server obtains the registration request sent by the terminal, and the registration request carries the identification information of the lock to be encrypted. The server can also establish a library of lock devices managed by the server through the identification information, or the server itself can store the lock devices it manages, and can determine whether the lock belongs to the lock devices it manages based on the identification information.
[0086] In step 220, the server obtains at least two facial images sent by at least one terminal, and the at least two facial images are associated with the identification of the lock to be encrypted; it can be understood that in a collaborative unlocking scenario, at least two authorized users are required to perform collaborative unlocking, that is, there are at least two authorized users associated with a lock. Therefore, in this step, the server obtains at least two facial images sent by at least one terminal. In order for the server to know which lock the received facial image belongs to, the at least two facial images may also carry the identification of the lock to be encrypted, so that the at least two facial images are associated with the identification of the lock to be encrypted.
[0087] Step 230: the server performs liveness detection on the at least two face images. In this step, the server performs liveness detection on the at least two face images received. Liveness detection can specifically adopt various existing technologies, including various anti-attack technologies.
[0088] When the liveness detection is passed, the subsequent steps can be performed. If the acquired face image fails to pass the liveness detection, the server can send a reminder message to the user or terminal. The specific reminder method can refer to Figure 1 Corresponding embodiment: When the liveness detection fails, the server may terminate the encryption process, or further remind the user to restart the encryption process.
[0089] Step 240, after the liveness detection, extract the features of the at least two face images; in this step, the server extracts the face image features of the face that has passed the liveness detection, and the feature extraction method adopted may also adopt any existing or future technology.
[0090] Step 250, establishing an association relationship between the identifier of the lock to be encrypted and the features of the at least two face images, so that the user corresponding to the features of the at least two face images is an authorized user, and the authorized user can unlock the lock through the server;
[0091] As can be seen from step 220, the at least two face images acquired by the server may also carry the identification of the lock to be encrypted, so that the at least two face images are associated with the identification of the lock to be encrypted. Accordingly, in this step, for the face image that has passed the liveness detection, after extracting its feature data, an association relationship between the features of the face image and the lock to be encrypted is established, specifically, an association relationship between the features of the face image and the identification of the lock to be encrypted is established, and the user corresponding to the features of the at least two face images is set as an authorized user, that is, in the future collaborative unlocking process, all authorized users can collaboratively unlock the lock device.
[0092] Step 260, encrypting the lock according to the association. After the authorized user is set and the association between the authorized user's facial image features and the lock is completed, the server can send an instruction to the terminal to complete the encryption setting of the lock device. The terminal can communicate with the lock device according to the received instruction to complete the encryption setting of the lock.
[0093] The encryption method of the embodiment of the present invention associates multiple facial image features sent by the terminal with the lock to be encrypted, so that the unlocking operation can be performed only after online collaboration of all authorized users associated with the lock.
[0094] It can be understood that there are at least two users participating in collaborative encryption, that is, there are at least two authorized users associated with a lock, but for the server side, it is not limited whether the at least two users perform collaborative encryption through the same terminal or through different terminals. If it is performed through different terminals, further, in one embodiment, the at least one terminal includes a first terminal and a second terminal, and the server obtains at least two facial images sent by at least one terminal, specifically including: the server obtains a first facial image sent by the first terminal, and the first facial image includes at least one facial image; the server obtains a second facial image sent by the second terminal, and the second facial image includes at least one facial image.
[0095] Since there are two terminals sending facial images to the server for encryption, the method may also include: the server sending the first facial image to the second terminal, and sending the second facial image to the first terminal, so that users operating at different terminals can confirm users operating at other terminals, further improving the security of the encryption result.
[0096] Therefore, further, the server also obtains the confirmation information of the second facial image sent by the first terminal; and the server obtains the confirmation information of the first facial image sent by the second terminal. When the server confirms that each authorized user has been confirmed by other users, the encryption process is further performed. This method allows each authorized user to be recognized by other users online, and at the same time each user also recognizes all other users. After that, these mutually recognized users are set as authorized users by the server, which further strengthens the confirmation process and improves security.
[0097] In one embodiment, the encryption method further includes: the server stores the facial image features of the authorized user; the server stores the association relationship between the identifier of the lock to be encrypted and the features of the facial image of the authorized user. Through this step, in the subsequent decryption process, the server can directly obtain the facial image features of the authorized user from the local computer and obtain the association relationship between the lock identifier and the features of the facial image of the authorized user from the local computer. This ensures the timeliness of data and the security of storage.
[0098] In a third aspect, an embodiment of the present invention provides a server, Figure 3 The structural block diagram of a specific embodiment of the unlocking device of the server of the present invention is as follows Figure 3 As shown, the unlocking device of the server of this embodiment includes a first acquisition module 301, a first liveness detection module 302, a comparison module 303, and an unlocking module 304, wherein the first acquisition module 301 is used to acquire an unlocking request sent by at least one terminal, and the unlocking request carries identification information of the lock;
[0099] The first acquisition module 301 is further used to acquire at least two face images sent by the terminal;
[0100] A first living body detection module 302, configured to perform living body detection on the at least two face images;
[0101] A comparison module 303 is used to extract features of the face image through liveness detection, and compare the extracted features with a plurality of face features stored in advance, where the plurality of face features stored in advance are face features of a plurality of authorized users associated with the identification information of the lock;
[0102] The unlocking module 304 is configured to send an unlocking instruction to the server when the comparison result of the comparison module is that the plurality of authorized users have consistent faces in the face images obtained by the server from the terminal.
[0103] The operations performed by each module of the server unlocking device in this embodiment can be specifically referred to in Figure 1 The corresponding methods achieve the same technical effect.
[0104] In one embodiment, the unlocking device of the further server also includes a termination unlocking module, which is used to terminate the unlocking when a face image obtained by the server fails to pass the liveness detection; or, terminate the unlocking when the comparison result is that the extracted features are inconsistent with the face features of multiple authorized users stored in advance; or, after obtaining the unlocking request, if the server does not send an unlocking instruction within a preset time, terminate the unlocking.
[0105] Furthermore, in one embodiment, the first acquisition module of the unlocking device of the server is also used to obtain the information of the associated authorized user based on the identification information of the lock; the server also includes a first sending module, which is used to send reminder information to the associated user, and the reminder information includes one or more of the following: unlocking progress, abnormal information.
[0106] Figure 4 A structural block diagram of a specific embodiment of the encryption device of the server of the present invention is shown in FIG. Figure 4 As shown, the encryption device of the server of this embodiment includes: a second acquisition module 401, a second liveness detection module 402, a second feature extraction module 403, an association relationship establishment module 404 and an encryption module 405. Among them, the second acquisition module 401 is also used to obtain a registration request, and the registration request carries the identification information of the lock to be encrypted;
[0107] The second acquisition module 401 is further used to acquire at least two face images sent by at least one terminal, wherein the at least two face images are associated with the identifier of the lock to be encrypted;
[0108] A second living body detection module 402, configured to perform living body detection on the at least two face images;
[0109] A second feature extraction module 403, configured to extract features of the at least two face images after the living body detection;
[0110] An association relationship establishment module 404 is used to establish an association relationship between the identification of the lock to be encrypted and the features of the at least two face images, so that the user corresponding to the features of the at least two face images is an authorized user, and the authorized user can unlock the lock through the server;
[0111] The encryption module 405 is used to encrypt the lock according to the association relationship.
[0112] The operations performed by each module of the server encryption device in this embodiment can be specifically referred to in Figure 2 The corresponding methods achieve the same technical effect.
[0113] Furthermore, in one embodiment, in the encryption device of the server, the second acquisition module is also used to: acquire a first facial image sent by the first terminal, the first facial image including at least one facial image; and acquire a second facial image sent by the second terminal, the second facial image including at least one facial image; the encryption device also includes: a second sending module, used to send the first facial image to the second terminal, and send the second facial image to the first terminal.
[0114] Furthermore, in one embodiment, in the encryption device of the server, the second acquisition module is also used to: obtain confirmation information of the second facial image sent by the first terminal; and obtain confirmation information of the first facial image sent by the second terminal.
[0115] Furthermore, in one embodiment, the encryption device of the server further includes: a storage module for storing facial image features of the authorized user, and storing an association between the identifier of the lock to be encrypted and the features of the facial image of the authorized user.
[0116] In a fourth aspect, an embodiment of the present invention provides an unlocking method. Figure 5 is a flowchart of a specific embodiment of the unlocking method of the present invention, according to Figure 5 As shown, the method of this embodiment includes:
[0117] In step 510, the terminal obtains a request from the user to unlock, and the unlock instruction carries identification information of the lock; it can be understood that in this step, the terminal can obtain a request from the user to unlock based on the user's operation, and the information requesting unlock can carry identification information of the lock, so that the terminal can carry identification information to be unlocked when sending an unlock request to the server.
[0118] Step 520: The terminal sends an unlock request to the server, and the unlock request carries the identification information of the lock. In this step, the terminal sends an unlock request to the server, and the unlock request carries the identification information of the lock. In addition, the information sent by the terminal may also include the terminal's own information, so that the terminal can receive the information when the server sends it to the terminal later, so that the user can timely understand the progress of the unlock and other information.
[0119] In step 530, the terminal obtains the image captured by the image acquisition device to which it is connected, and collects a facial image therefrom; the present application does not specifically limit what the terminal is, for example, it may be a tablet computer, a computer, a mobile phone or other device, and the connected image acquisition device is not limited either, it may be an image acquisition device that comes with the terminal, such as a camera, or it may be an image acquisition device connected to the terminal through a port.
[0120] It is understandable that, since collaborative unlocking involves at least two authorized users, the total number of facial images sent to the server by all terminals participating in collaborative unlocking should be at least two. However, the present application does not limit whether the at least two users perform collaborative unlocking through the same terminal or through different terminals. For example, each user may perform collaborative unlocking through their own terminal, or at least two users may perform collaborative unlocking through the same terminal, and the present application does not limit this. In other words, through one terminal, the facial image of one user may be sent to the server, or the facial images of at least two users may be sent. For example, when two users perform collaborative unlocking through one terminal, if the two users are in the image acquisition range of the terminal's camera at the same time, the image captured by the image acquisition device contains at least two facial images at the same time.
[0121] At this time, further, when the image captured by the image acquisition device contains at least two face images at the same time, the capturing of face images therefrom specifically includes: capturing the at least two face images; the terminal sending the face images to the server specifically includes: sending the at least two face images to the server. At this time, multiple faces can be detected on the same screen. And the data of the captured multiple faces are sent to the server. That is, multiple faces on the same screen are supported during the face capturing process of the terminal camera.
[0122] Step 540, the terminal sends the facial image to the server so that the server compares the facial image with facial features of at least two authorized users associated with the identification information of the lock; in this step, the terminal sends the facial image to the server, carrying the identification number of the lock device to be unlocked.
[0123] Step 550: The terminal obtains the unlocking instruction sent by the server; the server can Figure 1 The corresponding method confirms whether an unlock instruction can be sent to the terminal, or whether an exception is encountered during the unlock process and a reminder message needs to be sent to the terminal. Accordingly, the terminal obtains the unlock instruction sent by the server. Alternatively, if an exception is encountered during the unlock process, the terminal obtains the unlock termination instruction sent by the server, which is sent by the server to the terminal under preset conditions. The preset conditions and sending methods here can be referred to Figure 1 The corresponding method.
[0124] Step 560: the terminal communicates with the lock according to the unlocking instruction sent by the server and performs an unlocking operation on the lock. After receiving the instruction sent by the server and communicating with the lock device, the terminal performs several operations on the lock.
[0125] After obtaining a user's request to unlock, the embodiment of the present invention sends the collected facial image and the serial number of the device to be unlocked to the server. When all authorized users have a consistent face in the facial image obtained by the server from the terminal, unlocking is performed, thereby realizing real-time remote unlocking by multi-person collaboration. On the one hand, it ensures the security of unlocking, and on the other hand, it meets the needs of online and real-time remote unlocking in various scenarios.
[0126] In another specific implementation, further, when there is more than one terminal for collaborative unlocking, the unlocking method further includes: sending invitation information to other authorized users, so that the other authorized users can perform collaborative unlocking according to the invitation information.
[0127] In another specific implementation, further, the unlocking method also includes: obtaining reminder information sent by the server, and the reminder information includes one or more of the following: unlocking progress and abnormal information.
[0128] Furthermore, when an unlocking exception occurs, the terminal can also obtain an unlock termination instruction sent by the server, where the unlock termination instruction is sent by the server to the terminal under preset conditions. The preset conditions and specific sending method can be found in Figure 1 The corresponding method.
[0129] In a fifth aspect, an embodiment of the present invention provides an encryption method. Figure 6 is a flowchart of a specific embodiment of the decryption method of the present invention, according to Figure 6 As shown, the method of this embodiment includes:
[0130] Step 610, the terminal sends a registration request to the server, and the registration request carries the identification information of the lock to be encrypted; usually, when the user obtains the lock device, he can download and install the application through the corresponding QR code, and when the user opens the application, he can enter the initialization process of the device configuration. After purchasing the lock, the setting that the user needs to perform before decryption is the encryption setting. The lock device can be configured with a module or port for accessing the network. For example, taking WIFI as an example, it can access the WIFI network or other current or future networks. Specifically, the network configuration of the lock device can be performed through a terminal, such as a mobile phone terminal. This network configuration method and the hardware used can adopt various existing technologies, and this application does not limit it. After completing the settings, the terminal can send the identification information of the obtained lock device to the server to request registration.
[0131] In step 620, the terminal obtains the image captured by the image acquisition device to which it is connected, and collects a facial image therefrom; the present application does not specifically limit what the terminal is, for example, it may be a tablet computer, a computer, a mobile phone or other device, and the connected image acquisition device is not limited either, it may be an image acquisition device that comes with the terminal, such as a camera, or it may be an image acquisition device connected to the terminal through a port.
[0132] Since collaborative unlocking involves at least two authorized users, the total number of facial images sent to the server by all terminals participating in collaborative unlocking should be at least two. However, the present application does not limit whether the at least two users perform collaborative unlocking through the same terminal or through different terminals. For example, each user may perform collaborative unlocking through their own terminal, or at least two users may perform collaborative unlocking through the same terminal, and the present application does not limit this. In other words, through one terminal, the facial image of one user may be sent to the server, or the facial images of at least two users may be sent. For example, when two users perform collaborative unlocking through one terminal, if the two users are in the image acquisition range of the terminal's camera at the same time, the image captured by the image acquisition device will contain at least two facial images at the same time.
[0133] Therefore, in this step, the terminal obtains the image captured by the image acquisition device to which it is connected, and the facial image collected therefrom may be one or more than two. And the terminal supports multiple faces on the same screen during the face collection process.
[0134] Step 630, sending the facial image to the server, wherein the facial image is associated with the identification information of the lock to be encrypted; in this step, the facial image collected in the previous step is sent to the server, and carries the identification information of the lock to be encrypted.
[0135] Step 640, obtaining an encryption instruction sent by the server, wherein the encryption instruction is sent by the server after establishing an association relationship between the identifier of the lock to be encrypted and at least two facial image features, wherein at least one of the at least two facial image features is a feature of the facial image sent by the terminal;
[0136] from Figure 2 The corresponding embodiment can be understood that after receiving the face image carrying the lock mark, the server will perform a series of steps, such as liveness detection, feature extraction, etc. For example, after extracting the feature data of the face image that passes the liveness detection, the server establishes an association between the features of the face image and the lock to be encrypted. After completing these actions, the server sends an encryption instruction to the terminal, and correspondingly, the terminal obtains the encryption instruction sent by the server.
[0137] Step 650: Communicate with the lock to be encrypted according to the encryption instruction and perform encryption operation on the lock. The terminal communicates with the lock to be encrypted according to the received encryption instruction and performs encryption operation on the lock to be encrypted.
[0138] In an embodiment of the present invention, the terminal sends the collected multiple face images and the identification number of the lock to be encrypted to the server, so that the server can associate the facial features with the lock to be encrypted, so that all authorized users associated with the lock can subsequently collaborate online to perform the unlocking operation.
[0139] Furthermore, in one embodiment, when the images captured by the image acquisition device simultaneously contain at least two face images, said acquiring the face images therefrom specifically includes: acquiring the at least two face images; and said sending the face images to the server specifically includes: sending the at least two face images to the server.
[0140] Furthermore, in one embodiment, the encryption method further includes: sending invitation information to other users, so that the other users can send the facial images of the other users to the server for collaborative encryption according to the invitation information.
[0141] Furthermore, in one embodiment, the encryption method further includes: obtaining the facial image of the other user sent by the other user to the server; and sending confirmation or non-confirmation information of the facial image of the other user according to the user's instruction. Each collaborative encryption user is recognized by other users online, and at the same time, each user also recognizes all other users. After that, these mutually recognized users are set as authorized users by the server, which further strengthens the confirmation process and improves security.
[0142] In a sixth aspect, an embodiment of the present invention provides a terminal, Figure 7 A structural block diagram of a specific embodiment of the unlocking device of the terminal of the present invention, according to Figure 7 As shown, the terminal unlocking device of this embodiment includes a third acquisition module 701 and a third sending module 702, wherein:
[0143] The third acquisition module 701 is used to acquire a user's request for unlocking, where the unlocking instruction carries identification information of the lock;
[0144] A third sending module 702 is used to send an unlock request to the server, where the unlock request carries identification information of the lock;
[0145] The third acquisition module is further used to acquire images acquired by an image acquisition device connected to the terminal, and to acquire a face image therefrom;
[0146] The third sending module is further used to send the facial image to the server so that the server compares the facial image with facial features of at least two authorized users associated with the identification information of the lock;
[0147] The third acquisition module is further used to acquire the unlock instruction sent by the server;
[0148] The third sending module is further used to communicate with the lock according to the unlocking instruction sent by the server to unlock the lock.
[0149] The operations performed by each module of the terminal unlocking device in this embodiment can be specifically referred to in Figure 5 The corresponding methods achieve the same technical effect.
[0150] Furthermore, in one embodiment, the third sending module is further configured to send invitation information to other authorized users, so that the other authorized users can collaboratively unlock according to the invitation information.
[0151] Furthermore, in one embodiment, the third acquisition module is further used to acquire reminder information sent by the server, and the reminder information includes one or more of the following: unlocking progress and abnormal information.
[0152] Furthermore, in one embodiment, the third acquisition module is further used to acquire an unlock termination instruction sent by the server, where the unlock termination instruction is sent by the server to the terminal under preset conditions.
[0153] Figure 8 A structural block diagram of a specific embodiment of the encryption device of the terminal of the present invention, according to Figure 8 As shown, the encryption device of the terminal of this embodiment includes: a fourth sending module 801 and a fourth obtaining module 802, wherein:
[0154] The fourth sending module 801 is used to send a registration request to the server, where the registration request carries the identification information of the lock to be encrypted;
[0155] The fourth acquisition module 802 is used to acquire images acquired by the image acquisition device to which it is connected, and to acquire a face image therefrom;
[0156] The fourth sending module is further used to send the facial image to the server, wherein the facial image is associated with the identification information of the lock to be encrypted;
[0157] The fourth acquisition module is further used to acquire an encryption instruction sent by the server, wherein the encryption instruction is issued by the server after establishing an association relationship between the identifier of the lock to be encrypted and at least two facial image features, wherein at least one of the at least two facial image features is a feature of the facial image sent by the terminal;
[0158] The fourth sending module is further used to communicate with the lock to be encrypted according to the encryption instruction and perform encryption operation on the lock.
[0159] The operations performed by each module of the terminal encryption device in this embodiment can be specifically referred to in Figure 6 The corresponding methods achieve the same technical effect.
[0160] Furthermore, in one embodiment, the fourth sending module is also used to send invitation information to other users, so that the other users can send the facial images of the other users to the server for collaborative encryption according to the invitation information.
[0161] Furthermore, in one embodiment, the fourth acquisition module is also used to acquire the facial images of the other users sent by the other users to the server; the fourth sending module is also used to send confirmation or non-confirmation information for the facial images of the other users according to the user's instructions.
[0162] In the seventh aspect, an embodiment of the present invention further provides a lock, characterized in that it includes a lock body, a communication unit and a processor, the communication unit communicates with the terminal of the sixth aspect above, and the processing unit encrypts or unlocks the lock body according to the information obtained by the communication unit.
[0163] In an eighth aspect, the present application embodiment further provides a computer device, which may be a neural network server. For details, please refer to Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.
[0164] The computer device 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 9 with components 91-93, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device 9 here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0165] The computer device 9 may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The computer device 9 may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0166] The memory 91 includes at least one type of readable storage medium, and the memory can store executable instructions of a controller, a microcontroller, a microprocessor, or other data processing chip, and includes at least one type of readable storage medium. The readable storage medium includes a non-volatile memory or a volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a random access memory (random access memory, RAM), a read-only memory (read-only memory, ROM), an erasable programmable read-only memory (erasable programmable read-only memory, EPROM), an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a programmable read-only memory (programmable read-only memory, PROM), a magnetic memory, a disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 91 may be an internal storage unit of the computer device 9, such as a hard disk or a memory of the computer device 9. In other embodiments, the memory 91 may also be an external storage device of the computer device 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device 9. Of course, the memory 91 may also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 91 is generally used to store the operating system and various application software installed on the computer device 9, such as program codes for performing encryption and decryption, etc. In addition, the memory 91 may also be used to temporarily store various data that have been output or are to be output.
[0167] In the embodiment of the present application, the processor 92 may be a central processing unit (CPU) or a graphic processing unit (GPU). The processor 92 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, such as a single-chip microcomputer, etc.
[0168] The processor 92 is generally used to control the overall operation of the computer device 9. In this embodiment, the memory 91 is used to store program codes or instructions, the program codes include computer operation instructions, and the processor 92 is used to execute the program codes or instructions stored in the memory 91 or process data, such as executing encryption and decryption program codes.
[0169] The bus described in this article can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0170] In a ninth aspect, an embodiment of the present invention further provides a chip for executing the method in the first aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip is used to execute the method in the first, second, fourth or fifth aspect.
[0171] In addition, in the tenth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the method in the first aspect, the second aspect, the fourth aspect, or the fifth aspect above, and generate a device for implementing the functional actions specified in each block of the block diagram or a combination of blocks.
[0172] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing, wherein the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions stored in the memory.
[0173] The definitions of the memory and the processor can refer to the description of the aforementioned computer device embodiment, which will not be repeated here. The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method described in any one of the first aspect, the second aspect, the fourth aspect or the fifth aspect is implemented.
[0174] In an eleventh aspect, an embodiment of the present invention further provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect, the second aspect, the fourth aspect or the fifth aspect.
[0175] It will be appreciated by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art 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 this application.
[0176] In the embodiments of the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system. In addition, the coupling between the various units can be direct coupling or indirect coupling. In addition, the various functional units in the embodiments of the present application can be integrated into a processing unit, or can be separate physical existences, etc.
[0177] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0178] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a machine-readable storage medium. Therefore, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a machine-readable storage medium, which can include several instructions to enable an electronic device to perform all or part of the technical solution described in the embodiments of the present application. The above-mentioned storage medium may include various media that can store program codes, such as ROM, RAM, removable disk, hard disk, magnetic disk or optical disk.
[0179] The above contents are only specific implementation methods of the present application, and the protection scope of the present application is not limited thereto. Those skilled in the art may make changes or substitutions within the technical scope disclosed in the present application, and these changes or substitutions shall be within the protection scope of the present application.
Claims
1. An unlocking method, characterized in that: include: The server obtains an unlocking request sent by at least one terminal, where the unlocking request carries identification information of the lock; The server obtains at least two face images sent by the terminal; The server performs liveness detection on the at least two face images; Extracting features of the face image through liveness detection, and comparing the extracted features with a plurality of face features stored in advance, wherein the plurality of face features stored in advance are face features of a plurality of authorized users associated with the identification information of the lock; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; When the comparison result shows that the plurality of authorized users have consistent faces in the face image obtained by the server from the terminal, the server sends an unlock instruction; After obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated.
2. An encryption method, characterized in that: include: The server obtains a registration request, where the registration request carries identification information of the lock to be encrypted; The server obtains at least two face images sent by at least one terminal, wherein the at least two face images are associated with the identifier of the lock to be encrypted; After the living body detection, extracting the features of the at least two face images; Establishing an association relationship between the identifier of the lock to be encrypted and the features of the at least two face images, so that the user corresponding to the features of the at least two face images is an authorized user, and the authorized user can unlock the lock through the server; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; After receiving the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated; The lock is encrypted according to the association relationship.
3. A server, characterized in that: An unlocking device is included, wherein the unlocking device includes: A first acquisition module, configured to acquire an unlock request sent by at least one terminal, wherein the unlock request carries identification information of the lock; The first acquisition module is further used to acquire at least two face images sent by the terminal; A first living body detection module, used for performing living body detection on the at least two face images; A comparison module, used to extract features of a face image through liveness detection, and compare the extracted features with a plurality of face features stored in advance, wherein the plurality of face features stored in advance are face features of a plurality of authorized users associated with the identification information of the lock; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; an unlocking module, configured to cause the server to send an unlocking instruction when the comparison result of the comparison module is that the plurality of authorized users have consistent faces in the face image obtained by the server from the terminal; After obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated.
4. An unlocking method, characterized in that: include: The terminal obtains a request from a user to unlock the lock, where the unlock request carries identification information of the lock; The terminal sends an unlock request to the server, wherein the unlock request carries identification information of the lock; The terminal obtains an image captured by an image acquisition device to which it is connected, and collects a face image therefrom; The terminal sends the facial image to the server so that the server compares the facial image with facial features of at least two authorized users associated with the identification information of the lock; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; The terminal obtains an unlocking instruction sent by the server; The terminal communicates with the lock according to the unlocking instruction sent by the server, and performs an unlocking operation on the lock; After obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated.
5. An encryption method, characterized in that: include: The terminal sends a registration request to the server, wherein the registration request carries the identification information of the lock to be encrypted; The terminal obtains an image captured by an image acquisition device to which it is connected, and collects a face image therefrom; Sending the facial image to the server, wherein the facial image is associated with the identification information of the lock to be encrypted; Acquire an encryption instruction sent by the server, wherein the encryption instruction is sent by the server after establishing an association relationship between the identifier of the lock to be encrypted and at least two facial image features, wherein at least one of the at least two facial image features is a feature of the facial image sent by the terminal; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; After receiving the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated; Communicate with the lock to be encrypted according to the encryption instruction and perform encryption operation on the lock.
6. A terminal, characterized in that: An unlocking device is included, wherein the unlocking device includes: A third acquisition module is used to acquire a request from a user to unlock the lock, where the unlock request carries identification information of the lock; A third sending module, used to send an unlock request to the server, wherein the unlock request carries identification information of the lock; The third acquisition module is further used to acquire images acquired by an image acquisition device connected to the terminal, and to acquire a face image therefrom; The third sending module is further used to send the facial image to the server so that the server compares the facial image with facial features of at least two authorized users associated with the identification information of the lock; Each time a facial image sent by a terminal is obtained, the image is compared with the facial features of at least two authorized users stored in advance. If the comparison result is that the facial image is of a certain authorized user, the comparison is considered successful. At this time, the service sends the information of successful comparison or verification of the authorized user to the authorized user or to the terminals participating in collaborative unlocking; The third acquisition module is further used to acquire the unlock instruction sent by the server; The third sending module is further used to communicate with the lock according to the unlocking instruction sent by the server to unlock the lock; After obtaining the unlock request, if the server does not send an unlock instruction within a preset time, the unlock is terminated.
7. A lock, characterized in that: It comprises a lock body, a communication unit and a processor, wherein the communication unit communicates with the terminal described in claim 6, and the processor encrypts or unlocks the lock body according to the information obtained by the communication unit.
8. A computer device comprising: At least one processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; A memory coupled to the at least one processor, the memory storing executable instructions, wherein the executable instructions, when executed by the at least one processor, enable implementation of the method according to any one of claims 1 or 2 or claims 4 or 5.
9. A chip, characterized in that: include: A processor, used to call and run a computer program from a memory, so that a device equipped with the chip executes: a method as described in any one of claims 1 or 2 or claims 4 or 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method as described in any one of claims 1 or 2 or claims 4 or 5 are implemented.
Citation Information
Patent Citations
High-security finger vein confidential cabinet system and unlocking method
CN106837058A
Mobile terminal and fingerprint combination verification realization method, and storage medium
CN107733868A
Method and system for controlling lock, and lock
CN107808433A
Service-based key escrow and security for device data
US20100266132A1
