[go: up one dir, main page]

CN115877978A - A baseline tracking method and device for a touch screen - Google Patents

A baseline tracking method and device for a touch screen Download PDF

Info

Publication number
CN115877978A
CN115877978A CN202211619287.7A CN202211619287A CN115877978A CN 115877978 A CN115877978 A CN 115877978A CN 202211619287 A CN202211619287 A CN 202211619287A CN 115877978 A CN115877978 A CN 115877978A
Authority
CN
China
Prior art keywords
touch
baseline value
touch data
touch screen
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211619287.7A
Other languages
Chinese (zh)
Inventor
李洙遠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202211619287.7A priority Critical patent/CN115877978A/en
Publication of CN115877978A publication Critical patent/CN115877978A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The application provides a baseline tracking method and a baseline tracking device of a touch screen, and relates to the technical field of touch control. The method comprises the following steps: the method comprises the steps of obtaining first touch data of a current frame of the touch screen, determining the touch intensity of the touch screen according to the first touch data and a first baseline value of a previous frame of the touch screen, responding to the fact that the touch intensity is larger than or equal to a first threshold value, and updating the first baseline value according to the first touch data and second touch data of the previous frame to obtain a second baseline value of the current frame. When the touch intensity is determined to be greater than or equal to the first threshold, the baseline value is tracked and updated, so that the problem that in the related art, when the touch data is greater than or equal to the first threshold, the baseline value is not adjusted, and the deviation of the baseline value is increased accumulatively can be avoided. When the first baseline value is updated, the touch data of the current frame and the previous historical frame are considered, so that the second baseline value is more matched with the environmental state of the touch screen.

Description

一种触摸屏的基线跟踪方法及其装置A baseline tracking method and device for a touch screen

技术领域technical field

本申请涉及触控技术领域,尤其涉及一种触摸屏的基线跟踪方法及其装置。The present application relates to the field of touch technology, in particular to a baseline tracking method and device for a touch screen.

背景技术Background technique

随着人们生活水平的提高和科学技术的飞速发展,各种触控技术越来越广泛应用于电子设备中。相关技术中,将触摸和显示屏集成在一块芯片上,通过互电容式触摸屏收集触摸数据并支持多点。由于触摸屏的检测原理就是检测触摸屏电容的变化,实际应用中,触摸数据会受到温度的影响,当外部环境或内部环境如温度上升时,所感知到电容量会随温度上升而增加。为了降低环境变化对触摸数据的影响,需要对基线值进行更新,以降低环境对触摸数据的影响。如果基线值不准确,或无法及时更新,甚至更新错误的话,会导致整个电子设备无法正常工作,因此如何提高基线值跟踪的准确性成为大家比较关注的问题。With the improvement of people's living standards and the rapid development of science and technology, various touch technologies are more and more widely used in electronic devices. In related technologies, touch and display are integrated on one chip, and touch data is collected through a mutual capacitance touch screen to support multiple points. Since the detection principle of the touch screen is to detect the change of the capacitance of the touch screen, in practical applications, the touch data will be affected by the temperature. When the external environment or internal environment such as temperature rises, the perceived capacitance will increase with the temperature rise. In order to reduce the impact of environmental changes on the touch data, the baseline value needs to be updated to reduce the impact of the environment on the touch data. If the baseline value is inaccurate, or cannot be updated in time, or even if the update is wrong, the entire electronic device will not work properly. Therefore, how to improve the accuracy of baseline value tracking has become a concern for everyone.

发明内容Contents of the invention

本申请实施例提供一种触摸屏的基线跟踪方法及其装置。Embodiments of the present application provide a baseline tracking method and device for a touch screen.

本申请第一方面实施例提出了一种触摸屏的基线跟踪方法,包括:The embodiment of the first aspect of the present application proposes a baseline tracking method for a touch screen, including:

获取触摸屏当前帧的第一触摸数据;Obtain the first touch data of the current frame of the touch screen;

根据所述第一触摸数据和所述触摸屏前一帧的第一基线值,确定所述触摸屏的触摸强度;determining the touch intensity of the touch screen according to 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, the first baseline value is updated according to the first touch data and the second touch data of a previous frame to obtain a second baseline value of the current frame.

本申请实施例中,在确定出触摸强度大于或等于第一阈值的情况下,同样对基线值进行跟踪和更新,可以避免相关技术中在触摸数据大于或等于第一阈值时不进行基线值的调整,而导致的基线值的偏差会累计增大的问题。进一步地,可以避免相关技术中导致的基线值偏差较大使得触摸屏频繁故障和性能下降的问题。进一步地,由于不同帧对应的环境变化会影响触摸数据,在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以使第二基线值与触摸屏当前的环境状态更加匹配。In the embodiment of the present application, when it is determined that the touch intensity is greater than or equal to the first threshold, the baseline value is also tracked and updated, which can avoid the problem of not performing the baseline value when the touch data is greater than or equal to the first threshold in the related art. Adjustment, the resulting deviation from the baseline value will increase cumulatively. Further, it can avoid the problems of frequent failures and performance degradation of the touch screen caused by the large deviation of the baseline value in the related art. Further, since the environment 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 second baseline value can be more closely related to the current environment state of the touch screen. match.

本申请第二方面实施例提出了一种触摸屏的基线跟踪装置,包括:The embodiment of the second aspect of the present application proposes a baseline tracking device for a touch screen, including:

获取模块,用于获取触摸屏当前帧的第一触摸数据;An acquisition module, configured to acquire the first touch data of the current frame of the touch screen;

确定模块,用于根据所述第一触摸数据和所述触摸屏前一帧的第一基线值,确定所述触摸屏的触摸强度;A determining module, configured to determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen;

更新模块,用于在所述触摸强度大于或者等于第一阈值,根据所述第一触摸数据和前一帧的第二触摸数据,对所述第一基线值进行更新,得到当前帧的第二基线值。An update module, configured to update the first baseline value according to 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, to obtain the second touch data of the current frame. baseline value.

本申请第三方面实施例提出了一种电子设备,包括:本申请第二方面实施例提出的触摸屏的基线跟踪装置。The embodiment of the third aspect of the present application provides an electronic device, including: the touch screen baseline tracking device provided in the embodiment of the second aspect of the present application.

本申请第四方面实施例提出了一种触控芯片,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现本申请第一方面实施例提出的触摸屏的基线跟踪方法。The embodiment of the fourth aspect of the present application proposes a touch chip, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the present invention. The baseline tracking method of the touch screen proposed in the embodiment of the first aspect of the application.

本申请第五方面实施例提出了一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本申请第一方面实施例提出的方法。The embodiment of the fifth aspect of the present application provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the Methods.

本申请第六方面实施例提出了一种计算机程序产品,包括计算机程序,所述计算机程序在被通信设备中的处理器执行时实现本申请第一方面实施例提出的方法。The embodiment of the sixth aspect of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor in the communication device, the method provided in the embodiment of the first aspect of the present application is implemented.

本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the 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 the application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1为本申请实施例所提供的一种触摸屏的基线跟踪方法的流程示意图;FIG. 1 is a schematic flowchart of a baseline tracking method for a touch screen provided in an embodiment of the present application;

