[go: up one dir, main page]

CN103970372B - Method for treating scanning asynchronism of infrared touch screen and infrared touch screen - Google Patents

Method for treating scanning asynchronism of infrared touch screen and infrared touch screen Download PDF

Info

Publication number
CN103970372B
CN103970372B CN201410228318.5A CN201410228318A CN103970372B CN 103970372 B CN103970372 B CN 103970372B CN 201410228318 A CN201410228318 A CN 201410228318A CN 103970372 B CN103970372 B CN 103970372B
Authority
CN
China
Prior art keywords
area
gravity
center
touch screen
infrared touch
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.)
Active
Application number
CN201410228318.5A
Other languages
Chinese (zh)
Other versions
CN103970372A (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.)
Guangzhou Lingyue Power Technology Co ltd
Original Assignee
Guangzhou Hua Xin Electronic Science And 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 Guangzhou Hua Xin Electronic Science And Technology Co Ltd filed Critical Guangzhou Hua Xin Electronic Science And Technology Co Ltd
Priority to CN201410228318.5A priority Critical patent/CN103970372B/en
Publication of CN103970372A publication Critical patent/CN103970372A/en
Application granted granted Critical
Publication of CN103970372B publication Critical patent/CN103970372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

本发明实施例公开了处理红外触摸屏扫描不同步的方法,用于降低扫描不同步造成的影响,防止因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。本发明实施例方法包括:S1:获取到所述红外触摸屏的被遮挡区域;S2:根据预置的尺寸值来扩大所述被遮挡区域;S3:根据预置的重心求解法计算扩大后的所述被遮挡区域的区域重心;S4:将所述区域重心确定为所述红外触摸屏的实际触摸点。本发明实施例还提供一种红外触摸屏。本发明实施例能够降低扫描不同步造成的影响,防止因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。

The embodiment of the present invention discloses a method for dealing with scanning asynchronous infrared touch screens, which is used to reduce the impact caused by asynchronous scanning, prevent the increase in the production cost of infrared touch screens caused by this, and facilitate the sales and popularization of infrared touch screens. The method in the embodiment of the present invention includes: S1: acquiring the covered area of the infrared touch screen; S2: expanding the covered area according to a preset size value; S3: calculating the enlarged area according to a preset center of gravity solution method The area center of gravity of the covered area; S4: Determine the area center of gravity as the actual touch point of the infrared touch screen. The embodiment of the present invention also provides an infrared touch screen. The embodiment of the present invention can reduce the influence caused by scanning asynchrony, prevent the increase in the production cost of the infrared touch screen caused by it, and is beneficial to the sales and popularization of the infrared touch screen.

Description

处理红外触摸屏扫描不同步的方法和红外触摸屏Method for processing out-of-sync scanning of infrared touch screen and infrared touch screen

技术领域technical field

本发明涉及人机交互领域,尤其涉及处理红外触摸屏扫描不同步的方法和红外触摸屏。The invention relates to the field of human-computer interaction, in particular to a method for processing asynchronous scanning of an infrared touch screen and an infrared touch screen.

背景技术Background technique

红外线技术触摸屏(Infrared Touch Screen Technology,简称红外触摸屏)由装在触摸屏外框上的红外线发射与接收感测元件构成,在屏幕表面上,形成红外线探测网,任何触摸物体可改变触点上的红外线而实现触摸屏操作。Infrared technology touch screen (Infrared Touch Screen Technology, referred to as infrared touch screen) is composed of infrared emitting and receiving sensing elements installed on the outer frame of the touch screen. On the surface of the screen, an infrared detection network is formed. Any touching object can change the infrared rays on the contact point. And realize the touch screen operation.

红外触摸屏一般是通过在显示器的前面安装一个外框,外框里设计有电路板,从而在屏幕四边排布红外发射管和红外接收管来实现触摸操作的功能。Infrared touch screen generally installs an outer frame in front of the display, and a circuit board is designed in the outer frame, so that infrared emitting tubes and infrared receiving tubes are arranged on the four sides of the screen to realize the function of touch operation.

目前红外触摸框的扫描方向基本是顺序扫描,既从一边扫描到另一边。但是由于触摸点(手,笔等)有移动速度,同时扫描也会占用时间,从而会出现不同步的情况,比如扫描的方向和手的移动方向相同,就会出现得到的被遮挡区域比实际触摸区域大的情况。目前采用的解决方案大部分是尽量加快扫描速度,降低扫描占用时间,从而减弱扫描不同步造成的影响。At present, the scanning direction of the infrared touch frame is basically sequential scanning, that is, scanning from one side to the other. However, since the touch points (hands, pens, etc.) have moving speeds, and scanning will also take time, there will be asynchronous situations. The case where the touch area is large. Most of the solutions currently used are to speed up the scanning speed as much as possible and reduce the scanning time, thereby reducing the impact of scanning asynchrony.

然而,加快扫描速度就需要处理速度更快的处理器、元件以及更加复杂的电路,这都导致了红外触摸屏的生产成本增加,不利于红外触摸屏的销售以及普及使用。However, increasing the scanning speed requires faster processors, components and more complex circuits, which all lead to an increase in the production cost of the infrared touch screen, which is not conducive to the sales and popularization of the infrared touch screen.

发明内容Contents of the invention

本发明实施例提供了处理红外触摸屏扫描不同步的方法和红外触摸屏,能够降低扫描不同步造成的影响,防止因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。Embodiments of the present invention provide a method for dealing with asynchronous scanning of infrared touch screens and an infrared touch screen, which can reduce the impact caused by asynchronous scanning, prevent the increase in production costs of infrared touch screens, and facilitate the sales and popularization of infrared touch screens.

本发明实施例提供的一种处理红外触摸屏扫描不同步的方法,包括:A method for processing out-of-sync infrared touch screen scanning provided by an embodiment of the present invention includes:

S1:获取到所述红外触摸屏的被遮挡区域;S1: Obtain the blocked area of the infrared touch screen;

S2:根据预置的尺寸值来扩大所述被遮挡区域;S2: Enlarging the covered area according to a preset size value;

S3:根据预置的重心求解法计算扩大后的所述被遮挡区域的区域重心;S3: Calculate the area center of gravity of the enlarged covered area according to the preset center of gravity solution method;

S4:将所述区域重心确定为所述红外触摸屏的实际触摸点。S4: Determine the center of gravity of the area as an actual touch point of the infrared touch screen.

可选地,步骤S3具体包括:Optionally, step S3 specifically includes:

S31:判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤S32,若否,则执行步骤S33;S31: Determine whether the enlarged covered area overlaps, if yes, execute step S32, if not, execute step S33;

S32:使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2;S32: Divide the enlarged covered area into N sub-areas using an overlapping calculation method, where N is greater than or equal to 2;

S33:将扩大后的被遮挡区域作为分区域;S33: taking the enlarged covered area as a sub-area;

S34:根据预置的重心求解法分别计算所述分区域的区域重心,得到M个所述区域重心,M大于或等于1。S34: Calculate the area centers of gravity of the sub-areas according to the preset center of gravity solution method to obtain M centers of gravity of the areas, where M is greater than or equal to 1.

可选地,步骤S32具体包括:Optionally, step S32 specifically includes:

获得扩大后的被遮挡区域的重叠区域;Obtain the overlapping area of the expanded occluded area;

获得所述重叠区域的对称中心;obtaining a center of symmetry of said overlapping region;

根据所述对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。The enlarged shaded area is divided into N sub-areas according to the center of symmetry, where N is greater than or equal to 2.

可选地,步骤S34具体包括:Optionally, step S34 specifically includes:

