Interaction method and apparatus, and electronic device and computer-readable storage medium

WO2026219210A1PCT designated stage Publication Date: 2026-10-22GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/090548
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-04-15
Filing Date
2026-04-14
Publication Date
2026-10-22

Smart Images

  • Figure CN2026090548_22102026_PF_FP_ABST
    Figure CN2026090548_22102026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic devices. Provided are an interaction method and apparatus, and an electronic device and a computer-readable storage medium. The method comprises: when an input apparatus acts on a display interface of a capacitive screen of an electronic device, determining a device identifier of the input apparatus; on the basis of the device identifier, determining a target function configured for the input apparatus; acquiring user information corresponding to the target function in the input apparatus; and on the basis of the user information, executing the target function. In the present application, both quick account login and quick information transmission can be realized upon interaction between an input apparatus and an electronic device, thereby improving the user experience in interaction with the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

An interaction method, apparatus, electronic device, and computer-readable storage medium

[0001] This application claims priority to Chinese Patent Application No. 202510471774.0, filed on April 15, 2025, entitled "An Interaction Method, Apparatus, Electronic Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic device technology, and more particularly to an interaction method, apparatus, electronic device, and computer-readable storage medium in the field of electronic device technology. Background Technology

[0003] Currently, most internet services use a manual login method involving entering usernames and passwords, which is cumbersome. For example, to improve security, many systems require users to set complex passwords (such as combinations of uppercase and lowercase letters, numbers, and special characters). When logging in, users must first enter their username and then their password. If the password is complex, the manual entry process is time-consuming and prone to errors, thus degrading the user experience. Summary of the Invention

[0004] This application provides an interaction method, apparatus, electronic device, and computer-readable storage medium. By designing an input device that can be configured with functions and user information, this application enables the quick execution of the input device's target functions when the input device interacts with the electronic device. In account login scenarios, it enables quick account login; in transmission scenarios, it enables quick information transmission, thereby improving the user's interactive experience with the electronic device.

[0005] In a first aspect, an interaction method is provided for use in electronic devices with capacitive touchscreens. The interaction method includes: determining the device identifier of the input device when the input device operates on the display interface of the capacitive touchscreen; determining the target function configured on the input device based on the device identifier; obtaining user information corresponding to the target function in the input device; and executing the target function based on the user information.

[0006] Based on the above technical solutions, the interaction method provided in this application, when the input device interacts with the display interface of the capacitive screen of an electronic device, determines the device identifier of the input device, determines the target function configured on the input device based on the device identifier, obtains the user information corresponding to the target function in the input device, and executes the target function based on the user information. This technical solution realizes the use of user information as input for function execution. When the user interacts with the electronic device using the input device, the electronic device can quickly execute the function that needs to be implemented based on the user information, ensuring the immediacy of function execution and allowing the user to feel that the function is responded to quickly. Applying this interaction method to an account login scenario enables quick account login. Users only need to interact with the electronic device using the input device to log in to their accounts, eliminating the process of manually entering identity verification information and improving the convenience of account login. Applying this interaction method to a resource transfer scenario enables quick information transfer. Users only need to interact with the electronic device using the input device to pass the information to be transferred to the resource recipient, or users only need to interact with the electronic device using the input device to quickly display the user account of the resource recipient to the user, eliminating the tedious process of manually retrieving the user account of the resource recipient and improving the efficiency of resource transfer.

[0007] In one possible implementation, if the target function is a login function, the user information includes authentication information; executing the target function based on the user information includes: if the input device triggers a first operation on the display interface, logging into the application to which the display interface belongs based on the authentication information, thus realizing quick login to the application.

[0008] In one possible implementation, if an input device triggers a first operation on the display interface, logging into the application to which the display interface belongs based on authentication information includes: if the input device triggers a first operation on the display interface, determining whether the input device operates on a preset area of ​​the display interface; if so, logging into the application to which the display interface belongs based on authentication information. By setting a preset area in the display interface, logging into the application to which the display interface belongs based on authentication information when the input device triggers a first operation on the display interface and it is determined that the input device operates on the preset area can avoid frequent login operations by electronic devices, thus reducing server load.

[0009] In one possible implementation, if the target function is a resource transfer function, and the user information includes a user account, executing the target function based on the user information includes: if the input device triggers a second operation on the display interface, determining the target resource from the data resources of the display interface according to the second operation; displaying the target window; wherein the target window includes at least one user account, and the user account in the target window is the receiving account of the target resource; responding to the selection operation of the user account in the target window, transferring the target resource to the user account selected by the selection operation, thereby realizing the quick retrieval of the user account of the resource recipient, eliminating the tedious process of the user manually retrieving the user account of the resource recipient, and improving the efficiency of the user in transferring resources.

[0010] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, determining the target resource from the data resource of the display interface according to the second operation includes: if the second operation is a click operation on a local part of the page content, the local part of the page content clicked by the click operation is determined as the target resource, which is conducive to realizing the quick transfer of local page content in the display interface.

[0011] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, determining the target resource from the data resource of the display interface according to the second operation includes: if the second operation is a sliding operation applied to any area of ​​the display interface, the global page content in the display interface will be determined as the target resource, which is beneficial to realize the quick transfer of the global page content in the display interface.

[0012] In one possible implementation, when the data resource is a storage file of an electronic device and the application type of the application to which the display interface belongs belongs to a specified application, determining the target resource from the data resource of the display interface according to the second operation includes: if the second operation is a click operation on a file icon, determining the file clicked by the click operation in the storage file as the target resource, which is beneficial to realizing the quick transfer of storage files of electronic devices.

[0013] In one possible implementation, if the target function is a resource transfer function, and the user information includes a user account, executing the target function based on the user information includes: if the input device triggers a second operation on the display interface, determining the target resource from the data resources of the display interface according to the second operation; and transferring the target resource to the user account, thereby realizing the quick transfer of resources, that is, the transfer of resources can be realized without the user selecting a receiving account, reducing the user's resource transfer operations and improving the efficiency of resource transfer.

[0014] Secondly, an interactive device is provided for use in an electronic device with a capacitive screen, the interactive device comprising:

[0015] The first determining module is used to determine the device identifier of the input device when the input device is applied to the display interface of the capacitive touchscreen.

[0016] The second determining module is used to determine the target function configured by the input device based on the device identifier;

[0017] The third determining module is used to obtain user information corresponding to the target function in the input device;

[0018] The function execution module is used to execute target functions based on user information.

[0019] Thirdly, an electronic device is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the electronic device to perform the interaction method in the first aspect or any possible implementation thereof.

[0020] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to execute the interaction method described in the first aspect or any possible implementation thereof.

[0021] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the interaction method described in the first aspect or any possible implementation thereof. Attached Figure Description

[0022] Figure 1 shows a schematic flowchart of an interaction method provided in an embodiment of this application;

[0023] Figure 2 shows a schematic diagram of the arrangement of conductive components for electronic devices to identify the connection;

[0024] Figure 3 illustrates a scenario of logging into an application using an input device;

[0025] Figure 4 illustrates an exemplary scenario of resource transfer using an input device;

[0026] Figure 5 illustrates another exemplary scenario of resource transfer using an input device;

[0027] Figure 6 illustrates another exemplary scenario of resource transfer using an input device;

[0028] Figure 7 shows an exemplary schematic diagram of a touch response system provided in an embodiment of this application;

[0029] Figure 8 shows an exemplary cross-sectional view of an input device provided in an embodiment of this application;

[0030] Figure 9 shows an exemplary encoding schematic diagram of an input device provided in an embodiment of this application;

[0031] Figure 10 shows a schematic diagram of a local capacitance image when a click operation is triggered by the input device shown in Figure 9;

[0032] Figure 11 shows a schematic diagram of the construction of a coordinate system provided in an embodiment of this application;

[0033] Figure 12 shows a schematic diagram of the structure of an interactive device provided in an embodiment of this application;

[0034] Figure 13 shows a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0035] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0036] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0037] Currently, most internet services use a manual login method involving entering usernames and passwords, which is cumbersome. For example, to improve security, many systems require users to set complex passwords (such as combinations of uppercase and lowercase letters, numbers, and special characters). When logging in, users must first enter their username and then their password. If the password is complex, the manual entry process is time-consuming and prone to errors, thus degrading the user experience.

[0038] Currently, users often face cumbersome processes when sharing information with others. For example, they may have to select the information, open a sharing window, and then choose the recipient within that window. The sharing function in some applications is also poorly located, making it difficult for users to find quickly, which may cause them to abandon sharing and negatively impact the user experience.

[0039] Addressing the cumbersome process of user account login and information sharing in related technologies, this application provides an interaction method, device, electronic device, and computer-readable storage medium. The interaction method provided in this application is applied to electronic devices with capacitive screens, such as smart interactive tablets, laptops, and tablets. The electronic device is equipped with an input device (e.g., a smart stamp) for interaction. Users can configure the input device with their desired target functions and set their user information within it. When a user interacts with the electronic device using the input device, the electronic device recognizes the target function and the user information carried by the input device, and then executes the target function based on the user information, achieving quick execution of the input device's target function. For example, if a user needs to quickly log in to their account through the input device, they can configure the input device's target function as a login function and set their authentication information (e.g., username and password) within the input device. When the user brings the input device into contact with the electronic device's display interface, they can quickly log in to the application displayed on the interface without manually entering authentication information. Similarly, if a user needs to transfer resources through the input device, they can configure the input device's target function as a resource transfer function and set the user information of the transfer recipient (e.g., username and email address) within the input device. When a user selects the information to be transferred on the display interface of an electronic device using an input device, the display interface quickly shows the user information of the recipient for the user to select, simplifying the resource transfer process and improving the efficiency of resource transfer, thus achieving fast information transfer. Alternatively, the electronic device can directly send the selected information to the sharing recipient, achieving fast information transfer without requiring the user to manually select the recipient's user information. This application designs an input device capable of configuring functions and user information. When the input device interacts with the electronic device, it enables the quick execution of the input device's target functions. In account login scenarios, it enables quick account login; in transfer scenarios, it enables fast information transfer, improving the user's interactive experience with the electronic device.

