Identity recognition-based service processing method and related apparatus

By displaying a resource transfer exemption interface with identity information acquisition options, the method addresses the inefficiency of multiple matches in identity recognition, enhancing passage speed and accuracy.

US20260377877A1Pending Publication Date: 2026-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/757820
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2024-10-11
Filing Date
2026-07-29
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In scenarios requiring rapid passage, such as bus or subway ticket barriers, identity recognition that matches multiple candidate objects necessitates additional verification, prolonging processing time and affecting efficiency.

Method used

Displaying a resource transfer exemption interface offering a resource gain and methods to obtain identity information when multiple matches occur, allowing rapid passage without additional verification.

Benefits of technology

Ensures efficient passage by obtaining true identity information through resource gain, improving recognition accuracy and reducing processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377877A1-D00000_ABST
    Figure US20260377877A1-D00000_ABST
Patent Text Reader

Abstract

Provided is a method for providing identity recognition-based service performed by a computer device and the method includes: obtaining an identity recognition image collected for a target object; and when the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, displaying a resource transfer exemption interface on a screen, the resource transfer exemption interface comprising: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server for updating an identity recognition result associated with the target object.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation application of PCT Patent Application No. PCT / CN2025 / 113501, entitled “IDENTITY RECOGNITION-BASED SERVICE PROCESSING METHOD AND RELATED APPARATUS” filed on Aug. 8, 2025, which claims priority to Chinese Patent Application No. 202411424308.9, entitled “IDENTITY RECOGNITION-BASED SERVICE PROCESSING METHOD AND RELATED APPARATUS” filed on Oct. 11, 2024, both of which are incorporated by reference in their entirety.FIELD OF THE TECHNOLOGY

[0002] This application relates to the field of computer technologies, and provides an identity recognition-based service processing method and apparatus, a device, a storage medium, and a computer program product.BACKGROUND OF THE DISCLOSURE

[0003] Identity recognition is a process of recognizing, based on biological information of a target object, corresponding identity information of the target object. Identity recognition includes, but is not limited to, palm verification recognition, facial verification recognition, fingerprint recognition, and the like. In practical application, the identity information of the target object is obtained by collecting an identity recognition image of the target object and comparing the identity recognition image with a candidate image of each candidate object.

[0004] In the related art, a case where the identity recognition image successfully matches candidate images of a plurality of candidate objects occurs. In this case, to recognize the identity information of the target object, additional verification may further be performed on the target object. An additional verification method includes, but is not limited to, entering the last four digits of the mobile phone number, entering a verification code, and the like.

[0005] However, in some scenarios in which rapid passage is required, when the identity recognition image successfully matches candidate images of a plurality of candidate objects occurs, recognition of the identity information of the target object through additional verification increases service processing duration, and affects passage efficiency. For example, in a scenario such as passing through a bus or subway ticket barrier, the target object needs to quickly pass through a ticket checkpoint, and additional verification severely affects passage efficiency of the target object.SUMMARY

[0006] Embodiments of this application provide an identity recognition-based service processing method and apparatus, a device, a storage medium, and a computer program product.

[0007] According to an aspect, a method for providing identity recognition-based service by an electronic device, the method comprising:

[0008] obtaining an identity recognition image collected for a target object; and

[0009] when the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, displaying a resource transfer exemption interface on a screen, the resource transfer exemption interface comprising: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server for updating an identity recognition result associated with the target object.

[0010] According to an aspect, an electronic device is provided, which includes a processor and a memory. The memory has a computer program stored therein, and the computer program, when executed by the processor, causes the electronic device to perform operations of the foregoing method.

[0011] According to an aspect, a non-transitory computer-readable storage medium is provided, which includes a computer program. When executed by a processor of an electronic device, the computer program is configured for causing the electronic device to perform operations of the method according to any one of the foregoing aspects.

[0012] Other features and advantages of this application will be described in the following description, and in part will become apparent from the description or may be learned from implementation of this application. The objectives and other advantages of this application may be implemented and obtained by using structures particularly pointed out in the written description, claims, and accompanying drawings.BRIEF DESCRIPTION OF THE DRAWINGS

[0013] To describe the technical solutions in the embodiments of this application more clearly, the following briefly describes the accompanying drawings required for description of the embodiments. The accompanying drawings in the following description show merely embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from the disclosed accompanying drawings without involving any creative effort.

[0014] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of this application.

[0015] FIG. 2 is a schematic diagram of a system architecture according to an embodiment of this application.

[0016] FIG. 3 is a schematic flowchart of an identity recognition-based service processing method on an identity recognition device side according to an embodiment of this application.

[0017] FIG. 4A is a first schematic diagram of a resource transfer exemption interface according to an embodiment of this application.

[0018] FIG. 4B is a second schematic diagram of a resource transfer exemption interface according to an embodiment of this application.

[0019] FIG. 4C is a third schematic diagram of a resource transfer exemption interface according to an embodiment of this application.

[0020] FIG. 5 is a logical schematic diagram of a Near Field Communication (NFC) connection process according to an embodiment of this application.

[0021] FIG. 6 is a logical schematic diagram of an information sharing process according to an embodiment of this application.

[0022] FIG. 7 is a schematic flowchart of an identity recognition-based service processing method on an identity recognition server side according to an embodiment of this application.

[0023] FIG. 8 is a logical schematic diagram of an identity recognition process according to an embodiment of this application.

[0024] FIG. 9A is a logical schematic diagram of a feature combination process according to an embodiment of this application.

[0025] FIG. 9B is a first logical schematic diagram of a combination processing process according to an embodiment of this application.

[0026] FIG. 9C is a second logical schematic diagram of a combination processing process according to an embodiment of this application.

[0027] FIG. 9D is a third logical schematic diagram of a combination processing process according to an embodiment of this application.

[0028] FIG. 10 is a second logical schematic diagram of a feature extraction process according to an embodiment of this application.

[0029] FIG. 11 is a logical schematic diagram of a model training process according to an embodiment of this application.

[0030] FIG. 12 is a logical schematic diagram of a service processing process in a subway scenario according to an embodiment of this application.

[0031] FIG. 13 is a logical schematic diagram of a service processing process in an automatic vending scenario according to an embodiment of this application.

[0032] FIG. 14 is a schematic diagram of a composition structure of an identity recognition-based service apparatus according to an embodiment of this application.

[0033] FIG. 15 is a schematic diagram of a composition structure of an identity recognition-based service apparatus according to an embodiment of this application.

[0034] FIG. 16 is a schematic diagram of a composition structure of an electronic device according to an embodiment of this application.DESCRIPTION OF EMBODIMENTS

[0035] To make the objectives, technical solutions, and advantages of this application clearer and more comprehensible, the following clearly and completely describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. The described embodiments are some of the embodiments of this application rather than all of the embodiments. All other embodiments derived by a person of ordinary skill in the art from the embodiments of this application without involving any creative effort fall within the scope of protection of this application. The embodiments and the features in the embodiments of this application may be combined with each other in different manners to form other embodiments, provided that there is no conflict. In addition, although a logic order is shown in the flowchart, in some cases, the shown or described operations may be performed in an order different from the order herein.

[0036] In the following specific implementations of this application, user data, such as an account and a palm image, may be involved. In this case, when the embodiments of this application are applied to a specific product or technology, a relevant permission or consent is required, and collection, use, and processing of relevant data needs to comply with relevant laws and regulations and standards of relevant countries and regions.

[0037] For ease of understanding the technical solutions provided in the embodiments of this application, some key terms used in the embodiments of this application are first explained herein.

[0038] Identity recognition: it refers to a process of recognizing, based on biological information of a target object, identity information corresponding to the target object. In the embodiments of this application, identity recognition is performed based on a manner of collecting an image of the target object. That is, identity recognition is implemented by recognizing a biological feature of the target object from the collected image by using an image processing method. For example, the biological feature may be a palm feature, a pupil feature, or a facial feature.

[0039] Palm verification operation: palm verification and recognition is a technology in which palm media information is exchanged for identity information. The palm verification operation refers to an operation performed by a user to provide information required for identity verification when a to-be-executed service requires identity verification and identity verification is performed in a palm verification and recognition manner. Typically, the user places a palm of the user in a collection range area of a palm verification device. Typically, the palm verification device may include an image collection apparatus configured to collect a palm image for subsequent identity recognition, for example, may include a three-dimensional (3D) camera. Compared with a conventional camera, the 3D camera incorporates liveness-related software and hardware, and includes a depth camera and an infrared camera, to ensure information security.

[0040] Palm image: it refers to an image photographed for recognizing an identity of a target object, and may be a two-dimensional (2D) image photographed by a 2D camera or a 3D image photographed by a 3D camera.

[0041] Palm feature: it refers to an image feature obtained by performing feature extraction on a palm image, and may be the palm image, such as information such as numerical information of color channels of the image or grayscale and brightness of the image. Alternatively, the palm feature may be a feature obtained after the palm image is processed by using an image processing method, such as performing binarization on the image. Alternatively, the palm feature is an image feature obtained by performing feature extraction on the palm image through an artificial neural network model trained by using a deep learning method.

[0042] To-be-recognized object: in the embodiments of this application, the target object refers to a party that triggers a palm verification operation. In an actual service scenario, before palm verification and recognition is performed, an identity usually needs to be registered in a service platform, and service processing is performed through a successfully registered identity. In this way, the service platform can perform an operation, such as fee deduction, for the identity in a service processing process. Therefore, through an identity recognition process, an identity of a target object in the service platform can be recognized based on biological information.

[0043] The following briefly describes the technical ideas of the embodiments of this application.

[0044] In the related art, a case where an identity recognition image successfully matches candidate images of a plurality of candidate objects occurs. In this case, to recognize identity information of a target object, additional verification may further be performed on the target object. An additional verification method includes, but is not limited to, entering the last four digits of the mobile phone number, entering a verification code, and the like.

[0045] However, in some scenarios in which rapid passage is required, when the identity recognition image successfully matches candidate images of a plurality of candidate objects occurs, recognition of the identity information of the target object through additional verification increases service processing duration, and affects passage efficiency. For example, in a scenario such as passing through a bus or subway ticket barrier, the target object needs to quickly pass through a ticket checkpoint, and additional verification severely affects passage efficiency of the target object.

[0046] In the embodiments of this application, after a target object triggers an identity recognition operation, when an identity recognition image of the target object successfully matches candidate images of a plurality of candidate objects, an identity recognition device displays a resource transfer exemption interface. The resource transfer exemption interface includes a resource gain available to the target object and at least one approach of obtaining the resource gain. The at least one approach is configured for transferring identity information of the target object, and the identity information is configured for determining an identity recognition result.

[0047] Compared with the additional verification method such as entering the last four digits of the mobile phone number or entering a verification code, exemption of a to-be-transferred resource can ensure rapid passage of the target object without affecting passage efficiency of the target object. In addition, by designing the resource gain, true identity information of the target object can be obtained. In this way, when identity recognition is performed again subsequently, the true identity information may be used as a palm verification and recognition result. This improves recognition accuracy.

[0048] The following briefly describes application scenarios to which the technical solutions of the embodiments of this application are applicable. The application scenarios described below are merely intended to describe the embodiments of this application rather than limiting this application. In a specific implementation process, the technical solutions provided in the embodiments of this application may be flexibly applied according to actual needs.

[0049] The solutions provided in the embodiments of this application are applicable to identity recognition-based service processing scenarios, and in particular, to scenarios in which rapid service processing is required, for example, scenarios such as bus transit and subway transit.

[0050] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of this application. The scenario may include an identity recognition device 101 and an identity recognition server 102.

[0051] The identity recognition device 101 is configured to collect an image of a target object to implement identity recognition of the target object. Depending on adopted identity recognition methods, the identity recognition device 101 may be different devices. For example, when a palm verification and recognition method is adopted, the identity recognition device 101 may be a palm verification device, which is specifically shown as an example in FIG. 1. Alternatively, when a face verification and recognition method is adopted, the identity recognition device 101 may be a face verification device. Alternatively, when an iris recognition method is adopted, the identity recognition device 101 may be an iris recognition device. Alternatively, the server may be another device based on an image recognition method. This is not limited in the embodiments of this application.

[0052] A related application (APP) may be installed on the identity recognition device 101, for example, may include an identity recognition APP. The APP involved in the embodiments of this application may be a software client, or may be a client such as a web page or a mini program. A specific type of the client is not limited.

