Method and device for opening brush palm application through off-line authorization and related product

By extracting palm feature information from the user terminal and co-relevant to the login identifier to generate scene tickets, the authorization and activation of palm brush application under network conditions is solved, and the problem of poor activation experience of palm brush application under network weakness is solved, and the user experience and retention rate is improved.

CN120372593APending Publication Date: 2025-07-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410097781.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the absence of network or unstable network signals, the experience of opening the Palm Palm App is poor, which can easily lead to user loss and low user retention rate.

Method used

Through the user terminal, feature extraction of the palm image of the target object, obtain palm feature information, and associate it with the user login identifier, generate scene tickets, and use local connections to send palm feature information to the palm brushing device to realize offline authorization to open the palm brushing application.

Benefits of technology

In the case of weak networks without networks, it improves the user's experience of opening, reduces user churn, and improves user retention rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372593A_ABST
    Figure CN120372593A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for opening a brush application through off-line authorization and a related product, in the method, a user terminal and brush equipment establish local connection, the brush equipment contains scene information, and a scene bill is generated based on the scene information and a login identifier of the user terminal. Therefore, when the palm brushing equipment sends the palm feature information acquisition request to the user terminal, the user terminal can respond to the acquisition request of the palm brushing equipment and send the palm feature information to the corresponding palm brushing equipment according to the association relationship between the scene bill and the palm feature information. Therefore, authorization opening of the brushing application corresponding to the brushing equipment is completed without the help of a network, and the problem that a user opens the brushing application under the condition of no network and weak network is solved, so that the opening experience feeling of the user is improved, the user loss is reduced, and the user retention rate is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of biometric technology, and in particular, to an offline authorization method, device, and related products for enabling palm-sweeping applications. Background Art

[0002] Currently, traditional identity verification methods such as passwords and identity documents have a series of problems. For example, they are prone to being forgotten or lost, resulting in certain security risks during the identity verification process. To improve the security and convenience of identity verification, the application of biometric technology has begun to rapidly spread.

[0003] With the rapid development of technology, palm-sweeping applications have started to enter the lives of the public. Palm-sweeping applications have broad application prospects in fields such as security authentication, payment, and identity verification. It can replace traditional passwords, identity documents, or other verification methods to provide higher security and convenience.

[0004] However, before the actual application of palm-sweeping applications, users need to enable them on the terminal device before they can be used. And the enabling of palm-sweeping applications strongly depends on the network. In some cases where the network signal is poor and unstable, or even there is no network, it is easy to lead to a poor user experience in enabling or even a failure in enabling, thereby causing user loss and having a problem of poor user retention rate. Summary of the Invention

[0005] Embodiments of the present application provide an offline authorization method, device, and related products for enabling palm-sweeping applications, aiming to solve the problem of users enabling palm-sweeping applications in the case of no network or weak network, improve the user experience in enabling, and increase the user retention rate.

[0006] The first aspect of the present application provides an offline authorization method for enabling palm-sweeping applications, and the method includes:

[0007] Extract the palm image feature of the target object through the first application of the user terminal to obtain palm feature information;

[0008] Associate the palm feature information with the user login identifier of the target object in the first application;

[0009] When the user terminal establishes a local connection with the palm-sweeping device, receive the scene information of the palm-sweeping device;

[0010] Generate a scene ticket according to the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information;

[0011] In response to the request of the palm-sweeping device to obtain the palm feature information, according to the association relationship between the scenario ticket and the palm feature information, send the palm feature information to the palm-sweeping device to instruct the target object to authorize the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0012] The second aspect of this application provides a method for offline authorization to open a palm-sweeping application, which is applied to a palm-sweeping device. The method includes:

[0013] After the palm-sweeping device establishes a local connection with the user terminal, send the scenario information of the palm-sweeping device to the user terminal; the scenario information of the palm-sweeping device is used to generate a scenario ticket with the user login identifier, and the scenario ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information. The palm feature information is obtained by the user terminal extracting features from the palm image of the target object;

[0014] Send a request to the user terminal to obtain palm feature information, so that the user terminal sends the palm feature information to the palm-sweeping device according to the association relationship between the scenario ticket and the palm feature information;

[0015] Receive the palm feature information sent by the user terminal to instruct the target object to authorize the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0016] The third aspect of this application provides a device for offline authorization to open a palm-sweeping application. The device includes:

[0017] A feature extraction module for extracting features from the palm image of the target object through a first application of the user terminal to obtain palm feature information;

[0018] An association module for associating the palm feature information with the user login identifier of the target object in the first application;

[0019] A first receiving module for receiving the scenario information of the palm-sweeping device after the user terminal establishes a local connection with the palm-sweeping device;

[0020] A generation module for generating a scenario ticket according to the scenario information and the user login identifier, and associating the scenario ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information;

[0021] A first sending module, configured to, in response to a request from the palm-sweeping device to obtain the palm feature information, send the palm feature information to the palm-sweeping device according to the association relationship between the scenario ticket and the palm feature information, so as to instruct the target object to authorize the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0022] A fourth aspect of the present application provides an offline authorization device for opening a palm-sweeping application, which is deployed on a palm-sweeping device. The device includes:

[0023] A second sending module, configured to send the scenario information of the palm-sweeping device to the user terminal after the palm-sweeping device establishes a local connection with the user terminal; the scenario information of the palm-sweeping device is used to generate a scenario ticket with the user login identifier, and the scenario ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information, and the palm feature information is obtained by the user terminal extracting features from the palm image of the target object;

[0024] A third sending module, configured to send a request for obtaining palm feature information to the user terminal, so that the user terminal sends the palm feature information to the palm-sweeping device according to the association relationship between the scenario ticket and the palm feature information;

[0025] A second receiving module, configured to receive the palm feature information sent by the user terminal, so as to instruct the target object to authorize the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0026] A fifth aspect of the present application provides an offline authorization device for opening a palm-sweeping application. The device includes a processor and a memory:

[0027] The memory is used to store a computer program and transmit the computer program to the processor;

[0028] The processor is configured to execute the steps of the offline authorization method for opening a palm-sweeping application provided in the first aspect or execute the steps of the offline authorization method for opening a palm-sweeping application provided in the second aspect according to the instructions in the computer program.

[0029] A sixth aspect of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by an offline authorization device for opening a palm-sweeping application, the steps of the offline authorization method for opening a palm-sweeping application provided in the first aspect are implemented, or the steps of the offline authorization method for opening a palm-sweeping application provided in the second aspect are implemented.

[0030] A seventh aspect of the present application provides a computer program product, including a computer program, which when executed with the palm-sweeping application device enabled by offline authorization, implements the steps of the offline authorization method for enabling the palm-sweeping application provided in the first aspect, or implements the steps of the offline authorization method for enabling the palm-sweeping application provided in the second aspect.

[0031] As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:

[0032] The embodiments of the present application provide an offline authorization method for enabling a palm-sweeping application, an apparatus, and related products. In this method, after extracting the feature information of the palm image of the target object through the first application of the user terminal, after obtaining the palm feature information, first associate the palm feature information with the user login identifier of the target object in the first application, and then when the user terminal establishes a local connection with the palm-sweeping device, generate a scene ticket according to the received scene information of the palm-sweeping device and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information. Finally, in response to the request of the palm-sweeping device to obtain the palm feature information, the palm feature information can be sent to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information, so as to indicate that the target object authorizes the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0033] It can be seen that since the user terminal establishes a local connection with the palm-sweeping device, the palm-sweeping device contains scene information, and the scene ticket is generated based on the scene information and the login identifier of the user terminal. Therefore, when the palm-sweeping device sends a request to the user terminal to obtain the palm feature information, the user terminal can respond to the acquisition request of the palm-sweeping device and send the palm feature information to the corresponding palm-sweeping device according to the association relationship between the scene ticket and the palm feature information. Thus, without relying on the network, the authorization and opening of the palm-sweeping application corresponding to the palm-sweeping device are completed, solving the problem of users opening the palm-sweeping application in the case of no network or weak network, thereby enhancing the user's opening experience, reducing user churn, and increasing the user retention rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a scene architecture diagram of an offline authorization method for enabling a palm-sweeping application provided by an embodiment of the present application;

