Method, apparatus, device, and medium for updating biological information
By establishing short-distance communication between the same group of terminals, multicast update of biometric information is solved, and the problem of the update process in the prior art depends on the Internet and server, improving the update efficiency and independence.
Patent Information
- Application Number
- CN202110003252.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-01-04
AI Technical Summary
When the prior art updates the biometric library at the terminal, it is necessary to update the biometric library of the server first, and then update the biometric library of the terminal through the Internet, relying on the Internet and server, resulting in a complex and inefficient update process.
By establishing short-distance communication between terminals in the same group of terminals, multicasting of one terminal to transmit biometric information, the update of biological information in other terminals is achieved without connecting to a server or the Internet.
It realizes the rapid update of the information database of other terminals within the same group of terminals without relying on the Internet and servers, improving update efficiency and independence.
Smart Images

Figure CN114722051B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and particularly relates to a method, device, equipment and medium for updating biological information. Background Art
[0002] A biometric database is used to store users' biometric information, such as face features, fingerprint features, etc. Biometric information is generally used for identity authentication. Therefore, updating the biometric information in the biometric database in a timely manner can ensure the accuracy of the identity authentication result.
[0003] The related technology is cloud updating. When a terminal obtains new biometric information of a user, the terminal will upload the biometric information to the server for verification. When the server confirms that the biometric information is not in the biometric database of the server, the biometric information is input into the server to complete the synchronization of the biometric database.
[0004] However, the related technology is highly dependent on the Internet and the server. When it is necessary to update the biometric database at the terminal, it is necessary to first update the biometric database of the server and then update the biometric database of the terminal through the Internet. Summary of the Invention
[0005] Embodiments of the present application provide a method, device, equipment and medium for updating biological information. This method will establish a short-distance communication method between terminals in the same group of terminals, and multicast and send biometric information through one of the terminals to update the biological information in other terminals, without connecting to the server or the Internet to achieve the update of biological information. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for updating biological information is provided. The method includes:
[0007] Receiving, through the short-distance communication method, first biometric information multicast and sent by a first terminal in the same group of terminals, where the first biometric information is obtained after the first terminal successfully authenticates the identity of a first user account;
[0008] Inputting the first biometric information into a second information database in the second terminal to update the second information database;
[0009] Authenticating the user account according to the updated second information database.
[0010] According to another aspect of the present application, a device for updating biological information is provided. The device includes:
[0011] A communication module, configured to receive first biometric information multicast by a first terminal in the same group of terminals through the short - distance communication method, where the first biometric information is obtained after the first terminal successfully authenticates the identity of a first user account;
[0012] An update module, configured to input the first biometric information into a second information database in the second terminal to update the second information database;
[0013] An identity authentication module, configured to authenticate a user account according to the updated second information database.
[0014] In an alternative design of the present application, the short - distance communication method includes at least one of: Bluetooth, Wi - Fi, ZigBee, ultra - wideband transmission, infrared data transmission, and near - field communication.
[0015] In an alternative design of the present application, the update module is further configured to, when the first version information and the second version information are different, input the first biometric information into the second information database to update the second information database, where the second version information is obtained by the second terminal according to the second information database.
[0016] In an alternative design of the present application, the update module is further configured to, when the first hash value and the second hash value are different and the first count information and the second count information are different, input the first biometric information into the second information database to update the second information database; or, when the first hash value and the second hash value are different, input the first biometric information into the second information database to update the second information database; or, when the first count information and the second count information are different, input the first biometric information into the second information database to update the second information database.
[0017] In an alternative design of the present application, the device further includes: an acquisition module.
[0018] The acquisition module is configured to, in response to a sensitive operation of a second user, acquire second biometric information of the second user account, where the second biometric information is not in the second information database;
[0019] In an alternative design of the present application, the update module is further configured to store the second biometric information in the second information database; update the second version information.
[0020] In an alternative design of the present application, the communication module is further configured to multicast the second biometric information and the updated first version information to other terminals in the same group of terminals through the short - distance communication method.
[0021] In an alternative design of the present application, the obtaining module is further configured to obtain a set of biometric information of the second user account in response to the sensitive operation of the second user.
[0022] In an alternative design of the present application, the device further includes: an identity authentication module.
[0023] The identity authentication module is configured to extract the second biometric information from the set of biometric information; and authenticate the identity of the second user account according to the set of biometric information and the second information database.
[0024] In an alternative design of the present application, the obtaining module is further configured to obtain a sample video of the second user account in response to the sensitive operation of the second user; perform quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user account; and extract the set of biometric information of the second user account from the sample face image.
[0025] In an alternative design of the present application, the obtaining module is further configured to perform quality detection on the color image corresponding to each frame image in the sample video to obtain a face image meeting the quality requirements; and perform liveness detection on the depth image corresponding to the face image meeting the quality requirements to obtain the sample face image.
[0026] According to another aspect of the present application, there is provided a computer system, which includes: a first face payment device and a second face payment device located in the same place, and the first face payment device and the second face payment device are connected in a short-range communication manner.
[0027] The second face payment device is configured to receive, through the short-range communication manner, first biometric information multicast sent by the second face payment device group, where the first biometric information is obtained after the first face payment device successfully authenticates the identity of the first user account;
[0028] The second face payment device is further configured to input the first biometric information into a second information database in the second face payment device to update the second information database;
[0029] The second face payment device is further configured to authenticate the identity of the user account according to the updated second information database.
[0030] According to another aspect of the present application, there is provided a computer device, which includes a processor and a memory. At least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for updating biological information as described in the above aspect.
[0031] According to another aspect of the present application, there is provided a computer storage medium. At least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by the processor to implement the method for updating biological information as described in the above aspect.
[0032] According to another aspect of the present application, there is provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for updating biological information as described in the above aspect.
[0033] The beneficial effects brought by the technical solutions provided by the embodiments of the present application at least include:
[0034] A short-distance communication connection is established between terminals in the same group of terminals. The second terminal obtains biometric information from the first terminal and inputs the foregoing biometric information into the information database of the second terminal, thereby completing the update of the biological information in the second terminal. The terminals in the same group are located in the same space. After a user uses one of the terminals for identity authentication, it is very likely that the user will use other terminals in the same group of terminals for identity authentication. And this method can quickly update the information databases of other terminals in the same group of terminals without connecting to the Internet and the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0036] Figure 1 is a schematic structural diagram of a computer system provided by an exemplary embodiment of the present application;
[0037] Figure 2 is a flowchart of a method for updating biological information provided by an exemplary embodiment of the present application;
[0038] Figure 3is a flow chart of a method for updating biological information provided by an exemplary embodiment of the present application;
[0039] Figure 4 is a flow chart of an information sending method provided by an exemplary embodiment of the present application;
[0040] Figure 5 is a block diagram of an actual product provided by an exemplary embodiment of the present application;
[0041] Figure 6 is an operation flow chart of an actual product provided by an exemplary embodiment of the present application;
[0042] Figure 7 is a schematic diagram of the structure of a biometric information updating device provided by an exemplary embodiment of the present application;
[0043] Figure 8 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0045] In this embodiment, the “length”, “width”, “top” and “bottom” involved are all based on the length, width, top and bottom shown in the drawings.
[0046] First, the nouns involved in the embodiments of the present application are introduced:
[0047] Multicast sending: refers to a network communication technology in which a single sender corresponds to multiple receivers.
[0048] Sensitive operation: refers to an operation involving privacy, resource exchange, and other sensitive data in the operation received by the terminal, such as payment operation, password modification operation, personal information editing operation, etc., among which payment operation involves sensitive information such as resource exchange and payment verification, password modification operation involves sensitive information such as password, and personal information editing operation involves sensitive information such as personal privacy data. In the embodiment of this application, the sensitive operation is described as payment operation.
[0049] Quality detection: refers to the detection of image quality, which includes at least one of occlusion range, blur range, illumination range, posture angle, and face size.
[0050] Liveness detection: refers to verifying whether the face in the face image set is the real person. Prevent the appearance of photos, face swaps, masks, occlusions, and screen reshoots.
[0051] Depth map: An image that uses the depth from the image collector to the human face as pixel values, which directly reflects the geometric shape of the human face surface.
[0052] Figure 1 FIG. shows a schematic structural diagram of a computer system provided by an exemplary embodiment of the present application. The computer system 100 includes a group of face recognition terminals. The group of face recognition terminals includes n face recognition terminals, where n is an integer greater than 1. The face recognition terminals in the same group of face recognition terminals have the same hardware configuration and software configuration. Any one of the face recognition terminals in the same group of face recognition terminals is connected to other face recognition terminals in the same group of face recognition terminals through a short-distance communication method. The short-distance communication methods include at least one of: Bluetooth, Wireless Fidelity (Wi-Fi), ZigBee, Ultra Wide Band (UWB) transmission, infrared data transmission, and Near Field Communication (NFC). The communication distance of short-distance communication is short. Exemplarily, the communication distance is 100 meters, or the communication distance is 1 kilometer. The same group of face recognition terminals are located in the same area in space. For example, the same group of face recognition terminals are located in the same town, or the same group of face recognition terminals are located in the same shopping mall, or the same group of face recognition terminals are located in the same store. The present application does not limit the area where the same group of face recognition terminals are located.
[0053] Taking the implementation environment as a shopping mall as an example, when the user 101 uses the first face recognition terminal for face recognition payment, the first face recognition terminal will obtain the biometric information of the user 101. After extracting the second biometric information therein, the second biometric information is sent to other face recognition terminals in the same group of face recognition terminals to complete the update of the biometric information in other face recognition terminals.
[0054] Figure 2 FIG. shows a flowchart of a method for updating biometric information provided by an exemplary embodiment of the present application. This method is Figure 1 executed by a second terminal in the same group of terminals in the computer network 100 shown in the figure. The method includes the following steps:
[0055] Step 201: The second terminal receives the first biometric information multicast by the first terminal in the same group of terminals through a short-distance communication method. The first biometric information is obtained after the first terminal successfully authenticates the identity of the first user account. The terminals in the same group of terminals are connected through a short-distance communication method.
[0056] The second terminal receives the first biometric information multicast by the first terminal in the same group of terminals through short-range communication. The first biometric information is obtained after the first terminal successfully authenticates the identity of the first user account. The terminals within the same group of terminals are connected through short-range communication.
[0057] The first terminal and the second terminal are two different terminals in the same group of terminals. "First" and "second" are only used to distinguish the two terminals and do not limit the terminals.
[0058] The first biometric information is obtained after the first terminal successfully authenticates the identity of the first user account. Before the successful authentication of the identity of the first user account, the first biometric information is not in the information database of the first terminal.
[0059] The first biometric information includes at least one of face feature information, fingerprint feature information, iris feature information, voiceprint feature information, vein feature information, and DNA (Deoxyribo Nucleic Acid) feature information.
[0060] Optionally, the first biometric information is represented in the form of a string.
[0061] Optionally, the first biometric information may further include the user's identity information, and the identity information includes at least one of the user's name, nickname, gender, telephone number, mobile phone number, ID number, home address, age, date of birth, and place of origin.
[0062] The short-range communication methods include at least one of Bluetooth, Wi-Fi, ZigBee, ultra-wideband transmission, infrared data transmission, and near-field communication.
[0063] Step 202: The second terminal inputs the first biometric information into the second information database in the second terminal to update the second information database.
[0064] The second terminal inputs the first biometric information into the second information database in the second terminal to update the second information database.
[0065] The second information database is located in the second terminal. The biometric information in the second information database and the biometric information in the first information database may be the same or different.
[0066] Step 203: The second terminal authenticates the user account according to the updated second information database.
[0067] The second terminal authenticates the user account according to the updated second information database.
[0068] Identity authentication means matching a user account with a user. The biometric information stored in the information database is matched with the biometric information collected in real time. When the repetition rate of the two reaches a certain threshold, it indicates successful matching. This threshold can be 90% or 95%. It can be set by technicians themselves.
[0069] For example, in a payment scenario, a user uses the payment function on a terminal to make a payment. The terminal obtains the user account corresponding to the user based on the user to complete identity authentication.
[0070] In summary, in this embodiment, a short - distance communication connection is established between terminals in the same group of terminals. The second terminal obtains biometric information from the first terminal and inputs the aforementioned biometric information into the information database of the second terminal to complete the update of the biometric information in the second terminal. This method can achieve the update of biometric information without establishing a connection to a server or the Internet. Therefore, when the terminal is in a disconnected state, this method can still update the information database.
[0071] Since when receiving the first biometric information sent from the first terminal, the first biometric information may already be in the second information database, it is necessary to determine whether the first biometric information already exists in the second information database. Figure 3 The flowchart of the method for updating biometric information provided by an exemplary embodiment of the present application is shown. This method is Figure 1 executed by terminals in the same group of terminals in the computer network 100 shown, and this method includes the following steps:
[0072] Step 301: The second terminal receives the first feature information and the first version information.
[0073] The first version information is obtained by the first terminal according to the first information database. The first version information and the first information database are in a corresponding relationship. When the biometric information stored in the first information database changes, the first version information will also change accordingly. The changes in the biometric information in the information database include at least one of addition, deletion, and modification of biometric information. Exemplarily, assuming an eight - character string is used as the first version information, the initial first version information is JZ456IO7. When the first biometric information stored in the first information database increases, the first version information is updated by the first terminal to JZ456IP8.
[0074] Step 302: The second terminal determines whether the first version information and the second version information are the same.
[0075] When the first version information and the second version information are the same, step 304 is executed;
[0076] When the first version information and the second version information are different, step 303 is executed.
[0077] Optionally, the version information includes a hash value and / or count information. Correspondingly, the first version information includes: a first hash value and / or a first count information; the second version information includes: a second hash value and / or a second count information.
[0078] The hash value is obtained by the terminal using a hash algorithm on the information library. When the input data changes, the hash value will also change accordingly. Therefore, different input data will result in different hash values. Exemplarily, one hash algorithm is MD5 (Message-Digest Algorithm, a widely used cryptographic hash function that can produce a 128-bit hash value).
[0079] The count information is used to represent the quantity of biometric information in the information library.
[0080] Therefore, according to the different contents of the version information, this step can be divided into any one of the following three cases.
[0081] 1. When the first version information includes: a first hash value and a first count information; the second version information includes: a second hash value and a second count information.
[0082] When the first hash value is the same as the second hash value or the first count information is the same as the second count information, step 304 is executed;
[0083] When the first hash value is different from the second hash value and the first count information is different from the second count information, step 303 is executed.
[0084] 2. When the first version information only includes: a first hash value; the second version information only includes: a second hash value.
[0085] When the first hash value is the same as the second hash value, step 304 is executed;
[0086] When the first hash value is different from the second hash value, step 303 is executed.
[0087] 3. When the first version information only includes: a first count information; the second version information only includes: a second count information.
[0088] When the first count information is the same as the second count information, step 304 is executed;
[0089] When the first count information is different from the second count information, step 303 is executed.
[0090] Step 303: Input the first biometric information into the second information library and update the second information library.
[0091] The first biometric information obtained by the first terminal is not in the second information database, so the second information database needs to be updated.
[0092] Step 304: Do not update the second information database.
[0093] The first biometric information obtained by the first terminal is already in the second information database, so the second information database does not need to be updated.
[0094] In summary, in this embodiment, the second terminal obtains the first version information and the first biometric information, and determines whether the first biometric information is already in the second information database according to the first version information and the second version information, which can avoid duplicate updates of the information database and reduce redundant operations.
[0095] Figure 4 The figure shows a flowchart of an information sending method provided by an exemplary embodiment of the present application. This method is executed by a terminal in the same group of terminals in the Figure 1 computer network 100 shown. The method includes the following steps:
[0096] Step 401: In response to a sensitive operation of the second user, obtain a set of biometric information of the second user's account.
[0097] The second terminal obtains a set of biometric information of the second user's account in response to a sensitive operation of the second user.
[0098] The second user's account refers to the virtual account corresponding to the second user.
[0099] The set of biometric information refers to the set formed by all the biometric information obtained by the second terminal. For example, all the biometric information of the shape description of the facial organs and the distance characteristics between them, or at least one of the Euclidean distance, curvature, and angle between the feature points on the face.
[0100] There are various ways to obtain the set of biometric information. For example, the second terminal directly collects the biometric information of the second user, or the second terminal downloads the set of biometric information from the network, or other terminals send the set of biometric information to the second terminal.
[0101] Exemplarily, taking face feature extraction as an example, the method of face feature extraction is a knowledge-based representation method or an algebraic feature or statistical-based representation method. Exemplarily, the knowledge-based representation method mainly obtains feature data helpful for face classification according to the shape description of face organs and the distance characteristics between them. The feature components usually include at least one of the Euclidean distance, curvature, and angle between feature points. In addition, a face is locally composed of at least one of eyes, nose, mouth, and chin. The geometric description of these local parts and the structural relationship between them can be used as important features for face recognition, and these features are called geometric features. Knowledge-based face representation mainly includes geometric feature-based methods and template matching methods.
[0102] Optionally, when extracting face features, it is necessary to ensure that the face quality meets the requirements of subsequent business operations. Taking the collection of a user's sample video as an input as an example, the following steps are required:
[0103] 1. Perform quality detection on the color image corresponding to each frame of the sample video to obtain a face image that meets the quality requirements.
[0104] Preferably, the face acquisition biopsy module 525 performs quality detection on the color image corresponding to each frame of the sample video to obtain a face image that meets the quality requirements. This sub-step can ensure that the face quality meets the requirements of subsequent business operations. The specific content of the quality requirements can be at least one of the face occlusion range, blur range, illumination range, pose angle, and face size.
[0105] 2. Perform liveness detection on the depth image corresponding to the face image that meets the quality requirements to obtain a sample face image.
[0106] Preferably, the face acquisition biopsy module 525 performs liveness detection on the depth image corresponding to the face image that meets the quality requirements to obtain a sample face image. To prevent other users from using pictures, synthetic videos, etc. to damage the interests of the second user. This sub-step can determine whether the second user is a real live body performing sensitive operations.
[0107] Step 402: Extract the second biometric information from the biometric information set.
[0108] The second terminal extracts the second biometric information from the biometric information set.
[0109] The second biometric information refers to the biometric information in the biometric information set but not in the second information database. In other words, the second biometric information is the biometric information belonging to the second user account but has not yet been stored in the second information database.
[0110] Optionally, when the second biometric information does not exist in the biometric information set, this step and the following steps are not required.
[0111] Step 403: Authenticate the second user account according to the biometric information set and the second information database.
[0112] The second terminal authenticates the second user account according to the biometric information set and the second information database.
[0113] When the biometric information in the biometric information set matches the biometric information in the second information database successfully, the authentication of the second user account is successful;
[0114] When the biometric information in the biometric information set does not match the biometric information in the second information database successfully, the authentication of the second user account fails.
[0115] Optionally, when the authentication fails, a new user account is established and the corresponding second biometric information is input into the second information database.
[0116] Step 404: Store the second biometric information in the second information database.
[0117] The second terminal stores the second biometric information in the second information database.
[0118] Step 405: Update the second version information.
[0119] The second terminal updates the second version information.
[0120] The update of the second version information includes the update of the second hash value and / or the second count information. The update of the second hash value is to recalculate the hash value of the second biometric database. The update of the count information is to change the value of the count value. Exemplarily, the update of the count information is to increment the count value by 1.
[0121] Step 406: Multicast the second biometric information and the updated first version information to other terminals in the same group through short-range communication.
[0122] The second terminal multicasts the second biometric information and the updated first version information to other terminals in the same group through short-range communication.
[0123] The short-range communication methods include at least one of the following: Bluetooth, Wi-Fi, ZigBee, ultra-wideband transmission, infrared data transmission, and near-field communication.
[0124] Step 407: Update the information databases in other terminals.
[0125] When other terminals receive the second biometric information and the updated first version information, they determine whether the first version information is the same as the version information in the terminals.
[0126] When the first version information is the same as the version information in other terminals, the information library in other terminals is not updated;
[0127] When the first version information is different from the version information in other terminals, the information library in other terminals is updated. The specific process can refer to steps 302 to 304.
[0128] In summary, after obtaining the second biometric information in this embodiment, the second biometric information and the second version information are multicast to other terminals in the same group of terminals, which can realize the update of the biometric information in other terminals. Moreover, a specific face recognition method is provided, which can obtain a real face image, facilitate the extraction of accurate face features from it, and improve the recognition accuracy.
[0129] And, this embodiment will also determine whether it is necessary to update the information library according to the version information to avoid repeated updates.
[0130] In addition, this embodiment also provides a variety of short-range communication methods for users to choose from, and users can decide the specific short-range communication method according to their actual needs.
[0131] Figure 5 The block diagram shows a schematic application scenario provided by an exemplary embodiment of the present application. The block diagram includes the following parts: terminal 510 and terminal 520. Terminal 510 includes: a Bluetooth module 517 and a 3D (3-Dimensional) camera 516. A face application 511 runs on the first terminal 510. The face application 511 includes: an offline library module 512, a feature extraction module 514, and a face collection module 515. Among them, the offline library module 512 further includes: an information library 513, an MD5 module 518, and a counter 519.
[0132] Similarly, terminal 520 includes: a Bluetooth module 527 and a 3D camera 526. A face application 521 runs on the first terminal 520. The face application 521 includes: an offline library module 522, a feature extraction module 524, and a face collection module 525. Among them, the offline library module 522 further includes: an information library 523, an MD5 module 528, and a counter 529.
[0133] Since the terminals 510 and 520 have the same hardware and software configurations, taking the terminal 510 as an example, the face application 511 is used to implement functions corresponding to sensitive operations, and the user performs sensitive operations through the face application 511. For example, the user uses the payment function of application A to complete the payment operation.
[0134] The offline library module 512 is used to store offline information, and the offline information includes biometric information and version information. Therefore, the offline library module 512 further includes: an information library 513, an MD5 module 518, and a counter 519. Among them, the information library 103 is used to store biometric information, the MD5 module 518 is used to calculate the MD5 value, and the counter 519 is used to store count information. The biometric information refers to face feature information in this embodiment. The MD5 value is obtained based on all the biometric information stored in the information library 513 and is used to verify the biometric information stored in the information library 513. The MD5 value and the information library 513 have a one-to-one correspondence. When the biometric information stored in the information library 513 changes, the MD5 will also change accordingly. The changes in biometric information include at least one of the addition, deletion, and modification of biometric information. The contents of the information library 513 and the information library 523 may be the same or different. Exemplarily, in Figure 5 the information library 513 stores biometric information A and biometric information B, while the information library 523 stores biometric information A, biometric information B, and biometric information C.
[0135] The feature extraction module 514 is used to extract face feature information from the input data. The method for face feature extraction is a knowledge-based representation method or an algebraic feature or statistical representation method.
[0136] The face acquisition and biopsy optimization module 515 is used to screen the input data. Since the input data of the detection module 106 may be unavailable, it is necessary to screen the input data. For example, in this embodiment, the input data is a face image, and the unavailable situations of the input data include at least one of the following: there is an occlusion on the face image, the face image is too small, and the face image is too blurred. At the same time, the face acquisition and biopsy optimization module 515 also performs a live detection on the face image.
[0137] The 3D camera 516 is used to collect video data. The 3D camera 516 collects the user's face video. The 3D camera outputs the data stream of the video to the face acquisition and biopsy optimization module 515, and the data stream includes: a color stream, a depth stream, and an infrared stream.
[0138] The Bluetooth module 517 is used to perform short-range communication with other terminals. The short-range communication methods include at least one of the following: Bluetooth, Wi-Fi, ZigBee, ultra-wideband transmission, infrared data transmission, and near-field communication.
[0139] Figure 6 shows the operation flowchart of a schematic application scenario provided by an exemplary embodiment of the present application. This method is executed by Figure 5 the first face recognition terminal 510 and the second face recognition terminal 520 shown in the figure, and this method includes the following steps:
[0140] Step 601: The second face recognition terminal 520 obtains a sample video of the second user in response to a sensitive operation of the first user.
[0141] The second face recognition terminal 520 obtains a sample video of the second user through the 3D camera 526 in response to a sensitive operation of the first user.
[0142] The 3D camera 516 inputs the output color stream, depth stream, and infrared stream into the face preferred biopsy module 525.
[0143] Step 602: The second face recognition terminal 520 performs quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user's account.
[0144] The face collection preferred biopsy module 525 performs quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user's account. This step is to ensure that the face quality meets the requirements of subsequent business operations.
[0145] This step can be divided into the following two sub-steps:
[0146] 1. Perform quality detection on the color image corresponding to each frame image in the sample video to obtain a face image that meets the quality requirements.
[0147] The face collection preferred biopsy module 525 performs quality detection on the color image corresponding to each frame image in the sample video to obtain a face image that meets the quality requirements. This sub-step can ensure that the face quality meets the requirements of subsequent business operations. The specific content of the quality requirements can be at least one of the face occlusion range, blur range, illumination range, pose angle, and face size.
[0148] 2. Perform liveness detection on the depth image corresponding to the face image that meets the quality requirements to obtain a sample face image.
[0149] The face collection preferred biopsy module 525 performs liveness detection on the depth image corresponding to the face image that meets the quality requirements to obtain a sample face image. To prevent other users from using pictures, synthetic videos, etc. to damage the interests of the second user. This sub-step can determine whether the second user is a real live body performing a sensitive operation.
[0150] Step 603: The second face recognition terminal 520 extracts second biometric information.
[0151] The feature extraction module 524 extracts the second biometric information of the second user.
[0152] Optionally, the feature extraction module 524 obtains feature data helpful for face classification according to the shape description of face organs and the distance characteristics between them. Its feature components usually include at least one of the Euclidean distance, curvature, and angle between feature points. In addition, a face is locally composed of at least one of eyes, nose, mouth, and chin, and the geometric description of these local parts and the structural relationship between them can also be regarded as face features.
[0153] Exemplarily, in Figure 5 the feature extraction module 524 extracts biometric information C.
[0154] Step 604: The second face recognition terminal 520 updates the MD5 value and the count information.
[0155] The MD5 module 528 updates the MD5 value according to the information database 523, and the counter 529 updates the count information.
[0156] Exemplarily, in Figure 5 the MD5 module updates the MD5 according to the newly added biometric information C. When the biometric information C is added to the information database 523, the counter 519 is incremented by 1 and becomes 520.
[0157] Step 605: The second face recognition terminal 520 multicasts and sends the MD5 value, the count information, and the biometric information through short-range communication.
[0158] The Bluetooth module 527 multicasts and sends the MD5 value, the count information, and the biometric information through short-range communication.
[0159] Step 606: The first face recognition terminal 510 receives the MD5 value, the count information, and the biometric information.
[0160] The Bluetooth module 517 receives the MD5 value, the count information, and the biometric information.
[0161] Step 607: The first face recognition terminal 510 updates the information database.
[0162] The first face recognition terminal 510 updates the information database 513 according to the MD5 value and the count information.
[0163] When the MD5 value and the count information in the first face recognition terminal 510 are the same as the received MD5 value and count information, there is no need to update the information database 513.
[0164] In summary, in this embodiment, a short - distance communication connection is established between terminals in the same group of terminals. The second terminal obtains biometric information from the first terminal and inputs the foregoing biometric information into the information database of the second terminal to complete the update of the biometric information in the second terminal. This method can update biometric information without establishing a connection to a server or the Internet. Therefore, when the terminal is in a disconnected state, this method can still update the information database.
[0165] Exemplarily, specific application environments of this application are listed:
[0166] 1. This application is applied to multiple stores in a shopping mall. Exemplarily, the same group of terminals of this application are respectively installed in all stores of the shopping mall. When a user finishes shopping in Store A and uses Terminal A in the store for face - brushing payment, Terminal A can extract the face features of the user, update the information database in Terminal A, and send the obtained first biometric information to terminals in other stores in the shopping mall to realize the update of the information databases in other terminals. At this time, when the user shops in other stores in the shopping mall, they can use the corresponding terminal in the store for face - brushing payment.
[0167] 2. This application is applied to security facilities at multiple exits of a railway station. Exemplarily, the same group of terminals of this application are respectively installed in the security facilities at multiple exits of the railway station. When a user completes face recognition at Security Facility A at Exit A, Security Facility A can extract the face features of the user, update the information database in Security Facility A, and send the obtained first biometric information to the security facilities at other exits of the railway station to realize the update of the information databases in other security facilities. At this time, when the user enters or exits from other exits, they can use the corresponding security facilities at the exits for face recognition.
[0168] 3. This application is applied to security facilities in multiple locations of a building. Exemplarily, the same group of terminals of this application are respectively installed in the security facilities in multiple locations of a building. When a user completes face recognition at Security Facility B, Security Facility B can extract the face features of the user, update the information database in Security Facility B, and send the obtained first biometric information to other security facilities in the building to realize the update of the information databases in other security facilities. At this time, when the user uses other security facilities, they can use the corresponding security facilities for face recognition.
[0169] The above three specific application environments are not used to limit this application.
[0170] The following is the device embodiment of this application. For details not described in detail in the device embodiment, reference can be made to the corresponding records in the above - mentioned method embodiment, and details will not be repeated here.
[0171] Figure 7 The figure shows a schematic structural diagram of a biological information update device provided by an exemplary embodiment of the present application. This device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device 700 includes:
[0172] A communication module 701, configured to receive first biometric information multicast by a first terminal group in the same group of terminals through the short-range communication method. The first biometric information is obtained after the first terminal successfully authenticates the identity of a first user account.
[0173] An update module 702, configured to input the first biometric information into a second information database in the second terminal to update the second information database.
[0174] An identity authentication module 703, configured to authenticate a user account according to the updated second information database.
[0175] Optionally, the short-range communication method includes at least one of: Bluetooth, Wi-Fi, ZigBee, ultra-wideband transmission, infrared data transmission, and near-field communication.
[0176] Optionally, the update module 702 is further configured to, when the first version information and the second version information are different, input the first biometric information into the second information database to update the second information database, where the second version information is obtained by the second terminal according to the second information database.
[0177] Optionally, the update module 702 is further configured to, when the first hash value and the second hash value are different and the first count information and the second count information are different, input the first biometric information into the second information database to update the second information database; or, when the first hash value and the second hash value are different, input the first biometric information into the second information database to update the second information database; or, when the first count information and the second count information are different, input the first biometric information into the second information database to update the second information database.
[0178] Optionally, the device 700 further includes: an acquisition module 704.
[0179] The acquisition module 704 is configured to acquire second biometric information of the second user account in response to a sensitive operation of the second user, where the second biometric information is not in the second information database.
[0180] Optionally, the update module 702 is further configured to store the second biometric information in the second information database; update the second version information.
[0181] Optionally, the communication module 701 is further configured to multicast the second biometric information and the updated first version information to other terminals in the same group of terminals by means of short-range communication.
[0182] Optionally, the obtaining module 704 is further configured to obtain a biometric information set of the second user account in response to the sensitive operation of the second user.
[0183] The identity authentication module 703 is configured to extract the second biometric information from the biometric information set; and authenticate the second user account according to the biometric information set and the second information database.
[0184] Optionally, the obtaining module 704 is further configured to obtain a sample video of the second user account in response to the sensitive operation of the second user; perform quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user account; and extract the biometric information set of the second user account from the sample face image.
[0185] Optionally, the obtaining module 704 is further configured to perform quality detection on the color image corresponding to each frame image in the sample video to obtain a face image meeting the quality requirements; and perform liveness detection on the depth image corresponding to the face image meeting the quality requirements to obtain the sample face image.
[0186] In summary, in this embodiment, a short-range communication connection is established between terminals in the same group of terminals. The second terminal obtains biometric information from the first terminal and inputs the foregoing biometric information into the information database of the second terminal to complete the update of the biological information in the second terminal. This method can achieve the update of biological information without establishing a connection with a server or the Internet. Therefore, when the terminal is in a disconnected state, this method can still update the information database.
[0187] Figure 8It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Specifically: The computer device 800 includes a Central Processing Unit (CPU) 801, a system memory 804 including a Random Access Memory (RAM) 802 and a Read-Only Memory (ROM) 803, and a system bus 805 connecting the system memory 804 and the central processing unit 801. The computer device 800 also includes a Basic Input / Output System (I / O system) 806 for facilitating the transfer of information between various components within the computer, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 815.
[0188] The Basic Input / Output System 806 includes a display 808 for displaying information and input devices 809 such as a mouse and a keyboard for user input. Among them, both the display 808 and the input devices 809 are connected to the central processing unit 801 through an input / output controller 810 connected to the system bus 805. The Basic Input / Output System 806 may also include an input / output controller 810 for receiving and processing inputs from multiple other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 810 also provides output to a display screen, a printer, or other types of output devices.
[0189] The mass storage device 807 is connected to the central processing unit 801 through a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable medium provide non-volatile storage for the computer device 800. That is to say, the mass storage device 807 may include computer-readable media (not shown) such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.
[0190] Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM for short), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), flash memory or other solid-state storage technologies, CD-ROM, digital versatile disc (Digital Versatile Disc, DVD for short) or other optical storage, magnetic tape cartridges, tapes, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will know that computer storage media is not limited to the above several types. The above-mentioned system memory 804 and mass storage device 807 can be collectively referred to as memory.
[0191] According to various embodiments of the present application, the computer device 800 can also run on a remote computer on the network through a network such as the Internet. That is, the computer device 800 can be connected to the network 812 through the network interface unit 811 connected to the system bus 805, or in other words, the network interface unit 811 can also be used to connect to other types of networks or remote computer systems (not shown).
[0192] According to another aspect of the present application, a computer system is also provided, which includes: a first face payment device and a second face payment device located in the same place, and the first face payment device and the second face payment device are connected in a short-distance communication manner.
[0193] The second face payment device is used to receive, through short-distance communication, the first biometric information multicast sent by the second face payment device. The first biometric information is obtained after the first face payment device successfully authenticates the identity of the first user account.
[0194] The second face payment device is further used to input the first biometric information into the second information library in the second face payment device to update the second information library.
[0195] The second face payment device is further used to authenticate the user account according to the updated second information library.
[0196] According to another aspect of the present application, there is also provided a computer storage medium. At least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the method for updating biological information as described above.
[0197] According to another aspect of the present application, there is also provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the method for updating biological information as described above.
[0198] It should be understood that the "plurality" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0199] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disk, etc.
[0200] The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for updating biological information, characterized in that, It is applied to a second terminal in the same group of terminals, and the terminals in the same group of terminals are connected in a short-range communication manner. The method includes: Receiving, through the short-range communication manner, first biometric information multicast sent by a first terminal in the same group of terminals, where the first biometric information is obtained after the first terminal successfully authenticates the identity of a first user account; Inputting the first biometric information into a second information database in the second terminal to update the second information database, where the second information database is located in the second terminal and is used to store biometric information; Performing identity authentication on the user account according to the updated second information database, where the identity authentication includes matching the user account and the user, and in the case of successful matching, using a payment function to make a payment and / or completing the identification of security facilities.
2. The method according to claim 1, wherein The method further includes: The second terminal receives first version information multicast sent by the first terminal, where the first version information is obtained by the first terminal according to a first information database, and when the biometric information stored in the first information database changes, the first version information changes accordingly; The step of inputting the first biometric information into the second information database in the second terminal to update the second information database includes: When the first version information and the second version information are different, inputting the first biometric information into the second information database to update the second information database, where the second version information is obtained by the second terminal according to the second information database.
3. The method according to claim 2, wherein The first version information includes: a first hash value and / or first count information; the second version information includes: a second hash value and / or second count information; The step of, when the first version information and the second version information are different, inputting the first biometric information into the second information database to update the second information database includes: When the first hash value is different from the second hash value and the first count information is different from the second count information, inputting the first biometric information into the second information database to update the second information database; Or, When the first hash value is different from the second hash value, inputting the first biometric information into the second information database to update the second information database; Or, When the first count information is different from the second count information, inputting the first biometric information into the second information database to update the second information database.
4. The method according to claim 2 or 3, characterized in that, The method further includes: In response to a sensitive operation of a second user account, obtaining second biometric information of the second user account for identity authentication, where the second biometric information is not in the second information database; After the identity authentication is successful, storing the second biometric information into the second information database; Updating the second version information to obtain third version information; Multicasting the second biometric information and the third version information to other terminals in the same group of terminals except the second terminal through the short-range communication manner.
5. The method according to claim 4, characterized in that Upon a sensitive operation of the second user account, acquiring second biometric information of the second user account for identity authentication includes: Upon the sensitive operation of the second user, obtaining a set of biometric information of the second user account; Extracting the second biometric information from the set of biometric information; Performing identity authentication on the second user account according to the set of biometric information and the second information database.
6. The method according to claim 5, characterized in that, The set of biometric information includes: a set of face feature information; The obtaining, upon the sensitive operation of the second user, of the set of biometric information of the second user account includes: Upon the sensitive operation of the second user, obtaining a sample video of the second user account; Performing quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user account; Extracting the set of biometric information of the second user account from the sample face image.
7. The method according to claim 6, characterized in that, The performing quality detection and liveness detection on each frame image in the sample video to obtain a sample face image of the second user account includes: Performing quality detection on the color image corresponding to each frame image in the sample video to obtain a face image meeting the quality requirements; Performing liveness detection on the depth image corresponding to the face image meeting the quality requirements to obtain the sample face image.
8. The method according to any one of claims 1 to 3, characterized in that, The short - distance communication method includes at least one of: Bluetooth, Wi - Fi, ZigBee, ultra - wideband transmission, infrared data transmission, and near - field communication.
9. An updating device for biological information, characterized in that, The device is the second device in the same group of devices, and each device in the same group of devices is connected by a short - distance communication method. The device includes: A communication module, configured to receive, by the short - distance communication method, first biometric information multicast - transmitted by a first device in the same group of devices. The first biometric information is obtained after the first device successfully authenticates the identity of the first user account; An update module, configured to input the first biometric information into a second information database in the second device to update the second information database. The second information database is located in the second device and is used to store biometric information; An identity authentication module, configured to perform identity authentication on a user account according to the updated second information database. The identity authentication includes matching the user account and the user, and in the case of successful matching, using a payment function for payment and / or completing the identification of security facilities.
10. A computer system, characterized in that, The computer system includes: a first face payment device and a second face payment device located in the same place, and the first face payment device and the second face payment device are connected by a short - distance communication method; The second face payment device is configured to receive, by the short - distance communication method, first biometric information multicast - transmitted by the second face payment device. The first biometric information is obtained after the first face payment device successfully authenticates the identity of the first user account; The second face payment device is further configured to input the first biometric information into a second information database in the second face payment device to update the second information database, where the second information database is located in the second face payment device and is used to store biometric information; The second face payment device is further configured to perform identity authentication on a user account according to the updated second information database. The identity authentication includes matching the user account with the user, and in the case of successful matching, using a payment function to make a payment and / or complete the identification of security facilities.
11. A computer device, characterized in that, The computer device includes: a processor and a memory. At least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for updating biometric information according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that, At least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by the processor to implement the method for updating biometric information according to any one of claims 1 to 8.
13. A computer program product, characterized in that, The computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the method for updating biometric information according to any one of claims 1 to 8 as described above.
Citation Information
Patent Citations
Method and apparatus for performing an instant messenger function using a local area network
CN1881818A