[0053] The identity recognition server 102 is a backend server corresponding to the identity recognition APP, is configured to implement identity recognition based on the image collected by the identity recognition device 101, and return corresponding identity information to the identity recognition device 101, and may further perform an operation, such fee deduction, based on a recognized identity.

[0054] The identity recognition server 102 may be, but is not limited to, an independent physical server, a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), and a big data and artificial intelligence platform.

[0055] In an actual scenario, an example in which the identity recognition device 101 is a palm verification device and a service is a subway payment service is used. When passing through a subway ticket barrier, the target object may perform a palm verification operation. The palm verification device collects an identity recognition image of the target object, and recognizes identity information of the target object based on the identity recognition image. If the identity recognition image of the target object successfully matches candidate images of a plurality of candidate objects, the palm verification device displays a resource transfer exemption interface to the target object, to prompt the target object that this trip is free of charge. The resource transfer exemption interface further includes a resource gain available to the target object and at least one approach of obtaining the resource gain. In this way, when the target object obtains the resource gain through a selected approach in the at least one approach, identity information of the target object that is transferred through the selected approach is obtained, to obtain a recognition result of the identity recognition image. In the embodiments of this application, the plurality of candidate objects successfully matching the target object may be referred to as highly similar objects. When a highly similar object exists, exemption of a to-be-transferred resource ensures rapid passage of the target object. By utilizing the resource gain, true identity information of the target object can be obtained. In this way, the true identity information is used as a palm verification and recognition result. This improves recognition accuracy.

[0056] The identity recognition-based service processing method in the embodiments of this application may be performed by the identity recognition device 101 or the identity recognition server 102 alone, or may be jointly performed by the identity recognition device 101 and the identity recognition server 102. For example, when the identity recognition-based service processing method is performed by the identity recognition device 101, the entire identity recognition-based service processing process may be implemented by the identity recognition device 101 alone. When the identity recognition-based service processing method is jointly performed by the identity recognition device 101 and the identity recognition server 102, the target object triggers the palm verification operation, the identity recognition device 101 collects the identity recognition image of the target object and transmits the identity recognition image to the identity recognition server 102, and then the identity recognition server 102 recognizes the identity information of the target object by using an image processing method. If the identity recognition image of the target object successfully matches candidate images of a plurality of candidate objects, the identity recognition server 102 informs the identity recognition device 101 to display the resource transfer exemption interface, to prompt the target object that this trip is free of charge. The resource transfer exemption interface includes the resource gain available to the target object and the at least one approach of obtaining the resource gain. In a process in which the target object obtains the resource gain through the selected approach in the at least one approach, the identity recognition server 102 obtains the identity information of the target object that is transferred through the selected approach, to obtain the recognition result of the identity recognition image based on the transferred identity information. Alternatively, in practical application, specific configuration may be performed according to a situation. This is not specifically limited in this application.

[0057] Each of the identity recognition device 101 and the identity recognition server 102 may include one or more processors, a memory, an interactive input / output (I / O) interface, and the like. The memory may further store respective program instructions that need to be executed in the identity recognition-based service processing method provided in the embodiments of this application. The program instructions, when executed by the processor, can implement the identity recognition-based service processing process provided in the embodiments of this application.

[0058] In the embodiments of this application, the foregoing devices may be in direct or indirect communication connection through one or more networks. The network may be a wired network or a wireless network. For example, the wireless network may be a mobile cellular network, or may be a wireless-fidelity (Wi-Fi) network, or may be another network. This is not limited in the embodiments of this application. FIG. 1 is merely an example for description. In practical, a quantity of terminal devices and a quantity of servers are not limited, and are not specifically limited in the embodiments of this application.

[0059] FIG. 2 shows a system architecture according to an embodiment of this application. The architecture is shown by using an example in which palm verification and recognition is used as an identity recognition method. The architecture may include the following three modules:(1) Identity Recognition Front-End

[0060] As shown in FIG. 2, the identity recognition front-end (that is, a palm verification device) includes a 3D camera and Near Field Communication (NFC). When running, the palm verification device can invoke the 3D camera to collect an image, and can invoke NFC to transmit data, to implement a function of the identity recognition device.

[0061] The palm verification device may include a palm verification and recognition module, a result page module, and a device management module.

[0062] The palm verification and recognition module is configured to collect a palm image of a target object and perform processing related to palm verification and recognition. For example, the 3D camera may be invoked to collect palm streaming media data, and an optimal selection may be performed on the streaming media data. The optimal selection refers to selecting an optimal palm image through comprehensive evaluation of coefficient indicators such as a palm size, an angle, image contrast, image brightness, and sharpness. The selected optimal palm image is transmitted to an APP backend service for processing. When a condition of the identity recognition device permits, the module may be configured to perform image pre-processing, palm feature extraction, and the like on the palm image. This may be specifically configured according to an actual situation.

[0063] The result page module is configured to display a resource transfer result. The resource transfer result includes a resource transfer success, a resource transfer failure, and an unknown result. In the embodiments of this application, when a highly similar object exists, the resource transfer result is an unknown result. However, to ensure rapid passage, a resource transfer exemption interface representing a resource transfer success may be displayed to the target object. The resource transfer exemption interface includes: a resource gain available to the target object and at least one approach of obtaining the resource gain. In this way, not only passage efficiency can be ensured, but also an identity recognition result can be obtained through the resource gain.

[0064] The device management module is configured to control a device state change of a device, such as a subway ticket barrier, after the resource is transferred. A subway ticket barrier is used as an example. A device state may be either an open state or a closed state.(2) APP Backend Service

[0065] The APP backend service is a backend service corresponding to a palm verification APP. The APP backend service includes a palm verification password service, a palm verification NFC service, a palm-identity matching association service, a palm verification and recognition service, an algorithm training service, and a palm verification device management service.

[0066] The palm verification password service is configured for generating to-be-shared information in the form of a password based on information such as a device identifier of the palm verification device, a trigger operation for a palm verification operation, and an identity recognition image. A specific generation manner may be: generating, based on the device identifier D of the palm verification device, trigger time T of the palm verification operation, and a feature vector F of the identity recognition image, a unique hash value H(D,T,F) by using a hash function H, and converting the hash value into a password whose length is less than a set length threshold, such as truncating the first n bits of the hash value as the password, n indicating the set length threshold.

[0067] The palm verification NFC service is configured for implementing an NFC function. For example, the identity information of the target object is transferred through NFC.

[0068] The palm-identity matching association service is configured for storing an association relationship between an object and a palm image corresponding to the object. For example, after the identity information of the target object is obtained, an association relationship between the identity information of the target object and the identity recognition image of the target object is stored through the palm-identity matching association service.

[0069] The palm verification and recognition service is configured for implementing functions related to palm verification and recognition, such as recognizing the identity information of the target object based on the palm image transmitted by the front-end, and implementing a resource transfer process.

[0070] The algorithm training service is configured for optimizing an identity recognition algorithm based on the obtained identity information of the target object, such as performing feature extraction based on the identity information of the target object or training an identity recognition model.

[0071] The palm verification device management service is configured for managing the palm verification device. Exemplarily, remote management of the palm verification device may be implemented through an Over-the-Air (OTA) technology.(3) Terminal Device End

[0072] The terminal device end includes an operating system, a near-field module, and an APP. The operating system may be, but is not limited to, the Android operating system or the IOS operating system. The near-field module is configured to implement an NFC function. The APP includes a login module. The login module is configured to implement a login verification function when the target object logs in to the APP. In addition, the APP may further provide a password publishing function. The password publishing function is configured for publishing the to-be-shared information. In some implementations, the APP includes Moments and Channels. Both Moments and Channels support the password publishing function.

[0073] The following describes the method provided in exemplary implementations of this application with reference to the application scenarios and the system architecture that are described above, as well as the accompanying drawings. The foregoing application scenarios are merely shown for ease of understanding the spirit and principle of this application, and the implementations of this application are not limited in this aspect.

[0074] FIG. 3 is a schematic flowchart of an identity recognition-based service processing method according to an embodiment of this application. The method may be performed by an identity recognition device. A specific implementation process of the method is as follows.

[0075] S301: Obtain, in response to an identity recognition operation triggered for a target object, an identity recognition image collected for the target object, the identity recognition image being configured for identity recognition.

[0076] In the embodiments of this application, the target object refers to a user that needs to perform service processing. The service includes, but is not limited to, a service in a scenario such as bus fare checking or subway ticket checking.

[0077] The identity recognition operation includes, but is not limited to, an operation of performing identity recognition using an image collection method, such as a palm verification operation, a face verification operation, or an iris recognition operation. A palm verification operation is used as an example. That the target object triggers the identity recognition operation may be: the target object places a palm in an image collection area of a palm verification device.

[0078] In an implementation, after collecting the identity recognition image of the target object, the identity recognition device transmits the identity recognition image to an identity recognition server. The identity recognition server performs matching between the target object and candidate objects based on the identity recognition image, and returns a resource transfer exemption indication to the identity recognition device if a matching result indicates that a plurality of candidate objects successfully match the target object. After receiving the resource transfer exemption indication, the identity recognition device displays a resource transfer exemption interface to the target object. The process of performing matching between the target object and the candidate objects may alternatively be referred to as an identity recognition process. For details of the identity recognition process, refer to the following description. Details are not described herein again.

[0079] Palm verification and recognition is used as an example. A palm verification device may invoke a camera to collect palm streaming media data of the target object. After obtaining the palm streaming media data, the palm verification device may perform an optical selection on the palm streaming media data. The optimal selection refers to selecting an optimal palm image as the identity recognition image through comprehensive evaluation of coefficient indicators such as a palm size, an angle, image contrast, image brightness, and sharpness. The palm verification device transmits the optimal palm image to the identity recognition server for identity recognition. After receiving the identity recognition image and performing feature extraction, the identity recognition server searches an entire database to identify identity information of the target object, and returns the identity information to a palm verification APP. A specific manner of searching the entire database may be: comparing a palm feature of the target object with candidate palm features of all candidate objects in the database one by one, calculating feature similarities between the palm feature and the candidate palm features (a similarity calculation method may be a Euclidean distance, a cosine similarity, or the like), and if candidate objects whose feature similarities with the target object fall within a set similarity range exist, these candidate objects are used as matching results. For example, the set similarity range is greater than 90%. When it is calculated that a similarity between a candidate palm feature of a candidate object and the palm feature is greater than 90%, it is considered that the candidate object matches the target object.

[0080] In an implementation, alternatively, the identity recognition device may perform matching between the target object and the candidate objects based on the identity recognition image, and then display the resource transfer exemption interface to the target object when the matching result indicates that a plurality of candidate objects successfully match the target object.

[0081] Palm verification and recognition is used as an example. A palm verification device performs feature extraction on a palm image, to obtain a palm feature of the target object, and performs matching between the palm feature with candidate palm features corresponding to candidate images of candidate objects. If a matching result indicates that a plurality of candidate palm features successfully match the palm feature, it is determined that the identity recognition image successfully matches respective candidate images of the plurality of candidate objects. The identity recognition image may be an optimal palm image obtained by the palm verification device performing an optimal selection on palm streaming media data. The optimal selection refers to selecting the optimal palm image through comprehensive evaluation of coefficient indicators such as a palm size, an angle, image contrast, image brightness, and sharpness. For a process of performing matching between the target object and the candidate objects, refer to the following description. Details are not described herein again.

[0082] S302: Display a resource transfer exemption interface when the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, the resource transfer exemption interface including: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server, and the server then uses the identity information for determining and updating an identity recognition result associated with the target object.

[0083] The resource transfer exemption interface refers to an interface representing a resource transfer result when a highly similar object exists (that is, the identity recognition image of the target object successfully matches candidate images of a plurality of candidate objects). In the embodiments of this application, when a highly similar object exists, a to-be-transferred resource of the target object is exempted, that is, a free order is granted. Therefore, the resource transfer result displayed to the target object indicates that the resource is successfully transferred.

[0084] The resource transfer exemption interface may include the resource gain available to the target object and the at least one approach of obtaining the resource gain. The approach of obtaining the resource gain may alternatively be referred to as a resource obtaining approach. When the target object obtains a gain resource through the provided resource obtaining approach, the target object may transmit the identity information of the target object to the identity recognition server through the palm verification device, or directly transfer the identity information of the target object to the identity recognition server.