[0035] Figure 2 It is a schematic diagram of palm-sweeping recognition provided by an embodiment of the present application;

[0036] Figure 3 It is a flowchart of an offline authorization method for enabling a palm-sweeping application provided by an embodiment of the present application;

[0037] Figure 4 It is a schematic diagram of an offline authorization for enabling a palm-sweeping application provided by an embodiment of the present application;

[0038] Figure 5 A structural schematic diagram of an offline authorization to enable a palm-sweeping application provided by an embodiment of the present application;

[0039] Figure 6 A flowchart of another method for offline authorization to enable a palm-sweeping application provided by an embodiment of the present application;

[0040] Figure 7 A schematic diagram of palm-sweeping recognition provided by an embodiment of the present application;

[0041] Figure 8 A structural schematic diagram of an offline authorization to enable a palm-sweeping application device provided by an embodiment of the present application;

[0042] Figure 9 A structural schematic diagram of another offline authorization to enable a palm-sweeping application device provided by an embodiment of the present application;

[0043] Figure 10 A structural schematic diagram of a server in an embodiment of the present application;

[0044] Figure 11 A structural schematic diagram of a terminal device in an embodiment of the present application. Detailed implementation manners

[0045] Currently, before the actual application of the palm-sweeping application, the user needs to enable it on the terminal device before it can be used normally. And the enabling of the palm-sweeping application strongly depends on the network. In some situations where the network signal is poor, unstable, or even there is no network, for example, at bus stops on viaducts or in areas with weak signals in crowded subways, etc., it is easy to cause a poor enabling experience for users or a failure to enable, thereby resulting in user loss and a problem of poor user retention rate.

[0046] In view of the above problems, in the present application, a method, device, and related products for offline authorization to enable a palm-sweeping application are provided. The purpose is to solve the problem of users enabling the palm-sweeping application in the case of no network or weak network, improve the user's enabling experience, and increase the user retention rate. In the technical solution provided by the present application, the user terminal establishes a local connection with the palm-sweeping device for data interaction. The palm-sweeping device contains scene information, and the scene ticket is generated based on the scene information and the login identifier of the user terminal. Therefore, the user terminal can respond to the request of the palm-sweeping device to obtain palm feature information, and send the palm feature information to the corresponding palm-sweeping device according to the association relationship between the scene ticket and the palm feature information. Thus, without relying on the network, the authorization and enabling of the palm-sweeping application corresponding to the palm-sweeping device are completed, solving the problem of users enabling the palm-sweeping application in the case of no network or weak network, thereby improving the user's enabling experience, reducing user loss, and increasing the user retention rate.

[0047] First, several noun terms that may be involved in the following embodiments of the present application are explained.

[0048] Palm recognition: A technology that exchanges user identity information through palm multimedia information;

[0049] 3D camera: Analogous to a traditional camera, it adds software and hardware related to liveness, including a depth camera and an infrared camera, to ensure information security;

[0050] SN: String serial number (English: Serial Number, SN), which is used to uniquely identify the identification information (English: Identification, ID) of a device;

[0051] SQLite: A lightweight database, a relational database management system that complies with ACID. ACID refers to the key features in a database management system, including atomicity, consistency, isolation, and durability.

[0052] The execution subject of the method for offline authorization to enable the palm - swiping application provided in the embodiments of the present application can be a terminal device. For example, the first application on the user terminal can extract the palm features of the target object and associate the palm feature information with the user login identifier of the target object in the first application. After the user terminal establishes a local connection with the palm - swiping device, it receives the scene information of the palm - swiping device, generates a scene ticket based on the scene information and the user login identifier, and associates the scene ticket with the palm feature information. In response to the request of the palm - swiping device to obtain palm feature information, according to the association relationship between the scene ticket and the palm feature information, it sends the palm feature information to the palm - swiping device to indicate that the target object authorizes the opening of the palm - swiping application corresponding to the palm - swiping device. As an example, the terminal device may specifically include, but is not limited to, mobile phones, desktop computers, tablet computers, laptop computers, handheld computers, intelligent voice interaction devices, intelligent home appliances, vehicle terminals, aircraft, etc.

[0053] The execution subject of the method for offline authorization to enable the palm - swiping application provided in the embodiments of the present application can also be a server. It can extract the features of the palm image of the target object. After the user terminal corresponding to the server establishes a local connection with the palm - swiping device, in response to the request of the palm - swiping device to obtain palm feature information, according to the association relationship between the scene ticket and the palm feature information, it sends the palm feature information to the palm - swiping device to indicate that the target object authorizes the opening of the palm - swiping application corresponding to the palm - swiping device.

[0054] The execution subject of the method for offline authorization to enable the palm-sweeping application provided by the embodiments of the present application may also be a palm-sweeping device. After the palm-sweeping device establishes a local connection with the user terminal, the palm-sweeping device may send the scenario information of the palm-sweeping device to the user terminal, and then may send a request to obtain palm feature information to the user terminal, so that the user terminal sends the palm feature information to the palm-sweeping device, thereby receiving the palm feature information to instruct the target object to authorize the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0055] The method for offline authorization to enable the palm-sweeping application provided by the embodiments of the present application may also be executed collaboratively by the terminal device and the palm-sweeping device, or the server and the palm-sweeping device. For example, after the terminal device and the palm-sweeping device establish a local connection, data interaction is performed between the terminal device and the palm-sweeping device. When the palm-sweeping device receives the palm feature information sent by the user terminal, it means that the target object authorizes the opening of the palm-sweeping application corresponding to the palm-sweeping device. Therefore, in the embodiments of the present application, there is no limitation on the implementation subject for executing the technical solution of the present application.

[0056] Figure 1 An exemplary scenario architecture diagram of a method for offline authorization to enable the palm-sweeping application is shown. Figure 1 It includes that the palm-sweeping device and the portable terminal device establish a local connection through Bluetooth. Different from traditional card-sweeping devices, the palm-sweeping device uses palm recognition technology to verify the user's identity without relying on cards or passwords. The palm-sweeping device usually consists of a device with a high-resolution camera, and reference can be made to Figure 2 , Figure 2 which is a schematic diagram of palm recognition provided by the embodiments of the present application. The user only needs to place the palm above the induction area of the device, and the palm-sweeping device can read the palmprint image of the palm, and then complete the user's identity verification by comparing it with the palmprint image stored when the palm-sweeping device is opened, providing a convenient, efficient, and secure identity verification method through palm recognition technology. Or the palm-sweeping device can also perform data interaction with the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. In addition, the server can also be a cloud server providing 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, CDN, and big data and artificial intelligence platforms.

[0057] Figure 3 This is a flowchart of a method for offline authorization to enable the palm-sweeping application provided by the embodiments of the present application. As Figure 3 shown in the method, it includes:

[0058] S301: Extract features from the palm image of the target object through the first application of the user terminal to obtain palm feature information.

[0059] The user can take a picture of the user's palm through an application in the user terminal according to preset requirements. As an example, the preset requirements can be that the user needs to take the picture under high visibility to avoid a low visibility of the captured image, so that the palm image features cannot be extracted. Or, the preset requirements can also be that the user needs to capture the entire palm image to avoid too small a coverage area of the captured palm image, making it impossible to accurately extract features of the entire palm image, etc.