[0040] The following is an embodiment of an interaction method provided in this application specification.

[0041] Figure 1 shows a schematic flowchart of an interaction method provided in an embodiment of this application. As shown in Figure 1, the interaction method provided in this embodiment is applied to an electronic device. The electronic device is equipped with various types of applications, such as whiteboard applications, chat applications, teaching applications, browser applications, etc. The electronic device is equipped with an input device, and the input device includes at least one device for interacting with the electronic device. The input device is a passive interaction tool, for example, a smart stamp.

[0042] Each input device has its own unique device identifier (ID). Users can configure target functions for the input device according to their needs, as well as configure their own user information and that of others. User information includes user account, password, and other users' user accounts. User accounts include electronic addresses, such as email addresses.

[0043] Optionally, the input device can be configured with target functions and user information via electronic devices or other terminals (such as smartphones or computers) to generate configuration data. The configuration data is then sent to a server for backup and storage. The electronic device retrieves the configuration data from the server and stores it for use when the input device interacts with the electronic device.

[0044] After configuring the target function and user information for the input device, the electronic device executes the target function based on the configured user information. After generating the configuration data, the input device ID in the configuration data is associated with the configured target function. Furthermore, considering that the electronic device needs to execute the target function based on user information, the configured target function also needs to be associated with the user information. That is, there is a mapping relationship between the input device ID and the configured target function, and between the configured target function and the user information. After obtaining the input device ID, the electronic device can query the configuration data using the input device ID to obtain the target function corresponding to the ID, and query the configuration data using the target function to obtain the corresponding user information. This ensures that the configured target function can be accurately executed by the electronic device. In addition, the configuration data stored on the server is updated in real time, ensuring that the configuration data obtained by the electronic device is up-to-date, thus enabling the electronic device to accurately execute the target function.

[0045] When the input device is a smart stamp, the smart stamp includes non-pressable stamps and pressable stamps. When a user interacts with an electronic device using a non-pressable stamp, pressing the stamp is not required. However, when a user interacts with an electronic device using a pressable stamp, pressing the stamp is required; that is, using a pressable stamp involves an additional pressing operation compared to a non-pressable stamp. For example, when a user applies a non-pressable stamp to the capacitive screen of an electronic device (e.g., the non-pressable stamp makes contact with the capacitive screen), the user can directly control the non-pressable stamp to perform a sliding operation; that is, the sliding operation is triggered by the non-pressable stamp, and the electronic device responds to the sliding operation. When a user applies a pressable stamp to the capacitive screen of an electronic device (e.g., the pressable stamp makes contact with the capacitive screen), the user needs to press the stamp once first, then control the non-pressable stamp to perform a sliding operation, and after the sliding is complete, press the stamp again; that is, the sliding operation is triggered by the pressable stamp, and the electronic device responds to the sliding operation. Although using a press-type stamp requires an additional pressing operation compared to a non-press-type stamp, the response logic of the electronic device to the operation triggered by the non-press-type stamp and the press-type stamp is the same. This application embodiment uses a non-press-type stamp as an example for illustration.

[0046] An interactive method provided in this application includes the following steps:

[0047] S110: When the input device is used on the display interface of the capacitive touchscreen, determine the device identifier of the input device;

[0048] S120: Determine the target function of the input device configuration based on the device identifier;

[0049] S130: Obtain user information corresponding to the target function in the input device;

[0050] S140: Execute the target function based on user information.

[0051] In one exemplary embodiment, if an input device is detected to be interacting with the display interface of the capacitive touchscreen of an electronic device, the ID of the input device is obtained. The process for identifying the ID of the input device is as follows: multiple conductive elements are provided on the touch end (also called the contact end or contact surface) of the input device for contacting the electronic device. After the input device interacts with the capacitive touchscreen, the electronic device will identify the arrangement of the conductive elements that are connected among the multiple conductive elements, obtain the preset identifier corresponding to the arrangement, and thus obtain the ID of the input device.

[0052] For example, the touch terminal of the input device used for contacting electronic devices is provided with 8 conductive elements. Among the 8 conductive elements, there are 6 conductive elements that are connected and 2 conductive elements that are not connected. The conductive elements that are connected can be understood as conductive elements in the first grounding state, and the conductive elements that are not connected can be understood as conductive elements in the second grounding state. The first grounding state is used to indicate that the conductive element is grounded, and the second grounding state is used to indicate that the conductive element is not grounded. The grounding of the conductive element can be understood as the conductive element being connected to the ground wire to achieve grounding, or it can be understood as the conductive element being connected to the earth through the human body to achieve grounding.

[0053] A reference coordinate system is established with the corner point of one corner of the capacitive touchscreen as the origin O, one side connected to that corner point as the X-axis, and the other side connected to that corner point as the Y-axis. When the input device is applied to the capacitive touchscreen, the electronic device can identify six conductive elements, thus obtaining the position coordinates of these six conductive elements in the reference coordinate system. As shown in Figure 2, Figure 2 illustrates the arrangement of the conductive elements identified by the electronic device. In Figure 2, the origin O of the reference coordinate system is the lower left corner of the capacitive touchscreen, the Y-axis is the left side of the capacitive touchscreen, and the X-axis is the lower side of the capacitive touchscreen. After the input device is applied to the capacitive touchscreen, the electronic device can identify six conductive elements, which are designated as conductive elements 2011-2016. The position coordinates of conductive elements 2011-2016 are P1, P2, P3, P4, P5, and P6, respectively. Then, construct a first matrix with M rows and N columns based on P1-P6, where M and N are positive integers, and at least one of M and N is greater than or equal to 2. The first matrix needs to include these 6 position coordinates. For example, if M = N = 4, the first matrix is ​​represented as R1, i.e.:

[0054] In R1, "*" indicates that the element is empty.

[0055] After obtaining R1, a first identifier is used to represent the elements in the first matrix that are position coordinates, and a second identifier is used to represent the elements in the first matrix that are not position coordinates, resulting in a second matrix, denoted as R2. R2 represents the arrangement of these six conductive components. For example, if the first identifier is "1" and the second identifier is "0", then P1-P6 in R1 are all replaced with "1", and "*" is all replaced with "0", thus obtaining R2, i.e.:

[0056] R2 determines the arrangement of the six conductive contacts on the capacitive touchscreen, as well as their arrangement on the touchscreen of the input device. Once R2 is obtained, its corresponding preset identifier becomes the input device's ID. For example, if the preset identifier for R2 is ID1, then the input device's ID is ID1. Since different input devices have different arrangements of conductive contacts, this design allows for setting a different ID for each input device.

[0057] Determining the target function of the input device configuration includes: since the target function and user information are configured for the input device in advance, the electronic device stores configuration data generated based on the target function and user information of the input device configuration in advance. After determining the ID of the input device, the electronic device queries the stored configuration data through the ID of the input device to obtain the function associated with the ID of the input device, that is, to obtain the target function configured for the input device.

[0058] After obtaining the target function configured for the input device, the configuration data is queried based on the target function configured for the input device to obtain the user information corresponding to the target function configured for the input device, i.e., the user information configured for the input device is obtained. Then, the target function configured for the input device is executed based on the user information configured for the input device. This realizes the use of user information as input for function execution. When the user interacts with the electronic device using the input device, the electronic device can quickly execute the function that needs to be implemented based on the user information, ensuring the immediacy of function execution and allowing the user to feel that the function is responded to quickly.

[0059] The interaction method provided in this application, when the input device interacts with the display interface of the capacitive screen of an electronic device, determines the device identifier of the input device, determines the target function configured on the input device based on the device identifier, obtains the user information corresponding to the target function in the input device, and executes the target function based on the user information. This technical solution realizes the use of user information as input for function execution. When a user interacts with the electronic device using the input device, the electronic device can quickly execute the function that needs to be implemented based on the user information, ensuring the immediacy of function execution and allowing the user to experience a rapid response. Applying this interaction method to an account login scenario enables quick account login. Users only need to interact with the electronic device using the input device to log in, eliminating the need to manually enter authentication information and improving the convenience of account login. Applying this interaction method to a resource transfer scenario enables quick information transfer. Users only need to interact with the electronic device using the input device to transmit the information to be transferred to the resource recipient, or users only need to interact with the electronic device using the input device to quickly display the user account of the resource recipient, eliminating the tedious process of manually retrieving the user account of the resource recipient and improving the efficiency of resource transfer.

[0060] This application embodiment illustrates two target functions configured for an input device. For each input device, after configuration data is configured, the input device corresponds to only one target function, and the user information corresponding to that target function is only used by the electronic device to execute the target function configured for the input device. Taking login and resource transfer functions as examples, if the target function configured for the input device is login, the user information configured for the input device includes information related to account login, such as authentication information. If the target function configured for the input device is resource transfer, the user information configured for the input device includes information related to receiving resources, such as the user account (this user account is referred to as the receiving account of the resource recipient).

[0061] Furthermore, for the same input device, assuming its current target function and user information are already determined, if other functions are needed, the current target function of the input device must be changed to the other function via an electronic device or other terminal, and the current user information must be changed to the user information corresponding to the other function. For example, if the current target function of the input device is login and the user information is authentication information, and the user wants to use the resource transfer function, the current target function of the input device must be changed from login to resource transfer via an electronic device or other terminal, and the authentication information must be changed to the user account corresponding to the resource transfer function.

[0062] The specific implementation methods of each step in the embodiment shown in Figure 1 are described below:

[0063] In one possible implementation, when the target function configured on the input device is a login function, and the user information corresponding to the target function includes authentication information, the above-mentioned execution of the target function based on the user information includes the following steps:

[0064] If the input device triggers the first operation on the display interface, the user logs into the application to which the display interface belongs based on the authentication information.

[0065] The display interface refers to the login interface of an application. For example, the login interface of an educational application. When an input device is applied to the display interface, if the first operation triggered by the input device (such as a click operation) is detected, the legality and correctness of the identity verification information are verified. After the legality and correctness verification is passed, the user logs into the educational application, thus realizing quick login to the application.

[0066] In one possible implementation, if the input device triggers the first operation on the display interface, logging into the application to which the display interface belongs based on authentication information includes the following steps:

[0067] If the input device triggers a first operation on the display interface, determine whether the input device is operating on a preset area of ​​the display interface;

[0068] If so, the application whose login interface is displayed based on the authentication information;

[0069] If not, the target function is not executed, and the step of determining whether the input device is applied to the preset area of ​​the display interface is continued.

[0070] Figure 3 illustrates a scenario of logging into an application using an input device. As shown in Figure 3, assuming the display interface 101 is the login interface for a teaching application, after detecting the first operation triggered by the input device 103 on the display interface 101, it is determined whether the input device 103 operates within the preset area 102 of the display interface 101. If it is determined that the input device 103 operates within the preset area 102, it means that the input device 103 triggered the first operation within the preset area 102, and it is assumed that the user needs to log into the teaching application. The user then logs into the teaching application based on the authentication information in the input device 103. If it is determined that the input device 103 does not operate within the preset area 102, it means that the input device 103 triggered the first operation outside the preset area 102, and it is assumed that the user may need to log into the teaching application. A prompt message is output indicating that the input device 103 should operate within the preset area 102 for login, and the step of determining whether the input device operates within the preset area continues. The username and password in Figure 3 are generally not directly displayed but are represented by "××××××".

[0071] By setting a preset area in the display interface, when the input device triggers the first operation on the display interface and it is determined that the input device is acting on the preset area, the application to which the display interface belongs can be logged in based on the authentication information. This can avoid the electronic device frequently performing login operations, which helps to reduce the server load.

[0072] In one possible implementation, when the target function configured on the input device is a resource transfer function, and the user information corresponding to the target function includes a user account (referring to the receiving account of the resource recipient), the above-mentioned execution of the target function based on the user information includes the following steps:

[0073] If the input device triggers a second operation on the display interface, the target resource is determined from the data resources of the display interface according to the second operation;

[0074] Display the target window;

[0075] In response to a user account selection operation in the target window, the target resource is passed to the user account selected in the selection operation.

[0076] The second operation may be the same as the first operation, or it may be a different operation. If the second operation is the same as the first operation, the electronic device will respond to the same operation differently if the target functions are different.

[0077] The input device triggers a second operation on the display interface, and responds to the second operation, that is, determines the target resource from the data resources displayed on the display interface. The target resource includes at least a portion of the data resources. That is, the target resource may be all the data resources displayed on the display interface or only a portion of the data resources. The data resources displayed on the display interface include page content (such as text, patterns, etc.), storage files stored in the electronic device (such as pictures, multimedia files, etc.), and so on.

[0078] After the target resource is identified, a target window is displayed. This target window is a floating window. The target window includes user information configured on the input device. If the user information includes at least one user account, the target window will include at least one user account. The user account in the target window can be understood as the receiving account of the resource recipient. The user can select one or more accounts in the target window as the target account (i.e., the account ultimately determined by the user to receive the target resource).

[0079] After receiving a selection operation on the user account in the target window, the user account selected by the selection operation is obtained, which is the target account selected by the user. Then, the target resource is transferred to the target account. This realizes the quick retrieval of the user account of the resource recipient, saves the user from the tedious process of manually retrieving the user account of the resource recipient, and improves the efficiency of the user in transferring resources.

[0080] It is worth noting that the "transmission" of resources mentioned in the embodiments of this application includes sending, sharing, forwarding, etc.

[0081] In one possible implementation, when the target function configured on the input device is a resource transfer function, and the user information corresponding to the target function includes a user account, the above-mentioned execution of the target function based on the user information includes the following steps:

[0082] If the input device triggers a second operation on the display interface, the target resource is determined from the data resources of the display interface according to the second operation;

[0083] The target resource is passed to the user account configured on the input device, and the target window is displayed, which includes the receiving account for receiving the target resource.

[0084] The input device triggers a second operation on the display interface, and responds to the second operation, that is, determines the target resource from the data resources displayed on the display interface. The target resource includes at least a portion of the data resources, that is, the target resource may be all the data resources displayed on the display interface, or it may be a portion of the data resources.

[0085] Once the target resource is identified, it is directly transferred to the user account configured on the input device. At the same time, the target window is displayed, allowing the user to see which other user accounts the target resource has been transferred to. This enables quick resource transfer, eliminating the tedious process of manually transferring resources and improving the efficiency of resource transfer.

[0086] The type of the target resource differs depending on the application to which the display interface belongs. For example, application types include specified applications and unspecified applications. Specified applications are file storage applications, such as the Finder app. Unspecified applications are applications other than specified applications that include various page content, such as browser applications. If the application to which the display interface belongs is an unspecified application, the target resource's resource type is page content; if the application to which the display interface belongs is a specified application, the target resource's resource type is an independent file.

[0087] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, the above-mentioned determination of the target resource from the data resource of the display interface according to the second operation includes the following steps:

[0088] If the second operation is a click operation on a part of the page content, the part of the page content clicked by the click operation is determined as the target resource.

[0089] If the data resource displayed on the interface is page content and the application type of the application to which the interface belongs is not a specified application, and if the second operation is a click operation on a part of the page content, the clicked part of the page content is extracted, and the extracted part of the page content is determined as the target resource. The extracted part of the page content can be in the form of text, screenshots, etc.

[0090] Taking the user account configured on the input device as an electronic address as an example, Figure 4 shows an exemplary scenario of resource transfer using the input device. As shown in Figure 4, the page content displayed on the display interface 101 is an essay about "Spring is Coming". The user clicks on a part of the page content ("Spring flowers will bloom, and birds are free" in the dashed box 105 in Figure 4) using the input device (not shown in Figure 4). The part of the page content in the dashed box 105 is then identified as the target resource. The target window 106 is then displayed, which shows addresses 1-3. After seeing the addresses displayed in the target window 106, the user selects address 1. That is, the user corresponding to address 1 is the recipient of the target resource, and the target resource is then transferred to address 1, thus realizing the quick transfer of part of the page content in the display interface.

[0091] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, the above-mentioned determination of the target resource from the data resource of the display interface according to the second operation includes the following steps:

[0092] If the second operation is a swipe operation applied to any area of ​​the display interface, the global page content of the display interface will be determined as the target resource.

[0093] If the data resource displayed on the interface is page content and the application type of the application to which the interface belongs is not a specified application, and if the second operation is a swipe operation on any area of ​​the display interface (i.e., the user swipes on any area of ​​the display interface using an input device), the global page content of the display interface will be extracted, and the extracted global page content will be determined as the target resource. The extracted global page content can be in the form of text, screenshots, etc.

[0094] Taking the user account configured on the input device as an electronic address as an example, Figure 5 illustrates another exemplary scenario of resource transfer using the input device. As shown in Figure 5, the page content displayed on the display interface 101 is an essay about "Spring is Coming". The user uses the input device 103 to slide from left to right on the left side of "Spring is Coming" in the display interface 101, thus identifying the entire content about "Spring is Coming" as the target resource. Then, the target window 107 is displayed, showing addresses 1-3. After seeing the addresses displayed in the target window 107, the user selects address 1 and address 2, meaning the user corresponding to address 1 and address 2 becomes the resource recipient of the target resource. This allows the target resource to be transferred to address 1 and address 2, facilitating the quick transfer of global page content in the display interface. The checkmark "√" indicates address selection.

[0095] In one possible implementation, when the data resource is a storage file of the electronic device and the application type of the application to which the display interface belongs belongs to a specified application, the steps for determining the target resource from the data resource of the display interface according to the second operation are as follows:

[0096] If the second operation is a click operation on a file icon, the file clicked by the click operation in the stored file is determined as the target resource.

[0097] If the data resource displayed on the display interface is a storage file stored on the electronic device and the application type of the application to which the display interface belongs is a specified application, then if the second operation is a click operation on the file icon in the display interface, it is assumed that the user has selected a file, and the file clicked by the click operation in the storage file is determined as the target resource.

[0098] Taking the user account configured on the input device as the electronic address as an example, Figure 6 shows another exemplary scenario of using the input device to realize resource transfer. As shown in Figure 6, the display interface 101 displays three storage files, namely File 1 to File 3. When the user clicks the file icon of File 1 on the display interface 101 using the input device 103, File 1 is identified as the target resource. Then, the target window 108 is displayed, which displays Address 1 to Address 3. After seeing the address displayed in the target window 108, the user selects Address 1. That is, the user corresponding to Address 1 is the resource recipient of the target resource, and the target resource is transferred to Address 1, thus realizing the quick transfer of storage files of the electronic device.

[0099] In one possible implementation, when the target function configured on the input device is a resource transfer function, and the user information corresponding to the target function includes a user account, the above-mentioned execution of the target function based on the user information includes the following steps:

[0100] If the input device triggers a second operation on the display interface, the target resource is determined from the data resources of the display interface according to the second operation;

[0101] The target resource is delivered to the user account.

[0102] The input device triggers a second operation on the display interface. In response to the second operation, a target resource is determined from the data resources displayed on the display interface. The target resource includes at least a portion of the data resources; that is, the target resource may be all or part of the data resources displayed on the display interface. The data resources displayed on the display interface include page content, storage files stored in the electronic device (e.g., images, etc.). The process for determining the target resource here is the same as the process described above and will not be repeated here.

[0103] The user information corresponding to the target function includes the user account, which can be understood as the receiving account. After the target resource is determined, the target resource is sent directly to the receiving account, realizing the quick transfer of resources. That is, the user does not need to select a receiving account to transfer resources, which reduces the user's resource transfer operations and improves the efficiency of resource transfer.

[0104] It is worth noting that the above-mentioned resource transfer is based on the premise that the resource sender's account is logged in. That is, the account that sends the resource is logged in. After the resource receiver's receiving account receives the resource, the resource receiver can see which account sent the resource.

[0105] The following describes the process by which the electronic device provided in the embodiments of this application responds to a click operation triggered by an input device on the display interface.

[0106] Electronic devices include a capacitive touchscreen, a host computer, and a controller for controlling the capacitive touchscreen.

[0107] If the input device operates on the first interface (i.e., the input device operates on the capacitive screen), after the controller acquires the capacitive image from the capacitive screen, it sends the capacitive image to the host computer. The host computer then receives the capacitive image and decodes it based on the multiple touch points included in the image to obtain the encoding of the input device. It then executes the corresponding instruction (i.e., receives the instruction to perform a click operation), thereby enabling the host computer to respond specifically to the input device and achieve a click operation response. The touch point position information in the capacitive image refers to the position information of the conductive component in the input device on the capacitive screen after the input device operates on it (i.e., the touch point coordinates).

[0108] A capacitance image, also known as a capacitance map, is an image constructed based on the capacitance change at each capacitor node in a conductive array. A capacitance image is typically a grayscale image, where each pixel corresponds to a capacitor node, and the pixel value (grayscale value) of each pixel corresponds to the magnitude of the capacitance change at that node. Furthermore, since each capacitor node corresponds to a coordinate on the capacitive touchscreen, the position of each pixel in the capacitance image is the same as the position of its corresponding capacitor node on the touchscreen. In other words, there is a one-to-one correspondence between the pixels in the capacitance image and the pixels on the touchscreen, with each pixel in the capacitance image corresponding to a coordinate on the touchscreen.

[0109] To facilitate understanding of this application, the following is a brief introduction to the application scenarios and input devices involved in this application, in conjunction with the accompanying drawings.

[0110] Referring to Figure 7, Figure 7 shows an exemplary schematic diagram of a touch response system provided in an embodiment of this application. The system includes an electronic device 31 and an input device 32. The electronic device 31 integrates a capacitive screen, which can display data such as images, videos, and text, and can also receive and respond to click operations. Multiple conductive elements 321 can be provided on the input device 32. These conductive elements 321 can not only uniquely encode the input device 32, but also enable the input device 32 to perform click operations, forming multiple touch points 311 on the capacitive screen. The electronic device 31 can decode the multiple touch points 311 to obtain a unique code corresponding to the input device 32, and execute the instruction corresponding to the input device 32 according to the code to respond to the operation triggered by the input device 32.

[0111] Referring to Figure 8, Figure 8 shows an exemplary cross-sectional view of an input device provided in an embodiment of this application. The outer contour of the input device 40 can be a cube or a cuboid, or other shapes; this embodiment does not limit this. The input device 40 has a touch end 41 and a grip end 42. Multiple conductive elements 43 are provided on the input device 40, each conductive element 43 having a portion protruding from the touch end 41. When the touch end 41 abuts against the capacitive screen, each conductive element 43 can contact the capacitive screen. A connecting portion 44 is also provided inside the input device 40. One end of the connecting portion 44 is connected to each conductive element 43, and the other end is exposed from the grip end 42, allowing the user's hand to contact the connecting portion 44 when gripping the input device 40.

[0112] As shown in Figure 8, both the conductive element 43 and the connecting part 44 are made of conductive materials. When the user indirectly performs a click operation through the input device 40, the hand remains in contact with the connecting part 44 while holding the input device. The connecting part 44 short-circuits the hand to each conductive element 43. At this time, each conductive element 43 is equivalent to a finger of the user. When the touch end 41 touches the capacitive screen, each conductive element 43 can cause a change in the capacitance of the corresponding capacitor node on the capacitive screen, forming a touch point on the capacitive screen.

[0113] For example, when encoding an input device using multiple conductive elements, multiple first conductive elements can be provided on the input device. Based on these first conductive elements, multiple encoding regions are divided on the input device, and each encoding region corresponds one-to-one with multiple code elements in the encoding of the input device. For each code element, the specific value of the code element is characterized by the capacitance change caused by a second conductive element provided in the corresponding encoding region. Both the first and second conductive elements are conductive elements that are in contact with the input.

[0114] Referring to Figure 9, which illustrates an exemplary encoding schematic diagram of an input device provided in an embodiment of this application. As shown in Figure 8, the touch terminal 41 is provided with a conductive element arrangement surface 411. N first conductive elements 431 (N is an integer greater than 2, for example, 3) and M second conductive elements 432 (M can be 0) are arranged on the conductive element arrangement surface 411. The multiple first conductive elements 431 form a preset pattern (the preset pattern can be a non-rotationally symmetric pattern), which can identify the input device as a recognizable input device. The M second conductive elements 432 are used to encode the input device. Three first conductive elements 431 can form a non-rotationally symmetric preset pattern "L". A coordinate system is constructed based on the three first conductive elements, and multiple encoding regions are divided within the coordinate system. Second conductive elements 432 are arranged within the encoding regions.

[0115] As shown in Figure 9, a rectangular coordinate system is constructed with the center point of one of the first conductive components as the origin of the coordinate system, and the two directions from the center point of the first conductive component to the center points of the other two first conductive components as the directions of the two axes of the rectangular coordinate system. Multiple adjacent coding regions are divided in the coordinate system.

[0116] Optionally, the dimensions of each conductive element (including the first and second conductive elements) can be designed so that each conductive element can form a square touch point with a side length of K (K is, for example, 3 pixels) on the capacitive screen. Based on the dimensions of the square touch point, the conductive element arrangement surface 411 is divided into 16 square regions of the same size, each square region having a side length of H, where H is greater than or equal to K. The relative distance between the center points of two adjacent regions is H, and the number of the upper left corner of each region is the region number. Regions 1, 4, and 13 are reference regions, which are used to set the first conductive elements so that the three first conductive elements form a preset shape "L".

[0117] When setting conductive components in each region, the center point of the conductive component coincides with the center point of the region. The center point of the first conductive component in region 1 can be set as the origin of the coordinate system. The direction from the center point of region 1 to the center point of the first conductive component in region 4 is the positive direction of the X-axis in the coordinate system, and the direction from the center point of region 1 to the center point of the first conductive component in region 13 is the negative direction of the Y-axis in the coordinate system. In Figure 9, the symbol X2 represents the X-axis in the constructed rectangular coordinate system, and the symbol Y2 represents the Y-axis in the constructed rectangular coordinate system.

[0118] Among them, regions 2 and 3, regions 5-12, and regions 14 and 15 are coding regions. Each coding region corresponds to a symbol in the encoding of the input device. The number in the lower right corner of each coding region is the region number of the coding region, which also represents the bit index of the coding region. The bit index is the position of the symbol corresponding to the coding region in the encoding.

[0119] When the conductive component arrangement surface 411 abuts against the capacitive touchscreen, both the first conductive component 431 and the second conductive component 432 can contact the capacitive touchscreen and form touch points on the capacitive touchscreen respectively. To avoid confusion, the touch point formed by the first conductive component 431 will be referred to as the first touch point, and the touch point formed by the second conductive component 432 will be referred to as the second touch point.

[0120] As shown in Figure 9, when a click operation is performed via the input device, each area in the conductive element arrangement surface 411 is opposite to an area in the capacitive screen. The area in the capacitive screen corresponding to the reference area (hereinafter referred to as the positioning area) has a first touch point formed by the first conductive element, and the center point of the first touch point is located at the center point of the positioning area. When a second conductive element is provided in the encoding area, the area in the capacitive screen corresponding to the encoding area (hereinafter referred to as the decoding area) has a second touch point formed by the second conductive element, and the center point of the second touch point is located at the center of the decoding area. When no second conductive element is provided in the encoding area, there is no second touch point formed by the second conductive element in the decoding area corresponding to the encoding area.

[0121] Based on the above examples, the coordinates of the encoded region in this coordinate system can be represented by the coordinates of the center point of the encoded region in the coordinate system. The coordinates of the encoded region in this coordinate system can be called the preset coordinates. Since the relative positional relationship between the encoded region and the reference region is fixed and known, the relative positional relationship between the decoded region and the positioning region is also fixed and known.

[0122] For example, the encoding of the input device can be a binary number. When the encoding area has a second conductive element, the corresponding code element of the encoding area is 1; when the encoding area does not have a second conductive element, the corresponding code element of the encoding area is 0. The decoding area corresponds one-to-one with the encoding area. Therefore, for each encoding area, when a second touch point formed by the second conductive element exists within the decoding area, the corresponding code element of the decoding area is 1; when no second touch point formed by the second conductive element exists within the decoding area, the corresponding code element of the decoding area is 0. Furthermore, since the relative positional relationship between the decoding area and the first touch point is the same as the relative positional relationship between the corresponding encoding area and the first conductive element, the decoding area and the corresponding encoding area correspond to the same bit index.

[0123] As shown in Figure 9, the conductive component arrangement surface 411 has a total of 12 coding areas. Therefore, the code of the input device is a 12-bit binary number. Coding area 1 has no second conductive component, so the first bit of the binary number is 0. Coding area 2 has a second conductive component, so the second bit of the binary number is 1, and so on. Therefore, the code of the input device shown in Figure 9 is "010111101010". It can be understood that when no second conductive component is set in any coding area, the code of the input device is "000000000000", and when a second conductive component is set in all coding areas, the code of the input device is "111111111111".

[0124] When encoding different input devices, a unique 12-bit binary number (i.e., code) can be assigned to each input device. Then, for each code element in the binary number, the corresponding encoding region is determined from 12 encoding regions based on the bit index of the code element in the binary number. When the code element is 1, a second conductive element is set in the corresponding encoding region; when the code element is 0, no second conductive element is set in the corresponding encoding region, so as to achieve unique encoding of the input device.

[0125] As shown in Figures 8 and 9, the preset pattern formed by multiple first conductive elements 431 is an "L" shape, and the relative distance between any two first conductive elements 431 is a preset distance (hereinafter referred to as the preset distance). Based on this, when a click operation is performed through the input device and multiple touch points are formed on the capacitive screen, each first touch point is located within the positioning area corresponding to the reference area. The electronic device can identify each first touch point from the multiple touch points based on the relative positional relationship between the various touch points. Here, the relative distance between two conductive elements refers to the distance between the center points of the two conductive elements, and the relative distance between two touch points refers to the distance between the center points of the two touch points.

[0126] Simultaneously, each second touch point is located within the decoding area corresponding to the encoding area. The electronic device can determine the bit index corresponding to the decoding area based on the relative positional relationship between the decoding area and multiple first touch points (i.e., positioning areas), and determine whether there is a second touch point within the decoding area. When there is a second touch point, the corresponding code element can be determined to be 1. When there is no second touch point (i.e., no second conductive element is provided), the corresponding code element can be determined to be 0. In this way, each code element in the encoding can be determined. The encoding of the input device can be obtained by combining all code elements and the bit index corresponding to each decoding area.

[0127] In practical applications, by properly setting the size of each conductive component, the size of the touch point formed when the conductive component contacts the capacitive screen can be controlled, and the conductive components can be prevented from interfering with each other. This ensures that the touch points formed by the conductive components on the capacitive screen do not interfere with each other, and each touch point can be clearly identified and distinguished by the electronic device.

[0128] It should be noted that the encoding method of the input device can be as shown in Figure 9, or other methods can be used, as long as it can uniquely identify the input device. The encoding method of the input device can include, but is not limited to, the examples mentioned above.

[0129] The electronic device responds to a click operation triggered by an input device on the first interface by the following steps:

[0130] S210: The controller acquires the capacitance image from the capacitive touchscreen and sends the capacitance image to the host.

[0131] In one implementation, after acquiring the capacitance image of the capacitive touchscreen, the controller can directly send the complete capacitance image to the host. For example, during operation, the electronic device can periodically scan the conductive element array in the capacitive touchscreen. During each scan, the capacitance change at each capacitor node in the conductive element array can be acquired, and a capacitance image can be drawn based on the capacitance change at each capacitor node. After acquiring the capacitance image each time, the controller can directly send the capacitance image to the host.

[0132] The controller and the host can communicate via the USB Video Class (UVC) protocol. When communicating with the host via the UVC protocol, the controller can continuously send each captured capacitance image to the host.

[0133] S220: The host receives the capacitive image, decodes it based on multiple touch points included in the capacitive image to obtain the first target code of the input device, and executes the instruction corresponding to the first target code.

[0134] For example, the host receives a complete capacitance image sent by the controller. After receiving the complete capacitance image, the host can determine whether there are multiple touch points in the capacitance image. If there are multiple touch points in the capacitance image, the host can decode the multiple touch points. Since the multiple conductive elements on the input device correspond one-to-one with the multiple touch points in the capacitance image, decoding the multiple touch points is equivalent to decoding the multiple conductive elements.

[0135] Referring to Figure 10, Figure 10 shows a schematic diagram of a partial capacitance image when a click operation is triggered by the input device shown in Figure 9. In this capacitance image 70, the pixel value of each pixel represents the capacitance change at the corresponding capacitance node. The larger the pixel value, the greater the capacitance change at the corresponding capacitance node, and the higher the pixel brightness. Referring to Figure 9, when a click operation is performed using the input device shown in Figure 9, each conductive element within the conductive element arrangement surface 411 contacts the capacitive screen. Each conductive element can cause a change in the capacitance change at the capacitance node at the contact position. Each first conductive element 431 can form a first touch point 71 in the capacitance image 70, and each second conductive element 432 can form a second touch point 72 in the capacitance image 70.

[0136] When the capacitance image includes multiple touch points as shown in Figure 10, since the multiple touch points shown in Figure 10 correspond one-to-one with the multiple conductive elements shown in Figure 9, decoding the multiple touch points in Figure 10 is equivalent to decoding the multiple conductive elements shown in Figure 9. The decoded code is the first target code of the input device shown in Figure 9.

[0137] In capacitive image, touch points refer to touch points on capacitive screens. Touch points are also called touch areas. A touch area typically consists of one or more pixels with pixel values ​​greater than a preset threshold. A pixel value greater than the preset threshold indicates that the capacitance at the corresponding capacitive node has changed significantly due to the presence of the input device. Generally, the pixel located at the center of the touch area (hereinafter referred to as the center pixel) has the largest pixel value, and the coordinates of the center pixel are usually the coordinates of the touch point on the capacitive screen.

[0138] In one implementation, when the controller sends a complete capacitance image to the host, the host can identify the capacitance image using a decoding model to determine the first target code of the input device. A neural network model can be pre-trained so that the trained neural network model (i.e., the decoding model) can identify the first target code from the capacitance image.

[0139] When training a neural network model, multiple training samples can be pre-acquired, each corresponding to a specific input device. Each training sample includes a sample image and a sample label for the corresponding input device. The sample image is a capacitance image of the input device when it performs a click operation, and the sample label is the first target code of the input device. Taking the input device shown in Figure 9 as an example, a capacitance image of the input device performing a click operation can be pre-acquired, used as a sample image, and the corresponding first target code "010111101010" can be used as the sample label. Combining the sample image and the sample label yields a training sample. Similarly, one training sample can be obtained for each input device. When there are a large number of input devices, a large number of training samples can be obtained.

[0140] Simultaneously, an initial model can be constructed, which refers to an untrained neural network model for image recognition. Then, the initial model can be trained using the acquired training samples. During training, for each training sample, the sample image from the training sample can be input into the initial model to obtain the decoding result output by the initial model. Based on the deviation between the decoding result and the sample labels in the training samples, the model parameters of the initial model are adjusted. This process is repeated, training the initial model with a large number of training samples. When the accuracy of the decoding result output by the initial model reaches a preset accuracy, training stops, and the initial model is used as the final decoding model.

[0141] For example, a decoding model can be deployed in an electronic device, which can input the capacitance image into the decoding model each time it acquires it. When the capacitance image includes multiple touch points formed by multiple conductive elements on the input device, a decoding result output by the decoding model can be obtained, which is the first target code of the input device.

[0142] For example, the decoding model can be deployed on a server. After each acquisition of a capacitance image, the electronic device can upload the capacitance image to the server. Upon receiving the capacitance image, the server can input the capacitance image into the decoding model. When the capacitance image includes multiple touch points formed by multiple conductive parts on the input device, a first target code output by the decoding model can be obtained. The server can then send the first target code to the electronic device, thereby achieving decoding and obtaining the target code of the input device.

[0143] It is understandable that during the process of obtaining the first target code through the decoding model, when the capacitive image does not include multiple touch points formed by multiple conductive parts on the input device, the decoding result output by the decoding model does not contain the first target code. At this time, it can be determined that no input device performed a click operation, or the input device is an ordinary input device (such as a finger), and it is not necessary to decode to determine the first target code of the input device.

[0144] In another implementation, the input device can be decoded using template matching to determine a first target code for the input device based on the capacitance image. For example, for each input device, a capacitance image and the input device's code can be pre-obtained, using the capacitance image as an image template and the input device's code as a preset code corresponding to the image template. Thus, for multiple input devices, multiple image templates and preset codes corresponding to each image template can be obtained.

[0145] After acquiring a capacitance image, the electronic device can sequentially calculate the similarity between the capacitance image and each image template. When the similarity between a certain image template and the capacitance image is greater than a preset similarity, the image template can be determined as the target image template, and the preset code corresponding to the target image template is used as the first target code for inputting into the device. The preset similarity can be a large value, such as 95%, 98%, 99%, or 100%.

[0146] In the process of determining the first target code through template matching, when the capacitive image does not include multiple touch points formed by multiple conductive parts on the input device, the target image template will not exist among the multiple image templates. In this case, it can be determined that no input device performed a click operation, and there is no need to decode to determine the first target code of the input device.

[0147] In another implementation, after acquiring the capacitance image, the host first determines whether the capacitance image includes N first touch points that constitute a preset non-rotationally symmetric shape. If so, a coordinate system is constructed in the capacitance image based on the N first touch points, and multiple decoding regions are determined from the constructed coordinate system based on multiple preset coordinates. Then, for each decoding region, the code element corresponding to the decoding region is determined according to whether there are touch points in the decoding region, and the code elements corresponding to the multiple decoding regions are combined according to the bit indices corresponding to the multiple decoding regions to obtain the first target code.

[0148] As shown in Figure 9, in the conductive component arrangement surface 411, the side length of each square region is H. The size of the square region can be greater than or equal to the size of the first touch point and the second touch point. The distance between the center point of region 1 and the center point of region 4 is 3H, the distance between the center point of region 1 and the center point of region 13 is 3H, and the distance between the center point of region 4 and the center point of region 13 is...

[0149] After acquiring the capacitance image, the host computer can locate each pixel in the capacitance image whose pixel value is greater than a preset threshold. For each pixel whose pixel value is greater than the preset threshold, a square area with a side length of 3 pixels (both the first and second touch points are square touch points with a side length of 3 pixels, i.e., K) is defined centered on that pixel. If the pixel values ​​of other pixels are all greater than the preset threshold and less than the pixel value of that pixel, then the square area is determined to be either the first or second touch point. Next, for each pixel within the square area, the product between the pixel value and its coordinates is calculated, resulting in a product for each pixel. All product results are summed to obtain a first summation result, and the pixel values ​​of all pixels within the square area are summed to obtain a second summation result. Dividing the first summation result by the second summation result yields the center coordinates of the square area, which are the center coordinates of the touch point. In this way, all touch points in the capacitance image and the center coordinates of each touch point can be determined.

[0150] For example, as shown in Figure 9, when constructing a coordinate system based on three first conductive elements, the center point of the first conductive element in region 1 is the origin, the direction from the center point of the first conductive element in region 1 to the center point of the first conductive element in region 4 is the positive direction of the X-axis in the coordinate system, and the direction from the center point of the first conductive element in region 1 to the center point of the first conductive element in region 13 is the negative direction of the Y-axis in the coordinate system. Multiple preset coordinates represent the coordinates of the center points of multiple encoding regions in the coordinate system. These preset coordinates correspond one-to-one with the multiple encoding regions, and the multiple encoding regions correspond one-to-one with the multiple decoding regions. Therefore, the multiple preset coordinates correspond one-to-one with the multiple decoding regions.

[0151] Based on the relative distances between the regions, it can be determined that the relative distance between the first touch point corresponding to region 1 and the first touch point corresponding to region 4 is approximately or equal to 3H, the relative distance between the first touch point corresponding to region 1 and the first touch point corresponding to region 13 is approximately or equal to 3H, and the relative distance between the first touch point corresponding to region 4 and the first touch point corresponding to region 13 is approximately or equal to 3H.

[0152] After determining that there are multiple touch points in the capacitance image using the above method, if the relative distance between two touch points is... These two touch points are then identified as the two first touch points corresponding to regions 4 and 13, respectively. If the relative distance between any touch point and both of these first touch points is 3H, then that touch point can be identified as the first touch point corresponding to region 1.

[0153] Referring to Figure 11, Figure 11 shows a schematic diagram of the construction of a coordinate system provided in an embodiment of this application. In the capacitance image 800 shown in Figure 11, each dashed box marked with a region number in the lower right corner represents a decoding region, and the bit index corresponding to the decoding region is consistent with that of the encoding region. Referring to Figure 9, touch point 81 is the first touch point formed by the first conductive element in region 1, touch point 82 is the first touch point formed by the first conductive element in region 4, and touch point 83 is the first touch point formed by the first conductive element in region 13.

[0154] After determining that touch point 81 is the first touch point corresponding to region 1, the center of touch point 81 can be used as the origin of the coordinate system. For touch points 82 and 83, a first vector 84 pointing from the center of touch point 81 to the center of touch point 82, and a second vector 85 pointing from the center of touch point 81 to the center of touch point 83 are determined. If the cross product (also called the cross product) between the first vector 84 and the second vector 85 is negative, then the first vector 84 is located on the X2 axis of the coordinate system, and the second vector 85 is located on the Y2 axis of the coordinate system. Therefore, touch point 82 can be determined as the first touch point corresponding to region 4, and touch point 83 as the first touch point corresponding to region 13.

[0155] Next, the direction from the center point of touch point 81 to the center point of touch point 82 can be determined as the X2 axis direction in the coordinate system, and the direction from the center point of touch point 81 to the center point of touch point 83 can be determined as the Y2 axis direction in the coordinate system. This allows the construction of a Cartesian coordinate system composed of the X2 and Y2 axes. Simultaneously, the angle α between the X1 and X2 axes in the original coordinate system of the capacitive image can be calculated and determined.

[0156] It can be understood that after determining the first vector 84 and the second vector 85, if the cross product between the first vector 84 and the second vector 85 is determined to be positive, then the first vector 84 can be determined to be located on the Y2 axis of the coordinate system, and the second vector 85 can be determined to be located on the X2 axis of the coordinate system. Therefore, touch point 82 can be determined to be the first touch point corresponding to region 13, and touch point 83 can be determined to be the first touch point corresponding to region 4. Subsequently, the direction from the center point of touch point 81 to the center point of touch point 83 can be determined as the X2 axis direction of the coordinate system, and the direction from the center point of touch point 81 to the center point of touch point 82 can be determined as the Y2 axis direction of the coordinate system.

[0157] As shown in Figure 9, each encoded region corresponds to a decoded region, and the preset coordinates of the encoded region are the same as the preset coordinates of the corresponding decoded region. In determining the decoded region based on the coordinate system, after the coordinate system is constructed, the preset coordinates of each encoded region can be obtained. Based on these preset coordinates, the position of the center point of the corresponding decoded region is determined from the coordinate system. Then, a square region with a side length of H centered on the center point is determined as the decoded region. The angle between two opposite sides of this square region and the X1 axis is angle α, and the other two sides are perpendicular to the line segment between touch points 81 and 82. Similarly, each other decoded region can be determined.

[0158] Taking decoding regions 1 and 2 as examples, if there is no second touch point in decoding region 1, then the code element corresponding to decoding region 1 can be determined to be 0, and the bit index corresponding to this code element can be determined to be 1. If there is a second touch point 86 in decoding region 2, then the code element corresponding to decoding region 2 can be determined to be 1, and the bit index corresponding to this code element can be determined to be 2. Thus, the first and second bits in the first target code are determined to be 0 and 1, respectively. Similarly, each code element and its corresponding index can be determined. By combining the code elements and bit indices corresponding to all decoding regions, the target code of the input device can be obtained.

[0159] It should be understood that the above are merely illustrative examples, and the specific methods for obtaining the first target code based on capacitance image decoding may include, but are not limited to, the examples above.

[0160] In this embodiment, the controller in the electronic device acquires the capacitive image of the capacitive screen and sends the capacitive image to the host. After receiving the capacitive image, the host decodes the multiple touch points included in the capacitive image to obtain the first target code of the input device and executes the instruction corresponding to the first target code. This not only enables the electronic device to respond to the input device that performs the click operation, but also expands the application scenarios of the capacitive screen and meets the needs of users in some specific scenarios.

[0161] Optionally, the step of sending a capacitive image to the host may include: extracting a region image including multiple touch points from the capacitive image; sending the region image to the host so that the host can decode the region image to obtain a first target code.

[0162] In one implementation, when sending a capacitance image to the host, the controller can send only the area image of the capacitance image that includes multiple touch points to the host, thereby reducing the amount of data transmitted. As shown in FIG11, when a click operation is performed through the input device shown in FIG9, multiple touch points can be formed in the capacitance image 800. The multiple touch points include a first touch point and a second touch point, and there may also be other touch points.

[0163] When extracting a region image 80 containing multiple touch points from the capacitive image 800, the upper-left corner coordinate A and lower-right corner coordinate B of the region image 80 can first be determined from the multiple touch points. The x-coordinate of the upper-left corner coordinate A is the minimum x-coordinate among all the x-coordinates of the multiple touch points plus a first preset offset (the first preset offset is a negative value), and the y-coordinate is the maximum y-coordinate among all the y-coordinates of the multiple touch points plus a second preset offset (the second preset offset is a positive value); the x-coordinate of the lower-right corner coordinate B is the maximum x-coordinate among all the x-coordinates of the multiple touch points plus a third preset offset (the third preset offset is a positive value), and the y-coordinate is the minimum y-coordinate among all the y-coordinates of the multiple touch points plus a fourth preset offset (the fourth preset offset is a negative value).

[0164] After determining the coordinates A of the upper left corner and B of the lower right corner of the region image 80, the controller can extract a rectangular region located between the upper left corner coordinates A and the lower right corner coordinates B from the capacitance image 800 to obtain the region image 80. After obtaining the region image 80, the controller can send the region image 80 to the host.

[0165] Correspondingly, the host can decode the multiple touch points included in the region image 80 to obtain the first target code of the input device. In the process of obtaining the first target code based on the region image 80, the host can also use the decoding method described in the aforementioned embodiments to decode the multiple touch points in the region image 80 to obtain the first target code.

[0166] In practical applications, the first preset offset, the second preset offset, the third preset offset, and the fourth preset offset can be reasonably set so that the controller can capture an area image including all the first touch points and the second touch points from the capacitive image regardless of how the input device rotates on the capacitive screen.

[0167] In this embodiment of the application, during the process of sending a capacitance image to the host, the controller extracts a region image from the capacitance image and sends the region image to the host, which can reduce the amount of data during the transmission process and improve the data transmission efficiency.

[0168] Optionally, the step of sending a region image to the host may include:

[0169] The pixel value of the first pixel is modified to one of 1 and 0, and the pixel value of the second pixel is modified to the other of 1 and 0, so as to obtain a region image in the form of a binary map;

[0170] Send a region image in binary form to the host so that the host can decode the region image in binary form to obtain the first target code.

[0171] In this context, the first pixel refers to a pixel among multiple touch points included in the region image, and the second pixel refers to all other pixels except the first pixel. As shown in Figure 10, when the pixel value of a pixel in a touch point is greater than or equal to a preset threshold, the first pixel refers to the pixel in the region image whose pixel value is greater than or equal to the preset threshold, and the second pixel refers to the pixel in the region image whose pixel value is less than the preset threshold.

[0172] For example, before sending the region image to the host, the controller can iterate through each pixel in the region image. If the pixel value (i.e., grayscale value) is greater than or equal to a preset threshold, the pixel is determined to be a pixel within the touch point, and its pixel value can be modified to 1. If the pixel value is less than the preset threshold, the pixel is determined to be a pixel outside the touch point, and its pixel value can be modified to 0. At this point, the grayscale region image can be modified into a binary region image. The controller can then send the binary region image to the host.

[0173] Correspondingly, when decoding a region image based on a binary image, the host can use template matching to decode and obtain the first target code, or it can use a decoding model to identify the first target code from the region image, or it can decode and obtain the first target code by constructing a coordinate system. Specifically, when decoding by constructing a coordinate system, the host can identify pixels with a value of 1 in the binary region image as touch points, and pixels with a value of 0 as non-touch points. Touch points in the region image are determined based on pixels with a value of 1, and then the region image is decoded to obtain the first target code.

[0174] In this embodiment of the application, during the process of sending a region image to the host, the controller first converts the region image into a binary image and then sends the binary image to the host, which can reduce the amount of data during the transmission process and improve data transmission efficiency.

[0175] Optionally, when sending a complete capacitance image to the host, the controller can also convert the capacitance image into a binary capacitance image and send the binary capacitance image to the host. Correspondingly, the host can decode the input device based on the binary capacitance image to obtain the first target code of the input device.

[0176] Optionally, before sending the region image to the host, the method may further include:

[0177] Based on the capacitance image, determine the reference coordinates of the reference point of the input device in the capacitive screen;

[0178] Insert reference coordinates at a preset position in the region image so that the host can extract and use the reference coordinates from the preset position in the region image.

[0179] For example, when the input device is encoded using the encoding method shown in FIG9, the reference point on the input device can be the center point of the conductive element arrangement surface 411, and the reference coordinates are the coordinates of the center point of the conductive element arrangement surface 411 on the capacitive screen (i.e., the capacitive image). Of course, the reference point can also be located at other positions on the input device.

[0180] For example, after acquiring the capacitance image, the controller can determine N first touch points from the capacitance image using the aforementioned method, and construct a coordinate system based on the N first touch points. After constructing the coordinate system, a center point C can be determined from this coordinate system. The coordinates of the center point C in this coordinate system are preset (1.5H, -1.5H), and the coordinates (1.5H, -1.5H) are the coordinates of the center point of the conductive component arrangement surface 411 in the coordinate system formed by the X2 axis and the Y2 axis. Then, the controller can determine the coordinates of the center point C in the original coordinate system of the capacitance image, which are the reference coordinates.

[0181] Before sending a region image to the host, the controller can insert reference coordinates at the end (i.e., a preset position) of all data included in the region image. Alternatively, before sending a binary region image to the host, reference coordinates can be inserted at the beginning (i.e., a preset position) of all data included in the binary region image. Correspondingly, after receiving the region image, the host can extract the reference coordinates from the preset positions (beginning or end) of all data included in the region image.

[0182] The host computer can determine the position of a reference point on the input device within the capacitive touchscreen based on reference coordinates. It can then execute corresponding instructions from the input device at that position, such as displaying images or text corresponding to the input device. In practical applications, the controller can also insert reference coordinates at preset positions within the capacitive touchscreen when sending a complete capacitive image to the host computer.

[0183] It should be understood that the preset position may include, but is not limited to, the beginning or the end, and the method of using the reference coordinates may include, but is not limited to, the examples above.

[0184] In this embodiment of the application, before sending the area image to the host, the reference coordinates of multiple touch points are inserted at a preset position in the area image, which makes it easier for the host to determine the actual position of the input device in the capacitive screen through the reference coordinates.

[0185] Optionally, the step of cropping an image of a region including multiple touch points from a capacitance image may include:

[0186] When a capacitive image includes multiple sets of multiple touch points, multiple region images are extracted from the capacitive image; wherein, each of the multiple region images corresponds one-to-one with each of the multiple sets of multiple touch points.

[0187] In one embodiment, during the process of cropping a region image from a capacitance image, the controller can determine the number of input devices present on the capacitive screen based on the capacitance image. When it is determined that there are multiple input devices on the capacitive screen, a region image corresponding to each input device can be cropped from the capacitance image. Each region image includes a set of touch points formed by the corresponding input device. The set of touch points includes multiple touch points formed by multiple conductive elements on the input device.

[0188] For example, when encoding the input device using the encoding method shown in Figure 9, after acquiring the capacitance image, the controller first uses the above method to detect and determine each group of first touch points included in the capacitance image, with each group of first touch points corresponding to one input device. For each group of first touch points, a region image corresponding to each input device can be extracted to obtain a corresponding region image.

[0189] As shown in Figure 11, for each group of first touch points, a coordinate system is constructed based on the first touch point, and the reference coordinates of the input device (i.e., center point C) are determined from the coordinate system. Then, a square region is determined from the capacitance image based on the center point C. The center point of the square region coincides with the center point C. The bottom and top edges of the square region are parallel to the X1 axis in the original coordinate system of the capacitance image, and the two sides of the square region are parallel to the Y1 axis in the original coordinate system of the capacitance image. Furthermore, the side length of the square region is greater than or equal to the length of the diagonal of the conductive component arrangement surface 411. In this way, a region image including multiple touch points corresponding to the input device can be captured.

[0190] Similarly, when the controller sends the area image corresponding to each input device to the host, it can insert the reference coordinates of the reference point of the input device at a preset position in the area image.

[0191] The above are merely illustrative examples. Methods for extracting the region image corresponding to each input device from the capacitance image may include, but are not limited to, the examples above. This embodiment does not limit these methods.

[0192] In this embodiment of the application, when the capacitive image includes multiple sets of touch points of multiple input devices, the controller captures the area image corresponding to each input device, which enables the host to decode the first target code of each input device based on the area image corresponding to each input device, and execute the instruction corresponding to each input device based on the first target code of each input device to realize the response to each input device.

[0193] Optionally, the step of sending a capacitive image to the host may include: determining the coordinates of each touch point in the capacitive image to obtain multiple touch point coordinates; and sending the multiple touch point coordinates to the host so that the host can decode the first target code based on the multiple touch point coordinates.

[0194] For example, after acquiring the capacitive image, the controller can determine each first touch point and each second touch point included in the capacitive image using the aforementioned method, and determine the coordinates of each first touch point in the capacitive image (i.e., touch point coordinates), and the coordinates of each second touch point in the capacitive image (i.e., touch point coordinates). Then, an array can be created that includes the touch point coordinates of each first touch point and the touch point coordinates of each second touch point, and then the array can be sent to the host.

[0195] Correspondingly, after receiving the array, the host can construct a coordinate system based on the touch point coordinates of each first touch point included in the array, and determine each decoding region from the coordinate system based on the preset coordinates corresponding to each decoding region. Then, for each decoding region, if the touch point coordinates of a second touch point are located within that decoding region, the corresponding code element for that decoding region is determined to be 1; otherwise, if no touch point coordinates are located within that decoding region, the corresponding code element is determined to be 0. In this way, each code element included in the first target encoding of the input device can be determined, thus achieving decoding of the input device.

[0196] In this embodiment of the application, when sending a capacitance image to the host, the coordinates of multiple touch points are extracted from the capacitance image and sent to the host to avoid sending image data to the host, which can reduce the amount of data sent and improve the data sending efficiency.

[0197] Optionally, during the process of sending region images to the host, the controller can also configure a unique identifier for each region image. For example, after acquiring a capacitance image, the controller can assign a unique identifier to each region image of an input device captured from the capacitance image and insert the identifier at a preset position in the region image. Correspondingly, after receiving a region image, the host can extract the identifier from the preset position in the region image and distinguish between multiple received region images based on the identifier.

[0198] Optionally, the method may further include: determining the reference coordinates of the reference point of the input device in the capacitive screen based on the capacitive image, and / or determining the rotation angle of the input device in the capacitive screen; and sending the rotation angle and / or reference coordinates to the host.

[0199] The rotation angle of the input device in the capacitive screen can be the deflection angle between the baseline of the input device and the X-axis in the original coordinate system of the capacitive image. As shown in Figure 11, when the input device is encoded using the encoding method shown in Figure 9, the baseline of the input device can be the X2 axis of the constructed coordinate system, and the rotation angle is the deflection angle α between the X2 axis and X1.

[0200] As shown in Figure 11, after acquiring the capacitive image, the controller can determine the touch point coordinates of each touch point from the capacitive image. Simultaneously, it can determine N first touch points from multiple touch points, construct a coordinate system based on these N first touch points in the capacitive image, and then determine the angle α between the X2 axis of the constructed coordinate system and the X1 axis of the original coordinate system of the capacitive image. This angle α is then defined as the rotation angle of the input device within the capacitive screen.

[0201] For example, when sending an array of touch point coordinates of multiple touch points to the host, a rotation angle can be inserted at the first specified position of the array to send the rotation angle to the host. Of course, the controller can also send the rotation angle to the host individually.

[0202] Furthermore, when sending an array of touch point coordinates from multiple touch points to the host, the controller can also insert reference coordinates at a second specified position in the array to send reference coordinates to the host. Of course, the controller can also send reference coordinates to the host independently.

[0203] The host computer can execute commands corresponding to the input device based on reference coordinates and / or rotation angle. For example, when displaying an object corresponding to the input device, the host computer can first determine the reference coordinates from the capacitive screen and display the object at the reference coordinates. Furthermore, during the display of the object, the rotation angle of the object can be controlled based on the rotation angle. Specific methods of using reference coordinates and rotation angle may include, but are not limited to, the examples above.

[0204] In this embodiment, the controller determines the reference coordinates and / or rotation angle of the input device in the capacitive screen based on the capacitive image, and sends the rotation angle and / or reference coordinates to the host, which facilitates the host to execute the corresponding instructions of the input device based on the rotation angle and / or reference coordinates.

[0205] Optionally, the step of sending a capacitive image to the host may include: decoding a first target code based on multiple touch points included in the capacitive image; and sending the first target code to the host.

[0206] In one implementation, after acquiring the capacitance image, the controller can directly decode the multiple touch points included in the capacitance image to obtain the first target code of the input device, and then directly send the first target code to the host. Correspondingly, after receiving the first target code, the host can directly execute the instruction corresponding to the first target code to realize the response to the input device. The process by which the controller determines the first target code based on the capacitance image can refer to the process by which the host determines the first target code based on the capacitance image, and will not be described in detail here.

[0207] After acquiring the capacitive image, the controller can also determine the reference coordinates of the reference point of the input device in the capacitive screen and / or determine the rotation angle of the input device in the capacitive screen based on the capacitive image. During the process of sending the first target code to the host, the controller can simultaneously send the first target code, reference coordinates and rotation angle to the host.

[0208] In this embodiment, the controller obtains the first target code of the input device based on capacitance image recognition and directly sends the first target code to the host, which can reduce the amount of data transmission between the controller and the host and improve data transmission efficiency.

[0209] In this configuration, upon receiving a region image, the host can determine the rotation angle based on the region image when needed. Alternatively, the controller can determine the rotation angle based on the capacitance image, insert the rotation angle at a preset position in the region image, and the host can extract the rotation angle from the preset position in the region image after receiving it.

[0210] The process of an electronic device responding to a sliding operation triggered by an input device on the display interface requires obtaining a second target code from the input device. This second target code consists of a first target code and a sliding identifier. The sliding identifier indicates that a sliding operation has occurred when the input device is interacting with the display interface. This can be determined by examining two capacitance images taken at adjacent time points. For example, comparing the position of the touch point in the capacitance image at time t with that at time t+1, if the positions of the touch points at time t and t+1 are different and the distance between them is greater than a preset distance, then it is considered that a sliding operation has occurred when the input device is interacting with the display interface. Thus, the second target code can be obtained from the first target code and the sliding identifier. The host executes the instruction corresponding to the second target code (i.e., receives the instruction to perform the sliding operation), enabling the host to respond specifically to the input device and thus achieve the sliding operation response.

[0211] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0212] Figure 12 shows a schematic diagram of an interactive device provided in an embodiment of this application. As shown in Figure 12, the interactive device 1200 is applied to an electronic device with a capacitive screen, and the interactive device 1200 includes:

[0213] The first determining module 1210 is used to determine the device identifier of the input device when the input device is applied to the display interface of the capacitive screen.

[0214] The second determining module 1220 is used to determine the target function of the input device configuration based on the device identifier;

[0215] The third determining module 1230 is used to obtain user information corresponding to the target function in the input device;

[0216] Function execution module 1240 is used to execute target functions based on user information.

[0217] In one possible implementation, if the target function is a login function, the user information includes authentication information; the function execution module 1240 includes:

[0218] The first execution unit is used to log in to the application to which the display interface belongs based on the authentication information if the input device triggers a first operation on the display interface.

[0219] In one possible implementation, if the input device triggers a first operation on the display interface, the first execution unit is specifically used to determine whether the input device is acting on a preset area of ​​the display interface; if so, it logs into the application to which the display interface belongs based on the authentication information.

[0220] In one possible implementation, if the target function is a resource transfer function, the user information includes the user account, and the function execution module 1240 includes:

[0221] The first resource determination unit is used to determine the target resource from the data resources of the display interface according to the second operation if the input device triggers a second operation on the display interface.

[0222] A window display unit is used to display a target window; wherein, the target window includes at least one user account, and the user account in the target window is the receiving account of the target resource;

[0223] The first resource transfer unit is used to transfer the target resource to the user account selected in the selection operation in response to the user account selection operation in the target window.

[0224] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, the first resource determination unit includes:

[0225] The first determining subunit is used to determine the local content clicked by the second operation as the target resource if the second operation is a click operation on a local part of the page content.

[0226] In one possible implementation, when the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, the first resource determination unit includes:

[0227] The second determining subunit is used to determine the global page content of the display interface as the target resource if the second operation is a sliding operation applied to any area of ​​the display interface.

[0228] In one possible implementation, when the data resource is a storage file of the electronic device and the application type of the application to which the display interface belongs belongs to a specified application, the resource determination unit includes:

[0229] The third determining subunit is used to determine the file clicked by the click operation in the stored file as the target resource if the second operation is a click operation on a file icon.

[0230] In one possible implementation, if the target function is a resource transfer function, the user information includes the user account, and the function execution module 1240 includes:

[0231] The second resource determination unit is used to determine the target resource from the data resources of the display interface according to the second operation if the input device triggers a second operation on the display interface.

[0232] The second resource delivery unit is used to deliver the target resource to the user account.

[0233] It should be noted that the interactive device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the interactive method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the interactive device and interactive method embodiments provided in the above embodiments belong to the same concept. Therefore, for details not disclosed in the device embodiments of this application, please refer to the above-described interactive method embodiments of this application, which will not be repeated here.

[0234] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0235] Figure 13 shows a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 13, the electronic device 1300 includes a memory 1301 and a processor 1302. The memory 1301 stores executable program code 13011, and the processor 1302 is used to call and execute the executable program code 13011 to perform an interactive method.

[0236] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each module can correspond to a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0237] When each functional module is divided according to its corresponding function, the electronic device may include: a first determining module, a second determining module, a third determining module, a function execution module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0238] The electronic device provided in this embodiment is used to execute the above-described interaction method, and therefore can achieve the same effect as the above-described implementation method.

[0239] When using integrated units, the electronic device may include a processing module and a storage module. The processing module is used to control and manage the operation of the electronic device. The storage module is used to support the execution of relevant program code and data by the electronic device.

[0240] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0241] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the aforementioned related method steps to implement an interactive method in the above embodiment.

[0242] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement an interactive method as described in the above embodiment.

[0243] In addition, the electronic device provided in the embodiments of this application may specifically be a chip, component or module. The electronic device may include a connected processor and a memory. The memory is used to store instructions. When the electronic device is running, the processor may call and execute the instructions to make the chip execute an interactive method in the above embodiments.

[0244] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding interaction method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding interaction method provided above, and will not be repeated here.

[0245] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0246] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0247] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An interaction method, wherein, The interaction method, applied to electronic devices with capacitive touchscreens, includes: When the input device operates on the display interface of the capacitive screen, the device identifier of the input device is determined; The target function configured for the input device is determined based on the device identifier; Obtain the user information corresponding to the target function in the input device; The target function is executed based on the user information.

2. The interaction method according to claim 1, wherein, If the target function is a login function, the user information includes authentication information; The execution of the target function based on the user information includes: If the input device triggers a first operation on the display interface, the user logs into the application to which the display interface belongs based on the authentication information.

3. The interaction method according to claim 2, wherein, If the input device triggers a first operation on the display interface, logging into the application to which the display interface belongs based on the authentication information includes: If the input device triggers a first operation on the display interface, determine whether the input device operates on a preset area of ​​the display interface; If so, log in to the application to which the display interface belongs based on the authentication information.

4. The interaction method according to claim 1, wherein, If the target function is a resource transfer function, and the user information includes a user account, then executing the target function based on the user information includes: If the input device triggers a second operation on the display interface, the target resource is determined from the data resources of the display interface according to the second operation; Display the target window; wherein the target window includes at least one user account, and the user account in the target window is the receiving account of the target resource; In response to a user account selection operation in the target window, the target resource is passed to the user account selected in the selection operation.

5. The interaction method according to claim 4, wherein, When the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, determining the target resource from the data resource of the display interface according to the second operation includes: If the second operation is a click operation on a local part of the page content, the local part of the page content clicked by the click operation is determined as the target resource.

6. The interaction method according to claim 4, wherein, When the data resource is page content and the application type of the application to which the display interface belongs is a non-specified application, determining the target resource from the data resource of the display interface according to the second operation includes: If the second operation is a sliding operation applied to any area of ​​the display interface, the global page content of the display interface is determined as the target resource.

7. The interaction method according to claim 4, wherein, When the data resource is a storage file of the electronic device and the application type of the application to which the display interface belongs belongs to a specified application, determining the target resource from the data resource of the display interface according to the second operation includes: If the second operation is a click operation on a file icon, the file clicked by the click operation in the stored file is determined as the target resource.

8. The interaction method according to claim 1, wherein, If the target function is a resource transfer function, and the user information includes a user account, then executing the target function based on the user information includes: If the input device triggers a second operation on the display interface, the target resource is determined from the data resources of the display interface according to the second operation; The target resource is transferred to the user account.

9. An interactive device, wherein, An interactive device for use in electronic devices with capacitive touchscreens includes: The first determining module is used to determine the device identifier of the input device when the input device is applied to the display interface of the capacitive screen. The second determining module is used to determine the target function configured by the input device based on the device identifier; The third determining module is used to obtain user information corresponding to the target function in the input device; The function execution module is used to execute the target function based on the user information.

10. An electronic device, wherein, The electronic device includes: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the electronic device to perform the interaction method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program that, when executed, implements the interaction method as described in any one of claims 1 to 8.