Contact adding method and apparatus, device, readable storage medium and program product

By capturing palm print images and audio prompts within the application interface, and combining this with voice confirmation, the system enables adding contacts without requiring the user to input or scan the other party's account. This solves the problem of cumbersome operations in existing technologies and improves user experience and security.

WO2026011970A1PCT designated stage Publication Date: 2026-01-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/095678
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-08
Filing Date
2025-05-19
Publication Date
2026-01-15

AI Technical Summary

Technical Problem

The existing technology for adding contacts is cumbersome and provides a poor user experience, requiring the other party to provide an account or scan an account, which is complicated.

Method used

By displaying a contact addition control in the application interface, capturing a palm print image, and automatically playing an audio prompt to add an account at the second account login location, combined with voice confirmation, it is possible to add contacts without having to enter the other party's account or scan a QR code.

Benefits of technology

It simplifies the contact addition process, improves user experience, ensures the effectiveness and security of the addition, and prevents the leakage of the other party's information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025095678_15012026_PF_FP_ABST
    Figure CN2025095678_15012026_PF_FP_ABST
Patent Text Reader

Abstract

A contact adding method, which is executed by a first terminal, and comprises: displaying an application interface, and the first terminal logging in with a first account, the application interface comprising a contact adding control, and the contact adding control being used for collecting a palmprint image (S202); in response to a triggering operation on the contact adding control, acquiring a palmprint image (S204); when a second terminal logged in with a second account associated with the palmprint image is located at a current login position of the first account, playing back an audio used for prompting the addition of an account (S206); and when a speaking voice used for confirming the addition of an account is collected and the speaking voice matches the identity of the second account, adding the second account as a contact of the first account (S208).
Need to check novelty before this filing date? Find Prior Art

Description

Contact addition methods, devices, equipment, readable storage media, and program products

[0001] Related applications

[0002] This application claims priority to Chinese patent application filed on July 8, 2024, application number 202410910846.2, entitled "Method, Apparatus, Device, Readable Storage Medium and Program Product for Adding Contacts", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of computer technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for adding contacts. Background Technology

[0004] With the rapid development of computer technology, mobile communication and internet technologies have become an indispensable part of our daily lives, making connections between people closer and information transmission faster and more convenient. Among these advancements, contact addition technology, as a crucial component of information interaction, is also constantly evolving and improving.

[0005] In related technologies, before adding a contact, the other party usually needs to provide an account. After entering the other party's account or scanning the other party's account, the other party can be added as a contact. This process is cumbersome and has a poor user experience. Summary of the Invention

[0006] This application provides a method, apparatus, computer device, computer-readable storage medium, and computer program product for adding contacts.

[0007] Firstly, this application provides an efficient method for adding contacts, including:

[0008] The application interface is displayed. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images.

[0009] In response to a triggering operation that adds a control to the contact, a palm print image is captured;

[0010] When the second terminal logged into by the second account associated with the palmprint image is located at the current login location of the first account, an audio prompt to add the account is played; and

[0011] If a voice recording is collected to confirm the addition of an account, and the voice recording matches the identity of the second account, the second account is added as a contact of the first account.

[0012] Secondly, this application also provides a contact adding device, comprising:

[0013] The interface display module is used to display the application interface. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images.

[0014] The image acquisition module is used to acquire a palm print image in response to a trigger operation that adds a control to the contact.

[0015] An audio playback module is configured to play an audio prompt for account addition when the second terminal logged in to the second account associated with the palmprint image is located at the current login location of the first account; and

[0016] The account addition module is used to add the second account as a contact of the first account when a voice recording is collected to confirm the account addition and the voice recording matches the identity of the second account.

[0017] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described contact addition method.

[0018] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described contact addition method.

[0019] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described contact addition method.

[0020] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description

[0021] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the published drawings without creative effort.

[0022] Figure 1 is an application environment diagram of a contact addition method in one embodiment;

[0023] Figure 2 is a flowchart illustrating a method for adding contacts in one embodiment;

[0024] Figure 3 is a schematic diagram of acquiring a palm print image in one embodiment;

[0025] Figure 4 is a schematic diagram of a list of addition methods in one embodiment;

[0026] Figure 5 is a flowchart illustrating the second account determination step in one embodiment;

[0027] Figure 6 is a schematic diagram of the palmprint image feature storage process in one embodiment;

[0028] Figure 7 is a flowchart illustrating the second account determination step in another embodiment;

[0029] Figure 8 is a schematic diagram of adding contacts in one embodiment;

[0030] Figure 9 is a schematic diagram of a palm print image that meets the automatic addition conditions in one embodiment;

[0031] Figure 10 is a flowchart illustrating the steps for adding a contact in one embodiment;

[0032] Figure 11 is a structural block diagram of a contact adding device in one embodiment;

[0033] Figure 12 is an internal structure diagram of a computer device in one embodiment. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0035] First, let me explain the terms used in this application:

[0036] Canny edge detection algorithm: an edge detection algorithm widely used in image segmentation.

[0037] Gabor filter: A type of filter commonly used in image processing to extract local features of an image.

[0038] HOG features: Histogram of Oriented Gradients, a method for image feature extraction.

[0039] Euclidean distance: a method for calculating the similarity between vectors.

[0040] Cosine similarity: a method for calculating the angle between vectors, used to measure the similarity between them. It can handle high-dimensional vectors and is computationally efficient for sparse vectors. Cosine similarity is obtained by calculating the dot product of two vectors and dividing by their magnitudes. The value of cosine similarity ranges from -1 to 1, where 1 represents identical vectors, 0 represents completely unrelated vectors, and -1 represents completely opposite vectors. The formula for calculating cosine similarity is: cos(θ) = (A·B) / (||A|| × ||B||). In the formula, A and B are two vectors, A·B is their dot product, and ||A|| and ||B|| are their magnitudes.

[0041] In related technologies, during the process of adding a contact, the adding party needs to obtain the account of the person being added. Then, the adding party needs to manually enter or scan the account information of the person being added. The whole process is cumbersome and results in a poor user experience.

[0042] In view of this, the contact addition method provided in this application embodiment displays a contact addition control for account addition function in a target application logged in with a first account by showing the application interface. In response to a trigger operation on the contact addition control, a palmprint image is acquired. This allows for accurate retrieval of associated second accounts using the palmprint image as an account index. Furthermore, to ensure the validity of the palmprint image acquisition, it is necessary to ensure that the login location of the second account is the same as or close to the login location of the first account. When the second terminal logged in by the second account associated with the palmprint image is located at the current login location of the first account, an audio prompt for account addition is automatically played without any trigger operation to determine whether the second account is allowed to be added. If the voice confirming account addition is acquired and matches the identity of the second account, it indicates that the second account is allowed to be added as a contact of the first account. Throughout the process, the validity and security of contact addition are ensured based on the login location and audio. Under this premise, using the palmprint image as an account index eliminates the need to input or scan the other party's account, simplifying the contact addition process and improving the user experience.

[0043] The contact addition method provided in this application embodiment can be applied to the application environment shown in Figure 1. The first terminal 102 communicates with the server 104 via a network. The second terminal 106 also communicates with the server 104 via a network. A data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104 or placed in the cloud or on another network server. The first terminal 102 and the server 104 can collaboratively execute the contact addition method, or the first terminal 102 can execute the contact addition method independently.

[0044] Taking the first terminal 102 executing the contact addition method alone as an example. The first terminal 102 deploys the target application, and the target application on the first terminal 102 is logged in with the first account. The first terminal 102 displays the application interface of the target application, which includes a contact addition control for collecting palmprint images. In response to the trigger operation of the contact addition control, the first terminal 102 collects the palmprint image. If the second terminal 106, which is logged in with the second account associated with the palmprint image, is located at the current login location of the first account, the first terminal 102 plays an audio prompt to add the account. If the first terminal 102 collects a voice confirming the account addition and the voice matches the identity of the second account, the first terminal 102 adds the second account as a contact of the first account.

[0045] Taking the method of adding contacts collaboratively by the first terminal 102 and the server 104 as an example, the first terminal 102 displays an application interface, which includes a contact adding control used to collect palmprint images. In response to the triggering operation of the contact adding control, the first terminal 102 collects the palmprint image. The first terminal 102 sends the location information of the current login location of the first account to the server 104. Based on the location information, the server 104 determines other terminals located at the current login location, including the second terminal 106, and returns the accounts bound to the other terminals to the first terminal 102. The first terminal 102 determines whether there is a second account associated with the palmprint image among the obtained accounts. If so, the first terminal 102 plays an audio prompt to add the account. If the first terminal 102 collects the voice used to confirm the account addition, and the voice matches the identity of the second account, the first terminal 102 adds the second account as a contact of the first account. Other terminals refer to terminals other than the first terminal 102 located at the current login location.

[0046] In this system, the first terminal 102 is the terminal logged in by the adding party using a first account, and the second terminal 106 is the terminal logged in by the added party using a second account. Both the first and second terminals are terminals, which can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0047] In an exemplary embodiment, as shown in FIG2, a method for adding contacts is provided. Taking the application of this method to the first terminal 102 in FIG1 as an example, the method includes the following steps S202 to S208. Wherein:

[0048] Step S202: Display the application interface. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images.

[0049] In this setup, the target application runs on the first terminal and is logged into using the first account. The target application is an application with instant messaging capabilities; for example, it could be a social networking application, a payment application, or a game application. The first account is the account used for instant messaging; this first account is the account of the person adding the user on the target application.

[0050] The Contact Addition control is the entry point for enabling contact addition. The Contact Addition control is used to collect images of at least one biometric feature, including but not limited to palm prints, fingerprints, lip prints, and facial features.

[0051] A palm print image is an image that contains palm prints.

[0052] In some embodiments, in applications with payment functionality, such as payment applications, the biometrics can be used not only to search for payment accounts but also for searching for instant messaging accounts. Therefore, the method further includes: the application interface including a data acquisition control; in response to a triggering operation on the data acquisition control, a data acquisition query pop-up window is displayed, including contact addition options and payment options; in response to a triggering operation on the contact addition option, a contact addition control is displayed; or, in response to a triggering operation on the contact addition option, the acquisition of a palm print image begins.

[0053] Step S204: In response to the triggering operation of adding a control to a contact, a palm print image is captured.

[0054] For example, when the first terminal verifies that its pose meets the acquisition conditions, in response to the triggering operation of adding a control to the contact, the first terminal begins to acquire at least one palm print image.

