WO2020124579A1 - Method for verifying user identity, and electronic device - Google Patents
Method for verifying user identity, and electronic device Download PDFInfo
- Publication number
- WO2020124579A1 WO2020124579A1 PCT/CN2018/122765 CN2018122765W WO2020124579A1 WO 2020124579 A1 WO2020124579 A1 WO 2020124579A1 CN 2018122765 W CN2018122765 W CN 2018122765W WO 2020124579 A1 WO2020124579 A1 WO 2020124579A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- user
- face information
- electronic device
- information
- identity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
Definitions
- This application relates to the field of terminals, and in particular to a method and electronic device for verifying a user's identity.
- the method of authenticating a user by collecting the user's face information has been widely used in various electronic devices. For example, when the phone is locked, the user's face information can be collected through the camera. If the collected face information matches the pre-stored face information of the legal user, indicating that the user's identity verification is passed, the mobile phone can automatically unlock the screen.
- This application provides a method and electronic device for verifying the identity of a user, which can authenticate multiple face information collected at the same time during the identity verification process and provide proof of the presence of multiple users, thereby reducing the privacy and property of the user. Security risks.
- the present application provides a method for verifying a user's identity, including: an electronic device running a target application; when the multi-user federation authentication function provided in the target application is turned on, the electronic device displays a first preview interface captured by the camera And prompt to enter face information of multiple preset users in the first preview interface; the electronic device obtains N (N is an integer greater than 1) face information to be verified from the first preview interface, that is, the If multiple users need to enter face information in the first preview interface for identity verification at the same time; if each of the N face information to be verified is the face information of the preset user, the description If multiple preset users complete identity authentication at the same time and place, then the electronic device may continue to run the target application, for example, the electronic device may open the target application or run the next function after the identity authentication is successful.
- N face information to be verified contains face information of a non-preset user, it means that multi-user joint authentication fails, and the electronic device can stop running the target application, ensuring the accuracy and security of multi-user identity authentication , So as to reduce hidden security risks to user privacy and property.
- the above target application may be a game application.
- the above multi-user joint authentication is performed to ensure that the user uses the game application under the authorization of other users, and improve the supervision of users who use the game application. ability.
- the above target application may be a payment application.
- the method before the electronic device opens the multi-user joint authentication function provided by the target application, the method further includes: the electronic device prompts the user to set the number of users who authenticate the user when performing the multi-user joint authentication; responding to The number of users input by the user is N, the electronic device displays the second preview interface captured by the camera, and obtains face information of N users from the second preview interface; the electronic device regards the N users as N preset users, Establish a correspondence between the target application and the face information of the N authenticated users.
- the method further includes: the electronic device obtains face information of N preset users corresponding to the target application; After the device obtains N pieces of face information to be verified from the first preview interface, the device further includes: the electronic device compares the N pieces of face information to be verified with the face information of the N preset users to determine each face to be verified The verification face information is the face information of the preset user. Subsequently, each time multi-user joint authentication is performed in the target application, the N preset users need to participate in completing the multi-user joint authentication together, thereby providing multi-user presence certification using the target application.
- the method further includes: the electronic device records the face of the N preset users in the second preview interface Sequence between information; after the electronic device obtains the N face information to be verified from the first preview interface, the method further includes: the electronic device determines the order between the N face information to be verified in the first preview interface, The sequence between the face information of the N preset users in the second preview interface is the same. Only when the order between the N face information to be verified in the first preview interface and the face information of the N preset users in the second preview interface are the same, the multi-user joint authentication can be successfully passed To improve the accuracy of multi-user joint identity verification.
- the electronic device opens the multi-user joint authentication function provided by the target application, including: the electronic device automatically turns on the multi-user joint authentication function when the target application is running; or, the electronic device is running the target application At this time, the multi-user federation authentication function is turned on in response to user input.
- the electronic device turns on the multi-user joint authentication function provided by the target application, including: the electronic device turns on the multi-user joint authentication function when starting the target application; or, the electronic device runs the target application to provide The first function is to turn on the multi-user federation authentication function.
- each of the N face information to be verified is face information of a preset user
- the electronic device is allowed to continue to run the target application, including:
- Each of the N pieces of face information to be verified is face information of a preset user, and the electronic device is allowed to continue to run the target application within a preset duration.
- the target application may again require the user to perform multi-user joint authentication to avoid the situation where the user uses the target application for a long time and indulges the target application.
- the present application provides a method for verifying the identity of a user, including: the electronic device detects that the user opens the first function of the target application, and the first function is to require N (N is an integer greater than 1) users for multi-user syndication The function of identity verification; the electronic device displays the first input interface, and prompts to enter the identity information of N users in the first input interface; the electronic device obtains N identity information from the first input interface; the electronic device displays the camera to capture And prompt the N users to enter face information in the first preview interface; the electronic device obtains N personal face information from the first preview interface, that is, multiple users are simultaneously acquired in the first preview interface Face information for identity verification; furthermore, the electronic device sends a verification request to the server, the verification request includes the N identity information and the N personal face information, so that the server performs multi-user joint identity verification for the N users ; If the message of successful multi-user joint authentication sent by the server is received, indicating that the above-mentioned first function has been authorized by multiple users, the
- the electronic device can refuse to perform the first function, which ensures the accuracy and security of the multi-user identity authentication, thereby reducing the Hidden dangers caused by user privacy and property.
- the above target application may be an application to sign a contract online, and perform multi-user joint identity verification on multiple parties participating in the contract to provide a multi-user presence certificate to avoid subsequent contract disputes.
- the above target application may be an application for online certificate or joint account business, which performs multi-user joint identity verification on multiple parties involved in the business, proving that multiple parties involved in the above business are present and authorize the forthcoming business. Prevent other users from impersonating legitimate users to handle related business on the spot.
- the above target application may be an application that processes multi-user shared property online (such as husband and wife shared property), and performs multi-user joint identity verification on the multi-owner of the shared property to ensure that the multi-owner of the shared property is present and informed of the transaction Content, thereby reducing potential security risks to user property.
- multi-user shared property online such as husband and wife shared property
- multi-user joint identity verification on the multi-owner of the shared property to ensure that the multi-owner of the shared property is present and informed of the transaction Content, thereby reducing potential security risks to user property.
- the method before the electronic device sends the verification request to the server, the method further includes: the electronic device displays the correspondence between the N pieces of identity information and the N personal faces information, and prompts the user to confirm the use of the N pieces The identity information and N personal face information perform the first function; wherein, the electronic device sends a verification request to the server, including: if the user's confirmation operation of the above N identity information and N personal face information is detected, the electronic device sends the verification request to the server Verify the request.
- the method before the electronic device detects that the user opens the first function of the target application, the method further includes: the electronic device obtains the identity information entered by the user in the second input interface; the electronic device obtains the user in the second preview Face information entered in the interface; the electronic device sends a registration request to the server, the registration request contains the user's identity information and face information, so that the server establishes the correspondence between the user's identity information and face information, That is, the registration process of the multi-user joint authentication function is completed.
- the present application provides a method for verifying a user's identity, including: a server receives a verification request sent by an electronic device, the verification request includes N identity information and N face information to be verified; the server obtains the N N pieces of registered face information corresponding to each piece of identity information, and the server stores the correspondence between the identity information and face information of each registered user; the server determines the N pieces of registered face information and N pieces of pending verification There is a one-to-one correspondence of face information; the server sends a message to the electronic device that the multi-user joint authentication is successful.
- the method before the server receives the verification request sent by the electronic device, the method further includes: the server receives a registration request sent by the electronic device, and the registration request includes the user's identity information and face information; the server establishes the The correspondence between the user's identity information and face information.
- the method before the server establishes the correspondence between the user's identity information and face information, the method further includes: the server inquires that the user's identity information is correct identity information in a preset database, Avoid illegal users from registering multi-user joint authentication function.
- the user's identity information includes the user's avatar information; after the server receives the registration request sent by the electronic device, the method further includes: the server determines the avatar information and the face in the identity information The information corresponds to ensure the authenticity of the face information and identity information uploaded by the user.
- the present application provides an electronic device, including: a processing unit for running a target application and opening a multi-user federation authentication function provided by the target application; a display unit for displaying a first preview captured by a camera Interface, and prompts to enter face information of multiple preset users in the first preview interface; an obtaining unit is used to obtain N face information to be verified from the first preview interface, N is an integer greater than 1; processing The unit is also used to allow the electronic device to continue to run the target application if each of the N face information to be verified is face information of a preset user.
- the above display unit is also used to prompt the user to set the number of users who authenticate the user when performing the multi-user joint authentication; the display unit is also used to display the number of users N in response to the user input A second preview interface captured by the camera, and acquiring face information of N users from the second preview interface; the processing unit is also used to use the N users as N preset users to establish the target application and the Correspondence between face information of N authenticated users.
- the above-mentioned obtaining unit is further used to obtain face information of N preset users corresponding to the target application; the processing unit is also used to compare the N face information to be verified With the face information of the N preset users, it is determined that each face information to be verified is the face information of the preset user.
- the above processing unit is further configured to record the order between the face information of the N preset users in the second preview interface in the memory; determine the N number in the first preview interface The order between the face information to be verified is the same as the order between the face information of the N preset users in the second preview interface.
- the above processing unit is specifically configured to automatically turn on the multi-user federation authentication function when running the target application; or, when running the target application, open the multi-user federation in response to user input Identity verification function.
- the above-mentioned processing unit is specifically configured to open the multi-user federation authentication function when starting the target application; or, to open the multi-user federation identity when running the first function provided by the target application Verification function.
- the above processing unit is specifically used to allow the electronic device to Continue to run the target application within the set time.
- the present application provides an electronic device, including: an acquisition unit for detecting a first function for a user to open a target application, the first function is a function that requires N users to perform multi-user joint authentication, and N is greater than 1.
- An integer a display unit for displaying the first input interface and prompting for input of identity information of N users in the first input interface; displaying a first preview interface captured by the camera and prompting the N users in the first preview Face information is input in the interface;
- the obtaining unit is also used to obtain N identity information from the first input interface; N face information is obtained from the first preview interface;
- the communication unit is used to send a verification request to the server,
- the verification request includes the N identity information and the N personal face information, so that the server performs multi-user joint identity verification for the N users;
- the processing unit is used for receiving multi-user joint identity verification sent by the server If the message is successful, the first function is executed.
- the above display unit is further used to display the correspondence between the N identity information and the N personal face information, and prompt the user to confirm the use of the N identity information and the N personal face information Perform the first function; if a user's confirmation operation of the N identity information and the N personal face information is detected, the communication unit sends the verification request to the server.
- the above-mentioned obtaining unit is further used to obtain the identity information input by the user in the second input interface; obtaining the face information entered by the user in the second preview interface; and the communication unit is also used to Send a registration request to the server, where the registration request contains the user's identity information and face information, so that the server establishes a correspondence between the user's identity information and face information.
- the present application provides a server, including: a communication unit for receiving a verification request sent by an electronic device, the verification request including N identity information and N face information to be verified; a processing unit for Obtain N registered face information corresponding to the N pieces of identity information respectively, and the server stores the correspondence between the identity information and face information of each registered user; determine the N registered face information and The N pieces of face information to be verified have a one-to-one correspondence; the communication unit is also used to send a message of successful multi-user joint identity verification to the electronic device.
- the above-mentioned communication unit is also used to receive a registration request sent by an electronic device, and the registration request contains the user's identity information and face information; the above-mentioned processing unit is also used to establish the user's identity Correspondence between information and face information.
- the above-mentioned processing unit is also used to query the user's identity information in the preset database as the correct identity information.
- the user's identity information includes the user's avatar information; the above processing unit is also used to determine that the avatar information in the identity information corresponds to the face information.
- the present application provides an electronic device, including a processor, and a communication module, an input device, an output device, and a memory all coupled to the processor, and one or more computer programs; the one or more computers described above
- the program is stored in the memory, and when the electronic device is running, the processor executes one or more computer programs stored in the memory, so that the electronic device executes the authenticated user described in any one of the first aspect or the second aspect Identity method.
- the processor is used to: run the target application and open the multi-user joint authentication function provided by the target application; the output device is to: display the first preview interface captured by the camera, and prompt Input the face information of a plurality of preset users in the first preview interface; the input device is used to obtain N face information to be verified from the first preview interface, and N is an integer greater than 1; The processor is further configured to allow the electronic device to continue to run the target application if each of the N face information to be verified is face information of a preset user.
- the input device is used to: detect a first function for a user to open a target application, the first function is a function that requires N users to perform multi-user joint authentication, and N is an integer greater than 1; the output The device is used for: the electronic device displays a first input interface, and prompts for input of identity information of N users in the first input interface; displays a first preview interface captured by a camera, and prompts the N users to Input face information in the first preview interface; the processor is used to: obtain N identity information from the first input interface; obtain N face information from the first preview interface; The communication module sends a verification request to the server, where the verification request includes the N identity information and the N face information, so that the server performs multi-user joint identity verification on the N users; if received The message that the multi-user joint authentication succeeded sent by the server performs the first function.
- the present application provides a server, including a processor, a communication module and a memory coupled with the processor, and one or more computer programs; the one or more computer programs are stored in the memory,
- the processor executes one or more computer programs stored in the memory, so that the server executes the method for verifying the identity of the user according to any one of the above third aspects.
- the communication module is used to: receive a verification request sent by an electronic device, where the verification request includes N identity information and N face information to be verified; and the processor is used to: acquire and N pieces of registered face information corresponding to each piece of identity information, and the correspondence between the identity information of each registered user and face information is stored in the memory; determining the N pieces of registered face information and the The N pieces of face information to be verified are in one-to-one correspondence; the communication module is further configured to: send a message of successful multi-user joint identity verification to the electronic device.
- the present application provides a computer storage medium, including computer instructions, which when executed on an electronic device, causes the electronic device to perform the verification of the user's identity as described in any one of the first aspect or the second aspect method.
- the present application provides a computer storage medium, including computer instructions, which, when the computer instructions run on the server, cause the server to perform the method for verifying the identity of the user according to any one of the first and third aspects.
- the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to perform the method for verifying the identity of a user according to any one of the first aspect or the second aspect.
- the present application provides a computer program product that, when the computer program product runs on a server, causes the server to perform the method for verifying the user's identity as described in any one of the third aspects.
- FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application.
- FIG 2 is an architectural diagram of an operating system in an electronic device provided by an embodiment of the present application
- FIG. 3 is a first schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application
- FIG. 4 is a schematic diagram 1 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 5 is a schematic diagram 2 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 6 is a schematic diagram 3 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 7 is a schematic diagram 4 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 8 is a schematic diagram 5 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 9 is a schematic diagram 6 of a scenario of a method for verifying a user's identity provided by an embodiment of this application.
- FIG. 10 is a second schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application
- FIG. 11 is a schematic diagram 7 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 12 is a schematic diagram 8 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 13 is a schematic diagram 9 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- FIG. 14 is a schematic diagram 10 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 15 is a third schematic flowchart of a method for verifying a user's identity provided by an embodiment of this application.
- 16 is a schematic diagram 11 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 17 is a schematic diagram 12 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 18 is a schematic diagram 13 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 19 is a schematic diagram 14 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 20 is a fourth schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application.
- 21 is a schematic flowchart 5 of a method for verifying a user's identity provided by an embodiment of this application;
- 22 is a schematic diagram 15 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 23 is a schematic diagram 16 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 24 is a schematic diagram 17 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 25 is a schematic diagram 18 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 26 is a schematic diagram 19 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
- 27 is a second structural diagram of an electronic device according to an embodiment of the present application.
- 29 is a schematic structural diagram 1 of a server according to an embodiment of the present application.
- FIG. 30 is a second structural diagram of a server according to an embodiment of the present application.
- the method for verifying the user's identity can be applied to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, Personal digital assistants (personal digital assistants, PDAs), wearable electronic devices, virtual reality devices, etc., the specific forms of the electronic devices are not particularly limited in the following embodiments.
- FIG. 1 shows a schematic structural diagram of an electronic device 100.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, motor 191, indicator 192, camera 193, display screen 194, and user identification module (subscriber identification module, SIM) card interface 195 and so on.
- a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, motor 191, indicator 192, camera 193, display screen 194, and user
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), and an image signal processor. (image)signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- the different processing units may be independent devices or may be integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller can generate the operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetch and execution.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- the processor 110 may include one or more interfaces.
- Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver (universal) asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /Or universal serial bus (USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100.
- the electronic device 100 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, and the like.
- the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
- the power management module 141 may also be disposed in the processor 110.
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
- the mobile communication module 150 can receive the electromagnetic wave from the antenna 1 and filter, amplify, etc. the received electromagnetic wave, and transmit it to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it to electromagnetic wave radiation through the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
- the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites that are applied to the electronic device 100 Wireless communication solutions such as global navigation (satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR), etc.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives the electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
- the wireless communication module 160 can also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out.
- the antenna 1 of the electronic device 100 and the mobile communication module 150 are coupled, and the antenna 2 and the wireless communication module 160 are coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite-based augmentation system (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS beidou navigation system
- QZSS quasi-zenith satellite system
- SBAS satellite-based augmentation system
- the electronic device 100 realizes a display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can use a liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active matrix organic light-emitting diode (active-matrix organic light-emitting diode) emitting diode, AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
- the ISP processes the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal. The photosensitive element of the camera transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it onto the photosensitive element.
- the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CCD charge coupled device
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other format image signals.
- the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the camera 193 may send the captured image to a processor (for example, a GPU processor), and the processor extracts one or more face information in the image through a certain face recognition algorithm.
- a processor for example, a GPU processor
- the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
- the video codec is used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG moving picture experts group
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- the NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, voice recognition, and text understanding.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
- the storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
- a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
- the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also known as "handset" is used to convert audio electrical signals into sound signals.
- the voice can be received by bringing the receiver 170B close to the ear.
- the microphone 170C also known as “microphone”, “microphone”, is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through a person's mouth, and input a sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
- the headset interface 170D is used to connect wired headsets.
- the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile electronic device (open terminal) platform (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunications industry association of the United States, CTIA) standard interface.
- OMTP open mobile electronic device
- CTIA American Telecommunications Industry Association
- the sensor module 180 may specifically include a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, or a bone conduction sensor, etc.
- a pressure sensor a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, or a bone conduction sensor, etc.
- the motor 191 may generate a vibration prompt.
- the motor 191 can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
- Touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the amount of power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 can also be compatible with external memory cards.
- the electronic device 100 interacts with the network through a SIM card to realize functions such as call and data communication.
- the electronic device 100 uses eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
- the software system of the electronic device 100 may adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture.
- the embodiment of the present application takes an Android system with a layered architecture as an example to exemplarily explain the software structure of the electronic device 100.
- FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor.
- the layers communicate with each other through a software interface.
- the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.
- the application layer may include a series of application packages.
- the application package can include applications such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, SMS and so on.
- the application layer may further include a target application that needs to authenticate multiple users at the same time.
- the above target application may be a game application.
- a certain age for example, 13 years old
- the identity of the user and its guardian can be verified at the same time, thereby ensuring the user
- the game application is used with the permission or escort of the guardian.
- the above target application may be a payment application.
- the payment application may require the relevant personnel involved in the transaction to perform identity authentication together, thereby ensuring that the relevant personnel of the transaction make the transaction Be informed.
- the above target application may also be an application issued by a government agency to handle online related services.
- a government agency to handle online related services.
- the application can be used to verify the identity of the old and new owners.
- both men and women are required to go through the relevant procedures on the spot.
- the application can be used to verify the identity of both men and women.
- both Party A and Party B are required to confirm the contract content on site.
- the application can be used to verify the identity of Party A and Party B.
- the application framework layer provides an application programming interface (application programming interface) and programming framework for applications at the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include an authentication service, and the authentication service may provide a multi-user joint authentication function to the target application.
- the above target application may call an authentication service to obtain user's face information for registration, authentication and other processes.
- the authentication service may collect image information containing multiple user faces by driving an image sensor such as a camera.
- the authentication service can also calculate the number of faces contained in the collected face information, and perform live detection on the face information.
- the authentication service can also extract the facial features of each face in the facial information, and compare the extracted facial features with the registered user's facial features to determine whether multiple users currently undergoing identity verification Is a legitimate user.
- the above authentication service can be run in a common execution environment (rich execution environment, REE), or in a trusted execution environment (trusted execution environment, TEE), or a security element (secure element, SE) and other security In a higher environment.
- REE rich execution environment
- TEE trusted execution environment
- SE secure element
- the application framework layer may also include drawing services (such as surfaceflinger), window managers, content providers, phone managers, resource managers, notification managers, and so on.
- drawing services such as surfaceflinger
- window managers such as surfaceflinger
- content providers such as phone managers, resource managers, notification managers, and so on.
- the drawing service can be used to build the display page of the application.
- the display page can be composed of one or more views.
- a display page that includes an SMS notification icon may include a view that displays text and a view that displays pictures.
- the window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, intercept the screen, etc.
- Content providers are used to store and retrieve data, and make these data accessible to applications.
- the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
- the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connection, hang up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloading, message reminders, etc.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, the text message is displayed in the status bar, a prompt sound is emitted, the electronic device vibrates, and the indicator light flashes.
- Android Runtime includes core library and virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
- the core library contains two parts: one part is the function function that Java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in the virtual machine.
- the virtual machine executes the java files of the application layer and the application framework layer into binary files.
- the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library may include multiple functional modules. For example: surface manager (surface manager), media library (Media library), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- surface manager surface manager
- media library Media library
- 3D graphics processing library for example: OpenGL ES
- 2D graphics engine for example: SGL
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports a variety of commonly used audio, video format playback and recording, and still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc.
- the embodiment of the present application does not make any limitation on this.
- each user who needs to be authenticated needs to register their own identity information and face information in the electronic device 100.
- a user using the mobile phone may be one or more family members in the family.
- each member of the family can register their own identity information and face information in the mobile phone through the following steps S301-S305. As shown in FIG. 3, steps S301-S305 specifically include:
- the mobile phone prompts the user to input identity information.
- the mobile phone may prompt the user to input identity information when the user installs or uses the target application for the first time.
- the target application as an example of a game APP, as shown in (a) of FIG. 4, after the user opens the registration function of the game APP in the mobile phone, the mobile phone can display the registration interface 401.
- the registration interface 401 options for filling in identity information such as the name, age, gender, mobile phone number, and ID number of the registered user are set to prompt the user to enter the corresponding identity information in the registration interface 401.
- the identity information input by the user may not be directly associated with the target application.
- a mobile phone can provide multi-user federation authentication in the system settings.
- the mobile phone may display the registration interface 402. Similar to the registration interface 401 described above, the registration interface 402 can also be set to fill in one or more identity information options such as the name, age, gender, mobile phone number, and ID number of the registered user, which is not done in the embodiments of this application Any restrictions.
- the mobile phone obtains user A's identity information.
- a user who wishes to register can enter his own name, age, gender, mobile phone number, and identity card number in the corresponding fill-in options of the registration interface 402 . If it is detected that the user clicks the next button 403 in the registration interface 401, the mobile phone may save the identity information entered by the user in the registration interface 401 at this time as the identity information of the user A locally.
- the mobile phone prompts the user to input face information.
- the mobile phone may call its camera (for example, the front camera) to obtain the currently captured preview interface, and detect whether there is a preview interface through a preset face detection algorithm Face information.
- the mobile phone may display the content captured by the camera in the preview interface 601, for example, the mobile phone may display the content captured by the camera in the preset area 602 of the preview interface 601.
- the mobile phone may prompt the user to adjust the position of the human face in the preview interface 601, so that the mobile phone can detect the user's human face in the preset area 602 of the preview interface 601.
- the mobile phone uses the camera to obtain the face information input by user A.
- the mobile phone can recognize the face information in the preset area 602, and save the recognized face information locally .
- the mobile phone may extract corresponding facial features according to the image information in the preset area 602.
- the extracted face feature may be a feature matrix, and the mobile phone may store the extracted feature matrix locally.
- the mobile phone may also display a prompt 701 of successful entry of face information. Subsequent mobile phones can use the face information entered when user A registers to authenticate user A's user identity.
- the mobile phone may also display a return button 702 and a next button 703. If it is detected that the user clicks the return button 702, the mobile phone may delete the face information obtained this time, and return to the preview interface 601 to recapture and detect the face information. If it is detected that the user clicks the return button 703, it means that the user confirms to use the face information entered this time as a basis for subsequent identity verification, and the mobile phone may continue to perform step S305 at this time.
- the phone may display a prompt message that the registration failed and exit the registration process .
- the mobile phone establishes a correspondence between user A's identity information and face information, and prompts user A to register successfully.
- the mobile phone may display the identity information and face information of user A obtained in steps S302 and S304 on the touch screen, respectively, and prompt the user to confirm. If it is detected that the user clicks the confirmation button 801, it means that the user agrees to bind the identity information entered this time with face information, and the mobile phone may establish a correspondence between the identity information of user A and face information in a preset database.
- a face feature database and an identity information database may be set in the mobile phone in advance, and the mobile phone may save the acquired face information of user A in the face feature database, and generate a face feature index of the face information.
- the mobile phone may store the correspondence between user A's facial feature index and user A's identity information in the identity information database.
- the mobile phone can find the face feature index corresponding to the identity information in the identity information database according to the identity information entered by the user, and then in the face feature database according to the face feature index Find the corresponding face information.
- the mobile phone can return to the previous menu so that the user can modify the identity information and/or face information that has been entered, which is not done in the embodiments of the present application Any restrictions.
- the mobile phone may also display a message 901 that user A has successfully registered on the display screen. Moreover, the mobile phone can also display an option 902 of adding other registered users. If it is detected that the user clicks the option 902, the mobile phone may continue to perform the above steps S301-S305 to register other users (for example, user B and user C, etc.) that can use the multi-user joint authentication function.
- the user can enable the multi-user joint authentication in the target application through the following steps S1001-S1006 Features.
- the user does not need to use the multi-user joint authentication function in the target application (for example, the above-mentioned game APP), for example, parents do not need their guardian to accompany while using the game APP, the user can skip the following steps S1001-S1006 Open the game APP.
- steps S1001-S1006 specifically include:
- the mobile phone After detecting that the user enables the multi-user joint authentication function in the target application, the mobile phone prompts the user to select the number of users when the multi-user joint authentication is performed.
- the mobile phone when the mobile phone detects that the user opens the game APP, if the multi-user federation authentication function in the game APP is not enabled, the mobile phone may display that multi-user federation is enabled Enable button 1101 for identity verification function. After detecting that the user clicks the enable button 1101, it indicates that subsequent users want to turn on the multi-user joint authentication function when opening the game APP to prove that the user is using the game APP in the company of others. At this time, as shown in (b) in FIG. 11 As shown, the mobile phone may prompt the user to enter the number of users who subsequently participate in multi-user federation authentication.
- the mobile phone can also automatically enable the multi-user federation authentication function in the target application for the user. For example, when it is detected that the user opens the game APP, the mobile phone can automatically turn on the front camera to collect the user image using the game APP. If the user image determines that the user who uses the game APP is younger (for example, less than 10 years old), the mobile phone can automatically enable the multi-user federation authentication function and prompt the user to select the number of users in the multi-user federation authentication.
- the mobile phone detects that the user selects the option of 2 people, as shown in FIG. 12, the mobile phone can call its camera (for example, the front camera) to obtain The currently captured preview interface 1201 is displayed and displayed.
- the mobile phone may also prompt the user in the preview interface 1201 to input the face information of the user 1 and the user 2 at the designated position of the preview interface 1201.
- the mobile phone may mark two areas in the preview interface 1201 according to the number of users, namely, the area 1202 and the area 1203 shown in FIG. 12. These two areas are used to collect face information of user 1 and user 2, respectively.
- users A and B who participate in the multi-user joint authentication can adjust their positions in the preview interface 1201 according to the prompt in the preview interface 1201, so that the mobile phone can detect the user 1 (such as the user) in the area 1202 of the preview interface 1201.
- A) Face information, and the face information of user 2 (eg, user B) is detected in the area 1202 of the preview interface 1201.
- the mobile phone obtains N personal face information from the preview interface.
- the mobile phone determines that the above-mentioned N personal face information are all face information of the registered user.
- the mobile phone After the mobile phone detects face information in both the area 1202 and the area 1203 of the preview interface 1201, it can be determined that the number of faces at this time is the same as the number of users set by the user (that is, 2), then , The mobile phone can determine whether the face information in the area 1202 and the area 1203 is the face information of the registered registered user one by one. If the number of collected face information is different from the number of users set by the user, the mobile phone may prompt the user to enter the incorrect number of faces in the preview interface 1201, and return to the preview interface 1201 to reacquire the preview interface 1201. Face information.
- the mobile phone may match the face information extracted from the area 1202 with the face information of the registered user A, user B, and user C in the face feature library. If the face information in the area 1202 matches the face information of the user A, indicating that the face captured in the area 1202 is the face of the user A, the mobile phone can search in the identity information database according to the face feature index of the user A To user A's identity information.
- the mobile phone can match the face information extracted from the area 1203 with the face information of the registered user A, user B, and user C in the face feature library. If the face information in the area 1203 matches the face information of the user B, indicating that the face captured in the area 1203 is the face of the user B, the mobile phone can search in the identity information database according to the face feature index of the user B To user B's identity information. In this way, the mobile phone can determine that the two face information collected in the preview interface 1201 are the face information of the registered user.
- the mobile phone may display a registration button to prompt the unregistered user to register the identity information and the facial information in the mobile phone. If it is detected that the user clicks the registration button, the mobile phone can register the identity information and face information of the new user through the above steps S301-S305.
- the mobile phone after the mobile phone detects face information from the above-mentioned area 1202 and area 1203, it can also perform live detection on the face information in area 1202 and area 1203, that is, confirm the face captured by the mobile phone
- the image belongs to a real living user, rather than using fake face information such as pictures or videos.
- a mobile phone may use a temperature sensor to detect whether the temperature distribution in the area 1202 and the area 1203 conforms to the temperature distribution on the face surface. If it matches the temperature distribution on the face surface, it may be considered to be detected by a living body.
- the mobile phone may also require the user to blink, open his mouth, or read a piece of text to identify whether the users in the area 1202 and the area 1203 are living users.
- the embodiment of the present application does not make any limitation on this.
- the mobile phone prompts the user to confirm the correspondence between the N personal face information and the corresponding N identity information.
- the mobile phone establishes a correspondence between the target application, the N personal face information, and the N identity information.
- the mobile phone may compare the face information and identity of the user A
- the information and user B's face information and identity information are displayed on the touch screen to prompt the user to confirm. If it is detected that the user clicks the confirmation button 1401, it means that the user agrees to perform multi-user joint identity verification by user A and user B when the game APP is subsequently run. Then, the mobile phone can establish a correspondence between the game APP, user A's face information and identity information, and user B's face information and identity information.
- the authentication registration table shown in Table 1 may be pre-stored in the mobile phone, and the authentication registration table is used to record the correspondence between each application that enables the multi-user joint authentication function and the corresponding multiple preset users .
- multiple preset users corresponding to an application may be referred to as an authenticated user of the application.
- the authenticated users of the game APP include user A and user B. If it is detected that the user clicks the confirm button 1401 shown in FIG. 14, the mobile phone can compare the ID of the game APP (such as the package name of the application) with the relevant information (such as identity information and face) of the authenticated user (that is, user A and user B) Information) is recorded in the authentication registration form. In this way, when it is subsequently detected that the user opens the game APP, the mobile phone can determine whether the currently authenticated user is the authenticated user recorded in the authentication registration table through the authentication registration table shown in Table 1.
- App ID Identity Information Face information Game APP ID User A's identity information User A's face information A User B's identity information User B's face information Payment APP ID User B's identity information User B's face information A User C's identity information User C's face information
- the process of enabling the multi-user joint authentication function in the target application of the mobile phone (that is, the above S1001-S1006) only needs to be completed once by the user in the target application. That is to say, after the user sets user A and user B through the above S1001-S1006 as the authenticated users who have completed the multi-user joint authentication function in the target application, each subsequent multi-user joint authentication in the target application requires User A and user B participate in the multi-user joint authentication to provide multi-user presence certification using the target application.
- the user can also replace the authenticated user who performs multi-user joint identity verification in the target application through the above steps S1001-S1006.
- the authenticated user can be modified from user A and user B to user A and user C, and this embodiment of the present application does not make any limitation on this.
- steps S1501-S1505 performs multi-user joint authentication.
- steps S1501-S1505 specifically include:
- the mobile phone may display a verification button for multi-user joint authentication when entering the game APP, or may display the verification button when entering a certain function of the game APP.
- the mobile phone may display a verification button 1601 to prompt the user to perform multi-user joint identity verification.
- the mobile phone can also automatically turn on the multi-user federation authentication function in some scenarios. For example, after detecting that the user opens the game APP, the mobile phone may request the user to enter the user's age. If the user is younger (for example, less than 10 years old), the mobile phone may automatically open the multi-user joint authentication function in the game APP. Alternatively, the user can also set the phone to a child mode. If it is detected that the phone is in the child mode when the user opens the game app, the phone can automatically turn on the multi-user joint authentication function in the game app. Or, the mobile phone can also monitor the running duration of the game APP. When the running duration of the game APP in the mobile phone is greater than a preset time (for example, 2 hours), the mobile phone can automatically open the multi-user joint authentication function in the game APP.
- a preset time for example, 2 hours
- the mobile phone can obtain the relevant information of the authenticated user corresponding to the game APP in the authentication registration table shown in Table 1 according to the ID of the game APP.
- the authenticated users corresponding to the game APP include user A and user B.
- the mobile phone can obtain the corresponding facial feature index according to the user A's identity information in the identity information database, and then, the mobile phone can obtain the user A's face information according to the user A's facial feature index in the facial feature database .
- the mobile phone can obtain the corresponding facial feature index according to the user B's identity information in the identity information database.
- the mobile phone can obtain the user B's facial information according to the user B's facial feature index in the facial feature database .
- the mobile phone prompts the user to input face information of N (N>1) authenticated users in the preview interface.
- the mobile phone After the mobile phone determines that the authenticated users corresponding to the game APP are user A and user B, as shown in FIG. 17, the mobile phone can call its camera (for example, the front camera) to obtain the currently captured preview interface 1701 and display the preview interface 1701. Moreover, since the mobile phone has determined that the game APP corresponds to two authenticated users, as shown in FIG. 17, the mobile phone can mark two areas (ie, area 1702 and area 1703) in the preview interface 1701 to prompt the user to Enter the face information of each authenticated user in these two areas.
- the camera for example, the front camera
- the mobile phone can also prompt the user to enter face information in the preview interface 1701 according to the position relationship of multiple authenticated users when the multi-user joint authentication function is enabled, and the subsequent phone can also follow the position relationship of each face information in the preview interface 1701 Determine whether multi-user federation authentication is passed. For example, when the multi-user joint authentication function is enabled, the face information of user A is on the left side of the preview interface, and the face information of user B is on the right side of the preview interface.
- the mobile phone obtains N personal face information from the preview interface.
- the mobile phone determines that the above N personal face information are all face information of the authenticated user.
- the mobile phone can determine that the number of currently authenticated persons is the same as the number of authenticated users, then the mobile phone can determine the area 1702 and the area 1703 one by one Is the face information of the authenticated users (ie user A and user B).
- the authenticated user corresponding to the above-mentioned area 1702 is user A.
- the mobile phone may compare the face information collected in the area 1702 with the face information of user A. When the similarity between the face information in the area 1702 and the face information of the user A is greater than a preset value, it can be determined that the face information in the area 1702 is the face information of the authenticated user A.
- the mobile phone can compare the face information collected in area 1703 with the face information of user B. When the similarity between the face information in the area 1703 and the face information of the user B is greater than a preset value, it can be determined that the face information in the area 1703 is the face information of the authenticated user B. In this way, the mobile phone can determine that the two face information collected in the preview interface 1701 are the face information of the two authenticated users preset by the user in steps S1001-S1006, and the location of the two face information in the preview interface 1701 The relationship also conforms to the positional relationship set by the user in steps S1001-S1006.
- the mobile phone displays a message that the multi-user joint authentication is successful, and continues to run the target application.
- the mobile phone can display A message 1801 that the multi-user federation authentication succeeded.
- the mobile phone can continue to run the target application (ie, the game APP). For example, the mobile phone can automatically open the game APP to enter the home page of the game APP.
- the mobile phone may display the multi-user joint Authentication failed message.
- the user does not have permission to use the game APP, and the mobile phone cannot enter the home page of the game APP to continue to run the game APP.
- the mobile phone can also set the effective time for the multi-user joint authentication to succeed. Taking the effective time as 2 hours for example, after the user passes the multi-user joint authentication in the game APP, the mobile phone can allow the user to use the game APP for 2 hours. Then, if the mobile phone detects that the game APP is still running in the foreground after 2 hours, the mobile phone may prompt the user to perform multi-user joint authentication again. That is to say, when the running time of the game APP exceeds the above-mentioned effective time, the mobile phone may repeatedly perform the above steps S1501-S1505 to perform multi-user joint authentication, so as to avoid users who use the game APP from indulging in games.
- the game APP is taken as an example to illustrate. It can be understood that the mobile phone can also set up a multi-user joint authentication function in other applications to verify the identities of multiple users at the same time, thereby realizing the mobile phone Provide a multi-user presence proof for a certain function in
- the aforementioned target APP may also be a payment APP. If the user sets the authentication users who perform the multi-user joint authentication function in the payment APP to the user B and the user C through the above steps S1001-S1006. Then, as shown in FIG.
- the mobile phone when the mobile phone detects that the transaction amount in the payment APP exceeds a preset amount (for example, 20,000), the mobile phone may prompt to input face information of user B and user C for multi-user joint authentication. If user B and user C have passed the multi-user joint identity verification in the payment app, it means that the authenticated users (ie, user B and user C) bound to the payment app have been informed and authorized about this large transaction, then the mobile phone can Continue to complete this large transaction, so as to improve the security of property transactions and reduce the probability of loss of user property.
- a preset amount for example, 20,000
- the mobile phone can continue to run the target application means that the mobile phone can open the target application to enter the display interface of the target application;
- a certain function of the target application such as the above-mentioned payment function
- multi-user federation authentication is turned on. After the multi-user federation authentication, the mobile phone can continue to run the target application because the mobile phone can continue to execute the function.
- the local registration, activation, and implementation of the multi-user joint authentication function on the mobile phone are used as examples. It can be understood that the mobile phone can also complete the registration and verification process of the multi-user joint authentication function by interacting with the server.
- the mobile phone may register the user's identity information and face information in the server through the following steps S2001-S2008.
- steps S2001-S2008 specifically include:
- the mobile phone prompts the user to input identity information.
- the mobile phone obtains user A's identity information.
- the mobile phone prompts the user to input face information.
- the mobile phone uses the camera to obtain the face information input by user A.
- steps S2001-S2004 is the same as the implementation process of steps S301-S304 in the above embodiment, so it will not be repeated here.
- the mobile phone sends a registration request to the server.
- the registration request includes user A's identity information and face information.
- the mobile phone may encrypt the face information and identity information and carry it in the registration request to the server, and the server performs the following steps S2006-S2008 to complete the registration process of user A.
- the server determines that the identity information of user A is valid identity information.
- the server may first search in the server whether the same identity information as the received identity information or the same face information as the received face information is stored. If it is not found, it means that the identity information and face information of user A sent at this time have not been registered in the server.
- the server can verify whether the identity information of user A is real and valid identity information through the Ministry of Public Security or other authoritative identity database.
- the identity information of user A sent from the mobile phone contains the name and ID number of user A.
- the server may request the above-mentioned identity database to query whether there is a user matching the name and ID number of user A. If a user who matches the name and ID number of user A can be found in the identity database, it means that the identity information entered by user A in the mobile phone is real and valid identity information. Otherwise, it means that the identity information entered by user A in the mobile phone is wrong, and the server can send the registration result of the failed registration to the mobile phone.
- the identity information of user A sent from the mobile phone may include the face information of user A.
- the user may be required to enter a photo of an ID card, and the user's ID card is generally printed with the user's avatar.
- the identity information collected by the mobile phone is the information on the ID card of user A, and the face information of user A is also included in the information.
- the server can compare the face information in the identity information of user A with the face information collected by the mobile phone this time.
- the server can verify whether the identity information of user A is valid identity information from the identity database, thereby ensuring the authenticity of the face information and identity information uploaded by user A.
- the server establishes the correspondence between the identity information of user A and the face information.
- the server may store the identity information and face information of user A in the server, and establish a correspondence between the identity information of user A and the face information relationship. Through the above registration method, the server can store the correspondence between the identity information and face information of multiple users. Subsequently, the server can find the corresponding face information according to the user's identity information, and then can verify the user's identity based on the face information.
- the server sends the registration result of the successful registration of user A to the mobile phone, so that the mobile phone displays the registration result.
- the server After the server establishes the correspondence between user A's identity information and face information, it indicates that user A has completed registration in the server. At this time, the server can send the registration result of user A's successful registration to the mobile phone. After receiving the registration result, the mobile phone may display a successful registration message to prompt the user that the registration is successful.
- the difference from the above steps S301-S305 is that the user's identity information and face information are both stored in the server. Therefore, each user who needs to register can use a different mobile phone to complete the registration process through the above steps S2001-S2008.
- user B can register user B's identity information and face information in the server through his mobile phone
- user C can also register user C's identity information and face information in the server through his mobile phone.
- the mobile phone can collect images containing multiple face information and send them to the server.
- the server performs multi-user joint identity verification on the multiple face information collected at this time according to the face information of the registered user. If the multi-user joint identity verification is passed, it means that the multiple users have completed the identity authentication at the same time and place, which ensures the accuracy and security of the multi-user identity authentication.
- steps S2101-S2108 specifically include:
- the mobile phone obtains M pieces of identity information respectively input by M users.
- a multi-user joint authentication function may be set in the target application.
- the target application is a game APP
- multi-user joint authentication can be performed when the game APP is opened.
- multi-user joint identity verification can be performed when conducting large-value transactions.
- the target application is a related application for online certificate processing
- multi-user joint identity verification can be performed on multiple users related to the certificate when processing the certificate.
- the vehicle management APP provides users with the function of handling vehicle transfer procedures online.
- a transfer button 2201 is displayed on the homepage of the vehicle management APP. If it is detected that the user clicks the transfer button 2201, it means that the user (for example, user A) wants to transfer the vehicle under his own name to another user (for example, user B).
- the vehicle management APP needs to perform multi-user joint identity verification on the two users participating in the vehicle transfer procedure to ensure that the two users participating in the vehicle transfer procedure do not dispute the transfer procedure.
- the mobile phone can jump to the input interface 2301 of the vehicle management APP, where the mobile phone can prompt the owner of the vehicle before the transfer (ie, the old owner) to enter his identity information.
- the user A as the old car owner, enters his identity information in the input interface 2301, he can click the OK button 2302 to submit his identity information. If it is detected that the user clicks the next button 2302, the mobile phone can obtain the identity information input by user A in the input interface 2301.
- the mobile phone can jump to the input interface 2303 of the vehicle management APP, and the mobile phone can prompt in the input interface 2303
- the owner of the vehicle after the transfer ie, the new owner
- the user B as the old car owner, enters his identity information in the input interface 2303, he can click the next button 2304 to submit his identity information. If it is detected that the user clicks the next button 2304 in the input interface 2303, the mobile phone can obtain the identity information input by the user B in the input interface 2303.
- the mobile phone obtains the identity information of the two users A and B as an example.
- the number of users participating in the multi-user joint identity verification function may be different. For example, when signing a three-party agreement online in the target application, the mobile phone needs to obtain the identity information of the three users.
- the mobile phone prompts M users participating in the multi-user joint authentication function to input face information in the same preview interface.
- the mobile phone after the mobile phone obtains the identity information of the two users, the new car owner (user A) and the old car owner (user B), as shown in FIG. 24, the mobile phone can call its camera (for example, the front Set the camera) Obtain the currently captured preview interface 2401 and display the preview interface 2401. Moreover, the mobile phone can mark the input area 2402 of the face information of the new car owner and the input area 2403 of the face information of the old car owner on the preview interface 2401, thereby prompting the user A and the user B to input their own face information on the preview interface 2401.
- the camera for example, the front Set the camera
- the mobile phone obtains M pieces of face information to be verified from the preview interface.
- the mobile phone After the mobile phone displays the preview interface 2401, it can detect whether there is a human face in the input area 2402 and the input area 2403 in real time. When it is detected that a face appears in the input area 2402 and the input area 2403, the mobile phone can extract the face information in the input area 2402 and the face information in the input area 2403. The two face information are the face information waiting for verification in the subsequent multi-user joint identity verification.
- the verification method provided in this embodiment of the present application can collect face information of the multiple users in the same preview interface, thereby ensuring that the multiple users are in the same time and scene Understand and confirm a certain information (such as the above transfer procedures).
- This verification method provides multi-user presence verification, which can reduce the security risks caused by unequal information in transactions involving multiple users.
- the mobile phone sends a verification request to the server, where the verification request includes the M identity information and M face information to be verified.
- the phone After the mobile phone obtains the identity information of the new owner (user A) and the old owner (user B) and the face information to be verified by user A and user B, the phone can use the encryption method agreed with the server to encrypt the identity information and face The information is encrypted. Furthermore, the mobile phone can carry the encrypted M pieces of identity information and M pieces of face information to be verified in the verification request and send it to the server, so as to avoid the security risk of information leakage during the interaction between the phone and the server.
- the mobile phone may display the collected identity information and face information of the new and old car owners to the user, and the user confirms whether to use this time The collected identity information and face information are used for vehicle transfer. If it is detected that the user clicks the confirmation button 2401 as shown in FIG. 25, the mobile phone may send the above verification request to the server.
- the mobile phone can generate the summary of the verification request by using the cryptographic algorithm such as the hash algorithm and the collected face information and the operation content of the vehicle transfer confirmed by the user . Furthermore, the mobile phone can carry the encrypted operation content, identity information, face information and abstract in the verification request and send it to the server.
- the cryptographic algorithm such as the hash algorithm
- the mobile phone can carry the encrypted operation content, identity information, face information and abstract in the verification request and send it to the server.
- the server finds corresponding M pieces of registered face information according to the M pieces of identity information.
- the server determines that the M pieces of registered face information correspond to the M pieces of face information to be verified.
- step S2106 after the server receives the verification request sent by the mobile phone, if the verification request is encrypted, the server can decrypt the verification request using the corresponding decryption algorithm to obtain the identity information carried in the verification request and the face to be verified information.
- the server may use the corresponding decryption algorithm to decrypt the operation content, identity information, face information, and digest carried in the verification request. Furthermore, the server can verify the integrity of the received face information and operation content through a summary to ensure that the information received by the server has not been tampered with and the user is informed about the operation content (ie, vehicle transfer operation) corresponding to this authentication . To prevent the attacker from intercepting the user's face information, it can be used for authentication applications for other operations without the user's knowledge.
- the server After the server obtains the M identity information in the authentication request, it can further determine whether the multiple users performing multi-user joint authentication this time are all registered users who have been registered in the server. Since each user stores his own identity information and corresponding face information in the server during registration, the server can find whether the identity information of user A and user B received this time are stored locally. If the identity information of user A and user B is saved, it means that both user A and user B requesting multi-user identity verification this time are registered users. Then, the mobile phone can find the face information corresponding to the identity information of user A and the face information corresponding to the identity information of user B, that is, the registered face information.
- step S2107 after the mobile phone obtains the registered face information corresponding to the user A's identity information, the mobile phone can compare the registered face information with the face information to be verified entered by the user A in the verification request. If the similarity between the two is greater than the threshold, it means that the authentication of User A participating in the multi-user joint authentication is successful.
- the mobile phone can compare the registered face information with the face information to be verified entered by the user B in the verification request. If the similarity between the two is greater than the threshold, it means that the authentication of User B participating in the multi-user joint authentication is successful. If the authentication of both user A and user B is successful, it can be determined that this multi-user joint authentication is successful.
- user A and user B can be provided with proof of presence, so as to ensure that user A and user B participating in the vehicle transfer have authorized and confirmed the transfer process at the same time and in the scenario to avoid other users posing as users A or user B completes the transfer procedure and brings property damage to the user.
- the server sends a message that the multi-user joint authentication is successful to the mobile phone.
- the server can send a message that the multi-user joint authentication is successful to the mobile phone.
- the mobile phone may display a message that multi-user joint authentication is successful.
- the mobile phone can also automatically jump to the next operation interface (such as an online number selection interface) of the vehicle transfer procedure, so that the user can continue to complete other procedures of the vehicle transfer procedure.
- the server may determine that the multi-user federation authentication fails this time. Then, the server can send a message to the mobile phone that multi-user federation failed. The mobile phone can also display a message that multi-user federation failed. At this time, the mobile phone cannot jump to the next operation interface of the vehicle transfer procedure, so as to prevent the illegal user from impersonating the legitimate user to transfer the vehicle and damage the user's property security.
- the vehicle management APP is taken as an example for the target application. It can be understood that the identity verification method provided by the embodiments of the present application can also be applied to other scenarios where the identities of multiple users need to be verified simultaneously. For example, when using an online contract signing application, the above-mentioned identity verification method can be used to perform multi-user joint identity verification on multiple parties participating in the contract signing, so as to provide a multi-user presence certificate to avoid subsequent contract disputes.
- the above-mentioned identity verification method when handling the business of marriage certificate or joint account online, can be used to perform multi-user joint identity verification on multiple parties participating in the business, proving that all parties involved in the above-mentioned business are present and authorizing the forthcoming business , To avoid other users impersonating legitimate users to handle related business on the spot.
- the above-mentioned identity verification method when dealing with the common property of multiple users online (for example, the common property of husband and wife), the above-mentioned identity verification method can be used to perform multi-user joint identity verification on the multi-owner of the common property to ensure that the multi-owner of the common property is present and informed of the transaction Content, thereby reducing potential security risks to user property.
- FIG. 27 shows a possible structural schematic diagram of the electronic device involved in the foregoing embodiment.
- the electronic device includes: an acquisition unit 2701, a processing unit 2702, a display unit 2703, and a communication unit 2704.
- the obtaining unit 2701 is used to support the electronic device to perform the processes S302 and S304 in FIG. 3, and the process S1003 in FIG. 10, and the process S1503 in FIG. 15, and the processes S2002 and S2004 in FIG. 20, and the process in FIG. 21. S2102 and S2104;
- the processing unit 2702 is used to support the electronic device to execute the process S305 in FIG. 3, and the processes S1004-S1006 in FIG. 10, and the processes S1504-S1505 in FIG. 15;
- the display unit 2703 is used to support the electronic device execution diagram Processes S301 and S303 in 3, and processes S1001-S1002 in FIG. 10, and processes S1501, S1502 and S1505 in FIG. 15, and processes S2001 and S2003 in FIG.
- the communication unit 2704 is used to support the electronic device to perform the processes S2005 and S2008 in FIG. 20 and the processes S2105 and S2108 in FIG. 21.
- all relevant content of each step involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here.
- FIG. 28 shows a possible structural schematic diagram of the electronic device involved in the foregoing embodiments.
- the electronic device includes a processor 2801, a memory 2802, an input device 2803, an output device 2804, and a communication module 2805.
- the number of the processor 2801, the memory 2802, the input device 2803, the output device 2804, and the communication module 2805 can be one or more (the number is taken as an example in FIG. 28), and they can communicate through the bus 2806.
- the processor 2801 may specifically be the processor 110 shown in FIG. 1.
- the processor 2801 can be used to control and manage the actions of the electronic device.
- the processor 2801 may be a central processing unit (Central Processing Unit, CPU), GPU, general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), on-site Programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
- the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of DSP and microprocessor, and so on.
- the memory 2802 may specifically be the internal memory 121 and the external memory 120 shown in FIG. 1.
- the memory 2802 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- RAM random access memory
- non-volatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the input device 2803 may be a device that receives information input by a user, such as the microphone 170C or the touch sensor in the sensor module 180 shown in FIG. 1.
- the output device 2804 may be a device such as a display for displaying information input by the user, information provided to the user, and various menus of the electronic device.
- the display may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like.
- the output device 2804 may be the speaker 170A or the display screen 194 shown in FIG. 1.
- a touch sensor may be integrated on the display screen 194 to collect touch events on or near it, and send the collected touch information to other devices (such as a processor, etc.).
- the communication module 2805 may be a transceiver, a transceiver circuit, or a communication interface.
- a transceiver for example, Bluetooth devices, Wi-Fi devices, peripheral interfaces, etc.
- the communication module 2805 may specifically be the radio frequency module 150 and the communication module 160 shown in FIG. 1.
- FIG. 29 shows a possible structural schematic diagram of the server involved in the foregoing embodiments.
- the server includes: a communication unit 2901, a processing unit 2902, and a determination unit 2903.
- the communication unit 2901 is used to support the server to execute the processes S2005 and S2008 in FIG. 20, and the processes S2105 and S2108 in FIG. 21;
- the processing unit 2902 is used to support the server to execute the process S2007 in FIG. 20, and the process S2106 in FIG. 21;
- the determining unit 2903 is used to support the server to perform the process S2006 in FIG. 20 and the process S2107 in FIG. 21.
- FIG. 30 shows a possible structural diagram of the server involved in the above embodiments.
- the server includes a processor 3001, a memory 3002, and a communication module 3003.
- the number of the processor 3001, the memory 3002, and the communication module 3003 may be one or more (the number is taken as an example in FIG. 28), and they can communicate through the bus 3004.
- the processor 3001 can be used to control and manage the actions of the electronic device.
- the processor 3001 may be a central processor (Central Processing Unit, CPU), GPU, general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), on-site Programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
- the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of DSP and microprocessor, and so on.
- the memory 3002 is used to store program codes and data of the server.
- the memory 3002 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- RAM random access memory
- non-volatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the communication module 3003 is used to support communication between the server and other network entities.
- the communication module 3003 may be a transceiver, a transceiver circuit, a communication interface, or the like.
- the functional units in the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or software function unit.
- the integrated unit may be stored in a computer-readable storage medium.
- the technical solutions of the embodiments of the present application may essentially be part of or contribute to the existing technology or all or part of the technical solutions may be embodied in the form of software products, and the computer software products are stored in a storage
- the medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in the embodiments of the present application.
- the foregoing storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Collating Specific Patterns (AREA)
Abstract
Description
本申请涉及终端领域,尤其涉及一种验证用户身份的方法及电子设备。This application relates to the field of terminals, and in particular to a method and electronic device for verifying a user's identity.
目前,通过采集用户的人脸信息对用户进行身份认证的方法已经广泛应用在各类电子设备中。例如,手机在锁屏状态下可通过摄像头采集用户的人脸信息。如果采集到的人脸信息为预先存储的合法用户的人脸信息匹配,说明用户身份验证通过,则手机可自动解锁屏幕。At present, the method of authenticating a user by collecting the user's face information has been widely used in various electronic devices. For example, when the phone is locked, the user's face information can be collected through the camera. If the collected face information matches the pre-stored face information of the legal user, indicating that the user's identity verification is passed, the mobile phone can automatically unlock the screen.
但在一些情况下可能需要对同一场景中的多方用户进行身份验证。例如,在线签订合同、借条或办理证件(例如结婚证)、联名账户时,需要多个用户对同一信息进行在场确认。此时,如果逐一的采集各个用户的人脸信息分别进行身份验证,即使每个用户均通过身份验证,也很难证明这多个用户是在同一时间和同一空间下完成了对上述信息的确认。例如,用户A通过其人脸信息完成身份验证后,可使用用户B的视频伪造用户B的人脸信息对用户B进行身份验证。这样,在用户B不在场时用户A也能够与用户B签订相关的合同。显然,这种身份验证方法对用户的隐私和财产会带来极大的安全隐患。However, in some cases, it may be necessary to authenticate multiple users in the same scenario. For example, when signing a contract, debit, or applying for a certificate (such as a marriage certificate), or a joint account online, multiple users are required to confirm the presence of the same information. At this time, if the face information of each user is collected one by one for identity verification, even if each user passes the identity verification, it is difficult to prove that the multiple users completed the confirmation of the above information at the same time and in the same space . For example, after user A completes identity verification through its face information, it can use user B's video to forge user B's face information to authenticate user B. In this way, user A can also sign a related contract with user B when user B is not present. Obviously, this authentication method will bring great security risks to users' privacy and property.
发明内容Summary of the invention
本申请提供一种验证用户身份的方法及电子设备,可在身份验证过程中对同时采集到的多个人脸信息进行身份验证,提供多用户的在场证明,从而降低对用户隐私和财产带来的安全隐患。This application provides a method and electronic device for verifying the identity of a user, which can authenticate multiple face information collected at the same time during the identity verification process and provide proof of the presence of multiple users, thereby reducing the privacy and property of the user. Security risks.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,本申请提供一种验证用户身份的方法,包括:电子设备运行目标应用;当目标应用中提供的多用户联合身份验证功能被打开时,电子设备显示摄像头捕捉到的第一预览界面,并提示在第一预览界面中输入多个预设用户的人脸信息;电子设备从第一预览界面中获取N(N为大于1的整数)个待验证人脸信息,也就是说,预设的多个用户需要同时在第一预览界面中输入人脸信息进行身份验证;若这N个待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,说明预设的多个用户在同一时间和地点下完成了身份认证,那么,电子设备可继续运行上述目标应用,例如,电子设备可打开上述目标应用或运行身份认证成功后的下一功能。如果上述N个待验证人脸信息中包含非预设用户的人脸信息,说明多用户联合身份验证失败,电子设备可停止运行目标应用,保证了多用户进行身份认证时的准确性和安全性,从而降低对用户隐私和财产带来的安全隐患。In the first aspect, the present application provides a method for verifying a user's identity, including: an electronic device running a target application; when the multi-user federation authentication function provided in the target application is turned on, the electronic device displays a first preview interface captured by the camera And prompt to enter face information of multiple preset users in the first preview interface; the electronic device obtains N (N is an integer greater than 1) face information to be verified from the first preview interface, that is, the If multiple users need to enter face information in the first preview interface for identity verification at the same time; if each of the N face information to be verified is the face information of the preset user, the description If multiple preset users complete identity authentication at the same time and place, then the electronic device may continue to run the target application, for example, the electronic device may open the target application or run the next function after the identity authentication is successful. If the above-mentioned N face information to be verified contains face information of a non-preset user, it means that multi-user joint authentication fails, and the electronic device can stop running the target application, ensuring the accuracy and security of multi-user identity authentication , So as to reduce hidden security risks to user privacy and property.
示例性的,上述目标应用可以为游戏应用,在打开游戏时通过进行上述多用户联合身份验证,可确保用户是在其他用户授权的情况下使用游戏应用的,提高对使用游戏应用的用户的监管能力。或者,上述目标应用可以为支付应用,在进行财产交易时通过进行上述多用户联合身份验证,可确保预设的多个用户对本次交易知情并授权,从而提高财产交易时的安全性,降低用户财产受到损失的概率。Exemplarily, the above target application may be a game application. When the game is opened, the above multi-user joint authentication is performed to ensure that the user uses the game application under the authorization of other users, and improve the supervision of users who use the game application. ability. Or, the above target application may be a payment application. By conducting the above-mentioned multi-user joint identity verification when conducting property transactions, it can ensure that the preset multiple users are informed and authorized about the transaction, thereby improving the security of property transactions and reducing The probability of loss of user property.
在一种可能的设计方法中,在电子设备打开该目标应用提供的多用户联合身份验证功能之前,还包括:电子设备提示用户设置进行该多用户联合身份验证时认证用户的用户数目;响应于用户输入的用户数目N,电子设备显示该摄像头捕捉到的第二预览界面,并从第二预览界面中获取N个用户的人脸信息;电子设备将该N个用户作为N个预设用户,建立该目标应用与该N个认证用户的人脸信息之间的对应关系。In a possible design method, before the electronic device opens the multi-user joint authentication function provided by the target application, the method further includes: the electronic device prompts the user to set the number of users who authenticate the user when performing the multi-user joint authentication; responding to The number of users input by the user is N, the electronic device displays the second preview interface captured by the camera, and obtains face information of N users from the second preview interface; the electronic device regards the N users as N preset users, Establish a correspondence between the target application and the face information of the N authenticated users.
在一种可能的设计方法中,在电子设备打开上述目标应用提供的多用户联合身份验证功能之后,还包括:电子设备获取与该目标应用对应的N个预设用户的人脸信息;在电子设备从第一预览界面中获取到N个待验证人脸信息之后,还包括:电子设备通过比对该N个待验证人脸信息与该N个预设用户的人脸信息,确定每个待验证人脸信息均为预设用户的人脸信息。后续,每次在目标应用中进行多用户联合身份验证时,均需要由这N个预设用户一起参与完成多用户联合身份验证,从而提供使用目标应用的多用户在场证明。In a possible design method, after the electronic device opens the multi-user joint authentication function provided by the target application, the method further includes: the electronic device obtains face information of N preset users corresponding to the target application; After the device obtains N pieces of face information to be verified from the first preview interface, the device further includes: the electronic device compares the N pieces of face information to be verified with the face information of the N preset users to determine each face to be verified The verification face information is the face information of the preset user. Subsequently, each time multi-user joint authentication is performed in the target application, the N preset users need to participate in completing the multi-user joint authentication together, thereby providing multi-user presence certification using the target application.
在一种可能的设计方法中,在电子设备从第二预览界面中获取N个认证用户的人脸信息之后,还包括:电子设备记录在第二预览界面中该N个预设用户的人脸信息之间的顺序;在电子设备从第一预览界面中获取到N个待验证人脸信息之后,还包括:电子设备确定第一预览界面中该N个待验证人脸信息之间的顺序,与第二预览界面中该N个预设用户的人脸信息之间的顺序相同。只有当第一预览界面中该N个待验证人脸信息之间的顺序与第二预览界面中该N个预设用户的人脸信息之间的顺序相同时,多用户联合身份验证才能成功通过,提高多用户联合身份验证的准确性。In a possible design method, after the electronic device obtains the face information of N authenticated users from the second preview interface, the method further includes: the electronic device records the face of the N preset users in the second preview interface Sequence between information; after the electronic device obtains the N face information to be verified from the first preview interface, the method further includes: the electronic device determines the order between the N face information to be verified in the first preview interface, The sequence between the face information of the N preset users in the second preview interface is the same. Only when the order between the N face information to be verified in the first preview interface and the face information of the N preset users in the second preview interface are the same, the multi-user joint authentication can be successfully passed To improve the accuracy of multi-user joint identity verification.
在一种可能的设计方法中,电子设备打开上述目标应用提供的多用户联合身份验证功能,包括:电子设备在运行目标应用时自动打开多用户联合身份验证功能;或者,电子设备在运行目标应用时,响应于用户输入打开该多用户联合身份验证功能。In a possible design method, the electronic device opens the multi-user joint authentication function provided by the target application, including: the electronic device automatically turns on the multi-user joint authentication function when the target application is running; or, the electronic device is running the target application At this time, the multi-user federation authentication function is turned on in response to user input.
在一种可能的设计方法中,电子设备打开目标应用提供的多用户联合身份验证功能,包括:电子设备在启动目标应用时打开该多用户联合身份验证功能;或者,电子设备在运行目标应用提供的第一功能时打开多用户联合身份验证功能。In a possible design method, the electronic device turns on the multi-user joint authentication function provided by the target application, including: the electronic device turns on the multi-user joint authentication function when starting the target application; or, the electronic device runs the target application to provide The first function is to turn on the multi-user federation authentication function.
在一种可能的设计方法中,若上述N个待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,则允许电子设备继续运行该目标应用,包括:若该N个待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,则允许电子设备在预设时长内继续运行该目标应用。经过预设时长后,目标应用可再次要求用户进行多用户联合身份验证,避免因用户长时间使用目标应用而沉迷目标应用的情况。In a possible design method, if each of the N face information to be verified is face information of a preset user, the electronic device is allowed to continue to run the target application, including: Each of the N pieces of face information to be verified is face information of a preset user, and the electronic device is allowed to continue to run the target application within a preset duration. After a preset time period, the target application may again require the user to perform multi-user joint authentication to avoid the situation where the user uses the target application for a long time and indulges the target application.
第二方面,本申请提供一种验证用户身份的方法,包括:电子设备检测到用户打开目标应用的第一功能,第一功能为需要N(N为大于1的整数)个用户进行多用户联合身份验证的功能;电子设备显示第一输入界面,并在第一输入界面中提示输入N个用户的身份信息;电子设备从第一输入界面中获取到N个身份信息;电子设备显示摄像头捕捉到的第一预览界面,并提示该N个用户在第一预览界面中输入人脸信息;电子设备从第一预览界面中获取到N个人脸信息,即在第一预览界面中同时获取多个用户的人脸信息进行身份验证;进而,电子设备向服务器发送验证请求,该验证请求中包括该N个身份信息与该N个人脸信息,以使得该服务器对该N个用户进行多用户联合身份验证;若接收到服务器发送的多用户联合身份验证成功的消息,说明上述第一功能已被多个用户授权,则电子设备可执行第一功能。In a second aspect, the present application provides a method for verifying the identity of a user, including: the electronic device detects that the user opens the first function of the target application, and the first function is to require N (N is an integer greater than 1) users for multi-user syndication The function of identity verification; the electronic device displays the first input interface, and prompts to enter the identity information of N users in the first input interface; the electronic device obtains N identity information from the first input interface; the electronic device displays the camera to capture And prompt the N users to enter face information in the first preview interface; the electronic device obtains N personal face information from the first preview interface, that is, multiple users are simultaneously acquired in the first preview interface Face information for identity verification; furthermore, the electronic device sends a verification request to the server, the verification request includes the N identity information and the N personal face information, so that the server performs multi-user joint identity verification for the N users ; If the message of successful multi-user joint authentication sent by the server is received, indicating that the above-mentioned first function has been authorized by multiple users, the electronic device can perform the first function.
如果接收到服务器发送的多用户联合身份验证失败的消息,说明多用户联合身份验证失败,电子设备可拒绝执行第一功能,保证了多用户进行身份认证时的准确性和安全性,从而降低对用户隐私和财产带来的安全隐患。If the multi-user joint authentication failure message sent by the server is received, it means that the multi-user joint authentication fails, and the electronic device can refuse to perform the first function, which ensures the accuracy and security of the multi-user identity authentication, thereby reducing the Hidden dangers caused by user privacy and property.
示例性的,上述目标应用可以为在线签订合同的应用,对参与签订合同的多方进行多用户联合身份验证,以提供多用户的在场证明避免后续的合同纠纷。又例如,上述目标应用可以为在线办理证件或联名账户的业务的应用,对参与办理业务的多方进行多用户联合身份验证,证明参与办理上述业务的多方均在场且对即将办理的业务进行授权,避免其他用户冒名顶替合法用户在场办理相关业务。又例如,上述目标应用可以为在线处理多用户的共有财产(例如夫妻共有财产)的应用,对共有财产的多方所有人进行多用户联合身份验证,以保证共有财产的多方所有人均在场且获知交易内容,从而降低对用户财产带来的安全隐患。Exemplarily, the above target application may be an application to sign a contract online, and perform multi-user joint identity verification on multiple parties participating in the contract to provide a multi-user presence certificate to avoid subsequent contract disputes. For another example, the above target application may be an application for online certificate or joint account business, which performs multi-user joint identity verification on multiple parties involved in the business, proving that multiple parties involved in the above business are present and authorize the forthcoming business. Prevent other users from impersonating legitimate users to handle related business on the spot. For another example, the above target application may be an application that processes multi-user shared property online (such as husband and wife shared property), and performs multi-user joint identity verification on the multi-owner of the shared property to ensure that the multi-owner of the shared property is present and informed of the transaction Content, thereby reducing potential security risks to user property.
在一种可能的设计方法中,在电子设备向服务器发送验证请求之前,还包括:电子设备显示该N个身份信息与该N个人脸信息之间的对应关系,并提示用户确认使用这N个身份信息与N个人脸信息执行第一功能;其中,电子设备向服务器发送验证请求,包括:若检测到用户对上述N个身份信息与N个人脸信息的确认操作,则电子设备向服务器发送该验证请求。In a possible design method, before the electronic device sends the verification request to the server, the method further includes: the electronic device displays the correspondence between the N pieces of identity information and the N personal faces information, and prompts the user to confirm the use of the N pieces The identity information and N personal face information perform the first function; wherein, the electronic device sends a verification request to the server, including: if the user's confirmation operation of the above N identity information and N personal face information is detected, the electronic device sends the verification request to the server Verify the request.
在一种可能的设计方法中,在电子设备检测到用户打开目标应用的第一功能之前,还包括:电子设备获取用户在第二输入界面中输入的身份信息;电子设备获取用户在第二预览界面中输入的人脸信息;电子设备向服务器发送注册请求,该注册请求中包含该用户的身份信息和人脸信息,以使得服务器建立该用户的身份信息和人脸信息之间的对应关系,即完成多用户联合身份验证功能的注册流程。In a possible design method, before the electronic device detects that the user opens the first function of the target application, the method further includes: the electronic device obtains the identity information entered by the user in the second input interface; the electronic device obtains the user in the second preview Face information entered in the interface; the electronic device sends a registration request to the server, the registration request contains the user's identity information and face information, so that the server establishes the correspondence between the user's identity information and face information, That is, the registration process of the multi-user joint authentication function is completed.
第三方面,本申请提供一种验证用户身份的方法,包括:服务器接收电子设备发送的验证请求,该验证请求中包括N个身份信息与N个待验证的人脸信息;服务器获取与这N个身份信息分别对应的N个已注册的人脸信息,服务器中存储有每个注册用户的身份信息与人脸信息的对应关系;服务器确定这N个已注册的人脸信息与N个待验证的人脸信息一一对应;服务器向电子设备发送多用户联合身份验证成功的消息。In a third aspect, the present application provides a method for verifying a user's identity, including: a server receives a verification request sent by an electronic device, the verification request includes N identity information and N face information to be verified; the server obtains the N N pieces of registered face information corresponding to each piece of identity information, and the server stores the correspondence between the identity information and face information of each registered user; the server determines the N pieces of registered face information and N pieces of pending verification There is a one-to-one correspondence of face information; the server sends a message to the electronic device that the multi-user joint authentication is successful.
在一种可能的设计方法中,在服务器接收电子设备发送的验证请求之前,还包括:服务器接收电子设备发送的注册请求,该注册请求中包含用户的身份信息和人脸信息;该服务器建立该用户的身份信息和人脸信息之间的对应关系。In a possible design method, before the server receives the verification request sent by the electronic device, the method further includes: the server receives a registration request sent by the electronic device, and the registration request includes the user's identity information and face information; the server establishes the The correspondence between the user's identity information and face information.
在一种可能的设计方法中,在服务器建立用户的身份信息和人脸信息之间的对应关系之前,还包括:服务器在预设的数据库中查询到该用户的身份信息为正确的身份信息,避免非法用户注册多用户联合身份验证功能。In a possible design method, before the server establishes the correspondence between the user's identity information and face information, the method further includes: the server inquires that the user's identity information is correct identity information in a preset database, Avoid illegal users from registering multi-user joint authentication function.
在一种可能的设计方法中,上述用户的身份信息中包含用户的头像信息;其中,在服务器接收电子设备发送的注册请求之后,还包括:服务器确定该身份信息中的头像信息与该人脸信息对应,从而保证用户上传的人脸信息与身份信息的真实有效性。In a possible design method, the user's identity information includes the user's avatar information; after the server receives the registration request sent by the electronic device, the method further includes: the server determines the avatar information and the face in the identity information The information corresponds to ensure the authenticity of the face information and identity information uploaded by the user.
第四方面,本申请提供一种电子设备,包括:处理单元,用于运行目标应用,并打开该目标应用提供的多用户联合身份验证功能;显示单元,用于显示摄像头捕捉到的第一预览界面,并提示在第一预览界面中输入多个预设用户的人脸信息;获取单元,用于从第一预览界面中获取到N个待验证人脸信息,N为大于1的整数;处理单元,还用于若该N个 待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,则允许电子设备继续运行该目标应用。In a fourth aspect, the present application provides an electronic device, including: a processing unit for running a target application and opening a multi-user federation authentication function provided by the target application; a display unit for displaying a first preview captured by a camera Interface, and prompts to enter face information of multiple preset users in the first preview interface; an obtaining unit is used to obtain N face information to be verified from the first preview interface, N is an integer greater than 1; processing The unit is also used to allow the electronic device to continue to run the target application if each of the N face information to be verified is face information of a preset user.
在一种可能的设计方法中,上述显示单元,还用于提示用户设置进行该多用户联合身份验证时认证用户的用户数目;该显示单元,还用于响应于用户输入的用户数目N,显示该摄像头捕捉到的第二预览界面,并从第二预览界面中获取N个用户的人脸信息;处理单元,还用于将该N个用户作为N个预设用户,建立该目标应用与该N个认证用户的人脸信息之间的对应关系。In a possible design method, the above display unit is also used to prompt the user to set the number of users who authenticate the user when performing the multi-user joint authentication; the display unit is also used to display the number of users N in response to the user input A second preview interface captured by the camera, and acquiring face information of N users from the second preview interface; the processing unit is also used to use the N users as N preset users to establish the target application and the Correspondence between face information of N authenticated users.
在一种可能的设计方法中,上述获取单元,还用于获取与该目标应用对应的N个预设用户的人脸信息;处理单元,还用于通过比对该N个待验证人脸信息与该N个预设用户的人脸信息,确定每个待验证人脸信息均为预设用户的人脸信息。In a possible design method, the above-mentioned obtaining unit is further used to obtain face information of N preset users corresponding to the target application; the processing unit is also used to compare the N face information to be verified With the face information of the N preset users, it is determined that each face information to be verified is the face information of the preset user.
在一种可能的设计方法中,上述处理单元,还用于在存储器中记录在第二预览界面中该N个预设用户的人脸信息之间的顺序;确定第一预览界面中该N个待验证人脸信息之间的顺序,与第二预览界面中该N个预设用户的人脸信息之间的顺序相同。In a possible design method, the above processing unit is further configured to record the order between the face information of the N preset users in the second preview interface in the memory; determine the N number in the first preview interface The order between the face information to be verified is the same as the order between the face information of the N preset users in the second preview interface.
在一种可能的设计方法中,上述处理单元,具体用于在运行该目标应用时自动打开该多用户联合身份验证功能;或者,在运行该目标应用时,响应于用户输入打开该多用户联合身份验证功能。In a possible design method, the above processing unit is specifically configured to automatically turn on the multi-user federation authentication function when running the target application; or, when running the target application, open the multi-user federation in response to user input Identity verification function.
在一种可能的设计方法中,上述处理单元,具体用于在启动该目标应用时打开该多用户联合身份验证功能;或者,在运行该目标应用提供的第一功能时打开该多用户联合身份验证功能。In a possible design method, the above-mentioned processing unit is specifically configured to open the multi-user federation authentication function when starting the target application; or, to open the multi-user federation identity when running the first function provided by the target application Verification function.
在一种可能的设计方法中,若该N个待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,则上述处理单元,具体用于允许电子设备在预设时长内继续运行该目标应用。In a possible design method, if each of the N pieces of face information to be verified is face information of a preset user, the above processing unit is specifically used to allow the electronic device to Continue to run the target application within the set time.
第五方面,本申请提供一种电子设备,包括:获取单元,用于检测用户打开目标应用的第一功能,第一功能为需要N个用户进行多用户联合身份验证的功能,N为大于1的整数;显示单元,用于显示第一输入界面,并在第一输入界面中提示输入N个用户的身份信息;显示摄像头捕捉到的第一预览界面,并提示该N个用户在第一预览界面中输入人脸信息;获取单元,还用于从第一输入界面中获取到N个身份信息;从第一预览界面中获取到N个人脸信息;通信单元,用于向服务器发送验证请求,该验证请求中包括该N个身份信息与该N个人脸信息,以使得该服务器对该N个用户进行多用户联合身份验证;处理单元,用于若接收到该服务器发送的多用户联合身份验证成功的消息,则执行第一功能。In a fifth aspect, the present application provides an electronic device, including: an acquisition unit for detecting a first function for a user to open a target application, the first function is a function that requires N users to perform multi-user joint authentication, and N is greater than 1. An integer; a display unit for displaying the first input interface and prompting for input of identity information of N users in the first input interface; displaying a first preview interface captured by the camera and prompting the N users in the first preview Face information is input in the interface; the obtaining unit is also used to obtain N identity information from the first input interface; N face information is obtained from the first preview interface; the communication unit is used to send a verification request to the server, The verification request includes the N identity information and the N personal face information, so that the server performs multi-user joint identity verification for the N users; the processing unit is used for receiving multi-user joint identity verification sent by the server If the message is successful, the first function is executed.
在一种可能的设计方法中,上述显示单元,还用于显示该N个身份信息与该N个人脸信息之间的对应关系,并提示用户确认使用该N个身份信息与该N个人脸信息执行第一功能;若检测到用户对该N个身份信息与该N个人脸信息的确认操作,则该通信单元向服务器发送该验证请求。In a possible design method, the above display unit is further used to display the correspondence between the N identity information and the N personal face information, and prompt the user to confirm the use of the N identity information and the N personal face information Perform the first function; if a user's confirmation operation of the N identity information and the N personal face information is detected, the communication unit sends the verification request to the server.
在一种可能的设计方法中,上述获取单元,还用于获取用户在第二输入界面中输入的身份信息;获取用户在第二预览界面中输入的人脸信息;该通信单元,还用于向该服务器发送注册请求,该注册请求中包含该用户的身份信息和人脸信息,以使得该服务器建立该用户的身份信息和人脸信息之间的对应关系。In a possible design method, the above-mentioned obtaining unit is further used to obtain the identity information input by the user in the second input interface; obtaining the face information entered by the user in the second preview interface; and the communication unit is also used to Send a registration request to the server, where the registration request contains the user's identity information and face information, so that the server establishes a correspondence between the user's identity information and face information.
第六方面,本申请提供一种服务器,包括:通信单元,用于接收电子设备发送的验证 请求,该验证请求中包括N个身份信息与N个待验证的人脸信息;处理单元,用于获取与该N个身份信息分别对应的N个已注册的人脸信息,该服务器中存储有每个注册用户的身份信息与人脸信息的对应关系;确定该N个已注册的人脸信息与该N个待验证的人脸信息一一对应;通信单元,还用于向电子设备发送多用户联合身份验证成功的消息。In a sixth aspect, the present application provides a server, including: a communication unit for receiving a verification request sent by an electronic device, the verification request including N identity information and N face information to be verified; a processing unit for Obtain N registered face information corresponding to the N pieces of identity information respectively, and the server stores the correspondence between the identity information and face information of each registered user; determine the N registered face information and The N pieces of face information to be verified have a one-to-one correspondence; the communication unit is also used to send a message of successful multi-user joint identity verification to the electronic device.
在一种可能的设计方法中,上述通信单元,还用于接收电子设备发送的注册请求,该注册请求中包含用户的身份信息和人脸信息;上述处理单元,还用于建立该用户的身份信息和人脸信息之间的对应关系。In a possible design method, the above-mentioned communication unit is also used to receive a registration request sent by an electronic device, and the registration request contains the user's identity information and face information; the above-mentioned processing unit is also used to establish the user's identity Correspondence between information and face information.
在一种可能的设计方法中,上述处理单元,还用于在预设的数据库中查询到该用户的身份信息为正确的身份信息。In a possible design method, the above-mentioned processing unit is also used to query the user's identity information in the preset database as the correct identity information.
在一种可能的设计方法中,该用户的身份信息中包含用户的头像信息;上述处理单元,还用于确定该身份信息中的头像信息与该人脸信息对应。In a possible design method, the user's identity information includes the user's avatar information; the above processing unit is also used to determine that the avatar information in the identity information corresponds to the face information.
第七方面,本申请提供一种电子设备,包括处理器,以及与所述处理器均耦合的通信模块、输入设备、输出设备和存储器、以及一个或多个计算机程序;上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述第一方面或第二方面中任一项所述的验证用户身份的方法。In a seventh aspect, the present application provides an electronic device, including a processor, and a communication module, an input device, an output device, and a memory all coupled to the processor, and one or more computer programs; the one or more computers described above The program is stored in the memory, and when the electronic device is running, the processor executes one or more computer programs stored in the memory, so that the electronic device executes the authenticated user described in any one of the first aspect or the second aspect Identity method.
示例性的,所述处理器用于:运行目标应用,并打开所述目标应用提供的多用户联合身份验证功能;所述输出设备用于:显示摄像头捕捉到的第一预览界面,并提示在所述第一预览界面中输入多个预设用户的人脸信息;所述输入设备用于:从所述第一预览界面中获取到N个待验证人脸信息,N为大于1的整数;所述处理器还用于:若所述N个待验证人脸信息中的每个待验证人脸信息均为预设用户的人脸信息,则允许所述电子设备继续运行所述目标应用。Exemplarily, the processor is used to: run the target application and open the multi-user joint authentication function provided by the target application; the output device is to: display the first preview interface captured by the camera, and prompt Input the face information of a plurality of preset users in the first preview interface; the input device is used to obtain N face information to be verified from the first preview interface, and N is an integer greater than 1; The processor is further configured to allow the electronic device to continue to run the target application if each of the N face information to be verified is face information of a preset user.
示例性的,所述输入设备用于:检测用户打开目标应用的第一功能,所述第一功能为需要N个用户进行多用户联合身份验证的功能,N为大于1的整数;所述输出设备用于:所述电子设备显示第一输入界面,并在所述第一输入界面中提示输入N个用户的身份信息;显示摄像头捕捉到的第一预览界面,并提示所述N个用户在所述第一预览界面中输入人脸信息;所述处理器用于:从所述第一输入界面中获取到N个身份信息;从所述第一预览界面中获取到N个人脸信息;指示所述通信模块向服务器发送验证请求,所述验证请求中包括所述N个身份信息与所述N个人脸信息,以使得所述服务器对所述N个用户进行多用户联合身份验证;若接收到所述服务器发送的多用户联合身份验证成功的消息,则执行所述第一功能。Exemplarily, the input device is used to: detect a first function for a user to open a target application, the first function is a function that requires N users to perform multi-user joint authentication, and N is an integer greater than 1; the output The device is used for: the electronic device displays a first input interface, and prompts for input of identity information of N users in the first input interface; displays a first preview interface captured by a camera, and prompts the N users to Input face information in the first preview interface; the processor is used to: obtain N identity information from the first input interface; obtain N face information from the first preview interface; The communication module sends a verification request to the server, where the verification request includes the N identity information and the N face information, so that the server performs multi-user joint identity verification on the N users; if received The message that the multi-user joint authentication succeeded sent by the server performs the first function.
第八方面,本申请提供一种服务器,包括处理器,以及与所述处理器均耦合的通信模块和存储器、以及一个或多个计算机程序;上述一个或多个计算机程序被存储在存储器中,当服务器运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使服务器执行上述第三方面中任一项所述的验证用户身份的方法。In an eighth aspect, the present application provides a server, including a processor, a communication module and a memory coupled with the processor, and one or more computer programs; the one or more computer programs are stored in the memory, When the server is running, the processor executes one or more computer programs stored in the memory, so that the server executes the method for verifying the identity of the user according to any one of the above third aspects.
示例性的,所述通信模块用于:接收电子设备发送的验证请求,所述验证请求中包括N个身份信息与N个待验证的人脸信息;所述处理器用于:获取与所述N个身份信息分别对应的N个已注册的人脸信息,所述存储器中存储有每个注册用户的身份信息与人脸信息的对应关系;确定所述N个已注册的人脸信息与所述N个待验证的人脸信息一一对应;所 述通信模块还用于:向所述电子设备发送多用户联合身份验证成功的消息。Exemplarily, the communication module is used to: receive a verification request sent by an electronic device, where the verification request includes N identity information and N face information to be verified; and the processor is used to: acquire and N pieces of registered face information corresponding to each piece of identity information, and the correspondence between the identity information of each registered user and face information is stored in the memory; determining the N pieces of registered face information and the The N pieces of face information to be verified are in one-to-one correspondence; the communication module is further configured to: send a message of successful multi-user joint identity verification to the electronic device.
第九方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面或第二方面中任一项所述的验证用户身份的方法。In a ninth aspect, the present application provides a computer storage medium, including computer instructions, which when executed on an electronic device, causes the electronic device to perform the verification of the user's identity as described in any one of the first aspect or the second aspect method.
第十方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在服务器上运行时,使得服务器执行如第一三方面中任一项所述的验证用户身份的方法。In a tenth aspect, the present application provides a computer storage medium, including computer instructions, which, when the computer instructions run on the server, cause the server to perform the method for verifying the identity of the user according to any one of the first and third aspects.
第十一方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面或第二方面中任一项所述的验证用户身份的方法。In an eleventh aspect, the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to perform the method for verifying the identity of a user according to any one of the first aspect or the second aspect.
第十二方面,本申请提供一种计算机程序产品,当计算机程序产品在服务器上运行时,使得服务器执行如第三方面中任一项所述的验证用户身份的方法。In a twelfth aspect, the present application provides a computer program product that, when the computer program product runs on a server, causes the server to perform the method for verifying the user's identity as described in any one of the third aspects.
可以理解地,上述提供的第四方面、第五方面以及第七方面所述的电子设备、第六方面和第八方面所述的服务器,第九方面和第十方面所述的计算机存储介质,以及第十一方面和第十二方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Understandably, the electronic devices described in the fourth, fifth, and seventh aspects provided above, the servers described in the sixth, and eighth aspects, and the computer storage media described in the ninth and tenth aspects, And the computer program products described in the eleventh and twelfth aspects are used to perform the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding methods provided above. The beneficial effects will not be repeated here.
图1为本申请实施例提供的一种电子设备的结构示意图一;FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application;
图2为本申请实施例提供的一种电子设备内操作系统的架构图;2 is an architectural diagram of an operating system in an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种验证用户身份的方法的流程示意图一;3 is a first schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application;
图4为本申请实施例提供的一种验证用户身份的方法的场景示意图一;4 is a schematic diagram 1 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图5为本申请实施例提供的一种验证用户身份的方法的场景示意图二;5 is a schematic diagram 2 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图6为本申请实施例提供的一种验证用户身份的方法的场景示意图三;6 is a schematic diagram 3 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图7为本申请实施例提供的一种验证用户身份的方法的场景示意图四;7 is a schematic diagram 4 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图8为本申请实施例提供的一种验证用户身份的方法的场景示意图五;8 is a schematic diagram 5 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图9为本申请实施例提供的一种验证用户身份的方法的场景示意图六;9 is a schematic diagram 6 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图10为本申请实施例提供的一种验证用户身份的方法的流程示意图二;10 is a second schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application;
图11为本申请实施例提供的一种验证用户身份的方法的场景示意图七;11 is a schematic diagram 7 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图12为本申请实施例提供的一种验证用户身份的方法的场景示意图八;12 is a schematic diagram 8 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图13为本申请实施例提供的一种验证用户身份的方法的场景示意图九;13 is a schematic diagram 9 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图14为本申请实施例提供的一种验证用户身份的方法的场景示意图十;14 is a schematic diagram 10 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图15为本申请实施例提供的一种验证用户身份的方法的流程示意图三;15 is a third schematic flowchart of a method for verifying a user's identity provided by an embodiment of this application;
图16为本申请实施例提供的一种验证用户身份的方法的场景示意图十一;16 is a schematic diagram 11 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图17为本申请实施例提供的一种验证用户身份的方法的场景示意图十二;17 is a schematic diagram 12 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图18为本申请实施例提供的一种验证用户身份的方法的场景示意图十三;18 is a schematic diagram 13 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图19为本申请实施例提供的一种验证用户身份的方法的场景示意图十四;19 is a schematic diagram 14 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图20为本申请实施例提供的一种验证用户身份的方法的流程示意图四;20 is a fourth schematic flowchart of a method for verifying a user's identity provided by an embodiment of the present application;
图21为本申请实施例提供的一种验证用户身份的方法的流程示意图五;21 is a schematic flowchart 5 of a method for verifying a user's identity provided by an embodiment of this application;
图22为本申请实施例提供的一种验证用户身份的方法的场景示意图十五;22 is a schematic diagram 15 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图23为本申请实施例提供的一种验证用户身份的方法的场景示意图十六;23 is a schematic diagram 16 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图24为本申请实施例提供的一种验证用户身份的方法的场景示意图十七;24 is a schematic diagram 17 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图25为本申请实施例提供的一种验证用户身份的方法的场景示意图十八;25 is a schematic diagram 18 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图26为本申请实施例提供的一种验证用户身份的方法的场景示意图十九;26 is a schematic diagram 19 of a scenario of a method for verifying a user's identity provided by an embodiment of this application;
图27为本申请实施例提供的一种电子设备的结构示意图二;27 is a second structural diagram of an electronic device according to an embodiment of the present application;
图28为本申请实施例提供的一种电子设备的结构示意图三;28 is a schematic structural diagram 3 of an electronic device according to an embodiment of the present application;
图29为本申请实施例提供的一种服务器的结构示意图一;29 is a schematic structural diagram 1 of a server according to an embodiment of the present application;
图30为本申请实施例提供的一种服务器的结构示意图二。30 is a second structural diagram of a server according to an embodiment of the present application.
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the drawings.
本申请实施例提供的一种验证用户身份的方法可应用于手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等,以下实施例中对电子设备的具体形式不做特殊限制。The method for verifying the user's identity provided by the embodiments of the present application can be applied to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, Personal digital assistants (personal digital assistants, PDAs), wearable electronic devices, virtual reality devices, etc., the specific forms of the electronic devices are not particularly limited in the following embodiments.
图1示出了电子设备100的结构示意图。FIG. 1 shows a schematic structural diagram of an electronic device 100.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。The electronic device 100 may include a
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller can generate the operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetch and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1, the antenna 2, the
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT), 全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 and the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes a display function through a GPU, a
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize a shooting function through an ISP, a
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP processes the data fed back by the
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The
在本申请实施例中,摄像头193可将捕捉到的图像发送给处理器(例如,GPU处理器),由处理器通过一定人脸识别算法提取图像中的一个或多个人脸信息。In the embodiment of the present application, the
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information and can continue to self-learn. The NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, voice recognition, and text understanding.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also known as "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a person's mouth, and input a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是 3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The
其中,传感器模块180具体可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器或骨传导传感器等一项或多项,本申请实施例对此不做任何限制。The sensor module 180 may specifically include a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, or a bone conduction sensor, etc. One or more, this embodiment of the present application does not make any limitation on this.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through a SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 uses eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
上述电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example to exemplarily explain the software structure of the electronic device 100.
图2是本申请实施例的电子设备100的软件结构框图。2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer may include a series of application packages.
应用程序包可以包括相机,图库,日历,通话,地图,导航,蓝牙,音乐,视频,短信息等应用程序。The application package can include applications such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, SMS and so on.
在本申请实施例中,如图2所示,应用程序层中还可以包括需要对多个用户同时进行身份验证的目标应用。In the embodiment of the present application, as shown in FIG. 2, the application layer may further include a target application that needs to authenticate multiple users at the same time.
例如,上述目标应用可以为游戏类应用,当该游戏类应用的用户年龄小于一定年龄(例如13岁)时,在打开该游戏类应用时可同时验证用户和其监护人的身份,从而确保该用户是在监护人的允许或陪同下使用该游戏类应用的。For example, the above target application may be a game application. When the user age of the game application is less than a certain age (for example, 13 years old), when the game application is opened, the identity of the user and its guardian can be verified at the same time, thereby ensuring the user The game application is used with the permission or escort of the guardian.
又例如,上述目标应用可以为支付类应用,当用户使用支付类应用支付大额交易时,该支付类应用可要求参与交易的相关人员一同进行身份认证,从而确保该交易的相关人员对该交易知情。For another example, the above target application may be a payment application. When a user uses a payment application to pay for a large transaction, the payment application may require the relevant personnel involved in the transaction to perform identity authentication together, thereby ensuring that the relevant personnel of the transaction make the transaction Be informed.
又例如,上述目标应用还可以是政府机关发布的在线办理相关业务的应用。比如,车 辆过户时要求旧车主和新车主均在现场办理过户手续,此时可使用该应用验证旧车主和新车主的身份。又比如,办理结婚证时要求男女双方均在现场办理相关手续,此时可使用该应用验证男女双方的身份。又比如,签订合同时要求甲方和乙方均在现场确认合同内容,此时可使用该应用验证甲方和乙方的身份。For another example, the above target application may also be an application issued by a government agency to handle online related services. For example, when transferring a vehicle, both old and new owners are required to go through the transfer procedures on site. At this time, the application can be used to verify the identity of the old and new owners. For another example, when applying for a marriage certificate, both men and women are required to go through the relevant procedures on the spot. At this time, the application can be used to verify the identity of both men and women. As another example, when signing a contract, both Party A and Party B are required to confirm the contract content on site. At this time, the application can be used to verify the identity of Party A and Party B.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface) and programming framework for applications at the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括认证服务,认证服务可向目标应用提供多用户联合身份验证功能。例如,上述目标应用可调用认证服务获取用户的人脸信息进行注册、认证等流程。例如,认证服务可通过驱动调用摄像头等图像传感器采集包含多个用户人脸的人脸信息。并且,认证服务还可计算采集到的人脸信息中包含的人脸数目,对人脸信息进行活体检测等。另外,认证服务还可提取人脸信息中每个人脸的人脸特征,并将提取到的人脸特征与已注册的用户的人脸特征进行对比,从而确定当前进行身份验证的多个用户是否为合法用户。As shown in FIG. 2, the application framework layer may include an authentication service, and the authentication service may provide a multi-user joint authentication function to the target application. For example, the above target application may call an authentication service to obtain user's face information for registration, authentication and other processes. For example, the authentication service may collect image information containing multiple user faces by driving an image sensor such as a camera. In addition, the authentication service can also calculate the number of faces contained in the collected face information, and perform live detection on the face information. In addition, the authentication service can also extract the facial features of each face in the facial information, and compare the extracted facial features with the registered user's facial features to determine whether multiple users currently undergoing identity verification Is a legitimate user.
需要说明的是,上述认证服务可运行在普通执行环境(rich execution environment,REE)中,也可运行在可信执行环境(trusted execution environment,TEE)或安全元件(secure element,SE)等安全性较高的环境中。当然,也可以将上述认证服务的一部分程序运行在REE,将另一部分程序运行在TEE中,本申请实施例对此不做任何限制。It should be noted that the above authentication service can be run in a common execution environment (rich execution environment, REE), or in a trusted execution environment (trusted execution environment, TEE), or a security element (secure element, SE) and other security In a higher environment. Of course, it is also possible to run a part of the program of the above authentication service in REE and another part of the program in TEE, which is not limited in this embodiment of the present application.
另外,应用程序框架层还可以包括绘图服务(例如surfaceflinger),窗口管理器,内容提供器,电话管理器,资源管理器,通知管理器等。In addition, the application framework layer may also include drawing services (such as surfaceflinger), window managers, content providers, phone managers, resource managers, notification managers, and so on.
其中,绘图服务可用于构建应用程序的显示页面。显示页面可以由一个或多个视图组成的。例如,包括短信通知图标的显示页面,可以包括显示文字的视图以及显示图片的视图。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。Among them, the drawing service can be used to build the display page of the application. The display page can be composed of one or more views. For example, a display page that includes an SMS notification icon may include a view that displays text and a view that displays pictures. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, intercept the screen, etc. Content providers are used to store and retrieve data, and make these data accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connection, hang up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloading, message reminders, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, the text message is displayed in the status bar, a prompt sound is emitted, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one part is the function function that Java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library may include multiple functional modules. For example: surface manager (surface manager), media library (Media library), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports a variety of commonly used audio, video format playback and recording, and still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等,本申请实施例对此不做任何限制。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, etc. The embodiment of the present application does not make any limitation on this.
示例性的,在电子设备100中的目标应用需要对多个用户同时进行身份验证之前,需要进行身份验证的每个用户均需要在电子设备100中注册自己的身份信息和人脸信息。Exemplarily, before the target application in the electronic device 100 needs to simultaneously authenticate multiple users, each user who needs to be authenticated needs to register their own identity information and face information in the electronic device 100.
以手机作为电子设备100举例,使用该手机的用户可以是家中的一个或多个家庭成员。为了方便后续各个用户使用手机中目标应用提供的多用户联合身份验证功能,家中的各个成员都可以通过下述步骤S301-S305在手机中注册自己的身份信息和人脸信息。如图3所示,步骤S301-S305具体包括:Taking a mobile phone as an example of the electronic device 100, a user using the mobile phone may be one or more family members in the family. In order to facilitate subsequent users to use the multi-user joint authentication function provided by the target application in the mobile phone, each member of the family can register their own identity information and face information in the mobile phone through the following steps S301-S305. As shown in FIG. 3, steps S301-S305 specifically include:
S301、手机提示用户输入身份信息。S301. The mobile phone prompts the user to input identity information.
示例性的,手机可在用户安装或初次使用目标应用时提示用户输入身份信息。以目标应用为游戏APP举例,如图4中的(a)所示,用户在手机中打开游戏APP的注册功能后,手机可显示注册界面401。在注册界面401中,设置有注册用户的姓名、年龄、性别、手机号码以及身份证号码等身份信息的填写选项,以提示用户在注册界面401中输入相应的身份信息。Exemplarily, the mobile phone may prompt the user to input identity information when the user installs or uses the target application for the first time. Taking the target application as an example of a game APP, as shown in (a) of FIG. 4, after the user opens the registration function of the game APP in the mobile phone, the mobile phone can display the
或者,用户输入的身份信息也可以不直接与目标应用关联。例如,手机可以在系统设置中提供多用户联合身份验证的功能。当检测到用户首次打开该功能时,如图4中的(b)所示,手机可显示注册界面402。与上述注册界面401类似的,注册界面402中也可以设置注册用户的姓名、年龄、性别、手机号码以及身份证号码等一项或多项身份信息的填写选项,本申请实施例对此不做任何限制。Or, the identity information input by the user may not be directly associated with the target application. For example, a mobile phone can provide multi-user federation authentication in the system settings. When it is detected that the user opens the function for the first time, as shown in (b) in FIG. 4, the mobile phone may display the
S302、响应于用户A的输入操作,手机获取用户A的身份信息。S302. In response to user A's input operation, the mobile phone obtains user A's identity information.
以上述注册界面402举例,如图5所示,希望注册的用户(例如用户A)可以在注册界面402的相应填写选项中输入自己的姓名、年龄、性别、手机号码以及身份证号码等身份信息。如果检测到用户点击注册界面401中下一步的按钮403,则手机可将此时注册界面401中用户输入的身份信息作为用户A的身份信息保存在本地。Taking the
S303、手机提示用户输入人脸信息。S303. The mobile phone prompts the user to input face information.
示例性的,检测到用户点击上述下一步的按钮403后,手机可调用其摄像头(例如前置摄像头)获取当前捕捉到的预览界面,并通过预设的人脸检测算法检测预览界面中是否存在人脸信息。如图6所示,手机可显示在预览界面601中显示摄像头捕捉到的内容,例如,手机可在预览界面601的预设区域602内显示摄像头捕捉到的内容。手机可提示用户调整人脸在预览界面601中的位置,使手机可以在预览界面601的预设区域602中检测到用户的人脸。Exemplarily, after detecting that the user clicks the
S304、手机使用摄像头获取用户A输入的人脸信息。S304. The mobile phone uses the camera to obtain the face information input by user A.
如图7所示,当用户A将其面部完全放入预览界面601的预设区域602后,手机可识 别出预设区域602内的人脸信息,并将识别出的人脸信息保存在本地。示例性的,手机在预设区域602内检测到人脸后,可根据预设区域602内的图像信息提取相应的人脸特征。例如,提取出的人脸特征可以是一个特征矩阵,手机可将提取到的特征矩阵保存在本地。As shown in FIG. 7, after user A completely puts his face in the
获取到用户A的人脸信息后,仍如图7所示,手机还可以显示人脸信息录入成功的提示701。后续手机可使用用户A注册时录入的人脸信息对用户A的用户身份进行鉴权。另外,获取到用户A的人脸信息后,仍如图7所示,手机还可以显示返回按钮702和下一步按钮703。如果检测到用户点击返回按钮702,则手机可删除本次获取到的人脸信息,并返回上述预览界面601重新捕捉和检测人脸信息。如果检测到用户点击返回按钮703,则说明用户确认使用本次录入的人脸信息作为后续进行身份验证的依据,此时手机可继续执行步骤S305。After the face information of user A is obtained, as shown in FIG. 7, the mobile phone may also display a prompt 701 of successful entry of face information. Subsequent mobile phones can use the face information entered when user A registers to authenticate user A's user identity. In addition, after acquiring the face information of user A, as shown in FIG. 7, the mobile phone may also display a return button 702 and a next button 703. If it is detected that the user clicks the return button 702, the mobile phone may delete the face information obtained this time, and return to the
当然,如果手机在预设时间内没有在预设区域602内识别出人脸信息,或多次检测到用户录入的人脸信息不完整,则手机可显示注册失败的提示信息,并退出注册流程。Of course, if the mobile phone does not recognize face information in the
S305、手机建立用户A的身份信息与人脸信息的对应关系,并提示用户A注册成功。S305. The mobile phone establishes a correspondence between user A's identity information and face information, and prompts user A to register successfully.
在步骤S305中,如图8所示,手机可将步骤S302和S304中分别获取到的用户A的身份信息和人脸信息显示在触摸屏中,并且提示用户进行确认。如果检测到用户点击确认按钮801,说明用户同意将本次输入的身份信息与人脸信息绑定,则手机可在预设的数据库中建立用户A的身份信息与人脸信息的对应关系。例如,可以预先在手机中设置人脸特征库和身份信息库,手机可将获取到的用户A的人脸信息保存在人脸特征库中,并且生成该人脸信息的人脸特征索引。进而,手机可将用户A的人脸特征索引与用户A的身份信息之间的对应关系存储在身份信息库中。这样,后续在进行用户身份验证时,手机根据用户输入的身份信息可在身份信息库中查找到与该身份信息对应的人脸特征索引,进而根据该人脸特征索引可在人脸特征库中查找到对应的人脸信息。当然,如果检测到用户点击图8中所示的返回按钮802,则手机可返回至上一级菜单使得用户可以对已输入的身份信息与或人脸信息进行修改,本申请实施例对此不做任何限制。In step S305, as shown in FIG. 8, the mobile phone may display the identity information and face information of user A obtained in steps S302 and S304 on the touch screen, respectively, and prompt the user to confirm. If it is detected that the user clicks the
另外,检测到用户点击确认按钮801后,如图9所示,手机还可以在显示屏中显示用户A注册成功的消息901。并且,手机还可以显示添加其它注册用户的选项902。如果检测到用户点击选项902,则手机可继续执行上述步骤S301-S305注册可以使用多用户联合身份验证功能的其他用户(例如用户B和用户C等)。In addition, after detecting that the user clicks the
这样,不同用户通过上述步骤S301-S305可以在手机中完成多用户联合身份验证功能的注册过程。每个注册用户都会在手机中建立自己的身份信息与人脸信息之间的对应关系。后续,当手机需要同时对多个用户进行身份验证以提供多个用户的在场证明时,手机可对采集到的同一图像中出现的多个人脸信息分别进行身份验证。当同一图像中出现的多个人脸信息均为已注册用户的人脸信息时,手机可确定多用户联合身份验证通过,说明这多个用户在同一时间和地点下完成了身份认证,保证了多用户进行身份认证时的准确性和安全性。In this way, different users can complete the registration process of the multi-user joint identity verification function in the mobile phone through the above steps S301-S305. Each registered user will establish a correspondence between their identity information and face information in the mobile phone. Subsequently, when the mobile phone needs to simultaneously authenticate multiple users to provide proof of the presence of multiple users, the mobile phone can separately authenticate multiple face information appearing in the same image collected. When multiple face information appearing in the same image are the face information of the registered user, the mobile phone can determine that the multi-user joint identity verification is passed, indicating that the multiple users have completed identity authentication at the same time and place, which ensures The accuracy and security of users when they are authenticated.
当多个用户分别在上述手机中注册了多用户联合身份验证功能后,在使用该多用户联合身份验证功能之前,用户可以通过下述步骤S1001-S1006在目标应用中启用该多用户联合身份验证功能。当然,如果用户不需要在目标应用(例如上述游戏APP)中使用该多用户联合身份验证功能,例如,家长在使用游戏APP时不需要其监护人陪同时,用户可跳过 下述步骤S1001-S1006打开游戏APP。After multiple users have registered the multi-user joint authentication function in the above mobile phones, before using the multi-user joint authentication function, the user can enable the multi-user joint authentication in the target application through the following steps S1001-S1006 Features. Of course, if the user does not need to use the multi-user joint authentication function in the target application (for example, the above-mentioned game APP), for example, parents do not need their guardian to accompany while using the game APP, the user can skip the following steps S1001-S1006 Open the game APP.
示例性的,如图10所示,步骤S1001-S1006具体包括:Exemplarily, as shown in FIG. 10, steps S1001-S1006 specifically include:
S1001、检测到用户在目标应用中启用多用户联合身份验证功能后,手机提示用户选择多用户联合身份验证时的用户数目。S1001. After detecting that the user enables the multi-user joint authentication function in the target application, the mobile phone prompts the user to select the number of users when the multi-user joint authentication is performed.
以游戏APP为目标应用举例,如图11中的(a)所示,手机检测到用户打开游戏APP时,如果游戏APP中的多用户联合身份验证功能未启用,则手机可显示启用多用户联合身份验证功能的启用按钮1101。检测到用户点击启用按钮1101后,说明后续用户在打开游戏APP时希望开启多用户联合身份验证功能证明用户是在其他人的陪同下使用游戏APP的,此时,如图11中的(b)所示,手机可提示用户输入后续参与多用户联合身份验证的用户数目。Taking the game APP as an example of the target application, as shown in (a) of FIG. 11, when the mobile phone detects that the user opens the game APP, if the multi-user federation authentication function in the game APP is not enabled, the mobile phone may display that multi-user federation is enabled
在一些实施例中,手机也可以自动为用户在目标应用中启用多用户联合身份验证功能。例如,检测到用户打开游戏APP时,手机可以自动开启前置摄像头采集使用游戏APP的用户图像。如果通过该用户图像确定出使用游戏APP的用户的年龄较小(例如小于10岁),则手机可自动启用多用户联合身份验证功能,并提示用户选择多用户联合身份验证时的用户数目。In some embodiments, the mobile phone can also automatically enable the multi-user federation authentication function in the target application for the user. For example, when it is detected that the user opens the game APP, the mobile phone can automatically turn on the front camera to collect the user image using the game APP. If the user image determines that the user who uses the game APP is younger (for example, less than 10 years old), the mobile phone can automatically enable the multi-user federation authentication function and prompt the user to select the number of users in the multi-user federation authentication.
S1002、当上述用户数目为N(N>1)时,手机提示在预览界面中输入N个人脸信息。S1002. When the number of users is N (N>1), the mobile phone prompts to enter N personal face information in the preview interface.
示例性的,如果用户选择多用户联合身份验证时的用户数目为2人,则手机检测到用户选择2人的选项后,如图12所示,手机可调用其摄像头(例如前置摄像头)获取当前捕捉到的预览界面1201并显示该预览界面1201。并且,手机还可以在预览界面1201中提示用户在预览界面1201的指定位置输入用户1和用户2的人脸信息。Exemplarily, if the number of users when the user selects multi-user joint authentication is 2, the mobile phone detects that the user selects the option of 2 people, as shown in FIG. 12, the mobile phone can call its camera (for example, the front camera) to obtain The currently captured
例如,用户选择联合身份验证时的用户数目为2人时,手机可根据该用户数目在预览界面1201中标记出两个区域,即图12中所示的区域1202和区域1203。这两个区域分别用于采集用户1和用户2的人脸信息。这样,参与多用户联合身份验证的用户A和用户B可根据预览界面1201中的提示调整自己在预览界面1201中的位置,使手机可以在预览界面1201的区域1202中检测到用户1(例如用户A)的人脸信息,并在预览界面1201的区域1202中检测到用户2(例如用户B)的人脸信息。For example, when the user selects two users for joint authentication, the mobile phone may mark two areas in the
S1003、手机从预览界面中获取到N个人脸信息。S1003. The mobile phone obtains N personal face information from the preview interface.
S1004、手机确定上述N个人脸信息均为注册用户的人脸信息。S1004. The mobile phone determines that the above-mentioned N personal face information are all face information of the registered user.
如图13所示,手机在预览界面1201的区域1202和区域1203中均检测到人脸信息后,可以确定出此时的人脸个数与用户设置的用户数目(即2个)相同,那么,手机可逐一判断区域1202和区域1203中的人脸信息是否为已经注册的注册用户的人脸信息。如果采集到的人脸信息的个数与用户设置的用户数目不同,则手机可提示用户在预览界面1201中输入的人脸个数不正确,并返回至预览界面1201重新采集预览界面1201中的人脸信息。As shown in FIG. 13, after the mobile phone detects face information in both the
示例性的,手机可将从区域1202中提取出的人脸信息与人脸特征库中已注册的用户A、用户B以及用户C的人脸信息进行匹配。如果区域1202中的人脸信息与用户A的人脸信息匹配,说明区域1202中捕捉到的人脸为用户A的人脸,则手机可根据用户A的人脸特征索引在身份信息库中查找到用户A的身份信息。Exemplarily, the mobile phone may match the face information extracted from the
类似的,手机可将从区域1203中提取出的人脸信息与人脸特征库中已注册的用户A、用户B以及用户C的人脸信息进行匹配。如果区域1203中的人脸信息与用户B的人脸信 息匹配,说明区域1203中捕捉到的人脸为用户B的人脸,则手机可根据用户B的人脸特征索引在身份信息库中查找到用户B的身份信息。这样,手机可以确定出在预览界面1201中采集到的2个人脸信息均为注册用户的人脸信息。Similarly, the mobile phone can match the face information extracted from the
另外,如果手机确定出本次采集到的一个或多个人脸信息不是注册用户的人脸信息,则手机可显示注册按钮,以提示未注册的用户在手机中注册身份信息和人脸信息。如果检测到用户点击该注册按钮,则手机可通过上述步骤S301-S305注册新用户的身份信息和人脸信息。In addition, if the mobile phone determines that the one or more facial information collected this time is not the registered user's facial information, the mobile phone may display a registration button to prompt the unregistered user to register the identity information and the facial information in the mobile phone. If it is detected that the user clicks the registration button, the mobile phone can register the identity information and face information of the new user through the above steps S301-S305.
在本申请的一些实施例中,手机从上述区域1202和区域1203中检测到人脸信息后,还可以对区域1202和区域1203中的人脸信息进行活体检测,即确认手机捕捉到的人脸图像属于真实的活体用户,而不是使用图片或视频等伪造的人脸信息。例如,手机可使用温度传感器检测区域1202和区域1203中的温度分布是否符合人脸表面温度分布,若符合人脸表面温度分布,则可认为通过活体检测。又例如,手机还可以要求用户眨眼、张嘴或朗读一段文字来识别区域1202和区域1203中的用户是否为活体用户,本申请实施例对此不做任何限制。In some embodiments of the present application, after the mobile phone detects face information from the above-mentioned
S1005、手机提示用户确认上述N个人脸信息与对应的N个身份信息之间的对应关系。S1005. The mobile phone prompts the user to confirm the correspondence between the N personal face information and the corresponding N identity information.
S1006、若检测到用户的确认操作,则手机建立目标应用、上述N个人脸信息以及上述N个身份信息之间的对应关系。S1006. If the user's confirmation operation is detected, the mobile phone establishes a correspondence between the target application, the N personal face information, and the N identity information.
示例性的,手机确定出上述区域1202和区域1203中的人脸信息分别为注册用户A和注册用户B的人脸信息后,如图14所示,手机可将用户A的人脸信息和身份信息以及用户B的人脸信息和身份信息显示在触摸屏中提示用户确认。如果检测到用户点击确认按钮1401,说明用户同意在后续运行游戏APP时由用户A和用户B进行多用户联合身份验证。那么,手机可建立游戏APP、用户A的人脸信息和身份信息以及用户B的人脸信息和身份信息之间的对应关系。Exemplarily, after the mobile phone determines that the face information in the
示例性的,手机内可预先存储如表1所示的认证登记表,该认证登记表用于记录每个启用多用户联合身份验证功能的应用与对应的多个预设用户之间的对应关系。本申请实施例可将应用对应的多个预设用户称为该应用的认证用户。例如,游戏APP的认证用户包括用户A和和用户B。如果检测到用户点击图14中所示的确认按钮1401,手机可将游戏APP的ID(例如应用的包名)与认证用户(即用户A和用户B)的相关信息(例如身份信息和人脸信息)记录在认证登记表中。这样,后续检测到用户打开该游戏APP时,手机可通过表1所示的认证登记表判断出当前进行认证的用户是否为认证登记表中记录的认证用户。Exemplarily, the authentication registration table shown in Table 1 may be pre-stored in the mobile phone, and the authentication registration table is used to record the correspondence between each application that enables the multi-user joint authentication function and the corresponding multiple preset users . In this embodiment of the present application, multiple preset users corresponding to an application may be referred to as an authenticated user of the application. For example, the authenticated users of the game APP include user A and user B. If it is detected that the user clicks the
表1Table 1
需要说明的是,在手机的目标应用中启用多用户联合身份验证功能的过程(即上述S1001-S1006)只需用户在目标应用中完成一次即可。也就是说,用户通过上述S1001-S1006将用户A和用户B设置为目标应用中完成多用户联合身份验证功能的认证用户后,后续每 次在目标应用中进行多用户联合身份验证时,均需要由用户A和用户B一起参与完成多用户联合身份验证,从而提供使用目标应用的多用户在场证明。It should be noted that the process of enabling the multi-user joint authentication function in the target application of the mobile phone (that is, the above S1001-S1006) only needs to be completed once by the user in the target application. That is to say, after the user sets user A and user B through the above S1001-S1006 as the authenticated users who have completed the multi-user joint authentication function in the target application, each subsequent multi-user joint authentication in the target application requires User A and user B participate in the multi-user joint authentication to provide multi-user presence certification using the target application.
当然,用户也可以通过上述步骤S1001-S1006更换目标应用中进行多用户联合身份验证的认证用户。例如,通过启用多用户联合身份验证功能可以将认证用户从用户A和用户B修改为用户A和用户C,本申请实施例对此不做任何限制。Of course, the user can also replace the authenticated user who performs multi-user joint identity verification in the target application through the above steps S1001-S1006. For example, by enabling the multi-user joint identity verification function, the authenticated user can be modified from user A and user B to user A and user C, and this embodiment of the present application does not make any limitation on this.
用户在目标应用中通过启用多用户联合身份验证功能将用户A和用户B设置为认证用户后,如果检测到用户在目标应用中打开了多用户联合身份验证功能,则手机可执行下述步骤S1501-S1505进行多用户联合身份验证。示例性的,如图15所示,步骤S1501-S1505具体包括:After the user sets the user A and the user B as the authenticated users by enabling the multi-user joint authentication function in the target application, if it is detected that the user has turned on the multi-user joint authentication function in the target application, the mobile phone can perform the following step S1501 -S1505 performs multi-user joint authentication. Exemplarily, as shown in FIG. 15, steps S1501-S1505 specifically include:
S1501、检测到用户在目标应用中打开多用户联合身份验证功能后,手机确定与目标应用对应的认证用户。S1501: After detecting that the user opens the multi-user joint authentication function in the target application, the mobile phone determines the authenticated user corresponding to the target application.
仍以上述游戏APP为目标应用举例,手机可以在进入游戏APP时显示进行多用户联合身份验证的验证按钮,或者,也可以在进入游戏APP的某个功能时显示该验证按钮。如图16所示,检测到用户打开游戏APP后,如果用户已经在目标应用中启用多用户联合身份验证功能(即上述S1001-S1006),则手机可显示验证按钮1601提示用户进行多用户联合身份验证。Taking the above-mentioned game APP as an example of target application, the mobile phone may display a verification button for multi-user joint authentication when entering the game APP, or may display the verification button when entering a certain function of the game APP. As shown in FIG. 16, after detecting that the user opens the game APP, if the user has enabled the multi-user joint authentication function in the target application (that is, the above S1001-S1006), the mobile phone may display a
在一些实施例中,手机也可以在一些场景下自动打开多用户联合身份验证功能。例如,检测到用户打开游戏APP后,手机可以要求用户输入用户年龄,如果用户年龄较小(例如小于10岁),则手机可自动打开游戏APP中的多用户联合身份验证功能。或者,用户还可以将手机设置为儿童模式,如果检测到用户打开游戏APP时手机处于儿童模式,则手机可自动打开游戏APP中的多用户联合身份验证功能。又或者,手机还可以监测游戏APP的运行时长,当游戏APP在手机中的运行时长大于预设时间(例如2个小时)时,手机可自动打开游戏APP中的多用户联合身份验证功能。In some embodiments, the mobile phone can also automatically turn on the multi-user federation authentication function in some scenarios. For example, after detecting that the user opens the game APP, the mobile phone may request the user to enter the user's age. If the user is younger (for example, less than 10 years old), the mobile phone may automatically open the multi-user joint authentication function in the game APP. Alternatively, the user can also set the phone to a child mode. If it is detected that the phone is in the child mode when the user opens the game app, the phone can automatically turn on the multi-user joint authentication function in the game app. Or, the mobile phone can also monitor the running duration of the game APP. When the running duration of the game APP in the mobile phone is greater than a preset time (for example, 2 hours), the mobile phone can automatically open the multi-user joint authentication function in the game APP.
手机打开游戏APP的多用户联合身份验证功能后,手机可根据游戏APP的ID在表1所示的认证登记表中获取与游戏APP对应的认证用户的相关信息。例如,与游戏APP对应的认证用户包括用户A和用户B。那么,手机在身份信息库中可以根据用户A的身份信息获取到对应的人脸特征索引,进而,手机在人脸特征库中根据用户A的人脸特征索引可获取到用户A的人脸信息。同样,手机在身份信息库中可以根据用户B的身份信息获取到对应的人脸特征索引,进而,手机在人脸特征库中根据用户B的人脸特征索引可获取到用户B的人脸信息。After the mobile phone opens the multi-user joint identity verification function of the game APP, the mobile phone can obtain the relevant information of the authenticated user corresponding to the game APP in the authentication registration table shown in Table 1 according to the ID of the game APP. For example, the authenticated users corresponding to the game APP include user A and user B. Then, the mobile phone can obtain the corresponding facial feature index according to the user A's identity information in the identity information database, and then, the mobile phone can obtain the user A's face information according to the user A's facial feature index in the facial feature database . Similarly, the mobile phone can obtain the corresponding facial feature index according to the user B's identity information in the identity information database. Furthermore, the mobile phone can obtain the user B's facial information according to the user B's facial feature index in the facial feature database .
S1502、手机提示用户在预览界面中输入N(N>1)个认证用户的人脸信息。S1502. The mobile phone prompts the user to input face information of N (N>1) authenticated users in the preview interface.
手机确定出与游戏APP对应的认证用户为用户A和用户B后,如图17所示,手机可调用其摄像头(例如前置摄像头)获取当前捕捉到的预览界面1701并显示该预览界面1701。并且,由于手机已经确定出游戏APP与2个认证用户对应,因此,仍如图17所示,手机可在预览界面1701中标记出两个区域(即区域1702和区域1703),以提示用户在这两个区域中分别输入每个认证用户的人脸信息。After the mobile phone determines that the authenticated users corresponding to the game APP are user A and user B, as shown in FIG. 17, the mobile phone can call its camera (for example, the front camera) to obtain the currently captured
进一步地,手机还可以提示用户按照启用多用户联合身份验证功能时多个认证用户的位置关系在预览界面1701中输入人脸信息,后续手机还可以根据预览界面1701中各个人脸信息的位置关系确定多用户联合身份验证是否通过。例如,在启用多用户联合身份验证 功能时用户A的人脸信息在预览界面的左侧,用户B的人脸信息在预览界面的右侧。那么,在实际进行多用户联合身份验证时,用户A需要将其人脸信息录入在预览界面的左侧(即区域1702中),且用户B需要将其人脸信息录入在预览界面的右侧(即区域1703中),否则手机可确定本次多用户联合身份验证不通过。Further, the mobile phone can also prompt the user to enter face information in the
S1503、手机从预览界面中获取到N个人脸信息。S1503. The mobile phone obtains N personal face information from the preview interface.
S1504、手机确定上述N个人脸信息均为认证用户的人脸信息。S1504. The mobile phone determines that the above N personal face information are all face information of the authenticated user.
如果手机在上述预览界面1701的区域1702和区域1703中分别提取到人脸信息,手机可以确定当前进行身份验证的人数与认证用户的个数相同,那么,手机可逐一判断区域1702和区域1703中的人脸信息是否为认证用户(即用户A和用户B)的人脸信息。If the mobile phone extracts face information in the
示例性的,上述区域1702对应的认证用户为用户A,那么,手机可将区域1702中采集到的人脸信息与用户A的人脸信息进行对比。当区域1702中的人脸信息与用户A的人脸信息之间的相似度大于预设值时,可确定区域1702中的人脸信息为已认证的用户A的人脸信息。Exemplarily, the authenticated user corresponding to the above-mentioned
同样,上述区域1703对应的认证用户为用户B,那么,手机可将区域1703中采集到的人脸信息与用户B的人脸信息进行对比。当区域1703中的人脸信息与用户B的人脸信息之间的相似度大于预设值时,可确定区域1703中的人脸信息为已认证的用户B的人脸信息。这样,手机可以确定出在预览界面1701中采集到的2个人脸信息是用户在步骤S1001-S1006中预先设置的2个认证用户的人脸信息,且预览界面1701中这2个人脸信息的位置关系也符合用户在步骤S1001-S1006中设置的位置关系。Similarly, the authenticated user corresponding to the
S1505、手机显示多用户联合身份验证成功的消息,并继续运行目标应用。S1505. The mobile phone displays a message that the multi-user joint authentication is successful, and continues to run the target application.
如图18中的(a)所示,如果手机在本次多用户联合身份验证过程中采集到的N个人脸信息与游戏APP的N个认证用户的人脸信息一一对应,则手机可显示多用户联合身份验证成功的消息1801。当然,多用户联合身份验证成功后,说明用户具有使用游戏APP的权限,则手机可继续运行目标应用(即游戏APP),例如,手机可自动打开游戏APP进入游戏APP的首页。As shown in (a) of FIG. 18, if the N personal face information collected by the mobile phone in this multi-user joint authentication process corresponds to the facial information of the N authenticated users of the game APP, the mobile phone can display A
或者,如果手机确定在本次多用户联合身份验证过程中采集到的一个或多个人脸信息不是认证用户的人脸信息,则如图18中的(b)所示,手机可显示多用户联合身份验证失败的消息。此时,用户不具有使用游戏APP的权限,手机无法进入游戏APP的首页继续运行游戏APP。Or, if the mobile phone determines that one or more face information collected during the multi-user joint authentication process is not the face information of the authenticated user, as shown in (b) in FIG. 18, the mobile phone may display the multi-user joint Authentication failed message. At this time, the user does not have permission to use the game APP, and the mobile phone cannot enter the home page of the game APP to continue to run the game APP.
进一步地,多用户联合身份验证成功后,手机还可以设置多用户联合身份验证成功的有效时间。以有效时间为2个小时举例,用户在游戏APP中通过多用户联合身份验证后,手机可允许用户使用2个小时的游戏APP。那么,如果2个小时后手机检测到游戏APP仍在前台运行,则手机可提示用户再次进行多用户联合身份验证。也就是说,当游戏APP的运行时间超过上述有效时间后,手机可重复执行上述步骤S1501-S1505进行多用户联合身份验证,避免使用游戏APP的用户沉迷于游戏。Further, after the multi-user joint authentication is successful, the mobile phone can also set the effective time for the multi-user joint authentication to succeed. Taking the effective time as 2 hours for example, after the user passes the multi-user joint authentication in the game APP, the mobile phone can allow the user to use the game APP for 2 hours. Then, if the mobile phone detects that the game APP is still running in the foreground after 2 hours, the mobile phone may prompt the user to perform multi-user joint authentication again. That is to say, when the running time of the game APP exceeds the above-mentioned effective time, the mobile phone may repeatedly perform the above steps S1501-S1505 to perform multi-user joint authentication, so as to avoid users who use the game APP from indulging in games.
另外,上述实施例中是以游戏APP为目标APP举例说明的,可以理解的是,手机还可以在其他应用中设置多用户联合身份验证功能对多个用户的身份同时进行验证,从而在实现手机中的某一功能时提供多用户的在场证明。例如,上述目标APP还可以为支付APP。如果用户通过上述步骤S1001-S1006将支付APP中进行多用户联合身份验证功能的认证用 户设置为用户B和用户C。那么,如图19所示,当手机检测到支付APP中的交易数额超过预设额度(例如2万)时,手机可提示输入用户B和用户C的人脸信息进行多用户联合身份验证。如果用户B和用户C在支付APP中通过了多用户联合身份验证,说明与该支付APP绑定的认证用户(即用户B和用户C)已经对本次大额交易知情并授权,则手机可继续完成本次大额交易,从而提高财产交易时的安全性,降低用户财产受到损失的概率。In addition, in the above embodiment, the game APP is taken as an example to illustrate. It can be understood that the mobile phone can also set up a multi-user joint authentication function in other applications to verify the identities of multiple users at the same time, thereby realizing the mobile phone Provide a multi-user presence proof for a certain function in For example, the aforementioned target APP may also be a payment APP. If the user sets the authentication users who perform the multi-user joint authentication function in the payment APP to the user B and the user C through the above steps S1001-S1006. Then, as shown in FIG. 19, when the mobile phone detects that the transaction amount in the payment APP exceeds a preset amount (for example, 20,000), the mobile phone may prompt to input face information of user B and user C for multi-user joint authentication. If user B and user C have passed the multi-user joint identity verification in the payment app, it means that the authenticated users (ie, user B and user C) bound to the payment app have been informed and authorized about this large transaction, then the mobile phone can Continue to complete this large transaction, so as to improve the security of property transactions and reduce the probability of loss of user property.
也就是说,如果在打开目标应用时开启了多用户联合身份验证,则当多用户联合身份验证后,手机可继续运行目标应用是指手机可打开该目标应用进入目标应用的显示界面;如果在运行目标应用的某一功能(例如上述支付功能)时开启了多用户联合身份验证,则当多用户联合身份验证后,手机可继续运行目标应用是手机可继续执行该功能。In other words, if the multi-user federation authentication is turned on when the target application is opened, after the multi-user federation authentication, the mobile phone can continue to run the target application means that the mobile phone can open the target application to enter the display interface of the target application; When a certain function of the target application (such as the above-mentioned payment function) is enabled, multi-user federation authentication is turned on. After the multi-user federation authentication, the mobile phone can continue to run the target application because the mobile phone can continue to execute the function.
需要说明的是,上述实施例中是以在手机本地注册、启用并实现多用户联合身份验证功能举例说明的。可以理解的是,手机还可以通过与服务器交互完成多用户联合身份验证功能的注册和验证过程。It should be noted that, in the foregoing embodiments, the local registration, activation, and implementation of the multi-user joint authentication function on the mobile phone are used as examples. It can be understood that the mobile phone can also complete the registration and verification process of the multi-user joint authentication function by interacting with the server.
示例性的,与上述步骤S301-S305类似的,在使用目标应用提供的多用户联合身份验证功能之前,手机可通过下述步骤S2001-S2008在服务器中注册用户的身份信息和人脸信息。如图20所示,步骤S2001-S2008具体包括:Exemplarily, similar to the above steps S301-S305, before using the multi-user joint authentication function provided by the target application, the mobile phone may register the user's identity information and face information in the server through the following steps S2001-S2008. As shown in FIG. 20, steps S2001-S2008 specifically include:
S2001、手机提示用户输入身份信息。S2001, the mobile phone prompts the user to input identity information.
S2002、响应于用户A的输入操作,手机获取用户A的身份信息。S2002. In response to user A's input operation, the mobile phone obtains user A's identity information.
S2003、手机提示用户输入人脸信息。S2003, the mobile phone prompts the user to input face information.
S2004、手机使用摄像头获取用户A输入的人脸信息。S2004. The mobile phone uses the camera to obtain the face information input by user A.
其中,步骤S2001-S2004的实现过程与上述实施例中步骤S301-S304的实现过程相同,故此处不再赘述。Wherein, the implementation process of steps S2001-S2004 is the same as the implementation process of steps S301-S304 in the above embodiment, so it will not be repeated here.
S2005、手机向服务器发送注册请求,注册请求中包括用户A的身份信息和人脸信息。S2005. The mobile phone sends a registration request to the server. The registration request includes user A's identity information and face information.
手机获取到用户A的人脸信息和身份信息后,可将该人脸信息和身份信息加密后携带在注册请求中发送给服务器,由服务器执行下述步骤S2006-S2008完成用户A的注册流程。After obtaining the face information and identity information of user A, the mobile phone may encrypt the face information and identity information and carry it in the registration request to the server, and the server performs the following steps S2006-S2008 to complete the registration process of user A.
S2006、服务器确定用户A的身份信息为有效身份信息。S2006. The server determines that the identity information of user A is valid identity information.
服务器接收到用户A的身份信息和人脸信息后,可以先在服务器内查找是否存储有与接收到的身份信息相同的身份信息,或与接收到的人脸信息相同的人脸信息。如果没有查找到,则说明此时发来的用户A的身份信息和人脸信息并没有在服务器中注册过。After receiving the identity information and face information of user A, the server may first search in the server whether the same identity information as the received identity information or the same face information as the received face information is stored. If it is not found, it means that the identity information and face information of user A sent at this time have not been registered in the server.
那么,服务器可通过公安部或其他权威的身份数据库核实用户A的身份信息是否为真实有效的身份信息。例如,手机发来的用户A的身份信息中包含用户A的姓名和身份证号。服务器可请求上述身份数据库查询是否有与用户A的姓名和身份证号匹配的用户。如果能够在身份数据库中查找到与用户A的姓名和身份证号匹配的用户,则说明用户A在手机中输入的身份信息为真实的有效身份信息。否则,说明用户A在手机中输入的身份信息有误,服务器可向手机发送注册失败的注册结果。Then, the server can verify whether the identity information of user A is real and valid identity information through the Ministry of Public Security or other authoritative identity database. For example, the identity information of user A sent from the mobile phone contains the name and ID number of user A. The server may request the above-mentioned identity database to query whether there is a user matching the name and ID number of user A. If a user who matches the name and ID number of user A can be found in the identity database, it means that the identity information entered by user A in the mobile phone is real and valid identity information. Otherwise, it means that the identity information entered by user A in the mobile phone is wrong, and the server can send the registration result of the failed registration to the mobile phone.
在本申请的一些实施例中,手机发来的用户A的身份信息中可能包含用户A的人脸信息。例如,手机在提示用户输入身份信息时可以要求用户输入身份证的照片,用户身份证中一般都印有用户的头像。此时,手机采集到的身份信息即为用户A的身份证上的信息,该信息中也包含了用户A的人脸信息。那么,在服务器向身份数据库核实用户A的身份信息之前,服务器可将用户A的身份信息中的人脸信息与手机本次采集到的人脸信息进行比 对。如果这两个人脸信息的相似度大于阈值,则说明用户A上传的身份信息和人脸信息是对应的。进而,服务器可向身份数据库核实用户A的身份信息是否为有效身份信息,从而保证用户A上传的人脸信息与身份信息的真实有效性。In some embodiments of the present application, the identity information of user A sent from the mobile phone may include the face information of user A. For example, when a mobile phone prompts the user to enter identification information, the user may be required to enter a photo of an ID card, and the user's ID card is generally printed with the user's avatar. At this time, the identity information collected by the mobile phone is the information on the ID card of user A, and the face information of user A is also included in the information. Then, before the server verifies the identity information of user A with the identity database, the server can compare the face information in the identity information of user A with the face information collected by the mobile phone this time. If the similarity of the face information of the two persons is greater than the threshold, it means that the identity information and face information uploaded by user A correspond. Furthermore, the server can verify whether the identity information of user A is valid identity information from the identity database, thereby ensuring the authenticity of the face information and identity information uploaded by user A.
S2007、服务器建立用户A的身份信息与人脸信息之间的对应关系。S2007. The server establishes the correspondence between the identity information of user A and the face information.
如果确定出用户A在手机中输入的身份信息为有效身份信息,则服务器可将用户A的身份信息和人脸信息存储在服务器中,并建立用户A的身份信息与人脸信息之间的对应关系。通过上述注册方法,服务器中可以存储多个用户的身份信息与人脸信息之间的对应关系。后续,服务器可根据用户的身份信息查找到对应的人脸信息,进而可根据该人脸信息对用户身份进行验证。If it is determined that the identity information entered by user A in the mobile phone is valid identity information, the server may store the identity information and face information of user A in the server, and establish a correspondence between the identity information of user A and the face information relationship. Through the above registration method, the server can store the correspondence between the identity information and face information of multiple users. Subsequently, the server can find the corresponding face information according to the user's identity information, and then can verify the user's identity based on the face information.
S2008、服务器向手机发送用户A注册成功的注册结果,以使得手机显示该注册结果。S2008. The server sends the registration result of the successful registration of user A to the mobile phone, so that the mobile phone displays the registration result.
服务器建立了用户A的身份信息与人脸信息之间的对应关系之后,表示用户A已经在服务器中完成注册,此时,服务器可向手机发送用户A注册成功的注册结果。手机接收到该注册结果后,可显示注册成功的消息提示用户注册成功。After the server establishes the correspondence between user A's identity information and face information, it indicates that user A has completed registration in the server. At this time, the server can send the registration result of user A's successful registration to the mobile phone. After receiving the registration result, the mobile phone may display a successful registration message to prompt the user that the registration is successful.
与上述步骤S301-S305不同的是,由于用户的身份信息和人脸信息都保存在服务器中。因此,需要注册的各个用户可使用不同的手机通过上述步骤S2001-S2008完成注册流程。例如,用户B可通过自己的手机在上述服务器中注册用户B的身份信息和人脸信息;用户C也可通过自己的手机在上述服务器中注册用户C的身份信息和人脸信息。The difference from the above steps S301-S305 is that the user's identity information and face information are both stored in the server. Therefore, each user who needs to register can use a different mobile phone to complete the registration process through the above steps S2001-S2008. For example, user B can register user B's identity information and face information in the server through his mobile phone; user C can also register user C's identity information and face information in the server through his mobile phone.
后续,当手机中的目标应用需要同时对多个用户进行身份验证以提供多个用户的在场证明时,手机可采集同时包含多个人脸信息的图像发送给服务器。由服务器根据注册用户的人脸信息对此时采集到的多个人脸信息进行多用户联合身份验证。如果多用户联合身份验证通过,说明这多个用户在同一时间和地点下完成了身份认证,保证了多用户进行身份认证时的准确性和安全性。Later, when the target application in the mobile phone needs to simultaneously authenticate multiple users to provide proof of the presence of multiple users, the mobile phone can collect images containing multiple face information and send them to the server. The server performs multi-user joint identity verification on the multiple face information collected at this time according to the face information of the registered user. If the multi-user joint identity verification is passed, it means that the multiple users have completed the identity authentication at the same time and place, which ensures the accuracy and security of the multi-user identity authentication.
参与多用户联合身份验证的多个用户分别通过手机在服务器中成功注册了自己的身份信息和人脸信息后,如果检测到有用户在目标应用中打开了多用户联合身份验证功能,则手机可执行下述步骤S2101-S2108进行多用户联合身份验证。示例性的,如图21所示,步骤S2101-S2108具体包括:After multiple users participating in multi-user joint authentication successfully register their own identity information and face information in the server through the mobile phone, if it is detected that a user has turned on the multi-user joint authentication function in the target application, the mobile phone can Perform the following steps S2101-S2108 to perform multi-user federation authentication. Exemplarily, as shown in FIG. 21, steps S2101-S2108 specifically include:
S2101、检测到用户在目标应用中打开多用户联合身份验证功能后,手机提示参与多用户联合身份验证功能的M(M>1)个用户分别输入身份信息。S2101: After detecting that the user opens the multi-user joint authentication function in the target application, the mobile phone prompts M (M>1) users participating in the multi-user joint authentication function to input identity information respectively.
S2102、手机获取M个用户分别输入的M个身份信息。S2102. The mobile phone obtains M pieces of identity information respectively input by M users.
本申请实施例中可在目标应用中设置多用户联合身份验证功能。例如,当目标应用为游戏APP时,可在打开游戏APP时进行多用户联合身份验证。又例如,当目标应用为支付APP时,可在进行大额交易时进行多用户联合身份验证。又例如,当目标应用为在线办理证件的相关应用时,可在办理证件时对证件相关的多个用户进行多用户联合身份验证。In the embodiment of the present application, a multi-user joint authentication function may be set in the target application. For example, when the target application is a game APP, multi-user joint authentication can be performed when the game APP is opened. For another example, when the target application is a payment APP, multi-user joint identity verification can be performed when conducting large-value transactions. For another example, when the target application is a related application for online certificate processing, multi-user joint identity verification can be performed on multiple users related to the certificate when processing the certificate.
以目标应用为车辆管理APP举例,车辆管理APP为用户提供了在线办理车辆过户手续的功能。如图22所示,车辆管理APP的首页中显示有过户按钮2201。如果检测到用户点击过户按钮2201,则说明用户(例如用户A)希望将自己名下的车辆过户给其他用户(例如用户B)。此时,车辆管理APP需要对参与车辆过户手续的两位用户进行多用户联合身份验证,以确保参与车辆过户手续的两位用户对本次过户手续没有争议。Taking the target application as an example of a vehicle management APP, the vehicle management APP provides users with the function of handling vehicle transfer procedures online. As shown in FIG. 22, a
因此,如果检测到用户点击过户按钮2201,表示用户在车辆管理APP中打开了多用 户联合身份验证功能。此时,如图23中的(a)所示,手机可跳转至车辆管理APP的输入界面2301中,在输入界面2301中手机可提示车辆过户前的车主(即旧车主)输入自己的身份信息。用户A作为旧车主在输入界面2301中输入了自己的身份信息后,可点击确定按钮2302提交自己的身份信息。如果检测到用户点击了下一步按钮2302,手机可获取输入界面2301中用户A输入的身份信息。Therefore, if it is detected that the user clicks the
另外,检测到用户在输入界面2301中点击了确定按钮2302后,如图23中的(b)所示,手机可跳转至车辆管理APP的输入界面2303中,在输入界面2303中手机可提示车辆过户后的车主(即新车主)输入自己的身份信息。用户B作为旧车主在输入界面2303中输入了自己的身份信息后,可点击下一步按钮2304提交自己的身份信息。如果检测到用户点击了输入界面2303中的下一步按钮2304,手机可获取输入界面2303中用户B输入的身份信息。In addition, after detecting that the user clicks the
上述实施例中是以手机获取用户A和用户B这两个用户的身份信息举例说明的,在不同的应用场景下,参与多用户联合身份验证功能的用户数目可以不同。例如,在目标应用中在线签订三方协议时,手机需要获取三个用户的身份信息。In the above embodiment, the mobile phone obtains the identity information of the two users A and B as an example. In different application scenarios, the number of users participating in the multi-user joint identity verification function may be different. For example, when signing a three-party agreement online in the target application, the mobile phone needs to obtain the identity information of the three users.
S2103、手机提示参与多用户联合身份验证功能的M个用户在同一预览界面中输入人脸信息。S2103. The mobile phone prompts M users participating in the multi-user joint authentication function to input face information in the same preview interface.
仍以上述车辆管理APP为目标应用举例,手机获取到新车主(用户A)和旧车主(用户B)这两个用户的身份信息后,如图24所示,手机可调用其摄像头(例如前置摄像头)获取当前捕捉到的预览界面2401并显示该预览界面2401。并且,手机可在预览界面2401中标记出新车主人脸信息的输入区域2402以及旧车主人脸信息的输入区域2403,从而提示用户A和用户B在预览界面2401中输入自己的人脸信息。Still taking the above vehicle management APP as an example of the target application, after the mobile phone obtains the identity information of the two users, the new car owner (user A) and the old car owner (user B), as shown in FIG. 24, the mobile phone can call its camera (for example, the front Set the camera) Obtain the currently captured preview interface 2401 and display the preview interface 2401. Moreover, the mobile phone can mark the
S2104、手机从预览界面中获取到M个待验证的人脸信息。S2104. The mobile phone obtains M pieces of face information to be verified from the preview interface.
手机显示出上述预览界面2401后便可实时的检测输入区域2402和输入区域2403中是否存在人脸。当检测到输入区域2402和输入区域2403中出现人脸后,手机可提取输入区域2402中的人脸信息和输入区域2403中的人脸信息。这两个人脸信息均为后续进行多用户联合身份验证时等待验证的人脸信息。After the mobile phone displays the preview interface 2401, it can detect whether there is a human face in the
也就是说,当需要对多个用户进行身份验证时,本申请实施例提供的验证方法可采集这多个用户在同一预览界面中的人脸信息,从而确保这多个用户在同一时间和场景下对某一信息(例如上述过户手续)知情并确认。这样的验证方法提供了多用户的在场证明,可降低多用户参与的交易中因信息不对等而带来的安全隐患。That is to say, when identity verification is required for multiple users, the verification method provided in this embodiment of the present application can collect face information of the multiple users in the same preview interface, thereby ensuring that the multiple users are in the same time and scene Understand and confirm a certain information (such as the above transfer procedures). This verification method provides multi-user presence verification, which can reduce the security risks caused by unequal information in transactions involving multiple users.
S2105、手机向服务器发送验证请求,验证请求中包括上述M个身份信息和M个待验证的人脸信息。S2105. The mobile phone sends a verification request to the server, where the verification request includes the M identity information and M face information to be verified.
手机获取到新车主(用户A)和旧车主(用户B)的身份信息以及用户A和用户B待验证的人脸信息后,手机可使用与服务器约定好的加密方式对这些身份信息和人脸信息进行加密。进而,手机可将加密后的M个身份信息和M个待验证的人脸信息携带在验证请求中发送给服务器,避免手机与服务器在交互过程中发生信息泄漏的安全隐患。After the mobile phone obtains the identity information of the new owner (user A) and the old owner (user B) and the face information to be verified by user A and user B, the phone can use the encryption method agreed with the server to encrypt the identity information and face The information is encrypted. Furthermore, the mobile phone can carry the encrypted M pieces of identity information and M pieces of face information to be verified in the verification request and send it to the server, so as to avoid the security risk of information leakage during the interaction between the phone and the server.
在一些实施例中,如图25所示,手机在向服务器发送验证请求前,可先将采集到的新车主和旧车主的身份信息和人脸信息显示给用户,由用户确认是否使用本次采集到的身份信息和人脸信息进行车辆过户。如果检测到用户点击如图25所示的确认按钮2401,则 手机可向服务器发送上述验证请求。In some embodiments, as shown in FIG. 25, before sending a verification request to the server, the mobile phone may display the collected identity information and face information of the new and old car owners to the user, and the user confirms whether to use this time The collected identity information and face information are used for vehicle transfer. If it is detected that the user clicks the confirmation button 2401 as shown in FIG. 25, the mobile phone may send the above verification request to the server.
示例性的,检测到用户点击上述确认按钮2401后,手机可将采集到的人脸信息和经用户确认过的车辆过户这一操作内容,通过杂凑算法等密码算法,生成本次验证请求的摘要。进而,手机可将加密的上述操作内容、身份信息、人脸信息和摘要均携带在验证请求中发送给服务器。Exemplarily, after detecting that the user clicks the above confirmation button 2401, the mobile phone can generate the summary of the verification request by using the cryptographic algorithm such as the hash algorithm and the collected face information and the operation content of the vehicle transfer confirmed by the user . Furthermore, the mobile phone can carry the encrypted operation content, identity information, face information and abstract in the verification request and send it to the server.
S2106、服务器根据M个身份信息分别查找到对应的M个已注册的人脸信息。S2106. The server finds corresponding M pieces of registered face information according to the M pieces of identity information.
S2107、服务器确定上述M个已注册的人脸信息与上述M个待验证的人脸信息一一对应。S2107. The server determines that the M pieces of registered face information correspond to the M pieces of face information to be verified.
在步骤S2106中,服务器接收到手机发送的验证请求后,如果验证请求被加密,服务器可使用相应的解密算法可对该验证请求进行解密,得到验证请求中携带的身份信息和待验证的人脸信息。In step S2106, after the server receives the verification request sent by the mobile phone, if the verification request is encrypted, the server can decrypt the verification request using the corresponding decryption algorithm to obtain the identity information carried in the verification request and the face to be verified information.
示例性的,服务器可使用相应的解密算法解密得到本次验证请求中携带的操作内容、身份信息、人脸信息和摘要。进而,服务器可通过摘要验证接收到的人脸信息和操作内容的完整性,以确保服务器收到的信息没有被篡改且用户对于此次认证所对应的操作内容(即车辆过户操作)是知情的。避免攻击者截获用户的人脸信息后,在用户不知情的情况下用于其他操作的认证申请。Exemplarily, the server may use the corresponding decryption algorithm to decrypt the operation content, identity information, face information, and digest carried in the verification request. Furthermore, the server can verify the integrity of the received face information and operation content through a summary to ensure that the information received by the server has not been tampered with and the user is informed about the operation content (ie, vehicle transfer operation) corresponding to this authentication . To prevent the attacker from intercepting the user's face information, it can be used for authentication applications for other operations without the user's knowledge.
服务器得到验证请求中的M个身份信息后,可进一步确定本次进行多用户联合身份验证的多个用户是否均为在服务器中已经注册的注册用户。由于每个用户在注册时均在服务器中保存了自己的身份信息和对应的人脸信息,因此,服务器可查找本地是否保存有本次接收到的用户A的身份信息和用户B的身份信息。如果保存有用户A和用户B的身份信息,则说明本次请求进行多用户身份验证的用户A和用户B均为注册用户。那么,手机可查找到与用户A的身份信息对应的人脸信息以及与用户B的身份信息对应的人脸信息,即已注册的人脸信息。After the server obtains the M identity information in the authentication request, it can further determine whether the multiple users performing multi-user joint authentication this time are all registered users who have been registered in the server. Since each user stores his own identity information and corresponding face information in the server during registration, the server can find whether the identity information of user A and user B received this time are stored locally. If the identity information of user A and user B is saved, it means that both user A and user B requesting multi-user identity verification this time are registered users. Then, the mobile phone can find the face information corresponding to the identity information of user A and the face information corresponding to the identity information of user B, that is, the registered face information.
在步骤S2107中,手机获取到与用户A的身份信息对应的已注册的人脸信息后,手机可对比该已注册的人脸信息与验证请求中用户A录入的待验证的人脸信息。如果二者的相似度大于阈值,则说明本次参与多用户联合身份验证的用户A的身份验证成功。In step S2107, after the mobile phone obtains the registered face information corresponding to the user A's identity information, the mobile phone can compare the registered face information with the face information to be verified entered by the user A in the verification request. If the similarity between the two is greater than the threshold, it means that the authentication of User A participating in the multi-user joint authentication is successful.
同样,手机获取到与用户B的身份信息对应的已注册的人脸信息后,手机可对比该已注册的人脸信息与验证请求中用户B录入的待验证的人脸信息。如果二者的相似度大于阈值,则说明本次参与多用户联合身份验证的用户B的身份验证成功。如果用户A和用户B的身份验证均成功,则可确定本次多用户联合身份验证成功。通过本次多用户联合身份验证可提供用户A和用户B的在场证明,从而确保参与车辆过户的用户A和用户B在同一时间和场景下对过户手续进行了授权和确认,避免其他用户冒充用户A或用户B完成过户手续给用户带来财产损失。Similarly, after the mobile phone obtains the registered face information corresponding to the identity information of the user B, the mobile phone can compare the registered face information with the face information to be verified entered by the user B in the verification request. If the similarity between the two is greater than the threshold, it means that the authentication of User B participating in the multi-user joint authentication is successful. If the authentication of both user A and user B is successful, it can be determined that this multi-user joint authentication is successful. Through this multi-user joint identity verification, user A and user B can be provided with proof of presence, so as to ensure that user A and user B participating in the vehicle transfer have authorized and confirmed the transfer process at the same time and in the scenario to avoid other users posing as users A or user B completes the transfer procedure and brings property damage to the user.
S2108、服务器向手机发送多用户联合身份验证成功的消息。S2108. The server sends a message that the multi-user joint authentication is successful to the mobile phone.
用户A和用户B的身份验证均成功后,服务器可向手机发送多用户联合身份验证成功的消息。此时,如图26所示,手机可显示多用户联合身份验证成功的消息。并且,手机还可以自动跳转至车辆过户手续的下一操作界面(例如在线选号界面)中,使得用户可继续完成车辆过户的其他手续。After the identity verification of both user A and user B is successful, the server can send a message that the multi-user joint authentication is successful to the mobile phone. At this time, as shown in FIG. 26, the mobile phone may display a message that multi-user joint authentication is successful. In addition, the mobile phone can also automatically jump to the next operation interface (such as an online number selection interface) of the vehicle transfer procedure, so that the user can continue to complete other procedures of the vehicle transfer procedure.
另外,如果本次参与多用户联合身份验证的用户A和/或用户B的身份验证失败,则 服务器可确定本次多用户联合身份验证失败。那么,服务器可向手机发送多用户联合身份验证失败的消息。手机也可显示多用户联合身份验证失败的消息。此时,手机无法跳转至车辆过户手续的下一操作界面中,避免不法用户冒名顶替合法用户进行车辆过户损害用户的财产安全。In addition, if the authentication of User A and/or User B participating in the multi-user federation authentication fails this time, the server may determine that the multi-user federation authentication fails this time. Then, the server can send a message to the mobile phone that multi-user federation failed. The mobile phone can also display a message that multi-user federation failed. At this time, the mobile phone cannot jump to the next operation interface of the vehicle transfer procedure, so as to prevent the illegal user from impersonating the legitimate user to transfer the vehicle and damage the user's property security.
需要说明的是,上述实施例中是以车辆管理APP作为目标应用举例说明的。可以理解的是,本申请实施例提供的身份验证方法还可以应用在其他需要对多个用户身份同时验证的场景下。例如,在使用在线签订合同的应用时,可使用上述身份验证方法对参与签订合同的多方进行多用户联合身份验证,以提供多用户的在场证明避免后续的合同纠纷。又例如,在线办理结婚证或联名账户的业务时,可使用上述身份验证方法对参与办理业务的多方进行多用户联合身份验证,证明参与办理上述业务的多方均在场且对即将办理的业务进行授权,避免其他用户冒名顶替合法用户在场办理相关业务。又例如,在线处理多用户的共有财产(例如夫妻共有财产)时,可使用上述身份验证方法对共有财产的多方所有人进行多用户联合身份验证,以保证共有财产的多方所有人均在场且获知交易内容,从而降低对用户财产带来的安全隐患。It should be noted that, in the above embodiments, the vehicle management APP is taken as an example for the target application. It can be understood that the identity verification method provided by the embodiments of the present application can also be applied to other scenarios where the identities of multiple users need to be verified simultaneously. For example, when using an online contract signing application, the above-mentioned identity verification method can be used to perform multi-user joint identity verification on multiple parties participating in the contract signing, so as to provide a multi-user presence certificate to avoid subsequent contract disputes. For another example, when handling the business of marriage certificate or joint account online, the above-mentioned identity verification method can be used to perform multi-user joint identity verification on multiple parties participating in the business, proving that all parties involved in the above-mentioned business are present and authorizing the forthcoming business , To avoid other users impersonating legitimate users to handle related business on the spot. For another example, when dealing with the common property of multiple users online (for example, the common property of husband and wife), the above-mentioned identity verification method can be used to perform multi-user joint identity verification on the multi-owner of the common property to ensure that the multi-owner of the common property is present and informed of the transaction Content, thereby reducing potential security risks to user property.
在一些实施例中,图27示出了上述实施例中所涉及的电子设备的一种可能的结构示意图,该电子设备包括:获取单元2701、处理单元2702、显示单元2703以及通信单元2704。In some embodiments, FIG. 27 shows a possible structural schematic diagram of the electronic device involved in the foregoing embodiment. The electronic device includes: an acquisition unit 2701, a processing unit 2702, a display unit 2703, and a communication unit 2704.
获取单元2701用于支持电子设备执行图3中的过程S302和S304,以及图10中的过程S1003,以及图15中的过程S1503,以及图20中的过程S2002和S2004,以及图21中的过程S2102和S2104;处理单元2702用于支持电子设备执行图3中的过程S305,以及图10中的过程S1004-S1006,以及图15中的过程S1504-S1505;显示单元2703用于支持电子设备执行图3中的过程S301和S303,以及图10中的过程S1001-S1002,以及图15中的过程S1501、S1502和S1505,以及图20中的过程S2001和S2003,以及图21中的过程S2101和S2103;通信单元2704用于支持电子设备执行图20中的过程S2005和S2008,以及图21中的过程S2105和S2108。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。The obtaining unit 2701 is used to support the electronic device to perform the processes S302 and S304 in FIG. 3, and the process S1003 in FIG. 10, and the process S1503 in FIG. 15, and the processes S2002 and S2004 in FIG. 20, and the process in FIG. 21. S2102 and S2104; the processing unit 2702 is used to support the electronic device to execute the process S305 in FIG. 3, and the processes S1004-S1006 in FIG. 10, and the processes S1504-S1505 in FIG. 15; the display unit 2703 is used to support the electronic device execution diagram Processes S301 and S303 in 3, and processes S1001-S1002 in FIG. 10, and processes S1501, S1502 and S1505 in FIG. 15, and processes S2001 and S2003 in FIG. 20, and processes S2101 and S2103 in FIG. 21; The communication unit 2704 is used to support the electronic device to perform the processes S2005 and S2008 in FIG. 20 and the processes S2105 and S2108 in FIG. 21. Wherein, all relevant content of each step involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here.
在另一些实施例中,图28示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备包括处理器2801、存储器2802、输入设备2803、输出设备2804以及通信模块2805。处理器2801、存储器2802、输入设备2803、输出设备2804以及通信模块2805的数量可以是一个或者多个(图28中以数量为一个举例),它们之间可通过总线2806进行通信。In other embodiments, FIG. 28 shows a possible structural schematic diagram of the electronic device involved in the foregoing embodiments. The electronic device includes a processor 2801, a memory 2802, an input device 2803, an output device 2804, and a communication module 2805. The number of the processor 2801, the memory 2802, the input device 2803, the output device 2804, and the communication module 2805 can be one or more (the number is taken as an example in FIG. 28), and they can communicate through the
其中,处理器2801具体可以为图1所示的处理器110。处理器2801可用于对电子设备的动作进行控制管理。例如,处理器2801可以是中央处理器(Central Processing Unit,CPU),GPU,通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 2801 may specifically be the
存储器2802具体可以为图1所示的内部存储器121和外部存储器120。存储器2802 可以包括高速随机存取存储器(RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。The memory 2802 may specifically be the internal memory 121 and the external memory 120 shown in FIG. 1. The memory 2802 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入设备2803可以是图1所示的麦克风170C或传感器模块180中的触摸传感器等接收用户输入的信息的设备。The input device 2803 may be a device that receives information input by a user, such as the microphone 170C or the touch sensor in the sensor module 180 shown in FIG. 1.
输出设备2804可以为显示器等用于显示由用户输入的信息、提供给用户的信息以及电子设备的各种菜单的设备,具体可以采用液晶显示器、有机发光二极管等形式来配置显示器。例如,输出设备2804体可以为图1所示的扬声器170A或显示屏194。另外,显示屏194上还可以集成触摸传感器,用于采集在其上或附近的触摸事件,并将采集到的触摸信息发送给其他器件(例如处理器等)。The output device 2804 may be a device such as a display for displaying information input by the user, information provided to the user, and various menus of the electronic device. Specifically, the display may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. For example, the output device 2804 may be the
通信模块2805可以是收发器、收发电路或通信接口等。例如,蓝牙装置、Wi-Fi装置、外设接口等。示例性的,通信模块2805具体可以为图1所示的射频模块150、通信模块160等。The communication module 2805 may be a transceiver, a transceiver circuit, or a communication interface. For example, Bluetooth devices, Wi-Fi devices, peripheral interfaces, etc. Exemplarily, the communication module 2805 may specifically be the
在一些实施例中,图29示出了上述实施例中所涉及的服务器的一种可能的结构示意图,该服务器包括:通信单元2901、处理单元2902以及确定单元2903。In some embodiments, FIG. 29 shows a possible structural schematic diagram of the server involved in the foregoing embodiments. The server includes: a communication unit 2901, a processing unit 2902, and a determination unit 2903.
通信单元2901用于支持服务器执行图20中的过程S2005和S2008,以及图21中的过程S2105和S2108;处理单元2902用于支持服务器执行图20中的过程S2007,以及图21中的过程S2106;确定单元2903用于支持服务器执行图20中的过程S2006,以及图21中的过程S2107。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。The communication unit 2901 is used to support the server to execute the processes S2005 and S2008 in FIG. 20, and the processes S2105 and S2108 in FIG. 21; the processing unit 2902 is used to support the server to execute the process S2007 in FIG. 20, and the process S2106 in FIG. 21; The determining unit 2903 is used to support the server to perform the process S2006 in FIG. 20 and the process S2107 in FIG. 21. Wherein, all relevant content of each step involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here.
在另一些实施例中,图30示出了上述实施例中所涉及的服务器的一种可能的结构示意图。该服务器包括处理器3001、存储器3002以及通信模块3003。处理器3001、存储器3002以及通信模块3003的数量可以是一个或者多个(图28中以数量为一个举例),它们之间可通过总线3004进行通信。In other embodiments, FIG. 30 shows a possible structural diagram of the server involved in the above embodiments. The server includes a processor 3001, a memory 3002, and a communication module 3003. The number of the processor 3001, the memory 3002, and the communication module 3003 may be one or more (the number is taken as an example in FIG. 28), and they can communicate through the
其中,处理器3001可用于对电子设备的动作进行控制管理。例如,处理器3001可以是中央处理器(Central Processing Unit,CPU),GPU,通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 3001 can be used to control and manage the actions of the electronic device. For example, the processor 3001 may be a central processor (Central Processing Unit, CPU), GPU, general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), on-site Programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of DSP and microprocessor, and so on.
存储器3002用于保存服务器的程序代码和数据。例如,存储器3002可以包括高速随机存取存储器(RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。The memory 3002 is used to store program codes and data of the server. For example, the memory 3002 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
通信模块3003用于支持服务器与其他网络实体的通信。例如,通信模块3003可以是收发器、收发电路或通信接口等。The communication module 3003 is used to support communication between the server and other network entities. For example, the communication module 3003 may be a transceiver, a transceiver circuit, a communication interface, or the like.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以 上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed Completed by different functional modules, that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. For the specific working processes of the system, device and unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The functional units in the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application may essentially be part of or contribute to the existing technology or all or part of the technical solutions may be embodied in the form of software products, and the computer software products are stored in a storage The medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above is only the specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited to this, any changes or replacements within the technical scope disclosed in the embodiments of the present application should be covered in this Within the scope of protection of the application examples. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.
Claims (30)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2018/122765 WO2020124579A1 (en) | 2018-12-21 | 2018-12-21 | Method for verifying user identity, and electronic device |
| CN201880094835.4A CN112313661A (en) | 2018-12-21 | 2018-12-21 | Method for verifying user identity and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2018/122765 WO2020124579A1 (en) | 2018-12-21 | 2018-12-21 | Method for verifying user identity, and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020124579A1 true WO2020124579A1 (en) | 2020-06-25 |
Family
ID=71102482
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/122765 Ceased WO2020124579A1 (en) | 2018-12-21 | 2018-12-21 | Method for verifying user identity, and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112313661A (en) |
| WO (1) | WO2020124579A1 (en) |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20220046011A1 (en) * | 2020-08-05 | 2022-02-10 | Bank Of America Corporation | Application for confirming multi-person authentication |
| CN114119034A (en) * | 2021-11-24 | 2022-03-01 | 中国银行股份有限公司 | Authentication method and device |
| CN114153838A (en) * | 2021-10-29 | 2022-03-08 | 北京优炫软件股份有限公司 | Encryption storage and query method for member information |
| CN114201057A (en) * | 2020-09-17 | 2022-03-18 | 华为技术有限公司 | Method, medium, and electronic device for managing input method |
| CN114611090A (en) * | 2022-03-10 | 2022-06-10 | 平安普惠企业管理有限公司 | Identity verification method and device based on browser, medium and equipment |
| CN114915486A (en) * | 2022-06-02 | 2022-08-16 | 北京天融信网络安全技术有限公司 | Identity authentication method, device, system, electronic equipment and medium |
| CN115204829A (en) * | 2022-07-12 | 2022-10-18 | 渤海银行股份有限公司 | Contract processing method, system, device and storage medium for double face recognition |
| CN115238259A (en) * | 2021-04-22 | 2022-10-25 | 华为技术有限公司 | Equipment authentication method and related device |
| CN115550415A (en) * | 2022-02-28 | 2022-12-30 | 荣耀终端有限公司 | Device connection method and electronic device |
| CN116634362A (en) * | 2020-08-05 | 2023-08-22 | 华为技术有限公司 | An automatic control method, electronic device and computer-readable storage medium |
| CN116702100A (en) * | 2022-10-21 | 2023-09-05 | 荣耀终端有限公司 | Rights management method and electronic device |
| CN116935479A (en) * | 2023-09-15 | 2023-10-24 | 纬领(青岛)网络安全研究院有限公司 | Face recognition method and device, electronic equipment and storage medium |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113704727A (en) * | 2021-07-02 | 2021-11-26 | 深圳市赛云数据有限公司 | SIM card identity verification management and updating device |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN200950262Y (en) * | 2005-11-11 | 2007-09-19 | 北京数字奥森科技有限公司 | Mobile terminal |
| US8145562B2 (en) * | 2009-03-09 | 2012-03-27 | Moshe Wasserblat | Apparatus and method for fraud prevention |
| CN202197300U (en) * | 2010-08-05 | 2012-04-18 | 北京海鑫智圣技术有限公司 | Mobile Face Recognition System |
| CN202210263U (en) * | 2011-06-30 | 2012-05-02 | 汉王科技股份有限公司 | Face recognition device |
| CN102945366A (en) * | 2012-11-23 | 2013-02-27 | 海信集团有限公司 | Method and device for face recognition |
| CN103580867A (en) * | 2013-08-01 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Trading method and trading system |
| CN106326862A (en) * | 2016-08-25 | 2017-01-11 | 广州御银自动柜员机技术有限公司 | Multi-face pickup device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007267369A (en) * | 2006-03-03 | 2007-10-11 | Ricoh Co Ltd | Image forming apparatus, image forming apparatus control method, program for controlling image forming apparatus, and recording medium |
| CN107360119A (en) * | 2016-05-09 | 2017-11-17 | 中兴通讯股份有限公司 | A kind of cloud desktop Sign-On authentication method, cloud desktop control system and client |
| CN108830153A (en) * | 2018-05-07 | 2018-11-16 | 平安普惠企业管理有限公司 | For the auth method of recognition of face, device, equipment and storage medium |
-
2018
- 2018-12-21 CN CN201880094835.4A patent/CN112313661A/en active Pending
- 2018-12-21 WO PCT/CN2018/122765 patent/WO2020124579A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN200950262Y (en) * | 2005-11-11 | 2007-09-19 | 北京数字奥森科技有限公司 | Mobile terminal |
| US8145562B2 (en) * | 2009-03-09 | 2012-03-27 | Moshe Wasserblat | Apparatus and method for fraud prevention |
| CN202197300U (en) * | 2010-08-05 | 2012-04-18 | 北京海鑫智圣技术有限公司 | Mobile Face Recognition System |
| CN202210263U (en) * | 2011-06-30 | 2012-05-02 | 汉王科技股份有限公司 | Face recognition device |
| CN102945366A (en) * | 2012-11-23 | 2013-02-27 | 海信集团有限公司 | Method and device for face recognition |
| CN103580867A (en) * | 2013-08-01 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Trading method and trading system |
| CN106326862A (en) * | 2016-08-25 | 2017-01-11 | 广州御银自动柜员机技术有限公司 | Multi-face pickup device |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11792188B2 (en) * | 2020-08-05 | 2023-10-17 | Bank Of America Corporation | Application for confirming multi-person authentication |
| CN116634362A (en) * | 2020-08-05 | 2023-08-22 | 华为技术有限公司 | An automatic control method, electronic device and computer-readable storage medium |
| US20220046011A1 (en) * | 2020-08-05 | 2022-02-10 | Bank Of America Corporation | Application for confirming multi-person authentication |
| CN114201057A (en) * | 2020-09-17 | 2022-03-18 | 华为技术有限公司 | Method, medium, and electronic device for managing input method |
| CN115238259A (en) * | 2021-04-22 | 2022-10-25 | 华为技术有限公司 | Equipment authentication method and related device |
| CN114153838A (en) * | 2021-10-29 | 2022-03-08 | 北京优炫软件股份有限公司 | Encryption storage and query method for member information |
| CN114119034A (en) * | 2021-11-24 | 2022-03-01 | 中国银行股份有限公司 | Authentication method and device |
| CN115550415A (en) * | 2022-02-28 | 2022-12-30 | 荣耀终端有限公司 | Device connection method and electronic device |
| CN115550415B (en) * | 2022-02-28 | 2023-08-04 | 荣耀终端有限公司 | Device connection method and electronic device |
| CN114611090A (en) * | 2022-03-10 | 2022-06-10 | 平安普惠企业管理有限公司 | Identity verification method and device based on browser, medium and equipment |
| CN114915486A (en) * | 2022-06-02 | 2022-08-16 | 北京天融信网络安全技术有限公司 | Identity authentication method, device, system, electronic equipment and medium |
| CN115204829A (en) * | 2022-07-12 | 2022-10-18 | 渤海银行股份有限公司 | Contract processing method, system, device and storage medium for double face recognition |
| CN116702100A (en) * | 2022-10-21 | 2023-09-05 | 荣耀终端有限公司 | Rights management method and electronic device |
| CN116702100B (en) * | 2022-10-21 | 2024-04-16 | 荣耀终端有限公司 | Rights management method and electronic device |
| CN116935479A (en) * | 2023-09-15 | 2023-10-24 | 纬领(青岛)网络安全研究院有限公司 | Face recognition method and device, electronic equipment and storage medium |
| CN116935479B (en) * | 2023-09-15 | 2023-12-15 | 纬领(青岛)网络安全研究院有限公司 | Face recognition method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112313661A (en) | 2021-02-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020124579A1 (en) | Method for verifying user identity, and electronic device | |
| US11250412B2 (en) | Offline payment method and device | |
| EP3819174B1 (en) | Business processing method and device | |
| CN113496426B (en) | Method, electronic device and system for recommending services | |
| US20230254143A1 (en) | Method for Saving Ciphertext and Apparatus | |
| WO2021121273A1 (en) | Authentication method and medium and electronic apparatus thereof | |
| CN115550919B (en) | Device pairing authentication method, device, sender device and receiver device | |
| WO2020216160A1 (en) | Automatic routing method for se, and electronic device | |
| WO2020042119A1 (en) | Message transmission method and device | |
| CN114510178B (en) | A shared data distribution method and electronic device | |
| CN114692119B (en) | Method and electronic device for verifying application | |
| CN115174727B (en) | Method for transmitting information and electronic device | |
| CN114117461B (en) | Data protection method, electronic device and storage medium | |
| CN113688368B (en) | A cross-device authentication method | |
| US20220201491A1 (en) | Pairing method and device | |
| CN115080975B (en) | Data transmission method and device | |
| CN116956311A (en) | Asynchronous authorization method, system, electronic device and computer readable storage medium | |
| CN116029716A (en) | Remote payment method, electronic equipment and system | |
| CN117641359B (en) | Data processing method and electronic device | |
| US20240233933A1 (en) | Contact tracing method and related device | |
| EP4336801B1 (en) | Device control method and apparatus | |
| WO2020133477A1 (en) | Data display method | |
| WO2025001108A1 (en) | Authentication method, electronic device, and system | |
| CN118474164A (en) | Communication method, device and system | |
| CN118586914A (en) | Digital currency wallet management method and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18943503 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18943503 Country of ref document: EP Kind code of ref document: A1 |