[0060] Since most of the cameras on user terminals are color cameras, the images captured based on the user terminal are color images, and single-factor recognition can be performed, so single-factor feature extraction can be carried out on the user's palm image. Single-factor recognition refers to a method of identity recognition and verification through a single factor. For example, feature extraction is performed through a single color element in a color image.

[0061] In a possible implementation manner, before performing feature extraction on the user's palm image, quality screening and liveness detection can be performed on the user's palm image, and then feature extraction is performed on the screened palm image. As an example, quality screening refers to comprehensively selecting the palm picture with the best quality through coefficient indicators such as palm size, angle, image contrast, image brightness, and clarity. Liveness detection is used to verify whether the palm information in the image is real, aiming to distinguish forged non-living palm images. For example, liveness detection of the palm image can be performed through texture analysis, light change analysis, and depth information analysis.

[0062] Single-factor feature extraction is performed on the screened palm image. After feature extraction, the original captured image can be deleted, and the obtained palm feature information is used for subsequent comparison and recognition.

[0063] S302: Associate the palm feature information with the user login identifier of the target object in the first application.

[0064] The user login identifier of the first application can be a login ticket token. Since the embodiments of this application are related to offline applications based on terminal devices in a no-network or weak-network situation, after obtaining the feature information of the palm, the login ticket of the first application can be further obtained, and the login ticket is uniquely associated with the palm feature information, so that the palm feature information is uniquely associated with the user's login identity information. The login identity information of a user uniquely corresponds to a palm feature information. Among them, the login ticket token in the application program is an access token issued by the application program open platform, which is used to verify the user's identity information and implement the access authorization of the user in the third-party application. When the user selects to log in with the identity of the first application in the third-party application, the third-party application will guide the user to enter the authorization page of the first application. After the authorization is successful, the first application will return an access token, that is, the login ticket token, to the third-party application. That is to say, the embodiments of this application are equivalent to a third-party application or a small program in the first application. Log in to the third-party application with the identity of the first application. After obtaining the feature information of the palm, obtain the login ticket of the first application, so as to associate the token with the palm feature information.

[0065] S303: After the user terminal establishes a local connection with the palm brushing device, receive the scene information of the palm brushing device.

[0066] In a possible implementation manner, the user needs to first authorize the local connection request of the palm brushing device on the terminal device to allow receiving local connection access from the palm brushing device, so as to establish a connection relationship with the palm brushing device and perform data interaction. As an example, the local connection methods include Bluetooth connection, local area network connection, wifi direct connection (Wireless Fidelity Direct, wifi-Direct) or connection through the Universal Serial Bus (USB).

[0067] In a possible implementation manner, after the user authorizes the local connection request of the palm brushing device, it means that the user terminal allows receiving local connection access from the palm brushing device. The user terminal receives the connection request of the palm brushing device and can authenticate the palm brushing device. Only when the verification result is passed, it means that the user terminal successfully establishes a local connection with the palm brushing device.

[0068] As an example, secure communication can be implemented based on Bluetooth. The security mode of Bluetooth can be used to establish a secure connection between the user terminal and the palm brushing device. For example, the authentication mode is used, that is, the authentication of the palm brushing device mentioned above. Before establishing a local connection, the two devices need to authenticate each other, and encrypted communication can also be maintained during the connection.

[0069] For example, the authentication process includes the palm brushing device sending a connection request to the user terminal. After receiving the connection request, the user terminal generates a random number and sends the generated random number to the palm brushing device. After receiving the random number sent by the user terminal, the palm brushing device can use a pre-shared key, that is, the key agreed upon by the palm brushing device and the user terminal, to encrypt the random number, thereby obtaining an encrypted result and sending the encrypted result to the user terminal. After receiving the encrypted result sent by the palm brushing device, the user terminal can use the agreed key to decrypt the encrypted result, thereby obtaining a decrypted result. The decrypted result is compared with the generated random number. If the two random numbers are the same, it means that both have successfully passed the authentication and a local connection can be successfully established. Or, the authentication process can also include that after the two random numbers match successfully, the user terminal can also send a confirmation message to the palm brushing device. After receiving the confirmation message sent by the user terminal, the palm brushing device will send a similar confirmation message to the user terminal. If the user terminal receives the confirmation message sent by the palm brushing device and the two random numbers match successfully, it means that the user terminal and the palm brushing device have successfully established a local connection.

[0070] After the user authorizes the local connection request of the palm brushing device, when the user approaches the palm brushing device with a terminal device in a no-network or weak-network state, after the local connection request passes, it means that the terminal device and the palm brushing device have successfully established a local connection, enabling secure data interaction between the two subsequently.

[0071] In addition, during the interaction between the user terminal and the palm brushing device, an encryption algorithm can be used to encrypt the communication. For example, the Advanced Encryption Standard (AES), a symmetric encryption algorithm, is used to encrypt the data, thereby transmitting encrypted data during the interaction. Through this authentication method and encrypted communication method, it can be ensured that the data is secure during transmission and cannot be accessed by unauthorized devices, further enhancing the security of data interaction.

[0072] Therefore, after the user terminal and the palm brushing device successfully establish a local connection, the user terminal can receive the scene information sent by the palm brushing device, and thus can associate the scene information with the palm feature information. The scene information of the palm brushing device refers to the information used to identify the scene where the palm brushing device is located. For example, the ID code of the palm brushing device in different scenes, or the SN code of the palm brushing device. Since the palm brushing device can be deployed on buses, convenience stores, subway stations, and access control systems, the ID codes of the palm brushing devices in different scenes are different. For example, the ID code of the palm brushing device may contain coordinate information in a specific area.

[0073] S304: Generate a scene ticket based on the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information.

[0074] In a possible implementation manner, the scene information of the palm brushing device and the user login identifier can be input into a random number generator (RNG for short), so as to generate a scene ticket scene_palm_token. The scene ticket is a randomly generated string. The random number generator is a program or device for generating random numbers. For example, the random number generator MT19937 or SHA-256. Inputting the scene ID of the palm brushing device and the login token into the random number generator, enough random bytes can be obtained from the random number generator to generate a random string of a specified length, and then the string can be converted into the required character set. For example, Base64 encoding can be used for conversion. Thus, a randomly generated, one-time scene ticket that can only be applied to the one-time request of the feature can be obtained, and the scene ticket also includes timeliness information. For example, the scene ticket has an expiration time, and the scene ticket can only be used for palm recognition within a specific time period, which improves the security of the palm brushing recognition process. Since the scene ticket is generated based on the scene information, the use of the scene is restricted, further ensuring the security of authorization in the offline scene.

[0075] Since the palm feature information is associated with the user login identifier, the scene ticket and the palm feature information can be associated according to the association relationship between the login ticket and the palm feature information. Associating the scene ticket and the palm feature information together restricts the application scenario of the palm feature information, thus ensuring the security of authorization in the offline scene.

[0076] In addition, the user terminal can also store the palm feature information, the association relationship between the login ticket and the palm feature information, and the association relationship between the scene ticket and the palm feature information in an encrypted database.

[0077] As an example, taking the terminal device as an Android system, SQLite database can be used to store data, and the following components can also be used to ensure secure storage. Of course, the embodiments of the present application are not limited to the Android system, and can also be an iOS system, etc. The present application does not specifically limit the application system.

[0078] In a possible implementation, the SQLite database can encrypt the database using an encryption algorithm. The encryption function can be implemented through the SQLCipher library for encrypted databases provided by the Android system to protect data confidentiality. Thus, the palm feature information, the association relationship between the login ticket and the palm feature information, and the association relationship between the scenario ticket and the palm feature information can be stored in the encrypted database.

