patents.google.com

CN114327161A - Touch device and touch positioning method - Google Patents

  • ️Tue Apr 12 2022

CN114327161A - Touch device and touch positioning method - Google Patents

Touch device and touch positioning method Download PDF

Info

Publication number
CN114327161A
CN114327161A CN202111622942.XA CN202111622942A CN114327161A CN 114327161 A CN114327161 A CN 114327161A CN 202111622942 A CN202111622942 A CN 202111622942A CN 114327161 A CN114327161 A CN 114327161A Authority
CN
China
Prior art keywords
peak
sensing
sensing data
projection
point
Prior art date
2021-12-28
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.)
Granted
Application number
CN202111622942.XA
Other languages
Chinese (zh)
Other versions
CN114327161B (en
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.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing 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.)
2021-12-28
Filing date
2021-12-28
Publication date
2022-04-12
2021-12-28 Application filed by Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
2021-12-28 Priority to CN202111622942.XA priority Critical patent/CN114327161B/en
2022-04-12 Publication of CN114327161A publication Critical patent/CN114327161A/en
2025-03-14 Application granted granted Critical
2025-03-14 Publication of CN114327161B publication Critical patent/CN114327161B/en
Status Active legal-status Critical Current
2041-12-28 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 49
  • 230000009471 action Effects 0.000 claims description 8
  • 238000004364 calculation method Methods 0.000 claims description 7
  • 238000010586 diagram Methods 0.000 description 10
  • 230000006698 induction Effects 0.000 description 10
  • 230000008859 change Effects 0.000 description 5
  • 230000008569 process Effects 0.000 description 5
  • 230000001934 delay Effects 0.000 description 2
  • 230000000977 initiatory effect Effects 0.000 description 2
  • 238000012986 modification Methods 0.000 description 2
  • 230000004048 modification Effects 0.000 description 2
  • 230000005540 biological transmission Effects 0.000 description 1
  • 230000006870 function Effects 0.000 description 1
  • 239000004065 semiconductor Substances 0.000 description 1

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

本发明公开了一种触控定位方法和触控装置,包括:获取感应数据组,感应数据组包括成阵列排布的多个感应数据;将感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区;将感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区;分别获取第一方向投影区和第二方向投影区的投影峰值点;根据第一方向投影区和第二方向投影区的投影峰值点以及感应数据组的对应关系确定实际的峰值感应点;以及根据各个峰值感应点来确定触控轨迹。本发明提供的触控定位方法和触控装置,通过将二维的感应数据投影成一维的感应数据,在根据其对应关系确定实际的峰值感应点,减少了扫描时间,可以快速定位触控区域。

Figure 202111622942

The invention discloses a touch positioning method and a touch device, comprising: acquiring a sensing data set, the sensing data set including a plurality of sensing data arranged in an array; projecting the maximum sensing data of each column in the sensing data set to the first coordinate axis to form the first direction projection area; project the maximum sensing data of each row in the sensing data group to the second coordinate axis to form the second direction projection area; respectively obtain the first direction projection area and the second direction projection According to the projection peak point of the projection area in the first direction and the projection area in the second direction, and the corresponding relationship between the sensing data sets, the actual peak sensing point is determined; and the touch track is determined according to each peak sensing point. The touch positioning method and the touch device provided by the present invention, by projecting the two-dimensional sensing data into one-dimensional sensing data, determine the actual peak sensing point according to the corresponding relationship, reduce the scanning time, and can quickly locate the touch area .

Figure 202111622942

Description

触控装置及触控定位方法Touch device and touch positioning method

技术领域technical field

本发明涉及触控显示技术领域,特别涉及一种触控装置及触控定位方法。The present invention relates to the technical field of touch display, and in particular, to a touch device and a touch positioning method.

背景技术Background technique

随着科学技术的发展,触摸屏在越来越多的电子设备上得到了广泛应用,用户可以通过触摸屏对设备进行各种各样的操作。With the development of science and technology, touch screens have been widely used in more and more electronic devices, and users can perform various operations on the devices through the touch screens.

现有的触摸屏大多为电容式触摸屏,电容式触控装置判断感应点是否被触控的方式为检测所述感应点的感应量,其中感应量为电容变化量,且能够以该感应点触控前后的电压变化量表示,当按压该电容式触摸屏时,在X轴和Y轴方向的扫描线上电后被触控到的点所在的X轴扫描线和Y轴扫描线就会各出现一个正的感应峰值,而出现感应峰值的地方就是被按压到的位置。在触摸屏系统中,在得到一帧时间内的感应(Diff)数据后需要快速获取按压的峰值区域,从而定位触控区域。Most of the existing touch screens are capacitive touch screens, and the capacitive touch device determines whether the sensing point is touched by detecting the sensing quantity of the sensing point, wherein the sensing quantity is the capacitance change, and the sensing point can be used to touch the sensing point. The amount of voltage change before and after indicates that when the capacitive touch screen is pressed, the X-axis scan line and the Y-axis scan line where the touched point is located after the scan lines in the X-axis and Y-axis directions are powered up will appear one each. Positive induction peak, and the place where the induction peak occurs is the position that is pressed. In a touch screen system, after obtaining the sensing (Diff) data within a frame time, it is necessary to quickly obtain the peak area of pressing, so as to locate the touch area.

现有技术中,确定按压的峰值区域需要通过触控装置对触摸屏上的所有感应点(sensor)按行和列逐个搜索并查找满足感应大于预定阈值并且大于相邻感应点的位置,耗费时间较长,搜索的特征较为单一,轮廓信息不好获取,数字电路硬件化困难。In the prior art, to determine the peak area of the pressing, it is necessary to search all the sensing points (sensors) on the touch screen row and column one by one through the touch device and find the position that satisfies the sensing greater than the predetermined threshold and greater than the adjacent sensing points, which takes a relatively long time. It is long, the features of the search are relatively single, the contour information is not easy to obtain, and the hardware of the digital circuit is difficult.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本发明的目的在于提供一种触控装置及触控定位方法,从而可以快速准确定位峰值区域。In view of the above problems, the purpose of the present invention is to provide a touch device and a touch positioning method, so that the peak area can be quickly and accurately positioned.

根据本发明的一方面,提供一种触控定位方法,包括:获取感应数据组,所述感应数据组包括成阵列排布的多个感应数据;将所述感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区;将所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区;分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点;根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点;以及根据各个所述峰值感应点来确定触控轨迹。According to an aspect of the present invention, a touch positioning method is provided, including: acquiring a sensing data set, the sensing data set including a plurality of sensing data arranged in an array; Projecting the data to the first coordinate axis to form a first direction projection area; projecting the maximum sensing data of each row in the sensing data group to the second coordinate axis respectively to form a second direction projection area; respectively acquiring the first direction projection area The projection peak points of the direction projection area and the second direction projection area; the actual peak induction is determined according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relationship of the induction data set and determining a touch trajectory according to each of the peak sensing points.

可选地,根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值感应区域。Optionally, the peak sensing area where each peak sensing point is located is determined according to the projection peak points of the projection area in the first direction and the projection area in the second direction.

可选地,所述分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点的步骤包括:分别遍历所述第一方向投影区和所述第二方向投影区,将感应数据大于设定阈值,且大于与其相邻的感应数据的投影点确定为所述投影峰值点。Optionally, the step of respectively acquiring the projection peak points of the first-direction projection area and the second-direction projection area includes: traversing the first-direction projection area and the second-direction projection area respectively, The projection point whose sensing data is larger than the set threshold and larger than its adjacent sensing data is determined as the projection peak point.

可选地,所述根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点的步骤包括:在所述感应数据组中分别将所述第一方向投影区的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;在所述感应数据组中分别将所述第二方向投影区的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;获得所述感应数据组中所述第一备选通道和所述第二备选通道交点位置上的至少一个感应点;以及将所述交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为所述实际的峰值感应点。Optionally, the step of determining the actual peak sensing point according to the corresponding relationship between the projection peak points of the projection area in the first direction and the projection area in the second direction and the sensing data set includes: in the sensing data In the group, a row of sensing data corresponding to at least one first peak sensing point in the projection area of the first direction is respectively determined as the first candidate channel; A column of sensing data corresponding to a second peak sensing point is determined as a second candidate channel; at least one sensing point at the intersection of the first candidate channel and the second candidate channel in the sensing data group is obtained; and determining a sensing point whose sensing data in at least one sensing point at the intersection position is greater than a set threshold value as the actual peak sensing point.

可选的,所述根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值感应区域的步骤包括:分别获取各个峰值感应点在所述第一方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为行宽;分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;以所述各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在所述感应量数据组中对应的感应数据确定第一峰值区域;以及对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域。Optionally, the step of determining the peak sensing area where each peak sensing point is located according to the projection peak points of the first-direction projection area and the second-direction projection area includes: separately acquiring each peak sensing point. The number of sensing points that are greater than the set threshold before and after the projection peak point of the projection area in the first direction is taken as the line width; respectively obtain each peak sensing point before and after the projection peak point of the projection area in the second direction that is greater than the set threshold The number of the sensing points is taken as the column width; the first peak area is determined according to the sensing data corresponding to the row width and column width of each peak sensing point in the sensing quantity data set with the respective peak sensing points as the center; and optimizing the edge of the first peak area to determine the peak sensing area where each peak sensing point is located.

可选的,所述对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域的步骤包括:将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若所述边界上的感应数据均小于所述设定阈值,则将所述边界沿靠近所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据大于所述设定阈值;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。Optionally, the step of optimizing the edge of the first peak area to determine the peak sensing area where each peak sensing point is located includes: comparing the sensing data of a boundary on the first peak area with the setting. If the sensing data on the boundary are all smaller than the set threshold, move the boundary in the direction close to the peak sensing point until at least one sensing data in the boundary is larger than the threshold. Setting a threshold; repeating the above comparison until all four boundaries of the first peak region are adjusted; and setting the region determined by the four boundaries after adjustment as the final peak sensing region.

可选的,所述对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值区域的步骤包括:将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若所述边界上的感应数据均大于所述设定阈值,则将所述边界沿背离所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据小于所述设定阈值;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。Optionally, the step of optimizing the edge of the first peak area to determine the peak area where each peak sensing point is located includes: comparing the sensing data of a boundary on the first peak area with the setting sufficient. The thresholds are compared, and if the sensing data on the boundary are all greater than the set threshold, the boundary is moved in a direction away from the peak sensing point until at least one sensing data in the boundary is smaller than the set threshold. setting a threshold; repeating the above comparison until all four boundaries of the first peak region are adjusted; and setting the region determined by the four boundaries after the adjustment as the final peak sensing region.

根据本发明的另一方面,提供一种触控装置,包括:获取模块,用于获取感应数据组,所述感应数据组包括成阵列排布的多个感应数据;投影模块,用于将所述感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区;将所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区;计算模块,用于分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点;定位模块,用于根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点;以及根据各个所述峰值感应点来确定触控轨迹。According to another aspect of the present invention, a touch device is provided, comprising: an acquisition module for acquiring a sensing data set, the sensing data set including a plurality of sensing data arranged in an array; a projection module for Projecting the maximum sensing data of each column in the sensing data set to the first coordinate axis to form a first direction projection area; projecting the maximum sensing data of each row in the sensing data set to the second coordinate axis respectively to form the second coordinate axis a direction projection area; a calculation module for respectively obtaining the projection peak points of the first direction projection area and the second direction projection area; a positioning module for respectively obtaining the projection peak points of the first direction projection area and the second direction projection area; a positioning module for according to the first direction projection area and the second direction The corresponding relationship between the projection peak point of the projection area and the sensing data set determines the actual peak sensing point; and the touch track is determined according to each of the peak sensing points.

可选地,所述定位模块还用于根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值区域面积。Optionally, the positioning module is further configured to determine, according to the projection peak points of the projection area in the first direction and the projection area in the second direction, the area of the peak area where each peak sensing point is located.

可选地,所述计算模块配置为:分别遍历所述第一方向投影区和所述第二方向投影区,将感应数据大于设定阈值,且大于与其相邻的感应数据的投影点确定为所述投影峰值点。Optionally, the computing module is configured to: traverse the projection area in the first direction and the projection area in the second direction respectively, and determine the projection point where the sensing data is greater than a set threshold and is greater than the sensing data adjacent to it as: the projected peak point.

可选地,所述定位模块配置为:在所述感应数据组中分别将所述第一方向投影区的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;在所述感应数据组中分别将所述第二方向投影区的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;获得所述感应数据组中所述第一备选通道和所述第二备选通道交点位置上的至少一个感应点;以及将所述交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为所述实际的峰值感应点。Optionally, the positioning module is configured to: respectively determine a row of sensing data corresponding to at least one first peak sensing point in the first direction projection area as the first candidate channel in the sensing data group; In the sensing data set, a column of sensing data corresponding to at least one second peak sensing point in the projection area of the second direction is respectively determined as the second candidate channel; the first candidate channel and the first candidate channel in the sensing data set are obtained. at least one sensing point at the intersection position of the second candidate channel; and determining a sensing point whose sensing data in the at least one sensing point at the intersection position is greater than a set threshold as the actual peak sensing point.

可选地,定位模块还配置为分别获取各个峰值感应点在所述第一方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为行宽;分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;以所述各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在所述感应量数据组中对应的感应数据确定第一峰值区域;以及对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域。Optionally, the positioning module is further configured to separately obtain the number of sensing points that are greater than the set threshold before and after the projection peak point of each peak sensing point in the first direction projection area as the line width; The number of sensing points that are greater than the set threshold before and after the projection peak point of the projection area in the second direction is taken as the column width; The corresponding sensing data in the sensing amount data set determines a first peak area; and the edge of the first peak area is optimized to determine a peak sensing area where each peak sensing point is located.

可选地,所述定位模块还配置为执行以下操作以对所述第一峰值区域边缘进行优化:将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若所述边界上的感应数据均小于所述设定阈值,则将所述边界沿靠近所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据大于所述设定阈值;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。Optionally, the positioning module is further configured to perform the following operations to optimize the edge of the first peak area: compare the sensing data of a boundary on the first peak area with a set threshold, and if all If the sensing data on the boundary are all smaller than the set threshold, move the boundary in a direction close to the peak sensing point until at least one sensing data in the boundary is greater than the set threshold; repeat the above Comparing until the four boundaries of the first peak region are adjusted; and setting the region determined by the four boundaries after the adjustment as the final peak sensing region.

可选地,所述定位模块还配置为执行以下操作以对所述第一峰值区域边缘进行优化:将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若所述边界上的感应数据均大于所述设定阈值,则将所述边界沿背离所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据小于所述设定阈值;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。Optionally, the positioning module is further configured to perform the following operations to optimize the edge of the first peak area: compare the sensing data of a boundary on the first peak area with a set threshold, and if all If the sensing data on the boundary are all greater than the set threshold, move the boundary in a direction away from the peak sensing point until at least one sensing data in the boundary is smaller than the set threshold; repeat the above Comparing until the four boundaries of the first peak region are adjusted; and setting the region determined by the four boundaries after the adjustment as the final peak sensing region.

根据本发明的另一方面,提供一种触控装置,包括:相互连接的触摸屏和控制器,其中,所述触摸屏用于接收触控动作;所述控制器用于基于所述触控动作执行如上述所述的触控定位方法。According to another aspect of the present invention, a touch control device is provided, comprising: a touch screen and a controller connected to each other, wherein the touch screen is configured to receive a touch action; the controller is configured to perform the following steps based on the touch action. The above-mentioned touch positioning method.

根据本发明的另一方面,提供一种计算机可读存储介质,用于存储有计算机指令,计算机指令被执行时实现如上述所述的触控定位方法。According to another aspect of the present invention, a computer-readable storage medium is provided for storing computer instructions, and when the computer instructions are executed, the above-mentioned touch positioning method is implemented.

本发明提供的触控定位方法和触控装置,在获取到一帧时间内的感应数据组后,将二维的感应数据投影成一维的投影数据,确定投影峰值点后再根据第一方向投影区和第二方向投影区与感应数据组的投影对应关系确定实际的峰值感应点,扫描时间短,可以快速定位触控区域。In the touch positioning method and the touch device provided by the present invention, after acquiring the sensing data set within a frame time, the two-dimensional sensing data is projected into one-dimensional projection data, the projection peak point is determined, and then the projection is performed according to the first direction The corresponding relationship between the projection area and the projection area in the second direction and the sensing data set determines the actual peak sensing point, and the scanning time is short, which can quickly locate the touch area.

在优选的实施例中,根据各个峰值感应点在第一方向投影区和第二方向投影区的投影峰值点前后大于预定阈值的个数确定其行宽和列宽,从而确定各个峰值感应点所处位置的第一峰值区域,再对第一峰值区域边缘进行优化,确定峰值感应区域即触控区域,使得触控区域的轮廓获取简单,触控区域的定位准确。In a preferred embodiment, the row width and column width of each peak sensing point are determined according to the number of the peak sensing points before and after the projection peak point in the first direction projection area and the second direction projection area that are greater than a predetermined threshold, so as to determine the number of each peak sensing point. Then, the edge of the first peak area is optimized to determine the peak sensing area, that is, the touch area, so that the outline of the touch area can be easily obtained and the positioning of the touch area is accurate.

附图说明Description of drawings

通过以下参照附图对本发明实施例的描述,本发明的上述以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:

图1示出了现有技术的触控装置示意图。FIG. 1 shows a schematic diagram of a touch control device in the prior art.

图2示出了根据本发明实施例的触控定位方法流程图。FIG. 2 shows a flowchart of a touch positioning method according to an embodiment of the present invention.

图3示出了根据本发明实施例的触控定位方法示意图之一。FIG. 3 shows one schematic diagram of a touch positioning method according to an embodiment of the present invention.

图4示出了根据本发明实施例的触控定位方法示意图之二。FIG. 4 shows the second schematic diagram of a touch positioning method according to an embodiment of the present invention.

图5示出了根据本发明实施例的触控定位方法示意图之三。FIG. 5 shows a third schematic diagram of a touch positioning method according to an embodiment of the present invention.

图6示出了根据本发明实施例的触控定位方法示意图之四。FIG. 6 shows a fourth schematic diagram of a touch positioning method according to an embodiment of the present invention.

图7示出了根据本发明实施例的一种触控装置。FIG. 7 shows a touch device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下将参照附图更详细地描述本发明的各种实施例。在各个附图中,相同的元件或者模块采用相同或类似的附图标记来表示。为了清楚起见,附图中的各个部分没有按比例绘制。Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In the various figures, the same elements or modules are designated by the same or similar reference numerals. For the sake of clarity, various parts in the figures have not been drawn to scale.

应当理解,在以下的描述中,“电路”可包括单个或多个组合的硬件电路、可编程电路、状态机电路和/或能存储由可编程电路执行的指令的元件。当称元件或电路“连接到”另一元件或称元件或电路“连接在”两个节点之间时,它可以直接耦合或连接到另一元件或者可以存在中间元件,元件之间的连接可以是物理上的、逻辑上的,或者其结合。相反,当称元件“直接耦合到”或“直接连接到”另一元件时,意味着两者不存在中间元件。It should be understood that in the following description, "circuitry" may include single or multiple combined hardware circuits, programmable circuits, state machine circuits, and/or elements capable of storing instructions executed by the programmable circuits. When an element or circuit is referred to as being "connected" to another element or "connected" between two nodes, it can be directly coupled or connected to the other element or intervening elements may be present, and the connection between the elements may be be physical, logical, or a combination thereof. In contrast, when an element is referred to as being "directly coupled" or "directly connected" to another element, it is meant that there are no intervening elements present.

同时,在本专利说明书及权利要求当中使用了某些词汇来指称特定的组件。本领域普通技术人员应当可理解,硬件制造商可能会用不同的名词来称呼同一个组件。本专利说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。Also, certain terms are used in this patent specification and claims to refer to specific components. It should be understood by those of ordinary skill in the art that hardware manufacturers may refer to the same component by different nouns. The patent specification and claims do not use the difference in name as a way to distinguish components, but use the difference in function of the components as a criterion for distinguishing.

此外,还需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Furthermore, it should be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

图1示出了根据现有技术的触控装置示意图。参照图1,触控装置包括触控感应单元,触控感应单元包括多条第一感应线11、多条第二感应线12、前端电路13和触控传感器14。多条第一感应线11与多条第二感应线12彼此绝缘且相互交叉形成多个感应点15,多条第一感应线11相互平行并以第一方向延伸(如X方向),多条第二感应线12相互平行并以第二方向延伸(如Y方向)。多条第一感应线11与前端电路13电连接,前端电路13与触控传感器14电连接。FIG. 1 shows a schematic diagram of a touch control device according to the prior art. 1 , the touch device includes a touch sensing unit, and the touch sensing unit includes a plurality of first sensing lines 11 , a plurality of second sensing lines 12 , a front-end circuit 13 and a touch sensor 14 . The plurality of first sensing lines 11 and the plurality of second sensing lines 12 are insulated from each other and cross each other to form a plurality of sensing points 15. The plurality of first sensing lines 11 are parallel to each other and extend in a first direction (such as the X direction). The second sensing lines 12 are parallel to each other and extend in a second direction (eg, the Y direction). The plurality of first sensing lines 11 are electrically connected to the front-end circuit 13 , and the front-end circuit 13 is electrically connected to the touch sensor 14 .

当按压触摸屏时,被触控到的感应点15对应的感应电容就会发生变化,前端电路13可以获取触碰到的感应点15的感应数据。触控传感器14以特定的扫描顺序取得各感应点15的感应数据,并且找出感应数据大于预定阈值的多个感应点,接着,触控传感器14再以特定扫描顺序全屏扫描将感应大于预定阈值的感应点15与其邻近的多个感应点15的感应数据相比较判断峰值感应。When the touch screen is pressed, the sensing capacitance corresponding to the touched sensing point 15 will change, and the front-end circuit 13 can obtain sensing data of the touched sensing point 15 . The touch sensor 14 obtains the sensing data of each sensing point 15 in a specific scanning sequence, and finds a plurality of sensing points whose sensing data is greater than a predetermined threshold. Then, the touch sensor 14 scans the full screen in a specific scanning sequence to detect that the sensing data is greater than the predetermined threshold. The sensing point 15 is compared with the sensing data of a plurality of sensing points 15 adjacent to it to determine the peak sensing.

为了更好的理解本发明,下面通过一组感应数据来详细说明本发明,附图3-附图6使用的是同一组感应数据,该感应数据组为一帧时间内的感应数据,共有32行,18列。In order to better understand the present invention, the present invention is described in detail below through a set of sensing data. Figures 3 to 6 use the same set of sensing data. The sensing data set is the sensing data within a frame time, with a total of 32 row, 18 columns.

图2示出了根据本发明实施例的触控定位方法流程图;图3示出了根据本发明实施例的触控定位方法示意图之一;图4示出了根据本发明实施例的触控定位方法示意图之二;图5示出了根据本发明实施例的触控定位方法示意图之三;图6示出了根据本发明实施例的触控定位方法示意图之四。Fig. 2 shows a flowchart of a touch positioning method according to an embodiment of the present invention; Fig. 3 shows one of the schematic diagrams of a touch positioning method according to an embodiment of the present invention; Fig. 4 shows a touch control method according to an embodiment of the present invention The second schematic diagram of the positioning method; FIG. 5 shows the third schematic diagram of the touch positioning method according to the embodiment of the present invention; FIG. 6 shows the fourth schematic diagram of the touch positioning method according to the embodiment of the present invention.

本发明提供的触控定位方法包括:The touch positioning method provided by the present invention includes:

S1:获取感应数据组,感应数据组包括成阵列排布的多个感应数据;S1: Acquire a sensing data set, where the sensing data set includes a plurality of sensing data arranged in an array;

S2:将感应数据组中每一行的最大感应数据分别投影到第一坐标轴以形成第一方向投影区20;将所述感应数据组中每一列的最大感应数据分别投影到第二坐标轴以形成第二方向投影区30;S2: Project the maximum sensing data of each row in the sensing data set to the first coordinate axis to form the first direction projection area 20; Project the maximum sensing data of each column in the sensing data set to the second coordinate axis respectively to forming a second direction projection area 30;

S3:分别获取第一方向投影区20和所述第二方向投影区30的投影峰值点;S3: respectively obtain the projection peak points of the first-direction projection area 20 and the second-direction projection area 30;

S4:根据第一方向投影区20和第二方向投影区30的投影峰值点以及感应数据组的对应关系确定实际的峰值感应点;以及根据各个峰值感应点来确定触控轨迹。S4: Determine the actual peak sensing point according to the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction and the corresponding relationship of the sensing data set; and determine the touch track according to each peak sensing point.

进一步的,步骤S2:将感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区20;将所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区30,其中投影的实现可以通过纯软件程序实现,具体程序如下:Further, step S2: project the maximum sensing data of each column in the sensing data set to the first coordinate axis respectively to form the first direction projection area 20; project the maximum sensing data of each row in the sensing data set to the first coordinate axis respectively; Two coordinate axes to form the second direction projection area 30, wherein the realization of the projection can be realized by a pure software program, and the specific program is as follows:

Figure BDA0003438853380000071

Figure BDA0003438853380000071

Figure BDA0003438853380000081

Figure BDA0003438853380000081

上述程序中,int16是数据的宽度,XN是X轴方向投影,YN是Y轴方向投影,Diff是感应量,Diff[32][18]是一帧感应量数据32行*18列,memcpy是内存拷贝,for(int i=0;i<32;i++)是按行寻找,YN[i]=Diff[i][0]是Y轴投影初值,for(int j=0;j<18;j++){if(Diff[i][j]>YN[i]){YN[i]=Diff[i][j]是18次走完投影一行,if(Diff[i][j]>XN[j]){′XN[j]=Diff[i][j];}是X轴走完投影一行。In the above program, int16 is the width of the data, XN is the projection in the X-axis direction, YN is the projection in the Y-axis direction, Diff is the induction amount, Diff[32][18] is a frame of induction amount data 32 rows * 18 columns, memcpy is Memory copy, for(int i=0; i<32; i++) is to search by row, YN[i]=Diff[i][0] is the initial value of Y-axis projection, for(int j=0; j<18 ;j++){if(Diff[i][j]>YN[i]){YN[i]=Diff[i][j] is a line of projection after 18 walks, if(Diff[i][j]> XN[j]){'XN[j]=Diff[i][j];} is a line of projection after the X-axis travels.

进一步的,步骤S2:将感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区20;所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区30,其中投影的实现可以通过ALU加速器配合软件程序实现,具体公式如下:Further, step S2: project the maximum sensing data of each column in the sensing data set to the first coordinate axis to form the first direction projection area 20; project the maximum sensing data of each row in the sensing data set to the second The coordinate axis is used to form the projection area 30 in the second direction, and the realization of the projection can be realized by the ALU accelerator with the software program, and the specific formula is as follows:

XN=(x1 x2…xN-1 xN)XN=(x 1 x 2 ... x N-1 x N )

B=(Diff[m][0] Diff[m][1]...Diff[m][N-2] Diff[m][N-1])B=(Diff[m][0] Diff[m][1]...Diff[m][N-2] Diff[m][N-1])

XN=((max(x1,Diff[m][0]) max(x2,Diff[m][1])...max(xN-1,Diff[m][N-2])max(xN,Diff[m][N-1])))XN=((max(x 1 , Diff[m][0]) max(x 2 , Diff[m][1])...max(x N-1 , Diff[m][N-2]) max(x N , Diff[m][N-1])))

YN=(y1 y2…yM-1 yM)YN=(y 1 y 2 ... y M-1 y M )

B=(Diff[0][n] Diff[1][n]…Diff[M-2][n] Diff[M-1][n])B=(Diff[0][n] Diff[1][n]...Diff[M-2][n] Diff[M-1][n])

YN=((max(y1,Diff[0][n]) max(y2,Diff[1][n])...max(yN-1,Diff[M-2][n])max(yN,Diff[M-2][n])))YN=((max(y 1 , Diff[0][n]) max(y 2 , Diff[1][n])...max(y N-1 , Diff[M-2][n]) max(y N , Diff[M-2][n])))

ALU例如为IC的计算加速器模块,是可以实现多组算术运算和逻辑运算的组合逻辑电路。上述公式中XN是X轴方向投影,YN是Y轴方向投影,M为全屏感应最大行数,N为全屏感应最大列数,N为正整数,XN’/YN’为ALU微算子计算列/行感应数据的最大值,B为感应量集合,经过M+N次的ALU运算即可得到X轴方向的投影和Y轴方向的投影,形成如图3-图6所示的第一方向投影区20和第二方向投影区30。The ALU is, for example, a computational accelerator module of an IC, which is a combinational logic circuit that can implement multiple sets of arithmetic operations and logical operations. In the above formula, XN is the projection in the X-axis direction, YN is the projection in the Y-axis direction, M is the maximum number of rows for full-screen induction, N is the maximum number of columns for full-screen induction, N is a positive integer, and XN'/YN' is the calculation column of the ALU micro operator. The maximum value of the induction data of /line, B is the induction set, after M+N ALU operations, the projection of the X-axis direction and the projection of the Y-axis direction can be obtained, forming the first direction as shown in Figure 3-Figure 6 The projection area 20 and the projection area 30 in the second direction.

进一步的,步骤S3:分别获取第一方向投影区20和所述第二方向投影区30的投影峰值点的步骤包括:Further, step S3: the step of respectively acquiring the projection peak points of the first-direction projection area 20 and the second-direction projection area 30 includes:

分别遍历第一方向投影区20和第二方向投影区30,将感应数据大于设定阈值(本实施例的设定阈值以150为例),且大于与其相邻的感应数据的投影点确定为投影峰值点。图3-图6中虚线椭圆圈起来的数据所在的点即为第一方向投影区20和第二方向投影区30上的投影峰值点,投影峰值点的获取可以通过ALU算法。Traverse the first-direction projection area 20 and the second-direction projection area 30 respectively, and determine the projection point where the sensing data is greater than the set threshold (the set threshold in this embodiment is 150 as an example), and is greater than the projection point of the adjacent sensing data as Projected peak point. The points where the data circled by the dotted ellipse in FIGS. 3 to 6 are located are the projection peak points on the first-direction projection area 20 and the second-direction projection area 30, and the projection peak point can be obtained through the ALU algorithm.

进一步的,步骤S4:根据第一方向投影区20和第二方向投影区30的投影峰值点以及感应数据组的对应关系确定实际的峰值感应点的步骤包括:在感应数据组中分别将第一方向投影区20的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;在感应数据组中分别将第二方向投影区30的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;获得感应数据组中第一备选通道和第二备选通道交点位置上的至少一个感应点;以及将交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为实际的峰值感应点。Further, step S4: the step of determining the actual peak sensing point according to the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction and the corresponding relationship of the sensing data set includes: in the sensing data set, the first A row of sensing data corresponding to at least one first peak sensing point in the direction projection area 20 is determined as the first candidate channel; in the sensing data group, a column corresponding to at least one second peak sensing point in the second direction projection area 30 is respectively sensed The data is determined as the second candidate channel; at least one sensing point at the intersection of the first candidate channel and the second candidate channel in the sensing data group is obtained; and the sensing data in the at least one sensing point at the intersection position is greater than the set value. The threshold sensing point is determined as the actual peak sensing point.

参照图5,第一方向投影区20的第一峰值感应点上的感应数据737、767、800、879、807所在的行为第一备选通道,第二方向投影区30的第二峰值感应点上的感应数据807、767、879、800所在的列作为第二备选通道,感应数据737所在的第一备选通道与第二备选通道相交得到了交点R(1,1)、G(1,2)、G(1,3)、G(1,4),之后判断交点R(1,1)、G(1,2)、G(1,3)、G(1,1)和预定阈值的大小关系,判断方式不限,可以通过软件程序或者ALU算法,通过判断只有交点R(1,1)上的感应数据大于预定阈值,那么交点R(1,1)就是实际的峰值感应点,而交点G(1,2)、G(1,3)、G(1,1)上的感应数据小于预定阈值,那么G(1,2)、G(1,3)、G(1,4)即为本领域所述的鬼点,需要滤除。图5为了显示清晰,仅示出部分交点,实际判断过程中,需要获取所有第一备选通道与第二备选通道的交点,再将所有交点上的感应数据与预定阈值进行比较,然后滤除小于预定阈值的感应数据所在的点。Referring to FIG. 5 , the sensing data 737 , 767 , 800 , 879 , and 807 on the first peak sensing point of the first direction projection area 20 are located in the first candidate channel, and the second peak sensing point of the second direction projection area 30 is located. The column where the sensing data 807, 767, 879, and 800 are located on is used as the second candidate channel, and the first candidate channel where the sensing data 737 is located intersects with the second candidate channel to obtain the intersection points R(1,1), G( 1,2), G(1,3), G(1,4), and then determine the intersection points R(1,1), G(1,2), G(1,3), G(1,1) and The relationship between the predetermined threshold value and the judgment method is not limited. It can be determined by software program or ALU algorithm. By judging that only the sensing data at the intersection point R(1,1) is greater than the predetermined threshold value, then the intersection point R(1,1) is the actual peak sensing point, and the sensing data at the intersection points G(1,2), G(1,3), G(1,1) are less than the predetermined threshold, then G(1,2), G(1,3), G(1 , 4) is the ghost point described in the field and needs to be filtered out. Figure 5 only shows some intersection points for the sake of clarity. In the actual judgment process, it is necessary to obtain the intersection points of all the first candidate channels and the second candidate channels, and then compare the sensing data on all the intersection points with the predetermined threshold, and then filter Divide the points where the sensed data is less than a predetermined threshold.

本发明实施例提供的触控定位方法,在获取到一帧时间内的感应数据后,将二维的感应数据投影成一维的投影数据,确定投影峰值点后再根据第一方向投影区20和第二方向投影区30与感应数据组的投影对应关系确定实际的峰值感应点,扫描时间短,可以快速定位触控区域。In the touch positioning method provided by the embodiment of the present invention, after acquiring the sensing data within a frame time, the two-dimensional sensing data is projected into one-dimensional projection data, the projection peak point is determined, and then the projection area 20 and The projection correspondence between the projection area 30 in the second direction and the sensing data set determines the actual peak sensing point. The scanning time is short, and the touch area can be quickly located.

本发明提供的触控定位方法,还可以根据第一方向投影区20和第二方向投影区30的投影峰值点确定各个峰值感应点所处位置的峰值感应区域。The touch positioning method provided by the present invention can also determine the peak sensing area where each peak sensing point is located according to the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction.

进一步的,根据第一方向投影区20和第二方向投影区30的投影峰值点确定各个峰值感应点所处位置的峰值感应区域的步骤包括:分别获取各个峰值感应点在第一方向投影区20的投影峰值点前后大于设定阈值的感应点的个数作为行宽;分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;以各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在感应量数据组中对应的感应数据确定第一峰值区域;以及对第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域。其中,投影峰值点及其前后大于设定阈值的感应点所在的区域为投影峰值区域。Further, the step of determining the peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area 20 and the second direction projection area 30 includes: respectively acquiring each peak sensing point in the first direction projection area 20. The number of sensing points that are greater than the set threshold before and after the projection peak point is taken as the row width; the number of sensing points that are greater than the set threshold before and after the projection peak point of each peak sensing point in the projection area of the second direction is obtained as the column. taking each peak sensing point as the center, and determining the first peak area according to the corresponding sensing data of the row width and column width of each peak sensing point in the sensing quantity data set; and optimizing the edge of the first peak area to determine the each peak area The peak sensing area where the peak sensing point is located. Among them, the projection peak point and the area where the sensing points before and after it are greater than the set threshold are located are the projection peak area.

参照图5,以实际的峰值感应点上的感应数据807为例,它在第一方向投影区20的投影峰值区域为YP5,投影峰值807前面有一个大于预定阈值的数据379,后面有一个大于预定阈值的数据499,它在第二方向投影区的投影峰值807的投影区域为XP1,它前面有两个大于预定阈值的数据169、567,它后面有两个大于预定阈值的数据790、346,由此可以确定该峰值感应点的行宽为前1后1,列宽为前2后2。YP1-YP4为第一投影区20的投影峰值区域,XP2-XP4为第二投影区30的投影峰值区域,不过如果该投影峰值前后的感应数据为其他的投影峰值,则自动截止不再计算。之后以感应数据807所在的实际峰值感应点为中心,根据该峰值感应点的行宽和列宽在感应数据组中对应的感应数据即可确定感应数据807所在的峰值感应点的第一峰值区域,具体对应关系是以感应数据807为中心,将感应数据807所在行及其前面一行和后面一行与感应数据807所在列及其前面两列和后面两列的重叠区域确定为该峰值感应点的第一峰值区域,即图6中的GP5。同理可以确定其他峰值感应点的第一峰值区域GP1-GP4,从图中可以看出因为感应数据组中同一列或者同一行上可能有两个以上的峰值点,投影时出现影子覆盖,使得其行宽或者列宽出现偏差,所以得到的第一峰值区域会出现不准确的情况,所以需要对其边缘进行优化以得到实际的峰值感应区域。Referring to FIG. 5, taking the sensing data 807 on the actual peak sensing point as an example, the projection peak area of the projection area 20 in the first direction is YP5, the projection peak 807 has a data 379 larger than a predetermined threshold in front, and a data 379 larger than a predetermined threshold in the back. The data 499 of the predetermined threshold, the projection area of the projection peak 807 of the projection area in the second direction is XP1, there are two data 169, 567 greater than the predetermined threshold in front of it, and there are two data 790, 346 behind it that are greater than the predetermined threshold , it can be determined that the row width of the peak sensing point is the first 1 and the last 1, and the column width is the first 2 and the last 2. YP1-YP4 are the projection peak areas of the first projection area 20, and XP2-XP4 are the projection peak areas of the second projection area 30. However, if the sensing data before and after the projection peak are other projection peaks, the automatic cutoff will not be calculated. Then, taking the actual peak sensing point where the sensing data 807 is located as the center, and according to the sensing data corresponding to the row width and column width of the peak sensing point in the sensing data group, the first peak area of the peak sensing point where the sensing data 807 is located can be determined. , the specific correspondence is centered on the sensing data 807, and the overlapping area of the row where the sensing data 807 is located, its previous row and the following row and the column where the sensing data 807 is located, and the first two columns and the latter two columns is determined as the peak sensing point. The first peak region, namely GP5 in Figure 6. Similarly, the first peak areas GP1-GP4 of other peak sensing points can be determined. It can be seen from the figure that because there may be more than two peak points in the same column or row in the sensing data set, shadow coverage occurs during projection, so that The row width or column width deviates, so the obtained first peak area may be inaccurate, so the edge needs to be optimized to obtain the actual peak sensing area.

进一步的,对第一峰值区域边缘优化确定各个峰值感应点所处位置的峰值感应区域的步骤包括:将第一峰值区域上的一个边界的感应数据与设定阈值进行比较,若边界上的感应数据均小于设定阈值,则将边界沿靠近峰值感应点的方向移动,直到该边界中出现至少一个感应数据大于设定阈值,则该感应数据所在的位置的边界即为该方向的边界;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若边界上的感应数据均大于设定阈值,则将边界沿背离所述峰值感应点的方向移动,直到边界中出现至少一个感应数据小于设定阈值,则该感应数据的所在位置的前一位置的边界的即为该方向的边界;重复上述的比较,直至第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的峰值感应区域。Further, the step of determining the peak sensing area where each peak sensing point is located by optimizing the edge of the first peak area includes: comparing the sensing data of a boundary on the first peak area with a set threshold, if the sensing data on the boundary is If the data are all less than the set threshold, move the boundary in the direction close to the peak sensing point until at least one sensing data in the boundary is greater than the set threshold, then the boundary of the location where the sensing data is located is the boundary of the direction; repeat In the above comparison, all four boundaries of the first peak region are adjusted; and the region determined by the four boundaries after the adjustment is set as the final peak sensing region. Compare the sensing data of a boundary on the first peak area with the set threshold, and if the sensing data on the boundary are all greater than the set threshold, move the boundary in a direction away from the peak sensing point until the boundary If at least one sensing data is less than the set threshold, the boundary of the previous position of the sensing data is the boundary of the direction; the above-mentioned comparison is repeated until the four boundaries of the first peak area are adjusted; And the area determined by the four boundaries after adjustment is set as the final peak sensing area.

参照图6,第一峰值区域GP1、GP5、GP3都需要对边缘进行优化,其中GP1、GP5存在箭头的边界需要向靠近峰值感应点的方向,即向箭头指向的方向搜索,直到该边界中出现至少一个感应数据大于设定阈值,将其所在位置的边界确定为GP1、GP5真正的边界;GP3存在箭头的边界需要向背离峰值感应点的方向的移动,即箭头指向的方向,直到该边界中出现至少一个感应数据小于设定阈值,将其所在位置的前一位置的边界确定为GP3真正的边界。Referring to FIG. 6 , the edges of the first peak regions GP1, GP5, and GP3 need to be optimized, and the boundaries of GP1 and GP5 with arrows need to be searched in the direction close to the peak sensing point, that is, in the direction pointed by the arrows, until the boundary appears. At least one sensing data is greater than the set threshold, and the boundary of its location is determined as the real boundary of GP1 and GP5; the boundary of GP3 with arrows needs to move in the direction away from the peak sensing point, that is, the direction pointed by the arrow, until the boundary When at least one sensing data is smaller than the set threshold, the boundary of the previous position of its position is determined as the real boundary of GP3.

本发明实施例提供的触控定位方法,根据各个峰值感应点在第一方向投影区20和第二方向投影区30的投影峰值点前后大于预定阈值的个数确定其行宽和列宽,从而确定各个峰值感应点所处位置的第一峰值区域,再对第一峰值区域边缘进行优化,确定峰值感应区域即触控区域,使得触控区域的轮廓获取简单,触控区域的定位准确。In the touch positioning method provided by the embodiment of the present invention, the row width and column width of each peak sensing point are determined according to the number of the peak sensing points before and after the projection peak point of the first-direction projection area 20 and the second-direction projection area 30 that are greater than a predetermined threshold, so that the The first peak area where each peak sensing point is located is determined, and then the edge of the first peak area is optimized to determine the peak sensing area, that is, the touch area, so that the outline of the touch area can be easily obtained and the positioning of the touch area is accurate.

本发明还提供了一种触控装置,图7示出了根据本发明实施例的一种触控装置,包括:The present invention also provides a touch control device, and FIG. 7 shows a touch control device according to an embodiment of the present invention, including:

获取模块,用于获取感应数据组,感应数据组包括成阵列排布的多个感应数据;an acquisition module, used for acquiring a sensing data group, where the sensing data group includes a plurality of sensing data arranged in an array;

投影模块,用于将感应数据组中每一行的最大感应数据分别投影到第一坐标轴以形成第一方向投影区20;将所述感应数据组中每一列的最大感应数据分别投影到第二坐标轴以形成第二方向投影区30;;The projection module is used for projecting the maximum sensing data of each row in the sensing data set to the first coordinate axis respectively to form the first direction projection area 20; projecting the maximum sensing data of each column in the sensing data set to the second Coordinate axis to form the second direction projection area 30;;

计算模块,用于分别获取第一方向投影区20和所述第二方向投影区30的投影峰值点;a calculation module, used to obtain the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction respectively;

定位模块,同于根据第一方向投影区20和第二方向投影区30的投影峰值点以及感应数据组的对应关系确定实际的峰值感应点;以及根据各个峰值感应点来确定触控轨迹。The positioning module is the same as determining the actual peak sensing point according to the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction and the corresponding relationship of the sensing data set; and determining the touch track according to each peak sensing point.

进一步的,投影模块可以通过纯软件程序、ALU加速器配合软件实现投影,具体程序或公式见上述触控定位方法,在此不在一一赘述。Further, the projection module can realize projection through pure software programs, ALU accelerators and software. For specific procedures or formulas, refer to the above-mentioned touch positioning method, which will not be repeated here.

进一步的,计算模块配置为:分别遍历第一方向投影区20和第二方向投影区30,将感应数据大于设定阈值(本实施例的设定阈值以150为例),且大于与其相邻的感应数据的投影点确定为投影峰值点。上述计算可以采用例如ALU算法完成,算法程序可以置于计算机可读存储介质中。Further, the calculation module is configured to: traverse the first-direction projection area 20 and the second-direction projection area 30 respectively, and set the sensing data to be greater than the set threshold (the set threshold in this embodiment is 150 as an example), and greater than the adjacent ones. The projected point of the sensing data is determined as the projected peak point. The above calculation can be accomplished by, for example, an ALU algorithm, and the algorithm program can be placed in a computer-readable storage medium.

进一步的,定位模块配置为:根据第一方向投影区20和第二方向投影区30的投影峰值点以及感应数据组的对应关系确定实际的峰值感应点的步骤包括:在感应数据组中分别将第一方向投影区20的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;在感应数据组中分别将第二方向投影区30的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;获得感应数据组中第一备选通道和第二备选通道交点位置上的至少一个感应点;以及将交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为实际的峰值感应点,并且将交点位置上的至少一个感应点中的感应数据小于设定阈值的感应点滤除。Further, the positioning module is configured to: the step of determining the actual peak sensing point according to the projection peak points of the first-direction projection area 20 and the second-direction projection area 30 and the corresponding relationship of the sensing data set includes: in the sensing data set, respectively A line of sensing data corresponding to at least one first peak sensing point in the first direction projection area 20 is determined as the first candidate channel; in the sensing data group, the at least one second peak sensing point corresponding to the second direction projection area 30 is respectively determined. A column of sensing data is determined as the second candidate channel; at least one sensing point at the intersection of the first candidate channel and the second candidate channel in the sensing data group is obtained; and the sensing data in the at least one sensing point at the intersection position is obtained The sensing points greater than the set threshold are determined as the actual peak sensing points, and the sensing points whose sensing data is less than the set threshold in at least one sensing point at the intersection position are filtered out.

本发明实施例提供的触控装置,投影模块在获取到一帧时间内的感应数据后,将二维的感应数据投影成一维的投影数据,计算模块确定投影峰值点后,定位模块再根据第一方向投影区20和第二方向投影区30与感应数据组的投影对应关系确定实际的峰值感应点,扫描时间短,可以快速定位触控区域。In the touch control device provided by the embodiment of the present invention, after the projection module acquires the sensing data within a frame time, the projection module projects the two-dimensional sensing data into one-dimensional projection data. The projection correspondence between the one-direction projection area 20 and the second-direction projection area 30 and the sensing data set determines the actual peak sensing point, the scanning time is short, and the touch area can be quickly located.

本发明提供的触控装置,定位模块还可以根据第一方向投影区20和第二方向投影区30的投影峰值点确定各个峰值感应点所处位置的峰值感应区域。In the touch device provided by the present invention, the positioning module can also determine the peak sensing area where each peak sensing point is located according to the projection peak points of the projection area 20 in the first direction and the projection area 30 in the second direction.

进一步的,定位模块还配置为:分别获取各个峰值感应点在第一方向投影区20的投影峰值点前后大于设定阈值的感应点的个数作为行宽;分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;以各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在感应量数据组中对应的感应数据确定第一峰值区域;以及对第一峰值区域边缘优化确定各个峰值感应点所处位置的峰值感应区域。其中,投影峰值点及其前后大于设定阈值的感应点所在的区域为投影峰值区域。Further, the positioning module is further configured to: respectively obtain the number of the sensing points that are greater than the set threshold before and after the projection peak point of each peak sensing point in the projection area 20 in the first direction as the line width; The number of sensing points before and after the projection peak point of the projection area in the second direction that is greater than the set threshold is used as the column width; with each peak sensing point as the center, and according to the row width and column width of each peak sensing point in the sensing quantity data set The corresponding sensing data determines a first peak area; and the edge of the first peak area is optimized to determine a peak sensing area where each peak sensing point is located. Among them, the projection peak point and the area where the sensing points before and after it are greater than the set threshold are located are the projection peak area.

进一步的,定位模块还配置为执行以下操作以对第一峰值区域边缘进行优化:将第一峰值区域上的一个边界的感应数据与设定阈值进行比较,若边界上的感应数据均小于设定阈值,则将边界沿靠近峰值感应点的方向移动,直到该边界中出现至少一个感应数据大于设定阈值,则该感应数据所在的位置的边界即为该方向的边界;重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,若边界上的感应数据均大于设定阈值,则将边界沿背离所述峰值感应点的方向移动,直到边界中出现至少一个感应数据小于设定阈值,则该感应数据的所在位置的前一位置的边界的即为该方向的边界;重复上述的比较,直至第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的峰值感应区域。Further, the positioning module is also configured to perform the following operations to optimize the edge of the first peak area: compare the sensing data of a boundary on the first peak area with the set threshold, if the sensing data on the boundary are all less than the set threshold Threshold, move the boundary in the direction close to the peak sensing point until at least one sensing data in the boundary is greater than the set threshold, then the boundary of the location where the sensing data is located is the boundary of the direction; repeat the above comparison until All four boundaries of the first peak region are adjusted; and the region determined by the four boundaries after the adjustment is set as the final peak sensing region. Compare the sensing data of a boundary on the first peak area with the set threshold, and if the sensing data on the boundary are all greater than the set threshold, move the boundary in a direction away from the peak sensing point until the boundary If at least one sensing data is less than the set threshold, the boundary of the previous position of the sensing data is the boundary of the direction; the above-mentioned comparison is repeated until the four boundaries of the first peak area are adjusted; And the area determined by the four boundaries after adjustment is set as the final peak sensing area.

本发明实施例提供的触控装置,定位模块根据各个峰值感应点在第一方向投影区20和第二方向投影区30的投影峰值点前后大于预定阈值的个数确定其行宽和列宽,从而确定各个峰值感应点所处位置的第一峰值区域,再对第一峰值区域边缘进行优化,确定峰值感应区域即触控区域,使得触控区域的轮廓获取简单,触控区域的定位准确。In the touch control device provided by the embodiment of the present invention, the positioning module determines the row width and column width of each peak sensing point according to the number of the peak sensing points before and after the projection peak points of the first direction projection area 20 and the second direction projection area 30 greater than a predetermined threshold, Thereby, the first peak area where each peak sensing point is located is determined, and then the edge of the first peak area is optimized to determine the peak sensing area, that is, the touch area, so that the outline of the touch area can be easily obtained and the positioning of the touch area is accurate.

本发明实施例还提供了一种触控装置,包括:相互连接的触摸屏和控制器,其中,触摸屏用于接收触控动作;控制器用于基于触控动作执行实施例的触控定位方法。An embodiment of the present invention further provides a touch device, including: a touch screen and a controller connected to each other, wherein the touch screen is used to receive a touch action; and the controller is used to execute the touch positioning method of the embodiment based on the touch action.

本发明实施例提供的触控装置,通过控制器执行实施例的触控定位方法,将二维的感应数据投影成一维的投影数据,确定投影峰值点后再根据第一方向投影区20和第二方向投影区30与感应数据组的投影对应关系确定实际的峰值感应点,扫描使用的时间短,可以快速定位触控区域。In the touch device provided by the embodiment of the present invention, the controller executes the touch positioning method of the embodiment, projects the two-dimensional sensing data into one-dimensional projection data, determines the projection peak point, and then projects the projection area 20 according to the first direction and the third projection area according to the first direction. The projection correspondence between the two-direction projection area 30 and the sensing data set determines the actual peak sensing point, and the scanning time is short, and the touch area can be quickly located.

本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机指令,计算机指令被执行时实现实施例的触控定位方法。Embodiments of the present invention further provide a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed, the touch positioning method of the embodiment is implemented.

具体地,可读存储介质包括:U盘、移动硬盘、只读存储器等各种可以存储程序代码的介质。Specifically, the readable storage medium includes: a U disk, a removable hard disk, a read-only memory, and other media that can store program codes.

本发明实施例还提供的计算机可读存储介质在计算指令被执行时实现实施例的应用程序,可以快速准确定位触控区域。The computer-readable storage medium further provided by the embodiment of the present invention implements the application program of the embodiment when the calculation instruction is executed, and can quickly and accurately locate the touch area.

应当说明,本领域普通技术人员可以理解,本文中使用的与电路运行相关的词语“期间”、“当”和“当……时”不是表示在启动动作开始时立即发生的动作的严格术语,而是在其与启动动作所发起的反应动作(reaction)之间可能存在一些小的但是合理的一个或多个延迟,例如各种传输延迟等。本文中使用词语“大约”或者“基本上”意指要素值(element)具有预期接近所声明的值或位置的参数。然而,如本领域所周知的,总是存在微小的偏差使得该值或位置难以严格为所声明的值。本领域已恰当的确定了,至少百分之十(10%)(对于半导体掺杂浓度,至少百分之二十(20%))的偏差是偏离所描述的准确的理想目标的合理偏差。当结合信号状态使用时,信号的实际电压值或逻辑状态(例如“1”或“0”)取决于使用正逻辑还是负逻辑。It should be noted that those of ordinary skill in the art will understand that the terms "during", "while" and "when" used herein in relation to the operation of a circuit are not strict terms denoting actions that occur immediately upon initiation of the action, Rather, there may be some small but reasonable delay or delays between it and the reaction initiated by the initiating action, such as various transmission delays, etc. The words "about" or "substantially" are used herein to mean that an element has a parameter that is expected to be close to the stated value or position. However, as is well known in the art, there are always slight deviations that make it difficult for the value or location to be exactly the stated value. It is well established in the art that a deviation of at least ten percent (10%) (for semiconductor doping concentration, at least twenty percent (20%)) is a reasonable deviation from the exact ideal described. When used in conjunction with signal states, the actual voltage value or logic state of the signal (eg, "1" or "0") depends on whether positive or negative logic is used.

本文中描述的方法中的多个步骤,除非特意指出,仅仅作为示例而非意指严格限制步骤的先后顺序,本领域的技术人员可以根据实际工艺条件改变多个步骤的先后顺序。本文中描述的产品中的部件的数,除非特意指出,仅仅作为示例而非意指严格限定该数的数值,本领域的技术人员可以根据实际产品要求改变数的数值。The multiple steps in the method described herein, unless otherwise specified, are only used as examples and are not meant to strictly limit the sequence of the steps, and those skilled in the art can change the sequence of the multiple steps according to actual process conditions. The number of components in the product described herein, unless otherwise specified, is merely an example and is not intended to strictly limit the numerical value of the number, and those skilled in the art can change the numerical value of the number according to actual product requirements.

依照本发明的实施例如上文,这些实施例并没有详尽叙述所有的细节,也不限制该发明仅为的具体实施例。显然,根据以上描述,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本发明的原理和实际应用,从而使所属技术领域技术人员能很好地利用本发明以及在本发明基础上的修改使用。本发明的保护范围应当以本发明权利要求及其等效物所界定的范围为准。Embodiments in accordance with the present invention are described above, and these embodiments do not exhaustively describe all the details and do not limit the invention to specific embodiments only. Obviously, many modifications and variations are possible in light of the above description. This specification selects and specifically describes these embodiments in order to better explain the principle and practical application of the present invention, so that those skilled in the art can make good use of the present invention and modifications based on the present invention. The protection scope of the present invention shall be subject to the scope defined by the claims of the present invention and their equivalents.

Claims (16)

1.一种触控定位方法,包括:1. A touch positioning method, comprising: 获取感应数据组,所述感应数据组包括成阵列排布的多个感应数据;acquiring a sensing data set, the sensing data set including a plurality of sensing data arranged in an array; 将所述感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区;Projecting the maximum sensing data of each column in the sensing data set to the first coordinate axis to form a first direction projection area; 将所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区;Projecting the maximum sensing data of each row in the sensing data set to the second coordinate axis to form a projection area in the second direction; 分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点;respectively acquiring the projection peak points of the projection area in the first direction and the projection area in the second direction; 根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点;以及Determine the actual peak sensing point according to the projection peak point of the projection area in the first direction and the projection area in the second direction and the corresponding relationship of the sensing data set; and 根据各个所述峰值感应点来确定触控轨迹。The touch trace is determined according to each of the peak sensing points. 2.根据权利要求1所述的触控定位方法,其中,还包括:2. The touch positioning method according to claim 1, further comprising: 根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值感应区域。The peak sensing area where each peak sensing point is located is determined according to the projection peak points of the projection area in the first direction and the projection area in the second direction. 3.根据权利要求1的触控定位方法,所述分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点的步骤包括:3. The touch positioning method according to claim 1, wherein the step of respectively acquiring the projection peak points of the projection area in the first direction and the projection area in the second direction comprises: 分别遍历所述第一方向投影区和所述第二方向投影区,将感应数据大于设定阈值,且大于与其相邻的感应数据的投影点确定为所述投影峰值点。The projection area in the first direction and the projection area in the second direction are traversed respectively, and the projection point whose sensing data is larger than the set threshold and larger than the adjacent sensing data is determined as the projection peak point. 4.根据权利要求1的触控定位方法,所述根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点的步骤包括:4 . The touch positioning method according to claim 1 , wherein the actual peak sensing point is determined according to the projection peak points of the projection area in the first direction and the projection area in the second direction and the corresponding relationship of the sensing data set. 5 . Steps include: 在所述感应数据组中分别将所述第一方向投影区的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;In the sensing data set, a row of sensing data corresponding to at least one first peak sensing point in the first direction projection area is respectively determined as the first candidate channel; 在所述感应数据组中分别将所述第二方向投影区的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;In the sensing data set, a column of sensing data corresponding to at least one second peak sensing point in the projection area of the second direction is respectively determined as a second candidate channel; 获得所述感应数据组中所述第一备选通道和所述第二备选通道交点位置上的至少一个感应点;以及obtaining at least one sensing point at the intersection of the first candidate channel and the second candidate channel in the sensing data set; and 将所述交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为所述实际的峰值感应点。A sensing point whose sensing data in at least one sensing point at the intersection position is greater than a set threshold is determined as the actual peak sensing point. 5.根据权利要求2所述的触控定位方法,所述根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值感应区域的步骤包括:5 . The touch positioning method according to claim 2 , wherein the peak sensing area where each peak sensing point is located is determined according to the projection peak points of the projection area in the first direction and the projection area in the second direction. 6 . The steps include: 分别获取各个峰值感应点在所述第一方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为行宽;Respectively obtain the number of sensing points that are greater than the set threshold before and after the projection peak point of each peak sensing point in the first-direction projection area as the line width; 分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;Respectively obtain the number of sensing points that are greater than the set threshold before and after the projection peak point of the projection area in the second direction of each peak sensing point as the column width; 以所述各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在所述感应量数据组中对应的感应数据确定第一峰值区域;以及Taking each peak sensing point as a center, and determining a first peak area according to the sensing data corresponding to the row width and column width of each peak sensing point in the sensing quantity data set; and 对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域。The edge of the first peak area is optimized to determine the peak sensing area where each peak sensing point is located. 6.根据权利要求5所述的触控定位方法,所述对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域的步骤包括:6 . The touch positioning method according to claim 5 , wherein the step of optimizing the edge of the first peak area to determine the peak sensing area where each peak sensing point is located comprises: 6 . 将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,comparing the sensing data of a boundary on the first peak region with a set threshold, 若所述边界上的感应数据均小于所述设定阈值,则将所述边界沿靠近所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据大于所述设定阈值;If the sensing data on the boundary are all smaller than the set threshold, move the boundary in a direction close to the peak sensing point until at least one sensing data in the boundary is greater than the set threshold; 重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。The above comparison is repeated until all four boundaries of the first peak region are adjusted; and the region determined by the four boundaries after the adjustment is set as the final peak sensing region. 7.根据权利要求5所述的触控定位方法,所述对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值区域的步骤包括:7 . The touch positioning method according to claim 5 , wherein the step of optimizing the edge of the first peak region to determine the peak region where each peak sensing point is located comprises: 8 . 将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,comparing the sensing data of a boundary on the first peak region with a set threshold, 若所述边界上的感应数据均大于所述设定阈值,则将所述边界沿背离所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据小于所述设定阈值;If the sensing data on the boundary are all greater than the set threshold, move the boundary in a direction away from the peak sensing point until at least one sensing data in the boundary is smaller than the set threshold; 重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。The above comparison is repeated until all four boundaries of the first peak region are adjusted; and the region determined by the four boundaries after the adjustment is set as the final peak sensing region. 8.一种触控装置,包括:8. A touch control device, comprising: 获取模块,用于获取感应数据组,所述感应数据组包括成阵列排布的多个感应数据;an acquisition module, configured to acquire a sensing data set, the sensing data set including a plurality of sensing data arranged in an array; 投影模块,用于将所述感应数据组中每一列的最大感应数据分别投影到第一坐标轴以形成第一方向投影区;将所述感应数据组中每一行的最大感应数据分别投影到第二坐标轴以形成第二方向投影区;The projection module is used to project the maximum sensing data of each column in the sensing data set to the first coordinate axis to form a first direction projection area; project the maximum sensing data of each row in the sensing data set to the first coordinate axis respectively. Two coordinate axes to form a projection area in the second direction; 计算模块,用于分别获取所述第一方向投影区和所述第二方向投影区的投影峰值点;a calculation module, configured to obtain the projection peak points of the projection area in the first direction and the projection area in the second direction respectively; 定位模块,用于根据所述第一方向投影区和所述第二方向投影区的投影峰值点以及所述感应数据组的对应关系确定实际的峰值感应点;以及A positioning module, configured to determine the actual peak sensing point according to the projection peak points of the projection area in the first direction and the projection area in the second direction and the corresponding relationship of the sensing data set; and 根据各个所述峰值感应点来确定触控轨迹。The touch trace is determined according to each of the peak sensing points. 9.根据权利要求8所述的触控装置,其中,9. The touch device according to claim 8, wherein, 所述定位模块还用于根据所述第一方向投影区和所述第二方向投影区的投影峰值点确定所述各个峰值感应点所处位置的峰值感应区域。The positioning module is further configured to determine a peak sensing area where each peak sensing point is located according to the projection peak points of the projection area in the first direction and the projection area in the second direction. 10.根据权利要求8所述的触控装置,所述计算模块配置为:10. The touch control device according to claim 8, wherein the computing module is configured as: 分别遍历所述第一方向投影区和所述第二方向投影区,将感应数据大于设定阈值,且大于与其相邻的感应数据的投影点确定为所述投影峰值点。The projection area in the first direction and the projection area in the second direction are traversed respectively, and the projection point whose sensing data is larger than the set threshold and larger than the adjacent sensing data is determined as the projection peak point. 11.根据权利要求8所述的触控装置,所述定位模块配置为:11. The touch control device according to claim 8, wherein the positioning module is configured as: 在所述感应数据组中分别将所述第一方向投影区的至少一个第一峰值感应点对应的一行感应数据确定为第一备选通道;In the sensing data group, one row of sensing data corresponding to at least one first peak sensing point in the first direction projection area is respectively determined as the first candidate channel; 在所述感应数据组中分别将所述第二方向投影区的至少一个第二峰值感应点对应的一列感应数据确定为第二备选通道;In the sensing data set, a column of sensing data corresponding to at least one second peak sensing point in the projection area of the second direction is respectively determined as a second candidate channel; 获得所述感应数据组中所述第一备选通道和所述第二备选通道交点位置上的至少一个感应点;以及obtaining at least one sensing point at the intersection of the first candidate channel and the second candidate channel in the sensing data set; and 将所述交点位置上的至少一个感应点中的感应数据大于设定阈值的感应点确定为所述实际的峰值感应点。A sensing point whose sensing data in at least one sensing point at the intersection position is greater than a set threshold is determined as the actual peak sensing point. 12.根据权利要求9所述的触控装置,所述定位模块还配置为:12. The touch control device according to claim 9, wherein the positioning module is further configured to: 分别获取各个峰值感应点在所述第一方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为行宽;Respectively obtain the number of sensing points that are greater than the set threshold before and after the projection peak point of each peak sensing point in the first-direction projection area as the line width; 分别获取各个峰值感应点在所述第二方向投影区的投影峰值点前后大于设定阈值的感应点的个数作为列宽;Respectively obtain the number of sensing points that are greater than the set threshold before and after the projection peak point of the projection area in the second direction of each peak sensing point as the column width; 以所述各个峰值感应点为中心,并根据各个峰值感应点的行宽和列宽在所述感应量数据组中对应的感应数据确定第一峰值区域;以及Taking each peak sensing point as the center, and determining a first peak area according to the sensing data corresponding to the row width and column width of each peak sensing point in the sensing quantity data set; and 对所述第一峰值区域边缘优化确定所述各个峰值感应点所处位置的峰值感应区域。The edge of the first peak area is optimized to determine the peak sensing area where each peak sensing point is located. 13.根据权利要求12所述的触控装置,所述定位模块还配置为执行以下操作以对所述第一峰值区域边缘进行优化:13. The touch device of claim 12, wherein the positioning module is further configured to perform the following operations to optimize the edge of the first peak area: 将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,comparing the sensing data of a boundary on the first peak region with a set threshold, 若所述边界上的感应数据均小于所述设定阈值,则将所述边界沿靠近所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据大于所述设定阈值;If the sensing data on the boundary are all smaller than the set threshold, move the boundary in a direction close to the peak sensing point until at least one sensing data in the boundary is greater than the set threshold; 重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。The above comparison is repeated until all four boundaries of the first peak region are adjusted; and the region determined by the adjusted four boundaries is set as the final peak sensing region. 14.根据权利要求12所述的触控装置,所述定位模块还配置为执行以下操作以对所述第一峰值区域边缘进行优化:14. The touch device of claim 12, wherein the positioning module is further configured to perform the following operations to optimize the edge of the first peak area: 将所述第一峰值区域上的一个边界的感应数据与设定够阈值进行比较,comparing the sensing data of a boundary on the first peak region with a set threshold, 若所述边界上的感应数据均大于所述设定阈值,则将所述边界沿背离所述峰值感应点的方向移动,直到所述边界中出现至少一个感应数据小于所述设定阈值;If the sensing data on the boundary are all greater than the set threshold, move the boundary in a direction away from the peak sensing point until at least one sensing data in the boundary is smaller than the set threshold; 重复上述的比较,直至所述第一峰值区域的四个边界均被调整;以及将调整之后的四个边界确定的区域设置为最终的所述峰值感应区域。The above comparison is repeated until all four boundaries of the first peak region are adjusted; and the region determined by the adjusted four boundaries is set as the final peak sensing region. 15.一种触控装置,包括:相互连接的触摸屏和控制器,其中,15. A touch device comprising: a touch screen and a controller connected to each other, wherein, 所述触摸屏用于接收触控动作;The touch screen is used for receiving touch actions; 所述控制器用于基于所述触控动作执行如权利要求1-7任一项所述的触控定位方法。The controller is configured to execute the touch positioning method according to any one of claims 1-7 based on the touch action. 16.一种计算机可读存储介质,用于存储有计算机指令,计算机指令被执行时实现如权利要求1-7任一项所述的触控定位方法。16. A computer-readable storage medium for storing computer instructions, when the computer instructions are executed, the touch positioning method according to any one of claims 1-7 is implemented.

CN202111622942.XA 2021-12-28 2021-12-28 Touch device and touch positioning method Active CN114327161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111622942.XA CN114327161B (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111622942.XA CN114327161B (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Publications (2)

Publication Number Publication Date
CN114327161A true CN114327161A (en) 2022-04-12
CN114327161B CN114327161B (en) 2025-03-14

Family

ID=81014728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111622942.XA Active CN114327161B (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Country Status (1)

Country Link
CN (1) CN114327161B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957699A (en) * 2009-07-15 2011-01-26 瑞鼎科技股份有限公司 Touch input device and touch sensing circuit
CN102023765A (en) * 2009-09-14 2011-04-20 义隆电子股份有限公司 Positioning method of two-dimensional structured capacitive touch pad
CN102253771A (en) * 2010-05-20 2011-11-23 义隆电子股份有限公司 Sensing unit, sensing circuit and sensing method of capacitive touch panel
US20130154993A1 (en) * 2011-12-14 2013-06-20 Luben Hristov Hristov Method For Determining Coordinates Of Touches
CN103365510A (en) * 2012-04-06 2013-10-23 矽统科技股份有限公司 Method to reduce palm rejection calculations by projecting touch data
GB2502596A (en) * 2012-05-31 2013-12-04 Zytronic Displays Ltd A method of operating a touch sensitive display
CN104133600A (en) * 2013-05-02 2014-11-05 义隆电子股份有限公司 Liquid identification method of touch panel
US20150130750A1 (en) * 2012-05-31 2015-05-14 Zytronic Displays Limited Touch sensitive displays
CN108762653A (en) * 2018-04-26 2018-11-06 北京集创北方科技股份有限公司 Touch localization method, device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957699A (en) * 2009-07-15 2011-01-26 瑞鼎科技股份有限公司 Touch input device and touch sensing circuit
CN102023765A (en) * 2009-09-14 2011-04-20 义隆电子股份有限公司 Positioning method of two-dimensional structured capacitive touch pad
CN102253771A (en) * 2010-05-20 2011-11-23 义隆电子股份有限公司 Sensing unit, sensing circuit and sensing method of capacitive touch panel
US20130154993A1 (en) * 2011-12-14 2013-06-20 Luben Hristov Hristov Method For Determining Coordinates Of Touches
CN103365510A (en) * 2012-04-06 2013-10-23 矽统科技股份有限公司 Method to reduce palm rejection calculations by projecting touch data
GB2502596A (en) * 2012-05-31 2013-12-04 Zytronic Displays Ltd A method of operating a touch sensitive display
US20150130750A1 (en) * 2012-05-31 2015-05-14 Zytronic Displays Limited Touch sensitive displays
CN104133600A (en) * 2013-05-02 2014-11-05 义隆电子股份有限公司 Liquid identification method of touch panel
CN108762653A (en) * 2018-04-26 2018-11-06 北京集创北方科技股份有限公司 Touch localization method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张倩洋;张钊锋;李宝骐;: "互电容触控坐标精确处理和上报算法", 电视技术, no. 10, 17 October 2016 (2016-10-17), pages 55 - 59 *

Also Published As

Publication number Publication date
CN114327161B (en) 2025-03-14

Similar Documents

Publication Publication Date Title
JP6543273B2 (en) 2019-07-10 Touch point recognition method and apparatus
TWI493419B (en) 2015-07-21 Touching apparatus and touching detecting method thereof
CN101387927B (en) 2010-09-08 Touch detection method for touch panel
TWI397846B (en) 2013-06-01 Detecting method for a touch panel
US9417750B2 (en) 2016-08-16 Sense position prediction for touch sensing methods, circuits and systems
WO2013016996A1 (en) 2013-02-07 Multipoint recognition method and system of infrared touch screen
WO2019014858A1 (en) 2019-01-24 Touch detection method and touch detection device
US20120124526A1 (en) 2012-05-17 Method for continuing a function induced by a multi-touch gesture on a touchpad
EP2691841A1 (en) 2014-02-05 Method of identifying multi-touch scaling gesture and device using the same
TW201730731A (en) 2017-09-01 Refreshing method of sensing baselines for capacitive sensor device and capacitive sensor device
CN102364419B (en) 2014-07-23 Camera type touch control method and system thereof
CN114327161A (en) 2022-04-12 Touch device and touch positioning method
CN103076908B (en) 2016-04-27 Method for identifying multi-touch object
WO2011147301A1 (en) 2011-12-01 Touch screen calibration method and apparatus, touch screen, touch system, and display
WO2022047839A1 (en) 2022-03-10 Multi-point touch recognition method, apparatus and device for infrared touch screen
CN104123026B (en) 2017-12-15 A kind of touch-screen touch track direction of motion knows method for distinguishing
US10713348B2 (en) 2020-07-14 System, method, and apparatus for touch panel security
CN111782079B (en) 2024-11-05 A startup method, device, electronic device and storage medium
US9933884B2 (en) 2018-04-03 Correcting coordinate jitter in touch screen displays due to forceful touches
US10599257B2 (en) 2020-03-24 Touch screen device having improved floating mode entry conditions
TWI419011B (en) 2013-12-11 Method and system for tracking touch point
CN109324716B (en) 2020-07-03 Touch screen anti-interference method based on hill climbing algorithm, touch device and mobile terminal
CN110162257A (en) 2019-08-23 Multiconductor touch control method, device, equipment and computer readable storage medium
CN102163106B (en) 2015-05-20 Touch sensing device and touch point detection method
TWI579749B (en) 2017-04-21 Touch control module and tracking method for touch point and touch sensitive electronic device using same

Legal Events

Date Code Title Description
2022-04-12 PB01 Publication
2022-04-12 PB01 Publication
2022-04-29 SE01 Entry into force of request for substantive examination
2022-04-29 SE01 Entry into force of request for substantive examination
2025-03-14 GR01 Patent grant