[0055] The data acquisition conditions are as follows: the first terminal is parallel to the palm print of the hand to be acquired; or, the first terminal is parallel to the palm print of the hand to be acquired, and the distance between the first terminal and the palm print is within a preset range, which is not specifically limited. For example, the preset range could be [5cm, 10cm], or [4cm, 9cm], or [6cm, 11cm]

[0056] For example, Figure 3 shows a schematic diagram of acquiring a palm print image in one embodiment. In Figure 3, the surface of the palm is parallel to the surface of the camera of the first terminal.

[0057] It should be noted that when adding contacts in public places, the existing technologies can easily lead to the leakage of the added party's account information, failing to guarantee the added party's privacy. This application, however, adds contacts by collecting palm print images, thus avoiding the exposure of the added party's information and providing higher security. Furthermore, the existing technologies have other inconveniences, such as the added party's device not being able to display their account, or the adding party's device not being able to scan. In comparison, the palm print image method used in this application is more convenient for adding contacts.

[0058] In some embodiments, in response to a triggering operation of adding a control to a contact, acquiring palm print images includes: in response to a triggering operation of adding a control to a contact, acquiring at least two palm print images.

[0059] For example, in response to a triggering operation of adding a control to a contact, at least two palmprint images of the hand to be collected are captured from different shooting angles using a camera configured on the first terminal. The at least two captured palmprint images are displayed in the shooting interface, and in response to a selection operation of the target palmprint image among the at least two palmprint images, the target palmprint image is displayed in the application interface.

[0060] In another example, the method further includes: exemplarily, in response to a triggering operation of adding a control to a contact, taking a picture of the hand to be captured using a camera configured on the first terminal, according to preset shooting parameters, to obtain a palmprint image. The preset shooting parameters are pre-set shooting parameters that ensure the captured palmprint image is clear and completely captures the palmprint. These preset shooting parameters include parameters such as aperture and focal length, which are pre-set for capturing the palmprint image to ensure clarity and complete capture of the palmprint.

[0061] In this embodiment, after detecting the trigger operation of adding a control to a contact, in order to ensure the quality of data collection, the palm prints of the same hand to be collected are continuously collected to obtain multiple palm print images, so as to determine a clear and complete palm print image, which is convenient for subsequent accurate and quick querying of the associated second account.

[0062] In some embodiments, the method further includes: in response to any one of the target palmprint images among at least two palmprint images meeting the display conditions, displaying the target palmprint image in the application interface, wherein the display conditions are that the palmprint image contains a complete palmprint and the image clarity reaches a set clarity threshold.

[0063] For example, after acquiring at least two palmprint images, the first terminal sequentially verifies whether each palmprint image meets the display conditions, obtaining a verification result. If the verification result indicates that at least one of the at least two palmprint images meets the display conditions, the palmprint image that meets the image display conditions is determined as the target palmprint image. In response to at least one target palmprint image meeting the display conditions, the first terminal displays at least one target palmprint image in the application interface.

[0064] If the verification result indicates that there is no palmprint image that meets the display conditions, the first terminal generates and displays a message indicating that the acquisition failed, instructing the first terminal to re-acquire the palmprint image.

[0065] In this way, if any one of the at least two palm print images meets the display conditions, it means that there is a target palm print image with a complete palm print and a clear image. The target palm print image with a complete palm print and a clear image is then displayed in the application interface, which also makes it easier to accurately and quickly find the associated second account in the future.

[0066] In some embodiments, in response to a triggering operation of adding a contact control, acquiring a palmprint image includes: in response to a triggering operation of adding a contact control, displaying a list of adding methods, the list of adding methods including palmprint adding methods and other adding methods; and in response to a selection operation of a palmprint adding method, acquiring a palmprint image.

[0067] For example, as shown in Figure 4, this is a schematic diagram of an addition method list in one embodiment. Figure 4 illustrates the application interface of the first terminal. The first terminal is logged in with a first account, and the chat list between the first account and contacts such as Contact 1 and Contact 2 is displayed. In response to the triggering operation of the contact addition control, the addition method list is displayed, where QR code addition method, fingerprint addition method, etc. are other addition methods. In response to the selection operation of palmprint addition method, palmprint image acquisition begins.

[0068] In this embodiment, after confirming the addition of a contact, a list of addition methods is displayed, so that the first account can select the appropriate addition method according to actual needs, which improves the convenience of the addition process.

[0069] In some embodiments, in response to a triggering operation of adding a contact control, a palmprint image is acquired, including: in response to a triggering operation of adding a contact control, acquiring a scene image; if the scene image indicates that the current scene is not crowded, displaying a list of addition methods including palmprint addition methods; and in response to a selection operation of a palmprint addition method, acquiring a palmprint image.

[0070] Optionally, in response to a trigger operation of adding a contact control, the first terminal captures the scene of the current login location of the first account to obtain a scene image. The first terminal identifies the scene image; if the identification result indicates a high density of the current login location, it determines that it is currently in a crowded scene; if the identification result indicates a low density of the current login location, it determines that it is currently in a non-crowded scene. In the case of a non-crowded scene, the first terminal displays a list of addition methods including palmprint addition methods; in response to a selection operation of a palmprint addition method, it captures a palmprint image.

[0071] The first terminal can utilize deep learning-based object detection algorithms, such as YOLO (You Only Look Once), to detect human bodies in scene images. The specific steps are as follows: First, the scene image is input into a pre-trained YOLO model, which outputs the bounding box information of the detected human bodies. Then, the number of bounding boxes is counted, and this count is used as the number of human bodies.

[0072] Simultaneously, the space occupancy rate is determined by calculating the ratio of the pixel area occupied by the human body in the image to the total image area. The specific calculation method is as follows: for each detected human body bounding box, the number of pixels within it is calculated, and the number of pixels within all human body bounding boxes is added together to obtain the pixel area occupied by the human body. The total image area is the width multiplied by the height of the scene image. The space occupancy rate is obtained by dividing the pixel area occupied by the human body by the total image area. If the number of human bodies exceeds a preset threshold (e.g., 10 people) and the space occupancy rate exceeds a preset percentage threshold (e.g., 50%), the current login location is considered to have a high density, indicating a crowded scene; otherwise, it is considered to be in a non-crowded scene. The space occupancy rate refers to the ratio of the pixel area occupied by the human body in the scene image to the total image area; this ratio is calculated to help determine whether the current scene is crowded.

[0073] In other examples, corresponding addition methods can be set for different security levels. For instance, in high-security scenarios, to avoid information leakage due to providing additional media, a palmprint addition method is set. In this case, a palmprint image is captured in response to the triggering operation of the contact addition control. For moderate or low-security scenarios, a list of addition methods, including palmprint addition and non-palmprint addition methods, can be provided, allowing users to choose according to their actual needs.

[0074] In this embodiment, in response to the triggering operation of adding a contact control, a scene image is captured. Based on this scene image, the current scene can be identified. If the scene is not crowded, palm print addition is allowed to avoid security risks.

[0075] In some embodiments, in response to a triggering operation of adding a contact control, a palmprint image is acquired, including: if it is verified that the first account belongs to the palmprint image whitelist, in response to a triggering operation of adding a contact control, displaying a list of addition methods including palmprint addition methods; and in response to a selection operation of a palmprint addition method, acquiring a palmprint image.

[0076] The palmprint image whitelist refers to the list of accounts allowed to add accounts using palmprint images. The whitelist contains multiple accounts. For example, the whitelist is updated every preset time period. Specifically, for each account in the whitelist, if an abnormal usage record is found within the preset time period, and the frequency of abnormal usage exceeds the frequency limit, the account is removed from the whitelist. Specifically, if an account does not use the collected palmprint image to add itself, or if the account uses the palmprint image to add itself but then applies it to other unauthorized scenarios, an abnormal usage record is added to the account's usage data. For example, the preset time period can be one month or one week, and the frequency limit can be 3 or 5 times. An abnormal usage record refers to the abnormal situation recorded in the account's usage data when an account does not use the collected palmprint image to add itself, or when the account uses the palmprint image to add itself but then applies it to other unauthorized scenarios.

[0077] For example, in response to the triggering method of adding a control to a contact, the first terminal obtains the latest palmprint image usage whitelist from the local machine and verifies whether the first account belongs to the palmprint image usage whitelist.

[0078] In other examples, if the first account is not on the whitelist for palmprint image usage, the first terminal displays a list of addition methods that do not include palmprint addition methods. In response to the selection of a target addition method from the list, the corresponding information is collected according to that target method.

[0079] In this embodiment, to ensure the security of adding contacts using palmprint images and to prevent the leakage of the added party's palmprint information, after the adding party's account triggers the contact addition control, it is synchronously verified whether the account has the permission to add contacts using palmprint images. If it does, the collection of palmprint images is allowed, thereby improving the security and reliability of the contact addition process.

[0080] In some embodiments, the method further includes: when the palm print images in at least two palm print images do not meet the display conditions, determining adjustment information for palm print image acquisition based on the palm print positions in at least two palm print images and the pose information of the first terminal logged in by the first account, and displaying the adjustment information in the application interface. The adjustment information is used to prompt the first terminal logged in by the first account to adjust according to the adjustment information and acquire a palm print image that meets the display conditions.

[0081] For example, if the palm print images in at least two palm print images do not meet the display conditions, the first terminal obtains the palm print position in each palm print image and the pose information of the first terminal.

[0082] If a positional deviation is detected between the first terminal and the palm print to be acquired based on the palm print position and pose information, adjustment information is determined based on this deviation. This adjustment information includes at least one of adjustment direction and adjustment angle. The first terminal displays this adjustment information to instruct the user corresponding to the first account to adjust the first terminal according to the adjustment information and re-acquire at least two palm print images. The process then returns to the previous step of sequentially verifying whether each palm print image meets the display conditions, obtaining the verification result, and continuing until a palm print image that meets the display conditions is obtained. The adjustment direction is part of the adjustment information regarding palm print image acquisition. It is the direction that the first terminal needs to adjust when at least two palm print images do not meet the display conditions, and a positional deviation is detected based on the palm print position and the first terminal pose information. This direction guides the acquisition of a palm print image that meets the display conditions. The angle adjustment is part of the adjustment information regarding palmprint image acquisition. It is the angle that the first terminal needs to be adjusted when at least two palmprint images do not meet the display conditions, and a positional deviation is detected based on the palmprint position and the first terminal pose information. This angle is used to guide the acquisition of a palmprint image that meets the display conditions.