[0079] In addition, the encrypted database can also use the ContentProvider component provided by the Android system to perform access control on the SQLite database. Through the ContentProvider component, access permissions can be set to ensure that only authorized applications can access the database. The SharedPreferences data storage component provided by the Android system can also be used to store sensitive data. Through the SharedPreferences component, the data in the database can be encrypted and stored. To prevent data loss, the Backup API data backup mechanism provided by the Android system can be used to back up the SQLite database. The backup data can be stored in the cloud to ensure that the data stored in the database can be restored even if the device is damaged or lost. Finally, to prevent the code from being exploited by attackers, secure coding practices can also be used to write the application. For example, parameterized queries are used instead of string concatenation to execute Structured Query Language (SQL) queries to avoid injection attacks in SQL query statements.

[0080] Therefore, the encrypted database in the embodiments of the present application has functions of access control, encrypted data storage, and backup. By storing the palm feature information, the association relationship between the login ticket and the palm feature information, and the association relationship between the scenario ticket and the palm feature information in the encrypted database, the security and integrity of the stored data can be ensured.

[0081] S305: In response to a request from the palm brushing device to obtain palm feature information, send the palm feature information to the palm brushing device according to the association relationship between the scenario ticket and the palm feature information to instruct the target object to authorize the activation of the palm brushing application corresponding to the palm brushing device.

[0082] When the palm-sweeping device sends a request to the user terminal to obtain palm feature information, the user terminal can send the corresponding palm feature information to the palm-sweeping device based on the association relationship between the scene ticket and the palm feature information, thus completing the user authorization to activate the palm-sweeping application corresponding to the palm-sweeping device. Since the palm-sweeping device contains the scene information where the current device is located, that is, the scene ID of the palm-sweeping device, and the scene ticket is generated based on the scene code and the login ticket, and there is an association relationship between the scene ticket and the palm feature information, therefore, the user terminal can send the corresponding palm feature information to the palm-sweeping device based on the association relationship between the scene ticket and the palm feature information, improving the security of authorization in the offline scenario. The palm-sweeping application corresponding to the palm-sweeping device refers to the application program associated with the palm-sweeping device, which is used for identity verification in different scenarios. For example, the payment system corresponding to the palm-sweeping device or the access control system corresponding to the palm-sweeping device, etc.

[0083] for reference Figure 4 , Figure 4 FIG. Figure 4 is a schematic diagram of an offline authorization to activate a palm-sweeping application provided by an embodiment of the present application. First, the user terminal can take a picture of the user's palm, and then the user terminal can perform quality screening on the palm image and extract features from the palm image after quality screening to obtain palm feature information. After associating the palm feature information with the login ticket, the user terminal can then return a notification message indicating successful association to the user. The user terminal establishes a local connection with the palm-sweeping device terminal. The palm-sweeping device terminal sends scene information to the user terminal. The user terminal generates a scene ticket based on the scene information and the login ticket, and associates the scene ticket and the palm feature information. Then, in response to the request from the palm-sweeping device terminal to obtain palm feature information, according to the association relationship between the scene ticket and the palm feature information, the user terminal sends the corresponding palm feature information to the palm-sweeping device terminal to indicate that the user authorizes to activate the palm-sweeping application corresponding to the palm-sweeping device terminal. Finally, the palm-sweeping device terminal can return a notification message indicating successful authorization to activate the palm-sweeping application to the user terminal.

[0084] In a possible implementation manner, after the authorization activation is completed, the user terminal can receive a notification message indicating successful completion of the authorization activation. Subsequently, the palm-sweeping device can also store the received palm feature information locally in the palm-sweeping device, so that when the user performs palm-sweeping recognition, the palm-sweeping device can directly compare and identify the palm feature information collected on-site with the local palm feature information, thereby completing the use of the palm-sweeping application without relying on the network, improving the user experience.

[0085] The palm of the user is photographed through a terminal, and the obtained palm image is a color picture. The feature extraction process is single-factor feature extraction, and subsequent palm recognition is performed based on the palm feature information obtained from the single-factor feature extraction. In the embodiments of the present application, in order to further improve the accuracy of the palm recognition process, palm recognition can be performed based on the palm feature information and the user's credit rating.

[0086] In a possible implementation manner, the palm feature information collected on-site can be recognized based on the palm feature information and the user's credit rating. In response to a request from the palm brushing device to obtain the user's credit rating, the user's credit rating can be queried based on the user login identifier, that is, the login ticket. Since the login ticket refers to the user's login identity information, the user's credit rating can be queried based on the user's login ticket. Then, the user's credit rating can be sent to the palm brushing device, so that the palm brushing device can recognize the palm feature information collected on-site based on the palm feature information and the user's credit rating, further improving the accuracy of the palm recognition process.

[0087] As an example, the credit rating can be reflected in the form of a credit score. The user's credit rating is 30 points, that is, the user's credit rating is relatively low. When the current application scenario of the palm brushing device is large-amount payment, even if the palm feature information collected on-site is compared and recognized through the palm feature, and the recognition result is successful, the use function of the palm brushing application is not enabled for the current user based on the current user's credit rating. By adding the palm recognition method of the user's credit rating, the application types in the offline scenario are restricted, the accuracy of the palm recognition process is improved, and the security of the palm brushing application is ensured.

[0088] See Figure 5 , Figure 5 FIG. is a schematic structural diagram of an offline authorization to enable a palm brushing application provided by an embodiment of the present application, which mainly includes an application program backend service, an application program, and a palm brushing application program provided by an embodiment of the present application. The application program is mainly reflected through a user terminal. The application program mainly includes a terminal 2D camera, a mini-program module, a ticket association module, a palm feature extraction service, a database (English: Database, DB), and a login state module. The mini-program module refers to a palm brushing application provided by an embodiment of the present application that can be reflected in the application program in the form of a mini-program. The ticket association module is used to record the association relationship between the palm feature information and the login ticket, and the association relationship between the palm feature information and the scenario ticket. The database is used to store the palm feature information. The palm feature extraction service is used to extract features from the palm image. The login state module is used to record the user's login state and permissions.

[0089] The offline palm-sweeping device terminal and the 3D camera constitute the hardware part corresponding to the palm-sweeping application program. The palm-sweeping application program includes a palm-sweeping collection and recognition module, a temporary ticket verification module, a database, and a result page module. The palm-sweeping collection and recognition module can be used to collect the palm feature information of users on-site and can also be used for palm recognition. The temporary ticket verification module is used to upload the scene tickets with timeliness requirements to the backend service for verification. The result page module is used to display and record the recognition results of palm-sweeping recognition. The database is used to record the palm feature information collected on-site, the received palm feature information, and the recognition results of palm-sweeping recognition.

[0090] The application program backend service can include a palm update service, a palm service, a database, a payment service, and a temporary ticket verification service. The palm update service is used to update the palm feature information, including updating the infrared palm feature information. The palm service is used to record all the processing processes related to the palm feature information in the application program and the palm-sweeping application program. The database is used to record the data related to the application program backend service. The payment service is used to record the data related to the palm feature information in the payment state. The temporary ticket verification service is used to verify the scene tickets with timeliness requirements uploaded by the palm-sweeping application program.

[0091] The embodiment of the present application provides an offline authorization method for opening a palm-sweeping application. In this method, after extracting the feature of the palm image of the target object through the first application of the user terminal and obtaining the palm feature information, first associate the palm feature information with the user login identifier of the target object in the first application. Then, after the user terminal establishes a local connection with the palm-sweeping device, generate a scene ticket according to the received scene information of the palm-sweeping device and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information. Finally, in response to the request of the palm-sweeping device to obtain the palm feature information, the palm feature information can be sent to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information, so as to indicate that the target object authorizes to open the palm-sweeping application corresponding to the palm-sweeping device.