[0085] The resource gain available to the target object refers to an additional resource available to the target object through the at least one provided approach. The resource gain includes, but is not limited to, one or more of a virtual resource and a physical resource. The virtual resource refers to a resource that exists in a digital or computing environment and that typically does not have a physical form. For example, the virtual resource may be a game skin, a digital stock, or a game prop. The physical resource is typically a resource having a physical form, and may be, for example, cash or a small gift.

[0086] No matter which manner is adopted to obtain the resource gain, the identity information of the target object is obtained with authorization of the target object. In the embodiments of this application, the identity information may be any information configured for distinguishing between objects, such as an identity card number or a mobile phone number of an object, or an identity identifier of the object in the palm verification APP, which may be, for example, an account identifier (such as OpenID).

[0087] In an implementation, the resource obtaining approach includes, but is not limited to, at least one of the following approaches: a short-range communication-based obtaining approach and a message sharing-based obtaining approach.

[0088] In the short-range communication-based obtaining approach, the target object establishes a communication connection with an identity recognition device through a terminal device, to transfer the identity information of the target object to the identity recognition device. Then, the identity recognition device transfers the identity information of the target object to the identity recognition server. In the embodiments of this application, a communication connection protocol adopted for establishing the communication connection between the terminal device and the identity recognition device includes, but is not limited to, NFC, Bluetooth, or the like. NFC is used as an example. NFC is a short-range, high-frequency wireless communication technology that enables two electronic devices to exchange data within a specific distance. In the NFC-based obtaining approach, the terminal device possessed by the target object and the identity recognition device are both NFC devices. When the two devices are close to each other, an NFC connection is established between the two devices, and the identity information of the target object is transferred to the identity recognition device via the NFC connection.

[0089] In the message sharing-based obtaining approach, the target object transfers the identity information of the target object to the identity recognition server by publishing to-be-shared information in an APP. The APP includes, but is not limited to, an application such as a social platform application, an instant messaging application, or a shopping application. Before using the APP, the target object performs registration based on the identity information. Message transfer is supported between a backend server (briefly referred to as an APP server) corresponding to the APP and the identity recognition server. In this way, after the target object publishes the to-be-shared information, the APP server may transfer the identity information of the target object to the identity recognition server. The identity recognition server and the application server may be integrated into a same server, or may be two independent servers. This is not limited.

[0090] Depending on different resource obtaining approaches, when the resource transfer exemption interface is displayed, there exist, but are not limited to, the following possible cases:

[0091] Case 1: If the resource obtaining approach includes: the short-range communication-based obtaining approach, in response to a short-range communication operation triggered by the target object for the short-range communication-based obtaining approach, the identity information transferred in a process in which the target object obtains the resource gain through the short-range communication-based obtaining approach.

[0092] In some implementations, the resource transfer exemption interface further includes: authorization information. The authorization information represents that the target object allows the identity information of the target object to be transmitted via short-range communication. That is, in addition to the resource gain and the resource obtaining approach, the resource transfer exemption interface further includes the authorization information.

[0093] In an implementation, the resource gain displayed on the resource transfer exemption interface may be a specific obtainable resource, or may be prompt information indicating an opportunity to obtain the resource gain.

[0094] FIG. 4A is a schematic diagram of a resource transfer exemption interface according to an embodiment of this application. In FIG. 4A, a left side shows a display screen of a palm verification device, a right side shows a camera of the palm verification device, and a resource transfer exemption interface is displayed on the display screen. The resource transfer exemption interface includes text content “Payment successful”, text content “Congratulations on free order”, text content “Tapping with NFC provides a chance to double the reward”, and text content “Using this function requires obtaining identity information, and by using it, you agree to authorization”. The text content “Payment successful” is a resource transfer result representing a resource transfer success. The text content “Congratulations on free order” is configured for prompting that resource transfer exemption is performed for this service. The text content “Tapping with NFC provides a chance to double the reward” is configured for prompting that a resource obtaining approach is an NFC-based obtaining approach. Through NFC, the target object has a change to obtain a doubled reward as a resource gain. The text content “Using this function requires obtaining identity information, and by using it, you agree to authorization” is equivalent to authorization information. The resource transfer exemption interface in FIG. 4A is merely exemplary. Presentation forms of the content included in the resource transfer exemption interface are not limited to text. For example, one or more pieces of content may be presented in the form of an image. In addition, the content, such as the resource transfer result, the resource gain, the resource obtaining approach, and the authorization information, may alternatively be distributed in another manner. This is not limited.

[0095] In the foregoing implementation, information transmission is performed through short-range communication. In this way, a data transmission process is convenient and quick, and the identity information of the target object can be obtained quickly. This improves information obtaining efficiency.

[0096] Case 2: If the resource obtaining approach includes: a message sharing-based obtaining approach, the resource transfer exemption interface further includes: to-be-shared information. That is, in addition to the resource gain and the resource obtaining approach, the resource transfer exemption interface further includes the to-be-shared information.

[0097] In the embodiments of this application, after the target object publishes the to-be-shared information, the identity recognition server may use identity information that is associated with an account publishing the to-be-shared information as the identity information of the target object.

[0098] The to-be-shared information is generated at least based on a device identifier of the palm verification device. In this way, after the to-be-shared information is published, the identity recognition server may determine the palm verification device based on the device identifier of the palm verification device, determine the identity recognition image through the palm verification device, and use the identity information that is associated with the account publishing the to-be-shared information as the identity information associated with the identity recognition image.

[0099] In some implementations, for an identity recognition image of a highly similar object, the identity recognition server may record an association relationship between the palm verification device and the identity recognition image. In this way, the identity recognition image may be determined based on the device identifier of the palm verification device.

[0100] In some implementations, although a probability of a case that a highly similar object exists is small, to prevent the palm verification device from being associated with a plurality of detected images of the highly similar object, the to-be-shared information may further be generated based on the device identifier of the palm verification device in combination with information such as trigger time of the identity recognition operation. The identity recognition image may be effectively determined from the plurality of detected images based on the trigger time of the identity recognition operation.

[0101] FIG. 4B is a schematic diagram of a resource transfer exemption interface according to an embodiment of this application. In FIG. 4B, a left side shows a display screen of a palm verification device, a right side is a camera of the palm verification device, and a resource transfer exemption interface is displayed on the display screen. The resource transfer exemption interface includes text content “Payment successful”, text content “Congratulations on free order”, to-be-shared content “Today's joy: free order through palm verification”, and text content “Sharing the password provides a chance to double the reward”. The text content “Payment successful” is a resource transfer result representing a resource transfer success. The text content “Congratulations on free order” is configured for prompting that resource transfer exemption is performed for this service. The text content “Sharing the password provides a chance to double the reward” is configured for prompting that a resource obtaining approach is a message sharing-based obtaining approach. By publishing the to-be-shared information, the target object has a chance to obtain a double reward as a resource gain. The resource transfer exemption interface in FIG. 4B is merely exemplary. Presentation forms of the content included in the resource transfer exemption interface are not limited to text. For example, one or more pieces of content may be presented in the form of an image. In addition, the content, such as the resource transfer result, the resource gain, and the resource obtaining approach, may alternatively be distributed in another manner. This is not limited.

[0102] Exemplarily, if the resource obtaining approach includes: the message sharing-based obtaining approach and the NFC-based obtaining approach, the resource transfer exemption interface includes: the resource gain, the resource obtaining approach, and the to-be-shared information. In this way, the target object may obtain the resource gain through any one of the two resource obtaining approaches.

[0103] FIG. 4C is a schematic diagram of a resource transfer exemption interface according to an embodiment of this application. In FIG. 4C, a left side shows a display screen of a palm verification device, a right side shows a camera of the palm verification device, and a resource transfer exemption interface is displayed on the display screen. The resource transfer exemption interface includes text content “Payment successful”, text content “Congratulations on free order”, to-be-shared content “Today's joy: free order through palm verification”, and text content “Sharing the password or tapping with NFC provides a chance to double the reward”. The text content “Payment successful” is a resource transfer result representing a resource transfer success. The text content “Congratulations on free order” is configured for prompting that resource transfer exemption is performed for this service. The text content “Sharing the password or tapping with NFC provides a change to double the reward” is configured for prompting that a resource obtaining approach includes a message sharing-based obtaining approach and an NFC-based obtaining approach. By publishing the to-be-shared information or through NFC, the target object has a chance to obtain a double reward as a resource gain. In addition, the resource transfer exemption interface may further include text content “Using this function requires obtaining identity information, and by using it, you agree to authorization”. The text content is configured for notifying the target object that the identity information of the target object is to be obtained in a process of obtaining the resource gain. Alternatively, in practical application, the authorization information may be implemented in another operation of the identity recognition process. For example, use of the identity information may be notified when the target object performs registration, or authorized use of the identity information may be notified before the palm of the target object is verified. This is not limited. Details are not described herein again. The resource transfer exemption interface in FIG. 4C is merely exemplary. Presentation forms of the content included in the resource transfer exemption interface are not limited to text. For example, one or more pieces of content may be presented in the form of an image. In addition, the content, such as the resource transfer result, the resource gain, and the resource obtaining approach, may alternatively be distributed in another manner. This is not limited.

[0104] Further, the target object may trigger a selection operation for a selected approach in the at least one approach, to transfer the identity information.

[0105] In the embodiments of this application, the selection operation triggered by the target object for the selected approach in the at least one approach includes at least one of the following operations: a short-range communication operation triggered by the target object for the short-range communication-based obtaining approach, and a sharing operation triggered by the target object for the to-be-shared message. The following separately describes the two manners.(1) a Triggering Manner of a Short-Range Communication Operation:

[0106] In some implementations, when receiving a short-range communication request from the terminal device of the target object, the identity recognition device establishes a connection channel between the terminal device of the target object and the identity recognition device. The connection channel is configured to transmit the identity information of the target object. When the identity information of the target object is obtained via the connection channel, it is determined that the target object triggers the short-range communication operation for the short-range communication-based obtaining approach.

[0107] In the embodiments of this application, a communication connection protocol used by the connection channel between the terminal device of the target object and the identity recognition device is not limited. The connection channel includes, but is not limited to, an NFC connection channel, a Bluetooth connection channel, and the like.

[0108] An NFC connection is still used as an example. When a distance between the terminal device and the identity recognition device falls within a preset distance range, the terminal device transmits an NFC connection request to the identity recognition device. That is, the preset distance range may be preset for the identity recognition device. If the terminal device of the target object falls within the preset distance range, it indicates that the terminal device needs to establish an NFC connection with the identity recognition device for a subsequent NFC connection process. A specific setting manner may be: measuring, based on a relationship between an NFC signal strength of the identity recognition device and a distance, signal strengths at different distances through experiments, and selecting a distance range within which the signal strength is capable of stably supporting data transmission as the preset distance range. For example, after measurement through a plurality of experiments, it is determined that when the distance is 3 cm to 8 cm, the NFC signal strength is stable and data transmission can be performed normally. In this case, the preset distance range is set to 3 cm to 8 cm.

[0109] When receiving the short-range communication request, the identity recognition device establishes the connection channel between the terminal device of the target object and the identity recognition device. In an establishment process, the identity recognition device may negotiate communication parameters with the terminal device. The communication parameters may be a transmission rate, an encryption manner, and the like. After the communication parameters are negotiated, the connection channel is established between the identity recognition device and the terminal device. Once the connection channel is established, data exchange may be performed between the terminal device and the identity recognition device. When obtaining the identity information of the target object via the connection channel, the identity recognition device determines that the short-range communication operation is triggered.

[0110] A palm verification and recognition scenario is used as an example. FIG. 5 is a logical schematic diagram of an NFC connection establishment manner according to an embodiment of this application. The terminal device possessed by the target object is a mobile phone, and the identity recognition device is a palm verification device. When the mobile phone approaches the palm verification device and a distance between the mobile phone and the palm verification device is less than 5 centimeters, the mobile phone transmits an NFC connection request to the palm verification device. After receiving the NFC connection request, the palm verification device negotiates communication parameters with the mobile phone. The communication parameters include a data transmission rate, an encryption manner, and the like between the mobile phone and the palm verification device. After the communication parameters are negotiated, an NFC connection channel is established between the mobile phone and the palm verification device. Then, the mobile phone transmits the identity information of the target object to the palm verification device via the connection channel.(2) A Triggering Manner of a Sharing Operation

[0111] In an implementation, after the target object publishes content of to-be-shared information, the APP server may transmit, to the identity recognition server, identity information that is associated with an account publishing the to-be-shared information. The identity recognition server uses the identity information that is associated with the account publishing the to-be-shared information as the identity information of the target object. In addition, the APP server may further transmit the to-be-shared information to the identity recognition server. Because the to-be-shared information is generated based on a device identifier of the identity recognition device and is unique, the identity recognition server may determine, based on the to-be-shared information, the identity recognition device on which resource transfer exemption is performed, and then determine the identity recognition image transmitted by the identity recognition device. Further, the identity recognition server may associate the identity information with the identity recognition image.

[0112] In an implementation, after receiving the identity information, the identity recognition server transmits an information receiving indication to the identity recognition device. When receiving the information receiving indication, the identity recognition device determines that the target object triggers the sharing operation. The information receiving indication is a notification signal transmitted by the identity recognition server to the identity recognition device after the identity recognition server receives the identity information of the target object. When receiving the indication, the identity recognition device determines that the target object triggers the sharing operation, and subsequently, may display a gain obtaining interface to prompt the target object that the identity information of the target object has been used as the recognition result of the identity recognition image.

[0113] In an implementation, considering that the target object may delay publishing the to-be-shared information, and in some scenarios in which rapid passage is required, the identity recognition device needs to collect and detect an image of a next object quickly. When a display duration of the resource transfer exemption interface reaches a set display duration, it is determined that the sharing operation is triggered, and the gain obtaining interface is displayed, to collect and detect the image of the next object quickly. The gain obtaining interface is an interactive interface displayed by the identity recognition device after the target object obtains the resource gain through the selected approach and the identity recognition server confirms receipt of the identity information of the target object. The interface is configured to display, to the target object, a related result of obtaining the resource gain, and notify the target object through prompt information that the identity information transferred in a process in which the target object obtains the resource gain has been used as the recognition result of the identity recognition image, to implement functions of information feedback and interaction guidance.

[0114] A palm verification and recognition scenario is still used as an example. FIG. 6 is a logical schematic diagram of a message sharing manner according to an embodiment of this application. The target object publishes content with a password “Today's joy: free order through palm verification” in an instant messaging APP. After determining that the target object publishes the content with the password, an APP server transmits identity information that is associated with an account publishing the password to the identity recognition server. The identity information associated with the account represents that an object publishing the password is an account A in the instant messaging APP. The identity recognition server uses the identity information that is associated with the account publishing the to-be-shared information as the identity information of the target object. Alternatively, the identity information may be another information such as the mobile phone number. This is not limited.

[0115] FIG. 7 is a schematic flowchart of an identity recognition-based service processing method according to an embodiment of this application. The method is applied to an identity recognition server. A specific process is as follows:

[0116] S701: When an identity recognition image of a target object that is transmitted by an identity recognition device is received, perform matching between the target object and candidate objects based on the identity recognition image and respective candidate images of the candidate objects.

[0117] For ease of describing an identity recognition process, a description is made herein by using an example in which the identity recognition device is a palm verification device, and the identity recognition image is a palm image. For another identity recognition method, refer to the following description.

[0118] In the embodiments of this application, an identity recognition server may perform feature extraction on the palm image to obtain a palm feature of the target object, and then perform matching between the palm feature and candidate palm features corresponding to the candidate images of the candidate objects, to obtain a matching result.

[0119] In an implementation, in a matching process, the identity recognition server separately calculates similarities between the candidate palm features corresponding to the candidate images of the candidate objects and the palm feature, to obtain feature similarities between the corresponding candidate objects and the target object. If a plurality of candidate objects whose feature similarities with the target object fall within to a set similarity range, the matching result representing that the target object successfully match the plurality of candidate objects is generated.

[0120] The feature similarity may be calculated by using a Euclidean distancedE(x,y)=∑ i=1n⁢(xi-yi)2,where x and y respectively represents two feature vectors, and n represents a dimension of the feature vector. Alternatively, the feature similarity may be calculated by using a cosine similaritycos⁢θ=a→·b→<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>a→<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>⁢<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>b→<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,where {right arrow over (a)} and {right arrow over (b)} respectively represents two feature vectors; Alternatively, the feature similarity may be calculated by using a Jaccard similarityJ⁡(A,B)=<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>A⋂B<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics><semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>A⋃B<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,where A and B respectively represents two sets. The candidate palm features corresponding to the candidate images of the candidate objects may be calculated and stored in advance, or may be stored after the to-be-recognized palm image is obtained. This is not limited.For example, referring to FIG. 8, it is assumed that the candidate objects include A, B, C, D, and the like, candidate palm features respectively corresponding to the candidate objects are stored in a database, and the identity recognition server separately calculates feature similarity between the candidate palm features and the palm feature. It is assumed that a similarity range is greater than 98%, and the feature similarities respectively corresponding to A, B, and C are all greater than 98%, A, B, and C are all candidate objects successfully matching the target object. In this case, the matching result representing that the target object successfully matches the plurality of candidate objects is generated.In the embodiments of this application, if no candidate object successfully matching the target object exists, it indicates that the target object may not perform identity registration, and the target object may be assisted in identity registration. If one candidate object successfully matching the target object exists, identity information associated with the candidate object may be determined as identity information of the target object.In the foregoing implementation, identity recognition is performed based on image features. Because it is difficult to copy or tamper the image features, accuracy and security of identity recognition can be ensured. In addition, because the feature similarity may be adopted to measure a degree of similarity between two image features, determining the matching result based on the feature similarity can improve accuracy of an identity recognition result.S702: Transfer a to-be-transferred resource of the target object through a public account if a matching result represents that the target object successfully matches a plurality of candidate objects, and transmit a resource transfer exemption indication to the identity recognition device, to enable the identity recognition device to display a resource transfer exemption interface, the resource transfer exemption interface including a resource gain available to the target object and at least one approach of obtaining the resource gain.A specific transfer process may be: first, querying the public account for an available resource balance B, deducting, if the balance B is greater than or equal to the to-be-transferred resource R, the to-be-transferred resource R from the public account, and updating the balance of the public account to B-R; or issuing, if the balance B is less than the to-be-transferred resource R, a prompt indicating insufficient resources, and suspending the transfer operation.

[0126] In the embodiments of this application, the public account is configured for performing resource transfer on behalf of an object that require resource transfer exemption. That is, during resource transfer exemption, the resource is transferred from the public account, rather than from an account of the target object.

[0127] In an implementation, an administrator having service operation permission may apply for the public account for the service in advance. In this way, when a highly similar account exists, the public account may directly perform resource transfer on behalf of the target object. Configuration of the public account may be configured by, but is not limited to, the identity recognition server.

[0128] The highly similar account refers to, in an identity recognition scenario, accounts associated with a plurality of candidate objects for which, during feature matching between candidate images corresponding to the candidate objects and the identity recognition image of the target object, similarities reach a standard, which indicates a successful match. These accounts present a high similarity in an identity recognition link, tends to make it difficult to directly determine an identity of the target object. Therefore, during processing of a related service, the public account is invoked to preferentially perform resource transfer, to ensure rapid passage of the target object.

[0129] In an implementation, the administrator may further pre-configure, for a service, an operating policy in a scenario in which a highly similar object exists. A bus or a subway is used as an example. For a palm verification and recognition scenario of the bus or the subway, the administrator needs to configure the following operating policy: If the target object performs palm verification and recognition, and the target object successfully matches a plurality of candidate objects, the public account is invoked to preferentially perform payment; or if the target object adopts another identity recognition manner other than palm verification and recognition, identity information of the target object may still be determined after additional verification is performed by using a mobile phone number or code scanning additional verification method, and payment is performed based on the identity information of the target object. In addition, the administrator may further configure an operating policy for encouraging the target object to perform feedback, to further determine the identity information of the target object, for example, configure content related to the resource gain, such as sharing to obtain a random red envelope or having a chance to double the amount.

[0130] In an implementation, if the matching result represents that the target object successfully matches the plurality of candidate objects, the identity recognition server may further generate to-be-shared information, and transmit the resource transfer exemption indication carrying the to-be-shared information. Alternatively, in practical application, the to-be-shared information may be separately transmitted to the identity recognition device. This is not limited.

[0131] In an implementation, the to-be-shared information is a password generated at least based on a device identifier of the palm verification device, and a length of the password is less than a set length threshold. The device identifier is configured for uniquely identifying one palm verification device. The device identifier may be, but is not limited to, a device serial number (SN). The SN is a serial number in the form of a string, and may uniquely identify one device. In addition, the identity recognition server may further generate the to-be-shared information with reference to trigger time of the identity recognition operation. The password includes, but is not limited to, one or a combination of more of a digit, a character, and the like.

[0132] A specific incorporation manner may be: converting the device identifier D of the palm verification device and the trigger time T of the identity recognition operation into a timestamp form and a feature vector F of the identity recognition image as an input, generating a unique hash value H(D,T,F) by using a hash function H, converting the hash value into a password with a length less than the set length threshold, such as truncating the first n bits of the hash value as the password, n indicating the preset length threshold. The to-be-shared information generated in such a manner not only includes uniqueness of the device identifier, but also incorporates timeliness of the trigger time.

[0133] Exemplarily, the identity recognition server generates a unique ID based on the device serial number of the palm verification device end, the timestamp corresponding to the trigger time of the palm verification operation, and an MD5 value of the to-be-recognized palm image, and generates the password based on the set length threshold. For example, the generated password is “Today's joy: free order through palm verification”. Then, the identity recognition server returns the password to the palm verification device.

[0134] By generating the to-be-shared information in the form of a password, it is convenient for a user to memorize and publish the to-be-shared information because a length of the password is controllable. This improves a sharing probability of the to-be-shared information, and facilitates subsequent identity recognition algorithm optimization.

[0135] S703: Use identity information as a recognition result of the identity recognition image when the identity information transferred by the target object through a selected approach in the at least one approach is received.

[0136] In practical application, there is a probability of matching a highly similar user, when the target object matches a highly similar user, distinguishing is performed by using a mobile phone number additional verification or code scanning additional verification method. However, in a scenario such as a bus or a subway, passage efficiency may be affected by mobile phone number additional verification or code scanning additional verification. In the embodiments of this application, when it is determined that a highly similar user exists, the public account is invoked to preferentially perform resource transfer, to ensure passage. In addition, the target object is prompted, on the identity recognition device side, that resource transfer exemption is performed for this service, that is, this order is free of charge. In addition, the target object is further prompted to obtain the resource gain, and the identity information of the target object is obtained through the resource gain.

[0137] In an implementation, if the selected approach is: the short-range communication-based obtaining approach, the identity recognition server obtains the identity information through the identity recognition device. For the short-range communication-based obtaining approach, the identity recognition device may directly transfer the obtained identity information to the identity recognition server.

[0138] In an implementation, if the selected approach is the message sharing-based obtaining approach, when the target object triggers a publishing operation for the to-be-shared information, the identity recognition server uses the identity information that is associated with the object publishing the to-be-shared information as the identity information of the target object.

[0139] The identity recognition server may be a backend server of an APP. When the target object publishes content in a social APP through a mobile phone, the content is uploaded to the identity recognition server. In this way, after receiving the to-be-shared information, the identity recognition server uses identity information that is associated with an object publishing the to-be-shared information as the identity information of the target object. The identity recognition server may alternatively be a server capable of performing data interaction with a backend server of an APP. When the target object publishes content in a social APP through a mobile phone, if the published content is the to-be-shared content, the backend server of the APP uses identity information that associated with an object publishing the to-be-shared information as the identity information of the target object, and transmits the identity information of the target object to the identity recognition server. The identity recognition server obtains the identity information of the target object based on the to-be-shared information.

[0140] To avoid the problem of the presence of a highly similar object from occurring again subsequently, in the embodiments of this application, the identity recognition server may further optimize an identity recognition algorithm based on the identity information transferred by the target object, to improve accuracy of identity recognition.

[0141] In an implementation, the identity recognition server may further perform feature selection on candidate feature dimensions based on the identity recognition image and a plurality of candidate objects, to obtain at least one identity recognition feature dimension. When a new palm image of the target object is received, feature extraction is performed on the new palm image based on the at least one identity recognition feature dimension, to obtain a new image feature, and a recognition result is obtained based on the new image feature.

[0142] Feature selection may be implemented in, but is not limited to, at least one of the following manners:

[0143] Manner I: The identity recognition server combines the candidate feature dimensions, to obtain sets of feature dimensions, and separately performs the following operations for the sets of feature dimensions: separately performing feature extraction on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, obtaining, based on the obtained image features, a corresponding predicted matching results, and obtaining, based on the predicted matching result and a true matching result, an evaluation result corresponding to the set of feature dimensions; and selecting, based on the evaluation results respectively corresponding to the sets of feature dimensions, one set of feature dimensions satisfying a set evaluation condition from the sets of feature dimensions, and using a candidate feature dimension in the selected set of feature dimensions as the identity recognition feature dimension.

[0144] A description is made by still using an example in which the identity recognition image is a palm image. For each set of feature dimensions, feature extraction is separately performed on a to-be-recognized palm image and a plurality of candidate palm images, to obtain corresponding palm features, a corresponding predicted matching result is obtained based on the obtained palm features, and an evaluation result corresponding to the set of feature dimensions is obtained based on the predicted matching result and a true matching result.

[0145] For feature extraction of a palm image, the candidate feature dimension includes, but is not limited to, one or more of the following feature dimensions: a geometrical feature representing an overall shape and a contour of a palm, such as a palm size, a finger length, a finger spacing, or a finger joint feature; a texture feature representing lines and details of a palm surface, such as a palm line, a wrinkle, a spot, or a texture direction; a shape feature representing an edge and a contour of the palm, such as an contour feature, a curvature variation feature, or a convex-concave feature; and a depth feature extracted from the palm image through deep learning, such as a convolutional feature or a residual feature.

[0146] In the embodiments of this application, a combination method of the candidate feature dimensions is not limited, and the sets of feature dimensions may include all or some combinations of the candidate feature dimensions.

[0147] In the embodiments of this application, the true matching result is determined based on the identity information transferred by the target object. A candidate object truly corresponding to the target object may be determined from the candidate objects based on the identity information transferred by the target object.

[0148] The evaluation result is configured for evaluating an image distinguishing capability of a corresponding combination of candidate feature dimensions. Exemplarily, when the true matching result is the same as the predicted matching result, the evaluation result represents that prediction for the corresponding combination is correct, and when the true matching result is different from the predicted matching result, the evaluation result represents that prediction for the corresponding combination is incorrect. The set evaluation condition includes, but is not limited to, an evaluation result indicating that prediction is correct. For example, the predicted matching result and the true matching result are directly compared. If the predicted matching result and the true matching result are the same, the evaluation result E is recorded as 1, which indicates that prediction is correct. If the predicted matching result and the true matching result are not the same, E is recorded as 0, which indicates that prediction is incorrect.

[0149] Referring to FIG. 9A, it is assumed that the true matching result indicates that the to-be-recognized palm image matches a candidate palm image 1, and the candidate feature dimensions include 10 feature dimensions such as a feature 1 (a palm size), a feature 2 (a finger length), and a feature 3 (a finger spacing), the identity recognition server combines the candidate feature dimensions to obtain sets of feature dimensions. Three sets of feature dimensions in the sets of feature dimensions are used as an example. The three sets of feature dimensions are a combination 1, a combination 2, and a combination 3, respectively. The combination 1 includes candidate feature dimensions such as the feature 1, the feature 2, and a feature 4, the combination 2 includes candidate feature dimensions such as the feature 2, the feature 3, and the feature 4, and the combination 3 includes candidate feature dimensions such as the feature 1, the feature 3, and the feature 4.

[0150] Referring to FIG. 9B, for the combination 1, the identity recognition server separately performs feature extraction on the to-be-recognized palm image and the plurality of candidate palm images based on the candidate feature dimensions such as the feature 1, the feature 2, and the feature 4, to obtain palm features respectively corresponding to the to-be-recognized palm image and the plurality of candidate palm images (that is, respective candidate palm images of A, B, and C), and then obtains a predicted matching result between the to-be-recognized palm image and the plurality of candidate palm images based on the obtained palm features respectively corresponding to the to-be-recognized palm image and the plurality of candidate palm images. The predicted matching result represents that the to-be-recognized palm image successfully matches a candidate palm image 1. The predicted matching result is the same as the true matching result. Therefore, an evaluation result corresponding to the combination 1 is obtained based on the predicted matching result and the true matching result, and the evaluation result corresponding to the combination 1 indicates that prediction is correct.

[0151] Referring to FIG. 9C, for the combination 2, the identity recognition server separately performs feature extraction on the to-be-recognized palm image and the plurality of candidate palm images based on the candidate feature dimensions such as the feature 2, the feature 3, and the feature 4, to obtain corresponding palm features, and obtains a predicted matching result between the to-be-recognized palm image and the plurality of candidate palm images based on the obtained palm features. The predicted matching result represents that the to-be-recognized palm image successfully matches a candidate palm image 2. Based on the predicted matching result, an evaluation result corresponding to the combination 2 is obtained with reference to the true matching result. The evaluation result represents that the prediction is incorrect.

[0152] Referring to FIG. 9D, for the combination 3, the identity recognition server separately performs feature extraction on the to-be-recognized palm image and the plurality of candidate palm images based on the candidate feature dimensions such as the feature 1, the feature 3, and the feature 4, to obtain corresponding palm features, and obtains a predicted matching result between the to-be-recognized palm image and the plurality of candidate palm images based on the obtained palm features. The predicted matching result represents that the to-be-recognized palm image successfully matches both the candidate palm image 1 and the candidate palm image 2. An evaluation result corresponding to the combination 3 is obtained with reference to the true matching result. The evaluation result corresponding to the combination 3 represents that prediction is incorrect.

[0153] Finally, the candidate feature dimension included in the combination 1 is used as the identity recognition feature dimension based on the evaluation results respectively corresponding to the three sets of feature dimensions.

[0154] Through feature selection, a feature subset that best represents data features and that best distinguishes between different categories may be selected from an original feature set, to reduce feature dimensions. This avoids redundant information, and improves efficiency and accuracy of a model. In addition, irrelevant or redundant features may be removed through feature selection, to make the model simple and efficient.

[0155] Manner II: The identity recognition server combines the candidate feature dimensions, to obtain sets of feature dimensions, and separately performs the following operations for the sets of feature dimensions: separately performing feature extraction on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, and obtaining, based on feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, an evaluation result corresponding to the set of feature dimensions; and selecting, based on the evaluation results respectively corresponding to the sets of feature dimensions, one set of feature dimensions satisfying a set evaluation condition from the sets of feature dimensions, and using a candidate feature dimension in the selected set of feature dimensions as the identity recognition feature dimension.

[0156] The feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images refer to respective feature similarities between the image features of the plurality of candidate images and the image feature of the identity recognition image. One feature similarity is configured for representing a degree of similarity between the image feature of the identity recognition image and an image feature of one candidate image. The feature similarity may be implemented by, but is not limited to, using a distance measurement algorithm such as a Euclidean distance, a cosine similarity, or a Jaccard similarity.

[0157] The evaluation result is configured for evaluating an image distinguishing capability of a corresponding combination of candidate feature dimensions. Exemplarily, an average value or a weighted average value of the feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images may be used as an evaluation result corresponding to one set of feature dimensions. A higher value of the evaluation result indicates higher similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, and an evaluation result representing lower accuracy of prediction for the set of feature dimensions, and a lower value of the evaluation result indicates larger differences between the image feature of the identity recognition image and the image features of the plurality of candidate images, and an evaluation result representing higher accuracy of prediction for the set of feature dimensions. In practical application, the evaluation result may alternatively be obtained based on feature differences between the image feature of the identity recognition image and image features of the plurality of candidate images. One feature difference is configured for representing a degree of difference between the image feature of the identity recognition image and an image feature of one candidate image. The feature difference may be implemented by using a distance measurement algorithm such as a Euclidean distance, a cosine similarity, or a Jaccard similarity. Details are not described herein again.

[0158] For example, with reference to the feature similarity, a consistency score between the predicted matching result and the true matching result is first defined as S1, and if the two results are consistent, S1=1, or if the two results are inconsistent, S1=0. Then, the average valueS2=1M⁢∑ j=1M⁢Sjof the feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images is calculated, where M indicates a quantity of candidate images, Sj indicates a feature similarity between a jth candidate image and the identity recognition image (a calculation method is the same as the foregoing cosine similarity). Finally, an evaluation result E=αS1+(1−α)S2 is obtained, where α indicates a weight coefficient with a value range of [0,1]. The set evaluation condition includes, but is not limited to, that the evaluation result E greater than a set evaluation threshold ET indicates that prediction is correct.Still referring to FIG. 9A, it is assumed that the true matching result indicates that the identity recognition image matches a candidate image 1, and the candidate feature dimensions include 10 feature dimensions such as a feature 1 (a palm size), a feature 2 (a finger length), and a feature 3 (a finger spacing), the identity recognition server combines the candidate feature dimensions to obtain three sets of feature dimensions. The three sets of feature dimensions are a combination 1, a combination 2, and a combination 3, respectively. The combination 1 includes candidate feature dimensions such as the feature 1, the feature 2, and a feature 4. The combination 2 includes candidate feature dimensions such as the feature 2, the feature 3, and the feature 4. The combination 3 includes candidate feature dimensions such as the feature 1, the feature 3, and the feature 4.

[0160] Referring to FIG. 10, for combination 1, the identity recognition server separately performs feature extraction on the to-be-recognized palm image and the candidate palm images based on the candidate feature dimensions such as the feature 1, the feature 2, and the feature 4, to obtain palm features respectively corresponding to the to-be-recognized palm image and the plurality of candidate palm images, then calculates respective feature similarities between the palm features of the plurality of candidate palm images and the palm feature of the to-be-recognized palm image, and uses an average value of the plurality of similarities obtained through calculation as an evaluation result of the combination 1. Similarly, evaluation results of the combination 2 and the combination 3 may be obtained. It is assumed that the set evaluation condition is an evaluation result having a minimum value, and in the three combinations, the evaluation result of the combination 2 has the minimum value, one set of feature dimensions whose evaluation result has the minimum value, namely, the combination 2, is selected from the sets of feature dimensions based on the evaluation results respectively corresponding to the sets of feature dimensions, and a candidate feature dimension in combination 2 is used as the identity recognition feature dimension.

[0161] In the foregoing implementation, a similarity or difference between data points is determined through distance measurement. In this way, it is ensured that a selected feature has good discriminability in distance measurement, to effectively distinguish highly similar data.

[0162] Manner III: Perform feature extraction based on Manner I in combination with Manner II.

[0163] The identity recognition server combines the candidate feature dimensions, to obtain sets of feature dimensions, and separately performing the following operations for the sets of feature dimensions: separately performing feature extraction on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, and obtaining, based on the predicted matching result and the true matching result in combination with feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, an evaluation result corresponding to the set of feature dimensions; and selecting, based on the evaluation results respectively corresponding to the sets of feature dimensions, one set of feature dimensions satisfying a set evaluation condition from the sets of feature dimensions, and using a candidate feature dimension in the selected set of feature dimensions as the identity recognition feature dimension.

[0164] Exemplarily, the evaluation result may be calculated by, but is not limited to, the following method: comparing the predicted matching result with the true matching result, to obtain a result evaluation value; obtaining a distance evaluation value based on the feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, the distance evaluation value being an average value, a weighted average value, or the like of the feature similarities; and then, performing calculation, such as averaging or weighted averaging, on the result evaluation value and the distance evaluation value, to obtain an evaluation result corresponding to one set of feature dimensions. Manner III is similar to Manner I and Manner II. Details are not described herein again.

[0165] The result evaluation value is a value obtained by comparing the predicted matching result with the true matching result in a feature selection process, and is configured for evaluating accuracy of a candidate feature dimension combination. For example, when the predicted matching result is consistent with the true matching result, the result evaluation value is recorded as 1, which indicates that prediction is correct. If the predicted matching result is inconsistent with the true matching result, the result evaluation value is recorded as 0, which indicates that prediction is incorrect. The distance evaluation value is a value obtained through calculation based on the feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, and is configured for measuring degrees of similarities between the identity recognition image and the plurality of candidate images. The evaluation result may be an average value or a weighted average value of the feature similarities. A higher value of the evaluation result indicates higher similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, and lower accuracy of prediction for the set of feature dimensions. A lower value indicates larger differences and higher accuracy of prediction.

[0166] In the foregoing implementation, a combination of candidate feature dimensions is evaluated based on the predicted matching result in combination with a similarity or a difference between data points determined through distance measurement. In this way, a selected feature has good discriminability in distance measurement, to improve accuracy of identity recognition.

[0167] When a new palm image of the target object is received, feature extraction is performed on the new palm image based on the at least one identity recognition feature dimension, to obtain a new image feature. An accurate recognition result can be obtained based on the new image feature. Because the process of performing identity recognition based on the new image feature is similar to the process of performing identity recognition based on the palm feature of the to-be-recognized palm image, details are not described herein again. For details, refer to S701.

[0168] In some implementations, the identity recognition process is typically implemented through an identity recognition model. To be specific, the identity recognition server inputs the to-be-recognized palm image into the identity recognition model, to obtain the matching result.

[0169] In an implementation, the identity recognition server associates the to-be-recognized palm image with a matching candidate object (namely, a candidate object matching the to-be-detected object), then trains the identity recognition model based on the matching candidate object and the associated to-be-recognized palm image thereof in combination with a plurality of candidate objects successfully matching a to-be-recognized palm image of the matching candidate object and associated candidate palm images thereof, to obtain a trained identity recognition model. The trained identity recognition model may be adopted for subsequent identity recognition.

[0170] A specific association storage method may be: creating an association table in a database, the table including fields such as an identifier of the to-be-recognized palm image, an identity identifier of the matching candidate object, and association time. After determining that the to-be-recognized palm image matches a candidate object, the identity recognition server inserts the identifier of the to-be-recognized palm image and an identity identifier of the matching candidate object into the association table, and records association time for subsequent query and use. The association table is a structured table configured for recording and storing a correspondence between the to-be-recognized palm image and the matching candidate object in the database. In the association table, fields such as the identifier of the to-be-recognized palm image, the identity identifier of the matching candidate object, and the association time are set, and information about the association between the to-be-recognized palm image and the matching candidate object is stored in an ordered and searchable manner, to facilitate management, query, and use of the associated data in a subsequent identity recognition service process. This provides data support for optimization of the identity recognition algorithm and service processing. The association time is time that is recorded in the association table and at which the association between the to-be-recognized palm image and the matching candidate object is established.

[0171] In the embodiments of this application, the identity recognition model may be trained after identity information of a target object having a highly similar object is obtained, or the identity recognition model may be trained after identity information of a quantity of target objects having highly similar objects is obtained, or the identity recognition model may be trained according to a set update period and based on identity information of a target object having a highly similar object within one update period. This is not limited. Herein, a description is made only by using a process of training the identity recognition model based on identity information of one target object as an example.

[0172] Specifically, the identity recognition server performs label annotation on the to-be-recognized palm image, to obtain a label corresponding to the to-be-recognized palm image. The label is configured for representing a true identity of the to-be-recognized palm image. Then, the identity recognition server inputs the to-be-recognized palm image into the identity recognition model, to obtain the predicted matching result. Specifically, the identity recognition server first performs feature extraction performed on the to-be-recognized palm image through the identity recognition model, to obtain a corresponding sample palm feature, and then performs matching between the sample palm feature of the to-be-recognized palm image and sample palm features of the candidate palm images, to obtain the predicted matching result. Finally, the identity recognition server obtains a model loss based on the predicted matching result and the true matching result, and performs parameter adjustment based on the model loss.

[0173] As an example, it is set that the predicted matching result is P, and the true matching result is T. A model loss is calculated by using a cross-entropy loss function L, namely,L=-∑ i=1m⁢Ti⁢log⁡(Pi),where m indicates a quantity of categories.Referring to FIG. 11, it is assumed that the candidate objects successfully matching the target object include A, B, and C. The identity recognition server determines, based on the identity information transferred by the target object, that the target object is A. The identity recognition server associates the to-be-recognized palm image with A, performs label annotation on the to-be-recognized palm image, to obtain the label corresponding to the to-be-recognized palm image. The label being configured for representing that an object associated with the to-be-recognized palm image is A. The identity recognition server inputs the to-be-recognized palm image into the identity recognition model, to obtain the predicted matching result. The predicted matching result represents that an object associated with the to-be-recognized palm image is B. Then, the identity recognition server obtains the model loss based on the predicted matching result and the true matching result, and performs parameter adjustment based on the model loss.

[0175] As an example, a parameter adjustment method is: using a stochastic gradient descent method, and setting a parameter of the model to be θ and a learning rate to be α. In this case, a parameter update formula isθ=θ-α⁢∂L∂θ,where L indicates the model loss.In an implementation, in a model training process, model training may further be performed through a regularization technology. Regularization is an important technology in machine learning and deep learning, and is configured for preventing model overfitting, to improve a generalization capability of a model. By adding a regularization term to the loss function, the regularization technology may penalize a complex model and encourage the model to learn a simple and generalizable pattern. In the embodiments of this application, the regularization technology includes, but is not limited to: L1 regularization, L2 regularization, Dropout, data augmentation, early stopping, and the like.

[0177] L2 regularization is used as an example. Based on the original loss function L, an L2 regularization term λΣi wi2 is added, where λ indicates a regularization coefficient, and wi indicates the parameter of the model. In this case, a new loss function Lnew isLnew=L+λ⁢∑ i⁢wi2.When the model parameter is updated by using the stochastic gradient descent method in the training process, not only a gradient of the original loss function needs to be considered, but also a gradient of the regularization term needs to be considered. That is, the parameter update formula is changed toθ=θ-α⁡(∂Lnew∂θ),where α indicates a learning rate, and θ indicates the model parameter. In this manner, an excessively large parameter in the model is penalized, to prevent model overfitting and improve a generalization capability of the model.The following describes this application with reference to several specific embodiments.Embodiment IFIG. 12 is a schematic diagram of a palm verification and recognition-based passage verification process in a subway passage scenario according to an embodiment of this application.S121: A target object places a palm in an image collection area of a palm verification device, to trigger a palm verification operation.

[0181] S122: The palm verification device collects, in response to the palm verification operation triggered by the target object, a to-be-recognized palm image of the target object, and transmits the to-be-recognized palm image to an identity recognition server.

[0182] S123: The identity recognition server performs identity recognition based on the to-be-recognized palm image. Specifically, the identity recognition server performs matching between the target object and candidate objects based on an identity recognition image and respective candidate images of the candidate objects.

[0183] S124: If a matching result represents that the target object successfully matches a plurality of candidate objects, the identity recognition server transfers a to-be-transferred resource of the target object through a public account.

[0184] S125: The identity recognition server transmits a resource transfer exemption indication to the palm verification device.

[0185] S126: The palm verification device displays a resource transfer exemption interface, the resource transfer exemption interface including a resource gain available to the target object and two approaches of obtaining the resource gain, and the two approaches including an NFC-based obtaining approach and a message sharing-based obtaining approach.

[0186] S127: The palm verification device transmits an open-barrier instruction to a subway ticket barrier, to control the subway ticket barrier to open.

[0187] S128: When a mobile phone of the target object approaches the palm verification device, establish an NFC connection channel between the mobile phone and the palm verification device, and transmit identity information of the target object to the palm verification device via the NFC connection channel.

[0188] After obtaining the identity information, the palm verification device displays a gain obtaining interface including prompt information. The prompt information is configured for representing that the identity information transferred in a process in which the target object obtains the resource gain through a selected approach is used as a recognition result of the identity recognition image.

[0189] S129: The palm verification device transfers the identity information of the target object to the identity recognition server. Further, the identity recognition server may optimize an identity recognition algorithm based on the identity information of the target object.Embodiment II

[0190] FIG. 13 is a schematic diagram of a palm verification and recognition-based item purchasing process in an automatic vending scenario according to an embodiment of this application.

[0191] S131: A target object places a palm in an image collection area of a palm verification device, to trigger a palm verification operation.

[0192] S132: The palm verification device collects, in response to the palm verification operation triggered by the target object, a to-be-recognized palm image of the target object, and transmits the to-be-recognized palm image to an identity recognition server.

[0193] S133: The identity recognition server performs identity recognition based on the to-be-recognized palm image. Specifically, the identity recognition server performs matching between the target object and candidate objects based on an identity recognition image and respective candidate images of the candidate objects.

[0194] S134: If a matching result represents that the target object successfully matches a plurality of candidate objects, the identity recognition server transfers a to-be-transferred resource of the target object through a public account.

[0195] S135: The identity recognition server transmits a resource transfer exemption indication to the palm verification device.

[0196] S136: The palm verification device displays a resource transfer exemption interface, the resource transfer exemption interface including a resource gain available to the target object and two approaches of obtaining the resource gain, and the two approaches including an NFC-based obtaining approach and a message sharing-based obtaining approach.

[0197] S137: The palm verification device transmits a pop-up instruction to a vending machine, to control the vending machine to eject an item being sold.

[0198] S138: The target object publishes content with a password in a social APP. The identity recognition server is also a backend server of the social APP. When the target object publishes content in the social APP through a mobile phone, the content is uploaded to the identity recognition server. Alternatively, the identity recognition server may be a server capable of performing data interaction with a backend server of the social APP. When the target object publishes content in the social APP through a mobile phone, if the published content is to-be-shared content, the to-be-shared content may be transmitted to the identity recognition server.

[0199] Further, the identity recognition server optimizes an identity recognition algorithm based on identity information that is associated with an account publishing the password.

[0200] In addition, the identity recognition server may further transmit an information reception indication to the palm verification device, to enable the palm verification device to display a gain obtaining interface including prompt information. The prompt information is configured for representing that the identity information transferred in a process in which the target object obtains the resource gain through a selected approach is used as a recognition result of the identity recognition image.

[0201] Based on the same inventive concept, the embodiments of this application provide an identity recognition-based service processing apparatus. FIG. 14 is a schematic structural diagram of an identity recognition-based service processing apparatus 1400. The apparatus may include:

[0202] a recognition unit 1401, configured to obtain, in response to an identity recognition operation triggered for a target object, an identity recognition image collected for the target object, the identity recognition image being configured for identity recognition; and

[0203] an exemption unit 1402, configured to display a resource transfer exemption interface when the identity recognition image successfully matches candidate images of a plurality of candidate objects, the resource transfer exemption interface including: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object, and the identity information being configured for determining an identity recognition result.

[0204] In an implementation, if the at least one approach includes: a short-range communication-based obtaining approach, the exemption unit 1402 is further configured to:

[0205] obtain, in response to a short-range communication operation triggered by the target object for the short-range communication-based obtaining approach, the identity information transferred in a process in which the target object obtains the resource gain through the short-range communication-based obtaining approach.

[0206] In an implementation, the exemption unit 1402 is further configured to:

[0207] establish a connection channel between a terminal device of the target object and an identity recognition device when a short-range communication request is received from the terminal device of the target object, the connection channel being configured to transmit the identity information of the target object; and

[0208] determine, when the identity information of the target object is obtained via the connection channel, that the target object triggers the short-range communication operation for the short-range communication-based obtaining approach.

[0209] In an implementation, if the at least one approach includes: a message sharing-based obtaining approach, the resource transfer exemption interface further includes to-be-shared information, and the to-be-shared information is generated at least based on a device identifier of the identity recognition device.

[0210] In an implementation, the to-be-shared information is at least a password generated based on the device identifier of the identity recognition device, and a length of the password is less than a set length threshold.

[0211] In an implementation, the identity recognition device is a palm verification device, the identity recognition image is a palm image, and the recognition unit 1401 is further configured to:

[0212] perform feature extraction on the palm image to obtain a palm feature of the target object, and perform matching between the palm feature and candidate palm features corresponding to the candidate images of the candidate objects; and

[0213] if a matching result represents that a plurality of candidate palm features successfully matching the palm feature exist, determine that the identity recognition image successfully matches the respective candidate images of the plurality of candidate objects.

[0214] Based on the same inventive concept, the embodiments of this application provide an identity recognition-based service processing apparatus. FIG. 15 is a schematic structural diagram of an identity recognition-based service processing apparatus 1500. The apparatus may include:

[0215] an identity recognizing unit 1501, configured to perform, when an identity recognition image of a target object that is transmitted by an identity recognition device, matching between the target object and candidate objects based on the identity recognition image and respective candidate images of the candidate objects;

[0216] a resource transferring unit 1502, configured to if a matching result represents that the target object successfully matches a plurality of candidate objects, transfer a to-be-transferred resource of the target object through a public account, and transmit a resource transfer exemption indication to the identity recognition device, to enable the identity recognition device to display a resource transfer exemption interface, the resource transfer exemption interface including a resource gain available to the target object and at least one approach of obtaining the resource gain; and