[0083] Positional deviation refers to the positional difference between the first terminal and the palm print of the hand to be collected, which is verified based on the palm print position in at least two palm print images and the pose information of the first terminal logged in by the first account. Based on this, the adjustment information for palm print image acquisition can be determined.

[0084] If no positional deviation is detected, the first terminal determines that the image clarity has not reached the clarity threshold. Then, image enhancement is performed on the palm print image with the highest clarity among at least two palm print images to obtain a palm print image that reaches the clarity threshold.

[0085] Alternatively, adjust the acquisition parameters of the acquisition device in the first terminal (e.g., the acquisition device is the camera of the first terminal, and the acquisition parameter is the aperture). Without changing the pose of the first terminal, re-acquire at least two palm print images, return to the previous step of verifying whether each palm print image meets the display conditions, and continue to execute the verification result step until a palm print image that meets the display conditions is obtained.

[0086] In this embodiment, when at least two palmprint images do not meet the display requirements, adjustment information regarding palmprint image acquisition is accurately estimated based on the palmprint positions in the at least two palmprint images and the pose information of the first terminal logged in by the first account. Thus, according to this adjustment information, the first terminal logged in by the first account can more conveniently and accurately acquire palmprint images that meet the display requirements.

[0087] Step S206: When the second terminal logged in by the second account associated with the palm print image is located at the current login location of the first account, play an audio prompt to add the account.

[0088] The second account is the account used for instant messaging. This second account is the account of the person being added. This second account can be the account of the target application or the account of other applications (with instant messaging functionality).

[0089] A second account associated with a palm print image refers to a palm print image whose features extracted from the palm print image are consistent with the palm print image features registered by the second account.

[0090] The audio used to prompt the account to add is a query audio, asking whether the associated second account allows it to be added as a contact of the first account. This audio can be pre-generated, such as "Do you allow me to add this account?"; or it can be generated in real time based on the associated second account, such as "Does the second account want to be added as a contact of the first account?".

[0091] Optionally, the first terminal determines the current login location of the first account and performs feature extraction on the palmprint image (or the target palmprint image mentioned above), extracting palmprint image features. The first terminal determines whether the extracted palmprint image features can be used to find the second account, and whether the second terminal (the second terminal) logged into by the second account is at the current login location.

[0092] If a second account is found and the second terminal is currently logged in, the first terminal will play an audio message prompting the user about the account.

[0093] If a second account is found and the second terminal is not currently logged in, the first terminal sends a contact addition request to the second terminal. Based on the request result returned by the second terminal, the first terminal determines whether it is the second account.

[0094] If the second account is not found, the first terminal will display a query failure message.

[0095] It should be noted that if the second terminal is in the current login position, it means that the palmprint image is captured in real time, rather than from the original image (containing the complete palmprint), thus ensuring the validity of the palmprint image acquisition.

[0096] In some embodiments, the method further includes: sending a contact addition request to the second terminal logged in by the second account associated with the palmprint image, when the second terminal is not located at the current login location of the first account; and adding the second account as a contact of the first account upon receiving a confirmation response from the second terminal logged in by the second account to the contact addition request.

[0097] In other examples, the added party is currently logged into the first account and is not carrying a second device; or, the added party is not currently logged into the second account. In this case, the second device associated with the palmprint image and logged into the second account may not be located at the current login location of the first account. Therefore, in this situation, the method further includes:

[0098] Capture a scene image of the current login location. If an object other than the person adding the account is identified in the scene image, collect the object's face, lip print, or pupils to obtain the corresponding type of biometric feature and retrieve the corresponding type of biometric feature database. If a biometric feature registration account bound to the biometric feature is found in the biometric feature database, and if the object corresponding to the biometric feature registration account is the same as the object corresponding to the second account, i.e., both are the person being added, determine that the person being added is located at the current login location of the first account. At this time, return to the step of playing the audio used to prompt the account to be added and continue execution.

[0099] In this case, it can verify whether the added party is currently logged in, ensuring that the collected palm print image is collected in real time, rather than being obtained by the adding party from an existing image.

[0100] In this embodiment, when the second terminal logged into by the second account associated with the palmprint image is not located at the current login location of the first account, to ensure that the added party corresponding to the second account is aware of the addition operation by the first account, the terminal logged into by the second account obtains the contact addition request sent by the first terminal and determines whether to confirm the addition based on actual needs. Upon receiving a confirmation response from the second terminal logged into by the second account regarding the contact addition request, the first terminal adds the second account as a contact of the first account, ensuring the security and effectiveness of the contact addition.

[0101] In some embodiments, when the second terminal logged in by the second account associated with the palmprint image is located at the current login location of the first account, playing an audio prompt for account addition includes: obtaining the current login location of the first account based on the location information of the first terminal logged in by the first account; and if there are other account login terminals at the current login location of the first account, and the other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, generating a corresponding audio prompt for account addition based on the second account, and playing the audio.

[0102] Among them, "other account login terminals" refers to terminals logged in by other accounts (not the first terminal). "Other account login terminals" refers to terminals located at the current login location of the first account, other than the first terminal, and logged in by other accounts.

[0103] Optionally, after enabling location services, the first terminal obtains its own location information and determines the current login location of the first account based on the location information. The first terminal determines whether other accounts are logged into the terminal at the current login location. If so, the first terminal extracts palmprint image features from the collected palmprint image (or the target palmprint image mentioned above).

[0104] The first terminal determines whether the corresponding account can be found by using the extracted palm print image features as an index, and whether the terminal logged in by the found account belongs to another account login terminal.

[0105] If a corresponding account is found, and the terminal logged in by the found account belongs to another account login terminal, then the found account will be regarded as a second account, and based on the second account, a corresponding audio message will be generated to prompt the account to be added, and the audio will be played.

[0106] The above steps for extracting palmprint image features include:

[0107] Step 1: The first terminal performs image preprocessing on the acquired palmprint image (or the target palmprint image mentioned above) to obtain the processed image.

[0108] For example, image preprocessing includes image denoising, grayscale conversion, binarization, etc.

[0109] For example, the grayscale processing formula is: Gray(x,y) = 0.299 × R(x,y) + 0.587 × G(x,y) + 0.114 × B(x,y). In this formula, (x,y) represents a pixel in the image. R(x,y) is the pixel value at (x,y) in the R channel image, G(x,y) is the pixel value at (x,y) in the G channel image, and B(x,y) is the pixel value at (x,y) in the B channel image. Gray(x,y) is the grayscale image.

[0110] The binarization formula is: F(x,y) = Gray(x,y) > T? 1:0, where F(x,y) is the binarized image, and T is a preset pixel value threshold. F(x,y) = Gray(x,y) > T? 1:0 means that if the pixel value at point (x,y) in the grayscale image is greater than the threshold T, the binarized pixel value is returned as 1; otherwise, it is returned as 0.

[0111] Step 2: The first terminal performs image segmentation on the processed image to obtain a sub-image containing the palm print region.

[0112] For example, the first terminal uses an edge detection-based image segmentation algorithm to segment the processed image, separating the palmprint region from other regions. If the Canny edge detection algorithm is used, the specific steps are as follows: First, the processed image is Gaussian smoothed to reduce the influence of noise. Then, the gradient magnitude and direction of the image are calculated. Next, non-maximum suppression is applied to the gradient magnitude to refine the edges. Finally, a double thresholding method is used to determine the true edges, separating the palmprint region from other regions. If the Sobel operator is used for edge detection, the gradients in the x and y directions of the image are calculated separately, and then the gradient magnitude is calculated. By setting an appropriate threshold, edges are determined, thereby separating the palmprint region from other regions.

[0113] Connected component analysis and contour extraction can also be used to determine the boundaries of palmprint regions to obtain sub-images. The specific steps are as follows: First, perform connected component analysis on the binary image after edge detection to mark all connected regions. Then, filter possible palmprint regions based on features such as the area and shape of the connected regions. Next, perform contour extraction on the selected palmprint regions to obtain their boundaries. Finally, extract a sub-image containing the palmprint regions from the processed image based on the boundary information.

[0114] Step 3: The first terminal performs feature extraction on the sub-image to extract palm print image features.

[0115] Palm print image features include palm print lines, intersections, and bifurcation points.

[0116] For example, the first terminal can use extraction methods such as Gabor filter, HOG feature and wavelet transform to extract features from the sub-image to obtain palm print image features including palm print lines, intersections and bifurcation points.

[0117] In this embodiment, if other account login terminals exist at the current login location of the first account, and these other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, it demonstrates that the account of the person to be added (the second account) can be directly searched using the palmprint image as an index. Furthermore, the login location of the second account is the same as or close to the login location of the first account, ensuring the effectiveness of the palmprint image acquisition. Based on the second account, a corresponding audio prompt for account addition is automatically generated and played to promptly inquire whether the person to be added agrees to be added as a contact of the first account. This eliminates the need for manual input and avoids sending inquiry messages to the second terminal held by the person to be added, thus improving the efficiency of contact addition while ensuring security and effectiveness.

[0118] In some embodiments, as shown in FIG5, it is a flowchart illustrating the second account determination step in one embodiment. If other account login terminals exist at the current login location of the first account, and these other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, then based on the second account, a corresponding audio prompt for account addition is generated, including:

[0119] Step S502: Extract palm print image features from the acquired palm print image.

[0120] Step S504: If there are other account login terminals at the current login location of the first account, obtain the login accounts of the other account login terminals and query the palmprint image features associated with each login account.

[0121] For example, the first terminal sends its current login information (including the current login location of the first account, etc.) to the server. Upon receiving the information, the server queries its stored terminal login location information to determine if other accounts are logged in at the current login location. If so, the server retrieves the palmprint image features corresponding to each login account from the palmprint feature database, based on the binding relationship between login accounts and palmprint image features. Specifically, this can be done through a database query operation, using the login account as the keyword to retrieve the corresponding palmprint image features from the palmprint feature database. Finally, the server returns each login account and its corresponding palmprint image features to the first terminal.

[0122] The palmprint feature database contains the palmprint image features of all registered accounts (accounts that have been bound to palmprint image features).

[0123] Step S506: If the extracted palmprint image features and the queried target palmprint image features meet the similarity condition, the login account associated with the target palmprint image features is used as the second account, and based on the second account, a corresponding audio message is generated to prompt the account to be added.