[0092] It can be seen that since the user terminal establishes a local connection with the palm-sweeping device, the palm-sweeping device contains scene information, and the scene ticket is generated based on the scene information and the login identifier of the user terminal. Therefore, when the palm-sweeping device sends a request to the user terminal to obtain the palm feature information, the user terminal can respond to the acquisition request of the palm-sweeping device and send the palm feature information to the corresponding palm-sweeping device according to the association relationship between the scene ticket and the palm feature information. Thus, without relying on the network, the authorization to open the palm-sweeping application corresponding to the palm-sweeping device is completed, solving the problem of users opening the palm-sweeping application in the case of no network or weak network, thereby improving the user's opening experience, reducing user churn, and increasing user retention rate.

[0093] See Figure 6 , Figure 6 which is a flowchart of another method for offline authorization to enable the palm-sweeping application provided by an embodiment of this application.

[0094] In Figure 6 the offline authorization method for enabling the palm-sweeping application described above, this method is applied to a palm-sweeping device and includes:

[0095] S601: After the palm-sweeping device establishes a local connection with the user terminal, send the scene information of the palm-sweeping device to the user terminal.

[0096] The palm-sweeping device sends the scene information of the current device to the user terminal, enabling the user terminal to generate a scene ticket based on the scene information, and then associate the palm feature information with the scene ticket according to the association relationship between the login ticket and the palm feature information. The palm feature information is obtained by the user terminal extracting features from the user's palm image.

[0097] S602: Send a request to obtain the palm feature information to the user terminal, so that the user terminal sends the palm feature information to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information.

[0098] S603: Receive the palm feature information sent by the user terminal to indicate that the target object authorizes the opening of the palm-sweeping application corresponding to the palm-sweeping device.

[0099] When the palm-sweeping device receives the palm feature information sent by the user terminal, it means that the user authorizes the opening of the palm-sweeping application corresponding to the current palm-sweeping device.

[0100] In a possible implementation manner, after the authorization to enable the palm-sweeping application is completed, a notification message indicating successful completion of the authorization can be sent to the user terminal. When the user performs palm-sweeping recognition on the current palm-sweeping device, the 2D camera of the palm-sweeping device can collect the current streaming media data of the user, that is, the video image of the user's palm. Then, quality screening can be performed on each frame of the video image of the palm. The optimal palm image, that is, the screened palm image, can be comprehensively selected through coefficient indicators such as palm size, angle, image contrast, image brightness, and clarity. After that, feature extraction can be performed on the screened palm image to obtain the palm feature information collected on-site by the user. Finally, the palm feature information collected on-site can be retrieved in the database to confirm the user's identity, that is, the palm feature information collected on-site can be compared and recognized with the palm feature information stored locally in the palm-sweeping device to obtain the recognition result. Based on the recognition result, the user's identity can be confirmed, so that the use of the palm-sweeping application can be realized in the case of no network or weak network.

[0101] In a possible implementation, the palm feature information collected on-site can be identified based on the palm feature information and the user's credit rating. The palm-scanning device sends a request to the user terminal to obtain the user's credit rating, enabling the user terminal to query the user's credit rating based on the login ticket. Since the login ticket refers to the user's login identity information, the user's credit rating can be queried based on the user's login ticket. Then, the palm-scanning device can receive the user's credit rating and identify the palm feature information collected on-site based on the palm feature information and the user's credit rating, improving the accuracy of the palm recognition process.

[0102] In addition, when the recognition result of palm recognition is successful, it means that the palm feature information collected on-site is the same as the palm feature information stored locally in the palm-scanning device, and the corresponding palm-scanning application of the palm-scanning device can be used. Since the feature extraction of the palm image by the user terminal is single-factor feature extraction, and the user has successfully authorized to activate and use the palm-scanning application, that is, the user has enabled it on the palm-scanning device and has the relevant information of the infrared image. Therefore, the infrared information corresponding to the palm image can be further supplemented, and the feature extraction of two factors is performed to increase the security and accuracy of palm-scanning recognition, effectively ensuring the security of palm-scanning recognition.

[0103] In a possible implementation, the infrared palm information of the user can be collected by the 3D camera of the palm-scanning device, and the infrared palm information and the corresponding palm feature information can be combined, that is, the infrared palm information and the palm feature information obtained by single-factor feature extraction before can be combined to obtain the infrared palm feature information.

[0104] Therefore, subsequent palm recognition can be based on the infrared palm feature information. Since it is necessary to compare and identify with the infrared palm information collected on-site, the infrared palm feature information collected next time on-site needs to be obtained by photographing the user's palm with the 3D camera to obtain the user's infrared palm information. Then, after the quality screening of the user's infrared palm information, the two-factor feature extraction is performed on the infrared palm information after quality screening to obtain the infrared palm feature information collected on-site. Therefore, only the first palm-scanning recognition is single-factor recognition, and the subsequent recognition process is two-factor recognition, effectively ensuring the security of palm-scanning recognition.

[0105] Moreover, when the user terminal is connected to the network, the current authorized scenario information can be synchronized to the cloud, that is, the association relationship between the scenario ticket and the palm feature information can be synchronized to the cloud. Since the scenario ticket is generated based on the scenario information of the palm brushing device, it is possible to clearly know the scenario when the user previously authorized the opening of the palm brushing application in the offline state. Since the user's palm feature information is associated with the scenario ticket, and the infrared palm feature information is generated based on the palm feature information, the infrared palm feature information is also associated with the scenario ticket. Therefore, the infrared palm feature information in the current authorized scenario can also be sent back to the cloud for storage, thus ensuring the security of the data in the authorized scenario.

[0106] After that, the synchronization result can also be sent to the palm brushing device. When the synchronization result is successful, in the subsequent palm recognition process, the infrared palm feature information collected on-site by the user can be recognized based on the infrared palm information, thereby improving the accuracy of palm recognition.

[0107] Since the scenario ticket contains timeliness information that can be used in the verification process of palm brushing recognition, reference can be made to Figure 7 , Figure 7 which is a schematic diagram of palm brushing recognition provided by an embodiment of the present application. The application type of the offline scenario of the palm brushing device can be extended based on the scenario ticket. For example, it can be applied to an access control system, or the ID information of the relevant user can be queried through the scenario ticket.

[0108] First, the user terminal establishes a local connection with the palm brushing device terminal. The palm brushing device terminal sends scenario information to the user terminal. The user terminal generates a scenario ticket based on the scenario information and the login ticket, and associates the scenario ticket with the palm feature information. Then, in response to the request of the palm brushing device terminal to obtain the palm feature information, according to the association relationship between the scenario ticket and the palm feature information, the corresponding palm feature information is sent to the palm brushing device terminal to indicate that the user authorizes the opening of the corresponding palm brushing application on the palm brushing device terminal. Finally, the palm brushing device terminal can return a notification message to the user terminal indicating successful authorization to open the palm brushing application.

[0109] Thus, the authorization to activate the palm-sweeping application is completed. Then, when the user conducts palm-sweeping recognition on the palm-sweeping device, the palm feature information stored locally on the palm-sweeping device can be used to identify with the palm feature information collected on-site, and based on the association relationship between the palm feature information and the scene ticket, the scene ticket can be obtained. Since the scene ticket contains timeliness information, for example, the valid duration of the scene ticket is 5 minutes. Therefore, the scene ticket can be sent to the application backend for verification. The application backend can verify the valid duration of the obtained scene ticket. If the obtained scene ticket is within the valid period, it indicates successful verification; if the obtained scene ticket is not within the valid period, it indicates failed verification. The application backend can return the verification result to the palm-sweeping device, then the palm-sweeping device returns it to the user terminal, and finally to the target object. Finally, after connecting to the network, the user terminal can also re-upload the infrared palm feature information and the association relationship between the scene ticket and the palm feature information to the application backend for storage, and the application backend can return the upload result indicating whether the upload is successful.

