Touch detection method and related equipment

By calculating the directional angle difference of the touch operation, it is determined whether it is a false touch, which solves the problem of false operation caused by the user accidentally touching the touchpad and improves the user experience.

CN118210392BActive Publication Date: 2025-09-30HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211617228.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2025-09-30
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

When using electronic devices, users may accidentally touch the touchpad, which may lead to erroneous operations and affect the user experience.

Method used

By collecting the touch area of ​​the touch operation on the touchpad, the difference between the current direction angle and the historical direction angle is calculated. If the difference is less than the threshold, the preset function is executed to avoid false touches.

Benefits of technology

Effectively prevent accidental touches, avoid incorrect operations, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118210392B_ABST
    Figure CN118210392B_ABST
Patent Text Reader

Abstract

The present application provides a touch detection method and related equipment, the method comprising: in response to a user's touch operation on a touchpad, collecting a touch area generated by the touch operation on the touchpad; calculating a current direction angle corresponding to the touch operation based on the touch area; calculating the difference between the current direction angle and a historical direction angle corresponding to at least one previous touch operation to obtain at least one first direction angle difference; and, if the at least one first direction angle difference is less than or equal to a first threshold, executing a corresponding preset function based on the touch operation. In embodiments of the present application, when the difference in direction angle between the current touch operation and the historical touch operation is small, executing the function corresponding to the current touch operation can prevent users from accidentally touching the touchpad and effectively improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart terminal technology, and in particular to a touch detection method and related equipment. Background Art

[0002] The touchpad is an important medium for users to interact with electronic devices such as laptops and tablets. Users can simulate the functions of a mouse by clicking, pressing, and sliding the touchpad with their fingers. However, when using electronic devices, users are prone to accidentally touching the touchpad, which in turn leads to incorrect operations. For example, to facilitate user input operations, the touchpad is usually located near the keyboard and at a relatively close distance. Therefore, due to the relative position relationship between the keyboard and the touchpad, when the user's fingers touch the keyboard, the palm or the side of the finger often touches the touchpad, causing accidental touches on the touchpad, thereby affecting the user's experience. Summary of the Invention

[0003] In view of the above, it is necessary to provide a touch detection method and related equipment to solve the technical problem that users easily touch the touchpad by mistake.

[0004] In a first aspect, the present application provides a touch detection method, which includes: in response to a user's touch operation on a touch pad, collecting a touch area generated by the touch operation on the touch pad; calculating a current direction angle corresponding to the touch operation based on the touch area; calculating a difference between the current direction angle and a historical direction angle corresponding to at least one historical touch operation to obtain at least one first direction angle difference; if the at least one first direction angle difference is less than or equal to a first threshold, executing a corresponding preset function based on the touch operation.

[0005] Through the above technical solution, the corresponding preset function can be executed based on the touch operation only when the direction angle corresponding to the current touch operation is slightly different from the direction angle of the previous touch operation, effectively preventing accidental touches and avoiding erroneous operations.

[0006] In one possible implementation, calculating the current direction angle corresponding to the touch operation based on the touch area includes: determining a minimum rectangular frame that includes the touch area; determining two opposite endpoints of the minimum rectangular frame as reference points; determining the vertical distance and lateral distance between the two reference points; and calculating the current direction angle corresponding to the touch operation based on the vertical distance and lateral distance between the two reference points. This technical solution allows for accurate calculation of the direction angle of the touch operation.

[0007] In one possible implementation, determining the minimum rectangular frame encompassing the touch area includes: determining the upper, lower, left, and right endpoints of the touch area; determining a first straight line passing through the upper endpoint and parallel to the horizontal edge of the touchpad; determining a second straight line passing through the lower endpoint and parallel to the horizontal edge of the touchpad; determining a third straight line passing through the left endpoint and perpendicular to the horizontal edge of the touchpad; and determining a fourth straight line passing through the right endpoint and perpendicular to the horizontal edge of the touchpad; and determining the rectangular frame enclosed by the first, second, third, and fourth straight lines as the minimum rectangular frame encompassing the touch area. Through the above technical solution, the rectangular frame corresponding to the touch operation can be accurately determined, improving the accuracy of directional angle calculation.

[0008] In a possible implementation, determining the two opposite endpoints of the minimum rectangular frame as reference points includes: respectively calculating the distances between the two endpoints below the minimum rectangular frame and the lower endpoint of the touch area; if the distance between the lower left endpoint of the minimum rectangular frame and the lower endpoint of the touch area is less than or equal to the distance between the lower right endpoint of the minimum rectangular frame and the lower endpoint of the touch area, determining the lower left endpoint of the minimum rectangular frame as the first reference point, and determining the endpoint on the minimum rectangular frame opposite to the first reference point as the second reference point; or if the distance between the lower left endpoint of the minimum rectangular frame and the lower endpoint of the touch area is greater than the distance between the lower right endpoint of the minimum rectangular frame and the lower endpoint of the touch area, determining the lower right endpoint of the minimum rectangular frame as the first reference point, and determining the endpoint on the minimum rectangular frame opposite to the first reference point as the second reference point. Through the above technical solution, the reference point for calculating the direction angle of the touch operation can be accurately determined.

[0009] In a possible implementation, the calculation of the current direction angle corresponding to the touch operation based on the vertical distance and horizontal distance between the two reference points includes: if the second reference point is on the left side of the first reference point, based on the vertical distance and horizontal distance between the two reference points, calculating the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame; adding 90 degrees to the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame to obtain the current direction angle corresponding to the touch operation; or if the second reference point is on the right side of the first reference point, based on the vertical distance and horizontal distance between the two reference points, calculating the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame; determining the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame as the current direction angle corresponding to the touch operation. Through the above technical solution, the direction angle corresponding to the touch operation can be accurately calculated based on the relative position between the first reference point and the second reference point.

[0010] In one possible implementation, the method further includes: if there is only one touch area, calculating the difference between the current direction angle and the historical direction angle corresponding to the at least one historical touch operation to obtain the at least one first direction angle difference; and if the at least one first direction angle difference is less than or equal to a first threshold, executing a preset function corresponding to the touch operation. This technical solution allows, when there is only one touch area, to determine whether the current touch operation is a false touch based on the difference in direction angles between consecutive touch operations, thereby effectively preventing false touches.

[0011] In one possible implementation, the method further includes: if there are multiple touch areas, calculating the difference between each two current direction angles to obtain at least one second direction angle difference; if the at least one second direction angle difference is less than or equal to a second threshold, executing a preset function corresponding to the touch operation; or if any second direction angle difference is greater than the second threshold, not executing the preset function corresponding to the touch operation. With the above technical solution, when there are multiple touch areas, it is possible to determine whether the current touch operation is a false touch based on the differences between the direction angles corresponding to the multiple touch areas, thereby effectively avoiding false touches.

[0012] In one possible implementation, in response to a user's touch operation on the touchpad, collecting a touch area on the touchpad generated by the touch operation includes: detecting the user's touch operation on the touchpad, collecting touch position information of the touch operation; and determining a touch area on the touchpad generated by the touch operation based on the touch position information. With the above technical solution, the touch area on the touchpad generated by the touch operation can be accurately determined.

[0013] In one possible implementation, collecting the touch position information of the touch operation includes: the sensing layer reporting the sensing channel and driving channel where the sensed capacitance changes to a touch driver module; the touch driver module obtaining the horizontal coordinate of the touch position based on the sensing channel where the sensed capacitance changes, and obtaining the vertical coordinate of the touch position based on the driving channel where the sensed capacitance changes. Through the above technical solution, the coordinate information of the touch position can be accurately determined.

[0014] In one possible implementation, collecting the touch position information of the touch operation includes: the sensing layer reporting the changed sensing capacitance's sensing channel and driving channel, as well as the changed sensing capacitance, to a touch driver module; if the changed sensing capacitance is greater than or equal to a preset sensing capacitance threshold, the touch driver module obtaining the horizontal coordinate of the touch position based on the sensing channel where the changed sensing capacitance is located, and obtaining the vertical coordinate of the touch position based on the driving channel where the changed sensing capacitance is located. Through the above technical solution, the coordinate information of the touch position can be accurately determined.

[0015] In one possible implementation, determining the touch area on the touchpad generated by the touch operation based on the touch position information includes determining an area formed by the coordinates of multiple touch positions of the touch operation as the touch area on the touchpad generated by the touch operation. Through the above technical solution, the touch area on the touchpad generated by the touch operation can be accurately determined.

[0016] In one possible implementation, executing a corresponding preset function based on a touch operation includes: determining the coordinates of the center of gravity of the touch area using a barycenter algorithm based on the coordinates of multiple touch positions within the touch area, and using the barycenter coordinates as the reporting point information generated by the touch operation; and executing the preset function corresponding to the touch operation based on the reporting point information. With the above technical solution, when it is determined that the touch operation is not an accidental touch, the reporting point corresponding to the touch operation can be accurately determined, thereby executing the corresponding preset function based on the reporting point.

[0017] In one possible implementation, the method further includes: if the at least one first directional angle difference is greater than a first threshold, not executing a preset function corresponding to the touch operation. This technical solution can effectively prevent accidental touches by not executing the preset function corresponding to the touch operation when the directional angles corresponding to multiple touch operations differ significantly.

[0018] In a second aspect, the present application provides an electronic device, comprising a memory and a processor: wherein the memory is used to store program instructions; the processor is used to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device performs the above-mentioned touch detection method.

[0019] In a third aspect, the present application provides a chip coupled to a memory in an electronic device, wherein the chip is used to control the electronic device to execute the above-mentioned touch detection method.

[0020] In a fourth aspect, the present application provides a computer storage medium storing program instructions. When the program instructions are executed on an electronic device, the electronic device executes the above-mentioned touch detection method.

[0021] In addition, the technical effects brought about by the second to fourth aspects can be found in the descriptions of the methods of each design in the above method section, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1A This is a schematic diagram of the usage status of an electronic device provided by an embodiment of the present application.

[0023] Figure 1B Schematic diagram of a touch area of ​​an electronic device provided in one embodiment of the present application.

[0024] Figure 1C This is a schematic diagram of another usage state of an electronic device provided by an embodiment of the present application.

[0025] Figure 1D FIG. 1 is a schematic diagram of another touch area of ​​an electronic device provided by an embodiment of the present application.

[0026] Figure 2 This is a software architecture diagram of an electronic device provided in one embodiment of the present application.

[0027] Figure 3 This is a flow chart of a touch detection method provided by an embodiment of the present application.

[0028] Figure 4 This is a flowchart of collecting a touch area generated by a user's touch operation on the touch panel in response to a user's touch operation on the touch panel, provided by an embodiment of the present application.

[0029] Figure 5 Schematic diagram of the touch panel according to an embodiment of the present invention.

[0030] Figure 6 FIG. 1 is a schematic diagram of touch positions formed on a touch panel by a touch operation provided in an embodiment of the present application.

[0031] Figure 7 FIG. 1 is a schematic diagram of a touch area generated on a touch panel by a touch operation according to an embodiment of the present application.

[0032] Figure 8 This is a flowchart of calculating the current direction angle corresponding to a touch operation based on a touch area provided by an embodiment of the present application.

[0033] Figure 9 FIG. 1 is a schematic diagram of a touch area of ​​a touch panel provided in an embodiment of the present application.

[0034] Figure 10 This is a flow chart of a touch detection method provided by another embodiment of the present application.

[0035] Figure 11 This is a flow chart of a touch detection method provided by another embodiment of the present application.

[0036] Figure 12 FIG. 1 is a schematic diagram of multiple touch areas generated on a touch panel by a touch operation according to an embodiment of the present application.

[0037] Figure 13 Schematic diagram of a touch detection board according to an embodiment of the present application.

[0038] Figure 14A Schematic diagram of a touch area generated by a single-point operation provided by an embodiment of the present application.

[0039] Figure 14B 3 is a schematic diagram of the touch area generated by multi-finger operation provided by an embodiment of the present application.

[0040] Figure 15 This is a flowchart of a process for detecting a single finger frame and preventing accidental touches provided by an embodiment of the present application.

[0041] Figure 16 This is a flowchart of a process for detecting a multi-finger frame and preventing accidental touches provided by an embodiment of the present application.

[0042] Figure 17 This is a flowchart of a method for calculating a finger frame direction angle provided by an embodiment of the present application.

[0043] Figure 18 This is a hardware architecture diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0044] The terms "first" and "second" involved in the embodiments of the present application are for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c.

[0046] In the absence of conflict, the following embodiments and features thereof may be combined with each other.

[0047] The touchpad is an important medium for users to interact with electronic devices such as laptops and tablets. Users can simulate the functions of a mouse by clicking, pressing, sliding, and other operations on the touchpad with their fingers. However, when using electronic devices, users are prone to accidentally touching the touchpad, which in turn causes erroneous operations, thus affecting the user's experience. For example, in order to facilitate user input operations, the touchpad is usually set near the keyboard and at a close distance. In this way, due to the relative position relationship between the keyboard and the touchpad, when the user's fingers touch the keyboard, the palm or the side of the finger often touches the touchpad, causing an accidental touch of the touchpad. For another example, when the user is moving an electronic device, the finger is also likely to touch the touchpad, causing an accidental touch of the touchpad.

[0048] In order to avoid erroneous operation caused by accidentally touching the touch panel, the embodiment of the present application provides a touch detection method. In order to better understand the touch detection method provided by the embodiment of the present application, the following is combined with Figure 1A 、 Figure 1B 、 Figure 1C 、 Figure 1D The application scenario of the touch detection method of the embodiment of the present application is described.

[0049] See Figure 1A As shown, the touchpad of the laptop is set below the keyboard. When the user is typing on the laptop, based on the user's operating habits, the fingers are usually located in the keyboard area of ​​the laptop, and some fingers or palms may touch the touchpad, forming the following on the touchpad: Figure 1B The touch area shown. When the user is typing, as the palm moves irregularly, the position of the touch area formed on the touchpad is also irregular.

[0050] See Figure 1C As shown, when the user moves the laptop computer while it is open and closed, based on the user's operating habits, the four fingers other than the thumb and the palm support the bottom of the laptop computer, and the thumb presses the touchpad, forming a mark on the touchpad. Figure 1D The touch area shown.

[0051] See Figure 2 The figure shows the software architecture of an electronic device provided in an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and divisions of labor. Layers communicate with each other via software interfaces. For example, the operating system of an electronic device is divided into four layers: application layer 101, framework layer 102, kernel layer 103, and hardware layer 104, from top to bottom.

[0052] The application layer can include a series of application packages. For example, an application package can include camera, gallery, calendar, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0053] The framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, etc.

[0054] The window manager manages window applications. It can obtain the display size, determine whether a status bar exists, lock the screen, and take screenshots. The content provider stores and retrieves data and makes it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The view system includes visual controls, such as those for displaying text and images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon can include a view for displaying text and a view for displaying images. The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager enables applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, requiring no user interaction. For example, the notification manager is used to notify users of download completions and message reminders. The notification manager can also display notifications in the system's top status bar as icons or scrolling text, such as notifications from background applications, or as dialog windows. For example, a text message may be displayed in the status bar, a prompt sound may be emitted, the electronic device may vibrate, an indicator light may flash, etc.

[0055] The application and framework layers run in a virtual machine. The virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0056] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0057] The kernel layer is the core of an electronic device's operating system. It is the first layer of software expansion based on the hardware, providing the most basic operating system functions and forming the foundation of the operating system. It manages the system's processes, memory, device drivers, files, and network systems, and determines the system's performance and stability. For example, the kernel can determine when an application can operate on a certain piece of hardware.

[0058] The kernel layer includes programs closely related to the hardware, such as interrupt handlers and device drivers. It also includes basic, common, and high-frequency modules, such as the clock management module and the process scheduling module, as well as key data structures. The kernel layer can be installed in the processor or stored in internal memory.

[0059] The hardware layer includes the hardware of electronic devices, such as keyboards, touchpads, displays and other input and output devices.

[0060] See Figure 3 FIG. 1 is a flow chart of a touch detection method provided in an embodiment of the present application. The method is applied to an electronic device and includes:

[0061] S101 , in response to a touch operation performed by a user on a touch panel, collecting a touch area generated by the touch operation on the touch panel.

[0062] In one embodiment of the present application, in response to a user's touch operation on the touch panel, a detailed process of collecting the touch area generated by the touch operation on the touch panel is as follows: Figure 4 As shown, specifically including:

[0063] S1011 , detecting a user's touch operation on the touchpad, and collecting touch position information of the touch operation.

[0064] like Figure 2 As shown, the hardware layer 104 includes a touch panel 196, and the core layer 103 includes a touch driver module 1031. Figure 5 FIG. 1 is a schematic diagram of the structure of a touch panel provided in an embodiment of the present application. In one embodiment of the present application, the touch panel 196 includes a touch layer 201 and a sensing layer 202. The touch layer 201 is used for user touch, and the sensing layer 202 includes a plurality of sensing channels 203 and a plurality of driving channels 204. The plurality of sensing channels 203 and the plurality of driving channels 2044 are intersectingly distributed. The sensing channels 203 are provided with a plurality of sensing electrodes, and the driving channels 204 are provided with a plurality of driving electrodes. For example, see Figure 6 As shown, the sensing layer 202 includes 14 sensing channels 203 and 14 driving channels 204 .

[0065] In one embodiment of the present application, a touch operation is an operation in which a user touches a touchpad with a hand (e.g., a finger or palm). Detecting the user's touch operation on the touchpad and collecting touch position information of the touch operation includes: detecting the user's touch operation on the touchpad in real time through the sensing layer 202, and collecting touch position information of the touch operation in response to the touch operation when the touch operation is detected. The sensing layer 202 detects the user's touch operation on the touchpad at a preset sampling rate, and the sampling rate is the number of times the sensing layer collects touch signals per second. Optionally, the preset sampling rate is 120 Hz.

[0066] In one embodiment of the present application, the touch position information of the touch operation is the coordinate information of the touch position. The user can perform a touch operation on the touchpad with his hand, for example, the touch operation can be a click, a slide, etc. When the touchpad does not receive a touch operation, the sensing capacitance on the sensing channel and the driving channel is zero or a fixed value. When the touchpad receives a touch operation, since the user's hand is a conductor, it can generate a sensing capacitance with the sensing electrode on the sensing channel and the driving electrode on the driving channel, causing the sensing capacitance on the sensing channel and the driving channel to change.

[0067] Specifically, collecting touch position information of a touch operation includes: when a user's hand (finger or palm) touches the touchpad, the touchpad generates a change in induced capacitance at the intersection of the sensing channel and the drive channel where the hand touches the touchpad, the sensing layer reports the sensing channel and the drive channel where the induced capacitance change is located to the touch drive module, the touch drive module obtains the X-axis (horizontal axis) coordinate of the touch position based on the sensing channel where the induced capacitance change is located, and obtains the Y-axis (vertical axis) coordinate of the touch position based on the drive channel where the induced capacitance change is located. In this way, the touch drive module determines the touch position information of the touch operation by obtaining the X-axis coordinate and Y-axis coordinate of the touch position. The X-axis coordinate and the Y-axis coordinate are coordinates on a coordinate system established with the edge of the touchpad as the coordinate axis. In one example, the X-axis coordinate value is the number of the sensing channel, and the Y-axis coordinate value is the number of the drive channel.

[0068] In one embodiment of the present application, if the sensing channel is arranged along the horizontal direction of the touch pad and the driving channel is arranged along the vertical direction of the touch pad, the sensing channel obtains the X-axis coordinate of the touch position and the driving channel obtains the Y-axis coordinate of the touch position. In another embodiment of the present application, if the sensing channel is arranged along the vertical direction of the touch pad and the driving channel is arranged along the horizontal direction of the touch pad, the sensing channel obtains the Y-axis coordinate of the touch position and the driving channel obtains the X-axis coordinate of the touch position.

[0069] In another embodiment of the present application, collecting touch position information of a touch operation includes coordinate information of the touch position and induced capacitance. Collecting the reporting information generated by the touch operation includes: when the user's hand (finger or palm) touches the touchpad, the touchpad generates an induced capacitance change at the intersection of the sensing channel and the driving channel where the hand touches, the sensing layer reports the changed induced capacitance and the sensing channel and driving channel where the changed induced capacitance is located to the touch driver module, the touch driver module determines whether the changed induced capacitance is greater than or equal to a preset induced capacitance threshold, if the changed induced capacitance is greater than or equal to the preset induced capacitance threshold, the touch driver module obtains the X-axis coordinate of the touch position based on the sensing channel where the changed induced capacitance is located, and obtains the Y-axis coordinate of the touch position based on the driving channel where the changed induced capacitance is located. In this way, the touch driver module determines the coordinate information of the touch position based on the obtained X-axis coordinate and Y-axis coordinate of the touch position, and uses the changed induced capacitance as the induced capacitance of the touch position, thereby determining the touch position information of the touch operation. Optionally, the preset induced capacitance threshold is 200. In other embodiments, the preset sensing capacitance threshold can also be set to other values ​​according to requirements. The sensing capacitance is on the order of magnitude of the sensing capacitance, and is determined by converting the analog touch signal generated by the sensing layer based on the touch operation into a digital touch signal.

[0070] like Figure 6 As shown, 14 sensing channels and 14 driving channels are intersected to form multiple intersection areas. When the touch panel receives a touch operation from a user, the sensing layer generates a change in induced capacitance in the intersection area of ​​the sensing channels and the driving channels. The number in each intersection area represents the changed induced capacitance, and the unit of the induced capacitance is pico-farad. For example, the induced capacitance of the intersection area between the first sensing channel and the first driving channel is 44, which is less than a preset induced capacitance threshold of 200. The induced capacitance of the intersection area between the eighth sensing channel and the eighth driving channel is 756, which is greater than the preset induced capacitance threshold of 200. Therefore, the intersection area between the eighth sensing channel and the eighth driving channel is a touch position corresponding to the touch operation. The coordinates of the touch position are determined as (8, 8) based on the numbers of the sensing channels and the driving channels.

[0071] S1012: Determine a touch area generated by the touch operation on the touch panel based on the touch position information of the touch operation.

[0072] In one embodiment of the present application, determining a touch area generated by a touch operation on the touch panel based on touch position information of the touch operation includes: determining an area formed by coordinates of multiple touch positions of the touch operation as the touch area generated by the touch operation on the touch panel.

[0073] It can be understood that the intersection area where the induced capacitance after the change is greater than or equal to the preset induced capacitance threshold corresponds to a touch position, which is actually a touch point. The area formed by all touch points is the touch area generated by the touch operation on the touch panel. For example, see Figure 7 As shown, the dotted box area in the figure is an area formed by multiple touch points corresponding to multiple intersecting areas with an inductive capacitance greater than 200, that is, a touch area generated by a touch operation on the touch panel.

[0074] S102: Calculate a current direction angle corresponding to the touch operation based on the touch area.

[0075] In one embodiment of the present application, the detailed process of calculating the current direction angle corresponding to the touch operation based on the touch area is as follows: Figure 8 As shown, specifically including:

[0076] S1021: Determine the minimum rectangular frame that includes the touch area.

[0077] In one embodiment of the present application, determining the minimum rectangular frame including the touch area includes: determining the upper endpoint, lower endpoint, left endpoint, and right endpoint of the touch area, determining a first straight line passing through the upper endpoint and parallel to the horizontal edge of the touchpad, determining a second straight line passing through the lower endpoint and parallel to the horizontal edge of the touchpad, determining a third straight line passing through the left endpoint and perpendicular to the horizontal edge of the touchpad, determining a fourth straight line passing through the right endpoint and perpendicular to the horizontal edge of the touchpad, and determining a rectangular frame formed by the first straight line, the second straight line, the third straight line, and the fourth straight line as the minimum rectangular frame including the touch area.

[0078] In one embodiment of the present application, based on Figure 6 The numbering of the sensing channels and the driving channels shown in the figure, and determining the upper, lower, left, and right endpoints of the touch area include: determining the touch position with the smallest vertical coordinate in the touch area as the upper endpoint, determining the touch position with the largest vertical coordinate in the touch area as the upper endpoint, determining the touch position with the smallest horizontal coordinate in the touch area as the left endpoint, and determining the touch position with the largest horizontal coordinate in the touch area as the right endpoint. In other embodiments, the method for determining the upper, lower, left, and right endpoints of the touch area can be adaptively changed based on other numbering settings of the sensing channels and the driving channels.

[0079] For example, Figure 7As shown, a first straight line L1 passing through the upper endpoint a0 of the touch area and parallel to the horizontal edge of the touch panel is determined, a second straight line L2 passing through the lower endpoint b0 and parallel to the horizontal edge of the touch panel is determined, a third straight line L3 passing through the left endpoint c0 and perpendicular to the horizontal edge of the touch panel is determined, and a fourth straight line L4 passing through the right endpoint d0 and perpendicular to the horizontal edge of the touch panel is determined. A rectangular frame X formed by the first straight line L1, the second straight line L2, the third straight line L3, and the fourth straight line L4 is determined as the minimum rectangular frame including the touch area.

[0080] S1022: Determine two opposite endpoints of the minimum rectangular frame as reference points.

[0081] In one embodiment of the present application, determining the two opposite endpoints of the minimum rectangular box as reference points includes: respectively calculating the distances between the two endpoints below the minimum rectangular box and the lower endpoint of the touch area; if the distance between the lower left endpoint of the minimum rectangular box and the lower endpoint of the touch area is less than or equal to the distance between the lower right endpoint of the minimum rectangular box and the lower endpoint of the touch area, the lower left endpoint of the minimum rectangular box is determined as the first reference point, and the endpoint on the minimum rectangular box opposite to the first reference point is determined as the second reference point; if the distance between the lower left endpoint of the minimum rectangular box and the lower endpoint of the touch area is greater than the distance between the lower right endpoint of the minimum rectangular box and the lower endpoint of the touch area, the lower right endpoint of the minimum rectangular box is determined as the first reference point, and the endpoint on the minimum rectangular box opposite to the first reference point is determined as the second reference point.

[0082] In one embodiment of the present application, the coordinates of the lower left endpoint of the minimum rectangular frame are (the horizontal coordinate of the left endpoint, the vertical coordinate of the lower endpoint), and the coordinates of the lower right endpoint of the minimum rectangular frame are (the horizontal coordinate of the right endpoint, the vertical coordinate of the lower endpoint). The distances between the two endpoints below the minimum rectangular frame and the lower endpoint of the touch area can be calculated using the distance calculation formula between two points in the coordinate system.

[0083] For example, Figure 7 As shown, the distance between the endpoint A1 at the lower left of the minimum rectangular frame and the lower endpoint b0 of the touch area is smaller than the distance between the endpoint C1 at the lower right of the minimum rectangular frame and the lower endpoint b0 of the touch area. Therefore, the endpoint A1 at the lower left of the minimum rectangular frame is determined as the first reference point, and the endpoint B1 on the minimum rectangular frame opposite to the first reference point is determined as the second reference point.

[0084] S1023: Determine the vertical distance and horizontal distance between the two reference points.

[0085] In one embodiment of the present application, determining the vertical distance and the lateral distance between two reference points includes: determining the number of intersection areas between the sensing channels and the driving channels between the two reference points in a direction perpendicular to the lateral length of the touch panel as the vertical distance between the two reference points, and determining the number of intersection areas between the sensing channels and the driving channels between the two reference points in a direction parallel to the lateral length of the touch panel as the lateral distance between the two reference points.

[0086] See Figure 9 As shown, the two reference points are endpoints A1 and B1 of the rectangular frame X. The vertical distance between endpoints A1 and B1 is H, i.e., the longitudinal length of the rectangular frame X. The lateral distance between endpoints A1 and B1 is L, i.e., the lateral length of the rectangular frame X. The number of intersections between the sensing channels and the driving channels between endpoints A1 and B1 perpendicular to the lateral length of the touchpad is 4, so the vertical distance H between endpoints A1 and B1 is 4. The number of intersections between the sensing channels and the driving channels between endpoints A1 and B1 parallel to the lateral length of the touchpad is 5, so the lateral distance H between endpoints A1 and B1 is 5.

[0087] S1024: Calculate a current direction angle corresponding to the touch operation based on the vertical distance and the horizontal distance between the two reference points.

[0088] In one embodiment of the present application, calculating the current direction angle corresponding to the touch operation based on the vertical distance and the horizontal distance between the two reference points includes: calculating the current direction angle corresponding to the touch operation based on the vertical distance and the horizontal distance between the two reference points and the trigonometric function relationship.

[0089] Specifically, the relative position between the second reference point and the first reference point is determined. If the second reference point is to the right of the first reference point, the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame is calculated based on the vertical distance and the horizontal distance between the two reference points and the inverse tangent function, and the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame is determined as the current direction angle corresponding to the touch operation, that is, the current direction angle corresponding to the touch operation α=arctan(H / L); if the second reference point is to the left of the first reference point, the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame is calculated based on the vertical distance and the horizontal distance between the two reference points and the inverse tangent function, and the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame is added by 90 degrees as the current direction angle corresponding to the touch operation, that is, the current direction angle corresponding to the touch operation α=arctan(H / L)+90°; if the second reference point is directly above the first reference point, the current direction angle corresponding to the touch operation is determined to be 90 degrees. It can be understood that when the touch area corresponding to the touch operation is a line segment perpendicular to the horizontal edge of the touch panel, that is, when the touch area corresponding to the touch operation has only an upper endpoint and a lower endpoint, the second reference point is directly above the first reference point.

[0090] S103: Calculate a difference between the current direction angle and a historical direction angle corresponding to at least one historical touch operation to obtain at least a first direction angle difference.

[0091] In one embodiment of the present application, the historical touch operation and the current touch operation are continuous touch operations, and the continuous touch operation is the operation during which the user's hand continues to contact the touchpad. If the user's hand stops contacting the touchpad, the continuous touch operation is terminated. At this time, if the user's hand contacts the touchpad again to perform a touch operation, the touch operation before the touch operation cannot be used as a historical touch operation for the touch operation. The historical touch operation includes at least one continuous touch operation before the current touch operation. For example, if the sampling rate of the touch operation is 120Hz, the historical touch operation may include a touch operation 8ms before the current touch operation and a touch operation 16ms before the current touch operation. The historical direction angle corresponding to the historical touch operation is also calculated based on steps S1021-S1024. The current direction angle is subtracted from the historical direction angle corresponding to at least one historical touch operation to obtain the difference between the current direction angle and the at least one historical direction angle. The absolute value of the difference between the current direction angle and the at least one historical direction angle is determined as at least one first direction angle difference.

[0092] For example, the second reference point is to the right of the first reference point, the vertical distance between the two reference points is 4, and the horizontal distance is 5, then the current direction angle α0 = arctan (4 / 5) = 38.7°, the historical touch operation is 1, the historical direction angle α1 corresponding to the historical touch operation is 41.2°, and the difference between the current direction angle α0 and the historical direction angle α1 corresponding to the historical touch operation is -2.5°, then the first direction angle difference corresponding to the historical touch operation is 2.5°, that is, the first direction angle difference is 2.5°.

[0093] S104: If at least one first direction angle difference is less than or equal to a first threshold, executing a corresponding preset function based on the touch operation.

[0094] In one embodiment of the present application, at least one first direction angle difference is compared with a first threshold. If the at least one first direction angle difference is less than or equal to the first threshold, it indicates that the direction of the touch operation has not changed suddenly, the touch operation is not an accidental touch, and the corresponding function is executed based on the touch operation. Optionally, the first threshold is 5 degrees. In other embodiments, the first threshold can also be set to other values ​​as needed.

[0095] In one embodiment of the present application, executing a corresponding preset function based on a touch operation includes: the touch driver module determines the reporting point information generated by the touch operation based on the touch area, and executes the preset function corresponding to the touch operation based on the reporting point information. For example, the reporting point information is reported to the application layer, and the application controls the movement of the cursor of the electronic device based on the reporting point information. Specifically, the touch driver module determines the reporting point information generated by the touch operation based on the touch area, including: the touch driver module determines the center of gravity coordinates of the touch area based on the coordinates of multiple touch positions within the touch area using a center of gravity algorithm, and confirms the center of gravity coordinates of the touch area as the reporting point information generated by the touch operation.

[0096] See Figure 10 FIG. 1 is a flow chart of a touch detection method provided by another embodiment of the present application. The method is applied to an electronic device and includes:

[0097] S201 : In response to a touch operation performed by a user on a touch panel, a touch area generated by the touch operation on the touch panel is collected.

[0098] S202: Calculate a current direction angle corresponding to the touch operation based on the touch area.

[0099] S203 , calculating a difference between the current direction angle and a historical direction angle corresponding to at least one historical touch operation to obtain at least a first direction angle difference.

[0100] S204: If at least one first direction angle difference is less than or equal to a first threshold, execute a preset function corresponding to the touch operation.

[0101] S205: If at least one first direction angle difference is greater than a first threshold, the preset function corresponding to the touch operation is not executed.

[0102] For example, the first threshold is set to 5°, the second reference point is to the right of the first reference point, the vertical distance between the two reference points is 4, and the horizontal distance is 5, then the current direction angle α0 = arctan (4 / 5) = 38.7°, the historical touch operation is one, the historical direction angle α1 corresponding to the historical touch operation is 31.5°, the difference between the current direction angle α0 and the historical direction angle α1 corresponding to the historical touch operation is 7.2°, then the direction angle difference corresponding to the historical touch operation is 7.2°, that is, the first direction angle difference is 7.2°, which is greater than the first threshold, indicating that the direction of the touch operation has suddenly changed, and the current touch operation is determined to be a false touch. The preset function corresponding to the touch operation is not executed to prevent false touch.

[0103] The specific implementation of steps S201-S204 is the same as that of steps S101-S104, and will not be repeated here.

[0104] See Figure 11 FIG. 1 is a flow chart of a touch detection method provided by another embodiment of the present application. The method is applied to an electronic device and includes:

[0105] S301 : In response to a touch operation performed by a user on a touch panel, a touch area generated by the touch operation on the touch panel is collected.

[0106] S302: Calculate a current direction angle corresponding to the touch operation based on the touch area.

[0107] S303: If there is only one touch area, calculate the difference between the current direction angle and the historical direction angle corresponding to at least one historical touch operation to obtain at least a first direction angle difference.

[0108] In another embodiment of the present application, it is determined whether there are multiple touch areas. If there are not multiple touch areas, that is, there is only one touch area, the same method as steps S1021-S1024 is used to calculate a current direction angle corresponding to the touch operation.

[0109] S304: If at least one first direction angle difference is less than or equal to a first threshold, execute a preset function corresponding to the touch operation.

[0110] S305: If at least one first direction angle difference is greater than a first threshold, the preset function corresponding to the touch operation is not executed.

[0111] S306 : If there are multiple touch areas, calculate the difference between every two current direction angles to obtain at least one second direction angle difference.

[0112] In another embodiment of the present application, if there are multiple touch areas, in step S302, the same method as steps S1021-S1024 can be used to calculate multiple current direction angles corresponding to the touch operation based on each touch area, and the multiple current direction angles are subtracted from each other, and the absolute value of the difference after subtraction is determined to obtain at least one second direction angle difference.

[0113] See Figure 12 As shown, for example, there are 2 touch areas, in the minimum rectangular frame X corresponding to the first touch area, the second reference point is on the right side of the first reference point, the vertical distance between the two reference points is 4, and the lateral distance is 5, then the first current direction angle α0 = arctan (4 / 5) = 38.7°, in the minimum rectangular frame Y corresponding to the second touch area, the second reference point is on the left side of the first reference point, the vertical distance between the two reference points is 5, and the lateral distance is 4, then the second current direction angle α0 = arctan (5 / 4) + 90° = 141.3°, the difference between the first current direction angle and the second direction angle is -102.6°, then the second direction angle difference is 102.6°.

[0114] S307: If at least one second direction angle difference is less than or equal to a second threshold, execute a preset function corresponding to the touch operation.

[0115] In another embodiment of the present application, at least one second direction angle difference is compared with a second threshold to determine whether the at least one second direction angle difference is less than or equal to the second threshold. If the at least one second direction angle difference is less than or equal to the second threshold, it indicates that the multiple touch directions are consistent, the touch operation is not an accidental touch, and the preset function corresponding to the touch operation is executed. Optionally, the second threshold is 10 degrees. In other embodiments, the second threshold can also be set to other values ​​as needed.

[0116] In another embodiment of the present application, executing a corresponding preset function based on a touch operation includes: a touch driving module determines the reporting point information generated by the touch operation based on multiple touch areas, and reports the reporting point information to the application layer, and controls the electronic device to execute the preset function based on the reporting point information through the application.

[0117] S308: If any second direction angle difference is greater than a second threshold, the preset function corresponding to the touch operation is not executed.

[0118] According to the above example, when the number of touch areas is 2, a second direction angle difference is 102.6°, which is greater than the second threshold value of 10°. Therefore, it means that the touch directions of multiple fingers are inconsistent, and the current touch operation is determined to be a false touch, and the preset function corresponding to the touch operation is not executed.

[0119] See Figure 13 FIG2 is a schematic diagram of a touch panel module according to an embodiment of the present invention. The touch panel 196 includes, but is not limited to, a touch detection module 205, an algorithm execution module 206, a power supply module 207, a storage module 208, a logic control module 209, a touch panel driver module 210, and a key response module 211.

[0120] In one embodiment of the present application, the touch detection module 205 is used to detect finger touch information. The touch detection module 205 can be a capacitance detection chip, which can include the above-mentioned sensing layer. The algorithm running module 206 is used to run the entire algorithm processing flow, for example Figure 3 、 4 , 8, 10, 11, 15-17. The power module 206 is used to manage the power supply of the touchpad and switch between working and sleeping modes. The storage module 208 is used to store code programs, data and other related information. The logic control module 209 is used to control the working mode of the touchpad and the communication process with the electronic device (laptop or tablet). The working mode of the touchpad may include turning on and off. The touchpad driver module 210 is used to drive the touchpad 196, and the key response module 211 is used to detect the user's key operation on the touchpad 196.

[0121] Touchpads support single-touch and multi-finger gestures. With single-touch gestures, the user's finger direction doesn't change suddenly. With multi-finger gestures, the directions of all fingers are typically consistent. Based on this, the touchpad uses capacitive sensing to obtain information about the finger's touch frame and calculates the finger frame's orientation angle α. This consistent orientation angle prevents accidental touches.

[0122] See Figure 14A As shown in the figure, taking a single-point operation as an example, a user's single finger touches the touchpad and slides to the lower right. The difference between the direction angles corresponding to the two adjacent touch operations is small. Therefore, by calculating the difference between the direction angles corresponding to the two adjacent touch operations, it can be determined whether the touch operation is an accidental operation, thereby realizing the touchpad's anti-accidental touch protection. Figure 14B As shown, taking the case of two fingers performing a touch operation at the same time as an example, according to the user's usage habits, when two fingers perform a touch operation at the same time, the difference between the direction angles corresponding to the touch operations generated by different fingers is small. Therefore, by calculating the difference between the direction angles corresponding to different touch operations, it is possible to determine whether the touch operation is an erroneous operation, thereby realizing the prevention of false touches on the touchpad.

[0123] In one embodiment of the present application, the principle of detecting a single finger frame to prevent accidental touches is as follows: When a user operates a single finger on the touchpad, the finger does not suddenly change direction due to the continuity and continuity of human operation. When the touchpad detects a finger frame, the frame's direction angle α is compared with the direction of the historical frame (the previous frame or frames). If the direction difference is greater than a certain threshold, it is considered abnormal and the point notification is suppressed, thus preventing accidental touch notifications.

[0124] See Figure 15 FIG. 1 is a flowchart of a process for detecting a single finger frame and preventing accidental touches according to an embodiment of the present application, specifically including:

[0125] S401: A single finger frame is detected, where the finger frame is a type of touch area mentioned above.

[0126] S402: Calculate the frame direction angle α, where the frame direction angle is the direction angle of the finger touch operation.

[0127] S403: Calculate the historical frame direction angle α', where the historical frame direction angle is the direction angle of the historical finger touch operation.

[0128] At step S404, it is determined whether the difference between the frame orientation angle α and the historical frame orientation angle α' is greater than a first threshold. If the difference between the frame orientation angle α and the historical frame orientation angle α' is greater than the first threshold, the process proceeds to step S405. If the difference between the frame orientation angle α and the historical frame orientation angle α' is less than or equal to the first threshold, the process proceeds to step S406.

[0129] S405, suppressing the current finger frame from reporting the point.

[0130] S406: Do not suppress the current finger frame reporting point.

[0131] In one embodiment of the present application, the principle of detecting a multi-finger frame to prevent accidental touches is as follows: the touchpad supports multi-finger same-direction operations, such as two-finger swipe up, swipe down to turn pages, three-finger swipe down to return to the desktop, etc. For this multi-finger operation function, the directions of the multiple fingers are consistent, and there is no scenario where the directions of the fingers are greatly different. When the touchpad detects a multi-finger frame, the direction angles α1, α2, ..., α of each finger frame are calculated. i The direction angles of each two finger frames are compared and judged. If they are in different directions (the direction difference is greater than a certain threshold), it is considered abnormal and the reporting point is suppressed.

[0132] See Figure 16 FIG. 1 is a flowchart of a process for detecting a multi-finger frame and preventing accidental touches according to an embodiment of the present application, specifically including:

[0133] S501: Detect a multi-finger frame.

[0134] S502, calculate the direction angles α1, α2, ..., α of each frame i .

[0135] S503: Compare the direction angles of each frame pairwise.

[0136] S504: Determine whether the difference between the orientation angles of any two boxes is greater than a second threshold. If the difference between the orientation angles of any two boxes is greater than the second threshold, the process proceeds to S505; if the difference between the orientation angles of any two boxes is greater than the second threshold, the process proceeds to S506.

[0137] S505: Suppress the current finger frame from reporting points.

[0138] S506: Do not suppress the current finger frame reporting point.

[0139] In one embodiment of the present application, a method for calculating the orientation angle of a finger frame is as follows: the orientation angle of the frame is calculated using the relative position A of the finger frame's boundary, the distance between point B, and trigonometric functions. Specifically, the touchpad detects the frame information, counts the intersection of the four boundaries of the frame, and the position information of the upper, lower, left, and right boundaries with the four borders; finds the bottommost point A and point B on the diagonal line, with the vertical distance between point B and point A recorded as H and the horizontal distance recorded as L; when point B is to the right of point A, the orientation angle α = arctan(H / L); otherwise, when point B is to the left of point A, the orientation angle α = arctan(H / L) + 90°; when point B is directly above point A, the orientation angle α is 90°.

[0140] See Figure 17 FIG. 1 is a flow chart of a method for calculating a finger frame direction angle according to an embodiment of the present application, which specifically includes:

[0141] S601: Detect a finger frame.

[0142] S602: Count the boundaries of the box, i.e., the top, bottom, left, and right boundary positions. The top, bottom, left, and right boundary positions are the upper endpoint, lower endpoint, left endpoint, and right endpoint of the above text, respectively.

[0143] S603, counting the intersection points of the four bounding boxes.

[0144] S604, determining the bottom point A and the diagonal point B.

[0145] S605: Determine whether point B is on the right side of point A. If point B is on the right side of point A, the process proceeds to S606; if point B is not on the right side of point A, the process proceeds to S607.

[0146] S606, calculating the frame direction angle α=arctan(H / L).

[0147] S607, calculate the frame direction angle α = arctan (H / L) + 90. Then the direction angle calculation ends.

[0148] The embodiment of the present application utilizes the characteristics that the direction of the touchpad will not change suddenly when the user performs a single-point operation; the direction is consistent when performing a multi-finger gesture operation, and utilizes the directionality of the finger frame on the touchpad to optimize the problem of false touches and improve the user experience of the touchpad.

[0149] See Figure 18 As shown, an electronic device is further provided in an embodiment of the present application. The electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device 100.

[0150] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0151] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0152] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0153] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0154] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0155] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an Inter-integrated Circuit (I2C) interface, an Inter-integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface.

[0156] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, allowing the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0157] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0158] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0159] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0160] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the Camera Serial Interface (CSI) and the Display Serial Interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0161] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0162] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices 100, such as AR devices.

[0163] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0164] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.

[0165] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0166] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0167] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0168] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0169] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0170] The wireless communication module 160 can provide wireless communication solutions including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0171] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a Beidou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and / or a Satellite Based Augmentation System (SBAS).

[0172] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0173] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), mini-LED, micro-LED, micro-OLED, quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0174] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0175] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0176] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0177] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0178] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0179] The NPU is a neural network (NN) computing processor that rapidly processes input information and continuously self-learns by drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain. The NPU enables intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0180] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0181] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.

[0182] Non-volatile memory may include disk storage devices and flash memory.

[0183] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; it can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage specification; it can be divided into universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.

[0184] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0185] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0186] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

[0187] The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the screen display detection method executed on the electronic device 100 in the above embodiment can be implemented to realize the screen display detection function of the electronic device 100.

[0188] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0189] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0190] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0191] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0192] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0193] The headphone jack 170D is used to connect a wired headphone and can be a USB interface 130 or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

[0194] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0195] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0196] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0197] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0198] An embodiment of the present application further provides a computer storage medium storing computer instructions. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the touch detection method in the above-mentioned embodiment.

[0199] The embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the touch detection method in the above-mentioned embodiment.

[0200] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the touch detection method in the above-mentioned method embodiments.

[0201] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0202] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.

[0203] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0204] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0205] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A touch detection method, characterized in that: The method comprises: In response to a user's touch operation on the touch panel, collecting a touch area on the touch panel generated by the touch operation; Calculating a current direction angle corresponding to the touch operation based on the touch area; calculating a difference between the current direction angle and a historical direction angle corresponding to at least one historical touch operation to obtain at least a first direction angle difference, wherein the touch operation and the at least one historical touch operation are continuous touch operations; If the at least one first direction angle difference is less than or equal to a first threshold, a corresponding preset function is executed based on the touch operation.

2. The touch detection method according to claim 1, wherein: Calculating the current direction angle corresponding to the touch operation based on the touch area includes: Determine a minimum rectangular frame that includes the touch area; Determine two opposite endpoints of the minimum rectangular frame as reference points; determining the vertical distance and the lateral distance between the two reference points; Based on the vertical distance and the horizontal distance between the two reference points, a current direction angle corresponding to the touch operation is calculated.

3. The touch detection method according to claim 2, wherein: Determining the minimum rectangular frame including the touch area includes: Determine the upper endpoint, lower endpoint, left endpoint, and right endpoint of the touch area; Determine a first straight line passing through the upper endpoint and parallel to the horizontal edge of the touch panel, determine a second straight line passing through the lower endpoint and parallel to the horizontal edge of the touch panel, determine a third straight line passing through the left endpoint and perpendicular to the horizontal edge of the touch panel, and determine a fourth straight line passing through the right endpoint and perpendicular to the horizontal edge of the touch panel; A rectangular frame formed by the first straight line, the second straight line, the third straight line, and the fourth straight line is determined as the minimum rectangular frame including the touch area.

4. The touch detection method according to claim 2, wherein: Determining two opposite endpoints of the minimum rectangular frame as reference points includes: Calculating the distances between the two endpoints below the minimum rectangular frame and the lower endpoint of the touch area respectively; If the distance between the lower left endpoint of the minimum rectangular frame and the lower endpoint of the touch area is less than or equal to the distance between the lower right endpoint of the minimum rectangular frame and the lower endpoint of the touch area, determine the lower left endpoint of the minimum rectangular frame as the first reference point, and determine the endpoint of the minimum rectangular frame opposite to the first reference point as the second reference point; or If the distance between the lower left endpoint of the minimum rectangular frame and the lower endpoint of the touch area is greater than the distance between the lower right endpoint of the minimum rectangular frame and the lower endpoint of the touch area, the lower right endpoint of the minimum rectangular frame is determined as the first reference point, and the endpoint on the minimum rectangular frame opposite to the first reference point is determined as the second reference point.

5. The touch detection method according to claim 4, wherein: The calculating the current direction angle corresponding to the touch operation based on the vertical distance and the horizontal distance between the two reference points includes: If the second reference point is to the left of the first reference point, calculating the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame based on the vertical distance and the horizontal distance between the two reference points; Add 90 degrees to the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame to obtain the current direction angle corresponding to the touch operation; or If the second reference point is to the right of the first reference point, calculating the angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame based on the vertical distance and the horizontal distance between the two reference points; The angle between the line connecting the two reference points and the horizontal side length of the minimum rectangular frame is determined as the current direction angle corresponding to the touch operation.

6. The touch detection method according to claim 1, wherein: The method further comprises: If there is only one touch area, calculating a difference between the current direction angle and a historical direction angle corresponding to the at least one historical touch operation to obtain the at least one first direction angle difference; If the at least one first direction angle difference is less than or equal to a first threshold, a preset function corresponding to the touch operation is executed.

7. The touch detection method according to claim 1, wherein: The method further comprises: If there are multiple touch areas, calculate the difference between every two current direction angles to obtain at least one second direction angle difference; If the at least one second direction angle difference is less than or equal to a second threshold, executing a preset function corresponding to the touch operation; or If any second direction angle difference is greater than a second threshold, the preset function corresponding to the touch operation is not executed.

8. The touch detection method according to claim 1, wherein: In response to the user's touch operation on the touch panel, collecting the touch area generated by the touch operation on the touch panel includes: detecting the touch operation of the user on the touch panel, and collecting touch position information of the touch operation; A touch area on the touch panel generated by the touch operation is determined based on the touch position information.

9. The touch detection method according to claim 8, wherein: The collecting of the touch position information of the touch operation includes: The sensing layer reports the sensing channel and driving channel where the sensing capacitance changes to the touch driving module; The touch driving module obtains the horizontal axis coordinate of the touch position based on the sensing channel where the sensed capacitance changes, and obtains the vertical axis coordinate of the touch position based on the driving channel where the sensed capacitance changes.

10. The touch detection method according to claim 8, wherein: The collecting of the touch position information of the touch operation includes: The sensing layer reports the sensing channel and driving channel where the changed sensing capacitor is located and the changed sensing capacitance to the touch driving module; If the changed induced capacitance is greater than or equal to a preset induced capacitance threshold, the touch driving module obtains the horizontal coordinate of the touch position based on the sensing channel where the changed induced capacitance is located, and obtains the vertical coordinate of the touch position based on the driving channel where the changed induced capacitance is located.

11. The touch detection method according to claim 9 or 10, wherein: Determining a touch area on the touch panel generated by the touch operation based on the touch position information includes: An area formed by coordinates of a plurality of touch positions of the touch operation is determined as the touch control area generated by the touch operation on the touch panel.

12. The touch detection method according to claim 9 or 10, wherein: The execution of the corresponding preset function based on the touch operation includes: Based on the coordinates of multiple touch positions within the touch area, a center of gravity algorithm is used to determine the center of gravity coordinates of the touch area, and the center of gravity coordinates are confirmed as the reporting point information generated by the touch operation; A preset function corresponding to the touch operation is executed based on the reported point information.

13. The touch detection method according to claim 1, wherein: The method further comprises: If the at least one first direction angle difference is greater than a first threshold, the preset function corresponding to the touch operation is not executed.

14. An electronic device, characterized in that: The electronic device comprises a memory and a processor: Wherein, the memory is used to store program instructions; The processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device executes the touch detection method according to any one of claims 1 to 13.

15. A chip coupled to a memory in an electronic device, characterized in that: The chip is used to control the electronic device to execute the touch detection method according to any one of claims 1 to 13.

16. A computer storage medium, characterized in that The computer storage medium stores program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the touch detection method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Mis-touch preventing method and device of edge and readable storage medium of computer

    CN107390932A

  • Touch operation processing method, electronic equipment and computer readable storage medium

    CN113849113A