[0124] The similarity condition is that the similarity reaches a similarity threshold. This similarity threshold can be determined through extensive experimental data. The specific method involves collecting multiple sets of known similar and dissimilar palmprint image feature pairs and calculating the similarity of each pair. Then, based on the experimental results, a suitable threshold is selected such that, at this threshold, the similarity of similar feature pairs is greater than the threshold, and the similarity of dissimilar feature pairs is less than the threshold. For example, after multiple experiments, it was found that setting the similarity threshold to 0.8 effectively distinguishes between similar and dissimilar palmprint image features.

[0125] For example, for each queried palmprint image feature, the first terminal calculates the similarity between the queried palmprint image feature and the extracted palmprint image feature. If Euclidean distance is used to calculate the similarity, the specific formula is as follows: Where x i and y i These are the i-th elements of the feature vectors of the two palmprint images, where n is the dimension of the vector. If cosine similarity is used to calculate similarity, the specific formula is: in and These are the feature vectors of two palm print images. and They are respectively and The modulus is determined. The maximum similarity is determined from at least one similarity score, and the palmprint image feature corresponding to the maximum similarity (derived from a palmprint image feature library) is taken as the target palmprint image feature. If the maximum similarity is greater than or equal to a similarity threshold, the target palmprint image feature is determined to satisfy the similarity condition.

[0126] The first terminal uses the login account associated with the target palm print image features that meet similar conditions as the second account, and generates corresponding audio to prompt the account to be added based on the second account.

[0127] For example, similarity calculation can be determined using Euclidean distance or cosine similarity.

[0128] The process of storing the palmprint image features of any account is described below. Figure 6 shows a schematic diagram of the palmprint image feature storage process in one embodiment. The specific steps are as follows:

[0129] Step S6.1: For any object to be bound, the terminal logged into by the account of the object to be bound will capture the palm print of the object to be bound, and obtain the palm print image to be processed. The terminal can be the first terminal mentioned above, or the second terminal, and there is no specific limitation.

[0130] Step S6.2: The terminal performs feature extraction on the palmprint image to be processed, extracting the corresponding palmprint image features.

[0131] Step S6.3: The terminal binds the account to the palm print image feature.

[0132] Step S6.4: Store the successfully bound palmprint image features in the palmprint feature library and use the account as the registered account.

[0133] In this embodiment, firstly, the palm print image features of the person adding the contact are extracted from the palm print image. Then, the login accounts of other login terminals at the current login location are determined to narrow down the search scope and reduce the search time. In this way, from the palm print image features bound to the login account, palm print image features similar to the extracted palm print image features can be quickly and accurately searched to determine the second account, thereby improving the efficiency of the entire contact adding process.

[0134] In some embodiments, as shown in FIG7, it is a flowchart illustrating the second account determination step in another embodiment. If other account login terminals exist at the current login location of the first account, and these other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, then based on the second account, a corresponding audio prompt for account addition is generated, including:

[0135] Step S702: Extract palm print image features from the acquired palm print image.

[0136] Step S704: Compare the extracted palmprint image features with the palmprint image features in the palmprint feature library. If the comparison result indicates that there is at least one similar palmprint image feature in the palmprint feature library, query the account associated with at least one similar palmprint image feature.

[0137] For example, the first terminal calculates the similarity between each palmprint image feature in the palmprint feature library and the extracted palmprint image feature. If the similarity is greater than or equal to a similarity threshold, the corresponding palmprint image feature (from the palmprint feature library) is a similar palmprint image feature; if it is less than the similarity threshold, it is not a similar palmprint image feature.

[0138] If the first terminal finds at least one similar palm print image feature in the palm print feature database, it queries the account associated with at least one similar palm print image feature.

[0139] Step S706: Determine the location of the terminal where the account associated with at least one similar palm print image feature is logged in. If the location of the terminal where the target account is logged in is located at the current login location of the first account among the accounts associated with at least one similar palm print image feature, the target account is used as the second account. Based on the second account, generate a corresponding audio prompt for account addition.

[0140] For example, the first terminal determines the account associated with each similar palm print image feature and the location of the terminal logged in by that account, comparing the distance between the location of the logged-in terminal and the current login location. From at least one distance, the minimum distance is determined, and the account corresponding to the minimum distance is designated as the target account. If the minimum distance meets a distance threshold, the target account is designated as the second account. The distance threshold is a value used to determine whether the distance between the location of the terminal logged in by the associated account and the current login location of the first account meets the requirements. It can be determined based on the actual application scenario and positioning accuracy, and plays a filtering role in determining the second account. The distance threshold can be determined based on the actual application scenario and positioning accuracy. For example, in an indoor scenario, the positioning accuracy may be at the meter level, in which case the distance threshold can be set to 5 meters. In an outdoor scenario, the positioning accuracy may be higher, in which case the distance threshold can be set to 2 meters. The specific determination method can be achieved through multiple experiments, observing the accuracy and efficiency of adding contacts under different distance thresholds, and selecting an optimal distance threshold. Based on the second account, the first terminal generates a corresponding audio prompt for account addition.

[0141] In this embodiment, each palmprint image feature in the palmprint feature library is first compared with the extracted palmprint image features to search for associated accounts. Then, based on the location of the terminal logged in by the associated account and the current login location of the first account, it is queried whether there is a target account logged in at the same terminal location as the current login location. If so, the target account is identified as the second account. This second account identification process not only ensures that the palmprint image is obtained in real-time from the current login location, reflecting the effectiveness of palmprint image acquisition, but also accurately indexes the second account using a valid palmprint image, improving the accuracy of account indexing.

[0142] In some embodiments, when the second terminal logged into by the second account associated with the palm print image is located at the current login location of the first account, playing an audio prompt to add the account includes: determining the second account associated with the palm print image and obtaining the contact list of the first account; when the contact list of the first account does not include the second account and the second terminal logged into by the second account is located at the current login location of the first account, playing an audio prompt to add the account.

[0143] In this embodiment, after searching for the associated second account using the palm print image as the account index, in order to avoid adding the contact repeatedly, the audio will only be played if it is determined that the first account's contact list does not contain the second account and the second terminal is in the current login position, thus ensuring the effectiveness and accuracy of the contact addition.

[0144] In some embodiments, the first terminal may extract palmprint image features from the collected palmprint image; if there are other account login terminals at the current login location of the first account, the login account of the other account login terminal is obtained, and the palmprint image features associated with each login account are queried; if the extracted palmprint image features and the queried target palmprint image features meet the similarity condition, the login account associated with the target palmprint image features is used as the second account.

[0145] Step S208: If the voice used to confirm the addition of the account is collected and the voice matches the identity of the second account, the second account is added as a contact of the first account.

[0146] For example, the first terminal starts timing from the moment the audio plays. If the first terminal collects a voice within a preset duration, it checks whether the voice contains keywords related to confirming account addition. If so, it extracts voiceprint features from the voice. If the extracted voiceprint features are associated with a second account, the first terminal determines that the voice originated from the second account and confirms the addition. The first terminal then adds the second account as a contact of the first account. The preset duration can be set according to actual needs, such as 4 seconds, 5 seconds, 8 seconds, or 10 seconds.

[0147] In some embodiments, the method further includes: when a voice used to confirm account addition is collected, extracting voiceprint features from the voice and obtaining the voiceprint registration account corresponding to the voiceprint features from a voiceprint feature library; and when the voiceprint registration account is a second account associated with a palm print image, determining that the voice matches the identity of the second account.

[0148] For example, when the first terminal determines that it has collected the voice recording of a confirmed account, the first terminal obtains a voiceprint feature library, extracts voiceprint features from the voice recording, and retrieves the voiceprint registration account corresponding to the extracted voiceprint features from the voiceprint feature library. If the voiceprint registration account is a second account, the voice recording is confirmed to match the identity of the second account. Voiceprint features can be extracted from the voice recording using the Mel Frequency Cepstral Coefficients (MFCC) method. The specific steps are as follows: First, the voice recording is pre-emphasized to boost the high-frequency components; then, the sound signal is framed, for example, each frame length can be set to 25ms and the frame shift can be set to 10ms; next, each frame signal is windowed, for example, using a Hamming window; then, the power spectrum of each frame signal is calculated; then, the power spectrum is converted to the Mel frequency domain using a Mel filter bank; finally, the logarithmic power spectrum in the Mel frequency domain is subjected to a Discrete Cosine Transform (DCT), and the first k coefficients (set as needed, such as 13) are taken as voiceprint features.

[0149] Alternatively, the first terminal can query the voiceprint feature corresponding to the second account from the voiceprint feature database, compare the extracted voiceprint feature with the queried voiceprint feature, and if they match, determine that the speaking voice matches the identity of the second account.

[0150] In this embodiment, after confirming the acquisition of a voice indicating confirmation of adding a contact, to ensure that the voice originates from the second account, voiceprint features are extracted from the voice. Based on the extracted voiceprint features, the corresponding registered account is retrieved from the voiceprint feature database. If the registered account matches the second account, the second account agrees to be added as a contact of the first account. The entire process requires no additional input and no confirmation on the second terminal, thus improving the efficiency of adding contacts.

[0151] In some embodiments, when the second account associated with the palmprint image includes multiple accounts, and each account is logged into a different application, when a voice recording for confirming account addition is collected and the voice recording matches the identity of the second account, adding the second account as a contact of the first account includes: when a voice recording for confirming account addition is collected and the voice recording matches the identity of each account, displaying a list of accounts to be added in the application interface, the list of accounts to be added including each account and the identifier of the application it is logged into; and in response to the selection operation of a target account in the list of accounts to be added, adding the target account as a contact of the first account.

[0152] The list of accounts to be added is a list displayed in the application interface after the palm print image is associated with multiple accounts, each of which is logged into a different application. The list includes each account and its logged-in application identifier, allowing the user to select the target account to add.

[0153] For example, as shown in Figure 8, a schematic diagram of adding contacts is provided in one embodiment. If the second account associated with the palmprint image includes account a, account b, account c, etc., and account a is logged into the instant messaging application app1 for internal enterprise communication, account b is logged into the instant messaging application app2 for non-internal enterprise communication, and account c is logged into a game application. When a voice recording is collected to confirm account addition, and the voice recording matches the identity of each account, a list of accounts to be added is displayed, including account a, account b, and account c. Thus, based on needs, one or more target accounts can be selected from the list of accounts to be added, and at least one selected target account can be added as a contact of the first account.