获取分区域的重叠部分,所述重叠部分由若干个不同扫描方向上的对应所述分区域重叠而成,为凸多边形,所述分区域与所述重叠部分存在对应关系,所述重叠部分有M个,M大于等于1;Obtain the overlapping part of the sub-region, the overlapping part is formed by overlapping the corresponding sub-regions in several different scanning directions, and is a convex polygon, and there is a corresponding relationship between the sub-region and the overlapping part, and the overlapping part has M, M greater than or equal to 1;

根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个所述区域重心。The area center of gravity of each overlapping part is calculated according to the convex polygon center of gravity solution method, and M said area centers of gravity are obtained.

可选地,所述方法还包括:Optionally, the method also includes:

将获得的所述实际触摸点以触摸坐标的方式反馈给所述红外触摸屏。The obtained actual touch point is fed back to the infrared touch screen in the form of touch coordinates.

本发明实施例提供的一种红外触摸屏,包括:An infrared touch screen provided by an embodiment of the present invention includes:

获取模块,用于获取到所述红外触摸屏的被遮挡区域;An acquisition module, configured to acquire the blocked area of the infrared touch screen;

尺寸扩大模块,用于根据预置的尺寸值来扩大所述被遮挡区域;A size expansion module, configured to expand the covered area according to a preset size value;

重心求解模块,用于根据预置的重心求解法计算所述被遮挡区域的区域重心;A center-of-gravity solution module, configured to calculate the area center of gravity of the covered area according to a preset center-of-gravity solution method;

确定模块,用于将所述区域重心确定为所述红外触摸屏的实际触摸点。A determining module, configured to determine the center of gravity of the area as the actual touch point of the infrared touch screen.

可选地,所述重心求解模块具体包括:Optionally, the center of gravity solving module specifically includes:

判断单元,用于判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤S32,若否,则执行步骤S33;A judging unit, configured to judge whether there is overlap in the enlarged covered area, if yes, execute step S32, and if not, execute step S33;

区域分割单元,用于使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2;The area segmentation unit is used to divide the enlarged covered area into N sub-areas using an overlapping calculation method, and N is greater than or equal to 2;

分区单元,用于将扩大后的被遮挡区域作为分区域;A partition unit, configured to use the enlarged covered area as a sub-region;

重心求解单元,用于根据预置的重心求解法分别计算所述分区域的区域重心,得到M个所述区域重心,M大于或等于1。The center-of-gravity solving unit is used to calculate the regional centers of gravity of the sub-regions according to a preset method for solving the center of gravity, and obtain M center-of-gravity of the regions, where M is greater than or equal to 1.

可选地,所述区域分割单元具体包括:Optionally, the region segmentation unit specifically includes:

获取子单元,用于获得扩大后的被遮挡区域的重叠区域;Acquiring subunits, used to obtain the overlapping area of the expanded occluded area;

对称中心子单元,用于获得所述重叠区域的对称中心;a symmetry center subunit, configured to obtain the symmetry center of the overlapping region;

切割子单元,用于根据所述对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。The cutting sub-unit is configured to cut the enlarged shaded area into N sub-areas according to the center of symmetry, where N is greater than or equal to 2.

可选地,所述重心求解单元具体包括:Optionally, the center of gravity solving unit specifically includes:

重叠子单元,用于获取分区域的重叠部分,所述重叠部分由若干个不同扫描方向上的对应所述分区域重叠而成,为凸多边形,所述分区域与所述重叠部分存在对应关系,所述重叠部分有M个,M大于等于1;The overlapping subunit is used to obtain the overlapping part of the sub-region, the overlapping part is formed by overlapping the corresponding sub-regions in several different scanning directions, and is a convex polygon, and the sub-region has a corresponding relationship with the overlapping part , there are M overlapping parts, and M is greater than or equal to 1;

区域重心子单元,用于根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个所述区域重心。The area center of gravity subunit is used to calculate the area center of gravity of each overlapping part according to the convex polygon center of gravity solution method, and obtain M said area centers of gravity.

可选地,所述红外触摸屏还包括:Optionally, the infrared touch screen also includes:

反馈模块,用于将获得的所述实际触摸点以触摸坐标的方式反馈给所述红外触摸屏。A feedback module, configured to feed back the obtained actual touch point to the infrared touch screen in the form of touch coordinates.

从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:

本发明实施例中,处理红外触摸屏扫描不同步的方法的具体步骤为:获取到所述红外触摸屏的被遮挡区域;根据预置的尺寸值来扩大所述被遮挡区域;根据预置的重心求解法计算扩大后的所述被遮挡区域的区域重心;将所述区域重心确定为所述红外触摸屏的实际触摸点。在本发明实施例中,通过使用算法的处理方式来计算被遮挡区域的实际触摸点,无需要求处理器和元件的处理速度更快,也无需复杂的电路,便可得出红外触摸屏的实际触摸点,最大程度地降低扫描不同步造成的影响,防止了因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。In the embodiment of the present invention, the specific steps of the method for dealing with the out-of-sync scanning of the infrared touch screen are: acquiring the covered area of the infrared touch screen; expanding the covered area according to the preset size value; solving the problem according to the preset center of gravity Calculate the area center of gravity of the enlarged covered area by using the method; determine the area center of gravity as the actual touch point of the infrared touch screen. In the embodiment of the present invention, by using an algorithm processing method to calculate the actual touch point of the covered area, the actual touch point of the infrared touch screen can be obtained without requiring faster processing speed of the processor and components, and without complex circuits. The point is to minimize the impact caused by scanning asynchrony, prevent the increase in the production cost of the infrared touch screen caused by this, and facilitate the sales and popularization of the infrared touch screen.

附图说明Description of drawings

图1为本发明实施例中处理红外触摸屏扫描不同步的方法一个实施例流程图;FIG. 1 is a flowchart of an embodiment of a method for processing out-of-sync infrared touch screen scanning in an embodiment of the present invention;

图2为本发明实施例中处理红外触摸屏扫描不同步的方法另一个实施例流程图;Fig. 2 is a flow chart of another embodiment of the method for processing out-of-sync infrared touch screen scanning in the embodiment of the present invention;

图3为本发明实施例中处理红外触摸屏扫描不同步的方法另一个实施例流程图;FIG. 3 is a flow chart of another embodiment of the method for processing out-of-sync infrared touch screen scanning in the embodiment of the present invention;

图4为本发明实施例中四边形的重心作法的示意图;Fig. 4 is the schematic diagram of the center of gravity method of quadrilateral in the embodiment of the present invention;

图5为本发明实施例中五边形的重心作法的示意图;Fig. 5 is the schematic diagram of the center of gravity method of pentagon in the embodiment of the present invention;

图6为本发明实施例中红外触摸屏在两种情况下的被遮挡区域的示意图;FIG. 6 is a schematic diagram of the covered area of the infrared touch screen in two cases in the embodiment of the present invention;

图7为本发明实施例中红外触摸屏在两种情况下的被遮挡区域扩大后的示意图;FIG. 7 is a schematic diagram of enlarged blocked areas of the infrared touch screen in two cases in the embodiment of the present invention;

图8为本发明实施例中四组预置的斜扫区域对分区域进行切割的示意图;Fig. 8 is a schematic diagram of four groups of preset oblique scan areas cutting sub-areas in the embodiment of the present invention;

图9为本发明实施例中一种红外触摸屏一个实施例的结构图;FIG. 9 is a structural diagram of an embodiment of an infrared touch screen in an embodiment of the present invention;

