Touch detection method and device, electronic equipment and storage medium

By dynamically determining the filter coefficients and performing filtering processing, the problem of electronic device display drive circuit noise affecting the accuracy of the touch screen is solved, the probability of sliding jitter is reduced, and the stability of the sliding operation is improved.

CN118625943APending Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310213332.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The display drive circuit of electronic equipment generates noise during the refresh process, which affects the accuracy of touch screen point reporting and causes sliding jitter during sliding operations.

Method used

The filter coefficient is dynamically determined according to the display refresh rate of the electronic device, and when a touch operation is detected, the current touch is determined by specifying the filter algorithm, the target filter coefficient, the reported coordinates of the historical touch points and the detection coordinates of the current touch point. The reported point coordinates of the control points are filtered to alleviate the impact of noise.

Benefits of technology

It improves the accuracy of touch point reporting, reduces the probability of sliding jitter during sliding operations, and effectively solves the problem of point reporting not following the hand under high refresh rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625943A
    Figure CN118625943A
Patent Text Reader

Abstract

The embodiment of the invention discloses a touch detection method and device, electronic equipment and a storage medium. The touch method can comprise the steps that the current first display refresh rate of the electronic equipment is obtained; determining a target filtering coefficient according to the first display refresh rate; and when the touch operation is detected, determining the report point coordinate of the current touch point according to a specified filtering algorithm, the target filtering coefficient, the report point coordinate of the historical touch point and the detection coordinate of the current touch point. By implementing the method, the point reporting precision of the touch screen can be effectively improved, and then the occurrence probability of sliding jitter during sliding operation can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic devices, and in particular to a touch detection method, device, electronic device and storage medium. Background Art

[0002] In practice, it is found that the display driving circuit of the electronic device often generates noise during the refresh process, and the noise usually affects the accuracy of the touch screen reporting points. Thus, when the user slides on the touch screen, sliding jitter usually occurs. Summary of the invention

[0003] The embodiments of the present application provide a touch detection method, device, electronic device and storage medium, which can improve the reporting accuracy, thereby helping to reduce the probability of sliding jitter during sliding operations.

[0004] A first aspect of an embodiment of the present application provides a touch detection method, the method further comprising:

[0005] Obtaining a current first display refresh rate of the electronic device;

[0006] determining a target filter coefficient according to the first display refresh rate;

[0007] When a touch operation is detected, the reported point coordinates of the current touch point are determined according to a specified filtering algorithm, the target filtering coefficient, the reported point coordinates of the historical touch points and the detected coordinates of the current touch point.

[0008] A second aspect of an embodiment of the present application provides a touch detection device, including:

[0009] A refresh rate acquisition unit, used to acquire a current first display refresh rate of the electronic device;

[0010] A filter coefficient determination unit, configured to determine a target filter coefficient according to the first display refresh rate;

[0011] The touch point reporting unit is used to determine the reporting point coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reporting point coordinates of the historical touch points and the detection coordinates of the current touch point when a touch operation is detected.

[0012] A third aspect of the embodiments of the present application provides an electronic device, which may include:

[0013] A memory storing executable program code;

[0014] and a processor coupled to the memory;

[0015] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiment of the present application.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method described in the first aspect of the embodiment of the present application is implemented.

[0017] A fifth aspect of an embodiment of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present application.

[0018] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present application.

[0019] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0020] In an embodiment of the present application, the current first display refresh rate of the electronic device is obtained; the target filter coefficient is determined based on the first display refresh rate; when a touch operation is detected, the reported coordinates of the current touch point are determined based on the specified filtering algorithm, the target filter coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0021] By implementing this method, the electronic device can dynamically determine the filter coefficient according to the display refresh rate of the electronic device, and then when a touch operation is detected, the detection coordinates of the current touch point are filtered based on the determined filter coefficient to alleviate the influence of the noise generated by the display driving circuit during the refresh process on the accuracy of the touch screen reporting point, which is beneficial to reduce the probability of sliding jitter during sliding operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.

[0023] Figure 1A It is a scenario diagram of the touch detection method disclosed in the embodiment of the present application;

[0024] Figure 1B It is a diagram of the reporting point response disclosed in the embodiment of the present application;

[0025] Figure 1C It is another illustration of the reporting point response disclosed in the embodiment of the present application;

[0026] Figure 2 It is a flowchart of the touch detection method disclosed in the embodiment of the present application;

[0027] Figure 3 It is a diagram of the system architecture of the electronic device disclosed in the embodiment of the present application;

[0028] Figure 4 is another flowchart of the touch detection method disclosed in the embodiment of the present application;

[0029] Figure 5 It is a structural diagram of a touch detection device disclosed in an embodiment of the application;

[0030] Figure 6 It is a structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application provide a touch detection method, device, electronic device and storage medium, which can improve the reporting accuracy, thereby helping to reduce the probability of sliding jitter during sliding operations.

[0032] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.

[0033] It can be understood that the electronic devices involved in the embodiments of the present application may include general handheld screen electronic user terminals, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDA), portable multimedia players (Personal Media Player, PMP) devices, laptop computers, notebooks (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminals, tablet computers (Personal Computer, PC), smart PCs, sales terminals (Point of Sales, POS) and car computers, etc.

[0034] Electronic devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), glasses supported by the head (such as glasses, helmets, headbands, etc.), as well as smart clothing, school bags, crutches, accessories and other non-mainstream product forms.

[0035] See also Figure 1A , Figure 1A is a scenario diagram of the touch detection method disclosed in the embodiment of this application. Figure 1A The scene diagram shown includes an electronic device 10. In practice, it is found that the display drive circuit of the electronic device 10 often generates noise during the refresh process, which usually affects the accuracy of the touch screen reporting points. In this way, when the user slides on the touch screen of the electronic device 10, sliding jitter usually occurs.

[0036] At present, the electronic device 10 usually uses a fixed filter coefficient for filtering to solve the problem of sliding jitter. The following is an example of a weighted filtering algorithm, in which the filter coefficient is mainly used to reflect the weights of the current touch point and the historical touch point. The greater the weight of the current touch point, the smaller the weight of the historical touch point. Conversely, the smaller the weight of the current touch point, the greater the weight of the historical touch point. When the weight of the current touch point is larger, the reporting response is faster, and the jitter is more serious. When the weight of the current touch point is smaller, the reporting response is slower and the reporting is more delayed.

[0037] Exemplarily, when the historical touch points are the previous touch point and the previous previous touch point, the calculation process of the current touch point is:

[0038] The horizontal coordinate of the current touch point is X=A / 15*X1+B / 15*X2+C / 15*X3; where: A+B+C=15, X1 is the horizontal coordinate of the detection coordinate of the current touch point, X2 is the horizontal coordinate of the previous touch point, and X3 is the horizontal coordinate of the previous touch point;

[0039] The reported vertical coordinate of the current touch point is X=Y=A / 15*Y1+B / 15*Y2+C / 15*Y3; wherein: A+B+C=15, Y1 is the horizontal coordinate of the detection coordinate of the current touch point, Y2 is the reported horizontal coordinate of the previous touch point, and Y3 is the reported horizontal coordinate of the previous touch point.

[0040] See also Figure 1B , Figure 1B It is a diagram of A=10, 5=10, C=0.

[0041] See also Figure 1C , Figure 1C This is a diagram of A=5, B=10, C=0.

[0042] Based on this, in order to reduce sliding jitter, the weight of the current touch point in the fixed filter coefficient is often smaller. At low refresh rates (such as 60HZ), the picture changes slowly. Using the fixed filter coefficient for filtering, the reporting points can mostly follow the hand. However, at high refresh rates (such as 120HZ), the picture changes quickly. If the fixed filter coefficient is still used, the picture changes too quickly and the reporting points may not follow the hand.

[0043] In the present technical solution, the electronic device 10 can dynamically determine the filter coefficient according to the display refresh rate of the electronic device 10, and then when a touch operation is detected, the detection coordinates of the current touch point are filtered based on the determined filter coefficient, thereby effectively solving the problem of the point reporting not following the hand under high refresh rate.

[0044] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of the touch detection method disclosed in the embodiment of the present application. Figure 2 The touch detection method shown may include the following steps:

[0045] 201. Obtain a current first display refresh rate of an electronic device.

[0046] In some embodiments, the current first display refresh rate of the electronic device may be periodically acquired.

[0047] 202. Determine a target filter coefficient according to a first display refresh rate.

[0048] In some embodiments, determining the target filter coefficient according to the first display refresh rate may include:

[0049] The filter coefficient corresponding to the first display refresh rate in the first relationship table is used as the target filter coefficient; wherein the first relationship table may include at least one display refresh rate and the filter coefficient corresponding to each display refresh rate.

[0050] Optionally, in the first relationship table, the correspondence between the display refresh rate and the filter coefficient can be one-to-one or many-to-one, which is not limited in the embodiment of the present application.

[0051] In some embodiments, the first relationship table may include all display refresh rates supported by the display system of the electronic device, and the filter coefficient corresponding to each display refresh rate.

[0052] In some embodiments, the first relationship table may include some display refresh rates supported by the display system of the electronic device, and a filter coefficient corresponding to each display refresh rate.

[0053] In some embodiments, when the first relationship table includes the display refresh rates of some of the electronic device's display systems and the filter coefficients corresponding to each display refresh rate, if the filter coefficient corresponding to the first display refresh rate is not found in the first relationship table, the specified filter coefficient will be used as the target filter coefficient.

[0054] It should be noted that the specified filter coefficients and the filter coefficients in the first relationship table are both within a reasonably acceptable jitter threshold.

[0055] 203. When a touch operation is detected, the reported coordinates of the current touch point are determined according to the specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points and the detected coordinates of the current touch point.

[0056] In some embodiments, the specified filter coefficient may be a weighted filter algorithm or a Kalman filter algorithm, etc., which is not limited in the embodiments of the present application. The historical touch points refer to the multiple touch points whose touch time is closest to the current touch time. The target filter coefficient may include the proportion of the historical touch points and the current touch points.

[0057] In some embodiments, when the specified filtering algorithm is a weighted filtering algorithm, determining the reported point coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reported point coordinates of the historical touch points, and the detected coordinates of the current touch point may include:

[0058] Obtaining a first proportion of the current touch point and a second proportion of the historical touch points from the target filter coefficient;

[0059] Calculate a first coefficient value of the current touch point according to a first proportion of the current touch point in the target filter coefficient;

[0060] Calculate a second coefficient value of the historical touch point according to a second proportion of the historical touch point in the target filter coefficient;

[0061] The reported point coordinates of the current touch point are determined according to the first coefficient value, the detected coordinates of the current touch point, the second coefficient value and the reported point coordinates of the historical touch points.

[0062] For example, if the multiple touch points are the two touch points (including the first touch point and the second touch point) whose touch time is closest to the current touch time, the target filter coefficient includes the proportion of historical touch points, the proportion of the first touch point and the proportion of the second touch point, that is, A, B, and C in the above embodiment, the first coefficient is A / 15, the second coefficient of the first touch point is B / 15, and the second coefficient of the second touch point is C / 15. The specific calculation process of calculating the reported point coordinates of the current touch point can be referred to the above description, which will not be repeated here.

[0063] By implementing the above method, the electronic device can dynamically determine the filter coefficient according to the display refresh rate of the electronic device. When a touch operation is detected, the detection coordinates of the current touch point can be filtered based on the determined filter coefficient to alleviate the influence of the noise generated by the display driving circuit during the refresh process on the accuracy of the touch screen reporting point, which is beneficial to reduce the probability of sliding jitter during sliding operations.

[0064] In some embodiments, the touch detection method can be Figure 3 The system architecture shown is implemented. Figure 3 The system architecture shown may include a touch screen system 301 and a terminal system 302. The terminal system 302 may obtain the current first display refresh rate of the electronic device, and may also search for a filter coefficient corresponding to the first display refresh rate from a first relationship table. When a touch operation is detected, the touch screen system 301 may determine the reported point coordinates of the current touch point according to a specified filtering algorithm, a target filtering coefficient, the reported point coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0065] It should be noted that when a touch operation is detected, the touch screen system 301 can trigger an interrupt signal through the INT pin, and then report the touch point coordinates to the terminal system 302. The terminal system 302 can drive the touch screen system 301 through the 2C SPI interface. The touch screen system 301 can have its own memory and processor.

[0066] See also Figure 4 , Figure 4 FIG. 1 is another flowchart of the touch detection method disclosed in the embodiment of the present application. Figure 4 The touch detection method shown may include the following steps:

[0067] 401. When detecting that the display refresh rate of the electronic device is updated, the terminal system obtains the current first display refresh rate of the electronic device.

[0068] In some embodiments, the terminal system may periodically detect changes in the display refresh rate of the electronic device through a display service.

[0069] 402. The terminal system searches for a filter coefficient corresponding to the first display refresh rate from the first relationship table. If found, continue to execute steps 403 to 406. If not found, continue to execute steps 407 and 408.

[0070] 403. The terminal system uses the filter coefficient corresponding to the first display refresh rate in the first relationship table as the target filter coefficient.

[0071] 404. The terminal system sends a first instruction to the touch screen system, where the first instruction includes a target filter coefficient.

[0072] 405. The touch screen system receives the first instruction, obtains a target filter coefficient from the first instruction, and stores the target filter coefficient in a memory.

[0073] 406. When a touch operation is detected, the touch screen system obtains a target filter coefficient from the memory, and determines the reported coordinates of the current touch point according to the specified filter algorithm, the target filter coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0074] 407. The touch screen system uses the designated filter coefficient as the target filter coefficient.

[0075] In some embodiments, the specified filter coefficient can be stored in the above-mentioned storage, and the touch screen system can periodically access the storage to determine whether there are filter coefficients other than the specified filter coefficient stored in the storage. If not, the specified filter coefficient is used as the target filter coefficient.

[0076] In some embodiments, if the terminal system fails to find the filter coefficient corresponding to the first display refresh rate from the first relationship table, the terminal system may send an indication message to the touch screen system indicating that the corresponding filter coefficient has not been found. When the touch screen system receives the indication message, it will specify the filter coefficient as the target filter coefficient.

[0077] Among them, the specified filter coefficient can be the filter coefficient used for the most recent point reporting, or it can be the default filter coefficient, which is not limited in the embodiments of the present application.

[0078] 408. When a touch operation is detected, the touch screen system determines the reported coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0079] In some embodiments, when the terminal system fails to find the filter coefficient corresponding to the first display refresh rate from the first relationship table, the terminal system can also use the specified filter coefficient as the target filter coefficient and send a first instruction to the touch screen system. The touch screen system receives the first instruction, obtains the target filter coefficient from the first instruction, and stores the target filter coefficient in a memory. When the touch screen system detects a touch operation, it obtains the target filter coefficient from the memory and determines the reported coordinates of the current touch point based on the specified filtering algorithm, the target filter coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0080] In some embodiments, the filtering algorithm used by the touch screen system when performing point reporting calculations may be fixed or may vary with changes in the display refresh rate, which is not limited in the embodiments of the present application.

[0081] In some embodiments, when the filtering algorithm used by the touch screen system for reporting point calculation changes with the display refresh rate, the electronic device may further include a second relationship table, which may include multiple display refresh rates and the filtering algorithm corresponding to each display refresh rate. After step 401, the terminal system may further search the second relationship table for the filtering algorithm corresponding to the first display refresh rate.

[0082] Furthermore, the first relationship table is about the filtering algorithm corresponding to the first display refresh rate.

[0083] When the terminal system finds the filter coefficient corresponding to the first display refresh rate from the first relationship table, the first instruction may also include an algorithm identifier of the filter algorithm corresponding to the first display refresh rate. When the touch screen system receives the first instruction, in addition to obtaining the target filter coefficient from the first instruction, it may also obtain the algorithm identifier from the first instruction, and when a touch operation is detected, obtain the target filter coefficient and the algorithm identifier from the memory, and determine the reported point coordinates of the current touch point according to the specified filter algorithm indicated by the algorithm identifier, the target filter coefficient, the reported point coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0084] Furthermore, when the terminal system fails to find the filter coefficient corresponding to the first display refresh rate from the first relationship table, the terminal system sends a second instruction to the touch screen system, and the second instruction includes an algorithm identifier. When the touch screen system receives the second instruction, it obtains the algorithm identifier from the second instruction and stores the algorithm identifier in the storage. When the touch screen system detects a touch operation, it obtains the algorithm identifier from the storage, and uses the specified filter coefficient as the target filter coefficient, and determines the reported coordinates of the current touch point based on the specified filtering algorithm, the target filter coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0085] By implementing the above method, the electronic device can dynamically determine the filter coefficient according to the display refresh rate of the electronic device. When a touch operation is detected, the detected coordinates of the current touch point can be filtered based on the determined filter coefficient to alleviate the influence of the noise generated by the display drive circuit during the refresh process on the accuracy of the touch screen reporting point, thereby helping to reduce the probability of sliding jitter during sliding operations. Furthermore, when the display refresh rate of the electronic device is updated, the filter coefficient is dynamically obtained, which can effectively reduce the device power consumption of the electronic device.

[0086] See also Figure 5 , Figure 5 FIG. 1 is a structural diagram of a touch detection device disclosed in an embodiment of the application. Figure 5 The touch detection device shown may include:

[0087] A refresh rate acquisition unit 501 is used to acquire a current first display refresh rate of the electronic device;

[0088] A filter coefficient determination unit 502, configured to determine a target filter coefficient according to a first display refresh rate;

[0089] The touch point reporting unit 503 is used to determine the reporting point coordinates of the current touch point according to the specified filtering algorithm, target filtering coefficient, the reporting point coordinates of the historical touch points and the detected coordinates of the current touch point when a touch operation is detected.

[0090] In some embodiments, the method in which the filter coefficient determination unit 502 is used to determine the target filter coefficient based on the first display refresh rate may specifically include: the filter coefficient determination unit 502 is used to search the filter coefficient corresponding to the first display refresh rate from the first relationship table; wherein the first relationship table includes at least one display refresh rate and the filter coefficient corresponding to each display refresh rate; if found, the filter coefficient corresponding to the first display refresh rate in the first relationship table is used as the target filter coefficient.

[0091] In some embodiments, the electronic device includes a terminal system and a touch screen system, and the filter coefficient determination unit 502 is also used to send a first instruction to the touch screen system through the terminal system after taking the filter coefficient corresponding to the first display refresh rate in the first relationship table as the target filter coefficient, wherein the first instruction includes the target filter coefficient; and, through the touch screen system, receive the first instruction, obtain the target filter coefficient from the first instruction, and store the target filter coefficient in a memory.

[0092] In some embodiments, the touch reporting unit 503 is used to determine the reporting coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reporting coordinates of the historical touch points and the detected coordinates of the current touch point when a touch operation is detected. Specifically, the method may include:

[0093] The touch point reporting unit 503 is used to obtain the target filter coefficient from the memory through the touch screen system, and determine the reporting coordinates of the current touch point according to the specified filtering algorithm, the target filter coefficient, the reporting coordinates of the historical touch points and the detection coordinates of the current touch point.

[0094] In some embodiments, the filter coefficient determination unit 502 is further configured to, when the filter coefficient corresponding to the first display refresh rate is not found in the first relationship table, use the touch system to specify the filter coefficient as the target filter coefficient;

[0095] The touch point reporting unit 503 is used to determine the reporting coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reporting coordinates of the historical touch points and the detected coordinates of the current touch point. The specific method may include:

[0096] The touch point reporting unit 503 is used to determine the reporting coordinates of the current touch point through the touch screen system according to the specified filtering algorithm, target filtering coefficient, the reporting coordinates of the historical touch points and the detected coordinates of the current touch point.

[0097] In some embodiments, the refresh rate acquisition unit 501 is used to obtain the current first display refresh rate of the electronic device, which may specifically include: the refresh rate acquisition unit 501 is used to obtain the current first display refresh rate of the electronic device when the display refresh rate of the electronic device is detected to be updated.

[0098] In some embodiments, the specified filtering algorithm includes a weighted filtering algorithm or a Kalman filtering algorithm.

[0099] See also Figure 6 , Figure 6 FIG. 1 is a structural diagram of an electronic device disclosed in an embodiment of the present application. Figure 6 The electronic device shown may include: a processor 610, a storage 620, a display unit 630, an input unit 640, a sensor 650, an audio circuit 660 and other components.

[0100] The processor 610 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the storage 620, and calling data stored in the storage 620, so as to monitor the electronic device as a whole. Optionally, the processor 610 may include one or more processing units; optionally, the processor 610 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

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

[0102] The display unit 630 can be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 630 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 610 to determine the type of touch event. Then, the processor 610 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Figure 6 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.

[0103] The input unit 640 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 640 may include a touch panel and other input devices. A touch panel, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 640 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0104] The electronic device may also include at least one sensor 650, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the electronic device, and the gyroscope sensor can be used to determine the motion posture of the electronic device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; as for other sensors that the electronic device can also be configured with, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0105] The audio circuit 660 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 610 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the storage 620 for further processing.

[0106] Although not shown, the electronic device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.

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

[0108] In the embodiment of the present application, the processor 610 also has the following functions:

[0109] Obtaining a current first display refresh rate of the electronic device;

[0110] Determining a target filter coefficient according to a first display refresh rate;

[0111] When a touch operation is detected, the reported coordinates of the current touch point are determined based on the specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

[0112] In the embodiment of the present application, the processor 610 also has the following functions:

[0113] Searching for a filter coefficient corresponding to a first display refresh rate from a first relationship table; wherein the first relationship table includes at least one display refresh rate and a filter coefficient corresponding to each display refresh rate;

[0114] If found, the filter coefficient corresponding to the first display refresh rate in the first relationship table is used as the target filter coefficient.

[0115] In the embodiment of the present application, the processor 610 also has the following functions:

[0116] Sending a first instruction to the touch screen system through the terminal system, wherein the first instruction includes a target filter coefficient;

[0117] A first instruction is received through the touch screen system, a target filter coefficient is obtained from the first instruction, and the target filter coefficient is stored in a memory.

[0118] In the embodiment of the present application, the processor 610 also has the following functions:

[0119] The target filter coefficient is obtained from the memory through the touch screen system, and the reported point coordinates of the current touch point are determined according to the specified filtering algorithm, the target filter coefficient, the reported point coordinates of the historical touch points and the detected coordinates of the current touch point.

[0120] In the embodiment of the present application, the processor 610 also has the following functions:

[0121] If the filter coefficient corresponding to the first display refresh rate is not found in the first relationship table, the specified filter coefficient is used as the target filter coefficient through the touch system;

[0122] Through the touch screen system, the reported point coordinates of the current touch point are determined according to the specified filtering algorithm, the target filtering coefficient, the reported point coordinates of the historical touch points and the detected coordinates of the current touch point.

[0123] In the embodiment of the present application, the processor 610 also has the following functions:

[0124] When it is detected that the display refresh rate of the electronic device is updated, the current first display refresh rate of the electronic device is obtained.

[0125] In an embodiment of the present application, the specified filtering algorithm includes a weighted filtering algorithm or a Kalman filtering algorithm.

[0126] The embodiment of the present application discloses a computer-readable storage medium on which an executable program code is stored. When the executable program code is executed by a processor, the method described in the embodiment of the present application is implemented.

[0127] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer is enabled to implement the method described in the embodiment of the present application.

[0128] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method described in the embodiment of the present application.

[0129] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0130] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0131] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0132] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0134] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0135] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0136] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0137] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0138] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0139] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0140] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0141] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A touch detection method, characterized in that: The method further comprises: Obtaining the current first display refresh rate of the electronic device; determining a target filter coefficient according to the first display refresh rate; When a touch operation is detected, the reported coordinates of the current touch point are determined according to a specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

2. The method according to claim 1, characterized in that The determining a target filter coefficient according to the first display refresh rate includes: Searching for a filter coefficient corresponding to the first display refresh rate from a first relationship table; wherein the first relationship table includes at least one display refresh rate and a filter coefficient corresponding to each display refresh rate; If found, the filter coefficient corresponding to the first display refresh rate in the first relationship table is used as the target filter coefficient.

3. The method according to claim 2, characterized in that The electronic device includes a terminal system and a touch screen system. After using the filter coefficient corresponding to the first display refresh rate in the first relationship table as a target filter coefficient, the method further includes: The terminal system sends a first instruction to the touch screen system, where the first instruction includes the target filter coefficient; The touch screen system receives the first instruction, obtains the target filter coefficient from the first instruction, and stores the target filter coefficient in a memory.

4. The method according to claim 3, characterized in that The determining the reported coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point includes: The touch screen system obtains the target filter coefficient from the memory and determines the reported coordinates of the current touch point according to a specified filtering algorithm, the target filter coefficient, the reported coordinates of historical touch points and the detected coordinates of the current touch point.

5. The method according to claim 2, characterized in that The electronic device includes a touch screen system, and the method further includes: If the filter coefficient corresponding to the first display refresh rate is not found in the first relationship table, the touch system uses the specified filter coefficient as the target filter coefficient; The step of determining the reported coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point includes: The touch screen system determines the reported coordinates of the current touch point according to a specified filtering algorithm, the target filtering coefficient, the reported coordinates of the historical touch points, and the detected coordinates of the current touch point.

6. The method according to claim 1, wherein The obtaining of the current first display refresh rate of the electronic device includes: When it is detected that the display refresh rate of the electronic device is updated, the current first display refresh rate of the electronic device is obtained.

7. The method according to claim 1, characterized in that The specified filtering algorithm includes a weighted filtering algorithm or a Kalman filtering algorithm.

8. A touch detection device, characterized in that: include: A refresh rate acquisition unit, configured to acquire a current first display refresh rate of the electronic device; a filter coefficient determining unit, configured to determine a target filter coefficient according to the first display refresh rate; The touch point reporting unit is used to determine the reporting coordinates of the current touch point according to the specified filtering algorithm, the target filtering coefficient, the reporting coordinates of the historical touch points and the detection coordinates of the current touch point when a touch operation is detected.

9. An electronic device, characterized in that: include: a memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Compensation method and touch sensing circuit for compensating touch sensing data for non-uniformity of a touch display panel

    TWI939129B