[0110] Thus, palm-sweeping recognition can be performed through the scene ticket. Since the scene ticket contains the scene information of the palm-sweeping device and adds a time limit, the security of palm-sweeping recognition is improved.

[0111] The embodiment of the present application provides another method for offline authorization to activate the palm-sweeping application. In this method, after the palm-sweeping device establishes a local connection with the user terminal, it can send the scene information of the palm-sweeping device to the user terminal. The scene information of the palm-sweeping device is used to generate a scene ticket with the user login identifier. The scene ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information. The palm feature information is obtained by the user terminal through feature extraction of the palm image of the target object. It can also send a request to obtain the palm feature information to the user terminal, so that the user terminal can send the palm feature information to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information. Receive the palm feature information sent by the user terminal to indicate that the target object authorizes the activation of the palm-sweeping application corresponding to the palm-sweeping device.

[0112] It can be seen that since the user terminal establishes a local connection with the palm-sweeping device, the palm-sweeping device contains scene information, and the scene ticket is generated based on the scene information and the login identifier of the user terminal. Therefore, when the palm-sweeping device sends a request to obtain the palm feature information to the user terminal, the user terminal can respond to the acquisition request of the palm-sweeping device and send the palm feature information to the corresponding palm-sweeping device according to the association relationship between the scene ticket and the palm feature information. Thus, without relying on the network, the authorization to activate the palm-sweeping application corresponding to the palm-sweeping device is completed, solving the problem of users activating the palm-sweeping application in the case of no network or weak network, thereby improving the user's activation experience, reducing user churn, and increasing user retention rate.

[0113] Based on the offline authorization and activation method for the palm-sweeping application provided in the foregoing embodiments, the present application correspondingly provides an offline authorization and activation device for the palm-sweeping application. The following is described in conjunction with Figure 8 this Figure 8 FIG. is a schematic structural diagram of the offline authorization and activation device for the palm-sweeping application provided in the embodiments of the present application. The device includes:

[0114] A feature extraction module 801, configured to extract features from a palm image of a target object through a first application of a user terminal to obtain palm feature information;

[0115] An association module 802, configured to associate the palm feature information with a user login identifier of the target object in the first application;

[0116] A first receiving module 803, configured to receive scene information of the palm-sweeping device when the user terminal establishes a local connection with the palm-sweeping device;

[0117] A generation module 804, configured to generate a scene ticket according to the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information;

[0118] A first sending module 805, configured to, in response to a request from the palm-sweeping device to obtain the palm feature information, send the palm feature information to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information, so as to instruct the target object to authorize the activation of the palm-sweeping application corresponding to the palm-sweeping device.

[0119] Optionally, the device further includes:

[0120] A first receiving unit, configured to receive notification information, so that the palm-sweeping device, when a target object performs palm recognition, recognizes the palm feature information collected on-site by the target object based on the palm feature information; the notification information is used to instruct the target object to complete the authorization and activation of the palm-sweeping application.

[0121] Optionally, the device further includes:

[0122] A first screening unit, configured to perform quality screening on a palm image of a target object to obtain a screened palm image;

[0123] Correspondingly, the feature extraction module 801 includes:

[0124] A first feature extraction unit, configured to extract features from the screened palm image through a first application of a user terminal to obtain palm feature information.

[0125] Optionally, the device further includes:

[0126] An authentication unit, configured to receive a connection request from a palm-sweeping device, authenticate the palm-sweeping device, and obtain an authentication result;

[0127] A connection establishment unit, configured to establish a local connection between the user terminal and the palm-sweeping device when the authentication result is passed.

[0128] Optionally, the authentication unit includes:

[0129] A generation unit, configured to receive a connection request from a palm-sweeping device and generate a random number;

[0130] An encryption unit, configured to send the random number to the palm-sweeping device, so that the palm-sweeping device encrypts the random number according to a key agreed upon with the user terminal to obtain an encryption result;

[0131] A decryption unit, configured to receive the encryption result sent by the palm-sweeping device, decrypt the encryption result according to a key agreed upon with the palm-sweeping device, and obtain a decryption result;

[0132] A comparison unit, configured to compare the decryption result with the random number to obtain an authentication result.

[0133] Optionally, the generation module 804 includes:

[0134] An input unit, configured to input the scenario information and the user login identifier into a random number generator to generate a scenario ticket; the scenario ticket includes timeliness information.

[0135] Optionally, the device further includes:

[0136] A query unit, configured to, in response to a first request from the palm-sweeping device, query the credit rating of the target object according to the user login identifier; the first request is a request to obtain the credit rating of the target object;

[0137] A first recognition unit, configured to send the credit rating of the target object to the palm-sweeping device, so that the palm-sweeping device recognizes the palm feature information collected on-site of the target object according to the palm feature information and the credit rating of the target object.

[0138] Optionally, the device further includes:

[0139] A storage unit, configured to store the palm feature information through an encrypted database; the encrypted database is obtained by encrypting a database through an encryption algorithm, and the encrypted database includes an access control function, an encrypted storage data function, and a backup function.

[0140] Based on the off-line authorization method for enabling the palm-sweeping application provided in the foregoing embodiments, the present application also correspondingly provides another device for off-line authorization to enable the palm-sweeping application. The following is described in conjunction with Figure 9 this Figure 9 FIG. is a schematic structural diagram of another device for off-line authorization to enable the palm-sweeping application provided in an embodiment of the present application. The device includes:

[0141] A second sending module 901, configured to send the scene information of the palm-sweeping device to the user terminal after the palm-sweeping device establishes a local connection with the user terminal; the scene information of the palm-sweeping device is used to generate a scene ticket with the user login identifier, and the scene ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information, and the palm feature information is obtained by the user terminal extracting features from the palm image of the target object;

[0142] A third sending module 902, configured to send a request for obtaining palm feature information to the user terminal, so that the user terminal sends the palm feature information to the palm-sweeping device according to the association relationship between the scene ticket and the palm feature information;

[0143] A second receiving module 903, configured to receive the palm feature information sent by the user terminal to indicate that the target object authorizes to enable the palm-sweeping application corresponding to the palm-sweeping device.

[0144] Optionally, the device further includes:

[0145] A first sending unit, configured to send notification information to the user terminal, and the notification information is used to indicate that the target object completes the authorization to enable the palm-sweeping application;

[0146] A photographing unit, configured to photograph the palm of the target object based on a camera when the target object performs palm recognition to obtain a palm image of the target object;

[0147] A second screening unit, configured to perform quality screening on the palm image to obtain a screened palm image;

[0148] A second feature extraction unit, configured to extract features from the screened palm image to obtain palm feature information collected on-site by the target object;

[0149] A second recognition unit, configured to recognize the palm feature information collected on-site by the target object according to the received palm feature information to obtain a recognition result.

[0150] Optionally, when the recognition result is successful recognition, the device further includes:

[0151] An acquisition unit, configured to acquire infrared palm information of the target object based on a camera;

[0152] A combination unit, configured to combine the infrared palm information and the palm feature information to obtain infrared palm feature information;

[0153] A synchronization unit, configured to send the infrared palm feature information to the user terminal, so that when the user terminal is in an online state, synchronize the infrared palm feature information and the association relationship between the scene ticket and the palm feature information to the cloud, and send a synchronization result to the palm brushing device;

[0154] A third recognition unit, configured to, when receiving that the synchronization result is successful, recognize the infrared palm feature information collected on-site by the target object next time; the infrared palm feature information collected on-site next time is obtained by performing feature extraction on the infrared palm information of the target object.

[0155] Optionally, the device further includes:

[0156] A second sending unit, configured to send a second request to the user terminal, so that the user terminal queries according to the user login identifier; the second request is a request for obtaining the credit rating of the target object;

[0157] A second receiving unit, configured to receive the credit rating of the target object sent by the user terminal;

[0158] A fourth recognition unit, configured to recognize the palm feature information collected on-site by the target object according to the palm feature information and the credit rating of the target object.

[0159] An embodiment of the present application provides an offline authorization and activation device for a palm brushing application, and the device can be a server. Figure 10FIG. 0 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 900 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and a memory 932, and one or more storage media 930 (for example, one or more mass storage devices) for storing application programs 942 or data 944. Among them, the memory 932 and the storage media 930 may be transient storage or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processing unit 922 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the server 900.

[0160] The server 900 may further include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input / output interfaces 958, and / or one or more operating systems 941.

[0161] Among them, the CPU 922 is used to execute the following steps:

[0162] Extract the palm feature information from the palm image of the target object through the first application of the user terminal to obtain the palm feature information;

[0163] Associate the palm feature information with the user login identifier of the target object in the first application;

[0164] When the user terminal establishes a local connection with the palm brushing device, receive the scene information of the palm brushing device;

[0165] Generate a scene ticket according to the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information;

[0166] In response to the request of the palm brushing device to obtain the palm feature information, send the palm feature information to the palm brushing device according to the association relationship between the scene ticket and the palm feature information to instruct the target object to authorize the opening of the palm brushing application corresponding to the palm brushing device.

[0167] Or, execute the following steps:

[0168] After the palm-sweeping device establishes a local connection with the user terminal, it sends the scenario information of the palm-sweeping device to the user terminal; the scenario information of the palm-sweeping device is used to generate a scenario ticket with the user login identifier, and the scenario ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information, and the palm feature information is obtained by the user terminal extracting features from the palm image of the target object;

[0169] Send a request to the user terminal to obtain the palm feature information, so that the user terminal sends the palm feature information to the palm-sweeping device according to the association relationship between the scenario ticket and the palm feature information;

[0170] Receive the palm feature information sent by the user terminal to indicate that the target object authorizes to open the palm-sweeping application corresponding to the palm-sweeping device.

[0171] The embodiment of the present application also provides another device for offline authorizing and opening a palm-sweeping application, and this device can be a terminal device. As Figure 11 shown, for the convenience of description, only the parts related to the embodiment of the present application are shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present application. Taking this terminal device as a mobile phone as an example:

[0172] Figure 11 What is shown is a block diagram of a part of the structure of the mobile phone provided by the embodiment of the present application. Referring to Figure 11 , the mobile phone includes: a radio frequency (full English name: Radio Frequency, English abbreviation: RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (full English name: wirelessfidelity, English abbreviation: WiFi) module 1070, a processor 1080, and a power supply 1090 and other components. Those skilled in the art can understand that Figure 11 the structure of the mobile phone shown in

[0173] does not constitute a limitation on the mobile phone, and it may include more or fewer components than shown in the figure, or combine some components, or arrange different components. Figure 11 The following will specifically introduce each component of the mobile phone in combination with

[0174] The RF circuit 1010 can be used for receiving and transmitting information or signals during communication. Specifically, after receiving the downlink information from the base station, it is sent to the processor 1080 for processing. Additionally, the uplink data designed is sent to the base station. Generally, the RF circuit 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Full English name: Low Noise Amplifier, English abbreviation: LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Full English name: Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (Full English name: General Packet Radio Service, GPRS), Code Division Multiple Access (Full English name: Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (Full English name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), Long Term Evolution (Full English name: Long Term Evolution, English abbreviation: LTE), email, Short Messaging Service (Full English name: Short Messaging Service, SMS), etc.

[0175] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 1020 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0176] The input unit 1030 can be used to receive input digital or character information and generate key signal inputs related to the target object settings and function controls of the mobile phone. Specifically, the input unit 1030 can include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect touch operations of the target object on or near it (such as operations of the target object using any suitable object or accessory like a finger, a stylus, etc. on or near the touch panel 1031), and drive corresponding connection devices according to a pre-set program. Optionally, the touch panel 1031 can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the target object, detects the signals brought by the touch operation, and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1080, and can also receive commands sent by the processor 1080 and execute them. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 1031. In addition to the touch panel 1031, the input unit 1030 can also include other input devices 1032. Specifically, the other input devices 1032 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.

[0177] The display unit 1040 can be used to display the information input by the target object or the information provided to the target object and various menus of the mobile phone. The display unit 1040 can include a display panel 1041. Optionally, the display panel 1041 can be configured in forms such as a liquid crystal display (English full name: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (English full name: Organic Light-Emitting Diode, English abbreviation: OLED), etc. Further, the touch panel 1031 can cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it transmits the operation to the processor 1080 to determine the type of the touch event. Subsequently, the processor 1080 provides corresponding visual outputs on the display panel 1041 according to the type of the touch event. Although in Figure 11 the touch panel 1031 and the display panel 1041 are implemented as two independent components to realize the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0178] The mobile phone may further include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors that the mobile phone can also be configured with, they will not be elaborated here.

[0179] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the target object and the mobile phone. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the speaker 1061 converts it into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and then converted into audio data. After the audio data is output to the processor 1080 for processing, it is sent through the RF circuit 1010 to, for example, another mobile phone, or the audio data is output to the memory 1020 for further processing.

[0180] WiFi belongs to short-range wireless transmission technology. The mobile phone can help the target object send and receive emails, browse the web, and access streaming media through the WiFi module 1070, which provides the target object with wireless broadband Internet access. Although Figure 11 the WiFi module 1070 is shown, it can be understood that it does not belong to the essential composition of the mobile phone and can be omitted completely according to needs within the scope of not changing the essence of the invention.

[0181] The processor 1080 is the control center of the mobile phone, connecting various parts of the entire mobile phone through various interfaces and lines. By running or executing the software programs and / or modules stored in the memory 1020, and calling the data stored in the memory 1020, it executes various functions of the mobile phone and processes data, thereby collecting the overall data and information of the mobile phone. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, the target object interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1080.

[0182] The mobile phone further includes a power supply 1090 (such as a battery) for powering each component. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system.

[0183] Although not shown, the mobile phone may further include a camera, a Bluetooth module, etc., which will not be elaborated here.

[0184] In the embodiment of the present application, the processor 1080 included in the mobile phone further has the following functions:

[0185] Extract the feature information of the palm image of the target object through the first application of the user terminal to obtain the palm feature information;

[0186] Associate the palm feature information with the user login identifier of the target object in the first application;

[0187] After the user terminal establishes a local connection with the palm brushing device, receive the scene information of the palm brushing device;

[0188] Generate a scene ticket according to the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information;

[0189] In response to the request of the palm brushing device to obtain the palm feature information, send the palm feature information to the palm brushing device according to the association relationship between the scene ticket and the palm feature information, so as to instruct the target object to authorize the opening of the palm brushing application corresponding to the palm brushing device.

[0190] Alternatively, after the palm brushing device establishes a local connection with the user terminal, send the scene information of the palm brushing device to the user terminal; the scene information of the palm brushing device is used to generate a scene ticket with the user login identifier, and the scene ticket is used to associate with the palm feature information according to the association relationship between the user login identifier and the palm feature information, and the palm feature information is obtained by extracting the features of the palm image of the target object through the user terminal;

[0191] Send a request to the user terminal to obtain the palm feature information, so that the user terminal sends the palm feature information to the palm brushing device according to the association relationship between the scene ticket and the palm feature information;

[0192] Receive the palm feature information sent by the user terminal to instruct the target object to authorize the opening of the palm brushing application corresponding to the palm brushing device.

[0193] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program. When the computer program runs on an offline authorization-enabled palm-sweeping application device, the device is caused to execute any one of the implementation manners of the offline authorization-enabled palm-sweeping application method described in the foregoing various embodiments.

[0194] An embodiment of the present application also provides a computer program product including a computer program. When it runs on an offline authorization-enabled palm-sweeping application device, the offline authorization-enabled palm-sweeping application device is caused to execute any one of the implementation manners of the offline authorization-enabled palm-sweeping application method described in the foregoing various embodiments.

[0195] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0196] In several embodiments provided by the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the system is only a logical function division, and there can be other division methods in actual implementation. For example, multiple systems can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0197] The system described as a separate component may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0198] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0199] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store computer programs, such as USB flash drives, mobile hard disks, read-only memories (English full name: Read-Only Memory, English abbreviation: ROM), random access memories (English full name: Random Access Memory, English abbreviation: RAM), magnetic disks, or optical discs.