图10为本发明实施例中一种红外触摸屏另一个实施例的结构图。Fig. 10 is a structural diagram of another embodiment of an infrared touch screen in the embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供了处理红外触摸屏扫描不同步的方法和红外触摸屏,用于降低扫描不同步造成的影响,防止因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。Embodiments of the present invention provide a method for dealing with asynchronous scanning of infrared touch screens and an infrared touch screen, which are used to reduce the impact caused by asynchronous scanning, prevent the increase in production costs of infrared touch screens caused by this, and facilitate the sales and popularization of infrared touch screens.

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,本发明实施例中处理红外触摸屏扫描不同步的方法一个实施例包括:Please refer to FIG. 1, an embodiment of a method for processing out-of-sync infrared touch screen scanning in an embodiment of the present invention includes:

S1:获取到该红外触摸屏的被遮挡区域;S1: Obtain the blocked area of the infrared touch screen;

当有物体触摸红外触摸屏时,获取到该红外触摸屏的被遮挡区域。When an object touches the infrared touch screen, the blocked area of the infrared touch screen is acquired.

S2:根据预置的尺寸值来扩大该被遮挡区域;S2: Enlarging the blocked area according to a preset size value;

在获取到该红外触摸屏的被遮挡区域之后,可以根据预置的尺寸值来扩大该被遮挡区域。After the blocked area of the infrared touch screen is acquired, the blocked area can be enlarged according to a preset size value.

S3:根据预置的重心求解法计算扩大后的该被遮挡区域的区域重心;S3: Calculate the area center of gravity of the enlarged blocked area according to the preset center of gravity solution method;

扩大了该被遮挡区域之后,可以根据预置的重心求解法计算扩大后的该被遮挡区域的区域重心。After the occluded area is expanded, the area center of gravity of the expanded occluded area can be calculated according to a preset center of gravity solution method.

S4:将该区域重心确定为该红外触摸屏的实际触摸点。S4: Determine the center of gravity of the area as the actual touch point of the infrared touch screen.

在得到该被遮挡区域的区域重心之后,再将该区域重心确定为该红外触摸屏的实际触摸点。After the area center of gravity of the blocked area is obtained, the area center of gravity is determined as the actual touch point of the infrared touch screen.

本实施例中,前面所说的处理红外触摸屏扫描不同步的方法步骤为:获取到该红外触摸屏的被遮挡区域;根据预置的尺寸值来扩大该被遮挡区域;根据预置的重心求解法计算扩大后的该被遮挡区域的区域重心;将该区域重心确定为该红外触摸屏的实际触摸点。在本实施例中,通过使用算法的处理方式来计算被遮挡区域的实际触摸点,无需要求处理器和元件的处理速度更快,也无需复杂的电路,便可得出红外触摸屏的实际触摸点,最大程度地降低扫描不同步造成的影响,防止了因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。In this embodiment, the steps of the above-mentioned method for processing out-of-sync scanning of the infrared touch screen are as follows: obtain the blocked area of the infrared touch screen; expand the blocked area according to the preset size value; Calculate the area center of gravity of the enlarged covered area; determine the area center of gravity as the actual touch point of the infrared touch screen. In this embodiment, the actual touch point of the covered area is calculated by using an algorithm processing method, without requiring faster processing speed of the processor and components, and without complex circuits, the actual touch point of the infrared touch screen can be obtained , minimizing the impact caused by scanning asynchrony, preventing the increase in the production cost of the infrared touch screen caused by this, and being conducive to the sales and popularization of the infrared touch screen.

为便于理解,下面对本发明实施例中的处理红外触摸屏扫描不同步的方法进行详细描述,请参阅图2,本发明实施例中处理红外触摸屏扫描不同步的方法另一个实施例包括:For ease of understanding, the following is a detailed description of the method for processing out-of-sync scanning of the infrared touch screen in the embodiment of the present invention. Please refer to FIG. 2. Another embodiment of the method for processing out-of-sync scanning of the infrared touch screen in the embodiment of the present invention includes:

201、获取到该红外触摸屏的被遮挡区域;201. Obtain the blocked area of the infrared touch screen;

当有物体触摸该红外触摸屏时,可以获取到该红外触摸屏的被遮挡区域。可以理解的是,由于红外触摸屏存在扫描不同步的问题,因此此时的被遮挡区域与实际触摸区域并不一致。When an object touches the infrared touch screen, the blocked area of the infrared touch screen can be obtained. It can be understood that, because the infrared touch screen has a problem of asynchronous scanning, the blocked area at this time is not consistent with the actual touched area.

需要说明的是,该被遮挡区域可以包括从若干个不同扫描方向上扫描得到的扫描区域,扫描方向可以分为正扫和斜扫,正扫就是扫描线平行于Y轴,沿着X轴进行扫描,或者扫描线平行于X轴,沿着Y轴进行扫描的扫描方式,而斜扫则是扫描线与X、Y轴之间存在一定倾斜角,然后沿着X轴或Y轴进行扫描的扫描方式。根据该倾斜角的不同,可以进行不同的斜扫。因此该被遮挡区域可以包括若干个从不同扫描方向上得到的扫描区域。It should be noted that the blocked area may include scanning areas obtained by scanning in several different scanning directions. The scanning direction can be divided into forward scanning and oblique scanning. Forward scanning means that the scanning line is parallel to the Y axis and is carried out along the X axis. Scanning, or the scanning method in which the scanning line is parallel to the X axis and scanning along the Y axis, while oblique scanning is a scanning method in which there is a certain inclination angle between the scanning line and the X and Y axes, and then scanning along the X or Y axis scanning method. Depending on the tilt angle, different oblique sweeps can be performed. Thus the shaded area may comprise several scan areas obtained from different scan directions.

202、根据预置的尺寸值来扩大该被遮挡区域;202. Expand the blocked area according to a preset size value;

在获取到该红外触摸屏的被遮挡区域之后,可以根据预置的尺寸值来扩大该被遮挡区域。After the blocked area of the infrared touch screen is acquired, the blocked area can be enlarged according to a preset size value.

需要说明的是,该预置的尺寸值可以根据该红外触摸屏的实际参数进行设定,使得该尺寸值在合理的范围内对该被遮挡区域进行扩大。而由于不同型号的红外触摸屏的实际参数存在差异,因此该尺寸值也可以根据不同型号的红外触摸屏来针对性地设置。It should be noted that the preset size value can be set according to the actual parameters of the infrared touch screen, so that the size value can expand the blocked area within a reasonable range. Since the actual parameters of different types of infrared touch screens are different, the size value can also be set according to different types of infrared touch screens.

203、判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤204,若否,则执行步骤205;203. Determine whether the enlarged covered area overlaps, if yes, execute step 204, if not, execute step 205;

在根据预置的尺寸值来扩大该被遮挡区域之后,需要判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤204,若否,则执行步骤205。After the occluded area is expanded according to the preset size value, it is necessary to determine whether the enlarged occluded area overlaps, if yes, perform step 204 , and if not, perform step 205 .

需要说明的是,由于该红外触摸屏可以是单点触控,也可以是多点触控,当该被遮挡区域是多点触控操作产生时,该被遮挡区域可能存在多个,由于多个被遮挡区域之间可能相距很近,因此在被遮挡区域扩大后,该被遮挡区域之间可能存在区域的重叠,因此应当对扩大后的被遮挡区域是否存在重叠进行判断,若是,则执行步骤204,若否,则执行步骤205。It should be noted that since the infrared touch screen can be single-touch or multi-touch, when the blocked area is generated by multi-touch operation, there may be multiple blocked areas, because multiple The occluded areas may be very close to each other, so after the occluded areas are expanded, there may be overlaps between the occluded areas, so it should be judged whether there is overlap between the expanded occluded areas, and if so, perform the steps 204. If not, go to step 205.

204、使用重叠计算法将扩大后的被遮挡区域分开为N个分区域;204. Divide the enlarged covered area into N sub-areas by using an overlapping calculation method;

当判断知道扩大后的被遮挡区域存在重叠后,使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2。When it is judged that there is overlap in the enlarged covered area, use an overlapping calculation method to divide the enlarged covered area into N sub-regions, where N is greater than or equal to 2.

205、将扩大后的被遮挡区域作为分区域;205. Taking the enlarged covered area as a sub-area;

当判断知道扩大后的被遮挡区域不存在重叠之后,可以将扩大后的被遮挡区域作为分区域。可以理解的是,由于该被遮挡区域可以有若干个,因此将扩大后的被遮挡区域作为分区域后,分区域有对应的若干个。After it is determined that there is no overlap between the enlarged covered regions, the enlarged blocked regions may be used as sub-regions. It can be understood that, since there may be several blocked regions, after the enlarged blocked regions are used as sub-regions, there are corresponding several sub-regions.

206、根据预置的重心求解法分别计算该分区域的区域重心,得到M个该区域重心;206. Calculate the area center of gravity of the sub-area according to the preset center of gravity solution method, and obtain M centers of gravity of the area;

在获得该分区域之后,可以根据预置的重心求解法分别计算该分区域的区域重心,得到M个该区域重心,M大于或等于1。After obtaining the sub-area, the area center of gravity of the sub-area can be calculated according to the preset center-of-gravity solution method to obtain M barycenters of the area, where M is greater than or equal to 1.

207、将该区域重心确定为该红外触摸屏的实际触摸点;207. Determine the center of gravity of the area as the actual touch point of the infrared touch screen;

当计算得到每个分区域的区域重心之后,可以将该区域重心确定为该红外触摸屏的实际触摸点。After the area center of gravity of each sub-area is calculated, the area center of gravity can be determined as the actual touch point of the infrared touch screen.

208、将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏。208 . Feed back the obtained actual touch point to the infrared touch screen in the form of touch coordinates.

在得到该红外触摸屏的实际触摸点之后,可以将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏,然后红外触摸屏可以根据这些实际触摸点进行更加准确的操作。由于该实际触摸点很大程度上消除了扫描不同步造成的影响,因此红外触摸屏的触摸屏体验更加准确,用户体验也更好。After obtaining the actual touch points of the infrared touch screen, the obtained actual touch points can be fed back to the infrared touch screen in the form of touch coordinates, and then the infrared touch screen can perform more accurate operations according to these actual touch points. Since the actual touch point largely eliminates the influence caused by the asynchronous scanning, the touch screen experience of the infrared touch screen is more accurate and the user experience is better.

上面主要从如何划分分区域的角度对一种处理红外触摸屏扫描不同步的方法进行描述,下面将对该方法中重叠计算法和重心求解法进行详细的描述,请参阅图3,本发明实施例中一种处理红外触摸屏扫描不同步的方法另一个实施例包括:The above mainly describes a method for dealing with infrared touch screen scanning asynchronously from the perspective of how to divide the sub-regions. The following will describe the overlapping calculation method and the center of gravity solution method in this method in detail. Please refer to FIG. 3, an embodiment of the present invention Another embodiment of a method for processing out-of-sync infrared touch screen scanning includes:

301、获取到该红外触摸屏的被遮挡区域;301. Obtain the blocked area of the infrared touch screen;

当有物体触摸该红外触摸屏时,可以获取到该红外触摸屏的被遮挡区域。可以理解的是,由于红外触摸屏存在扫描不同步的问题,因此此时的被遮挡区域与实际触摸区域并不一致。When an object touches the infrared touch screen, the blocked area of the infrared touch screen can be obtained. It can be understood that, because the infrared touch screen has a problem of asynchronous scanning, the blocked area at this time is not consistent with the actual touched area.

需要说明的是,该被遮挡区域可以包括从若干个不同扫描方向上扫描得到的扫描区域,扫描方向可以分为正扫和斜扫,正扫就是扫描线平行于Y轴,沿着X轴进行扫描,或者扫描线平行于X轴,沿着Y轴进行扫描的扫描方式,而斜扫则是扫描线与X、Y轴之间存在一定倾斜角,然后沿着X轴或Y轴进行扫描的扫描方式。根据该倾斜角的不同,可以进行不同的斜扫。因此该被遮挡区域可以包括若干个从不同扫描方向上得到的扫描区域。It should be noted that the blocked area may include scanning areas obtained by scanning in several different scanning directions. The scanning direction can be divided into forward scanning and oblique scanning. Forward scanning means that the scanning line is parallel to the Y axis and is carried out along the X axis. Scanning, or the scanning method in which the scanning line is parallel to the X axis and scanning along the Y axis, while oblique scanning is a scanning method in which there is a certain inclination angle between the scanning line and the X and Y axes, and then scanning along the X or Y axis scanning method. Depending on the tilt angle, different oblique sweeps can be performed. Thus the shaded area may comprise several scan areas obtained from different scan directions.

302、根据预置的尺寸值来扩大该被遮挡区域;302. Expand the blocked area according to a preset size value;

在获取到该红外触摸屏的被遮挡区域之后,可以根据预置的尺寸值来扩大该被遮挡区域。After the blocked area of the infrared touch screen is acquired, the blocked area can be enlarged according to a preset size value.

需要说明的是,该预置的尺寸值可以根据该红外触摸屏的实际参数进行设定,使得该尺寸值在合理的范围内对该被遮挡区域进行扩大。而由于不同型号的红外触摸屏的实际参数存在差异,因此该尺寸值也可以根据不同型号的红外触摸屏来针对性地设置。It should be noted that the preset size value can be set according to the actual parameters of the infrared touch screen, so that the size value can expand the blocked area within a reasonable range. Since the actual parameters of different types of infrared touch screens are different, the size value can also be set according to different types of infrared touch screens.

303、判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤304,若否,则执行步骤307;303. Determine whether the enlarged covered area overlaps, if yes, execute step 304, if not, execute step 307;

在根据预置的尺寸值来扩大该被遮挡区域之后,需要判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤304,若否,则执行步骤307。After expanding the covered area according to the preset size value, it is necessary to judge whether the enlarged covered area overlaps, if yes, execute step 304 , if not, execute step 307 .

需要说明的是,由于该红外触摸屏可以是单点触控,也可以是多点触控,当该被遮挡区域是多点触控操作产生时,该被遮挡区域可能存在多个,由于多个被遮挡区域之间可能相距很近,因此在被遮挡区域扩大后,该被遮挡区域之间可能存在区域的重叠,因此应当对扩大后的被遮挡区域是否存在重叠进行判断,若是,则执行步骤304,若否,则执行步骤307。It should be noted that since the infrared touch screen can be single-touch or multi-touch, when the blocked area is generated by multi-touch operation, there may be multiple blocked areas, because multiple The occluded areas may be very close to each other, so after the occluded areas are expanded, there may be overlaps between the occluded areas, so it should be judged whether there is overlap between the expanded occluded areas, and if so, perform the steps 304. If not, go to step 307.

304、获得扩大后的被遮挡区域的重叠区域;304. Obtain the overlapping area of the enlarged covered area;

当判断知道扩大后的被遮挡区域存在重叠之后,需要获得扩大后的被遮挡区域的重叠区域。After it is judged that the enlarged occluded regions overlap, it is necessary to obtain the overlapping region of the enlarged occluded regions.

305、获得该重叠区域的对称中心;305. Obtain the center of symmetry of the overlapping area;

在获得扩大后的被遮挡区域的重叠区域之后,可以获得该重叠区域的对称中心。可以理解的是,该对称中心可以对该重叠区域进行合理的分割。After obtaining the overlapping area of the expanded occluded area, the center of symmetry of the overlapping area can be obtained. It can be understood that the center of symmetry can reasonably divide the overlapping area.

需要说明的是,此处,也可以获得该重叠区域的对称轴或者重心,然后在步骤306中根据该对称轴或者重心来将该被遮挡区域进行合理切割。本实施例选择获取对称中心是因为对称中心从区域的形状上更接近平等分割的要求,但当实际应用的情况需要时也可以选择获取对称轴或者重心。It should be noted that, here, the axis of symmetry or the center of gravity of the overlapping area may also be obtained, and then in step 306 the blocked area is reasonably cut according to the axis of symmetry or the center of gravity. This embodiment chooses to obtain the center of symmetry because the center of symmetry is closer to the requirement of equal division in terms of the shape of the region, but it can also be selected to obtain the axis of symmetry or the center of gravity when the actual application situation requires it.

306、根据该对称中心将扩大后的被遮挡区域切割为N个分区域;306. Cut the enlarged covered area into N sub-areas according to the symmetry center;

在获得该重叠区域的对称中心之后,可以根据该对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。After obtaining the center of symmetry of the overlapping area, the enlarged covered area may be divided into N sub-areas according to the center of symmetry, where N is greater than or equal to 2.

需要说明的是,切割后分区域的数量N应该与被遮挡区域扩大前的数量一致,也就是说两个被遮挡区域扩大后重叠了,根据该对称中心将它们切割后应该得到两个分区域。It should be noted that the number N of sub-regions after cutting should be the same as the number before the expansion of the covered area, that is to say, the two covered areas overlap after being enlarged, and two sub-regions should be obtained after cutting them according to the center of symmetry. .

307、将扩大后的被遮挡区域作为分区域;307. Taking the enlarged covered area as a sub-area;

当判断知道扩大后的被遮挡区域不存在重叠之后,可以将扩大后的被遮挡区域作为分区域。可以理解的是,由于该被遮挡区域可以有若干个,因此将扩大后的被遮挡区域作为分区域后,分区域有对应的若干个。After it is determined that there is no overlap between the enlarged covered regions, the enlarged blocked regions may be used as sub-regions. It can be understood that, since there may be several blocked regions, after the enlarged blocked regions are used as sub-regions, there are corresponding several sub-regions.

308、获取分区域的重叠部分;308. Obtain overlapping parts of the sub-regions;

在获得该分区域之后,可以获取分区域的重叠部分,该重叠部分由若干个不同扫描方向上的对应该分区域重叠而成,为凸多边形,该分区域与该重叠部分存在对应关系,该重叠部分有M个,M大于等于1。After obtaining the sub-region, the overlapping part of the sub-region can be obtained. The overlapping part is formed by overlapping corresponding sub-regions in several different scanning directions and is a convex polygon. There is a corresponding relationship between the sub-region and the overlapping part. There are M overlapping parts, and M is greater than or equal to 1.

需要说明的是,由于每个被遮挡区域可以包括若干个从不同扫描方向上得到的扫描区域,因此当该被遮挡区域被分割为分区域后,该分区域也可以包括对应的若干个从不同扫描方向上得到的扫描分区域,这些扫描分区域的重叠部分即为该分区域的重叠部分。该重叠部分为凸多边形,并且该重叠部分的数量与该被遮挡区域的数量一致,与该分区域的数量一致。It should be noted that since each blocked area can include several scanning areas obtained from different scanning directions, when the blocked area is divided into sub-areas, the sub-areas can also include corresponding several scanning areas obtained from different scanning directions. For the scanning sub-areas obtained in the scanning direction, the overlapping portion of these scanning sub-areas is the overlapping portion of the sub-area. The overlapping portion is a convex polygon, and the number of the overlapping portion is consistent with the number of the covered area and the number of the sub-regions.

309、根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个该区域重心;309. Calculate the area center of gravity of each overlapping part according to the convex polygon center of gravity solution method, and obtain M center of gravity of the area;

在得到该斜扫区域与该分区域的重叠部分之后,可以根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个该区域重心。After obtaining the overlapping portion of the oblique sweep area and the sub-area, the area center of gravity of each overlapping portion can be calculated according to the convex polygon barycenter solution method to obtain M center of gravity of the area.

310、将该区域重心确定为该红外触摸屏的实际触摸点;310. Determine the center of gravity of the area as an actual touch point of the infrared touch screen;

当计算得到每个分区域的区域重心之后,可以将该区域重心确定为该红外触摸屏的实际触摸点。After the area center of gravity of each sub-area is calculated, the area center of gravity can be determined as the actual touch point of the infrared touch screen.

311、将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏。311. Feed back the obtained actual touch point to the infrared touch screen in the form of touch coordinates.

在得到该红外触摸屏的实际触摸点之后,可以将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏,然后红外触摸屏可以根据这些实际触摸点进行更加准确的操作。由于该实际触摸点很大程度上消除了扫描不同步造成的影响,因此红外触摸屏的触摸屏体验更加准确,用户体验也更好。After obtaining the actual touch points of the infrared touch screen, the obtained actual touch points can be fed back to the infrared touch screen in the form of touch coordinates, and then the infrared touch screen can perform more accurate operations according to these actual touch points. Since the actual touch point largely eliminates the influence caused by the asynchronous scanning, the touch screen experience of the infrared touch screen is more accurate and the user experience is better.

上面主要描述了一种处理红外触摸屏扫描不同步的方法,下面将对图3对应实施例中的凸多边形重心求解法进行详细描述,请参阅图4和图5:The above mainly describes a method for dealing with the asynchronous scanning of the infrared touch screen. The method for solving the center of gravity of the convex polygon in the embodiment corresponding to Fig. 3 will be described in detail below, please refer to Fig. 4 and Fig. 5:

首先从原理上推导重心作法;First, deduce the method of center of gravity from the principle;

四边形的重心作法:请参阅图4,连接出四边形的一条对角线,这样四边形就变成两个三角形的组合体,分别作出两个三角形的重心,并连接两个重心成一条线段AB;同理,连接出四边形的另一条对角线,四边形就变成另外两个三角形的组合体,分别作出这两个三角形的重心,并连接两个重心成一条线段CD,则线段AB,CD的交点就是四边形的重心。How to do the center of gravity of the quadrilateral: Please refer to Figure 4, connect a diagonal line of the quadrilateral, so that the quadrilateral becomes a combination of two triangles, respectively draw the center of gravity of the two triangles, and connect the two centers of gravity to form a line segment AB; Theoretically, connect another diagonal line of the quadrilateral, and the quadrilateral becomes a combination of two other triangles. Make the centers of gravity of these two triangles respectively, and connect the two centers of gravity to form a line segment CD, then the intersection point of the line segments AB and CD is the center of gravity of the quadrilateral.

五边形的重心作法:请参阅图5,连接出五边形的任一条对角线,将五边形分为1个三角形与1个四边形组合体,分别作出三角形的重心,和四边形的重心,并连成线段AB;连接五边形的另外一条对角形,将五边形分为另1个三角形与1个四边形的组合体,分别作出三角形与四边形的重心,并连接成线段CD;则AB、CD的交点就是五边形的重心。How to do the center of gravity of the pentagon: Please refer to Figure 5, connect any diagonal line of the pentagon, divide the pentagon into a combination of a triangle and a quadrilateral, and make the center of gravity of the triangle and the center of gravity of the quadrilateral respectively , and connect them into a line segment AB; connect the other diagonal of the pentagon, divide the pentagon into a combination of another triangle and a quadrilateral, draw the centroids of the triangle and the quadrilateral respectively, and connect them into a line segment CD; then The intersection of AB and CD is the center of gravity of the pentagon.

通过数学归纳法可以知道,对于六边形、七边形,N边形,都可以用上述方法,先连接出一条对角线,将N边形化为一个三角形与(N-1)边形,或四边形与(N-2)边形,然后分别作出重心,并连接成线段,然后再连接另外一条对象线,分别作出两个组合体的重心并连接成线段,两条线段的交点就是N边形的重心。Through mathematical induction, we can know that for hexagons, heptagons, and N-gons, the above method can be used to connect a diagonal line first, and convert the N-gons into a triangle and (N-1)-gon , or a quadrilateral and a (N-2) polygon, and then make the center of gravity respectively, and connect them into a line segment, and then connect another object line, respectively make the center of gravity of two combined bodies and connect them into a line segment, and the intersection point of the two line segments is N The center of gravity of the polygon.

因此可以知道,通过凸多边形重心求解法可以轻易求得图3对应实施例中重叠部分的区域重心。Therefore, it can be known that the area center of gravity of the overlapped part in the embodiment corresponding to FIG. 3 can be easily obtained through the method of solving the center of gravity of a convex polygon.

为便于理解,根据图3所描述的实施例,下面以一个实际应用场景对本发明实施例中的处理红外触摸屏扫描不同步的方法进行描述:For ease of understanding, according to the embodiment described in FIG. 3 , a practical application scenario is used below to describe the method for processing out-of-sync infrared touch screen scanning in the embodiment of the present invention:

A:触摸该红外触摸屏,请参阅图6,此时红外触摸屏上产生被遮挡区域为图6中的重叠的矩形方框部分。由于触摸点在移动,当触摸点的移动方向与扫描方向相同时,最终得到的被遮挡区域会较大,如图6a所示;在触摸点的移动方向与扫描方向相反时,最终得到的被遮挡区域会较小,如图6b所示。A: Touch the infrared touch screen, please refer to Figure 6. At this time, the blocked area on the infrared touch screen is the overlapping rectangular frame part in Figure 6. Since the touch point is moving, when the moving direction of the touch point is the same as the scanning direction, the finally obtained blocked area will be larger, as shown in Figure 6a; when the moving direction of the touch point is opposite to the scanning direction, the finally obtained blocked area The occluded area will be smaller, as shown in Figure 6b.

B:将被遮挡区域扩大,如图7所示。B: Expand the occluded area, as shown in Figure 7.

C:判断该被遮挡区域是否重叠,然后获得该被遮挡区域对应的分区域。C: Determine whether the occluded area overlaps, and then obtain the sub-area corresponding to the occluded area.

D:该分区域存在若干个从不同扫描方向上得到的扫描分区域,这些扫描分区域的重叠部分即为该分区域的重叠部分,如图8所示。图8中一共使用了四组斜扫得到的扫描分区域,分别为801、802、803、804,以及两组正扫得到的扫描分区域,分别为805、806。D: There are several scanning sub-regions obtained from different scanning directions in this sub-region, and the overlapping part of these scanning sub-regions is the overlapping part of this sub-region, as shown in FIG. 8 . In FIG. 8 , four sets of scanning sub-regions obtained by oblique scanning are used, which are respectively 801 , 802 , 803 , and 804 , and two groups of scanning sub-regions obtained by forward scanning are respectively 805 and 806 .

E:根据凸多边形重心求解法计算每个重叠部分的区域重心,则该区域重心即为红外触摸屏的实际触摸点。E: Calculate the area center of gravity of each overlapping part according to the convex polygon center of gravity solution method, then the area center of gravity is the actual touch point of the infrared touch screen.

F:将实际触摸点以触摸坐标的方式反馈给该红外触摸屏,结束。F: Feedback the actual touch point to the infrared touch screen in the form of touch coordinates, and end.

上面主要描述了一种处理红外触摸屏扫描不同步的方法,下面将对一种红外触摸屏进行详细描述,请参阅图9,本发明实施例中一种红外触摸屏一个实施例包括:The above mainly describes a method for dealing with asynchronous scanning of an infrared touch screen. An infrared touch screen will be described in detail below. Please refer to FIG. 9. An embodiment of an infrared touch screen in an embodiment of the present invention includes:

获取模块901,用于获取到该红外触摸屏的被遮挡区域;An acquisition module 901, configured to acquire the blocked area of the infrared touch screen;

尺寸扩大模块902,用于根据预置的尺寸值来扩大该被遮挡区域;A size expansion module 902, configured to expand the blocked area according to a preset size value;

重心求解模块903,用于根据预置的重心求解法计算该被遮挡区域的区域重心;The center of gravity solution module 903 is used to calculate the area center of gravity of the blocked area according to the preset center of gravity solution method;

确定模块904,用于将该区域重心确定为该红外触摸屏的实际触摸点。The determining module 904 is configured to determine the center of gravity of the area as the actual touch point of the infrared touch screen.

本实施例中,获取模块901获取到该红外触摸屏的被遮挡区域;然后,尺寸扩大模块902根据预置的尺寸值来扩大该被遮挡区域;接着,重心求解模块903根据预置的重心求解法计算扩大后的该被遮挡区域的区域重心;最后,确定模块904将该区域重心确定为该红外触摸屏的实际触摸点。在本实施例中,通过使用算法的处理方式来计算被遮挡区域的实际触摸点,无需要求处理器和元件的处理速度更快,也无需复杂的电路,便可得出红外触摸屏的实际触摸点,最大程度地降低扫描不同步造成的影响,防止了因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。In this embodiment, the acquiring module 901 acquires the blocked area of the infrared touch screen; then, the size expanding module 902 expands the blocked area according to the preset size value; then, the center of gravity solving module 903 uses the preset center of gravity solving method Calculate the area center of gravity of the enlarged covered area; finally, the determination module 904 determines the area center of gravity as the actual touch point of the infrared touch screen. In this embodiment, the actual touch point of the covered area is calculated by using an algorithm processing method, without requiring faster processing speed of the processor and components, and without complex circuits, the actual touch point of the infrared touch screen can be obtained , minimizing the impact caused by scanning asynchrony, preventing the increase in the production cost of the infrared touch screen caused by this, and being conducive to the sales and popularization of the infrared touch screen.

为便于理解,下面对本发明实施例中的一种红外触摸屏进行详细描述,请参阅图10,本发明实施例中一种红外触摸屏另一个实施例包括:For ease of understanding, an infrared touch screen in an embodiment of the present invention is described in detail below, please refer to FIG. 10 , another embodiment of an infrared touch screen in an embodiment of the present invention includes:

获取模块101,用于获取到该红外触摸屏的被遮挡区域;An acquisition module 101, configured to acquire the blocked area of the infrared touch screen;

尺寸扩大模块102,用于根据预置的尺寸值来扩大该被遮挡区域;A size expansion module 102, configured to expand the blocked area according to a preset size value;

重心求解模块103,用于根据预置的重心求解法计算该被遮挡区域的区域重心;The center of gravity solution module 103 is used to calculate the area center of gravity of the blocked area according to the preset center of gravity solution method;

确定模块104,用于将该区域重心确定为该红外触摸屏的实际触摸点。The determination module 104 is configured to determine the center of gravity of the area as the actual touch point of the infrared touch screen.

本实施例中该重心求解模块103可以具体包括:In this embodiment, the center of gravity solving module 103 may specifically include:

判断单元1031,用于判断扩大后的被遮挡区域是否存在重叠,若是,则触发区域分割单元1032,若否,则触发分区单元1033;The judging unit 1031 is used to judge whether the enlarged covered area overlaps, if so, trigger the area division unit 1032, and if not, trigger the partition unit 1033;

区域分割单元1032,用于使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2;The area segmentation unit 1032 is used to divide the enlarged covered area into N sub-areas using an overlapping calculation method, where N is greater than or equal to 2;

分区单元1033,用于将扩大后的被遮挡区域作为分区域;A partition unit 1033, configured to use the enlarged covered area as a sub-region;

重心求解单元1034,用于根据预置的重心求解法分别计算该分区域的区域重心,得到M个该区域重心,M大于或等于1。The center of gravity solving unit 1034 is used to calculate the area center of gravity of the sub-area according to the preset center of gravity solution method to obtain M centers of gravity of the area, where M is greater than or equal to 1.

本实施例中该区域分割单元1032可以具体包括:In this embodiment, the region segmentation unit 1032 may specifically include:

获取子单元10321,用于获得扩大后的被遮挡区域的重叠区域;The obtaining subunit 10321 is used to obtain the overlapping area of the enlarged covered area;

对称中心子单元10322,用于获得该重叠区域的对称中心;A symmetry center subunit 10322, configured to obtain the symmetry center of the overlapping area;

切割子单元10323,用于根据该对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。The cutting sub-unit 10323 is configured to cut the enlarged shaded area into N sub-areas according to the center of symmetry, where N is greater than or equal to 2.

本实施例中该重心求解单元1034可以具体包括:In this embodiment, the center of gravity solving unit 1034 may specifically include:

重叠子单元10341,用于获取分区域的重叠部分,该重叠部分由若干个不同扫描方向上的对应该分区域重叠而成,为凸多边形,该分区域与该重叠部分存在对应关系,该重叠部分有M个,M大于等于1;The overlapping sub-unit 10341 is used to obtain the overlapping part of the sub-region. The overlapping part is formed by overlapping corresponding sub-regions in different scanning directions, and is a convex polygon. There is a corresponding relationship between the sub-region and the overlapping part. There are M parts, and M is greater than or equal to 1;

区域重心子单元10342,用于根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个该区域重心。The area center of gravity subunit 10342 is used to calculate the area center of gravity of each overlapping part according to the convex polygon barycenter solution method, and obtain M such area centers of gravity.

本实施例中该红外触摸屏还可以包括:In this embodiment, the infrared touch screen can also include:

反馈模块105,用于将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏。The feedback module 105 is configured to feed back the obtained actual touch point to the infrared touch screen in the form of touch coordinates.

本实施例中,获取模块101获取到该红外触摸屏的被遮挡区域;然后,尺寸扩大模块102根据预置的尺寸值来扩大该被遮挡区域;接着,重心求解模块103根据预置的重心求解法计算扩大后的该被遮挡区域的区域重心;最后,确定模块104将该区域重心确定为该红外触摸屏的实际触摸点。在本实施例中,通过使用算法的处理方式来计算被遮挡区域的实际触摸点,无需要求处理器和元件的处理速度更快,也无需复杂的电路,便可得出红外触摸屏的实际触摸点,最大程度地降低扫描不同步造成的影响,防止了因此导致的红外触摸屏生产成本增加,有利于红外触摸屏的销售以及普及使用。进一步地,反馈模块105将获得的该实际触摸点以触摸坐标的方式反馈给该红外触摸屏,可以使得该红外触摸屏对实际触摸点作出更快速的反应。In this embodiment, the acquisition module 101 acquires the blocked area of the infrared touch screen; then, the size expansion module 102 expands the blocked area according to the preset size value; Calculate the area center of gravity of the enlarged covered area; finally, the determination module 104 determines the area center of gravity as the actual touch point of the infrared touch screen. In this embodiment, the actual touch point of the covered area is calculated by using an algorithm processing method, without requiring faster processing speed of the processor and components, and without complex circuits, the actual touch point of the infrared touch screen can be obtained , minimizing the impact caused by scanning asynchrony, preventing the increase in the production cost of the infrared touch screen caused by this, and being conducive to the sales and popularization of the infrared touch screen. Further, the feedback module 105 feeds back the obtained actual touch point to the infrared touch screen in the form of touch coordinates, so that the infrared touch screen can respond more quickly to the actual touch point.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (6)

1.一种处理红外触摸屏扫描不同步的方法,其特征在于,包括:1. A method for processing infrared touch screen scanning asynchrony, characterized in that, comprising: S1:获取到所述红外触摸屏的被遮挡区域;S1: Obtain the blocked area of the infrared touch screen; S2:根据预置的尺寸值来扩大所述被遮挡区域;S2: Enlarging the covered area according to a preset size value; S3:根据预置的重心求解法计算扩大后的所述被遮挡区域的区域重心;S3: Calculate the area center of gravity of the enlarged covered area according to the preset center of gravity solution method; S4:将所述区域重心确定为所述红外触摸屏的实际触摸点;S4: Determine the center of gravity of the area as the actual touch point of the infrared touch screen; 步骤S3具体包括:Step S3 specifically includes: S31:判断扩大后的被遮挡区域是否存在重叠,若是,则执行步骤S32,若否,则执行步骤S33;S31: Determine whether the enlarged covered area overlaps, if yes, execute step S32, if not, execute step S33; S32:使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2;S32: Divide the enlarged covered area into N sub-areas using an overlapping calculation method, where N is greater than or equal to 2; S33:将扩大后的被遮挡区域作为分区域;S33: taking the enlarged covered area as a sub-area; S34:根据预置的重心求解法分别计算所述分区域的区域重心,得到M个所述区域重心,M大于或等于1;S34: Calculate the area centers of gravity of the sub-areas according to the preset center of gravity solution method to obtain M centers of gravity of the areas, where M is greater than or equal to 1; 步骤S34具体包括:Step S34 specifically includes: 获取分区域的重叠部分,所述重叠部分由若干个不同扫描方向上的对应所述分区域重叠而成,为凸多边形,所述分区域与所述重叠部分存在对应关系,所述重叠部分有M个,M大于等于1;Obtain the overlapping part of the sub-region, the overlapping part is formed by overlapping the corresponding sub-regions in several different scanning directions, and is a convex polygon, and there is a corresponding relationship between the sub-region and the overlapping part, and the overlapping part has M, M greater than or equal to 1; 根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个所述区域重心。The area center of gravity of each overlapping part is calculated according to the convex polygon center of gravity solution method, and M said area centers of gravity are obtained. 2.根据权利要求1所述的方法,其特征在于,步骤S32具体包括:2. The method according to claim 1, wherein step S32 specifically comprises: 获得扩大后的被遮挡区域的重叠区域;Obtain the overlapping area of the expanded occluded area; 获得所述重叠区域的对称中心;obtaining a center of symmetry of said overlapping region; 根据所述对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。The enlarged shaded area is divided into N sub-areas according to the center of symmetry, where N is greater than or equal to 2. 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, characterized in that the method further comprises: 将获得的所述实际触摸点以触摸坐标的方式反馈给所述红外触摸屏。The obtained actual touch point is fed back to the infrared touch screen in the form of touch coordinates. 4.一种红外触摸屏,其特征在于,包括:4. An infrared touch screen, characterized in that, comprising: 获取模块,用于获取到所述红外触摸屏的被遮挡区域;An acquisition module, configured to acquire the blocked area of the infrared touch screen; 尺寸扩大模块,用于根据预置的尺寸值来扩大所述被遮挡区域;A size expansion module, configured to expand the covered area according to a preset size value; 重心求解模块,用于根据预置的重心求解法计算所述被遮挡区域的区域重心;A center-of-gravity solution module, configured to calculate the area center of gravity of the covered area according to a preset center-of-gravity solution method; 确定模块,用于将所述区域重心确定为所述红外触摸屏的实际触摸点;A determining module, configured to determine the center of gravity of the area as the actual touch point of the infrared touch screen; 所述重心求解模块具体包括:The center of gravity solving module specifically includes: 判断单元,用于判断扩大后的被遮挡区域是否存在重叠,若是,则触发区域分割单元,若否,则触发分区单元;The judging unit is used to judge whether there is overlap in the enlarged covered area, if so, trigger the area division unit, and if not, trigger the partition unit; 区域分割单元,用于使用重叠计算法将扩大后的被遮挡区域分开为N个分区域,N大于或等于2;The area segmentation unit is used to divide the enlarged covered area into N sub-areas using an overlapping calculation method, and N is greater than or equal to 2; 分区单元,用于将扩大后的被遮挡区域作为分区域;A partition unit, configured to use the enlarged covered area as a sub-region; 重心求解单元,用于根据预置的重心求解法分别计算所述分区域的区域重心,得到M个所述区域重心,M大于或等于1;The center of gravity solving unit is used to calculate the regional centers of gravity of the sub-regions according to the preset center of gravity solving method to obtain M centers of gravity of the regions, and M is greater than or equal to 1; 所述重心求解单元具体包括:The center of gravity solving unit specifically includes: 重叠子单元,用于获取分区域的重叠部分,所述重叠部分由若干个不同扫描方向上的对应所述分区域重叠而成,为凸多边形,所述分区域与所述重叠部分存在对应关系,所述重叠部分有M个,M大于等于1;The overlapping subunit is used to obtain the overlapping part of the sub-region, the overlapping part is formed by overlapping the corresponding sub-regions in several different scanning directions, and is a convex polygon, and the sub-region has a corresponding relationship with the overlapping part , there are M overlapping parts, and M is greater than or equal to 1; 区域重心子单元,用于根据凸多边形重心求解法计算每个重叠部分的区域重心,得到M个所述区域重心。The area center of gravity subunit is used to calculate the area center of gravity of each overlapping part according to the convex polygon center of gravity solution method, and obtain M said area centers of gravity. 5.根据权利要求4所述的红外触摸屏,其特征在于,所述区域分割单元具体包括:5. The infrared touch screen according to claim 4, wherein the region dividing unit specifically comprises: 获取子单元,用于获得扩大后的被遮挡区域的重叠区域;Acquiring subunits, used to obtain the overlapping area of the expanded occluded area; 对称中心子单元,用于获得所述重叠区域的对称中心;a symmetry center subunit, configured to obtain the symmetry center of the overlapping region; 切割子单元,用于根据所述对称中心将扩大后的被遮挡区域切割为N个分区域,N大于或等于2。The cutting sub-unit is configured to cut the enlarged shaded area into N sub-areas according to the center of symmetry, where N is greater than or equal to 2. 6.根据权利要求4或5所述的红外触摸屏,其特征在于,所述红外触摸屏还包括:6. The infrared touch screen according to claim 4 or 5, wherein the infrared touch screen further comprises: 反馈模块,用于将获得的所述实际触摸点以触摸坐标的方式反馈给所述红外触摸屏。A feedback module, configured to feed back the obtained actual touch point to the infrared touch screen in the form of touch coordinates.
CN201410228318.5A 2014-05-27 2014-05-27 Method for treating scanning asynchronism of infrared touch screen and infrared touch screen Active CN103970372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410228318.5A CN103970372B (en) 2014-05-27 2014-05-27 Method for treating scanning asynchronism of infrared touch screen and infrared touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410228318.5A CN103970372B (en) 2014-05-27 2014-05-27 Method for treating scanning asynchronism of infrared touch screen and infrared touch screen

Publications (2)

Publication Number Publication Date
CN103970372A CN103970372A (en) 2014-08-06
CN103970372B true CN103970372B (en) 2017-02-15

Family

ID=51239955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410228318.5A Active CN103970372B (en) 2014-05-27 2014-05-27 Method for treating scanning asynchronism of infrared touch screen and infrared touch screen

Country Status (1)

Country Link
CN (1) CN103970372B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834411A (en) * 2015-03-11 2015-08-12 河北华发通信技术有限公司 Rapid scanning method for infrared touch screen
CN105892744A (en) * 2016-03-31 2016-08-24 青岛海信电器股份有限公司 Touch trajectory tracking method and device and display equipment
CN105955556B (en) * 2016-06-30 2019-03-19 广州华欣电子科技有限公司 Infrared touch screen positioning method and device
CN108984044A (en) * 2018-07-28 2018-12-11 贵州华宁科技股份有限公司 A kind of infrared touch panel

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI433004B (en) * 2010-05-14 2014-04-01 Alcor Micro Corp Method for determining touch points on touch panel and system thereof
CN102004585B (en) * 2010-11-15 2013-04-03 广东威创视讯科技股份有限公司 Multi-area identification method for touch screen
CN102662532B (en) * 2012-03-29 2016-03-30 广东威创视讯科技股份有限公司 Multiple point touching coordinate location method and device thereof
JP6024250B2 (en) * 2012-07-12 2016-11-09 富士通株式会社 Correction apparatus, correction program, and correction method
CN103761012B (en) * 2013-08-27 2016-07-13 合肥工业大学 A Fast Algorithm Applicable to Large Size Infrared Touch Screen

Also Published As

Publication number Publication date
CN103970372A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
US10318042B2 (en) Controlling method of foldable screen and electronic device
CN102779001B (en) Light patterns for touch detection or gesture detection
US9069386B2 (en) Gesture recognition device, method, program, and computer-readable medium upon which program is stored
CN103530052B (en) The display methods and user equipment of a kind of interface content
JP2020052991A (en) Gesture recognition-based interactive display method and device
CN103970372B (en) Method for treating scanning asynchronism of infrared touch screen and infrared touch screen
CN105005448B (en) Application program launching method, device and terminal device
JP2017504877A (en) Method and apparatus for click object enlargement based on floating touch
US10282087B2 (en) Multi-touch based drawing input method and apparatus
US20120249487A1 (en) Method of identifying a multi-touch shifting gesture and device using the same
TW201706822A (en) Interface adjustment method and electronic device
CN103729109B (en) A kind of interface display method and terminal
WO2024164486A1 (en) Touch handwriting generation method and apparatus, electronic device, and storage medium
JP6324203B2 (en) Information processing apparatus, control method therefor, program, and recording medium
CN104978018B (en) Touch system and touch method
CN105955657A (en) Display method and electronic device
KR101580570B1 (en) Control method and controller for touch sensor panel
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
CN110162257A (en) Multiconductor touch control method, device, equipment and computer readable storage medium
CN105786373B (en) A touch track display method and electronic device
US20130249807A1 (en) Method and apparatus for three-dimensional image rotation on a touch screen
JP2014109883A (en) Electronic apparatus and method of controlling the same
CN111062360B (en) Hand tracking system and tracking method thereof
US10825242B2 (en) Method for designing a three dimensional modeled object in a three dimensional scene by extruding a curve
JP2017215842A (en) Electronic apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250911

Address after: 510535 Guangdong Province Guangzhou City Huangpu District Yunpo Fourth Road 6.NO Building 2 Room 1008

Patentee after: Guangzhou Lingyue Power Technology Co.,Ltd.

Country or region after: China

Address before: 510663 Guangdong city of Guangzhou province Guangzhou high tech Industrial Development Zone, Road No. 192 Ke Xue Cheng Ke Zhu

Patentee before: GUANGZHOU HUAXIN ELECTRONICS Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right