[0217] an information obtaining unit 1503, configured to use, when identity information transferred by the target object through a selected approach in the at least one approach is received, the identity information as a recognition result of the identity recognition image.

[0218] In an implementation, the information obtaining unit 1503 is configured to:

[0219] obtain the identity information through the identity recognition device if the selected approach is: a short-range communication-based obtaining approach; or

[0220] if the selected approach is: a message sharing-based obtaining approach, use, when the target object triggers a publishing operation for to-be-shared information, identity information that is associated with an object publishing the to-be-shared information as the identity information of the target object.

[0221] In an implementation, the identity recognizing unit 1501 is further configured to:

[0222] perform feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension; and

[0223] perform, when a new palm image of the target object is received, feature extraction on the new palm image based on the at least one identity recognition feature dimension, to obtain a new image feature, and obtain a recognition result based on the new image feature.

[0224] In an implementation, when performing feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension, the identity recognizing unit 1501 is specifically configured to:

[0225] combine the candidate feature dimensions, to obtain sets of feature dimensions, and separately perform the following operations for the sets of feature dimensions:

[0226] separately performing feature extraction on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, obtaining a corresponding predicted matching result based on the obtained image features, and obtaining, based on the predicted matching result and a true matching result, an evaluation result corresponding to the set of feature dimensions; and

[0227] selecting, based on the evaluation results respectively corresponding to the sets of feature dimensions, one set of feature dimensions satisfying a set evaluation condition from the sets of feature dimensions, and using a candidate feature dimension in the selected set of feature dimensions as the identity recognition feature dimension.

[0228] In an implementation, when obtaining, based on the predicted matching result and a true matching result, an evaluation result corresponding to the set of feature dimensions, the identity recognizing unit 1501 is specifically configured to perform at least one of the following operations:

[0229] obtaining, solely based on the predicted matching result and the true matching result, the evaluation result corresponding to the set of feature dimensions; and

[0230] obtaining, based on the predicted matching result and the true matching result in combination with feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images, the evaluation result corresponding to the set of feature dimensions.

[0231] In an implementation, when the performing matching between the target object and candidate objects based on the identity recognition image and respective candidate images of the candidate objects, the identity recognizing unit 1501 is specifically configured to:

[0232] perform feature extraction on the identity recognition image, to obtain a palm feature of the target object;

[0233] separately calculate similarities between candidate palm features corresponding to the respective candidate images of the candidate objects and the palm feature, to obtain feature similarities between the corresponding candidate objects and the target object; and

[0234] generate, if a plurality of candidate objects whose feature similarities with the target object fall within a set similarity range exist, the matching result representing that the target object successfully matches the plurality of candidate objects.

[0235] For ease of description, the foregoing parts are divided into modules (or units) based on functions and are separately described. Alternatively, during implementation of this application, the functions of the modules (or units) may be implemented in one or more software or hardware.

[0236] For the apparatus in the foregoing embodiments, specific manners of executing requests by units of the apparatus have been described in detail in the embodiments related to the method. Details are not described herein again.

[0237] A person skilled in the art will appreciate that various aspects of this application may be implemented as a system, a method, or a program product. Therefore, various aspects of this application may be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, and the like), or an implementation combining hardware and software, which may be collectively referred to as a “circuit”, a “module”, or a “system” herein.

[0238] Based on the same inventive concept, the embodiments of this application further provide an electronic device. In an embodiment, the electronic device may be a server or a terminal device. FIG. 16 is a schematic structural diagram of a possible electronic device according to an embodiment of this application. In FIG. 16, an electronic device 1600 includes: a processor 1610 and a memory 1620.

[0239] The memory 1620 has a computer program executable by the processor 1610 stored therein. The processor 1610 may perform the operations of the identity recognition-based service processing method by executing instructions stored in the memory 1620.

[0240] The memory 1620 may be a volatile memory such as a random-access memory (RAM). The memory 1620 may alternatively be a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). Alternatively, the memory 1620 is, but is not limited to, any other medium that is capable of carrying or storing expected program code in the form of instructions or a data structure and that is accessible by a computer. The memory 1620 may alternatively be a combination of the foregoing memories.

[0241] The processor 1610 may include one or more central processing units (CPUs), digital processing units, and the like. The processor 1610 is configured to implement the identity recognition-based service processing method when executing the computer program stored in the memory 1620.

[0242] In some embodiments, the processor 1610 and the memory 1620 may be implemented on a same chip. In some embodiments, the processor 1610 and the memory 1620 may be separately implemented on independent chips.

[0243] A specific connection medium between the processor 1610 and the memory 1620 is not limited in the embodiments of this application. In the embodiments of this application, an example in which the processor 1610 and the memory 1620 are connected via a bus is used. The bus is depicted with a thick line in FIG. 16. An exemplary description is merely made to a connection manner between other components, but the connection manner is not limited thereto. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of description, the bus is depicted with only one thick line in FIG. 16, but this does not imply that there is only one bus or one type of bus.

[0244] Based on the same inventive concept, the embodiments of this application provide a computer readable storage medium, which includes a computer program. When running on an electronic device, the computer program is configured for causing the electronic device to perform the operations of the identity recognition-based service processing method. In some implementations, aspects of the identity recognition-based service processing method provided in this application may alternatively be implemented in the form of a program product, which includes a computer program. When running on an electronic device, the computer program is configured for causing the electronic device to perform the operations of the identity recognition-based service processing method. For example, the electronic device may perform the operations shown in FIG. 3 or FIG. 7.

[0245] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. For example, the readable storage medium may be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0246] The program product in the implementations of this application may use a CD-ROM including a computer program, and is runnable on an electronic device. However, the program product of this application is not limited thereto. Herein, the readable storage medium may be any tangible medium including or storing a computer program. The computer program may be used by or used in combination with a command execution system, apparatus, or device.

[0247] The readable signal medium may include a data signal propagated in a baseband or as a part of a carrier. The data signal carries a readable computer program. The data signal propagated in such a manner may use a plurality of forms, which includes, but is not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium may further be any readable medium other than the readable storage medium. The readable medium may transmit, propagate, or transfer a computer program used by or used in combination with a command execution system, apparatus, or device.

[0248] In conclusion, this application provides an identity recognition-based service processing method and apparatus, a device, a storage medium, and a computer program product. When an identity recognition operation is triggered for a target object, an identity recognition device obtains an identity recognition image configured for identity recognition. In a conventional identity recognition scenario, if the identity recognition image successfully matches candidate images of a plurality of candidate objects, a complex additional verification process is often required, which significantly increases service processing duration. However, in this solution, when the identity recognition image successfully matches candidate images of a plurality of candidate objects, a resource transfer exemption interface including a resource gain and an obtaining approach is displayed. Through an operation of exempting a to-be-transferred resource, the target object can quickly complete the service process without the need for waiting for the complex additional verification process. For example, in a scenario in which rapid passage is required, such as passing through a bus or subway ticket barrier, a passenger may quickly pass through a ticket barrier. This significantly improves service processing efficiency. In addition, the resource gain, as an incentive mechanism, encourages the target object to actively provide identity information. Because true identity information is provided, during subsequent identity recognition, determining can be performed based on correct information. This avoids recognition errors caused by inaccurate information, and improves accuracy of identity recognition.

[0249] Further, If the approach of obtaining the resource gain includes a short-range communication-based obtaining approach, the identity recognition device obtains, in response to a short-range communication operation triggered by the target object for this approach, the identity information transferred in a process in which the identity recognition obtains the resource gain. The short-range communications technology (such as NFC or Bluetooth) has characteristics of fast and stable data transmission. During data transmission, a large amount of data can be exchanged in a short time through this technology, which significantly reduces time costs of information transfer compared to the conventional additional verification method such as manually entering the last four digits of the mobile phone number or a verification code. For example, at a subway ticket barrier, a passenger can quickly complete identity information transmission only by approaching an NFC-enabled mobile phone to the ticket barrier, and quickly pass through the ticket barrier. This improves information obtaining efficiency, and increases an overall service processing speed.

[0250] When the target object triggers the short-range communication-based obtaining approach, the identity recognition device establishes a connection channel between a terminal device of the target object and the identity recognition device when receiving a short-range communication request from the terminal device of the target object. During establishment of the connection channel, the identity recognition device negotiates communication parameters with the terminal device, such as a transmission rate and an encryption manner. The negotiated transmission rate can ensure that data is transmitted at a fastest and stable speed, to avoid data congestion or loss. Selection of a proper encryption manner can ensure security of the identity information in a transmission process, to prevent the information from being stolen or tampered. Such a clear triggering and information transmission mechanism ensures stability and reliability of identity information transmission by negotiating the communication parameters. This helps accurately and timely obtain the identity information of the target object, and improves efficiency and accuracy of identity recognition.

[0251] If the approach of obtaining the resource gain includes a message sharing-based obtaining approach, the resource transfer exemption interface includes to-be-shared information generated based on a device identifier of the identity recognition device. After the target object publishes content including the to-be-shared information, an APP server transmits identity information that is associated with an account publishing the to-be-shared information to an identity recognition server, and the server uses the identity information as the identity information of the target object. This manner increases approaches of obtain identity information. In this way, identity recognition is no longer limited to a single manner, and flexibility of identity recognition is improved. In addition, because the to-be-shared information is generated based on the device identifier of the identity recognition device, and the device identifier is unique, traceability of the to-be-shared information is ensured. Based on the device identifier, the identity recognition server can accurately determine the identity recognition device for which resource transfer exemption is performed, and then determine the corresponding identity recognition image. This helps accurately associate the identity information with the identity recognition image, and improves accuracy of identity recognition.

[0252] Further, the to-be-shared information is at least a password generated based on the device identifier of the palm verification device, and a length of the password is less than a set length threshold. Because the password has a short length, it is easy for a user to memorize and operate the password. In practical application, the user can easily memorize the password and share the password on a social platform or in another APP. This reduces difficulty of sharing by the user. If more users are willing to share the to-be-shared information, an information propagation range and speed are increased, to improve a sharing probability of the to-be-shared information. A large quantity of sharing behaviors may provide a large quantity of identity information samples for the identity recognition server. This facilitates subsequent optimization of an identity recognition algorithm, and improves accuracy and efficiency of identity recognition.

[0253] When the identity recognition device is a palm verification device, and the identity recognition image is a palm image, to determine whether the identity recognition image successfully matches the candidate images of the plurality of candidate objects, feature extraction needs to be performed on the palm image, to obtain a palm feature of the target object, and matching between the palm feature and candidate palm features corresponding to the candidate images of the candidate object is performed. Features of the palm image are unique and hardly copied. Geometric features (such as a palm size, a finger length, and a finger distance) and texture features (such as a palm line and a wrinkle) of a palm of each person are unique, and it is difficult to forge and tamper with these features. By extracting these features for identity recognition, accuracy and security of identity recognition can be ensured. In addition, the matching result is determined based on feature similarities. In this way, a degree of similarity between the target object and the candidate object can be measured accurately. The feature similarity may be calculated by using a plurality of algorithms, such as a Euclidean distance and a cosine similarity. These algorithms can accurately reflect a similarity between two image features, to improve accuracy of an identity recognition result.

[0254] When receiving the identity recognition image of the target object that is transmitted by the identity recognition device, the identity recognition server performs matching between the target object and candidate objects based on the image and respective candidate images of the candidate objects. In a conventional identity recognition method, only simple image comparison may be performed, which tends to lead to a misjudgment. However, in this solution, the server performs feature extraction on the to-be-recognized palm image, to obtain the palm feature of the target object, and then calculates similarities between the palm feature and candidate palm features corresponding to the candidate images of the candidate objects. If a plurality of candidate objects whose feature similarities with the target object fall within a set similarity range, the matching result representing that the target object successfully matches the plurality of candidate objects is generated. Identity recognition is performed based on image features. Because it is difficult to copy or tamper with image features, accuracy and security of identity recognition can be ensured. In addition, the feature similarity can accurately measure a degree of similarity between two image features. Determining the matching result based on the feature similarities can improve accuracy of the identity recognition result.