图2为本申请实施例所提供的另一种触摸屏的基线跟踪方法的流程示意图;FIG. 2 is a schematic flow chart of another baseline tracking method for a touch screen provided in an embodiment of the present application;

图3为本申请实施例所提供的另一种触摸屏的基线跟踪方法的流程示意图;FIG. 3 is a schematic flow chart of another baseline tracking method for a touch screen provided in an embodiment of the present application;

图4为本申请实施例所提供的另一种触摸屏的基线跟踪方法的流程示意图;FIG. 4 is a schematic flow chart of another baseline tracking method for a touch screen provided in an embodiment of the present application;

图5为本申请实施例所提供的一种触摸屏的基线跟踪装置的结构示意图;Fig. 5 is a schematic structural diagram of a touch screen baseline tracking device provided by an embodiment of the present application;

图6为根据本申请实施例所提供的一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of an electronic device provided according to an embodiment of the present application;

图7为根据本申请实施例所提供的另一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of another electronic device provided according to an embodiment of the present application;

图8为根据本申请实施例所提供的一种触控芯片的结构示意图。FIG. 8 is a schematic structural diagram of a touch chip provided according to an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present application. Rather, they are merely examples of apparatus and methods consistent with aspects of the embodiments of the present application as recited in the appended claims.

在本申请实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请实施例。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms "a" and "the" used in the embodiments of this application and the appended claims are also intended to include 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 and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”及“若”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the embodiments of the present application may use terms such as first, second, and third to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the embodiments of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的要素。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals designate the same or similar elements throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

下面参照附图描述本申请实施例的触摸屏的基线跟踪方法及其装置。The baseline tracking method and device of the touch screen according to the embodiments of the present application will be described below with reference to the accompanying drawings.

图1为本申请实施例提供的一种触摸屏的基线跟踪方法的流程示意图。如图1所示,该方法包括但不限于以下步骤:FIG. 1 is a schematic flowchart of a baseline tracking method for a touch screen provided by an embodiment of the present application. As shown in Figure 1, the method includes but is not limited to the following steps:

S101,获取触摸屏当前帧的第一触摸数据。S101. Acquire first touch data of a current frame of a touch screen.

本申请实施例提供的触摸屏的基线跟踪方法,从触摸屏的初始基线值开始,按照设定的时间间隔,对触摸屏的基线值进行更新。本申请实施例中以其中一个时间间隔的更新过程,对触摸屏的基线值的更新过程进行解释说明。The baseline tracking method of the touch screen provided in the embodiment of the present application starts from the initial baseline value of the touch screen and updates the baseline value of the touch screen according to a set time interval. In the embodiment of the present application, the update process of the baseline value of the touch screen is explained by using the update process of one of the time intervals.

可以理解的是,本申请实施例中提供的触摸屏的基线跟踪方法可适用于具有触摸屏的电子设备。例如,电子设备可以手机、平板电脑、笔记本、可穿戴设备、智能电视、车载电脑等。It can be understood that the baseline tracking method for a touch screen provided in the embodiment of the present application is applicable to an electronic device with a touch screen. For example, the electronic device can be a mobile phone, a tablet computer, a notebook, a wearable device, a smart TV, a car computer, and the like.

本申请实施例中,电子设备的触摸屏下方可以设置有触摸感知组件,通过触摸感知组件进行触摸点的感知,以获取当前帧的第一触摸数据。可选地,触摸感知组件可以为屏下传感器。当手指或其他介质接触到屏幕时,依据不同感应方式,检测电压、电流、声波或红外线等,可以测出触摸点的坐标位置。例如电容式触控面板是利用排列的透明电极与人体之间的静电结合所产生的电容变化,从所产生的电流或电压来检测其坐标。In the embodiment of the present application, a touch sensing component may be provided under the touch screen of the electronic device, and the touch point may be sensed by the touch sensing component to obtain the first touch data of the current frame. Optionally, the touch sensing component may be an under-screen sensor. When a finger or other medium touches the screen, the coordinate position of the touch point can be measured by detecting voltage, current, sound waves or infrared rays according to different sensing methods. For example, a capacitive touch panel uses the capacitance change generated by the electrostatic combination between the arranged transparent electrodes and the human body, and detects its coordinates from the generated current or voltage.

可以将无触摸状态下触摸感知组件所感知的电容值称为基线(baseline)值。基线值是与环境密切相关的,它是整个系统能够正常运行的基本条件,能够影响整个系统的性能和功能。其中,无触摸状态可以理解为使用者手指未触摸且无外部噪音(noise)的状态。也就是说,在触控屏上没有任何输入时,基线值即为触摸感知组件所感知到的信号值。其中,此处噪音指的是由于电气或机械等因素电子设备所产生的不需要的信号。The capacitance value sensed by the touch sensing component in the no-touch state can be referred to as a baseline (baseline) value. The baseline value is closely related to the environment. It is the basic condition for the normal operation of the entire system and can affect the performance and functions of the entire system. Wherein, the no-touch state can be understood as a state where the user's finger is not touched and there is no external noise. That is to say, when there is no input on the touch screen, the baseline value is the signal value sensed by the touch sensing component. Wherein, noise here refers to unwanted signals generated by electronic equipment due to electrical or mechanical factors.

在一些实现中,触摸数据可以包括触摸点的位置信息和电容值,其中,位置信息可以包括X轴坐标值和Y轴坐标值。In some implementations, the touch data may include position information and a capacitance value of the touch point, wherein the position information may include an X-axis coordinate value and a Y-axis coordinate value.

S102,根据第一触摸数据和触摸屏前一帧的第一基线值,确定触摸屏的触摸强度。S102. Determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen.

本申请实施例中,可以触摸屏的初始帧开始,可以对触摸屏的基线值持续进行跟踪,以保证触摸数据的准确性。可以理解的是,可以每帧都对基线值进行一次更新,也可以按照设定的帧间隔,对基线值进行一次更新,本申请中对此不做限定。In the embodiment of the present application, starting from the initial frame of the touch screen, the baseline value of the touch screen may be continuously tracked to ensure the accuracy of the touch data. It can be understood that the baseline value may be updated once every frame, or may be updated once according to a set frame interval, which is not limited in this application.

在获取到第一触摸数据后,可以基于第一触摸数据和触摸屏前一帧的第一基线值,确定触摸屏的触摸强度。可选地,前一帧的第一基线值为一个参考触摸数据,可以将第一触摸数据与前一帧的第一基线值相减,得到一个差值,并将该差值可以反应出当前帧的触摸相对第一基线值的差异,本申请实施例中,为触摸屏的触摸强度。可以理解的是,可以基于第一触摸数据中的电容值与第一基线值相减,得到触摸屏的触摸强度。After the first touch data is acquired, the touch intensity of the touch screen can be determined based on the first touch data and the first baseline value of the previous frame of the touch screen. 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, and the difference can reflect the current The difference of the frame touch relative to the first baseline value, in the embodiment of the present application, is the touch intensity of the touch screen. It can be understood that the touch intensity of the touch screen can be obtained based on subtracting the capacitance value in the first touch data from the first baseline value.

S103,响应于触摸强度大于或者等于第一阈值,根据第一触摸数据和前一帧的第二触摸数据,对第一基线值进行更新,得到当前帧的第二基线值。S103. In response to the touch intensity being greater than or equal to the first threshold, update the first baseline value according to the first touch data and the second touch data of the previous frame to obtain the second baseline value of the current frame.