[0154] Alternatively, if the voice used to confirm the addition of an account is collected and the voice matches the identity of each account, the account used to log in to the target application is displayed, and in response to the triggered operation on that account, that account is added as a contact of the first account.

[0155] In this embodiment, when the second account associated with the palm print image includes multiple accounts, and each account is logged into a different application, multiple accounts are displayed when the voice used to confirm the addition of the account is collected and the voice matches the identity of each account. One or more target accounts can be added based on actual needs, improving the portability of the addition process.

[0156] In the above contact addition method, in the target application logged in with the first account, the contact addition control for the account addition function is displayed in a timely manner through the application interface. In response to the trigger operation of the contact addition control, a palmprint image is captured. This allows for accurate searching of the associated second account using the palmprint image as an account index. Furthermore, to ensure the validity of the palmprint image acquisition, it is necessary to ensure that the login location of the second account is the same as or close to the login location of the first account. When the second terminal logged in by the second account associated with the palmprint image is located at the current login location of the first account, an audio prompt for account addition is automatically played without any trigger operation to determine whether the second account is allowed to add. If the voice confirming account addition is captured and matches the identity of the second account, it indicates that the second account is allowed to be added as a contact of the first account. Throughout the process, the validity and security of contact addition are ensured based on the login location and audio. Under this premise, using the palmprint image as the account index eliminates the need to generate or acquire additional media, simplifying the contact addition process and improving the efficiency of contact addition.

[0157] In some embodiments, in response to a triggering operation of adding a contact control, a palmprint image is captured, including: in response to a triggering operation of adding a contact control, capturing a scene; if a palmprint appears in the captured scene and an account addition authorization instruction is simultaneously captured, extracting the palmprint image from the scene; and if the second terminal logged in by the second account associated with the palmprint image is located at the current login location of the first account and the account addition authorization instruction indicates that an account should be added automatically, automatically adding the second account as a contact of the first account.

[0158] The account addition authorization command is used to indicate whether to authorize the automatic addition of accounts. The account addition authorization command can be a pre-set, general command, meaning each adding party can use one account addition authorization command. Alternatively, the account addition authorization command can be a custom command set by each added party, meaning each added party has its own corresponding account addition authorization command.

[0159] The authorization command for adding an account can be expressed through actions, such as nodding (allowing automatic addition) and shaking the head (disallowing automatic addition); it can also be expressed through sound, such as the sound containing a specified password (e.g., "allow automatic addition"), or the specified password being set by the account being added (e.g., "123"). If the sound does not contain a command, it means automatic addition is not allowed. It can also be expressed through emoticons, such as a smile (allowing automatic addition) and the absence of a specific emoticon (disallowing automatic addition).

[0160] For example, in response to a trigger operation of adding a contact control, the first terminal captures the scene and identifies the scene. If the identification result indicates the presence of a palm print and an account addition authorization instruction, the first terminal extracts the palm print image from the scene and determines whether to allow automatic account addition based on the identified account addition authorization instruction.

[0161] If the second terminal, which is logged into by the second account associated with the palm print image, is located at the current login position of the first account, and the account addition authorization instruction indicates that the account should be added automatically, the first terminal will automatically add the second account as a contact of the first account.

[0162] In this embodiment, after the contact addition control is triggered, the palm print image and the account addition authorization instruction are obtained simultaneously by capturing the scene. In this way, it is possible to simultaneously search whether the second account associated with the palm print image is in the current login location, and to determine whether the added party allows the adder to automatically add the account, which further improves the efficiency of the entire contact addition process.

[0163] In some embodiments, the palmprint image includes at least two palms, and the method further includes:

[0164] Extract the palm regions of at least two hands from the palm print images;

[0165] When the second terminal logged into by the second account associated with the palmprint image is located at the current login location of the first account, play an audio prompt to indicate the account addition, including:

[0166] When the second terminal associated with the second account in each palm area image is located at the current login location of the first account, play an audio prompt to add the account;

[0167] If the voice used to confirm the account addition is collected, and the voice matches the identity of the second account, the second account is added as a contact of the first account, including:

[0168] If at least two voices are collected sequentially to confirm the addition of an account, and each of the at least two voices is associated with a second account associated with a palm area image, then the second account associated with each of the at least two voices is added as a contact of the first account.

[0169] For example, if a palmprint image includes two palms, the palm area images where the two palms are located are intercepted, namely palm area image A and palm area image B. When the terminals M1 logged in with the second account Tar_accnt_a associated with palm area image A and the terminal M2 logged in with the second account Tar_accnt_b associated with palm area image B are both located at the current login position of the first account Src_accnt, an audio for prompting account addition is played. When the spoken voices audio1 and audio2 for confirming account addition are collected and the spoken voice audio1 is associated with the second account Tar_accnt_a and the spoken voice audio2 is associated with the second account Tar_accnt_b, the second account Tar_accnt_a and the second account Tar_accnt_b are both added as contacts of the first account.

[0170] In this embodiment, if the palmprint image contains multiple palms, when it is verified that the login positions of the second accounts associated with each palm are at the current login position and the spoken voices for confirming account addition associated with each second account are received, adding multiple second accounts as contacts of the first account is completed in one key, that is, automatic addition in one key is completed while ensuring the security of account addition.

[0171] In some embodiments, when the palmprint image includes multiple palms, the method further includes: identifying the position information of each palm in the palmprint image, determining the combined action of multiple palms in the palmprint image based on the position information of each palmprint, judging whether the combined action meets the automatic addition condition. If it meets, multiple second accounts are automatically added as contacts of the first account. If it does not meet, the above step of playing an audio for prompting account addition when the second terminals logged in with the second accounts associated with each palm area image are both located at the current login position of the first account is executed.

[0172] Among them, the combined action may refer to a pattern formed by multiple palms together. For example, multiple palms jointly form a "big" character shape, or multiple palms jointly form a circle.

[0173] Whether the combined action meets the automatic addition condition means verifying whether the pattern formed by all palms in the palmprint image is a preset pattern, and the preset pattern is a pattern allowed for automatic addition.

[0174] In some other embodiments, the combined action may also refer to the orientations of multiple palms, or the connection lines of the centers of the palms of each palm. Correspondingly, whether the combined action meets the automatic addition condition may also be that all palms in the palmprint image face the same direction; or the centers of the palms of each palm in the palmprint image are on the same horizontal line.

[0175] For example, based on the position information of each palm, the orientation of each palm is determined, and it is determined whether each palm is facing the same direction. If so, the automatic addition condition is met; otherwise, the automatic addition condition is not met.

[0176] For example, based on the position information of each palm, the coordinates of the center of each palm are determined, and it is determined whether the coordinates of each palm are on the same horizontal line. If so, the automatic addition condition is met; otherwise, the automatic addition condition is not met.

[0177] In a specific example, the first terminal can use a keypoint detection-based method to identify the positional information of each hand in the palmprint image. For example, it can use the MediaPipe hand keypoint detection model to obtain the coordinates of 21 keypoints for each hand. Based on these keypoint coordinates, the orientation and palm position of each hand can be determined.

[0178] For cases where the combined action involves multiple hands forming a pattern, a feature vector for the hand pattern is generated by calculating the relative positional relationships between key points of each hand. The specific method is as follows: First, obtain the coordinates of 21 key points for each hand. Then, calculate the distance and angle between any two key points, using these distances and angles as feature values. Arrange all feature values ​​in a specific order to form the feature vector of the hand pattern. Compare this feature vector with the feature vector of a preset pattern. If the similarity exceeds a preset threshold (e.g., 80%), the combined action is deemed to meet the automatic addition condition. The feature vector comparison can be calculated using cosine similarity. The specific formula is: Where A and B are the feature vectors of the hand pattern and the preset pattern, respectively, A·B is their dot product, and ||A|| and ||B|| are their magnitudes. The calculated cosine similarity value ranges from -1 to 1, with a value closer to 1 indicating higher similarity. If the calculated cosine similarity value is greater than a preset threshold, the joint action is deemed to meet the automatic addition condition. For joint actions involving multiple hand orientations or lines connecting palms, if the orientation angles of each hand deviate within a preset angle range (e.g., ±10°), then each hand is considered to be facing the same direction, meeting the automatic addition condition; if the coordinates of each palm on the same horizontal line have an error within a preset error range (e.g., ±5 pixels), then each palm is considered to be on the same horizontal line, meeting the automatic addition condition.

[0179] Figure 9 shows a schematic diagram of a palmprint image that meets the automatic addition conditions in one embodiment. In Figure 9, the automatic addition condition is that each palm is facing a point. If each palm in the acquired palmprint image is facing a point, then by default, the second account associated with each acquired palm is allowed to be automatically added. In this case, there is no need to play the audio to prompt the account to be added.

[0180] In this embodiment, if it is verified that the second terminal logged into by the second account associated with each of the multiple palm prints is located at the current login location of the first account, the position information of each palm in the palmprint image can be used to directly determine whether automatic addition is allowed. If allowed, the multiple second accounts are automatically added as contacts of the first account, without needing to play the audio prompt for account addition. If not allowed, the process returns to the step of playing the audio prompt for account addition, thus improving the convenience of account addition.

[0181] In some embodiments, the palmprint image includes at least three palms, and the method further includes:

[0182] Extract images of at least three palm regions from the palm print image;

[0183] When the second terminal logged into by the second account associated with the palmprint image is located at the current login location of the first account, play an audio prompt to indicate the account addition, including:

[0184] In cases where at least three palms include the first palm associated with the first account, other palm area images that do not include the first palm are identified. If the second terminal logged in by the second account associated with each of the other palm area images is located at the current login location of the first account, an audio prompt for account addition is played.

[0185] If the voice used to confirm the account addition is collected, and the voice matches the identity of the second account, the second account is added as a contact of the first account, including:

[0186] If at least two voices are collected sequentially to confirm the addition of an account, and each of the at least two voices is associated with a second account associated with another palm area image, then the second account associated with each of the at least two voices is added as a contact of the first account.

[0187] The packaged information is obtained by the first terminal after the palm print image contains the palm associated with the first account and the first account has completed the addition of multiple second accounts. The first terminal packages the accounts associated with each palm in the palm print image (including the first account and at least two second accounts) and sends this information to the server to enable the mutual addition of multiple accounts.