[0255] If the matching result represents that the target object successfully matches a plurality of candidate objects, the identity recognition server transfers a to-be-transferred resource of the target object through a public account, and transmits a resource transfer exemption indication to the identity recognition device, to enable the device displays a resource transfer exemption interface. During conventional service processing, when a plurality of matching objects occurs, it often leads to a dilemma in identity confirmation, which causes service processing to stall. However, in this solution, the resource is transferred through the public account. This ensures rapid passage of the target object, and avoids a delay of service processing. In addition, the resource gain and the obtaining approach that are included in the resource transfer exemption interface can encourage the target object to actively provide the identity information. This improves accuracy of identity recognition and service processing efficiency. For example, in a bus scenario, a passenger can get on a bus quickly without the need for waiting for identity confirmation. This improves efficiency of bus operation.

[0256] When receiving the identity information transferred by the target object through a selected approach in the at least one approach, the identity recognition server uses the information as the recognition result of the identity recognition image. If the selected approach is a short-range communication-based obtaining approach, the identity recognition server obtains the identity information through the identity recognition device. The identity recognition device serves as a bridge and relay in this process. The identity recognition device can perform preliminary verification and processing on the identity information, to ensure that the information transferred to the server is accurate and dependable. In addition, rapidness of short-range communication ensures that the identity information can arrive at the server in time. This helps the server make a timely determining, and improves efficiency of identity recognition.

[0257] If the selected approach is a message sharing-based obtaining approach, when the target object triggers a publishing operation for to-be-shared information, the identity recognition server uses identity information that is associated with an object publishing the to-be-shared information as the identity information of the target object. The message sharing-based obtaining approach utilizes an extensive dissemination capability of a social platform or another APP, to expand the scope of identity information obtaining. During publication of the to-be-shared information, the target object attracts more people to participate. This increases the opportunities to obtain identity information. In addition, by associating the identity information of the publishing object, an identity of the target object can be accurately determined. This improves accuracy and reliability of identity recognition.

[0258] The identity recognition server may further perform feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension. When a new palm image of the target object is subsequently received, feature extraction is performed on the new palm image based on these identity recognition feature dimensions, to obtain a new image feature, and a recognition result is obtained based on the new image feature. In an original feature set, a large amount of redundant information and irrelevant features may exist. The information may increase a computational burden of a model, and reduce recognition efficiency. Through feature selection, a feature subset that best represents a data feature and that best distinguish between different categories can be selected from a plurality of candidate feature dimensions. This reduces feature dimensions, and avoids interference from redundant information. This makes the model efficient in processing data, improves efficiency and accuracy of the model, and enhances accuracy and efficiency of subsequent identity recognition.

[0259] During feature selection, the identity recognition server combines the candidate feature dimensions, to obtain sets of feature dimensions, and separately performs operations for each set of feature dimensions. Feature extraction is separately performed on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, a corresponding predicted matching result is obtained based on the image features, and an evaluation result corresponding to the set of feature dimensions is obtained based on the predicted matching result and a true matching result. One set of feature dimensions satisfying a set evaluation condition is selected from the sets of feature dimensions based on the evaluation results respectively corresponding to the sets of feature dimensions, and a candidate feature dimension in the selected set of feature dimensions is used as the identity recognition feature dimension. Such a comprehensive evaluation and filtering manner can comprehensively consider effectiveness of each feature dimension combination. By comparing the predicted matching result with the true matching result, performance of the feature dimension in practical application can be discovered, to accurately select a most distinguishing and representative feature dimension. This improves accuracy and effectiveness of feature selection, and helps improve precision of identity recognition.

[0260] When obtaining, based on the predicted matching result and the true matching result, the evaluation result corresponding to the set of feature dimensions, the identity recognition server may use a plurality of manners. The evaluation result may be directly obtained based on the predicted matching result and the true matching result. This manner is simple and direct, and can quickly determine accuracy of the feature dimension combination. Alternatively, the evaluation result may be obtained based on the predicted matching result and the true matching result in combination with the feature similarities between the image feature of the identity recognition image and the image features of the plurality of candidate images. This manner comprehensively considers accuracy of the matching result and similarities between image features, and can comprehensively and accurately evaluate effectiveness of a feature dimension. Diversified evaluation manners make the evaluation result objective and accurate, and can precisely select a proper feature dimension. This improves quality of feature selection, and further improves accuracy of identity recognition.

[0261] When matching between the target object and the candidate objects based on the identity recognition image and the respective candidate images of the candidate objects, the identity recognition server performs feature extraction on the identity recognition image to obtain a palm feature of the target object, and then separately calculate similarities between candidate palm features corresponding to the candidate images of the candidate objects and the palm feature. If a plurality of candidate objects whose feature similarities with the target object fall within a set similarity range exist, the matching result representing that the target object successfully match the plurality of candidate objects is generated. Identity recognition is performed based on image features. Because it is difficult to copy or tamper with image features, accuracy and security of identity recognition can be ensured. In addition, the feature similarity can accurately measure a degree of similarity between two image features. Determining the matching result based on the feature similarities can improve accuracy of the identity recognition result.

[0262] Although exemplary embodiments of this application have been described, a person skilled in the art may make changes and modifications to these embodiments once he / she learns the basic inventive concept. Therefore, the appended claims are intended to cover the exemplary embodiments and all changes and modifications falling within the scope of this application.

[0263] A person skilled in the art may make various changes and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations made to this application fall within the scope of the claims of this application and equivalents thereof, this application is also intended to include these modifications and variations.

Claims

1. A method for providing identity recognition-based service by an electronic device, the method comprising:obtaining an identity recognition image collected for a target object; andwhen the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, displaying a resource transfer exemption interface on a screen, the resource transfer exemption interface comprising: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server for updating an identity recognition result associated with the target object.

2. The method according to claim 1, wherein the method further comprises:in response to a short-range communication operation triggered by the target object, obtaining the identity information transferred in a process in which the target object obtains the resource gain through a short-range communication-based obtaining approach.

3. The method according to claim 2, wherein the short-range communication operation is triggered in the following manner:establishing a connection channel between a terminal device of the target object and the electronic device when a short-range communication request is received from the terminal device of the target object; andwhen the identity information of the target object is obtained via the connection channel, determining that the target object triggers the short-range communication operation for the short-range communication-based obtaining approach.

4. The method according to claim 1, wherein the at least one approach comprises: a message sharing-based obtaining approach, the resource transfer exemption interface further comprises: information generated at least based on a device identifier of the identity recognition device and to be shared with contacts of the target object.

5. The method according to claim 4, wherein the to-be-shared information is at least a password generated based on the device identifier of the identity recognition device.

6. The method according to claim 1, wherein the identity recognition image is a palm image; andthe successful matching between the identity recognition image and the respective candidate images of the plurality of candidate objects comprises:performing feature extraction on the palm image to obtain a palm feature of the target object;performing matching between the palm feature and candidate palm features corresponding to the candidate images of the candidate objects; andwhen there are a plurality of candidate palm features successfully matching the palm feature, determining that the identity recognition image successfully matches the respective candidate images of the plurality of candidate objects.

7. The method according to claim 1, wherein the server is configured to performing a plurality of operations including:performing matching between the target object and the candidate objects based on the identity recognition image and respective candidate images of the candidate objects;when the target object successfully matches a plurality of candidate objects, transferring a to-be-transferred resource of the target object through a public account, and transmitting a resource transfer exemption indication to the electronic device to display the resource transfer exemption interface; andwhen identity information transferred by the target object through a selected approach in the at least one approach is received, using the identity information as a recognition result of the identity recognition image.

8. The method according to claim 7, wherein the plurality of operations further comprise:performing feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension; andperforming, when a new palm image of the target object is received, feature extraction on the new palm image based on the at least one identity recognition feature dimension, to obtain a new image feature, and obtaining a recognition result based on the new image feature.

9. The method according to claim 8, wherein the performing feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension comprises:combining the candidate feature dimensions, to obtain sets of feature dimensions, and separately performing the following operations for the sets of feature dimensions:separately performing feature extraction on the identity recognition image and the plurality of candidate images based on one set of feature dimensions, to obtain corresponding image features, obtaining a corresponding predicted matching result based on the obtained image features, and obtaining, based on the predicted matching result and a true matching result, an evaluation result corresponding to the set of feature dimensions; andselecting, based on the evaluation results respectively corresponding to the sets of feature dimensions, one set of feature dimensions satisfying a set evaluation condition from the sets of feature dimensions, and using a candidate feature dimension in the selected set of feature dimensions as the identity recognition feature dimension.

10. The method according to claim 7, wherein the performing matching between the target object and the candidate objects based on the identity recognition image and respective candidate images of the candidate objects comprises:performing feature extraction on the identity recognition image, to obtain a palm feature of the target object;separately calculating similarities between candidate palm features corresponding to the respective candidate images of the candidate objects and the palm feature, to obtain feature similarities between the corresponding candidate objects and the target object; andgenerating, when a plurality of candidate objects whose feature similarities with the target object fall within a set similarity range exist, the matching result representing that the target object successfully matches the plurality of candidate objects.

11. An electronic device, comprising a processor and a memory, the memory having a computer program stored therein, and the computer program, when executed by the processor, causing the processor to perform a method for providing identity recognition-based service, the method comprising:obtaining an identity recognition image collected for a target object; andwhen the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, displaying a resource transfer exemption interface on a screen, the resource transfer exemption interface comprising: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server for updating an identity recognition result associated with the target object.

12. The method according to claim 1, wherein the method further comprises:in response to a short-range communication operation triggered by the target object, obtaining the identity information transferred in a process in which the target object obtains the resource gain through a short-range communication-based obtaining approach.

13. The electronic device according to claim 12, wherein the short-range communication operation is triggered in the following manner:establishing a connection channel between a terminal device of the target object and the electronic device when a short-range communication request is received from the terminal device of the target object; andwhen the identity information of the target object is obtained via the connection channel, determining that the target object triggers the short-range communication operation for the short-range communication-based obtaining approach.

14. The electronic device according to claim 11, wherein the at least one approach comprises: a message sharing-based obtaining approach, the resource transfer exemption interface further comprises: information generated at least based on a device identifier of the identity recognition device and to be shared with contacts of the target object.

15. The electronic device according to claim 14, wherein the to-be-shared information is at least a password generated based on the device identifier of the identity recognition device.

16. The electronic device according to claim 11, wherein the identity recognition image is a palm image; andthe successful matching between the identity recognition image and the respective candidate images of the plurality of candidate objects comprises:performing feature extraction on the palm image to obtain a palm feature of the target object;performing matching between the palm feature and candidate palm features corresponding to the candidate images of the candidate objects; andwhen there are a plurality of candidate palm features successfully matching the palm feature, determining that the identity recognition image successfully matches the respective candidate images of the plurality of candidate objects.

17. The electronic device according to claim 11, wherein the server is configured to performing a plurality of operations including:performing matching between the target object and the candidate objects based on the identity recognition image and respective candidate images of the candidate objects;when the target object successfully matches a plurality of candidate objects, transferring a to-be-transferred resource of the target object through a public account, and transmitting a resource transfer exemption indication to the electronic device to display the resource transfer exemption interface; andwhen identity information transferred by the target object through a selected approach in the at least one approach is received, using the identity information as a recognition result of the identity recognition image.

18. The electronic device according to claim 17, wherein the plurality of operations further comprise:performing feature selection on candidate feature dimensions based on the identity recognition image and the plurality of candidate objects, to obtain at least one identity recognition feature dimension; andperforming, when a new palm image of the target object is received, feature extraction on the new palm image based on the at least one identity recognition feature dimension, to obtain a new image feature, and obtaining a recognition result based on the new image feature.

19. The electronic device according to claim 17, wherein the performing matching between the target object and the candidate objects based on the identity recognition image and respective candidate images of the candidate objects comprises:performing feature extraction on the identity recognition image, to obtain a palm feature of the target object;separately calculating similarities between candidate palm features corresponding to the respective candidate images of the candidate objects and the palm feature, to obtain feature similarities between the corresponding candidate objects and the target object; andgenerating, when a plurality of candidate objects whose feature similarities with the target object fall within a set similarity range exist, the matching result representing that the target object successfully matches the plurality of candidate objects.

20. A non-transitory computer-readable storage medium, comprising a computer program that, when executed by a processor of an electronic device, causing the electronic device to perform a method for performing identity recognition-based service, the method comprising:obtaining an identity recognition image collected for a target object; andwhen the identity recognition image successfully matches respective candidate images of a plurality of candidate objects, displaying a resource transfer exemption interface on a screen, the resource transfer exemption interface comprising: a resource gain available to the target object and at least one approach of obtaining the resource gain, the at least one approach being configured for transferring identity information of the target object to a server for updating an identity recognition result associated with the target object.