实际中基线值跟踪或更新准确的情况下,相邻两帧的触摸数据的差异会为稳定在范围之内,若出现相邻两帧的触摸数据差异较大时,往往说明触摸屏的基线值的跟踪出现偏差。In practice, when the baseline value is tracked or updated accurately, the difference between the touch data of two adjacent frames will be stable within the range. If there is a large difference between the touch data of two adjacent frames, it often indicates the baseline value of the touch screen. Tracking is off.

本申请实施例中,在获取到触摸屏的触摸强度后,可以将触摸强度与预设的第一阈值进行比较,该第一阈值为一个强度阈值。在确定出触摸强度大于或者等于第一阈值时,表明相邻两帧的触摸数据超出了第一阈值的范围,可以确定触摸屏的基线值出现偏差,需要对其进行更新以纠正出现的偏差。In the embodiment of the present application, after the touch intensity of the touch screen is acquired, the touch intensity may be compared with a preset first threshold, where the first threshold 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 there is a deviation in the baseline value of the touch screen, which needs to be updated to correct the deviation.

可选地,可以根据第一触摸数据和前一帧的第二触摸数据,对第一基线值进行更新,得到当前帧的第二基线值。在一些实现中,可以获取第一触摸数据和第二触摸数据之间的增量触摸数据,基于增量触摸数据对第一基线值进行更新,得到当前帧的第二基线值。本申请实施例中,由于不同帧对应的环境变化会影响触摸数据,在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以将相邻两帧的增量触摸数据映射到基线值上,可以使第二基线值与触摸屏当前的环境状态更加匹配。Optionally, the first baseline value may be updated according to 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 touch data and the second touch data may be acquired, and the first baseline value may be updated based on the incremental touch data to obtain the second baseline value of the current frame. In the embodiment of this application, because the environment 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 The data is mapped to the baseline value, so that the second baseline value can better match the current environment state of the touch screen.

可以理解的是,本申请实施例中,可以通过指定的空间存储当前帧的第一触摸数据、前一帧的第二触摸数据、基线值、触摸强度和第一阈值。It can be understood that, in the embodiment of the present 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.

本申请实施例中,获取触摸屏当前帧的第一触摸数据,根据第一触摸数据和触摸屏前一帧的第一基线值,确定触摸屏的触摸强度,响应于触摸强度大于或者等于第一阈值,根据第一触摸数据和前一帧的第二触摸数据,对第一基线值进行更新,得到当前帧的第二基线值。本申请实施例中,可以确定出触摸强度大于或等于第一阈值的情况下,同样对基线值进行跟踪和更新,可以避免相关技术中在触摸数据大于或等于第一阈值时不进行基线值的调整,而导致的基线值的偏差会累计增大的问题。本申请实施例中可以避免相关技术中导致的基线值偏差较大使得触摸屏频繁故障和性能下降的问题。进一步地,由于不同帧对应的环境变化会影响触摸数据,在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以使第二基线值与触摸屏当前的环境状态更加匹配。In the embodiment of the present application, the first touch data of the current frame of the touch screen is acquired, and the touch intensity of the touch screen is determined according to the first touch data and the first baseline value of the previous frame of the touch screen. The first touch data and the second touch data of the previous frame update the first baseline value to obtain the second baseline value of the current frame. In the embodiment of the present application, when it is determined that the touch intensity is greater than or equal to the first threshold, the baseline value is also tracked and updated, which can avoid the problem of not performing the baseline value when the touch data is greater than or equal to the first threshold in the related art. Adjustment, the resulting deviation from the baseline value will increase cumulatively. In the embodiment of the present application, the problems of frequent faults and performance degradation of the touch screen caused by a large deviation of the baseline value in the related art can be avoided. Further, since the environment 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 second baseline value can be more closely related to the current environment state of the touch screen. match.

图2为本申请实施例提供的另一种触摸屏的基线跟踪方法的流程示意图。如图2所示,该方法包括但不限于以下步骤:FIG. 2 is a schematic flowchart of another baseline tracking method for a touch screen provided by an embodiment of the present application. As shown in Figure 2, the method includes but is not limited to the following steps:

S201,获取触摸屏当前帧的第一触摸数据。S201. Acquire first touch data of a current frame of a touch screen.

S202,根据第一触摸数据和触摸屏前一帧的第一基线值,确定触摸屏的触摸强度。S202. Determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen.

关于步骤S201~S202的具体介绍,可参见上述实施例中相关内容如S101~102中的记载,此处不再赘述。For the specific introduction of steps S201-S202, reference may be made to relevant content in the foregoing embodiments, such as the records in S101-102, which will not be repeated here.

S203,在触摸强度大于或等于第一阈值,获取第一触摸数据和第二触摸数据之间的增量触摸数据。S203. Acquire incremental touch data between the first touch data and the second touch data when the touch intensity is greater than or equal to the first 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 there is a deviation in the baseline value of the touch screen, which needs to be updated to correct the deviation. In the embodiment of the present application, the first touch data and the second touch data may be subtracted to obtain incremental touch data of two adjacent frames.

作为一种可能的实现方式,可以在触摸强度大于或等于第一阈值的持续时间达到设定时间后,获取第一触摸数据和第二触摸数据之间的增量触摸数据,可以避免因误识别导致对基线值频繁更新的问题。As a possible implementation, after the duration of the touch intensity greater than or equal to the first threshold reaches the set time, the incremental touch data between the first touch data and the second touch data can be obtained, which can avoid misidentification. Problems that cause frequent updates to baseline values.

S204,在增量触摸数据小于第二阈值,基于增量触摸数据对第一基线值进行更新,得到第二基线值。S204. When the incremental touch data is smaller than the second threshold, update the first baseline value based on the incremental touch data to obtain a second baseline value.

本申请实施例中,为了保证触摸屏的检测的稳定性,在获取到增量触摸数据后,可以进一步地将增量触摸数据与第二阈值进行比较,其中第二阈值为一个预设的电容值。在触摸强度大于或者等于第一阈值,且增量触摸数据小于第二阈值的情况下,对前一帧的第一基线值进行更新。In the embodiment of the present application, in order to ensure the stability of the touch screen detection, after the incremental touch data is acquired, the incremental touch data can be further compared with a second threshold, where the second threshold is a preset capacitance value . When 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.

一般情况下,相邻两帧的触摸数据变化往往较小,若相邻两帧的触摸数据之间的变化量较大,可以表明当前帧的检测存在异常,若通过增量触摸数据对当前帧的第一基线值进行更新,往往会增大偏差,为了保证基线跟踪的准确性,本申请实施例中可以在增量触摸数据大于或等于第二阈值的情况下,将第一基线值直接作为当前帧的第二基线值,重新对下一帧进行检测,可以避免因更新到的偏差增大的问题,从而可以进一步地提高触摸数据检测的准确性。In general, the touch data changes between two adjacent frames are often small. If the touch data between two adjacent frames has a large change, it can indicate that the detection of the current frame is abnormal. If the current frame is detected by incremental touch data Updating the first baseline value will often increase the deviation. In order to ensure the accuracy of baseline tracking, in this embodiment of the application, when 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 is re-detected in the next frame, which can avoid the problem of increased deviation caused by the update, thereby further improving the accuracy of touch data detection.

