Login verification method and apparatus for application program, and electronic device, computer-readable storage medium and computer program product
By performing biometric collection operations in the application, combined with account binding relationships, and controlling the login state, the problem of user information security is solved, more comprehensive verification is achieved, and the device is prevented from being used maliciously.
Patent Information
- Application Number
- PCT/CN2024/085819
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-12
- Filing Date
- 2024-04-03
- Publication Date
- 2024-10-17
AI Technical Summary
In an application, when the user fails to log out normally or leaves temporarily, the device can be easily used maliciously, leading to security issues.
By performing the first and second types of biometric collection operations, combined with the account binding relationship, the login state of the application interface is controlled, thereby achieving auxiliary verification and ensuring the security of user information.
It effectively prevents user information from being maliciously used or leaked by others, and improves the security of information after users log in to the application.
Smart Images

Figure CN2024085819_17102024_PF_FP_ABST
Abstract
Description
Application login verification method, device, electronic device, computer-readable storage medium, and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310404019.1 and application date of April 12, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of information security technology, and in particular to a login verification method, device, electronic device, computer-readable storage medium, and computer program product for an application. Background Art
[0004] Applying biometrics to electronic payment scenarios in applications can improve the convenience of payment, but at the same time it faces security risks.
[0005] Taking palm-swipe payment as an example, in a scenario with a login status, for example, after a user logs in by swiping their palm, the login status related information will be temporarily cached in the palm-swipe payment terminal. Assuming that the user does not log out normally, or leaves the screen for a short time, it is easy for the device with the user's login status to be used maliciously, thereby causing security-related issues.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a login verification method, device, electronic device, computer-readable storage medium, and computer program product for an application, which can ensure the security of use in a logged-in application.
[0008] The technical solution of the embodiment of the present application is implemented as follows:
[0009] An embodiment of the present application provides a login verification method for an application, which is executed by a first electronic device and includes:
[0010] Performing a first type of biometric feature collection operation to obtain a first collection result;
[0011] In response to the first collection result including the first biometric feature, and the first biometric feature being bound to the first account, displaying an application interface in a logged-in state, wherein the logged-in state is a state of logging into an application based on the first account;
[0012] performing a second type of biometric collection operation to obtain a second collection result, wherein the second type is different from the first type;
[0013] Based on the second collection result, the login state of the application interface is controlled.
[0014] The present invention provides a login verification device for an application program, including:
[0015] a collection module configured to perform a collection operation of a first type of biometric feature and obtain a first collection result;
[0016] a display module configured to, in response to the first collection result including the first biometric feature and the first biometric feature being bound to the first account, display an application interface in a logged-in state, wherein the logged-in state is a state of logging into an application based on the first account;
[0017] The collection module is further configured to perform a collection operation of a second type of biometric feature to obtain a second collection result, wherein the second type is different from the first type;
[0018] A control module is configured to control the login state of the application interface based on the second collection result.
[0019] An embodiment of the present application provides an electronic device, including:
[0020] a memory for storing computer-executable instructions or computer programs;
[0021] The processor is used to implement the login verification method of the application provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0022] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program, which is used to implement the login verification method of the application provided in the embodiment of the present application when executed by a processor.
[0023] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implements the login verification method for the application provided in the embodiment of the present application.
[0024] The embodiments of the present application have the following beneficial effects:
[0025] After logging into the application based on the first account bound to the first biometric, the second type of biometric collection operation is continued, and based on the second collection result, the login state of the application interface is controlled. That is to say, after logging into the application based on one type of biometric, auxiliary verification is performed through another type of biometric, making the verification channel more comprehensive, thereby effectively preventing user information from being maliciously used or leaked by others, and thus ensuring the security of the user's information after logging into the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] FIG1 is a schematic diagram of the architecture of a login verification system 100 for an application program provided in an embodiment of the present application;
[0027] FIG2 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application;
[0028] FIG3 is a flow chart of a login verification method for an application program provided in an embodiment of the present application;
[0029] FIG4 is a flow chart of a login verification method for an application program provided in an embodiment of the present application;
[0030] FIG5 is a flow chart of a login verification method for an application program provided in an embodiment of the present application;
[0031] FIG6 is a schematic diagram of an application scenario of a login verification method for an application program provided in an embodiment of the present application;
[0032] FIG7 is a schematic diagram showing the principles of the registration and usage process provided in an embodiment of the present application;
[0033] FIG8 is a schematic diagram of the overall architecture of the login verification method for an application provided in an embodiment of the present application;
[0034] FIG9 is a flow chart of a login verification method for an application program provided in an embodiment of the present application;
[0035] FIG10 is a schematic diagram of an application scenario of the login verification method for an application provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0037] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0038] It is understandable that in the embodiments of the present application, when user information and other related data (such as biometric data such as the user's palm prints and faces) are involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0039] In the following description, the terms "first\second\..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0040] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0041] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as commonly understood by those skilled in the art of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the embodiments of the present application.
[0042] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0043] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0044] 2) Biometrics: These are the unique physiological characteristics or behaviors of each organism that can be measured, automatically identified, and verified. Biometrics can be divided into physiological characteristics (such as fingerprints, faces, irises, palm prints, etc.) and behavioral characteristics (such as gait, voice, handwriting, etc.).
[0045] 3) Biometric recognition: refers to the technology of using computers to use the inherent physiological or behavioral characteristics of organisms to authenticate personal identity, including palm recognition, face recognition, fingerprint recognition, retinal recognition, etc. Among them, palm recognition is a technology that exchanges identity information through palm multimedia information. For example, identification can be achieved by measuring the physical characteristics of the palm and fingers of an organism; face recognition is a technology that exchanges identity information through facial multimedia information. Face recognition includes facial recognition and facial authentication.
[0046] 4) Graphic code: A graphic that carries information, including barcodes and QR codes. A barcode is a graphic identifier that uses multiple black bars and spaces of varying widths, arranged according to certain coding rules, to express a set of information. Common barcodes are parallel line patterns composed of black bars (referred to as bars) and white bars (referred to as spaces) with greatly varying reflectivities. A QR code, also known as a two-dimensional barcode, is a black and white graphic that records data symbol information distributed in a plane (i.e., in two dimensions) using certain geometric shapes according to a certain pattern. The code compilation cleverly utilizes the concept of "0" and "1" bit streams, which is the basis of internal computer logic, and uses several geometric shapes corresponding to binary to represent textual numerical information. It is automatically read by image input devices or photoelectric scanning devices to achieve automatic information processing.
[0047] 5) Operation habits: refers to the operation methods developed by users over a long period of time when using applications, such as clicking habits, sliding habits, pressing habits, etc., among which, clicking habits can be the average number of clicks of users within a set time (for example, 2 minutes); sliding habits can be at least one of the average sliding distance and sliding speed when users perform multiple sliding operations; pressing habits can be the average touch area of users when performing pressing operations, that is, the average contact area between the user's fingers and the screen when the user performs multiple pressing operations.
[0048] 6) Application interface: refers to the interface through which the application interacts with the user. It includes elements that the user can see and operate, such as buttons, text boxes, icons, etc., as well as the overall design and layout of the application.
[0049] 7) Specific Information: refers to key personal information of the user. If this information is obtained by an unauthorized third party, it may cause damage to the user's account security. Specific information may include the user's personal identity information, the user's balance, or the user's purchase history.
[0050] 8) Specific operations: refers to operations involving specific information in the application, among which specific operations may include transfer, payment, and balance inquiry.
[0051] 9) Login state: This generally refers to the user's state at the time of login. Specifically, the login state is information used to verify user identity and authorize system status. It typically consists of information such as the user's login name and password. After a user successfully logs in, the login state is saved in the system and used to verify the user's identity when performing other operations. The login state can take various forms, such as session tokens, hash values, and encrypted specific information. These methods ensure that only authenticated users can access protected resources and prevent unauthorized access and data leakage.
[0052] 10) Image contrast: refers to the degree of difference in brightness between different areas of an image. A high image contrast indicates a large difference between bright and dark areas, making the image clearer and easier to observe. Conversely, a low image contrast indicates a small difference in brightness between areas of the image, making the image appear blurry and unclear.
[0053] 11) Clarity: refers to the clarity of details and edges in an image, that is, the amount of information and the degree of detail in the image. A clear image usually has clear edges and details, allowing the observer to clearly see the details and structures in the image.
[0054] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for login verification of an application, which can ensure safe use in an application in a logged-in state. The electronic device provided by the embodiment of the present application is described below. In order to distinguish it from the second electronic device for scanning graphic codes, the electronic device to which the login verification method of the application provided by the embodiment of the present application is applied is referred to as a first electronic device. That is to say, the login verification method of the application provided by the embodiment of the present application is applied to a first electronic device. The first electronic device provided by the embodiment of the present application can be implemented as a terminal device, or it can be implemented jointly by a server and a terminal device. The following description will be made by taking the login verification method of the application provided by the embodiment of the present application implemented jointly by a terminal device and a server as an example.
[0055] For example, see Figure 1, which is a schematic diagram of the architecture of an application login verification system 100 provided in an embodiment of the present application. To support applications that ensure the use of secure applications in logged-in applications, as shown in Figure 1, the application login verification system 100 includes: a server 200, a network 300, and a terminal device 400, wherein the network 300 can be a local area network or a wide area network, or a combination of the two. An application 410 runs on the terminal device 400. The application 410 can be various types of applications. For example, when the terminal device 400 is a payment terminal, the application 410 can be a payment application; when the terminal device 400 is a mobile phone or a tablet computer, the application 410 can be an email application or a shopping application, etc.
[0056] In some embodiments, taking a payment scenario as an example, a terminal device 400 (e.g., a payment terminal) may perform a collection operation for a first type of biometric feature (e.g., a palm print feature) to obtain a first collection result. The terminal device 400 may then send the first collection result to the server 200 via the network 300 for the server 200 to make a determination. For example, when the server 200 determines that the first collection result includes the first biometric feature and that the first biometric feature is bound to the first account, the server 200 may return the first account to the terminal device 400, allowing the terminal device 400 to log into the application 410 based on the first account. Subsequently, the terminal device 400 may also perform a collection operation for a second type of biometric feature (e.g., a facial feature) to obtain a second collection result, and based on the second collection result, control the login state of the application interface. For example, when the second collection result does not include the second biometric feature, the terminal device 400 may control the application interface to switch from a logged-in state to a non-logged-in state. When the second collection result includes the second biometric feature and that the second biometric feature is bound to the first account, the terminal device 400 may control the application interface to remain in the logged-in state.
[0057] It should be noted that the above-mentioned application 410 can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a payment APP or an email APP; it can also be a mini-program, that is, a program that can be run only by downloading it to a browser environment. The embodiments of this application do not make specific limitations on this.
[0058] In other embodiments, the embodiments of the present application can also be implemented with the help of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network within a wide area network or local area network to realize data calculation, storage, processing, and sharing.
[0059] Cloud technology is a general term for network, information, integration, management platform, and application technologies used in the cloud computing business model. It can form a resource pool that can be used flexibly and conveniently on demand. Cloud computing technology will become a key support. The backend services of technical network systems require a large amount of computing and storage resources.
[0060] For example, the server 200 in Figure 1 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms. The terminal device 400 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a payment terminal (for example, including a palm payment terminal, a face payment terminal, etc.), etc., but is not limited to this. The terminal device 400 and the server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0061] The structure of the first electronic device provided by the embodiment of the present application will be described below. Taking the first electronic device as a terminal device as an example, refer to Figure 2, which is a structural diagram of the first electronic device 500 provided by the embodiment of the present application. The first electronic device 500 shown in Figure 2 includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the first electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 540 in Figure 2.
[0062] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0063] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0064] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.
[0065] The memory 550 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0066] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0067] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0068] A network communication module 552 for reaching other computing devices via one or more (wired or wireless) network interfaces 520 , exemplary network interfaces 520 including Bluetooth, WiFi, and USB;
[0069] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0070] The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
[0071] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. FIG2 shows a login verification device 555 of an application stored in a memory 550, which can be software in the form of a program and a plug-in, including the following software modules: an acquisition module 5551, a display module 5552, a control module 5553, an adjustment module 5554, an acquisition module 5555, a determination module 5556, and a binding module 5557. These modules are logical and can be arbitrarily combined or further split according to the functions implemented. It should be pointed out that in FIG2, for the sake of convenience of expression, all the above modules are shown at once, but it should not be regarded as excluding the implementation of the login verification device 555 of the application that can only include the acquisition module 5551, the display module 5552, and the control module 5553. The functions of each module will be explained below.
[0072] The login verification method for the application provided in the embodiment of the present application will be specifically described below in combination with the exemplary application and implementation of the first electronic device provided in the embodiment of the present application.
[0073] Refer to Figure 3, which is a flow chart of the login verification method for the application provided in an embodiment of the present application, which will be explained in conjunction with the steps shown in Figure 3.
[0074] In step 101, a first type of biometric feature collection operation is performed to obtain a first collection result.
[0075] In some embodiments, a login entry may be displayed in the human-computer interaction interface of the first electronic device, and step 101 may be implemented in the following manner: in response to a trigger operation on the login entry, a first type of biometric feature collection operation is performed to obtain a first collection result.
[0076] For example, taking the first electronic device as a payment terminal and the first type of biometric feature as a palm print feature, a login entrance can be displayed on the screen of the payment terminal (i.e., the human-computer interaction interface). When a user clicks on the login entrance, the payment terminal can call the built-in (or external) camera to perform a palm print feature collection operation to obtain a first collection result. For example, when a user clicks on the login entrance, the payment terminal can control the camera in the palm print recognition area from an off state to an on state to perform a palm print feature collection operation. For example, the camera in the palm print recognition area will collect the environment above the palm print recognition area to obtain a first collection result.
[0077] In other embodiments, the first electronic device may also periodically perform a first type of biometric feature collection operation. For example, taking the first electronic device as a mobile phone and the first type of biometric feature as a palm print feature, before the user logs into the application by swiping his palm, the mobile phone may periodically perform a palm print feature collection operation, for example, performing a palm print feature collection operation every 10 seconds, to ensure security.
[0078] In some embodiments, the first electronic device may further implement step 101 as follows: in response to the first electronic device switching from a screen-off state to a screen-on state, performing a first type of biometric feature collection operation to obtain a first collection result.
[0079] For example, taking the first electronic device as a payment terminal and the first type of biometric feature as a palm print feature, when the user clicks on the screen of the payment terminal which is in the screen-off state, the payment terminal will switch from the screen-off state to the screen-on state, and control the camera in the palm print recognition area from the off state to the on state to perform the palm print feature collection operation. In this way, the palm print feature collection operation is performed only when the payment terminal is in the screen-on state, which can effectively reduce the resource consumption of the payment terminal.
[0080] In other embodiments, the first electronic device can also implement the above-mentioned step 101 in the following manner: in response to detecting a biological body (such as a human body) and the distance between the biological body and the first electronic device is less than a distance threshold, performing a first type of biometric feature collection operation to obtain a first collection result.
[0081] For example, taking the first electronic device as a laptop and the first biometric feature as a facial feature, before the user logs in to the application by scanning the face, the laptop can call the built-in (or external) sensor (such as a distance sensor) to detect whether there is a living organism in the environment where the distance between the laptop and the laptop is less than a distance threshold (such as 1 meter). If there is a living organism, the facial feature collection operation is performed. For example, the laptop can control the built-in (or external) camera to enter the working state to perform the facial feature collection operation. In this way, it can avoid the laptop still performing the facial feature collection operation when there is no one nearby, thereby wasting the laptop's resources.
[0082] It should be noted that the above-mentioned distance threshold can be pre-set or can be manually set by the user to meet the personalized needs of different users. The embodiments of the present application do not make specific limitations on this.
[0083] In step 102, in response to the first collection result including the first biometric feature, and the first biometric feature being bound to the first account, an application interface in a logged-in state is displayed.
[0084] Here, the first account can be a social network account (such as a personal instant messaging account or a corporate instant messaging account), the login state is the state of logging into the application based on the first account, and the application interface can be an interface in the application involving specific information (such as balance, purchase history, identity information, etc.).
[0085] In some embodiments, taking the first electronic device as a payment terminal and the first biometric feature as a palm print feature as an example, the payment terminal can call the camera of the palm print recognition area to collect images of the environment to obtain multiple images (i.e., the first collection result), and then perform palm detection processing on the multiple images obtained (i.e., determine whether there is a palm in the multiple images obtained). When a palm is detected from multiple images (assuming that images 1 to 10 are included) (for example, assuming that the user places the palm above the palm print recognition area), for example, assuming that the user's palm is detected in images 3 to 7, it can be further determined by coefficient indicators such as palm size, angle, image contrast, image brightness and clarity. , comprehensively select the best palm image (assuming it is image 4), and then send image 4 to the server so that the server can extract the corresponding palm print features from image 4 and determine the similarity between the extracted palm print features and multiple authorized palm print features. When the maximum similarity is greater than or equal to the similarity threshold (for example, 95%), the server can further query the account bound to the authorized palm print feature corresponding to the maximum similarity (assuming it is account 1 associated with user A) as the first account (that is, the palm print feature currently collected is the palm print feature of user A). Subsequently, the server can use the Data Encryption Standard (DES) to perform encryption processing based on the random number, account 1, and current timestamp to obtain a token, and return the token to the payment terminal, so that the payment terminal can log in to the application running on the payment terminal (for example, the swipe payment APP) based on the account 1 carried in the token.
[0086] It should be noted that each subsequent request from the payment terminal to the server will need to carry the token to verify User A's identity. Furthermore, the token can be valid for a certain period of time, i.e., a temporary token. After the expiration of the validity period, the server will generate a new token and send it to the payment terminal. Furthermore, if the server determines that the maximum similarity is less than a similarity threshold, indicating that the currently collected palm print features do not belong to any authorized user, a corresponding notification message can be sent to the payment terminal, which will display a prompt on the payment terminal's screen, prompting the user to re-collect the palm print features.
[0087] In addition, it should be noted that in addition to network verification, local verification can also be used. For example, when the first electronic device locally stores multiple authorized biometric features of the first type, the first biometric feature can be matched with the multiple locally stored authorized biometric features. The embodiments of the present application do not specifically limit this.
[0088] In other embodiments, when the first collection result does not include the first biometric feature, a prompt message may be displayed in the human-computer interaction interface of the first electronic device, prompting the need to re-execute the collection operation of the first type of biometric feature. For example, taking the first type of biometric feature as a palm print feature as an example, the following prompt message may be displayed in the human-computer interaction interface of the first electronic device: Please re-place your palm above the palm print recognition area.
[0089] In some embodiments, taking the first account as an account associated with the first organism as an example, refer to Figure 4, which is a flow chart of the login verification method of the application provided in an embodiment of the present application. As shown in Figure 4, before executing step 101 shown in Figure 3, steps 105 and 106 shown in Figure 4 can also be executed, which will be explained in conjunction with the steps shown in Figure 4.
[0090] In step 105 , a first type of biometric feature and a second type of biometric feature of a first living being are collected in advance.
[0091] In some embodiments, taking the first type of biometric feature as a palm print feature, the second type of biometric feature as a facial feature, the first electronic device as a payment terminal, and the first organism as user A as an example, the user must first register before using the palm swiping login function, that is, the payment terminal needs to collect the palm print feature and facial feature of user A in advance as authorized biometric features.
[0092] In step 106 , the first type of biometric feature and the second type of biometric feature of the first organism are bound to the first account.
[0093] In some embodiments, continuing with the above example, after collecting the palm print features and facial features of user A, the payment terminal can bind the collected palm print features and facial features to an account associated with user A (i.e., a first account, such as a social network account registered by user A).
[0094] It should be noted that, in addition to being a palm-swiping payment APP, the above-mentioned application may also be other types of applications, such as an email APP, a shopping APP, etc., and the embodiments of the present application do not make specific limitations on this.
[0095] In step 103, a second type of biometric feature collection operation is performed to obtain a second collection result.
[0096] Here, the second type of biometric feature is different from the first type of biometric feature. For example, the first type of biometric feature may be one of a palm print feature and a facial feature, and the second type of biometric feature is the other of the palm print feature and the facial feature. For example, assuming that the first type of biometric feature is a palm print feature, the second type of biometric feature is a facial feature.
[0097] It should be noted that, in addition to palm print features and facial features, the first type of biometric feature (or the second type of biometric feature) can also be other biometric features, such as voice print features, iris features, etc. For example, the first type of biometric feature can be a voice print feature, and the second type of biometric feature can be an iris feature. The embodiments of the present application do not make specific limitations on this.
[0098] In some embodiments, the first electronic device may periodically perform a second type of biometric feature collection operation. For example, the first electronic device may perform a second type of biometric feature collection operation every 1 minute. Of course, the first electronic device may also perform a second type of biometric feature collection operation when it detects that the user has not performed any operation for a time period greater than a time threshold (for example, 2 minutes). For example, assuming that the first electronic device does not receive any user-triggered operation within 2 minutes after displaying the application interface in the login state, the second type of biometric feature collection operation may be performed, thereby preventing the device in the user login state from being maliciously used before the user briefly leaves the screen.
[0099] In other embodiments, the first electronic device may also perform a second type of biometric feature collection operation when it detects that the user has performed a specific operation (such as a balance inquiry operation, a transfer operation, or a payment operation, etc.) in the application interface. For example, taking the first electronic device as a payment terminal and the second type of biometric feature as a facial feature, when the payment terminal detects that the user has performed a transfer operation in the application interface, it may call a built-in (or external) camera to collect a facial image of the user in front of the screen to determine whether it is the same user. In other words, when it is detected that the user has not performed a specific operation involving the user's important personal information (i.e., specific information) in the application interface, the second type of biometric feature collection operation may not be performed to save resource overhead of the first electronic device.
[0100] In some embodiments, it is also possible to determine whether it is the same person based on the user's operating habits. Only when it is determined that it is not the same person, the second type of biometric feature collection operation is performed. Before executing the above-mentioned step 103, the first electronic device may also perform the following processing: obtain the operation data of the current time period (for example, assuming it is from the 3rd minute to the 4th minute after logging into the application), and the operation data of the previous time period (for example, assuming it is within 1 minute after logging into the application); perform feature extraction processing on the operation data of the current time period and the operation data of the previous time period respectively, and obtain the features of the operation data of the current time period and the features of the operation data of the previous time period; then, based on the features of the operation data of the current time period and the features of the operation data of the previous time period, call a machine learning model for prediction processing to determine whether it is the same organism. For example, the machine learning model can calculate the similarity between the features of the operation data of the current time period and the features of the operation data of the previous time period (for example, calculate the Euclidean distance between two feature vectors). When the similarity is less than the similarity threshold, the output is a judgment result that it is not the same organism. At this time, the first electronic device performs the second type of biometric feature collection operation.
[0101] It should be noted that the above-mentioned operation data may include at least one of the following: the number of clicks of the user, at least one of the sliding distance and sliding speed when the user performs a sliding operation, and the touch area when the user performs a pressing operation.
[0102] For example, taking the first electronic device as a payment terminal, the first type of biometric feature as a palm print feature, and the second type of biometric feature as a facial feature as an example, assuming that a user (e.g., user A) logs into an application (e.g., a palm print payment APP) running on the payment terminal by swiping his palm at 10:00, and assuming that the current time is 10:03, the payment terminal can further obtain the operation data of the user (which may be user A or other users) operating on the payment terminal in the current time period (e.g., 10:03 to 10:04), and the operation data of the user (i.e., user A) operating on the payment terminal in the previous time period (e.g., 10:00 to 10:01), and respectively perform the following operations on the payment terminal: The operation data of these two time periods are subjected to feature extraction processing to obtain the corresponding features of the operation data of the current time period and the features of the operation data of the previous time period. Subsequently, based on the features of the operation data of the current time period and the features of the operation data of the previous time period, the machine learning model can be called to perform prediction processing so that the machine learning model outputs a judgment result of whether it is the same user. When the judgment result output by the machine learning model is that it is not the same user, that is, the user operating on the payment terminal in the current time period is not the same user who operated on the payment terminal in the previous time period, the payment terminal can perform a facial feature collection operation for further verification.
[0103] It should be noted that the above-mentioned machine learning model can be trained based on the operation data of sample users in different time periods. In addition, the exemplary structure of the machine learning model may include: an input layer (i.e., an embedding layer), an encoding layer (for example, it can be composed of multiple cascaded convolutional layers), a fully connected layer, and an output layer (including an activation function, such as a Softmax function). For example, the operation data of the current time period and the operation data of the previous time period can be input into the input layer for embedding processing, and then the embedded feature vector output by the input layer is encoded by the encoding layer to obtain a hidden layer feature vector, and then the hidden layer feature vector is fully connected by the fully connected layer. Finally, the fully connected result output by the fully connected layer is input into the output layer for activation processing by the output layer to obtain a judgment result of whether it is the same user.
[0104] It should be noted that the above-mentioned machine learning model can be a neural network model (such as a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multi-layer perceptron, and a support vector machine, etc. The embodiment of this application does not specifically limit the type of machine learning model.
[0105] In other embodiments, it can also be determined based on rules whether it is the same user. For example, after obtaining the operation data of the current time period, the operation data of the current time period can be compared with the operation data of the previous time period. When the difference between the two is greater than the difference threshold, for example, assuming that the sliding distance of the sliding operation included in the operation data of the current time period (assuming it is 3 cm) is significantly greater than the sliding distance of the sliding operation included in the operation data of the previous time period (assuming it is only 1 cm), or assuming that the touch area included in the operation data of the current time period (assuming it is 0.5 square centimeters) is significantly smaller than the touch area included in the operation data of the previous time period (assuming it is 1.5 square centimeters), it means that the two time periods are not the same user, then the payment terminal can perform a facial feature collection operation for further verification. The embodiments of the present application do not make specific limitations on this.
[0106] In some embodiments, refer to Figure 5, which is a flow chart of the login verification method of the application provided in an embodiment of the present application. As shown in Figure 5, step 103 shown in Figure 3 can be implemented through steps 1031 to 1032 shown in Figure 5, which will be explained in conjunction with the steps shown in Figure 5.
[0107] In step 1031, the application interface is controlled to be in silent mode.
[0108] Here, the silent mode is used to shield the output of prompts related to the collection operation of the second type of biometric features (for example, including vibration, sound, image, etc.).
[0109] In step 1032, a second type of biometric feature collection operation is performed based on the silent mode to obtain a second collection result.
[0110] In some embodiments, taking the first electronic device as a payment terminal and the second type of biometric feature as a facial feature as an example, the payment terminal can perform a facial feature collection operation based on a silent mode to obtain a second collection result. For example, when the payment terminal performs a facial feature collection operation, it will not display the currently collected facial image on the screen in real time. That is to say, the payment terminal can silently perform the facial feature collection operation in the background, so as not to interfere with the user's process of performing related operations in the application interface, thereby improving the user experience.
[0111] In step 104, based on the second collection result, the login state of the application interface is controlled.
[0112] In some embodiments, step 104 can be implemented in the following manner: in response to the second collection result including the second biometric feature, and the second biometric feature being bound to the first account, controlling the application interface to remain in a logged-in state.
[0113] For example, taking the second type of biometric feature as a facial feature, the first electronic device can call a built-in (or external) camera to capture images of the environment in front of the first electronic device to obtain multiple images (i.e., the second capture result), and then perform face detection processing on the multiple images (including images 1 to 10) (i.e., detect whether there is a face in the multiple images obtained). Assuming that a face is detected from multiple images, for example, assuming that a face is detected in images 2 to 9, it can be further determined based on coefficient indicators such as face size, angle, image contrast, image brightness and clarity. The best facial image (assuming it is image 5) is comprehensively selected, and then the first electronic device can send image 5 to the server, so that the server can extract the corresponding facial features from image 5, and match the extracted facial features with multiple authorized facial features pre-stored in the server. When the maximum similarity is greater than the similarity threshold, the account bound to the authorized facial feature corresponding to the maximum similarity is queried. If the account obtained by the query is the first account, it is determined that it is the same person. The server can send a notification message to the first electronic device to keep the login state, so that the first electronic device controls the application interface to remain logged in.
[0114] In other embodiments, the above-mentioned step 104 can also be implemented in the following manner: in response to the second collection result including the second biometric feature, and the second biometric feature is not bound to the first account, the application interface is switched from a logged-in state to a non-logged-in state, wherein the non-logged-in state is a state in which the application is not logged in based on the first account.
[0115] For example, taking the second biometric feature as a facial feature, when the second collection result includes a facial feature, but the facial feature is not bound to the first account, for example, assuming that the currently collected facial feature is bound to the second account, it means that they are not the same user, then the first electronic device can directly switch the application interface from a logged-in state to a non-logged-in state, thereby preventing the user's information from being leaked or maliciously used by others.
[0116] In some embodiments, when it is determined that the person is not the same person, further verification can be performed. Only when the verification fails will the user exit the logged-in state. The above-mentioned response to the second collection result including the second biometric feature and the second biometric feature not being bound to the first account, switching the application interface from the logged-in state to the unlogged-in state can be achieved in the following manner: in response to the second collection result including the second biometric feature and the second biometric feature not being bound to the first account, a prompt message is displayed, wherein the prompt message is used to prompt that verification based on the first type of biometric feature is required; the collection operation of the first type of biometric feature is performed again to obtain a third collection result; in response to the third collection result not including the first biometric feature, it is determined that the verification fails, and the application interface is switched from the logged-in state to the unlogged-in state.
[0117] For example, taking the first type of biometric feature as palm print feature, the second type of biometric feature as facial feature, and the first electronic device as a payment terminal as an example, when the server determines that the currently collected facial feature is not bound to the first account, that is, when it is determined that they are not the same person (for example, the palm print feature is the palm print feature of user A, and the facial feature is the facial feature of user B), the server can send a corresponding notification message to the payment terminal, so that the payment terminal displays a prompt message in the human-computer interaction interface that requires palm swiping verification again, such as "Palm swiping verification is required again". Subsequently, the payment terminal can perform the palm print feature collection operation again to obtain a third collection result. When the third collection result does not include the palm print feature (or the palm print feature exists, but the palm print feature is not the palm print feature of user A), it is determined that the verification failed, and the payment terminal can switch the application interface from the logged-in state to the unlogged-in state, thereby preventing the user's information from being leaked or maliciously used by others.
[0118] In other embodiments, continuing with the above example, when the third collection result includes the first biometric feature (such as the palm print feature of user A), it means that user A is still in front of the screen of the payment terminal, and the verification is determined to be successful. The payment terminal can control the application interface to remain logged in. In this way, when it is determined that it is not the same person based on facial features, further verification is performed based on the palm print feature, avoiding the mistaken assumption that it is not the same person due to factors such as the photo angle, and then logging out of the login state, which affects the user's normal operation.
[0119] In some embodiments, when the second biometric feature is not bound to the first account, that is, when it is determined that they are not the same person, the first electronic device can also perform the following processing: display a graphic code (such as a QR code); receive configuration information sent by the second electronic device (such as a mobile phone, tablet computer, etc.) after scanning the graphic code; based on the configuration information, perform one of the following processing: adjust the frequency of executing the second type of biometric feature collection operation; display the time interval from the current moment to the next execution of the second type of biometric feature collection operation; restore the frequency of executing the second type of biometric feature collection operation to the default frequency.
[0120] In other embodiments, continuing with the above example, the first electronic device may also perform the following processing: in response to the graphic code being scanned, terminating the business process in the application interface; in response to receiving the configuration information sent by the second electronic device, resuming the business process in the application interface.
[0121] For example, taking the first electronic device as a payment terminal and the second electronic device as a mobile phone, when it is determined that they are not the same person (i.e., the second biometric feature is not bound to the first account), a QR code can be displayed in the human-computer interaction interface of the payment terminal for the user to scan. When the payment terminal detects that the QR code has been scanned, it can display a waiting interface to terminate the business process in the application interface. Subsequently, when the payment terminal receives the configuration information sent by the user's mobile phone, it can cancel the display of the waiting interface to resume the business process in the application interface.
[0122] In some embodiments, the above-mentioned graphic code may include an identifier of the first electronic device, such as a string serial number (SN), for the second electronic device to perform the following processing: based on the identifier, displaying a setting interface corresponding to the first electronic device, wherein the setting interface includes a sensitivity setting control; in response to a trigger operation on the sensitivity setting control, displaying a sensitivity setting interface, wherein the sensitivity setting interface includes at least one of the following controls: an interval time control, used to adjust the frequency of the first electronic device performing the second type of biometric feature collection operation; a visualization control, used to display in the first electronic device the time interval from the current moment to the next execution of the second type of biometric feature collection operation; a restore default configuration control, used to restore the frequency of the first electronic device performing the second type of biometric feature collection operation to the default frequency.
[0123] For example, taking the first electronic device as a payment terminal and the second electronic device as a mobile phone, the QR code displayed on the payment terminal screen may carry the identification of the payment terminal. When a user scans the QR code displayed on the payment terminal with a mobile phone, a settings interface corresponding to the current payment terminal may be displayed on the mobile phone based on the identification carried in the QR code, i.e., a settings interface for configuring the current payment terminal. A sensitivity setting control may be displayed in the settings interface. When a user clicks on the sensitivity setting control, the user may jump from the settings interface to the sensitivity setting interface. The sensitivity setting interface may display an interval time control, a visualization control, and a restore default configuration control.
[0124] For example, when the user's mobile phone receives a click operation on the interval time control by the user, a pop-up window may be displayed, in which multiple candidate frequencies are displayed, for example, including frequency 1 to frequency 5. When the user selects frequency 2 in the pop-up window, the user's mobile phone may send corresponding configuration information to the payment terminal through the server (for example, the configuration information may carry the frequency 2 selected by the user), so that the payment terminal will adjust the frequency of the collection operation of the second type of biometric features (for example, facial features) to frequency 2 (for example, once every 30 seconds).
[0125] For example, when the user's mobile phone receives a click operation on a visual control by the user, the user's mobile phone can send corresponding configuration information to the payment terminal through the server (for example, the configuration information can carry a notification message of the display time interval), so that the payment terminal can display a floating window on the screen, and display the time interval from the current moment to the next execution of the second type of biometric feature collection operation in the floating window, for example, "There are 10 seconds left until the next facial feature collection operation is executed", so that the user can prepare for the facial feature collection in advance.
[0126] For example, when the user's mobile phone receives a click operation from the user to restore the default configuration control, the user's mobile phone can send corresponding configuration information to the payment terminal through the server (for example, the configuration information may carry a notification message to restore to the default frequency), so that the payment terminal will restore the frequency of performing the second type of biometric collection operation to the default frequency.
[0127] In some embodiments, continuing with the above example, before executing the second type of biometric collection operation, the first electronic device may also perform the following processing: in response to the biometric protection function in the second electronic device being in the turned-on state, determining that the second type of biometric collection operation will be executed, wherein the biometric protection function is used to control the login state of the application interface based on the second type of biometric.
[0128] For example, taking the second type of biometric feature as facial feature, the first electronic device as a payment terminal, and the second electronic device as a mobile phone, there may be a control entrance on the mobile phone, and the user can turn on or off the facial security protection function. When the user turns on the facial security protection function on the mobile phone, the payment terminal will perform the facial feature collection operation; when the user turns off the facial security protection function on the mobile phone, the payment terminal will not perform the facial feature collection operation. In this way, the user can easily determine whether to turn on the facial security protection function.
[0129] In other embodiments, after obtaining the second acquisition result, the first electronic device may further use the depth information of the image to detect the distance between the user in the second acquisition result and the first electronic device. If the distance is greater than a distance threshold, it means that the person behind is being acquired, and re-acquisition is required, that is, the first electronic device may further perform the following processing: obtaining a first distance and a second distance, wherein the first distance is the distance between the organism corresponding to the first biometric and the first electronic device, and the second distance is the distance between the organism corresponding to the second biometric and the first electronic device; in response to the difference between the second distance and the first distance being greater than a difference threshold (for example, 0.2 meters), re-executing the acquisition operation of the second type of biometric.
[0130] For example, taking the first biometric feature as a palm print feature, the second biometric feature as a facial feature, and the first electronic device as a payment terminal as an example, when the payment terminal performs the palm print feature collection operation, it can also call a depth sensor (such as an infrared ranging sensor) to detect the distance between the user and the payment terminal (i.e., the first distance). Similarly, when the payment terminal performs the facial feature collection operation, it can also call an infrared ranging sensor to detect the distance between the user and the payment terminal (i.e., the second distance). When the difference between the two is greater than the difference threshold, it means that the facial features of the person behind are being collected, and a corresponding prompt message can be displayed on the payment terminal to prompt the user that the facial features need to be re-collected. In this way, the subsequent unnecessary verification process can be directly omitted, thereby effectively saving the resource consumption of the payment terminal.
[0131] In other embodiments, the above-mentioned step 104 may also be implemented in the following manner: in response to the second collection result not including the second biometric feature, switching the application interface from the logged-in state to the unlogged-in state.
[0132] For example, taking the second biometric feature as a facial feature, when the second acquisition result does not include facial features, for example, no face is detected in multiple images taken by the built-in camera of the first electronic device, it means that the user has left the screen of the first electronic device. In order to prevent the user information from being maliciously used by others, the first electronic device can switch the application interface from a logged-in state to a non-logged-in state to ensure the security of the user's information.
[0133] The login verification method for an application provided in an embodiment of the present application continues to perform a second type of biometric collection operation after logging into the application based on a first account bound to a first biometric, and controls the login state of the application interface based on the second collection result. In this way, after logging into the application based on the first biometric, continuous verification is performed through the second type of biometric, which can effectively prevent user information from being maliciously used or leaked by others, thereby ensuring the security of user information.
[0134] Below, taking the payment scenario as an example, an exemplary application of the embodiment of the present application in an actual application scenario is described.
[0135] After logging into a mini-program by swiping their palm at a public offline facial payment terminal, users are required to continuously authenticate their identity after logging in to prevent residual login status after leaving the app and potentially causing account security issues. However, this constant palm-raising process is detrimental to the user experience.
[0136] In view of this, an embodiment of the present application provides a login verification method for an application. When a user registers a palm-swiping application (such as a mini-program), it is recommended that the user bind face-related information at the same time. In this way, based on the binding relationship between the user's palm (corresponding to the first type of biometric feature mentioned above) and the face (corresponding to the second type of biometric feature mentioned above), when subsequently logging into related applications by palm-swiping offline, the face can be used to be fixed in front of the device for a relatively long time, so that it can be used for silent recognition and confirmation to confirm whether it is the same person to ensure the user's information security.
[0137] The following is a detailed description of the login verification method for the application provided in the embodiment of the present application.
[0138] In some embodiments, referring to Figure 6, Figure 6 is a schematic diagram of an application scenario of the login verification method of the application provided in the embodiment of the present application. As shown in Figure 6, the login verification method of the application provided in the embodiment of the present application can be applied to the palm swiping payment scenario. The user can log in to the mini program by swiping the palm. For example, the user can place the palm 602 above the palm print recognition area 601 so that the palm swiping payment terminal can collect the user's palm 602 and obtain the user's palm image. Then, the corresponding palm print features can be extracted from the palm image. Subsequently, the extracted palm print features can be matched with multiple authorized palm print features to obtain the user's identity information (such as the instant messaging account associated with the user). Finally, the mini program can be logged in based on the obtained instant messaging account.
[0139] In other embodiments, see Figure 7, which is a schematic diagram of the principles of the registration and use process provided by the embodiment of the present application. As shown in Figure 7, the login verification method for the application provided by the embodiment of the present application includes two stages: registration and use. In the registration stage, the user needs to bind a social network account (such as an instant messaging account) when registering the palm in advance, and it is recommended to bind the user's facial information at the same time. The facial information will only be bound to the palm-related application. For the use stage, when the user uses the palm swipe offline, after the palm swipe login, the facial information bound to the palm will be detected in real time for real-time silent recognition, and the process can continue. At the same time, the mobile phone end (corresponding to the second electronic device mentioned above) can also have a control entrance, and the user can first turn on or off the face security protection function. In other words, only when the user turns on the face security protection function on the mobile phone end, after the palm swipe login, the facial information bound to the palm will be detected in real time for real-time silent recognition.
[0140] In some embodiments, refer to Figure 8, which is a schematic diagram of the overall architecture of the login verification method of the application provided in the embodiment of the present application. As shown in Figure 8, the overall architecture of the login verification method of the application provided in the embodiment of the present application includes: a palm-swiping payment terminal (corresponding to the first electronic device mentioned above) and a palm-swiping back-end service. The palm-swiping payment terminal will be first described below.
[0141] For example, a palm payment terminal is primarily used for palm payment and login-related services. It has two core cameras: a 3D palm camera and a 3D face camera. The 3D palm camera is used to support palm-related services, while the 3D face camera is only used for auxiliary recognition and confirmation of user identity. In addition, the palm payment terminal runs a palm payment app, which includes a palm registration module, a palm login module, a silent face recognition module, a process control module, and a payment result page module.
[0142] For example, using palm capture and recognition as an example, the swipe-palm payment app can call on a 3D swipe-palm camera to collect the user's current palm streaming data. After obtaining the streaming data, the swipe-palm payment terminal can optimize the streaming data. For example, it can select the optimal palm image based on a comprehensive evaluation of factors such as palm size, angle, image contrast, image brightness, and clarity. The swipe-palm payment terminal can then send the optimized palm image to the swipe-palm backend service for palm recognition, and further obtain relevant information such as the user identity information (such as an instant messaging account) or payment code corresponding to the palm.
[0143] It should be noted that the process of face collection and recognition is similar to the process of palm collection and recognition, and will not be repeated here in the embodiment of the present application.
[0144] Next, we will continue to explain the Shuazhang registration module in the Shuazhang payment APP.
[0145] In some embodiments, before using palm-swiping related applications, users need to pre-bind their palms with instant messaging accounts. The specific process is: the user swipes their palms first. Since the user is not registered, the user will be prompted that the user is a new user and needs to scan the code to register and activate. Subsequently, the palm-swiping payment terminal will display the palm-swiping mini-program code, which will be associated with the palm image uploaded by the current user for pre-identification. After the user uses the mobile phone to scan the code, he will enter the mini-program on the mobile phone. The mobile mini-program side will obtain the current user identity (such as instant messaging account) and ask the user whether to bind the palm to the current instant messaging account. After the user confirms, the palm will be bound to the instant messaging account. After the binding is completed, the user will be further asked to confirm whether to allow the facial information to be bound to the palm for subsequent more secure identification and verification. There is no need to register the face. Users need real-name verification when using the instant messaging client, and the current user's facial image will be stored for subsequent silent recognition and comparison.
[0146] Next, we will continue to explain the Shuazhang login module in the Shuazhang payment APP.
[0147] In some embodiments, the palm-swipe payment terminal runs a mini-program framework, and users log in through palm-swipe recognition. After logging in, the merchant mini-program will have the user's identity information, allowing users to perform operations such as shopping and payment. However, due to the login scenario, user information may be vulnerable to security, such as if the user forgets to log out, which can easily lead to malicious use of the information.
[0148] The following is an explanation of the silent face recognition module in the Shuazhang Payment APP.
[0149] In some embodiments, assuming that the user keeps his hand fixed in front of the 3D palm-swiping camera for a long time, silent recognition and identity confirmation can be achieved, but this has a greater impact on the user experience, and the user needs to keep his palm suspended in the air for a long time. In response to the above problems, the technical solution provided in the embodiment of the present application adds a 3D face-swiping camera for face recognition to the palm-swiping payment terminal. After the user logs in successfully, the facial image information bound to the instant messaging account (that is, the authorized facial image) will be further obtained, and then the 3D face-swiping camera can be called for silent face collection to avoid interrupting the user's operation. The collected facial streaming data can then be transmitted to the palm-swiping back-end service for recognition.
[0150] For example, see Figure 9, which is a flow chart of the login verification method for an application provided in an embodiment of the present application, which will be explained in conjunction with the steps shown in Figure 9.
[0151] In step 201, silent recognition is performed.
[0152] In step 202, it is determined whether the two are the same person. If yes, step 201 is executed; if not, steps 203 to 205 are executed, or steps 206 to 208 are executed.
[0153] In step 203, palm swiping is performed for verification.
[0154] In step 204 , it is determined whether the verification is passed. If the verification is not passed, step 205 is executed; if the verification is passed, step 201 is executed.
[0155] In step 205, the service is terminated.
[0156] In some embodiments, during silent facial recognition, the user will continuously determine whether they are the same person. If they are the same person, silent recognition will continue. If they are not the same person, a prompt interface for palm-swipe verification will pop up on the palm-swipe payment terminal. This interface may also include the QR code information of the palm-swipe service mini-program. After the user passes the palm-swipe verification, the silent recognition process will proceed; if not, the service will be terminated directly, and in this case, it can be determined that the user is not the person.
[0157] In step 206, a QR code is displayed.
[0158] In step 207, a waiting interface is displayed.
[0159] In step 208 , state synchronization is performed and the process proceeds to step 201 .
[0160] Here, status synchronization refers to synchronizing the configuration information (such as interval time, collection frequency, etc.) set by the user on the mobile phone to the palm-swipe payment terminal.
[0161] In some embodiments, in some scenarios, such as when queuing in a supermarket, when a user has multiple items, the user may often face the items, resulting in failure to be recognized, or be recognized as the person behind. In this case, the user can choose to appropriately reduce the frequency of silent recognition, or let the user master the timing of recognition. For example, the user can previously enter the mini program for configuration on the mobile phone, or by scanning the QR code on the interface prompt when the face recognition fails. After the user scans the QR code, the service on the palm payment terminal will enter a suspended state, waiting for the user to operate on the mobile phone, pull the relevant new face silent recognition configuration information, and then start the business process.
[0162] For example, see Figure 10, which is a schematic diagram of an application scenario of the login verification method of the application provided in an embodiment of the present application. As shown in Figure 10, after the user uses a mobile phone to scan the QR code displayed on the Shua Zhang payment terminal, the user can enter the Shua Zhang service applet to display the corresponding applet interface 1001 on the mobile phone. A "face assisted verification sensitivity setting" button 1002 is displayed in the applet interface 1001. After entering the Shua Zhang service applet, the user can set the face assisted verification sensitivity setting by clicking the face assisted verification sensitivity setting button. For example, when a user clicks on the "face assisted verification sensitivity setting" button 1002, the user can enter the sensitivity setting interface 1003, which displays an "interval time" button 1004, a "visualization" button 1005, and a "restore default configuration" button 1006. The user can use the "Interval" button 1004 to set the interval time for the swipe payment terminal to perform facial recognition, that is, the interval time is the recognition interval set by the user. After the user sets the interval time, the swipe payment terminal will periodically start silent facial recognition based on the interval time currently set by the user. The "Visualization" button 1005 is used to provide a floating window interface on the swipe payment terminal to display the time interval from the current moment to the next facial recognition, so that the user can prepare for silent recognition verification in advance. The "Restore Default Configuration" button 1006 is used to quickly restore to the default silent recognition state when the user experience feels there is a problem.
[0163] Next, we will continue to explain the process control module in the Shuazhang Payment APP.
[0164] In some embodiments, if the silent facial recognition results are consistent, there will be no response. If the face changes, or the face status changes, such as the face disappearing, the palm swipe logout function will be invoked to eliminate the login state and ensure user information security.
[0165] Next, we will continue to explain the payment result page module in the Shuazhang Payment APP.
[0166] In some embodiments, the payment result page module is used to display relevant payment results. For example, when a user exits the mini program, the payment result page module will display relevant payment results, such as payment success or payment failure.
[0167] Next, the palm-swiping backend service shown in FIG8 will be described.
[0168] In some embodiments, the palm-swipe backend service mainly includes face recognition service, palm recognition service, mini-program service, and payment service. Among them, the face / palm recognition service is mainly used to extract features of the current image after receiving the face / palm image uploaded from the palm-swipe payment terminal, and compare the extracted face / palm features with the authorized face / palm features in the database to find the authorized face / palm features with the highest score, thereby obtaining the user's identity information. A successful comparison means that after successfully matching the user's identity, payment information such as a payment code can be returned to the palm-swipe payment terminal; the mini-program service is mainly used for users to obtain the user's specific mini-program login status through palm-swipe recognition, and then log in to the mini-program running on the palm-swipe payment terminal; the payment service is used by merchants to initiate payment to the payment backend after obtaining the payment code.
[0169] The login verification method for the application provided in the embodiment of the present application, by combining the user's registration for the palm-swiping application, recommends that the user bind facial-related information at the same time. When subsequently performing related applications based on palm-swiping offline, the face can be fixed in front of the device for a relatively long time, so that it can be used for silent recognition and confirmation of whether it is the same person to ensure the user's information security.
[0170] The following continues to describe an exemplary structure of the application login verification device 555 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in Figure 2, the software module stored in the application login verification device 555 in the memory 550 may include: an acquisition module 5551, a display module 5552 and a control module 5553.
[0171] The acquisition module 5551 is configured to perform an acquisition operation of a first type of biometric feature to obtain a first acquisition result; the display module 5552 is configured to display an application interface in a logged-in state in response to the first acquisition result including the first biometric feature and the first biometric feature being bound to the first account, wherein the logged-in state is a state of logging into the application based on the first account; the acquisition module 5551 is also configured to perform an acquisition operation of a second type of biometric feature to obtain a second acquisition result, wherein the second type is different from the first type; the control module 5553 is configured to control the logged-in state of the application interface based on the second acquisition result.
[0172] In some embodiments, the control module 5553 is further configured to control the application interface to remain logged in in response to the second collection result including the second biometric feature and the second biometric feature being bound to the first account.
[0173] In some embodiments, the control module 5553 is further configured to switch the application interface from a logged-in state to a non-logged-in state in response to the second collection result including a second biometric feature and the second biometric feature not being bound to the first account, wherein the non-logged-in state is a state in which the application is not logged in based on the first account.
[0174] In some embodiments, the display module 5552 is further configured to display a prompt message in response to the second collection result including the second biometric feature and the second biometric feature is not bound to the first account, wherein the prompt message is used to prompt that verification is required based on the first type of biometric feature; the collection module 5551 is further configured to perform the collection operation of the first type of biometric feature again to obtain a third collection result; the control module 5553 is further configured to determine that the verification has failed in response to the third collection result not including the first biometric feature, and switch the application interface from the logged-in state to the non-logged-in state.
[0175] In some embodiments, the control module 5553 is further configured to, in response to the third collection result including the first biometric feature, determine that the verification is passed, and control the application interface to remain in a logged-in state.
[0176] In some embodiments, the display module 5552 is further configured to display a graphic code; the login verification device 555 of the application further includes an adjustment module 5554, configured to receive configuration information sent by the second electronic device after scanning the graphic code; based on the configuration information, perform one of the following processes: adjust the frequency of performing the second type of biometric collection operation; display the time interval from the current moment to the next execution of the second type of biometric collection operation; restore the frequency of performing the second type of biometric collection operation to the default frequency.
[0177] In some embodiments, the control module 5553 is further configured to terminate the business process in the application interface in response to the graphic code being scanned; and to resume the business process in the application interface in response to receiving configuration information sent by the second electronic device.
[0178] In some embodiments, the graphic code includes an identifier of the first electronic device, which is used for the second electronic device to perform the following processing: based on the identifier, displaying a setting interface corresponding to the first electronic device, wherein the setting interface includes a sensitivity setting control; in response to a trigger operation on the sensitivity setting control, displaying a sensitivity setting interface, wherein the sensitivity setting interface includes at least one of the following controls: an interval time control, used to adjust the frequency with which the first electronic device performs the second type of biometric collection operation; a visualization control, used to display in the first electronic device the time interval from the current moment to the next execution of the second type of biometric collection operation; a restore default configuration control, used to restore the frequency with which the first electronic device performs the second type of biometric collection operation to the default frequency.
[0179] In some embodiments, the login verification device 555 of the application also includes an acquisition module 5555, configured to acquire a first distance and a second distance, wherein the first distance is the distance between the organism corresponding to the first biometric feature and the first electronic device, and the second distance is the distance between the organism corresponding to the second biometric feature and the first electronic device; the acquisition module 5551 is also configured to re-execute the acquisition operation of the second type of biometric feature in response to the difference between the second distance and the first distance being greater than the difference threshold.
[0180] In some embodiments, the login verification device 555 of the application also includes a determination module 5556, which is configured to determine that a second type of biometric collection operation will be performed in response to the biometric protection function in the second electronic device being turned on, wherein the biometric protection function is used to control the login state of the application interface based on the second type of biometric.
[0181] In some embodiments, the control module 5553 is further configured to switch the application interface from a logged-in state to a non-logged-in state in response to the second collection result not including the second biometric feature, wherein the non-logged-in state is a state in which the application is not logged in based on the first account.
[0182] In some embodiments, the determination module 5556 is further configured to determine the similarity between the first biometric and multiple authorized biometrics of the first type; and in response to the maximum similarity being greater than a similarity threshold, query the account bound to the authorized biometric corresponding to the maximum similarity as the first account.
[0183] In some embodiments, the acquisition module 5551 is further configured to perform one of the following processes: periodically performing an acquisition operation of a second type of biometric feature; performing an acquisition operation of a second type of biometric feature in response to a non-operation time period greater than a time threshold; performing an acquisition operation of a second type of biometric feature in response to a specific operation being performed in the application interface.
[0184] In some embodiments, the acquisition module 5551 is further configured to perform one of the following processes: in response to a trigger operation on a login entry in the first electronic device, perform an acquisition operation of the first type of biometric feature; periodically perform an acquisition operation of the first type of biometric feature; in response to the first electronic device entering a screen-on state from a screen-off state, perform an acquisition operation of the first type of biometric feature; in response to the detection of an organism and the distance between the organism and the first electronic device being less than a distance threshold, perform an acquisition operation of the first type of biometric feature.
[0185] In some embodiments, the control module 5553 is further configured to control the application interface to be in silent mode, wherein the silent mode is used to shield the output of prompts related to the collection operation of the second type of biometric features; the collection module 5551 is further configured to perform the collection operation of the second type of biometric features based on the silent mode.
[0186] In some embodiments, the first account is an account associated with the first organism; the collection module 5551 is further configured to pre-collect the first type of biometric features and the second type of biometric features of the first organism; the login verification device 555 of the application further includes a binding module 5557, which is configured to bind the first type of biometric features and the second type of biometric features of the first organism to the first account.
[0187] In some embodiments, the first biometric feature is one of a palm print feature and a facial feature, and the second biometric feature is the other of the palm print feature and the facial feature.
[0188] In some embodiments, the application interface is an interface in an application program that involves specific information.
[0189] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment described above, and has similar beneficial effects as the method embodiment, so it will not be repeated here. For any technical details not covered in the login verification device for the application provided in the embodiment of the present application, they can be understood based on the description of any of Figures 3, 4, or 5.
[0190] An embodiment of the present application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the computer device to perform the login verification method for the application described in the embodiment of the present application.
[0191] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the login verification method of the application provided by the embodiment of the present application, for example, the login verification method of the application shown in Figure 3, Figure 4, or Figure 5.
[0192] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0193] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0194] As an example, executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0195] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A login verification method for an application, executed by a first electronic device, the method comprising: Performing a first type of biometric feature collection operation to obtain a first collection result; In response to the first collection result including the first biometric feature, and the first biometric feature being bound to the first account, displaying an application interface in a logged-in state, wherein the logged-in state is a state of logging into the application based on the first account; Performing a second type of biometric collection operation to obtain a second collection result, wherein the second type is different from the first type; Based on the second collection result, the login state of the application interface is controlled.
2. The method according to claim 1, wherein: The controlling the login state of the application interface based on the second collection result includes: In response to the second collection result including a second biometric feature, and the second biometric feature being bound to the first account, the application interface is controlled to maintain the logged-in state.
3. The method according to claim 1 or 2, wherein: The controlling the login state of the application interface based on the second collection result includes: In response to the second collection result including a second biometric feature, and the second biometric feature has no binding relationship with the first account, the application interface is switched from the logged-in state to the unlogged-in state, wherein the unlogged-in state is a state in which the application is not logged in based on the first account.
4. The method according to claim 3, wherein: In response to the second collection result including the second biometric feature, and the second biometric feature is not bound to the first account, switching the application interface from the logged-in state to the unlogged-in state includes: In response to the second collection result including a second biometric feature, and the second biometric feature is not bound to the first account, displaying a prompt message, wherein the prompt message is used to prompt that verification based on the first type of biometric feature is required; performing the first type of biometric feature collection operation again to obtain a third collection result; In response to the third collection result not including the first biometric feature, it is determined that the verification has failed, and the application interface is switched from the logged-in state to the unlogged-in state.
5. The method according to claim 4, wherein: The method further comprises: In response to the third collection result including the first biometric feature, it is determined that the verification is passed, and the application interface is controlled to maintain the login state.
6. The method according to claim 3, wherein: The method further comprises: Display graphic code; receiving configuration information sent by the second electronic device after scanning the graphic code; Based on the configuration information, one of the following processes is performed: adjusting the frequency of performing the second type of biometric feature collection operation; Displaying the time interval from the current moment to the next execution of the second type of biometric feature collection operation; The frequency of performing the second type of biometric feature collection operation is restored to a default frequency.
7. The method according to claim 6, wherein: The method further comprises: In response to the graphic code being scanned, terminating the business process in the application interface; In response to receiving the configuration information sent by the second electronic device, the business process in the application interface is restored.
8. The method according to claim 6 or 7, wherein: The graphic code includes the identification of the first electronic device, and is used for the second electronic device to perform the following processing: Based on the identifier, displaying a setting interface corresponding to the first electronic device, wherein the setting interface includes a sensitivity setting control; In response to a trigger operation on the sensitivity setting control, a sensitivity setting interface is displayed, wherein the sensitivity setting interface includes at least one of the following controls: An interval time control, used for adjusting the frequency at which the first electronic device performs the collection operation of the second type of biometric feature; A visual control, used for displaying in the first electronic device the time interval between the current moment and the next execution of the second type of biometric feature collection operation; The default configuration restore control is used to restore the frequency at which the first electronic device performs the second type of biometric collection operation to the default frequency.
9. The method according to claim 8, wherein: Before controlling the login state of the application interface based on the second collection result, the method further includes: Acquire a first distance and a second distance, wherein the first distance is the distance between the organism corresponding to the first biometric feature and the first electronic device, and the second distance is the distance between the organism corresponding to the second biometric feature and the first electronic device; In response to the difference between the second distance and the first distance being greater than a difference threshold, the collection operation of the second type of biometric feature is re-executed.
10. The method according to claim 6, wherein: Before performing the second type of biometric feature collection operation, the method further includes: In response to a biometric protection function in the second electronic device being turned on, determining that an operation of collecting the second type of biometric will be performed, wherein the biometric protection function is used to control the login state of the application interface based on the second type of biometric.
11. The method according to claim 1, wherein: The controlling the login state of the application interface based on the second collection result includes: In response to the second collection result not including the second biometric feature, the application interface is switched from the logged-in state to a non-logged-in state, wherein the non-logged-in state is a state in which the application is not logged in based on the first account.
12. The method according to any one of claims 1 to 11, wherein: The method further comprises: determining a similarity between the first biometric characteristic and a plurality of authorized biometric characteristics of the first type; In response to the maximum similarity being greater than a similarity threshold, an account number corresponding to the maximum similarity and bound to an authorized biometric feature is queried as the first account number.
13. The method according to any one of claims 1 to 11, wherein: The performing of the second type of biometric feature collection operation includes: Perform one of the following actions: Periodically performing a second type of biometric feature collection operation; In response to the inactivity time being greater than the time threshold, performing a second type of biometric feature collection operation; In response to a specific operation being performed in the application interface, a second type of biometric feature collection operation is performed.
14. The method according to any one of claims 1 to 11, wherein: The performing of the first type of biometric feature collection operation includes: Perform one of the following actions: In response to a triggering operation on a login entry in the first electronic device, performing a first type of biometric feature collection operation; Periodically performing a first type of biometric feature collection operation; In response to the first electronic device changing from a screen-off state to a screen-on state, performing a first type of biometric feature collection operation; In response to detecting a biological body, and the distance between the biological body and the first electronic device is less than a distance threshold, performing a first type of biological feature collection operation; The performing of the second type of biometric feature collection operation includes: Controlling the application interface to be in a silent mode, wherein the silent mode is used to shield output of prompts related to the collection operation of the second type of biometric features; The second type of biometric feature collection operation is performed based on the silent mode.
15. The method according to any one of claims 1 to 11, wherein: Before performing the second type of biometric feature collection operation, the method further includes: Get the operation data of the current time period and the operation data of the previous time period; Extracting features of the operation data of the current time period and the operation data of the previous time period respectively, and correspondingly obtaining features of the operation data of the current time period and features of the operation data of the previous time period; Based on the characteristics of the operation data in the current time period and the characteristics of the operation data in the previous time period, calling the machine learning model to perform prediction processing to obtain a prediction result; In response to the prediction result indicating that the biological subject is not the same biological subject, a determination is made to perform a second type of biological feature collection operation.
16. The method according to any one of claims 1 to 11, wherein: The first account is an account associated with the first organism; The method further comprises: Pre-collecting the first type of biological features and the second type of biological features of the first biological subject; The first type of biometric feature of the first organism and the second type of biometric feature are bound to the first account.
17. The method according to any one of claims 1 to 11, wherein: The first biometric feature is one of a palm print feature and a facial feature, and the second biometric feature is the other of the palm print feature and the facial feature.
18. The method according to any one of claims 1 to 11, wherein: The application interface is an interface involving specific information in the application program.
19. A login verification device for an application, the device comprising: A collection module, configured to perform a collection operation of a first type of biometric feature to obtain a first collection result; A display module, configured to display an application interface in a logged-in state in response to the first collection result including a first biometric feature, and the first biometric feature being bound to a first account, wherein the logged-in state is a state of logging into an application based on the first account; The collection module is further configured to perform a collection operation of a second type of biometric feature to obtain a second collection result, wherein the second type is different from the first type; A control module is configured to control the login state of the application interface based on the second collection result.
20. An electronic device, comprising: A memory for storing computer executable instructions or computer programs; A processor, used to implement the login verification method of the application program described in any one of claims 1 to 18 when executing the computer executable instructions or computer program stored in the memory.
21. A computer-readable storage medium storing computer-executable instructions or a computer program, wherein when the computer-executable instructions or the computer program are executed by a processor, the login verification method of the application program according to any one of claims 1 to 18 is implemented.
22. A computer program product, comprising a computer program or a computer executable instruction, wherein when the computer program or the computer executable instruction is executed by a processor, the login verification method of the application program according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Configuration method and device of large-screen display equipment, storage medium and electronic equipment
CN111866557A
Verification processing method and device, electronic equipment and storage medium
CN114519177A
Display method and device, electronic equipment and readable storage medium
CN114578899A
Login verification method and device of application program, electronic equipment and storage medium
CN116975820A
Face login method, apparatus, computer device and storage medium
WO2021012791A1