[0200] The above embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of various embodiments of this application.

Claims

1. An offline authorization method for enabling palm - swiping applications, characterized in that, The method includes: extracting feature information of the palm image of the target object through a first application of the user terminal to obtain palm feature information; associating the palm feature information with the user login identifier of the target object in the first application; receiving the scene information of the palm brushing device when the user terminal establishes a local connection with the palm brushing device; generating a scene ticket according to the scene information and the user login identifier, and associating the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information; in response to a request from the palm brushing device to obtain the palm feature information, sending the palm feature information to the palm brushing device according to the association relationship between the scene ticket and the palm feature information to instruct the target object to authorize the opening of the palm brushing application corresponding to the palm brushing device.

2. The method according to claim 1, characterized in that The method further includes: receiving notification information, so that when the target object performs palm recognition, the palm brushing device recognizes the palm feature information collected on-site by the target object based on the palm feature information; the notification information is used to instruct the target object to complete the authorization and opening of the palm brushing application.

3. The method according to claim 1, wherein Before extracting the feature information of the palm image of the target object through the first application of the user terminal to obtain palm feature information, it further includes: performing quality screening on the palm image of the target object to obtain the screened palm image; extracting the feature information of the palm image of the target object through the first application of the user terminal to obtain palm feature information, including: extracting the feature information of the screened palm image through the first application of the user terminal to obtain palm feature information.

4. The method according to claim 1, wherein Before receiving the scene information of the palm brushing device when the user terminal establishes a local connection with the palm brushing device, it further includes: receiving a connection request from the palm brushing device, performing identity verification on the palm brushing device to obtain a verification result; when the verification result is verification passed, the user terminal establishes a local connection with the palm brushing device.

5. The method according to claim 4, characterized in that Receiving a connection request from the palm brushing device, performing identity verification on the palm brushing device to obtain a verification result, including: receiving a connection request from the palm brushing device and generating a random number; sending the random number to the palm brushing device so that the palm brushing device encrypts the random number according to a key agreed with the user terminal to obtain an encrypted result; receiving the encrypted result sent by the palm brushing device, decrypting the encrypted result according to a key agreed with the palm brushing device to obtain a decrypted result; comparing the decrypted result with the random number to obtain a verification result.

6. The method according to claim 1, wherein Generating a scene ticket according to the scene information and the user login identifier, including: inputting the scene information and the user login identifier into a random number generator to generate a scene ticket; the scene ticket includes timeliness information.

7. The method according to claim 1, characterized in that, The method further includes: in response to a first request from the palm brushing device, querying the credit rating of the target object according to the user login identifier; the first request is a request to obtain the credit rating of the target object. Send the credit level of the target object to the palm - swiping device, so that the palm - swiping device can identify the palm feature information collected on - site of the target object according to the palm feature information and the credit level of the target object.

8. The method according to claim 1, wherein The method further includes: Store the palm feature information in an encrypted database; the encrypted database is obtained by encrypting a database through an encryption algorithm, and the encrypted database includes an access control function, a function of encrypting and storing data, and a backup function.

9. An offline authorization method for enabling palm - swiping applications, characterized in that, Applied to a palm - swiping device, the method includes: After the palm - swiping device establishes a local connection with the user terminal, send the scene information of the palm - swiping device to the user terminal; the scene information of the palm - swiping device is used to generate a scene ticket with the user login identifier, and the scene ticket is used to be associated with the palm feature information according to the association relationship between the user login identifier and the palm feature information, and the palm feature information is obtained by the user terminal extracting features from the palm image of the target object; Send a request to obtain palm feature information to the user terminal, so that the user terminal sends the palm feature information to the palm - swiping device according to the association relationship between the scene ticket and the palm feature information; Receive the palm feature information sent by the user terminal to indicate that the target object authorizes to activate the palm - swiping application corresponding to the palm - swiping device.

10. The method according to claim 9, characterized in that, The method further includes: Send a notification message to the user terminal, and the notification message is used to indicate that the target object has completed the authorization to activate the palm - swiping application; When the target object performs palm recognition, photograph the palm of the target object based on a camera to obtain a palm image of the target object; Perform quality screening on the palm image to obtain a screened palm image; Extract features from the screened palm image to obtain the palm feature information collected on - site of the target object; Identify the palm feature information collected on - site of the target object according to the received palm feature information to obtain an identification result.

11. The method according to claim 10, characterized in that, When the identification result is successful identification, the method further includes: Collect the infrared palm information of the target object based on a camera; Combine the infrared palm information and the palm feature information to obtain infrared palm feature information; Send the infrared palm feature information to the user terminal, so that the user terminal synchronizes the infrared palm feature information, and the association relationship between the scene ticket and the palm feature information to the cloud in a network - connected state, and sends a synchronization result to the palm - swiping device; When receiving that the synchronization result is successful synchronization, identify the infrared palm feature information collected next time on - site of the target object based on the infrared palm feature information; the infrared palm feature information collected next time on - site is obtained by extracting features from the infrared palm information of the target object.

12. The method according to claim 9, wherein The method further includes: Send a second request to the user terminal, so that the user terminal queries according to the user login identifier; the second request is a request to obtain the credit level of the target object; Receive the credit level of the target object sent by the user terminal; Identify the palm feature information collected on-site for the target object based on the palm feature information and the credit rating of the target object.

13. An offline authorization and activation device for palm-sweeping applications, characterized in that, The device includes: A feature extraction module, configured to extract features from a palm image of a target object through a first application of a user terminal to obtain palm feature information; An association module, configured to associate the palm feature information with the user login identifier of the target object in the first application; A first receiving module, configured to receive the scene information of the palm brushing device when the user terminal establishes a local connection with the palm brushing device; A generation module, configured to generate a scene ticket according to the scene information and the user login identifier, and associate the scene ticket with the palm feature information according to the association relationship between the user login identifier and the palm feature information; A first sending module, configured to, in response to a request from the palm brushing device to obtain the palm feature information, send the palm feature information to the palm brushing device according to the association relationship between the scene ticket and the palm feature information, so as to instruct the target object to authorize the opening of the palm brushing application corresponding to the palm brushing device.

14. An offline authorization-enabled palm-sweeping application device, characterized in that, The device includes a processor and a memory: The memory is configured to store a computer program and transmit the computer program to the processor; The processor is configured to execute the steps of the method for offline authorization to open a palm brushing application according to any one of claims 1 to 8, or execute the steps of the method for offline authorization to open a palm brushing application according to any one of claims 9 to 12, according to the instructions in the computer program.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium is configured to store a computer program, and when the computer program is executed by an offline authorization to open a palm brushing application device, it implements the steps of the method for offline authorization to open a palm brushing application according to any one of claims 1 to 8, or implements the steps of the method for offline authorization to open a palm brushing application according to any one of claims 9 to 12.