在一些实现中,基于增量触摸数据可以确定第一基线值的第一修正量,进一步地,基于该第一修正量对第一基线值进行修正,得到第二基线值。可选地,可以预先设定一个第一设定系数,在确定出增量触摸数据后,可以将第一设定系数与增量触摸数据相乘,得到第一乘积,其中,该第一乘积作为第一基线值的第一修正量。进一步地,获取第一修正量和第一基线值的第一和值,作为第二基线值。需要说明的是,第一定系数的取值范围处于0~1之间,比方第二设定系数为a,其中,1>a>0。In some implementations, a first correction amount of the first baseline value may be determined based on the incremental touch data, and further, the first baseline value is corrected based on the first correction amount to obtain a second baseline value. Optionally, a first setting coefficient can be preset, and after the incremental touch data is determined, the first setting coefficient can be multiplied by the incremental touch data to obtain a first product, wherein the first product The first correction amount as the first baseline value. Further, a first sum of the first correction amount and the first baseline value is acquired as the second baseline value. It should be noted that the value range of the first fixed coefficient is between 0 and 1, for example, the second set coefficient is a, where 1>a>0.

可以理解的是,本申请实施例中,可以通过指定的空间存储当前帧的第一触摸数据、前一帧的第二触摸数据、基线值、触摸强度和第一阈值、第二阈值和第一设定系数。It can be understood that, in the embodiment of the present 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 threshold can be stored in a specified space. Set the coefficient.

作为一种可能的实现方式,可以在增量触摸数据小于第二阈值的持续时间达到设定时间后,对第一基线值进行更新,可以避免因误识别导致对基线值频繁更新的问题。As a possible implementation, the first baseline value can be updated after the incremental touch data is less than the second threshold for a set time, which can avoid the problem of frequent update of the baseline value due to misidentification.

本申请实施例中,在大于或者等于第一阈值的情况,不再依赖触摸强度预估基线值,而是通过获取第一触摸数据和第二触摸数据之间的变化量,去预估基线值。在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以将相邻两帧的增量触摸数据映射到基线值上,可以使第二基线值与触摸屏当前的环境状态更加匹配,进一步地,实现了对基线值的持续跟踪,可以防止由于温度突变而导致的触摸屏出现故障和性能下降的问题。In the embodiment of the present application, when it is greater than or equal to the first threshold, the baseline value is no longer estimated based on the touch intensity, but the baseline value is estimated by obtaining the change amount between the first touch data and the second 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 to the baseline value, and the second baseline value can be compared with the current environment of the touch screen The state is more matched, and further, the continuous tracking of the baseline value is realized, which can prevent the failure and performance degradation of the touch screen caused by sudden temperature changes.

图3为本申请实施例提供的另一种触摸屏的基线跟踪方法的流程示意图。如图3所示,该方法包括但不限于以下步骤:FIG. 3 is a schematic flowchart of another baseline tracking method for a touch screen provided by an embodiment of the present application. As shown in Figure 3, the method includes but is not limited to the following steps:

S301,从触摸屏的初始基线值开始,获取触摸屏当前帧的第一触摸数据。S301. Starting from an initial baseline value of the touch screen, first touch data of a current frame of the touch screen is acquired.

作为一种可能的实现方式,获取触摸屏的初始帧的触摸数据,根据初始帧的触摸数据确定初始基线值。可选地,将初始帧的触摸数据中的电容值作为初始基线值。As a possible implementation manner, touch data of an initial frame of the touch screen is acquired, and an initial baseline value is determined according to the touch data of the initial frame. Optionally, the capacitance value in the touch data of the initial frame is used as the initial baseline value.

作为另一种可能的实现方式,从触摸屏的初始帧开始,获取N帧的触摸数据,N为大于1的正整数,获取N帧的触摸数据的平均值,作为初始基线值。例如,可以从初始帧开始,取前5帧,对前5帧的触摸数据进行平均,得到基线值。As another possible implementation, N frames of touch data are acquired starting from the initial frame of the touch screen, where N is a positive integer greater than 1, and an average value of N frames of touch data is acquired as the initial baseline value. For example, the first 5 frames may be taken from the initial frame, and the touch data of the first 5 frames may be averaged to obtain the baseline value.

作为另一种可能的实现方式,触摸屏有设定的初始基线值。As another possible implementation, the touch screen has a set initial baseline value.

本申请实施例中,从触摸屏的初始基线值开始,按照设定的时间间隔,对触摸屏的基线值进行更新。也就是说,在每个时间间隔可以对上一时间间隔的基线值进行更新。In the embodiment of the present application, starting from the initial baseline value of the touch screen, the baseline value of the touch screen is updated according to a set time interval. That is, at each time interval, the baseline value of the previous time interval may be updated.

关于获取触摸屏当前帧的第一触摸数据的具体介绍,可参见上述实施例中相关内容如步骤S101中的记载,此处不再赘述。For the specific introduction of acquiring the first touch data of the current frame of the touch screen, refer to the relevant content in the above-mentioned embodiments, such as the record in step S101 , which will not be repeated here.

S302,根据第一触摸数据和触摸屏前一帧的第一基线值,确定触摸屏的触摸强度。S302. Determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen.

关于步骤S302的具体介绍,可参见上述实施例中相关内容如步骤S102中的记载,此处不再赘述。For the specific introduction of step S302, reference may be made to relevant content in the above-mentioned embodiments, such as the record in step S102, which will not be repeated here.

S303,判断触摸强度是否大于或等于第一阈值。S303. Determine whether the touch intensity is greater than or equal to a first threshold.

若判断出触摸强度大于或者等于第一阈值,执行步骤S304;若判断出触摸强度小于第一阈值,则执行步骤S308。If it is determined that the touch intensity is greater than or equal to the first threshold, perform step S304; if it is determined that the touch intensity is less than the first threshold, then perform step S308.

S304,获取第一触摸数据和第二触摸数据之间的增量触摸数据。S304. Acquire incremental touch data between the first touch data and the second touch data.

关于步骤S304的具体介绍,可参见上述实施例中相关内容如步骤S102中的记载,此处不再赘述。For the specific introduction of step S304, refer to the relevant content in the above embodiments, such as the record in step S102, which will not be repeated here.

S305,判断增量触摸数据是否小于第二阈值。S305. Determine whether the incremental touch data is smaller than a second threshold.

若判断出增量触摸数据小于第二阈值,执行步骤S306;若判断出增量触摸数据大于或等于第二阈值,则执行步骤S307。If it is determined that the incremental touch data is smaller than the second threshold, step S306 is performed; if it is determined that the incremental touch data is greater than or equal to the second threshold, then step S307 is performed.

S306,基于增量触摸数据对第一基线值进行更新,得到第二基线值。S306. Update the first baseline value based on the incremental touch data to obtain a second baseline value.

在一些实现中,基于增量触摸数据可以确定第一基线值的第一修正量,进一步地,基于该第一修正量对第一基线值进行修正,得到第二基线值。具体过程可参见上述实施例中相关内容的记载,此处不再赘述。In some implementations, a first correction amount of the first baseline value may be determined based on the incremental touch data, and further, the first baseline value is corrected based on the first correction amount to obtain a second baseline value. For the specific process, reference may be made to the records of related content in the foregoing embodiments, and details are not repeated here.

S307,将第一基线值直接确定为第二基线值。S307. Directly determine the first baseline value as the second baseline value.

为了保证基线跟踪的准确性,本申请实施例中可以在增量触摸数据大于第二阈值的情况下,将第一基线值直接作为当前帧的第二基线值,重新对下一帧进行检测,可以避免因更新到的偏差增大的问题,从而可以进一步地提高触摸数据检测的准确性。In order to ensure the accuracy of baseline tracking, in the embodiment of the present application, when 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 detected again. The problem caused by the increase of the updated deviation can be avoided, so that the accuracy of touch data detection can be further improved.

S308,基于触摸强度对第一基线值进行更新,得到第二基线值。S308. Update the first baseline value based on the touch intensity to obtain a second baseline value.

在一些实现中,基于增触摸强度可以确定第一基线值的第二修正量,进一步地,基于该第二修正量对第一基线值进行修正,得到第二基线值。可选地,可以预先设定一个第二设定系数,在确定出触摸强度后,可以将第二设定系数与触摸强度相乘,得到第二乘积,其中,该第二乘积作为第一基线值的第二修正量。进一步地,获取第二修正量和第一基线值的第二和值,作为第二基线值。In some implementations, a second correction amount of the first baseline value may be determined based on the touch-increasing intensity, and further, the first baseline value is corrected based on the second correction amount to obtain a second baseline value. Optionally, a second setting coefficient can be preset, and after the touch intensity is determined, the second setting coefficient can be multiplied by the touch intensity to obtain a second product, wherein the second product serves as the first baseline The second modifier to the value. Further, a second sum of the second correction amount and the first baseline value is acquired as the second baseline value.

需要说明的是,第二设定系数的取值范围处于0~1之间,比方第二设定系数为b,其中,1>b>0。It should be noted that the value range of the second setting coefficient is between 0 and 1, for example, the second setting coefficient is b, where 1>b>0.

S309,根据第一触摸数据和第二基线值,对触摸屏的触摸强度进行更新。S309. Update the touch intensity of the touch screen according to the first touch data and the second baseline value.

在获取到当前帧的第二基线值,为了获取到更加的触摸强度,可以基于第一触摸数据和第二基线值,重新确定触摸屏的触摸强度。可选地,将第一触摸数据与当前帧的第二基线值相减,得到一个差值,并将该差值可以确定触摸屏更新后的触摸强度。After obtaining the second baseline value of the current frame, in order to obtain a higher touch intensity, the touch intensity of the touch screen may be re-determined based on the first touch data and the second baseline value. Optionally, the first touch data is subtracted from the second baseline value of the current frame to obtain a difference, and the difference can be used to determine the touch intensity after the touch screen is updated.

可以理解的是,本申请实施例中,可以通过指定的空间存储当前帧的第一触摸数据、前一帧的第二触摸数据、基线值、触摸强度、第一阈值、第二阈值、第一设定系数和第二设定系数。It can be understood that in this embodiment of the 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 A set factor and a second set factor.

本申请实施例中,在大于或者等于第一阈值的情况,不再依赖触摸强度预估基线值,而是通过获取第一触摸数据和第二触摸数据之间的变化量,去预估基线值。在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以将相邻两帧的增量触摸数据映射到基线值上,可以使第二基线值与触摸屏当前的环境状态更加匹配。而在小于第一阈值的情况下,继续按照触摸强度预测基线值,从而可以实现对基线值的持续跟踪,可以防止由于温度突变而导致的触摸屏出现故障和性能下降的问题。In the embodiment of the present application, when it is greater than or equal to the first threshold, the baseline value is no longer estimated based on the touch intensity, but the baseline value is estimated by obtaining the change amount between the first touch data and the second 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 to the baseline value, and the second baseline value can be compared with the current environment of the touch screen The state is more matching. In the case of less than the first threshold, continue to predict the baseline value according to the touch intensity, so that continuous tracking of the baseline value can be realized, and problems of failure and performance degradation of the touch screen caused by sudden temperature changes can be prevented.

图4为本申请实施例提供的另一种触摸屏的基线跟踪方法的流程示意图。如图4所示,该方法包括但不限于以下步骤:FIG. 4 is a schematic flowchart of another baseline tracking method for a touch screen provided by an embodiment of the present application. As shown in Figure 4, the method includes but is not limited to the following steps:

原始的第N帧触摸数据与第一基线值相减,得到一个触摸强度△i;进一步地,判断触摸强度△i的绝对值(Abs(△i))是否小于第一阈值(Thresholed,Th1)。Subtract the original Nth frame of touch data from the first baseline value to obtain a touch intensity △i; further, determine whether the absolute value of the touch intensity △i (Abs(△i)) is less than the first threshold (Thresholed, Th1) .

在Abs(△i)大于或者等于Th1的情况下,将第N帧触摸数据与第N-1帧触摸数据相减,得到增量触摸数据△d;进一步地,判断增量触摸数据△d的绝地值(Abs(△d))是否小于第二阈值Th2。In the case that Abs(Δi) is greater than or equal to Th1, subtract the Nth frame touch data from the N-1th frame touch data to obtain the incremental touch data Δd; further, determine the incremental touch data Δd Whether the Jedi value (Abs(Δd)) is smaller than the second threshold Th2.

在Abs(△d)小于Th2的情况下,根据增量触摸数据△d和第一设定系数a相乘,得到第一基线值的第一修正量,进一步地,将第一基线值与第一修正量相加,得到新的第二基线值。在Abs(△d)大于或者等于Th2的情况下,可以将第一基线值作为第二基线值。其中,第一设定系数a的取值范围处于0~1之间即1>a>0。In the case that Abs(Δd) is smaller than Th2, multiply the incremental touch data Δd by the first setting coefficient a to obtain the first correction amount of the first baseline value, and further, combine the first baseline value with the first A correction amount is added to obtain a new second baseline value. In the case that Abs(Δd) is greater than or equal to Th2, the first baseline value can be used as the second baseline value. Wherein, the value range of the first setting coefficient a is between 0 and 1, that is, 1>a>0.

在Abs(△i)小于Th1的情况下,根据触摸强度△i和第二设定系数b相乘,得到第一基线值的第二修正量,进一步地,将第一基线值与第二修正量相加,得到新的第二基线值。其中,第二设定系数b的取值范围处于0~1之间即1>b>0。In the case that Abs(Δi) is less than Th1, multiply the touch intensity Δi by the second setting coefficient b to obtain the second correction amount of the first baseline value, further, the first baseline value and the second correction value The values are added together to obtain a new second baseline value. Wherein, the value range of the second setting coefficient b is between 0 and 1, that is, 1>b>0.

本申请实施例中,在大于或者等于第一阈值的情况,不再依赖触摸强度预估基线值,而是通过获取第一触摸数据和第二触摸数据之间的变化量,去预估基线值。在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以将相邻两帧的增量触摸数据映射到基线值上,可以使第二基线值与触摸屏当前的环境状态更加匹配。而在小于第一阈值的情况下,继续按照触摸强度预测基线值,从而可以实现对基线值的持续跟踪,可以防止由于温度突变而导致的触摸屏出现故障和性能下降的问题。In the embodiment of the present application, when it is greater than or equal to the first threshold, the baseline value is no longer estimated based on the touch intensity, but the baseline value is estimated by obtaining the change amount between the first touch data and the second 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 to the baseline value, and the second baseline value can be compared with the current environment of the touch screen The state is more matching. In the case of less than the first threshold, continue to predict the baseline value according to the touch intensity, so that continuous tracking of the baseline value can be realized, and problems of failure and performance degradation of the touch screen caused by sudden temperature changes can be prevented.

需要说明的是,本申请实施例提供的各实施例,可以适用于轨迹预测,触点跟踪、手势预测、笔画识别以及手写识别等触控领域。It should be noted that the various embodiments provided in the embodiments of the present application may be applicable to touch fields such as trajectory prediction, contact tracking, gesture prediction, stroke recognition, and handwriting recognition.

图5为本申请实施例的触摸屏的基线跟踪装置的结构示意图。如图5所示,该触摸屏的基线跟踪装置500,包括:获取模块501、确定模块502和更新模块503。FIG. 5 is a schematic structural diagram of a touch screen baseline tracking device according to an embodiment of the present application. As shown in FIG. 5 , the touch screen baseline tracking device 500 includes: an acquisition module 501 , a determination module 502 and an update module 503 .

其中,获取模块501,用于获取触摸屏当前帧的第一触摸数据;Wherein, the obtaining module 501 is used to obtain the first touch data of the current frame of the touch screen;

确定模块502,用于根据所述第一触摸数据和所述触摸屏前一帧的第一基线值,确定所述触摸屏的触摸强度;A determining module 502, configured to determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen;

更新模块503,用于在所述触摸强度大于或者等于第一阈值,根据所述第一触摸数据和前一帧的第二触摸数据,对所述第一基线值进行更新,得到当前帧的第二基线值。An updating module 503, configured to update the first baseline value according to 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, to obtain the first baseline value of the current frame. Second baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

获取所述第一触摸数据和所述第二触摸数据之间的增量触摸数据;acquiring incremental touch data between the first touch data and the second touch data;

响应于所述增量触摸数据小于第二阈值,基于所述增量触摸数据对所述第一基线值进行更新,得到所述第二基线值。In response to the incremental touch data being smaller than a second threshold, the first baseline value is updated based on the incremental touch data to obtain the second baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

根据所述增量触摸数据,获取所述第一基线值的第一修正量;Acquiring a first correction amount of the first baseline value according to the incremental touch data;

获取所述第一修正量和所述第一基线值的第一和值,作为所述第二基线值。Acquiring a first sum of the first correction amount and the first baseline value as the second baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

在所述触摸强度小于所述第一阈值,基于所述触摸强度,对所述第一基线值进行更新,得到所述第二基线值。When the touch intensity is less than the first threshold, based on the touch intensity, the first baseline value is updated to obtain the second baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

基于所述触摸强度,确定所述第一基线值的第二修正量;determining a second correction amount to the first baseline value based on the touch intensity;

获取所述第二修正量和所述第一基线值的第二和值,作为所述第二基线值。Acquiring a second sum of the second correction amount and the first baseline value as the second baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

按照设定的帧间隔,从所述触摸屏的初始基线值开始,对所述触摸屏的基线值进行更新。The baseline value of the touch screen is updated starting from the initial baseline value of the touch screen according to the set frame interval.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

获取所述触摸屏的初始帧的触摸数据,将所述初始帧的触摸数据作为所述初始基线值;或者,Acquire 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,

从所述触摸屏的初始帧开始,获取N帧的触摸数据,所述N为大于1的正整数;Starting from the initial frame of the touch screen, acquiring N frames of touch data, where N is a positive integer greater than 1;

获取所述N帧的触摸数据的平均值,作为所述初始基线值。Acquiring the average value of the touch data of the N frames as the initial baseline value.

在一些实现中,所述更新模块503,还用于:In some implementations, the updating module 503 is further configured to:

在得到所述下一帧的第二基线值后,根据所述第一触摸数据和所述第二基线值,对所述触摸屏的触摸强度进行更新。After obtaining the second baseline value of the next frame, the touch intensity of the touch screen is updated according to the first touch data and the second baseline value.

需要说明的是,本申请实施例的触摸屏的基线跟踪装置中未披露的细节,请参照本申请上述实施例的触摸屏的基线跟踪方法中所披露的细节,具体这里不再赘述。It should be noted that, for details not disclosed in the touch screen baseline tracking device of the embodiment of the present application, please refer to the details disclosed in the touch screen baseline tracking method of the above embodiment of the present application, and details are not repeated here.

本申请实施例中,在大于或者等于第一阈值的情况,不再依赖触摸强度预估基线值,而是通过获取第一触摸数据和第二触摸数据之间的变化量,去预估基线值。在对第一基线值进行更新时,考虑当前帧和前一历史帧的触摸数据,可以将相邻两帧的增量触摸数据映射到基线值上,可以使第二基线值与触摸屏当前的环境状态更加匹配。而在小于第一阈值的情况下,继续按照触摸强度预测基线值,从而可以实现对基线值的持续跟踪,可以防止由于温度突变而导致的触摸屏出现故障和性能下降的问题。In the embodiment of the present application, when it is greater than or equal to the first threshold, the baseline value is no longer estimated based on the touch intensity, but the baseline value is estimated by obtaining the change amount between the first touch data and the second 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 to the baseline value, and the second baseline value can be compared with the current environment of the touch screen The state is more matching. In the case of less than the first threshold, continue to predict the baseline value according to the touch intensity, so that continuous tracking of the baseline value can be realized, and problems of failure and performance degradation of the touch screen caused by sudden temperature changes can be prevented.

图6是根据一示例性实施例示出的一种电子设备框图。如图6所示,电子设备600包括触摸屏的基线跟踪装置500。该电子设备可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。Fig. 6 is a block diagram of an electronic device according to an exemplary embodiment. As shown in FIG. 6 , an electronic device 600 includes a baseline tracking device 500 of a touch screen. The electronic device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., the non-mobile electronic device can be a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., the embodiment of the present application Not specifically limited.

根据本申请实施例的还提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器,其中,所述处理器被配置为执行所述指令,以实现如上所述的触摸屏的基线跟踪方法。According to an embodiment of the present application, there is also provided an electronic device, including: a processor; a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions, so as to implement the above-mentioned A baseline tracking method for touchscreens.

为了实现上述实施例,本申请还提出了一种存储介质。In order to implement the above embodiments, the present application also proposes a storage medium.

其中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如上所述的触摸屏的基线跟踪方法。Wherein, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the baseline tracking method for the touch screen as described above.

为了实现上述实施例,本申请还提供一种计算机程序产品。In order to implement the above embodiments, the present application further provides a computer program product.

其中,该计算机程序产品由电子设备的处理器执行时,使得电子设备能够执行如上所述的方法。Wherein, when the computer program product is executed by the processor of the electronic device, the electronic device can execute the above method.

图7是根据一示例性实施例示出的一种电子设备框图。图7示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment. The electronic device shown in FIG. 7 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图7所示,电子设备700包括处理器701,其可以根据存储在只读存储器(ROM,Read Only Memory)702中的程序或者从存储器706加载到随机访问存储器(RAM,RandomAccess Memory)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有电子设备900操作所需的各种程序和数据。处理器701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O,Input/Output)接口705也连接至总线704。As shown in FIG. 7 , an electronic device 700 includes a processor 701, which can be loaded into a random access memory (RAM, Random Access Memory) 703 according to a program stored in a read-only memory (ROM, Read Only Memory) 702 or from a memory 706. Various appropriate actions and processing are performed by the program. In the RAM 703, various programs and data necessary for the operation of the electronic device 900 are also stored. The processor 701 , ROM 702 , and RAM 703 are connected to each other via a bus 704 . An input/output (I/O, Input/Output) interface 705 is also connected to the bus 704 .

以下部件连接至I/O接口705:包括硬盘等的存储器706;以及包括诸如LAN(局域网,Local Area Network)卡、调制解调器等的网络接口卡的通信部分707,通信部分707经由诸如因特网的网络执行通信处理;驱动器708也根据需要连接至I/O接口705。The following components are connected to the I/O interface 705: a memory 706 including a hard disk or the like; and a communication section 707 including a network interface card such as a LAN (Local Area Network) card, a modem, etc., the communication section 707 is executed via a network such as the Internet Communication processing; a driver 708 is also connected to the I/O interface 705 as necessary.

特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分707从网络上被下载和安装。在该计算机程序被处理器701执行时,执行本申请的方法中限定的上述功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program carried on a computer-readable medium, and the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 707 . When the computer program is executed by the processor 701, the above-mentioned functions defined in the method of the present application are executed.

在示例性实施例中,还提供了一种包括指令的存储介质,例如包括指令的存储器,上述指令可由电子设备700的处理器701执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a storage medium including instructions, such as a memory including instructions, and the above instructions can be executed by the processor 701 of the electronic device 700 to complete the above method. Alternatively, the storage medium may be a non-transitory computer readable storage medium such as ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage medium. equipment etc.

在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

图8是根据一示例性实施例示出的一种触控芯片的结构框图。图8示出的触控芯片仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。如图8所示,该触控芯片800包括处理器801和存储器802。其中,存储器802用于存储程序代码,处理器801与存储器802连接,用于从存储器802内读取程序代码,以实现上述实施例中触摸屏的基线跟踪方法。Fig. 8 is a structural block diagram of a touch chip according to an exemplary embodiment. The touch chip shown in FIG. 8 is only an example, and should not limit the functions and scope of use of this embodiment of the present application. As shown in FIG. 8 , the touch chip 800 includes a processor 801 and a memory 802 . Wherein, the memory 802 is used to store program codes, and the processor 801 is connected to the memory 802 to read the program codes from the memory 802, so as to realize the baseline tracking method of the touch screen in the above-mentioned embodiments.

可选地,处理器801的数量可以是一个或多个。Optionally, the number of processors 801 may be one or more.

可选地,触控芯片还可以包括接口803,该接口803的数量可以是多个。该接口803可以与应用程序连接,并且可以接收外部设备如传感器的数据等。Optionally, the touch control chip may further include an interface 803, and the number of the interfaces 803 may be multiple. The interface 803 can be connected with an application program, and can receive data from external devices such as sensors.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (20)