[0188] After the second account is added as a contact of the first account, the method further includes: the first terminal packages the accounts associated with each palm in the palm print image (including the first account and at least two second accounts) to obtain package information, sends the package information to the server, the server parses the package information, identifies at least two second accounts, and sends the package information to the second terminal logged in by each of the at least two second accounts, so as to instruct each second terminal to parse the package information to obtain multiple accounts, identify other accounts that are not logged in on the second terminal from the multiple accounts, and add the other accounts as contacts of the second account.

[0189] For example, if the palm print image includes palm region image A, palm region image B, and palm region image C, and the terminal M1 logged in by the second account Tar_accnt_a associated with palm region image A, the terminal M2 logged in by the second account Tar_accnt_b associated with palm region image B, and the first account Src_accnt associated with palm region image C.

[0190] After the first terminal collects the spoken audios audio1 and audio2, and verifies that audio1 is associated with the second account Tar_accnt_a and audio2 is associated with the second account Tar_accnt_b, the first terminal adds the second accounts Tar_accnt_a and Tar_accnt_b as contacts of the first account.

[0191] Subsequently, the first terminal generates package information based on the first account Src_accnt, the second account Tar_accnt_a, and the second account Tar_accnt_b, and sends it to the server. The server parses the package information to obtain the first account Src_accnt, the second account Tar_accnt_a, and the second account Tar_accnt_b, and forwards the package to terminal M1 logged in by the second account Tar_accnt_a and terminal M2 logged in by the second account Tar_accnt_b, respectively.

[0192] Terminal M1 parses the packaged information and obtains the first account Src_accnt, the second account Tar_accnt_a, and the second account Tar_accnt_b. Terminal M1 then identifies the other accounts as the first account Src_accnt and the second account Tar_accnt_b, and automatically adds the first account Src_accnt and the second account Tar_accnt_b as contacts of the second account Tar_accnt_a.

[0193] Terminal M2 parses the packaged information and obtains the first account Src_accnt, the second account Tar_accnt_a, and the second account Tar_accnt_b. Terminal M2 then identifies the other accounts as the first account Src_accnt and the second account Tar_accnt_a, and automatically adds the first account Src_accnt and the second account Tar_accnt_a as contacts for the second account Tar_accnt_b.

[0194] In this embodiment, when the palm print image contains the palm associated with the first account, after the first account completes the addition of multiple second accounts, the multiple accounts associated with the palm print image are sent to the server. The server then forwards the multiple accounts to the terminal where each second account is located. In this way, each second account can complete the addition of other accounts associated with the palm print image without each second account needing to re-capture a new image. That is, based on a single palm print image, the mutual addition of multiple accounts can be completed, which simplifies the contact addition process.

[0195] This application also provides an application scenario in which the above-described contact addition method is applied. Specifically, the application of the contact addition method in this scenario is as follows: In an instant messaging application scenario, to facilitate the addition of instant messaging accounts of strangers, the contact addition method provided in this application embodiment can be used. In this scenario, the target application is an instant messaging application, the first account is a first instant messaging account, and the second account is the instant messaging application. Specifically, the first terminal displays an application interface, the target application is logged in with the first instant messaging account, and the application interface includes a contact addition control, which is used to collect a palm print image; in response to the trigger operation of the contact addition control, the palm print image is collected; when the second terminal logged in with the second instant messaging account associated with the palm print image is located at the current login location of the first instant messaging account, the first terminal plays an audio prompt to add the account; when a voice confirming the account addition is collected, and the voice is associated with the second instant messaging account, the second instant messaging account is added as a contact of the first instant messaging account.

[0196] Of course, it is not limited to this. The contact addition method provided in this application can also be applied to other application scenarios. For example, in the game application scenario, the first account is the first game account and the second account is the second game account, so as to carry out the contact addition method provided in the embodiments of this application.

[0197] The above application scenarios are merely illustrative. It is understood that the contact addition methods provided in the embodiments of this application are not limited to the above scenarios.

[0198] In one specific embodiment, a method for adding a contact is provided, as shown in Figure 10, which is a flowchart illustrating the steps of adding a contact in one embodiment, with the first terminal where the adder is located as the implementation subject:

[0199] Step 10.1: The first terminal displays the application interface.

[0200] For example, the first terminal displays an application interface. The first terminal logs in with a first account. The application interface includes a contact addition control, which is used to collect palmprint images. Figure 10 illustrates two collection methods: Method 1 is described in steps 10.2 to 10.6; Method 2 is described in steps 10.7 to 10.10.

[0201] Step 10.2: The first terminal acquires the target palm print image.

[0202] Optionally, in response to a triggering operation of the contact addition control, a list of addition methods is displayed, including palmprint addition and other addition methods; in response to a selection operation of the palmprint addition method, a target palmprint image is acquired. The target palmprint image refers to a palmprint image that meets the display conditions (the palmprint image contains a complete palmprint and the image clarity reaches a set clarity threshold) among at least two palmprint images, and can be used for subsequent operations such as querying associated second accounts.

[0203] Optionally, in response to the triggering operation of adding a contact control, a scene image is captured; if the scene image is used to identify that the current scene is not crowded, a list of addition methods including palmprint addition methods is displayed; in response to the selection operation of palmprint addition method, a target palmprint image is captured.

[0204] Optionally, if the first account is found to be in the whitelist for palmprint image usage, in response to the triggering operation of the contact addition control, a list of addition methods including palmprint addition methods is displayed; in response to the selection operation of palmprint addition method, the target palmprint image is captured.

[0205] The above-mentioned response to the selection of a palmprint addition method involves acquiring a target palmprint image, including: the first terminal acquiring at least two palmprint images in response to a trigger operation of the contact addition control. If any one of the at least two palmprint images meets the display conditions, the target palmprint image is displayed in the application interface. The display conditions are that the palmprint image contains a complete palmprint and the image clarity reaches a set clarity threshold.

[0206] If the palm print images in at least two palm print images do not meet the display conditions, adjustment information for palm print image acquisition is determined based on the palm print position in at least two palm print images and the pose information of the first terminal logged in by the first account. The adjustment information is displayed in the application interface to prompt the first terminal logged in by the first account to adjust according to the adjustment information and acquire a palm print image that meets the display conditions.

[0207] Step 10.3: The first terminal extracts palmprint image features from the target palmprint image.

[0208] Step 10.4: The first terminal determines the current login location.

[0209] For example, the first terminal obtains the current login location of the first account based on the location information of the first terminal that the first account is logged into.

[0210] Step 10.5: If the second terminal associated with the second account of the target palm print image is located at the current login location, the first terminal will automatically play an audio message to prompt the account to be added.

[0211] Optionally, if there are other accounts logged in at the current login location of the first terminal, and the other accounts include the second terminal logged in by the second account, and the second account is associated with the collected target palm print image, then based on the second account, a corresponding audio prompt for account addition is generated and played.

[0212] For example, palmprint image features are extracted from the collected target palmprint image; if there are other account login terminals at the current login location of the first account, the login accounts of the other account login terminals are obtained, and the palmprint image features of the target palmprint image associated with each login account are queried; if the extracted palmprint image features and the queried target palmprint image features meet the similarity condition, the login account associated with the target palmprint image features is used as the second account, and based on the second account, a corresponding audio for prompting the account to be added is generated.

[0213] For example, palmprint image features are extracted from the collected target palmprint image; the extracted palmprint image features are compared with palmprint image features in the palmprint feature library; when the comparison result indicates that there is at least one similar palmprint image feature in the palmprint feature library, the account associated with at least one similar palmprint image feature is queried; the location of the terminal logged in by the account associated with at least one similar palmprint image feature is determined; if the location of the terminal logged in by the target account is at the current login location of the first account among the accounts associated with at least one similar palmprint image feature, the target account is used as the second account; based on the second account, a corresponding audio prompt for account addition is generated.

[0214] Optionally, the second account associated with the target palmprint image is determined, and the contact list of the first account is obtained; if the second account is not included in the contact list of the first account, and the second terminal logged in by the second account is located at the current login location of the first account, an audio prompt to add the account is played.

[0215] In another example, the method further includes: sending a contact addition request to the second terminal logged in by the second account associated with the target palm print image, when the second terminal is not located at the current login location of the first account; and adding the second account as a contact of the first account upon receiving a confirmation response from the second terminal logged in by the second account to the contact addition request.

[0216] Step 10.6: If the first terminal collects the voice used to confirm the addition of the account and the voice matches the identity of the second account, the first terminal adds the second account as a contact of the first account.

[0217] For example, when a voice used to confirm account addition is collected, voiceprint features are extracted from the voiceprint and the corresponding voiceprint registration account is obtained from the voiceprint feature library; if the voiceprint registration account is a second account associated with the target palm print image, it is determined that the voiceprint matches the identity of the second account.

[0218] For example, when the target palm print image is associated with multiple second accounts, and each account is logged into a different application, when the voice used to confirm the addition of the account is collected and the voice matches the identity of each account, a list of accounts to be added is displayed in the application interface. The list of accounts to be added includes each account and the application identifier it is logged into. In response to the selection of the target account in the list of accounts to be added, the target account is added as a contact of the first account.

[0219] Step 10.7: The first terminal acquires a live image containing the target palm print image and the account addition authorization command.

[0220] Step 10.8: The first terminal acquires the target palmprint image and extracts palmprint image features from the target palmprint image.

[0221] Step 10.9: The first terminal determines the current login location.

[0222] Step 10.10: If the second terminal logged in to the second account associated with the target palm print image is in the current login location and the account addition authorization instruction indicates that the account should be added automatically, the first terminal will automatically add the second account as a contact of the first account.

[0223] In this embodiment, in the target application logged in with the first account, the contact addition control for the account addition function is displayed in a timely manner through the application interface. In response to the triggering operation of the contact addition control, a palm print image is captured. This allows for accurate searching of the associated second account using the palm print image as an account index. Furthermore, to ensure the validity of the palm print image acquisition, it is necessary to ensure that the login location of the second account is the same as or close to the login location of the first account. When the second terminal logged in by the second account associated with the palm print image is located at the current login location of the first account, an audio prompt for account addition is automatically played without any triggering operation to determine whether the second account is allowed to be added. If the voice confirming account addition is captured and matches the identity of the second account, it indicates that the second account is allowed to be added as a contact of the first account. Throughout the process, the validity and security of contact addition are ensured based on the login location and audio. Under this premise, using the palm print image as an account index eliminates the need to input or scan the other party's account, simplifying the contact addition process and improving the user experience.

[0224] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0225] Based on the same inventive concept, this application also provides a contact adding device for implementing the contact adding method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more contact adding device embodiments provided below can be found in the limitations of the contact adding method described above, and will not be repeated here.

[0226] In an exemplary embodiment, as shown in FIG11, a contact adding device 1100 is provided, including: an interface display module 1102, an image acquisition module 1104, an audio playback module 1106, and an account adding module 1108, wherein:

[0227] The interface display module 1102 is used to display the application interface. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images.

[0228] Image acquisition module 1104 is used to acquire palm print images in response to a trigger operation that adds a control to a contact.

[0229] The audio playback module 1106 is used to play an audio message prompting the account to be added when the second terminal logged in by the second account associated with the palm print image is located at the current login location of the first account.

[0230] The account addition module 1108 is used to add the second account as a contact of the first account when the voice used to confirm the account addition is collected and the voice matches the identity of the second account.

[0231] In some embodiments, the device further includes an image display module, an image acquisition module 1104, for acquiring at least two palm print images in response to a trigger operation of adding a control to a contact; and an image display module for displaying the target palm print image in the application interface in response to any one of the at least two palm print images meeting the display conditions, wherein the display conditions are that the palm print image contains a complete palm print and the image clarity reaches a set clarity threshold.

[0232] In some embodiments, the device further includes an information display module, which is used to determine adjustment information for palm print image acquisition based on the palm print position in at least two palm print images and the pose information of the first terminal logged in by the first account when the palm print images in at least two palm print images do not meet the display conditions, and to display the adjustment information in the application interface. The adjustment information is used to prompt the first terminal logged in by the first account to adjust according to the adjustment information and acquire a palm print image that meets the display conditions.

[0233] In some embodiments, the audio playback module 1106 is configured to obtain the current login location of the first account based on the location information of the first terminal logged in by the first account; if there are other account login terminals at the current login location of the first account, and the other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palm print image, the module generates corresponding audio for prompting the account to be added based on the second account, and plays the audio.

[0234] In some embodiments, the audio playback module 1106 is further configured to extract palmprint image features from the acquired palmprint image; if there are other account login terminals at the current login location of the first account, obtain the login accounts of the other account login terminals, and query the palmprint image features associated with each login account; if the extracted palmprint image features and the queried target palmprint image features meet the similarity condition, use the login account associated with the target palmprint image features as the second account, and generate corresponding audio for prompting account addition based on the second account.

[0235] In some embodiments, the audio playback module 1106 is further configured to extract palmprint image features from the acquired palmprint image; compare the extracted palmprint image features with palmprint image features in the palmprint feature library; when the comparison result indicates that there is at least one similar palmprint image feature in the palmprint feature library, query the account associated with at least one similar palmprint image feature; determine the location of the terminal logged in by the account associated with at least one similar palmprint image feature; if the location of the terminal logged in by the target account among the accounts associated with at least one similar palmprint image feature is at the current login location of the first account, use the target account as the second account, and generate corresponding audio for prompting the account to be added based on the second account.

[0236] In some embodiments, the device further includes an account association module, which is used to extract voiceprint features from the voiceprint when a voiceprint is collected to confirm the addition of an account, and to obtain the voiceprint registration account corresponding to the voiceprint features from a voiceprint feature library; and to determine that the voiceprint matches the identity of the second account when the voiceprint registration account is a second account associated with a palmprint image.

[0237] In some embodiments, the account adding module 1108 is configured to send a contact adding request to the second terminal where the second account associated with the palm print image is logged in, when the second terminal is not located at the current login location of the first account; and add the second account as a contact of the first account upon receiving a confirmation response from the second terminal where the second account is logged in to the contact adding request.

[0238] In some embodiments, the image acquisition module 1104 is further configured to, in response to a trigger operation of the contact addition control, display a list of addition methods, the list of addition methods including palmprint addition method and other addition methods; and, in response to a selection operation of the palmprint addition method, acquire a palmprint image.

[0239] In some embodiments, the image acquisition module 1104 is further configured to acquire scene images in response to a trigger operation of adding a contact control; display a list of addition methods including palmprint addition methods when the scene image is used to identify that the current scene is not crowded; and acquire palmprint images in response to a selection operation of a palmprint addition method.

[0240] In some embodiments, the audio playback module 1106 is used to determine the second account associated with the palm print image and obtain the contact list of the first account; if the second account is not included in the contact list of the first account and the second terminal logged in by the second account is located at the current login location of the first account, the audio for prompting the account to be added is played.

[0241] In some embodiments, the account adding module 1108 is used to display a list of accounts to be added in the application interface when a voice for confirming account addition is collected and the voice matches the identity of each account. The list of accounts to be added includes each account and the application identifier that it is logged into. In response to the selection operation of a target account in the list of accounts to be added, the target account is added as a contact of the first account.

[0242] In some embodiments, the image acquisition module 1104 is further configured to, upon verification that the first account belongs to the palmprint image whitelist, display a list of addition methods including palmprint addition methods in response to the triggering operation of the contact addition control; and acquire a palmprint image in response to the selection operation of the palmprint addition method.

[0243] In some embodiments, the image acquisition module 1104 is further configured to acquire a scene in response to a trigger operation of the contact addition control; if a palm print appears in the acquired scene and an account addition authorization instruction is acquired simultaneously, the palm print image is extracted from the scene; if the second terminal logged in by the second account associated with the palm print image is located at the current login position of the first account and the account addition authorization instruction indicates that the account should be added automatically, the second account is automatically added as a contact of the first account.

[0244] The various modules in the aforementioned contact adding device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0245] In an exemplary embodiment, a computer device is provided, which can be a server or a terminal, and its internal structure diagram is shown in Figure 12. The computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is connected to the system bus via the I / O interfaces. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The I / O interfaces of the computer device are used for exchanging information between the processor and external devices. The communication interface of the computer device is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a contact addition method.

[0246] Those skilled in the art will understand that the structure shown in Figure 12 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0247] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0248] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0249] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0250] In summary, this application provides a method, apparatus, computer device, computer-readable storage medium, and computer program product for adding contacts. It displays an application interface logged in with a first account on a first terminal. This interface includes a contact-adding control for capturing palmprint images. When the control is triggered, a palmprint image is captured. Palmprints, as a unique biometric feature, possess uniqueness and stability, allowing for precise searching of associated second accounts using the palmprint image as an index. When the second terminal logged in with the second account is located at the current login location of the first account, an audio prompt to add the account is played. If a voice confirming the addition is captured and matches the identity of the second account, the second account is added as a contact of the first account. This method avoids the cumbersome operation of inputting or scanning the other party's account information when adding contacts in the traditional way, thus improving the processing efficiency of the adding process from a technical perspective. Simultaneously, by combining the login location and audio confirmation, the restriction of the login location ensures that the palmprint image is captured in real-time within the current scenario, while the audio confirmation further verifies the identity of the added party through voiceprint features, greatly improving the effectiveness and security of contact addition, thereby enhancing the user experience.

[0251] Furthermore, when the contact addition control is triggered, at least two palmprint images are captured. If any one of the target palmprint images meets the display conditions of containing a complete palmprint and having image clarity reaching a set threshold, the target palmprint image is displayed on the application interface. Capturing multiple palmprint images increases the probability of obtaining clear and complete palmprint images, which, from a technical perspective, improves the utilization rate of image resources. This is because, in actual acquisition, various factors may cause a single image to fail to meet the requirements, while multiple images provide more options. Clear and complete palmprint images can more accurately extract palmprint features, thereby improving the accuracy and efficiency of subsequent queries to associate secondary accounts and reducing query errors and wasted time caused by image quality issues.

[0252] When at least two palmprint images fail to meet the display requirements, adjustment information for palmprint image acquisition is determined based on the palmprint position and the pose information of the first terminal, and then displayed on the application interface. This process utilizes image analysis and pose detection technologies. Through precise analysis of the palmprint position and terminal pose, problems existing in the acquisition process can be accurately identified. From a technical perspective, this precise analysis and adjustment information allows the first terminal to accurately adjust its acquisition state based on the adjustment information, improving the efficiency of the acquisition equipment, more conveniently acquiring palmprint images that meet the requirements, increasing the success rate of palmprint image acquisition, reducing unnecessary repeated acquisition operations, and saving time and resources.

[0253] When playing the audio prompting the addition of an account, the system first obtains the current login location of the first account based on the location information of the first terminal. If other accounts are logged into the same location, and one of these accounts is logged into a second terminal associated with the captured palmprint image, then the system generates and plays the prompt audio based on the second account. The application of location technology ensures the validity of the palmprint image acquisition, as only palmprints captured from the same location are more likely to be valid in real time. Simultaneously, the automatic generation and playback of the prompt audio avoids manual input and sending query messages to the added party's terminal, technically improving the efficiency of information exchange, reducing errors and delays that may result from manual intervention, and promptly inquiring whether the added party agrees to be added, thus improving the efficiency of adding contacts.

[0254] When determining whether to generate a notification audio based on a second account, palmprint image features are extracted from the collected palmprint images. If other accounts are logged into at the current login location, the login accounts of these terminals and their associated palmprint image features are obtained. When the extracted features meet the similarity condition with the queried target features, the login account associated with the target features is used as the second account, and a notification audio is generated. This method reduces the query scope by only searching other account login terminals at the current login location, reducing the amount of data processing and improving the efficiency of data querying. Simultaneously, the use of feature matching technology to accurately determine the second account improves the accuracy and efficiency of the entire contact addition process, avoiding the waste of time and resources caused by blindly searching through large amounts of data.

[0255] Another method for determining the generation of prompt audio based on a second account involves extracting palmprint image features from the collected palmprint image and comparing them with features in a palmprint feature database. If similar features are found, associated accounts are queried, and the location of the terminals logged into by these accounts is determined. When the terminal logged into by the target account is located at the current login location of the first account, it is used as the second account, and a prompt audio is generated. This method combines feature comparison and location verification technologies, ensuring both the validity of the palmprint image acquisition and the accurate indexing of the second account. Feature comparison technology can quickly find similar features in a large palmprint feature database, improving the accuracy of account indexing. Location verification further ensures the validity of associated accounts, avoids erroneous additions, and improves the security and accuracy of contact addition.

