CN105786373B - A touch track display method and electronic device - Google Patents
A touch track display method and electronic device Download PDFInfo
- Publication number
- CN105786373B CN105786373B CN201410822834.0A CN201410822834A CN105786373B CN 105786373 B CN105786373 B CN 105786373B CN 201410822834 A CN201410822834 A CN 201410822834A CN 105786373 B CN105786373 B CN 105786373B
- Authority
- CN
- China
- Prior art keywords
- touch
- point information
- touch point
- display unit
- area
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别涉及一种触控轨迹显示方法及电子设备。The invention relates to the field of computer technology, in particular to a touch track display method and electronic equipment.
背景技术Background technique
随着科学技术的不断发展,电子技术也得到了飞速的发展,电子产品的种类也越来越多,人们也享受到了科技发展带来的各种便利。现在人们可以通过各种类型的电子设备享受随着科技发展带来的舒适生活。比如,手机等电子设备已经成为人们生活中一个不可或缺的部分,人们可以通过手机等电子设备以打电话、发短信等等方式加强与其他人之间的联系。With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products, and people have also enjoyed various conveniences brought by the development of science and technology. Now people can enjoy the comfortable life brought by the development of science and technology through various types of electronic devices. For example, electronic devices such as mobile phones have become an indispensable part of people's lives, and people can use electronic devices such as mobile phones to strengthen contact with other people by making calls, sending text messages, and so on.
现在,为了方便用户的操作,很多具有触控显示屏的电子设备都支持用户通过手写方式进行输入,手写时可以是直接通过手指进行输入,或者也可以借助外部输入设备,例如触控笔等进行输入,触控笔例如可以是电容笔、电磁笔等,通过外部设备输入来进行操作,一般来说比直接用手进行操作来的更为准确,因此电容笔等外部输入设备的使用也较为广泛。Now, in order to facilitate the user's operation, many electronic devices with touch screens support users to input by handwriting. When handwriting, the input can be performed directly with fingers, or with the help of external input devices, such as stylus, etc. Input, the stylus can be, for example, a capacitive pen, an electromagnetic pen, etc. It is generally more accurate to operate through external device input than direct operation, so external input devices such as capacitive pens are also widely used .
在用户利用触控笔进行输入时,一种比较自然的手写输入过程是用户将手掌和/或手指放到触控显示屏上,并用触控笔进行书写,也就是说,用户在用触控笔进行输入时,用户的手可能也会触碰到触控显示屏,那么对于触控显示屏来说,可能会获得多个输入信息,在这种情况下,电子设备可能会都进行响应,或者也可能因为无法区分究竟应该响应哪个输入信息而拒绝响应。可见,由于电子设备无法区分触控笔和用户的手,而可能导致电子设备误响应或停止响应,提高了电子设备的误响应率,也影响用户体验。When a user uses a stylus to input, a relatively natural handwriting input process is that the user puts the palm and/or fingers on the touch screen and writes with the stylus. When the pen is inputting, the user's hand may also touch the touch display, so for the touch display, multiple input information may be obtained. In this case, the electronic device may respond to all of them. Or it may refuse to respond because it cannot distinguish which input information should be responded to. It can be seen that since the electronic device cannot distinguish between the stylus and the user's hand, the electronic device may cause a false response or stop responding, which increases the false response rate of the electronic device and affects user experience.
发明内容Contents of the invention
本发明实施例提供一种触控轨迹显示方法及电子设备,用于解决由于电子设备无法区分触控笔和用户的手,而可能导致电子设备误响应或停止响应的技术问题。Embodiments of the present invention provide a touch trace display method and an electronic device, which are used to solve the technical problem that the electronic device may cause a wrong response or stop responding because the electronic device cannot distinguish between a stylus and a user's hand.
本发明的第一方面,提供一种触控轨迹显示方法,应用于电子设备,包括:The first aspect of the present invention provides a touch track display method applied to electronic equipment, including:
通过所述电子设备的触控显示单元获取至少一个触控点信息;Obtaining at least one touch point information through the touch display unit of the electronic device;
将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;Comparing at least one touch area corresponding to the at least one touch point information with a preset area, and determining whether there is a touch area smaller than the preset area;
若有,确定小于所述预设面积的触控面积对应的触控点信息;If yes, determine the touch point information corresponding to the touch area smaller than the preset area;
通过所述触控显示单元显示确定的触控点信息对应的轨迹。The track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,在判断其中是否有小于所述预设面积的触控面积之后,还包括:Optionally, after judging whether there is a touch area smaller than the preset area, it also includes:
若无,则将所述至少一个触控面积两两分别进行比较,确定出其中值最小的触控面积;If not, comparing the at least one touch area two by two to determine the touch area with the smallest median value;
确定值最小的触控面积对应的触控点信息;Determine the touch point information corresponding to the touch area with the smallest value;
通过所述触控显示单元显示确定的触控点信息对应的轨迹。The track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,通过所述触控显示单元显示确定的触控点信息对应的轨迹,包括:Optionally, displaying the track corresponding to the determined touch point information through the touch display unit includes:
获取确定的触控点信息对应的几何中心点;Obtain the geometric center point corresponding to the determined touch point information;
根据确定的几何中心点,通过所述触控显示单元显示确定的触控点信息对应的轨迹。According to the determined geometric center point, the track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,获取确定的触控点信息对应的几何中心点,包括:Optionally, obtain the geometric center point corresponding to the determined touch point information, including:
获取确定的触控点信息对应的形状、以及所述触控点信息在所述触控显示单元上的坐标;Obtaining the shape corresponding to the determined touch point information and the coordinates of the touch point information on the touch display unit;
根据所述形状以及所述坐标,确定所述触控点信息对应的几何中心点。According to the shape and the coordinates, determine the geometric center point corresponding to the touch point information.
可选的,所述方法还包括:Optionally, the method also includes:
获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上所感应的电容信息;Acquiring capacitance information sensed by the operating body corresponding to the at least one touch point information on the touch display unit;
根据所述电容信息,确定所述操作体的形状;determining the shape of the operating body according to the capacitance information;
根据所述操作体的形状,确定所述操作体的正方向,并根据所述操作体的正方向确定所述轨迹的正方向。The positive direction of the operating body is determined according to the shape of the operating body, and the positive direction of the trajectory is determined according to the positive direction of the operating body.
可选的,在根据所述操作体的形状,确定所述操作体的正方向之后,还包括:Optionally, after determining the forward direction of the operating body according to the shape of the operating body, the method further includes:
确定所述操作体在所述正方向下的运动方向;determining the movement direction of the operating body in the positive direction;
将所述触控显示单元上显示在所述运动方向上的显示内容从第一位置移动到第二位置;其中,所述第一位置位于所述运动方向上,所述第二位置没有位于所述运动方向上。moving the display content displayed on the touch display unit in the moving direction from a first position to a second position; wherein, the first position is located in the moving direction, and the second position is not located in the moving direction. in the direction of motion.
本发明的第二方面,提供一种电子设备,包括:A second aspect of the present invention provides an electronic device, comprising:
第一获取模块,用于通过所述电子设备的触控显示单元获取至少一个触控点信息;A first acquiring module, configured to acquire at least one touch point information through the touch display unit of the electronic device;
比较模块,用于将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;A comparison module, configured to compare at least one touch area corresponding to the at least one touch point information with a preset area, and determine whether there is a touch area smaller than the preset area;
第一确定模块,用于若有,确定小于所述预设面积的触控面积对应的触控点信息;The first determination module is used to determine the touch point information corresponding to the touch area smaller than the preset area, if any;
操作模块,用于通过所述触控显示单元显示确定的触控点信息对应的轨迹。An operation module, configured to display the track corresponding to the determined touch point information through the touch display unit.
可选的,optional,
所述比较模块还用于:在判断其中是否有小于所述预设面积的触控面积之后,若无,则将所述至少一个触控面积两两分别进行比较,确定出其中值最小的触控面积;The comparison module is also used for: after judging whether there is a touch area smaller than the preset area, if not, comparing the at least one touch area two by two to determine the touch area with the smallest value. control area;
所述第一确定模块还用于:确定值最小的触控面积对应的触控点信息;The first determination module is further configured to: determine the touch point information corresponding to the touch area with the smallest value;
所述操作模块还用于:通过所述触控显示单元显示确定的触控点信息对应的轨迹。The operation module is further configured to: display the track corresponding to the determined touch point information through the touch display unit.
可选的,所述操作模块具体用于:Optionally, the operation module is specifically used for:
获取确定的触控点信息对应的几何中心点;Obtain the geometric center point corresponding to the determined touch point information;
根据确定的几何中心点,通过所述触控显示单元显示确定的触控点信息对应的轨迹。According to the determined geometric center point, the track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,所述操作模块具体用于获取确定的触控点信息对应的几何中心点,具体为:Optionally, the operation module is specifically configured to obtain the geometric center point corresponding to the determined touch point information, specifically:
获取确定的触控点信息对应的形状、以及所述触控点信息在所述触控显示单元上的坐标;Obtaining the shape corresponding to the determined touch point information and the coordinates of the touch point information on the touch display unit;
根据所述形状以及所述坐标,确定所述触控点信息对应的几何中心点。According to the shape and the coordinates, determine the geometric center point corresponding to the touch point information.
可选的,所述电子设备还包括第二获取模块、第二确定模块和第三确定模块;Optionally, the electronic device further includes a second acquiring module, a second determining module, and a third determining module;
所述第二获取模块用于:获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上所感应的电容信息;The second acquiring module is configured to: acquire capacitance information induced by an operating body corresponding to the at least one touch point information on the touch display unit;
所述第二确定模块用于:根据所述电容信息,确定所述操作体的形状;The second determining module is configured to: determine the shape of the operating body according to the capacitance information;
所述第三确定模块用于:根据所述操作体的形状,确定所述操作体的正方向,并根据所述操作体的正方向确定所述轨迹的正方向。The third determination module is configured to: determine the positive direction of the operating body according to the shape of the operating body, and determine the positive direction of the trajectory according to the positive direction of the operating body.
可选的,所述电子设备还包括第四确定模块和移动模块;Optionally, the electronic device further includes a fourth determining module and a moving module;
所述第四确定模块用于:在所述第三确定模块根据所述操作体的形状,确定所述操作体的正方向之后,确定所述操作体在所述正方向下的运动方向;The fourth determining module is configured to: after the third determining module determines the positive direction of the operating body according to the shape of the operating body, determine the moving direction of the operating body in the positive direction;
所述移动模块用于:将所述触控显示单元上显示在所述运动方向上的显示内容从第一位置移动到第二位置;其中,所述第一位置位于所述运动方向上,所述第二位置没有位于所述运动方向上。The moving module is used to: move the display content displayed on the touch display unit in the moving direction from a first position to a second position; wherein, the first position is located in the moving direction, and the The second position is not located in the direction of motion.
如果用户的手指和触控笔一起接触电子设备的触控显示单元,一般来说触控笔所对应的触控面积都会小于用户的手指的触控面积,因此,本发明实施例中,在获取触控点信息之后,可以将触控点信息所对应的触控面积与预设面积进行比较,如果有小于预设面积的触控面积,则通过触控显示单元显示该触控面积对应的触控点信息的轨迹,相当于只选择响应较小的触控面积对应的触控点,也就是说电子设备可以只选择响应触控笔所进行的操作,而不响应用户的手指所进行的操作,这样,也就相当于电子设备可以区分触控笔和用户的手,进而尽量电子设备出现误响应或停止响应的情况,降低了电子设备的误响应率,提高用户体验。If the user's finger and the stylus touch the touch display unit of the electronic device together, generally speaking, the touch area corresponding to the stylus will be smaller than the touch area of the user's finger. Therefore, in the embodiment of the present invention, when acquiring After the touch point information, the touch area corresponding to the touch point information can be compared with the preset area. If there is a touch area smaller than the preset area, the touch display unit displays the touch area corresponding to the touch area. The track of the control point information is equivalent to selecting only the touch point corresponding to the smaller touch area, that is to say, the electronic device can only choose to respond to the operation performed by the stylus, but not to respond to the operation performed by the user's finger , In this way, it is equivalent to that the electronic device can distinguish between the stylus and the user's hand, and then try to minimize the false response or stop responding of the electronic device, reduce the false response rate of the electronic device, and improve user experience.
附图说明Description of drawings
图1为本发明实施例中触控轨迹显示方法的主要流程图;FIG. 1 is a main flowchart of a method for displaying touch traces in an embodiment of the present invention;
图2为本发明实施例中触控显示单元上的触控点信息的示意图;2 is a schematic diagram of touch point information on a touch display unit in an embodiment of the present invention;
图3A为本发明实施例中用户通过手在手机上进行输入时,显示内容未移动的示意图;Fig. 3A is a schematic diagram of the displayed content not moving when the user inputs on the mobile phone by hand in the embodiment of the present invention;
图3B为本发明实施例中用户通过手在手机上进行输入时,显示内容发生移动后的示意图;Fig. 3B is a schematic diagram of the displayed content after the user performs input on the mobile phone by hand in the embodiment of the present invention;
图4为本发明实施例中电子设备的主要结构框图。FIG. 4 is a main structural block diagram of an electronic device in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供一种触控轨迹显示方法,所述方法可以应用于电子设备,所述方法包括:通过所述电子设备的触控显示单元获取至少一个触控点信息;将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;若有,确定小于所述预设面积的触控面积对应的触控点信息;通过所述触控显示单元显示确定的触控点信息对应的轨迹。An embodiment of the present invention provides a touch track display method, the method can be applied to an electronic device, and the method includes: acquiring at least one touch point information through a touch display unit of the electronic device; Comparing at least one touch area corresponding to the touch point information with the preset area respectively, and judging whether there is a touch area smaller than the preset area; if so, determining the touch area corresponding to the touch area smaller than the preset area Touch point information: displaying the track corresponding to the determined touch point information through the touch display unit.
如果用户的手指和触控笔一起接触电子设备的触控显示单元,一般来说触控笔所对应的触控面积都会小于用户的手指的触控面积,因此,本发明实施例中,在获取触控点信息之后,可以将触控点信息所对应的触控面积与预设面积进行比较,如果有小于预设面积的触控面积,则通过触控显示单元显示该触控面积对应的触控点信息的轨迹,相当于只选择响应较小的触控面积对应的触控点,也就是说电子设备可以只选择响应触控笔所进行的操作,而不响应用户的手指所进行的操作,这样,也就相当于电子设备可以区分触控笔和用户的手,进而尽量电子设备出现误响应或停止响应的情况,降低了电子设备的误响应率,提高用户体验。If the user's finger and the stylus touch the touch display unit of the electronic device together, generally speaking, the touch area corresponding to the stylus will be smaller than the touch area of the user's finger. Therefore, in the embodiment of the present invention, when acquiring After the touch point information, the touch area corresponding to the touch point information can be compared with the preset area. If there is a touch area smaller than the preset area, the touch display unit displays the touch area corresponding to the touch area. The track of the control point information is equivalent to selecting only the touch point corresponding to the smaller touch area, that is to say, the electronic device can only choose to respond to the operation performed by the stylus, but not to respond to the operation performed by the user's finger , In this way, it is equivalent to that the electronic device can distinguish between the stylus and the user's hand, and then try to minimize the false response or stop responding of the electronic device, reduce the false response rate of the electronic device, and improve user experience.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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.
本发明实施例中的电子设备,可以是手机、PC(个人计算机)、PAD(平板电脑)等等不同的电子设备,只要该电子设备具有触控显示屏即可,本发明实施例对于具体的电子设备的实现形式不作限制。The electronic equipment in the embodiment of the present invention can be different electronic equipment such as mobile phone, PC (personal computer), PAD (tablet computer), as long as the electronic equipment has a touch screen, the embodiment of the present invention is specific to The implementation form of the electronic device is not limited.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this article, unless otherwise specified, generally indicates that the contextual objects are an "or" relationship.
下面结合附图对本发明优选的实施方式进行详细说明。Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
请参见图1,本发明实施例提供一种触控轨迹显示方法,所述方法可以应用于电子设备,所述方法的主要步骤描述如下。Referring to FIG. 1 , an embodiment of the present invention provides a method for displaying touch traces, which can be applied to electronic devices, and the main steps of the method are described as follows.
步骤101:通过所述电子设备的触控显示单元获取至少一个触控点信息。Step 101: Obtain at least one touch point information through the touch display unit of the electronic device.
用户可以用触控笔在所述触控显示单元上进行输入操作,则触控笔可以对应于一个触控点信息,如果用户的手指或其他操作体也接触到了所述触控显示单元,则用户的手指或其他操作体也可以分别对应于一个触控点信息,因此所述电子设备可以通过所述触控显示单元获得至少一个触控点信息。The user can use a stylus to perform an input operation on the touch display unit, and the stylus can correspond to a touch point information. If the user's finger or other operating body also touches the touch display unit, then The user's fingers or other operating bodies may also correspond to one touch point information respectively, so the electronic device may obtain at least one touch point information through the touch display unit.
具体的,通过所述电子设备的触控显示单元获取至少一个触控点信息,可以包括:Specifically, obtaining at least one touch point information through the touch display unit of the electronic device may include:
获得用户针对所述触控显示单元进行的第一操作;Obtaining a first operation performed by the user on the touch display unit;
通过所述触控显示单元,根据所述第一操作获得所述至少一个触控点信息。The at least one touch point information is obtained according to the first operation through the touch display unit.
即,所述电子设备可以是通过用户的操作获得的所述至少一个触控点信息,可以看作用户只进行了一次操作,但在这次操作中可能除了触控笔之外还可能有用户的手指等其他操作体也接触到了所述触控显示单元,因此所述电子设备可以通过用户的一次操作获得至少一个触控点信息。That is, the electronic device may be the at least one touch point information obtained through the user's operation, which can be regarded as the user only performing one operation, but in this operation, there may be user Other operating bodies such as the finger of the user have also touched the touch display unit, so the electronic device can obtain at least one touch point information through one operation of the user.
步骤102:将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积。Step 102: Comparing at least one touch area corresponding to the at least one touch point information with a preset area, and determining whether there is a touch area smaller than the preset area.
所述电子设备在获得所述至少一个触控点信息之后,可以分别确定其中每个触控点信息所对应的触控面积。对于一个触控点信息来说,其对应的触控点面积,就是指与该触控点信息对应的操作体与所述触控显示单元的接触面积。例如,用户通过触控笔对所述触控显示单元进行操作,则触控笔与所述触控显示单元的接触面积就是触控笔所对应的触控点信息的触控面积。After obtaining the at least one touch point information, the electronic device may separately determine a touch area corresponding to each touch point information. For one piece of touch point information, the corresponding touch point area refers to the contact area between the operating body corresponding to the touch point information and the touch display unit. For example, if the user operates the touch display unit with a stylus, the contact area between the stylus and the touch display unit is the touch area of the touch point information corresponding to the stylus.
本发明实施例中,所述预设面积可以是预先设定好的,例如可以是由所述电子设备自行设定,或者也可以由用户来设定。所述电子设备在确定获得的每个触控点信息所分别对应的触控面积之后,可以将确定的所有触控面积分别与所述预设面积进行比较,并判断在这些触控面积中,是否有小于所述预设面积的触控面积。本发明实施例中,小于所述预设面积的触控面积,可能只有一个,也可能有多个,例如,如果用户同时用两根触控笔在所述触控显示单元上进行操作,则小于所述预设面积的触控面积就可能有两个。对于小于所述预设面积的触控面积的数量,本发明实施例不作限制。In the embodiment of the present invention, the preset area may be preset, for example, it may be set by the electronic device itself, or it may also be set by a user. After the electronic device determines the touch areas corresponding to each of the obtained touch point information, it can compare all the determined touch areas with the preset areas, and determine that among these touch areas, Whether there is a touch area smaller than the preset area. In the embodiment of the present invention, there may be only one touch area smaller than the preset area, or there may be multiple ones. For example, if the user simultaneously uses two stylus to operate on the touch display unit, then There may be two touch areas smaller than the preset area. The embodiment of the present invention does not limit the number of touch areas smaller than the preset area.
在比较完毕后,若有小于所述预设面积的触控面积,则对于不小于所述预设面积的触控面积所对应的触控点信息,所述电子设备可以拒绝响应,例如一种处理方式为:所述电子设备可以直接丢弃不小于所述预设面积的触控面积所对应的触控点信息,这样可以尽量节省所述电子设备的存储空间。After the comparison, if there is a touch area smaller than the preset area, the electronic device may refuse to respond to the touch point information corresponding to the touch area not smaller than the preset area, for example, a The processing method is: the electronic device can directly discard the touch point information corresponding to the touch area not smaller than the preset area, so that the storage space of the electronic device can be saved as much as possible.
例如,如图2所示,以所述电子设备是手机为例,图2中的A为手机的触控显示单元,即手机的触控显示屏。图2中以所述电子设备共获得了三个触控点信息为例,分别表示为图2中的1、2和3。所述电子设备在获得这三个触控点信息后,可以分别确定这三个触控点信息所对应的触控面积,例如1对应的触控面积为1平方毫米,2对应的触控面积为3平方毫米,3对应的触控面积为5平方毫米。例如预设面积为1.5平方毫米,在确定这三个触控点信息所分别对应的触控面积之后,所述电子设备可以将这三个触控面积分别与所述预设面积进行比较,并判断其中是否有小于所述预设面积的触控面积。可以看出,只有1所对应的触控面积小于所述预设面积,而2和3所对应的触控面积均大于所述预设面积,则所述电子设备可以拒绝响应2和3这两个触控点信息,例如所述电子设备可以直接丢弃2和3这两个触控点信息。For example, as shown in FIG. 2 , taking the electronic device as an example, A in FIG. 2 is a touch display unit of the mobile phone, that is, a touch display screen of the mobile phone. In FIG. 2 , it is taken as an example that the electronic device obtains information of three touch points in total, which are respectively represented as 1, 2 and 3 in FIG. 2 . After obtaining the information of the three touch points, the electronic device can respectively determine the touch areas corresponding to the three touch point information, for example, the touch area corresponding to 1 is 1 square millimeter, and the touch area corresponding to 2 is is 3 square millimeters, and 3 corresponds to a touch area of 5 square millimeters. For example, the preset area is 1.5 square millimeters. After determining the touch areas corresponding to the information of the three touch points, the electronic device can compare the three touch areas with the preset area, and It is judged whether there is a touch area smaller than the preset area. It can be seen that only the touch area corresponding to 1 is smaller than the preset area, and the touch areas corresponding to 2 and 3 are both larger than the preset area, then the electronic device can refuse to respond to both 2 and 3. 1 touch point information, for example, the electronic device can directly discard the 2 and 3 touch point information.
进一步的,本发明实施例中,在步骤102之后,即,在判断其中是否有小于所述预设面积的触控面积之后,还可以包括:Further, in the embodiment of the present invention, after step 102, that is, after judging whether there is a touch area smaller than the preset area, it may further include:
若无,则将所述至少一个触控面积两两分别进行比较,确定出其中值最小的触控面积;If not, comparing the at least one touch area two by two to determine the touch area with the smallest median value;
确定值最小的触控面积对应的触控点信息;Determine the touch point information corresponding to the touch area with the smallest value;
通过所述触控显示单元显示确定的触控点信息对应的轨迹。The track corresponding to the determined touch point information is displayed by the touch display unit.
一种可能的情况为,现在有些触控笔的触控端面积较大,例如触控毛笔,其在与所述触控显示单元接触时,若所述预设面积较小,则这些触控端的面积较大的触控笔的触控面积可能会大于等于所述预设面积,那么在这种情况下,可能所述至少一个触控面积中的每个都会不小于所述预设面积。如果是这种情况,则所述电子设备可以将所述至少一个触控面积两两进行比较,并从中确定出其中值最小的触控面积。因为虽然触控笔的触控端面积比较大,但与用户的手指比起来,一般来说触控笔的触控端的面积还是要小于用户的手指的面积,采用本发明实施例中的方法,可以比较准确地从中确定出触控笔对应的触控点信息,进行正确的响应,尽量避免电子设备的误响应。One possible situation is that some stylus now have a larger touch end area, such as a touch brush, and when it is in contact with the touch display unit, if the preset area is smaller, the touch The touch area of a stylus with a larger end area may be greater than or equal to the preset area, and in this case, each of the at least one touch area may not be smaller than the preset area. If this is the case, the electronic device may compare the at least one touch area two by two, and determine the touch area with the smallest median value therefrom. Because although the area of the touch end of the stylus is relatively large, compared with the user's finger, generally speaking, the area of the touch end of the stylus is still smaller than the area of the user's finger. Using the method in the embodiment of the present invention, The touch point information corresponding to the stylus can be relatively accurately determined therefrom, and a correct response can be made to avoid false responses of the electronic device as much as possible.
例如所述电子设备共获得了三个触控面积,分别为触控面积4、触控面积5和触控面积6,这三个触控面积都不小于所述预设面积,则所述电子设备可以将触控面积4与触控面积5进行比较、将触控面积5和触控面积6进行比较、以及将触控面积4和触控面积6进行比较,并根据所有的比较结果确定出其中值最小的触控面积,例如触控面积4为2平方毫米,触控面积5为4平方毫米,触控面积6为3平方毫米,则所述电子设备可以确定出触控面积4为值最小的触控面积。所述电子设备可以确定触控面积4所对应的触控点信息,并可以响应触控面积4所对应的触控点信息,例如一种响应方式为:通过所述触控显示单元显示触控面积4所对应的触控点信息的轨迹。For example, the electronic device has a total of three touch areas, which are touch area 4, touch area 5, and touch area 6, and these three touch areas are not smaller than the preset area, then the electronic device The device may compare the touch area 4 with the touch area 5, compare the touch area 5 with the touch area 6, and compare the touch area 4 with the touch area 6, and determine the The touch area with the smallest value, for example, the touch area 4 is 2 square millimeters, the touch area 5 is 4 square millimeters, and the touch area 6 is 3 square millimeters, then the electronic device can determine that the touch area 4 is the value Smallest touch area. The electronic device can determine the touch point information corresponding to the touch area 4, and can respond to the touch point information corresponding to the touch area 4. For example, a response method is: display the touch point information through the touch display unit. The track of the touch point information corresponding to area 4.
步骤103:若有,确定小于所述预设面积的触控面积对应的触控点信息。Step 103: If yes, determine the touch point information corresponding to the touch area smaller than the preset area.
若所述电子设备确定有小于所述预设面积的触控面积,则所述电子设备可以确定小于所述预设面积的触控面积所对应的触控点信息。因为小于所述预设面积的触控面积可能是一个也可能是多个,则所述电子设备确定出的小于所述预设面积的触控面积所对应的触控点信息也可能是一个或多个。If the electronic device determines that there is a touch area smaller than the preset area, the electronic device may determine touch point information corresponding to the touch area smaller than the preset area. Because there may be one or more touch areas smaller than the preset area, the touch point information corresponding to the touch area smaller than the preset area determined by the electronic device may also be one or Multiple.
步骤104:通过所述触控显示单元显示确定的触控点信息对应的轨迹。Step 104: Displaying the track corresponding to the determined touch point information through the touch display unit.
在确定出这些触控点信息后,所述电子设备可以响应这些触控点信息,例如一种响应方式为:通过所述触控显示单元显示这些触控点信息所对应的轨迹。After the touch point information is determined, the electronic device may respond to the touch point information, for example, a response manner is: displaying tracks corresponding to the touch point information through the touch display unit.
可选的,本发明实施例中,通过所述触控显示单元显示确定的触控点信息对应的轨迹,包括:Optionally, in the embodiment of the present invention, displaying the track corresponding to the determined touch point information through the touch display unit includes:
获取确定的触控点信息对应的几何中心点;Obtain the geometric center point corresponding to the determined touch point information;
根据确定的几何中心点,通过所述触控显示单元显示确定的触控点信息对应的轨迹。According to the determined geometric center point, the track corresponding to the determined touch point information is displayed by the touch display unit.
对于一个触控点信息来说,其与所述触控显示单元的接触形状可能是不规律的,可能会涉及到比较多的边缘信息,如果将这些边缘信息都显示出来,一方面是增加了显示处理难度,另一方面也可能会影响显示的美观性,例如用户在输入的过程中可能出现手突然抖动等情况,如果将这些边缘信息都显示出来,反而会影响整个输入内容的美观性。因此,本发明实施例中,可以确定触控点信息对应的几何中心点,在通过所述触控显示单元进行显示时,可以只显示这些几何中心点,那么,例如对于触控笔的一次输入过程来说,将这次输入过程所对应的所有触控点信息的几何中心点连起来,也就构成了这次输入过程所对应的整个轨迹,不仅不会影响到用户对输入信息的理解,也增加了画面的美感,同时降低了显示时的处理难度。For a touch point information, its contact shape with the touch display unit may be irregular, and may involve more edge information. If all these edge information are displayed, on the one hand, it increases The difficulty of display processing, on the other hand, may also affect the aesthetics of the display. For example, the user may suddenly shake their hands during the input process. If all these edge information are displayed, it will affect the aesthetics of the entire input content. Therefore, in the embodiment of the present invention, the geometric center points corresponding to the touch point information can be determined, and only these geometric center points can be displayed when the touch display unit is used for displaying. In terms of the process, connecting the geometric center points of all touch point information corresponding to this input process constitutes the entire trajectory corresponding to this input process, which will not only not affect the user's understanding of the input information, It also increases the aesthetic feeling of the picture, and at the same time reduces the difficulty of processing when displaying.
本发明实施例中,无论通过所述触控显示单元显示的触控点信息所对应的触控面积是小于所述预设面积还是大于所述预设面积,都可以通过该方法来进行显示。In the embodiment of the present invention, no matter whether the touch area corresponding to the touch point information displayed by the touch display unit is smaller than the preset area or larger than the preset area, it can be displayed by this method.
可选的,本发明实施例中,获取确定的触控点信息对应的几何中心点,包括:Optionally, in the embodiment of the present invention, obtaining the geometric center point corresponding to the determined touch point information includes:
获取确定的触控点信息对应的形状、以及所述触控点信息在所述触控显示单元上的坐标;Obtaining the shape corresponding to the determined touch point information and the coordinates of the touch point information on the touch display unit;
根据所述形状以及所述坐标,确定所述触控点信息对应的几何中心点。According to the shape and the coordinates, determine the geometric center point corresponding to the touch point information.
本发明实施例中,例如所述电子设备确定要显示一个触控点信息对应的轨迹,那么所述电子设备可以确定该触控点信息所对应的形状,以及确定该触控点信息在所述触控显示单元上的坐标。在确定该触控点信息所对应的形状后,所述电子设备就可以通过确定的形状来确定该触控点信息所对应的几何中心点。在确定该几何中心点之后,所述电子设备就可以根据该几何中心点的坐标,通过所述触控显示单元显示该几何中心点,也就是显示该触控点信息的轨迹。In the embodiment of the present invention, for example, if the electronic device determines to display a track corresponding to the touch point information, the electronic device may determine the shape corresponding to the touch point information, and determine the touch point information in the The coordinates on the touch display unit. After determining the shape corresponding to the touch point information, the electronic device can determine the geometric center point corresponding to the touch point information through the determined shape. After the geometric center point is determined, the electronic device can display the geometric center point through the touch display unit according to the coordinates of the geometric center point, that is, display the track of the touch point information.
进一步的,本发明实施例中,在步骤101之前、或在步骤101与步骤102之间、或在步骤102与步骤103之间、或在步骤103之后,还可以包括:Further, in the embodiment of the present invention, before step 101, or between step 101 and step 102, or between step 102 and step 103, or after step 103, may further include:
获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上所感应的电容信息;Acquiring capacitance information sensed by the operating body corresponding to the at least one touch point information on the touch display unit;
根据所述电容信息,确定所述操作体的形状;determining the shape of the operating body according to the capacitance information;
根据所述操作体的形状,确定所述操作体的正方向,并根据所述操作体的正方向确定所述轨迹的正方向。The positive direction of the operating body is determined according to the shape of the operating body, and the positive direction of the trajectory is determined according to the positive direction of the operating body.
本发明实施例中,用户在针对所述触控显示单元进行输入操作后,所述触控显示单元可以显示用户所进行的操作所对应的轨迹,也就是显示用户进行的操作对应的触控点信息所对应的轨迹,那么在显示轨迹时就会存在一个显示正方向的问题。本发明实施例中在确定显示正方向时,可以是根据操作体的正方向来进行确定。In the embodiment of the present invention, after the user performs an input operation on the touch display unit, the touch display unit can display the track corresponding to the operation performed by the user, that is, display the touch point corresponding to the operation performed by the user The trajectory corresponding to the information, then there will be a problem of displaying the positive direction when displaying the trajectory. In the embodiment of the present invention, when determining the display positive direction, it may be determined according to the positive direction of the operating body.
例如用户是用手在进行输入,那么一般来说,设置在所述触控显示单元上的电容可以感应用户的手接触到所述触控显示单元的部分,即这部分可以对应有电容信息,同时,对于用户的手未接触到所述触控显示单元的部分,所述触控显示单元上的电容也可以相应的进行感应,因为触控显示单元上的电容能感应一定距离内的操作体,即使这些操作体未接触到所述触控显示单元,所述触控显示单元也能够感应到。因此,所述电子设备可以获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上的电容信息,根据这些电容信息就可以确定出所述操作体的大致形状,根据确定出的所述操作体的形状就可以确定所述操作体的正方向,从而可以根据所述操作体的正方向确定出所述轨迹的正方向,例如,可以将所述操作体的正方向确定为所述轨迹的正方向,方便进行操作的用户观看,或者,可以将与所述操作体的方向相反的方向确定为所述轨迹的正方向,方便进行操作的用户向别的用户进行展示,等等。For example, if the user is using their hands to input, generally speaking, the capacitance provided on the touch display unit can sense the part where the user's hand touches the touch display unit, that is, this part can correspond to capacitance information, At the same time, for the part where the user's hand does not touch the touch display unit, the capacitance on the touch display unit can also be sensed accordingly, because the capacitance on the touch display unit can sense the operating body within a certain distance. , even if these operating bodies do not touch the touch display unit, the touch display unit can sense it. Therefore, the electronic device can obtain the capacitance information of the operating body corresponding to the at least one touch point information on the touch display unit, and can determine the approximate shape of the operating body according to the capacitance information. The determined shape of the operating body can determine the positive direction of the operating body, so that the positive direction of the trajectory can be determined according to the positive direction of the operating body, for example, the positive direction of the operating body can be It is determined as the positive direction of the trajectory, which is convenient for the operating user to view, or the direction opposite to the direction of the operating body can be determined as the positive direction of the trajectory, which is convenient for the operating user to display to other users ,and many more.
进一步的,本发明实施例中,在根据所述操作体的形状,确定所述操作体的正方向之后,还包括:Further, in the embodiment of the present invention, after determining the forward direction of the operating body according to the shape of the operating body, the method further includes:
确定所述操作体在所述正方向下的运动方向;determining the movement direction of the operating body in the positive direction;
将所述触控显示单元上显示在所述运动方向上的显示内容从第一位置移动到第二位置;其中,所述第一位置位于所述运动方向上,所述第二位置没有位于所述运动方向上。moving the display content displayed on the touch display unit in the moving direction from a first position to a second position; wherein, the first position is located in the moving direction, and the second position is not located in the moving direction. in the direction of motion.
本发明实施例中,例如所述操作体为用户的手,那么,确定所述操作体的正方向,除了包括确定该手的手指所指向的方向之外,还可以包括根据该手的形状确定该手是左手还是右手。In this embodiment of the present invention, for example, if the operating body is the user's hand, determining the forward direction of the operating body may not only include determining the direction in which the fingers of the hand are pointing, but also include determining Whether the hand is left or right.
则,在确定该手的正方向后,如果该手是左手,那么一般来说左手的运动方向为从右到左,如果该手是右手,那么一般来说右手的运动方向是从左到右。Then, after determining the positive direction of the hand, if the hand is the left hand, generally speaking, the movement direction of the left hand is from right to left; if the hand is the right hand, then generally speaking, the movement direction of the right hand is from left to right .
例如所述操作体为用户的手,且确定出该手为右手,那么用户在用右手进行输入时,一般习惯性会从左到右进行输入,这样,在所述触控显示单元上,位于用户右侧的显示内容很可能会被用户的右手挡住,导致用户无法观看,或者,在位于用户右侧的显示内容中很可能还有一些应用所对应的应用图标,如果用户的右手在移动的过程中触碰到了这些应用图标,还会导致电子设备产生误响应,增加电子设备的负担,也给用户造成不便。因此,所述电子设备可以将所述触控显示单元上显示在该手的运动方向上的显示内容进行移动,只要将其避开该手的运动方向,尽量使用户的身体不会遮挡住这部分显示内容,以及尽量避免用户的误触碰即可,这样可以提高电子设备的显示效果及智能性,也尽量降低电子设备的误响应率。For example, if the operating body is the user's hand, and it is determined that the hand is the right hand, then the user will habitually input from left to right when using the right hand. In this way, on the touch display unit, the The displayed content on the right side of the user is likely to be blocked by the user's right hand, causing the user to be unable to view it, or there may be application icons corresponding to some applications in the displayed content located on the right side of the user, if the user's right hand is moving Touching these application icons during the process will also cause a false response of the electronic device, increase the burden on the electronic device, and cause inconvenience to the user. Therefore, the electronic device can move the display content displayed on the touch display unit in the moving direction of the hand, as long as it avoids the moving direction of the hand, so that the user's body will not block the display content as much as possible. Part of the display content is enough to avoid user's false touch as much as possible, which can improve the display effect and intelligence of the electronic device, and also reduce the false response rate of the electronic device as much as possible.
例如,请参见图3A,以所述电子设备是手机、所述操作体是用户的手为例。所述手机确定出该手的手指所指向的方向为从所述手机的底边指向所述手机的顶边的方向,该手为用户的右手。图2中的a和b为所述触控显示单元中原本显示在该右手的运动方向上的显示内容。For example, referring to FIG. 3A , it is assumed that the electronic device is a mobile phone and the operating body is a user's hand. The mobile phone determines that the direction pointed by the fingers of the hand is a direction from the bottom edge of the mobile phone to the top edge of the mobile phone, and the hand is the user's right hand. a and b in FIG. 2 are the display content originally displayed in the movement direction of the right hand in the touch display unit.
请继续参见图3B,为用户的右手从图3A的位置沿所述运动方向进行移动后的结果,可以看到所述电子设备已经将a和b移动了位置,将其搬离了该右手的运动方向,用户的身体不会遮挡住a和b,用户可以正常观看a和b,也可以按照需要对a和b进行操作。图3B中的线条c即为用户通过触控笔在所述触控显示单元上进行输入所对应的轨迹。Please continue to refer to Figure 3B, which is the result of the user's right hand moving from the position in Figure 3A along the movement direction, it can be seen that the electronic device has moved a and b away from the position of the right hand The direction of movement, the user's body will not block a and b, the user can watch a and b normally, and can also operate a and b as required. The line c in FIG. 3B is the track corresponding to the user's input on the touch display unit through the stylus.
请参见图4,基于同一发明构思,本发明实施例提供一种电子设备,所述电子设备可以具有触控显示单元,另外,所述电子设备还可以包括第一获取模块401、比较模块402、第一确定模块403和操作模块404。Please refer to FIG. 4 , based on the same inventive concept, an embodiment of the present invention provides an electronic device, the electronic device may have a touch display unit, and the electronic device may further include a first acquisition module 401, a comparison module 402, A first determination module 403 and an operation module 404 .
第一获取模块401,用于通过所述电子设备的触控显示单元获取至少一个触控点信息;The first acquiring module 401 is configured to acquire at least one touch point information through the touch display unit of the electronic device;
比较模块402,用于将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;A comparison module 402, configured to compare at least one touch area corresponding to the at least one touch point information with a preset area, and determine whether there is a touch area smaller than the preset area;
第一确定模块403,用于若有,确定小于所述预设面积的触控面积对应的触控点信息;The first determining module 403 is configured to, if any, determine the touch point information corresponding to the touch area smaller than the preset area;
操作模块404,用于通过所述触控显示单元显示确定的触控点信息对应的轨迹。The operation module 404 is configured to display the track corresponding to the determined touch point information through the touch display unit.
可选的,本发明实施例中,Optionally, in the embodiment of the present invention,
比较模块402还用于:在判断其中是否有小于所述预设面积的触控面积之后,若无,则将所述至少一个触控面积两两分别进行比较,确定出其中值最小的触控面积;The comparison module 402 is further configured to: after judging whether there is a touch area smaller than the preset area, if not, compare the at least one touch area two by two to determine the touch area with the smallest value. area;
第一确定模块403还用于:确定值最小的触控面积对应的触控点信息;The first determination module 403 is further configured to: determine the touch point information corresponding to the touch area with the smallest value;
操作模块404还用于:通过所述触控显示单元显示确定的触控点信息对应的轨迹。The operation module 404 is further configured to: display the track corresponding to the determined touch point information through the touch display unit.
可选的,本发明实施例中,操作模块404具体用于:Optionally, in the embodiment of the present invention, the operation module 404 is specifically used to:
获取确定的触控点信息对应的几何中心点;Obtain the geometric center point corresponding to the determined touch point information;
根据确定的几何中心点,通过所述触控显示单元显示确定的触控点信息对应的轨迹。According to the determined geometric center point, the track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,本发明实施例中,操作模块404具体用于获取确定的触控点信息对应的几何中心点,具体为:Optionally, in the embodiment of the present invention, the operation module 404 is specifically configured to acquire the geometric center point corresponding to the determined touch point information, specifically:
获取确定的触控点信息对应的形状、以及所述触控点信息在所述触控显示单元上的坐标;Obtaining the shape corresponding to the determined touch point information and the coordinates of the touch point information on the touch display unit;
根据所述形状以及所述坐标,确定所述触控点信息对应的几何中心点。According to the shape and the coordinates, determine the geometric center point corresponding to the touch point information.
可选的,本发明实施例中,所述电子设备还可以包括第二获取模块、第二确定模块和第三确定模块;其中,Optionally, in this embodiment of the present invention, the electronic device may further include a second acquiring module, a second determining module, and a third determining module; wherein,
所述第二获取模块用于:获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上所感应的电容信息;The second acquiring module is configured to: acquire capacitance information induced by an operating body corresponding to the at least one touch point information on the touch display unit;
所述第二确定模块用于:根据所述电容信息,确定所述操作体的形状;The second determining module is configured to: determine the shape of the operating body according to the capacitance information;
所述第三确定模块用于:根据所述操作体的形状,确定所述操作体的正方向,并根据所述操作体的正方向确定所述轨迹的正方向。The third determination module is configured to: determine the positive direction of the operating body according to the shape of the operating body, and determine the positive direction of the trajectory according to the positive direction of the operating body.
可选的,本发明实施例中,所述电子设备还可以包括第四确定模块和移动模块;Optionally, in the embodiment of the present invention, the electronic device may further include a fourth determining module and a moving module;
所述第四确定模块用于:在所述第三确定模块根据所述操作体的形状,确定所述操作体的正方向之后,确定所述操作体在所述正方向下的运动方向;The fourth determining module is configured to: after the third determining module determines the positive direction of the operating body according to the shape of the operating body, determine the moving direction of the operating body in the positive direction;
所述移动模块用于:将所述触控显示单元上显示在所述运动方向上的显示内容从第一位置移动到第二位置;其中,所述第一位置位于所述运动方向上,所述第二位置没有位于所述运动方向上。The moving module is used to: move the display content displayed on the touch display unit in the moving direction from a first position to a second position; wherein, the first position is located in the moving direction, and the The second position is not located in the direction of motion.
本发明实施例提供一种触控轨迹显示方法,所述方法可以应用于电子设备,所述方法包括:通过所述电子设备的触控显示单元获取至少一个触控点信息;将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;若有,确定小于所述预设面积的触控面积对应的触控点信息;通过所述触控显示单元显示确定的触控点信息对应的轨迹。An embodiment of the present invention provides a touch track display method, the method can be applied to an electronic device, and the method includes: acquiring at least one touch point information through a touch display unit of the electronic device; Comparing at least one touch area corresponding to the touch point information with the preset area respectively, and judging whether there is a touch area smaller than the preset area; if so, determining the touch area corresponding to the touch area smaller than the preset area Touch point information: displaying the track corresponding to the determined touch point information through the touch display unit.
如果用户的手指和触控笔一起接触电子设备的触控显示单元,一般来说触控笔所对应的触控面积都会小于用户的手指的触控面积,因此,本发明实施例中,在获取触控点信息之后,可以将触控点信息所对应的触控面积与预设面积进行比较,如果有小于预设面积的触控面积,则通过触控显示单元显示该触控面积对应的触控点信息的轨迹,相当于只选择响应较小的触控面积对应的触控点,也就是说电子设备可以只选择响应触控笔所进行的操作,而不响应用户的手指所进行的操作,这样,也就相当于电子设备可以区分触控笔和用户的手,进而尽量电子设备出现误响应或停止响应的情况,降低了电子设备的误响应率,提高用户体验。If the user's finger and the stylus touch the touch display unit of the electronic device together, generally speaking, the touch area corresponding to the stylus will be smaller than the touch area of the user's finger. Therefore, in the embodiment of the present invention, when acquiring After the touch point information, the touch area corresponding to the touch point information can be compared with the preset area. If there is a touch area smaller than the preset area, the touch display unit displays the touch area corresponding to the touch area. The track of the control point information is equivalent to selecting only the touch point corresponding to the smaller touch area, that is to say, the electronic device can only choose to respond to the operation performed by the stylus, but not to respond to the operation performed by the user's finger , In this way, it is equivalent to that the electronic device can distinguish between the stylus and the user's hand, and then try to minimize the false response or stop responding of the electronic device, reduce the false response rate of the electronic device, and improve user experience.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not 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 modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, 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 application 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。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 this understanding, the technical solution of the present application is essentially or part of the contribution 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.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
具体来讲,本申请实施例中的一种触控轨迹显示方法对应的计算机程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与一种触控轨迹显示方法的确定方法对应的计算机程序指令被一电子设备读取或被执行时,包括如下步骤:Specifically, the computer program instructions corresponding to a method for displaying touch traces in the embodiments of the present application may be stored on storage media such as optical disks, hard disks, and U disks. When the computer program instructions corresponding to the determination method are read or executed by an electronic device, the following steps are included:
通过所述电子设备的触控显示单元获取至少一个触控点信息;Obtaining at least one touch point information through the touch display unit of the electronic device;
将所述至少一个触控点信息对应的至少一个触控面积分别与预设面积进行比较,判断其中是否有小于所述预设面积的触控面积;Comparing at least one touch area corresponding to the at least one touch point information with a preset area, and determining whether there is a touch area smaller than the preset area;
若有,确定小于所述预设面积的触控面积对应的触控点信息;If yes, determine the touch point information corresponding to the touch area smaller than the preset area;
通过所述触控显示单元显示确定的触控点信息对应的轨迹。The track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,所述存储介质中存储的与步骤:判断其中是否有小于所述预设面积的触控面积,对应的计算机指令在具体被执行之后,还包括:Optionally, the step of storing in the storage medium: judging whether there is a touch area smaller than the preset area, and after the corresponding computer instructions are specifically executed, further includes:
若无,则将所述至少一个触控面积两两分别进行比较,确定出其中值最小的触控面积;If not, comparing the at least one touch area two by two to determine the touch area with the smallest median value;
确定值最小的触控面积对应的触控点信息;Determine the touch point information corresponding to the touch area with the smallest value;
通过所述触控显示单元显示确定的触控点信息对应的轨迹。The track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,所述存储介质中存储的与步骤:通过所述触控显示单元显示确定的触控点信息对应的轨迹,对应的计算机指令在具体被执行的过程中,具体包括:Optionally, the process of executing the corresponding computer instructions stored in the storage medium and corresponding to the step: displaying the determined touch point information through the touch display unit specifically includes:
获取确定的触控点信息对应的几何中心点;Obtain the geometric center point corresponding to the determined touch point information;
根据确定的几何中心点,通过所述触控显示单元显示确定的触控点信息对应的轨迹。According to the determined geometric center point, the track corresponding to the determined touch point information is displayed by the touch display unit.
可选的,所述存储介质中存储的与步骤:获取确定的触控点信息对应的几何中心点,对应的计算机指令在具体被执行的过程中,具体包括:Optionally, the geometric center point stored in the storage medium corresponding to the step: obtaining the determined touch point information, and the corresponding computer instructions specifically include in the process of being executed:
获取确定的触控点信息对应的形状、以及所述触控点信息在所述触控显示单元上的坐标;Obtaining the shape corresponding to the determined touch point information and the coordinates of the touch point information on the touch display unit;
根据所述形状以及所述坐标,确定所述触控点信息对应的几何中心点。According to the shape and the coordinates, determine the geometric center point corresponding to the touch point information.
可选的,当存储介质中的与一种触控轨迹显示方法的确定方法对应的计算机程序指令被一电子设备读取或被执行时,还包括如下步骤:Optionally, when the computer program instructions in the storage medium corresponding to a method for determining a touch track display method are read or executed by an electronic device, the following steps are further included:
获取所述至少一个触控点信息所对应的操作体在所述触控显示单元上所感应的电容信息;Acquiring capacitance information sensed by the operating body corresponding to the at least one touch point information on the touch display unit;
根据所述电容信息,确定所述操作体的形状;determining the shape of the operating body according to the capacitance information;
根据所述操作体的形状,确定所述操作体的正方向,并根据所述操作体的正方向确定所述轨迹的正方向。The positive direction of the operating body is determined according to the shape of the operating body, and the positive direction of the trajectory is determined according to the positive direction of the operating body.
可选的,所述存储介质中存储的与步骤:根据所述操作体的形状,确定所述操作体的正方向,对应的计算机指令在具体被执行之后,还包括:Optionally, the step of storing in the storage medium: determining the forward direction of the operating body according to the shape of the operating body, and after the corresponding computer instructions are specifically executed, further includes:
确定所述操作体在所述正方向下的运动方向;determining the movement direction of the operating body in the positive direction;
将所述触控显示单元上显示在所述运动方向上的显示内容从第一位置移动到第二位置;其中,所述第一位置位于所述运动方向上,所述第二位置没有位于所述运动方向上。moving the display content displayed on the touch display unit in the moving direction from a first position to a second position; wherein, the first position is located in the moving direction, and the second position is not located in the moving direction. in the direction of motion.
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。As mentioned above, the above embodiments are only used to introduce the technical solutions of the present application in detail, but the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention, and should not be construed as limiting the present invention. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410822834.0A CN105786373B (en) | 2014-12-24 | 2014-12-24 | A touch track display method and electronic device |
| CN201911044716.0A CN110658976B (en) | 2014-12-24 | 2014-12-24 | Touch track display method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410822834.0A CN105786373B (en) | 2014-12-24 | 2014-12-24 | A touch track display method and electronic device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911044716.0A Division CN110658976B (en) | 2014-12-24 | 2014-12-24 | Touch track display method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105786373A CN105786373A (en) | 2016-07-20 |
| CN105786373B true CN105786373B (en) | 2019-10-29 |
Family
ID=56389216
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911044716.0A Active CN110658976B (en) | 2014-12-24 | 2014-12-24 | Touch track display method and electronic equipment |
| CN201410822834.0A Active CN105786373B (en) | 2014-12-24 | 2014-12-24 | A touch track display method and electronic device |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911044716.0A Active CN110658976B (en) | 2014-12-24 | 2014-12-24 | Touch track display method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN110658976B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109753179B (en) * | 2018-12-17 | 2022-10-25 | 掌阅科技股份有限公司 | User operation instruction processing method and handwriting reading equipment |
| CN111506209A (en) * | 2019-01-31 | 2020-08-07 | 北京小米移动软件有限公司 | Touch signal determination method and touch signal determination device |
| CN110286799B (en) * | 2019-06-27 | 2023-10-03 | 深圳市康冠商用科技有限公司 | Infrared information acquisition method and related device |
| CN113360072B (en) * | 2021-05-28 | 2024-09-20 | 联想(北京)有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
| CN119620909B (en) * | 2023-09-12 | 2026-04-28 | 北京小米移动软件有限公司 | A screen control method, apparatus, device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070152976A1 (en) * | 2005-12-30 | 2007-07-05 | Microsoft Corporation | Unintentional touch rejection |
| CN101901068A (en) * | 2009-05-26 | 2010-12-01 | 宇辰光电股份有限公司 | Method for preventing touch panel from being touched by mistake |
| US20110254806A1 (en) * | 2010-04-19 | 2011-10-20 | Samsung Electronics Co., Ltd. | Method and apparatus for interface |
| CN103052937A (en) * | 2010-08-08 | 2013-04-17 | 高通股份有限公司 | Method and system for adjusting display content |
| CN103916530A (en) * | 2013-01-04 | 2014-07-09 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090044124A1 (en) * | 2007-08-06 | 2009-02-12 | Nokia Corporation | Method, apparatus and computer program product for facilitating data entry using an offset connection element |
| EP2579143B1 (en) * | 2008-12-01 | 2019-09-18 | BlackBerry Limited | Portable electronic device and method of controlling same |
| TW201203017A (en) * | 2010-07-08 | 2012-01-16 | Acer Inc | Input controlling method for a software keyboard and a device implementing the method |
| CN103713754B (en) * | 2012-09-29 | 2016-12-07 | 联想(北京)有限公司 | A kind of method of information processing and electronic equipment |
| CN104049893A (en) * | 2014-06-03 | 2014-09-17 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2014
- 2014-12-24 CN CN201911044716.0A patent/CN110658976B/en active Active
- 2014-12-24 CN CN201410822834.0A patent/CN105786373B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070152976A1 (en) * | 2005-12-30 | 2007-07-05 | Microsoft Corporation | Unintentional touch rejection |
| CN101901068A (en) * | 2009-05-26 | 2010-12-01 | 宇辰光电股份有限公司 | Method for preventing touch panel from being touched by mistake |
| US20110254806A1 (en) * | 2010-04-19 | 2011-10-20 | Samsung Electronics Co., Ltd. | Method and apparatus for interface |
| CN103052937A (en) * | 2010-08-08 | 2013-04-17 | 高通股份有限公司 | Method and system for adjusting display content |
| CN103916530A (en) * | 2013-01-04 | 2014-07-09 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110658976B (en) | 2021-09-14 |
| CN110658976A (en) | 2020-01-07 |
| CN105786373A (en) | 2016-07-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104777987B (en) | The control method and device of smartwatch | |
| US8842084B2 (en) | Gesture-based object manipulation methods and devices | |
| US20150205400A1 (en) | Grip Detection | |
| US10331219B2 (en) | Identification and use of gestures in proximity to a sensor | |
| CN104731497B (en) | Manage the device and method of multiple touch sources of false-touch prevention | |
| US9727147B2 (en) | Unlocking method and electronic device | |
| CN107577372A (en) | Edge touch method, device and mobile terminal | |
| CN104823140A (en) | Touch-sensitive bezel techniques | |
| KR20160057407A (en) | Simultaneous hover and touch interface | |
| US9262012B2 (en) | Hover angle | |
| CN107506109A (en) | A kind of method and mobile terminal for starting application program | |
| CN105786373B (en) | A touch track display method and electronic device | |
| US20130044061A1 (en) | Method and apparatus for providing a no-tap zone for touch screen displays | |
| US20160342275A1 (en) | Method and device for processing touch signal | |
| CN103197790A (en) | Portable electronic device and touch sensing method | |
| CN106445299A (en) | Control method and mobile terminal | |
| CN114578956A (en) | Equipment control method and device, virtual wearable equipment and storage medium | |
| US10222866B2 (en) | Information processing method and electronic device | |
| US9235338B1 (en) | Pan and zoom gesture detection in a multiple touch display | |
| US20150185886A1 (en) | Disambiguation of user intent on a touchscreen keyboard | |
| TW201504929A (en) | Electronic apparatus and gesture control method thereof | |
| CN104484078B (en) | A kind of man-machine interactive system and method based on radio frequency identification | |
| EP3433713B1 (en) | Selecting first digital input behavior based on presence of a second, concurrent, input | |
| EP3101522A1 (en) | Information processing device, information processing method, and program | |
| CN106468963A (en) | Contactor control device and touch-control control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |