A baseline tracking method and apparatus for a touchscreen
Patent Information
- Application Number
- CN202211619287.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2042-12-15
AI Technical Summary
如果基线值不准确,或无法及时更新,甚至更新错误的话,会导致整个电子设备无法正常工作,因此如何提高基线值跟踪的准确性成为大家比较关注的问题
[0008] In this embodiment, when the touch intensity is determined to be greater than or equal to a first threshold, the baseline value is also tracked and updated. This avoids the problem in related technologies where the baseline value is not adjusted when the touch data is greater than or equal to the first threshold, leading to a cumulative increase in the deviation of the baseline value. Furthermore, it avoids the problem in related technologies where large baseline value deviations cause frequent touchscreen malfunctions and performance degradation. Furthermore, since environmental changes corresponding to different frames affect touch data, considering the touch data of the current frame and the previous historical frame when updating the first baseline value makes the second baseline value more closely match the current environmental state of the touchscreen.
Smart Images

Figure CN115877978B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch technology, and more particularly to a baseline tracking method and apparatus for a touch screen. Background Technology
[0002] With the improvement of people's living standards and the rapid development of science and technology, various touch technologies are increasingly widely used in electronic devices. In related technologies, the touch screen and display screen are integrated onto a single chip, collecting touch data and supporting multi-touch via a mutual capacitance touchscreen. Since the detection principle of a touchscreen is to detect changes in its capacitance, in practical applications, touch data is affected by temperature. When the external or internal environment, such as temperature, rises, the sensed capacitance increases with the temperature. To reduce the impact of environmental changes on touch data, baseline values need to be updated. If the baseline value is inaccurate, cannot be updated in a timely manner, or is even updated incorrectly, the entire electronic device will malfunction. Therefore, how to improve the accuracy of baseline value tracking has become a major concern. Summary of the Invention
[0003] This application provides a baseline tracking method and apparatus for a touchscreen.
[0004] The first aspect of this application provides a baseline tracking method for a touchscreen, comprising:
[0005] Obtain the first touch data of the current frame of the touchscreen;
[0006] The touch intensity of the touch screen is determined based on the first touch data and the first baseline value of the previous frame of the touch screen.
[0007] In response to the touch intensity being greater than or equal to a first threshold, the first baseline value is updated based on the first touch data and the second touch data of the previous frame to obtain the second baseline value of the current frame.
[0008] In this embodiment, when the touch intensity is determined to be greater than or equal to a first threshold, the baseline value is also tracked and updated. This avoids the problem in related technologies where the baseline value is not adjusted when the touch data is greater than or equal to the first threshold, leading to a cumulative increase in the deviation of the baseline value. Furthermore, it avoids the problem in related technologies where large baseline value deviations cause frequent touchscreen malfunctions and performance degradation. Furthermore, since environmental changes corresponding to different frames affect touch data, considering the touch data of the current frame and the previous historical frame when updating the first baseline value makes the second baseline value more closely match the current environmental state of the touchscreen.
[0009] A second aspect of this application provides a baseline tracking device for a touchscreen, comprising:
[0010] The acquisition module is used to acquire the first touch data of the current frame of the touchscreen;
[0011] The determination module is used to determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen;
[0012] The update module is used to update the first baseline value based on the first touch data and the second touch data of the previous frame when the touch intensity is greater than or equal to a first threshold, so as to obtain the second baseline value of the current frame.
[0013] A third aspect of this application provides an electronic device including a baseline tracking device for a touchscreen as described in a second aspect of this application.
[0014] A fourth aspect of this application provides a touch chip, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the touchscreen baseline tracking method proposed in the first aspect of this application.
[0015] A fifth aspect of this application provides a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the method proposed in the first aspect of this application.
[0016] A sixth aspect of this application provides a computer program product including a computer program that, when executed by a processor in a communication device, implements the method proposed in the first aspect of this application.
[0017] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0018] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0019] Figure 1 A schematic flowchart illustrating a baseline tracking method for a touchscreen provided in an embodiment of this application;
[0020] Figure 2 A schematic flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application;
[0021] Figure 3A schematic flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application;
[0022] Figure 4 A schematic flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application;
[0023] Figure 5 A schematic diagram of the structure of a baseline tracking device for a touch screen provided in an embodiment of this application;
[0024] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application;
[0025] Figure 7 This is a schematic diagram of the structure of another electronic device provided according to an embodiment of this application;
[0026] Figure 8 This is a schematic diagram of the structure of a touch chip according to an embodiment of this application. Detailed Implementation
[0027] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0028] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a” and “the” as used in the embodiments of this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0029] It should be understood that although the terms first, second, third, etc., may be used to describe various information in the embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" and "suppose" as used herein can be interpreted as "when," "when," or "in response to a determination."
[0030] Embodiments of this application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0031] The baseline tracking method and apparatus for a touchscreen according to embodiments of this application are described below with reference to the accompanying drawings.
[0032] Figure 1 This is a schematic flowchart illustrating a baseline tracking method for a touchscreen provided in an embodiment of this application. Figure 1 As shown, the method includes, but is not limited to, the following steps:
[0033] S101, Obtain the first touch data of the current frame of the touch screen.
[0034] The touchscreen baseline tracking method provided in this application updates the touchscreen baseline value starting from the initial baseline value at set time intervals. This application explains the touchscreen baseline value update process using one such time interval as an example.
[0035] It is understood that the touchscreen baseline tracking method provided in this application embodiment is applicable to electronic devices with touchscreens. For example, the electronic device may be a mobile phone, tablet computer, laptop, wearable device, smart TV, in-vehicle computer, etc.
[0036] In this embodiment, a touch sensing component can be disposed below the touchscreen of the electronic device. This component senses touch points to obtain the first touch data of the current frame. Optionally, the touch sensing component can be an under-screen sensor. When a finger or other medium touches the screen, the coordinates of the touch point can be determined by detecting voltage, current, sound waves, or infrared light, depending on the sensing method. For example, a capacitive touch panel utilizes the capacitance change generated by the electrostatic interaction between arranged transparent electrodes and the human body to detect the coordinates from the generated current or voltage.
[0037] The capacitance value sensed by the touch sensing component in a non-touch state can be called the baseline value. The baseline value is closely related to the environment and is a fundamental condition for the normal operation of the entire system, affecting its performance and functionality. The non-touch state can be understood as a state where the user's finger is not touching the screen and there is no external noise. In other words, when there is no input on the touchscreen, the baseline value is the signal value sensed by the touch sensing component. Here, noise refers to unwanted signals generated by electronic devices due to electrical or mechanical factors.
[0038] In some implementations, touch data may include the position information of the touch point and the capacitance value, wherein the position information may include X-axis coordinate values and Y-axis coordinate values.
[0039] S102, determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen.
[0040] In this embodiment, starting from the initial frame of the touchscreen, the baseline value of the touchscreen can be continuously tracked to ensure the accuracy of the touch data. It is understood that the baseline value can be updated every frame or at a set frame interval; this application does not limit this.
[0041] After acquiring the first touch data, the touch intensity of the touchscreen can be determined based on the first touch data and the first baseline value of the previous frame. Optionally, the first baseline value of the previous frame is a reference touch data. The first touch data can be subtracted from the first baseline value of the previous frame to obtain a difference, which reflects the difference between the touch in the current frame and the first baseline value. In this embodiment, this difference is the touch intensity of the touchscreen. It is understood that the touch intensity of the touchscreen can be obtained by subtracting the capacitance value in the first touch data from the first baseline value.
[0042] S103, in response to the touch intensity being greater than or equal to the first threshold, the first baseline value is updated based on the first touch data and the second touch data of the previous frame to obtain the second baseline value of the current frame.
[0043] In practice, when the baseline value is accurately tracked or updated, the difference between the touch data of two adjacent frames will be stable within a certain range. If the difference between the touch data of two adjacent frames is large, it often indicates that the baseline value tracking of the touch screen is deviating.
[0044] In this embodiment, after obtaining the touch intensity of the touchscreen, the touch intensity can be compared with a preset first threshold, which is an intensity threshold. When it is determined that the touch intensity is greater than or equal to the first threshold, it indicates that the touch data of two adjacent frames exceeds the range of the first threshold, and it can be determined that the baseline value of the touchscreen has deviated, requiring updating to correct the deviation.
[0045] Optionally, the first baseline value can be updated based on the first touch data and the second touch data of the previous frame to obtain the second baseline value of the current frame. In some implementations, incremental touch data between the first and second touch data can be obtained, and the first baseline value can be updated based on the incremental touch data to obtain the second baseline value of the current frame. In this embodiment, since environmental changes corresponding to different frames will affect the touch data, when updating the first baseline value, considering the touch data of the current frame and the previous historical frame, the incremental touch data of two adjacent frames can be mapped onto the baseline value, making the second baseline value more consistent with the current environmental state of the touchscreen.
[0046] It is understood that, in the embodiments of this application, the first touch data of the current frame, the second touch data of the previous frame, the baseline value, the touch intensity, and the first threshold can be stored in a designated space.
[0047] In this embodiment, first touch data of the current frame of the touchscreen is obtained. Based on the first touch data and the first baseline value of the previous frame, the touch intensity of the touchscreen is determined. In response to a touch intensity greater than or equal to a first threshold, the first baseline value is updated based on the first touch data and the second touch data of the previous frame to obtain the second baseline value of the current frame. In this embodiment, even when the touch intensity is greater than or equal to the first threshold, the baseline value is still tracked and updated. This avoids the problem in related technologies where baseline value adjustment is not performed when touch data is greater than or equal to the first threshold, leading to a cumulative increase in baseline value deviation. This embodiment also avoids the problem in related technologies where large baseline value deviations cause frequent touchscreen malfunctions and performance degradation. Furthermore, since environmental changes corresponding to different frames affect touch data, considering the touch data of the current frame and the previous historical frame when updating the first baseline value makes the second baseline value more closely match the current environmental state of the touchscreen.
[0048] Figure 2 This is a flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application. Figure 2 As shown, the method includes, but is not limited to, the following steps:
[0049] S201, Obtain the first touch data of the current frame of the touch screen.
[0050] S202, determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen.
[0051] For a detailed description of steps S201 to S202, please refer to the relevant content in the above embodiments, such as S101 to S102, which will not be repeated here.
[0052] S203, when the touch intensity is greater than or equal to the first threshold, acquire incremental touch data between the first touch data and the second touch data.
[0053] When the touch intensity is determined to be greater than or equal to a first threshold, it indicates that the touch data of two adjacent frames exceeds the range of the first threshold. This suggests a deviation in the touchscreen's baseline value, requiring updating to correct the deviation. In this embodiment, the first touch data and the second touch data can be subtracted to obtain the incremental touch data for two adjacent frames.
[0054] As one possible implementation, incremental touch data between the first touch data and the second touch data can be acquired after a set time has elapsed since the duration of the touch intensity being greater than or equal to the first threshold. This can avoid the problem of frequent updates to the baseline value due to misidentification.
[0055] S204, when the incremental touch data is less than the second threshold, the first baseline value is updated based on the incremental touch data to obtain the second baseline value.
[0056] In this embodiment, to ensure the stability of touchscreen detection, after acquiring incremental touch data, the incremental touch data can be further compared with a second threshold, where the second threshold is a preset capacitance value. If the touch intensity is greater than or equal to the first threshold and the incremental touch data is less than the second threshold, the first baseline value of the previous frame is updated.
[0057] Generally, the changes in touch data between two adjacent frames are small. If the changes between the touch data of two adjacent frames are large, it indicates that there is an anomaly in the detection of the current frame. If the first baseline value of the current frame is updated by incremental touch data, the deviation will often increase. In order to ensure the accuracy of baseline tracking, in this embodiment, if the incremental touch data is greater than or equal to the second threshold, the first baseline value can be directly used as the second baseline value of the current frame, and the next frame can be detected again. This can avoid the problem of increased deviation due to the update, thereby further improving the accuracy of touch data detection.
[0058] In some implementations, a first correction amount for the first baseline value can be determined based on incremental touch data. Further, the first baseline value is corrected based on this first correction amount to obtain a second baseline value. Optionally, a first set coefficient can be preset. After determining the incremental touch data, the first set coefficient can be multiplied by the incremental touch data to obtain a first product, which serves as the first correction amount for the first baseline value. Further, the first sum of the first correction amount and the first baseline value is obtained as the second baseline value. It should be noted that the value range of the first set coefficient is between 0 and 1; for example, if the second set coefficient is 'a', then 1 > a > 0.
[0059] It is understood that, in the embodiments of this application, the first touch data of the current frame, the second touch data of the previous frame, the baseline value, the touch intensity, and the first threshold, the second threshold, and the first set coefficient can be stored in a designated space.
[0060] As one possible implementation, the first baseline value can be updated after a set time has elapsed since the incremental touch data is less than the second threshold. This can avoid the problem of frequent updates to the baseline value due to misidentification.
[0061] In this embodiment, when the touch intensity is greater than or equal to the first threshold, the baseline value is no longer estimated based on the touch intensity. Instead, the baseline value is estimated by obtaining the change between the first touch data and the second touch data. When updating the first baseline value, the touch data of the current frame and the previous historical frame are considered. The incremental touch data of two adjacent frames can be mapped onto the baseline value, which makes the second baseline value more consistent with the current environmental state of the touchscreen. Furthermore, continuous tracking of the baseline value is achieved, which can prevent touchscreen malfunctions and performance degradation caused by sudden temperature changes.
[0062] Figure 3 This is a flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application. Figure 3 As shown, the method includes, but is not limited to, the following steps:
[0063] S301: Starting from the initial baseline value of the touchscreen, obtain the first touch data of the current frame of the touchscreen.
[0064] One possible implementation is to acquire touch data from the initial frame of the touchscreen and determine an initial baseline value based on the touch data. Optionally, the capacitance value in the touch data of the initial frame can be used as the initial baseline value.
[0065] As another possible implementation, starting from the initial frame of the touchscreen, N frames of touch data are acquired, where N is a positive integer greater than 1. The average value of the N frames of touch data is then obtained as the initial baseline value. For example, starting from the initial frame, the first 5 frames can be taken, and the touch data of the first 5 frames can be averaged to obtain the baseline value.
[0066] As another possible implementation, the touchscreen has a set initial baseline value.
[0067] In this embodiment, starting from the initial baseline value of the touchscreen, the baseline value of the touchscreen is updated at set time intervals. That is, the baseline value of the previous time interval can be updated at each time interval.
[0068] For a detailed description of obtaining the first touch data of the current frame of the touch screen, please refer to the relevant content in the above embodiments, such as the description in step S101, which will not be repeated here.
[0069] S302, determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen.
[0070] For a detailed description of step S302, please refer to the relevant content in the above embodiments, such as the description in step S102, which will not be repeated here.
[0071] S303, determine whether the touch intensity is greater than or equal to the first threshold.
[0072] If the touch intensity is determined to be greater than or equal to the first threshold, proceed to step S304; if the touch intensity is determined to be less than the first threshold, proceed to step S308.
[0073] S304, acquire incremental touch data between the first touch data and the second touch data.
[0074] For a detailed description of step S304, please refer to the relevant content in the above embodiments, such as the description in step S102, which will not be repeated here.
[0075] S305, determine whether the incremental touch data is less than the second threshold.
[0076] If the incremental touch data is determined to be less than the second threshold, proceed to step S306; if the incremental touch data is determined to be greater than or equal to the second threshold, proceed to step S307.
[0077] S306, the first baseline value is updated based on incremental touch data to obtain the second baseline value.
[0078] In some implementations, a first correction amount can be determined based on incremental touch data. Further, the first baseline value is corrected based on this first correction amount to obtain a second baseline value. For details, please refer to the relevant descriptions in the above embodiments; they will not be repeated here.
[0079] S307, directly determine the first baseline value as the second baseline value.
[0080] To ensure the accuracy of baseline tracking, in this embodiment of the application, if the incremental touch data is greater than the second threshold, the first baseline value can be directly used as the second baseline value of the current frame, and the next frame can be re-detected. This can avoid the problem of increased deviation due to updates, thereby further improving the accuracy of touch data detection.
[0081] S308, update the first baseline value based on the touch intensity to obtain the second baseline value.
[0082] In some implementations, a second correction amount can be determined based on the increased touch intensity. Further, the first baseline value is corrected based on this second correction amount to obtain a second baseline value. Optionally, a second set coefficient can be preset. After determining the touch intensity, the second set coefficient can be multiplied by the touch intensity to obtain a second product, which serves as the second correction amount for the first baseline value. Further, the second sum of the second correction amount and the first baseline value is obtained as the second baseline value.
[0083] It should be noted that the value of the second set coefficient is between 0 and 1. For example, if the second set coefficient is b, then 1 > b > 0.
[0084] S309, update the touch intensity of the touch screen based on the first touch data and the second baseline value.
[0085] After obtaining the second baseline value of the current frame, in order to obtain a more accurate touch intensity, the touch intensity of the touchscreen can be re-determined based on the first touch data and the second baseline value. Optionally, the first touch data can be subtracted from the second baseline value of the current frame to obtain a difference, and this difference can be used to determine the updated touch intensity of the touchscreen.
[0086] It is understood that, in the embodiments of this application, the first touch data of the current frame, the second touch data of the previous frame, the baseline value, the touch intensity, the first threshold, the second threshold, the first set coefficient, and the second set coefficient can be stored in a designated space.
[0087] In this embodiment, when the touch intensity is greater than or equal to a first threshold, the baseline value is no longer estimated based on touch intensity. Instead, it is estimated by obtaining the change between the first touch data and the second touch data. When updating the first baseline value, the touch data of the current frame and the previous historical frame are considered. This allows the incremental touch data of two adjacent frames to be mapped onto the baseline value, making the second baseline value more closely match the current environmental state of the touchscreen. When the touch intensity is less than the first threshold, the baseline value continues to be predicted based on the touch intensity. This enables continuous tracking of the baseline value and prevents touchscreen malfunctions and performance degradation caused by sudden temperature changes.
[0088] Figure 4 This is a flowchart illustrating another touchscreen baseline tracking method provided in an embodiment of this application. Figure 4 As shown, the method includes, but is not limited to, the following steps:
[0089] The original Nth frame touch data is subtracted from the first baseline value to obtain a touch intensity Δi; further, it is determined whether the absolute value of the touch intensity Δi (Abs(Δi)) is less than the first threshold (Thresholed, Th1).
[0090] If Abs(△i) is greater than or equal to Th1, the touch data of the Nth frame is subtracted from the touch data of the (N-1)th frame to obtain the incremental touch data △d; further, it is determined whether the absolute value (Abs(△d)) of the incremental touch data △d is less than the second threshold Th2.
[0091] When Abs(△d) is less than Th2, the first correction amount of the first baseline value is obtained by multiplying the incremental touch data △d by the first set coefficient a. Then, the first baseline value is added to the first correction amount to obtain a new second baseline value. When Abs(△d) is greater than or equal to Th2, the first baseline value can be used as the second baseline value. The first set coefficient a ranges from 0 to 1, i.e., 1 > a > 0.
[0092] When Abs(△i) is less than Th1, the second correction amount of the first baseline value is obtained by multiplying the touch intensity △i and the second set coefficient b. Furthermore, the first baseline value is added to the second correction amount to obtain a new second baseline value. The value of the second set coefficient b is between 0 and 1, i.e., 1>b>0.
[0093] In this embodiment, when the touch intensity is greater than or equal to a first threshold, the baseline value is no longer estimated based on touch intensity. Instead, it is estimated by obtaining the change between the first touch data and the second touch data. When updating the first baseline value, the touch data of the current frame and the previous historical frame are considered. This allows the incremental touch data of two adjacent frames to be mapped onto the baseline value, making the second baseline value more closely match the current environmental state of the touchscreen. When the touch intensity is less than the first threshold, the baseline value continues to be predicted based on the touch intensity. This enables continuous tracking of the baseline value and prevents touchscreen malfunctions and performance degradation caused by sudden temperature changes.
[0094] It should be noted that the embodiments provided in this application can be applied to touch fields such as trajectory prediction, touch point tracking, gesture prediction, stroke recognition, and handwriting recognition.
[0095] Figure 5 This is a schematic diagram of the baseline tracking device for a touchscreen according to an embodiment of this application. Figure 5 As shown, the baseline tracking device 500 of the touch screen includes: an acquisition module 501, a determination module 502, and an update module 503.
[0096] The acquisition module 501 is used to acquire the first touch data of the current frame of the touch screen;
[0097] The determining module 502 is used to determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen;
[0098] The update module 503 is used to update the first baseline value based on the first touch data and the second touch data of the previous frame when the touch intensity is greater than or equal to the first threshold, so as to obtain the second baseline value of the current frame.
[0099] In some implementations, the update module 503 is further configured to:
[0100] Obtain incremental touch data between the first touch data and the second touch data;
[0101] In response to the incremental touch data being less than a second threshold, the first baseline value is updated based on the incremental touch data to obtain the second baseline value.
[0102] In some implementations, the update module 503 is further configured to:
[0103] Based on the incremental touch data, obtain a first correction amount for the first baseline value;
[0104] Obtain the first sum of the first correction amount and the first baseline value, and use it as the second baseline value.
[0105] In some implementations, the update module 503 is further configured to:
[0106] If the touch intensity is less than the first threshold, the first baseline value is updated based on the touch intensity to obtain the second baseline value.
[0107] In some implementations, the update module 503 is further configured to:
[0108] Based on the touch intensity, a second correction amount is determined for the first baseline value;
[0109] Obtain the second sum of the second correction amount and the first baseline value, and use it as the second baseline value.
[0110] In some implementations, the update module 503 is further configured to:
[0111] The baseline value of the touchscreen is updated according to the set frame interval, starting from the initial baseline value of the touchscreen.
[0112] In some implementations, the update module 503 is further configured to:
[0113] Obtain the touch data of the initial frame of the touchscreen, and use the touch data of the initial frame as the initial baseline value; or,
[0114] Starting from the initial frame of the touchscreen, acquire touch data for N frames, where N is a positive integer greater than 1;
[0115] The average value of the touch data of the N frames is obtained as the initial baseline value.
[0116] In some implementations, the update module 503 is further configured to:
[0117] After obtaining the second baseline value of the next frame, the touch intensity of the touch screen is updated based on the first touch data and the second baseline value.
[0118] It should be noted that for details not disclosed in the baseline tracking device of the touch screen in the embodiments of this application, please refer to the details disclosed in the baseline tracking method of the touch screen in the above embodiments of this application, which will not be repeated here.
[0119] In this embodiment, when the touch intensity is greater than or equal to a first threshold, the baseline value is no longer estimated based on touch intensity. Instead, it is estimated by obtaining the change between the first touch data and the second touch data. When updating the first baseline value, the touch data of the current frame and the previous historical frame are considered. This allows the incremental touch data of two adjacent frames to be mapped onto the baseline value, making the second baseline value more closely match the current environmental state of the touchscreen. When the touch intensity is less than the first threshold, the baseline value continues to be predicted based on the touch intensity. This enables continuous tracking of the baseline value and prevents touchscreen malfunctions and performance degradation caused by sudden temperature changes.
[0120] Figure 6 This is a block diagram of an electronic device according to an exemplary embodiment. For example... Figure 6As shown, the electronic device 600 includes a baseline tracking device 500 for a touchscreen. This electronic device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be network-attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.
[0121] According to an embodiment of this application, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the touchscreen baseline tracking method as described above.
[0122] To implement the above embodiments, this application also proposes a storage medium.
[0123] When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the baseline tracking method of the touch screen as described above.
[0124] To implement the above embodiments, this application also provides a computer program product.
[0125] When the computer program product is executed by the processor of the electronic device, it enables the electronic device to perform the method described above.
[0126] Figure 7 This is a block diagram of an electronic device according to an exemplary embodiment. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0127] like Figure 7As shown, the electronic device 700 includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a memory 706 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0128] The following components are connected to I / O interface 705: memory 706 including hard disk; and communication section 707 including network interface card such as LAN (Local Area Network) card, modem, etc., communication section 707 performs communication processing via a network such as the Internet; drive 708 is also connected to I / O interface 705 as needed.
[0129] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 707. When the computer program is executed by the processor 701, it performs the functions defined in the methods of this application.
[0130] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, which can be executed by a processor 701 of an electronic device 700 to perform the above-described method. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0131] In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.
[0132] Figure 8 This is a structural block diagram of a touch chip according to an exemplary embodiment. Figure 8 The touch chip shown is merely an example and should not be construed as limiting the functionality or scope of the embodiments described in this application. Figure 8 As shown, the touch chip 800 includes a processor 801 and a memory 802. The memory 802 is used to store program code, and the processor 801 is connected to the memory 802 to read program code from the memory 802 to implement the baseline tracking method of the touch screen in the above embodiment.
[0133] Alternatively, the number of processors 801 can be one or more.
[0134] Optionally, the touch chip may also include an interface 803, and there may be multiple interfaces 803. This interface 803 can connect to an application and can receive data from external devices such as sensors.
[0135] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0136] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A baseline tracking method for a touchscreen, characterized in that, include: Obtain the first touch data of the current frame of the touchscreen; The touch intensity of the touch screen is determined based on the first touch data and the first baseline value of the previous frame of the touch screen. In response to the touch intensity being greater than or equal to a first threshold, incremental touch data between the first touch data and the second touch data of the previous frame is obtained; In response to the incremental touch data being less than a second threshold, a first correction amount for the first baseline value is obtained based on the incremental touch data, and a first sum of the first correction amount and the first baseline value is obtained as the second baseline value.
2. The method according to claim 1, characterized in that, The method further includes: In response to the touch intensity being less than the first threshold, the first baseline value is updated based on the touch intensity to obtain the second baseline value.
3. The method according to claim 2, characterized in that, The step of updating the first baseline value based on the touch intensity to obtain the second baseline value includes: Based on the touch intensity, a second correction amount is determined for the first baseline value; Obtain the second sum of the second correction amount and the first baseline value, and use it as the second baseline value.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: The baseline value of the touchscreen is updated according to the set frame interval, starting from the initial baseline value of the touchscreen.
5. The method according to any one of claims 1-3, characterized in that, The process of determining the initial baseline value of the touchscreen includes: Obtain the touch data of the initial frame of the touchscreen, and use the touch data of the initial frame as the initial baseline value; or, Starting from the initial frame of the touchscreen, acquire touch data for N frames, where N is a positive integer greater than 1; The average value of the touch data of the N frames is obtained as the initial baseline value.
6. The method according to any one of claims 1-3, characterized in that, After obtaining the second baseline value of the current frame, the method further includes: The touch intensity of the touchscreen is updated based on the first touch data and the second baseline value.
7. A baseline tracking device for a touchscreen, characterized in that, include: The acquisition module is used to acquire the first touch data of the current frame of the touchscreen; The determination module is used to determine the touch intensity of the touch screen based on the first touch data and the first baseline value of the previous frame of the touch screen; The update module is used to obtain incremental touch data between the first touch data and the second touch data of the previous frame in response to the touch intensity being greater than or equal to a first threshold. In response to the incremental touch data being less than a second threshold, a first correction amount for the first baseline value is obtained based on the incremental touch data, and a first sum of the first correction amount and the first baseline value is obtained as the second baseline value.
8. The apparatus according to claim 7, characterized in that, The update module is also used for: If the touch intensity is less than the first threshold, the first baseline value is updated based on the touch intensity to obtain the second baseline value.
9. The apparatus according to claim 8, characterized in that, The update module is also used for: Based on the touch intensity, a second correction amount is determined for the first baseline value; Obtain the second sum of the second correction amount and the first baseline value, and use it as the second baseline value.
10. The apparatus according to any one of claims 7-9, characterized in that, The update module is also used for: The baseline value of the touchscreen is updated according to the set frame interval, starting from the initial baseline value of the touchscreen.
11. The apparatus according to any one of claims 7-9, characterized in that, The update module is also used for: Obtain the touch data of the initial frame of the touch screen, and use the touch data of the initial frame as the initial baseline value; or, Starting from the initial frame of the touchscreen, acquire touch data for N frames, where N is a positive integer greater than 1; The average value of the touch data of the N frames is obtained as the initial baseline value.
12. The apparatus according to any one of claims 7-9, characterized in that, The update module is also used for: After obtaining the second baseline value of the current frame, the touch intensity of the touch screen is updated based on the first touch data and the second baseline value.
13. An electronic device, characterized in that, include: The baseline tracking device for a touchscreen as described in any one of claims 7 to 12.
14. A touch chip, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the method as described in any one of claims 1 to 6.
15. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1 to 6.
16. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-6.
Citation Information
Patent Citations
Baseline updating method and touch device
CN102855032A
Touch detection method and device, touch screen and electronic terminal
CN107624176A
Touch Sensing System and Driving Method Thereof
US20130106735A1