[0256] Upon receiving the voice recording of a confirmed account addition, voiceprint features are extracted from the voice. The corresponding voiceprint registered account is retrieved from the voiceprint feature database. If this account is a secondary account associated with the palm print image, the voice matches the identity of the secondary account. Voiceprint features are unique and stable; each person's voiceprint is different. Voiceprint feature verification technically ensures that the confirmed addition voice comes from a secondary account, avoiding the risk of impersonation and improving the security of adding contacts. Simultaneously, no additional input or confirmation on a secondary terminal is required, reducing steps and improving the efficiency of adding contacts.

[0257] When the second terminal logged into the second account associated with the palmprint image is not located at the current login location of the first account, a contact addition request is sent to the second terminal. Upon receiving a confirmation response, the second account is added as a contact of the first account. This method utilizes network communication technology to ensure that even if the person being added is not at their current location, the addition request can still be received via the network and confirmed as needed. Technically, this expands the applicability of contact addition, improves its flexibility and effectiveness, and guarantees its security and validity.

[0258] When the contact addition control is triggered, a list of addition methods, including palmprint addition and other methods, is displayed. After selecting the palmprint addition method, a palmprint image is captured. This approach provides users with multiple addition methods to choose from, technically improving the flexibility of user operation. Users can select the most suitable addition method based on actual conditions, such as device conditions and scenario requirements, improving the convenience of the addition process and meeting the diverse needs of different users.

[0259] When the contact addition control is triggered, a scene image is captured. If the current scene is not crowded, a list of addition methods, including palmprint addition, is displayed. After selecting this method, a palmprint image is captured. The application of scene recognition technology makes the selection of addition methods more intelligent, judging whether palmprint addition is suitable based on the level of crowding in the scene. This avoids potential security risks associated with using palmprint addition in crowded scenes, such as palmprint information being obtained by others. Technically, this improves the security and reliability of contact addition, ensuring the security of user information.

[0260] When playing the audio prompting for account addition, the system first identifies the second account associated with the palm print image and retrieves the contact list of the first account. The audio is only played if the second account is not in the list and the second device is in the currently logged-in location. This method, through data query and comparison technology, avoids duplicate contact additions. In a contact management system, duplicate additions lead to data redundancy and management chaos. This technology ensures the validity and accuracy of contact additions, improving the efficiency of contact data management.

[0261] When a palm print image is associated with multiple secondary accounts, each logged into different applications, a list of accounts to be added is displayed upon receiving a confirmed voice confirmation that matches the identity of each account. Users can then select the target account and add it as a contact for the primary account. This method utilizes data display and selection technology to provide users with a clear account selection interface, allowing them to choose the accounts they want to add based on their needs. Technically, this improves the flexibility and operability of the adding process, meeting users' needs to add multiple contacts in different application scenarios.

[0262] When the first account is verified to be on the palmprint image whitelist, the contact addition control is triggered, displaying a list of addition methods including palmprint image capture. Selecting a method then captures a palmprint image. This whitelist mechanism, through account access control, technically ensures the security of adding contacts using palmprint images, preventing the leakage of the added party's palmprint information. Only authorized accounts can use the palmprint addition method, reducing the risk of information leakage and improving system security and reliability.

[0263] When the contact addition control is triggered, the system captures the scene. If a palm print appears on the screen and the account addition authorization command is simultaneously captured, the palm print image is extracted. When the second terminal is in the currently logged-in location and the command indicates automatic addition, the second account is automatically added as a contact of the first account. This method combines image recognition and command acquisition technologies, enabling simultaneous searching for associated accounts and confirming automatic addition. Technically, it further improves the efficiency of contact addition, reduces manual operation steps, automates contact addition, and enhances the system's processing capacity and response speed.

[0264] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0265] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0266] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0267] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for adding contacts, executed by a first terminal, the method comprising: The application interface is displayed. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images. In response to a triggering operation that adds a control to the contact, a palm print image is captured; If the second terminal logged into by the second account associated with the palm print image is located at the current login location of the first account, play an audio prompt to add the account; and If a voice recording is collected to confirm the addition of an account, and the voice recording matches the identity of the second account, the second account is added as a contact of the first account.

2. The method according to claim 1, wherein the step of acquiring a palmprint image in response to a trigger operation of adding a control to the contact includes: In response to a triggering operation that adds a control to the contact, at least two palm print images are captured; The method further includes: In response to any one of the at least two palm print images satisfying the display conditions, the target palm print image is displayed in the application interface. The display conditions are that the palm print image contains a complete palm print and the image clarity reaches a set clarity threshold.

3. The method according to claim 2, further comprising: If none of the palm print images in the at least two palm print images meet the display conditions, adjustment information for palm print image acquisition is determined based on the palm print position in the at least two palm print images and the pose information of the first terminal, and the adjustment information is displayed in the application interface. The adjustment information is used to prompt the first terminal to adjust according to the adjustment information and acquire a palm print image that meets the display conditions.

4. The method according to any one of claims 1 to 3, wherein when the second terminal logged in to the second account associated with the palm print image is located at the current login location of the first account, playing an audio prompt for account addition includes: Based on the location information of the first terminal, obtain the current login location of the first account; If there are other account login terminals at the current login location of the first account, and the other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palm print image, then based on the second account, a corresponding audio for prompting the account to be added is generated and the audio is played.

5. The method according to claim 4, wherein when there are other account login terminals at the current login location of the first account, and the other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, generating corresponding audio for prompting account addition based on the second account includes: Palmprint image features are extracted from the acquired palmprint images; If there are other login terminals at the current login location of the first account, obtain the login account of the other login terminal and query the palmprint image features associated with each login account. If the extracted palmprint image features and the queried target palmprint image features meet the similarity condition, the login account associated with the target palmprint image features is used as the second account, and based on the second account, a corresponding audio prompt for account addition is generated.

6. The method according to claim 4, wherein when there are other account login terminals at the current login location of the first account, and the other account login terminals include the second terminal logged in by the second account, and the second account is associated with the collected palmprint image, generating corresponding audio for prompting account addition based on the second account includes: Palmprint image features are extracted from the acquired palmprint images; The extracted palmprint image features are compared with the palmprint image features in the palmprint feature library. If the comparison result indicates that there is at least one similar palmprint image feature in the palmprint feature library, the account associated with the at least one similar palmprint image feature is queried. If the location of the login terminal of the account associated with the at least one similar palm print image feature is determined, and the location of the login terminal of the target account among the at least one similar palm print image feature associated with the first account is located at the current login location of the first account, then the target account is used as the second account, and based on the second account, a corresponding audio prompt for account addition is generated.

7. The method according to any one of claims 1 to 6, wherein the method further comprises: When the voice used to confirm account addition is collected, the voiceprint features are extracted from the voiceprint features, and the voiceprint registration account corresponding to the voiceprint features is obtained from the voiceprint feature library. If the voiceprint registration account is a second account associated with the palmprint image, it is determined that the speaking voice matches the identity of the second account.

8. The method according to any one of claims 1 to 7, wherein the method further comprises: If the second terminal logged into by the second account associated with the palm print image is not located at the current login location of the first account, a contact addition request is sent to the second terminal logged into by the second account; Upon receiving a confirmation response from the second terminal logged in by the second account regarding the request to add the contact, the second account is added as a contact of the first account.

9. The method according to any one of claims 1 to 8, wherein the step of acquiring a palmprint image in response to a trigger operation of adding a control to the contact includes: In response to the triggering operation of the contact addition control, a list of addition methods is displayed, which includes palmprint addition method and other addition methods; In response to the selection of the palmprint addition method, a palmprint image is acquired.

10. The method according to any one of claims 1 to 9, wherein acquiring the palmprint image in response to a triggering operation of adding a control to the contact comprises: In response to a triggering operation that adds a control to the contact, a scene image is captured; If the scene image is recognized as being in a non-crowded scene, a list of addition methods, including palm print addition methods, is displayed. In response to the selection of the palmprint addition method, a palmprint image is acquired.

11. The method according to any one of claims 1 to 10, wherein, when the second terminal logged in to the second account associated with the palm print image is located at the current login location of the first account, playing an audio prompt for account addition includes: Identify the second account associated with the palmprint image and obtain the contact list of the first account; If the second account is not included in the contact list of the first account, and the second terminal logged in by the second account is located at the current login location of the first account, play an audio prompt to add the account.

12. The method according to any one of claims 1 to 11, wherein when the second account associated with the palmprint image comprises multiple accounts, and each account is logged into a different application, the step of adding the second account as a contact of the first account when a voice recording for confirming account addition is collected and the voice recording matches the identity of the second account includes: When a voice recording is collected to confirm the addition of an account, and the voice recording matches the identity of each account, a list of accounts to be added is displayed in the application interface. The list of accounts to be added includes each account and the application identifier that it is logged into. In response to the selection of a target account in the list of accounts to be added, the target account is added as a contact of the first account.

13. The method according to any one of claims 1 to 12, wherein acquiring the palmprint image in response to a triggering operation of adding a control to the contact comprises: If it is verified that the first account belongs to the whitelist for palmprint image usage, in response to the triggering operation of adding the contact control, a list of adding methods including palmprint addition methods is displayed; In response to the selection of the palmprint addition method, a palmprint image is acquired.

14. The method according to any one of claims 1 to 13, wherein acquiring the palmprint image in response to a triggering operation of adding a control to the contact comprises: In response to a triggering operation that adds a control to the contact, the system captures live footage. If a palm print appears in the captured scene and an account addition authorization command is captured simultaneously, the palm print image is extracted from the captured scene. If the second terminal logged in by the second account associated with the palm print image is located at the current login location of the first account, and the account addition authorization instruction indicates that the account should be added automatically, the second account will be automatically added as a contact of the first account.

15. A contact adding device, applied to a first terminal, the device comprising: The interface display module is used to display the application interface. The first terminal logs in with the first account. The application interface includes a contact addition control, which is used to collect palm print images. The image acquisition module is used to acquire a palm print image in response to a trigger operation that adds a control to the contact. An audio playback module is used to play an audio prompt for account addition when the second terminal logged in by the second account associated with the palm print image is located at the current login location of the first account. and The account addition module is used to add the second account as a contact of the first account when a voice recording is collected to confirm the account addition and the voice recording matches the identity of the second account.

16. A computer device comprising a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the method according to any one of claims 1 to 14.

17. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 14.

18. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Contact person adding method and system

    CN105515946A

  • Method, device and system for adding contact person in social network

    CN107154890A

  • Method and device for adding friends based on biological recognition and computer device

    CN110381059A

  • Identifying a contact based on a voice communication session

    US20150003599A1