1.一种触摸屏的基线跟踪方法,其特征在于,包括:1. A baseline tracking method for a touch screen, comprising: 获取触摸屏当前帧的第一触摸数据;Obtain the first touch data of the current frame of the touch screen; 根据所述第一触摸数据和所述触摸屏前一帧的第一基线值,确定所述触摸屏的触摸强度;determining the touch intensity of the touch screen according to 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, the first baseline value is updated according to the first touch data and the second touch data of a previous frame to obtain a second baseline value of the current frame. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第一触摸数据和前一帧的第二触摸数据,对所述第一基线值进行更新,得到当前帧的第二基线值,包括:2. The method according to claim 1, wherein the first baseline value is updated according to the first touch data and the second touch data of the previous frame to obtain the second touch data of the current frame. Baseline values, including: 获取所述第一触摸数据和所述第二触摸数据之间的增量触摸数据;acquiring incremental touch data between the first touch data and the second touch data; 响应于所述增量触摸数据小于第二阈值,基于所述增量触摸数据对所述第一基线值进行更新,得到所述第二基线值。In response to the incremental touch data being smaller than a second threshold, the first baseline value is updated based on the incremental touch data to obtain the second baseline value. 3.根据权利要求2所述的方法,其特征在于,所述基于所述增量触摸数据对所述第一基线值进行更新,得到所述第二基线值,包括:3. The method according to claim 2, wherein the updating of the first baseline value based on the incremental touch data to obtain the second baseline value comprises: 根据所述增量触摸数据,获取所述第一基线值的第一修正量;Acquiring a first correction amount of the first baseline value according to the incremental touch data; 获取所述第一修正量和所述第一基线值的第一和值,作为所述第二基线值。Acquiring a first sum of the first correction amount and the first baseline value as the second baseline value. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 响应于所述触摸强度小于所述第一阈值,基于所述触摸强度,对所述第一基线值进行更新,得到所述第二基线值。In response to the touch intensity being less than the first threshold, based on the touch intensity, the first baseline value is updated to obtain the second baseline value. 5.根据权利要求4所述的方法,其特征在于,所述基于所述触摸强度,对所述第一基线值进行更新,得到所述第二基线值,包括:5. The method according to claim 4, wherein the updating of the first baseline value based on the touch intensity to obtain the second baseline value comprises: 基于所述触摸强度,确定所述第一基线值的第二修正量;determining a second correction amount to the first baseline value based on the touch intensity; 获取所述第二修正量和所述第一基线值的第二和值,作为所述第二基线值。Acquiring a second sum of the second correction amount and the first baseline value as the second baseline value. 6.根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-5, wherein the method further comprises: 按照设定的帧间隔,从所述触摸屏的初始基线值开始,对所述触摸屏的基线值进行更新。The baseline value of the touch screen is updated starting from the initial baseline value of the touch screen according to the set frame interval. 7.根据权利要求1-5中任一项所述的方法,其特征在于,所述触摸屏的初始基线值的确定过程,包括:7. The method according to any one of claims 1-5, wherein the determination process of the initial baseline value of the touch screen comprises: 获取所述触摸屏的初始帧的触摸数据,将所述初始帧的触摸数据作为所述初始基线值;或者,Acquire 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, 从所述触摸屏的初始帧开始,获取N帧的触摸数据,所述N为大于1的正整数;Starting from the initial frame of the touch screen, acquiring N frames of touch data, where N is a positive integer greater than 1; 获取所述N帧的触摸数据的平均值,作为所述初始基线值。Acquiring the average value of the touch data of the N frames as the initial baseline value. 8.根据权利要求1-5中任一项所述的方法,其特征在于,在得到所述下一帧的第二基线值后,所述方法还包括:8. The method according to any one of claims 1-5, wherein after obtaining the second baseline value of the next frame, the method further comprises: 根据所述第一触摸数据和所述第二基线值,对所述触摸屏的触摸强度进行更新。The touch intensity of the touch screen is updated according to the first touch data and the second baseline value. 9.一种触摸屏的基线跟踪装置,其特征在于,包括:9. A baseline tracking device for a touch screen, comprising: 获取模块,用于获取触摸屏当前帧的第一触摸数据;An acquisition module, configured to acquire the first touch data of the current frame of the touch screen; 确定模块,用于根据所述第一触摸数据和所述触摸屏前一帧的第一基线值,确定所述触摸屏的触摸强度;A determining module, configured to determine the touch intensity of the touch screen according to the first touch data and the first baseline value of the previous frame of the touch screen; 更新模块,用于在所述触摸强度大于或者等于第一阈值,根据所述第一触摸数据和前一帧的第二触摸数据,对所述第一基线值进行更新,得到当前帧的第二基线值。An update module, configured to update the first baseline value according to 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, to obtain the second touch data of the current frame. baseline value. 10.根据权利要求9所述的装置,其特征在于,所述更新模块,还用于:10. The device according to claim 9, wherein the updating module is further used for: 获取所述第一触摸数据和所述第二触摸数据之间的增量触摸数据;acquiring incremental touch data between the first touch data and the second touch data; 响应于所述增量触摸数据小于第二阈值,基于所述增量触摸数据对所述第一基线值进行更新,得到所述第二基线值。In response to the incremental touch data being smaller than a second threshold, the first baseline value is updated based on the incremental touch data to obtain the second baseline value. 11.根据权利要求10所述的装置,其特征在于,所述更新模块,还用于:11. The device according to claim 10, wherein the updating module is further used for: 根据所述增量触摸数据,获取所述第一基线值的第一修正量;Acquiring a first correction amount of the first baseline value according to the incremental touch data; 获取所述第一修正量和所述第一基线值的第一和值,作为所述第二基线值。Acquiring a first sum of the first correction amount and the first baseline value as the second baseline value. 12.根据权利要求9所述的装置,其特征在于,所述更新模块,还用于:12. The device according to claim 9, wherein the updating module is further used for: 在所述触摸强度小于所述第一阈值,基于所述触摸强度,对所述第一基线值进行更新,得到所述第二基线值。When the touch intensity is less than the first threshold, based on the touch intensity, the first baseline value is updated to obtain the second baseline value. 13.根据权利要求12所述的装置,其特征在于,所述更新模块,还用于:13. The device according to claim 12, wherein the updating module is further used for: 基于所述触摸强度,确定所述第一基线值的第二修正量;determining a second correction amount to the first baseline value based on the touch intensity; 获取所述第二修正量和所述第一基线值的第二和值,作为所述第二基线值。Acquiring a second sum of the second correction amount and the first baseline value as the second baseline value. 14.根据权利要求9-13中任一项所述的装置,其特征在于,所述更新模块,还用于:14. The device according to any one of claims 9-13, wherein the update module is further configured to: 按照设定的帧间隔,从所述触摸屏的初始基线值开始,对所述触摸屏的基线值进行更新。The baseline value of the touch screen is updated starting from the initial baseline value of the touch screen according to the set frame interval. 15.根据权利要求9-13中任一项所述的方法,其特征在于,所述更新模块,还用于:15. The method according to any one of claims 9-13, wherein the updating module is further used for: 获取所述触摸屏的初始帧的触摸数据,将所述初始帧的触摸数据作为所述初始基线值;或者,Acquire 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, 从所述触摸屏的初始帧开始,获取N帧的触摸数据,所述N为大于1的正整数;Starting from the initial frame of the touch screen, acquiring N frames of touch data, where N is a positive integer greater than 1; 获取所述N帧的触摸数据的平均值,作为所述初始基线值。Acquiring the average value of the touch data of the N frames as the initial baseline value. 16.根据权利要求9-13中任一项所述的装置,其特征在于,所述更新模块,还用于:16. The device according to any one of claims 9-13, wherein the update module is further configured to: 在得到所述下一帧的第二基线值后,根据所述第一触摸数据和所述第二基线值,对所述触摸屏的触摸强度进行更新。After obtaining the second baseline value of the next frame, the touch intensity of the touch screen is updated according to the first touch data and the second baseline value. 17.一种电子设备,其特征在于,包括:如权利要求9至16中任一项所述的触摸屏的基线跟踪装置。17. An electronic device, characterized by comprising: the baseline tracking device for a touch screen according to any one of claims 9 to 16. 18.一种触控芯片,其特征在于,包括:18. A touch chip, characterized in that it comprises: 处理器;processor; 用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions; 其中,所述处理器被配置为执行所述指令,以实现如权利要求1至8中任一项所述的方法。Wherein, the processor is configured to execute the instructions, so as to realize the method according to any one of claims 1-8. 19.一种非临时性计算机可读存储介质,其特征在于,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1至8中任一项所述的方法。19. 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 can perform the operation described in any one of claims 1 to 8. described method. 20.一种计算机程序产品,其特征在于,包括计算机程序,该计算机程序被处理器执行时实现权利要求1-8中任一项所述的方法。20. A computer program product, characterized by comprising a computer program, which implements the method according to any one of claims 1-8 when the computer program is executed by a processor.
CN202211619287.7A 2022-12-15 2022-12-15 A baseline tracking method and device for a touch screen Pending CN115877978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211619287.7A CN115877978A (en) 2022-12-15 2022-12-15 A baseline tracking method and device for a touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211619287.7A CN115877978A (en) 2022-12-15 2022-12-15 A baseline tracking method and device for a touch screen

Publications (1)

Publication Number Publication Date
CN115877978A true CN115877978A (en) 2023-03-31

Family

ID=85754956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211619287.7A Pending CN115877978A (en) 2022-12-15 2022-12-15 A baseline tracking method and device for a touch screen

Country Status (1)

Country Link
CN (1) CN115877978A (en)

Similar Documents

Publication Publication Date Title
US10382614B2 (en) Capacitive gesture detection system and methods thereof
CN105190494B (en) Adaptive Threshold Transformation Method for Touch Sensing Optimization
US20170052630A1 (en) Method of sensing pressure by touch sensor and electronic device adapted thereto
US20110231139A1 (en) Information processor
US20140267132A1 (en) Comprehensive Framework for Adaptive Touch-Signal De-Noising/Filtering to Optimize Touch Performance
US20140306910A1 (en) Id tracking of gesture touch geometry
US10712868B2 (en) Hybrid baseline management
CN110347282B (en) Noise suppression circuit
KR101826212B1 (en) Capacitive sensor action in response to proximity sensor data
JP2021530007A (en) Data detection method and device, storage medium, touch device
TWI805694B (en) Mitigating electromagnetic emissions from sensor electrodes
US20150363043A1 (en) Touch panel device and touch panel device control method
US10248270B2 (en) Inflection based bending signal abstraction from a mixed signal
US12182366B2 (en) Distributed analog display noise suppression circuit
CN115877978A (en) A baseline tracking method and device for a touch screen
WO2019023878A1 (en) Touch detection method and touch chip
US11429233B2 (en) Common mode noise suppression with restoration of common mode signal
US10540042B2 (en) Impedance ratio-based current conveyor
US10318071B2 (en) Method and apparatus for a blob angle orientation recognition in a touch device
TW202349190A (en) Distributed analog display noise suppression circuit
TWI612454B (en) Baseline updating method for capacitive touch pad
CN119536553A (en) A method for identifying a touch pressure level, a method for controlling a touch pressure operation, a computer device and a storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination