CN114185444B - Touch screen accidental touch prevention method, device and storage medium - Google Patents
Touch screen accidental touch prevention method, device and storage medium Download PDFInfo
- Publication number
- CN114185444B CN114185444B CN202010858637.XA CN202010858637A CN114185444B CN 114185444 B CN114185444 B CN 114185444B CN 202010858637 A CN202010858637 A CN 202010858637A CN 114185444 B CN114185444 B CN 114185444B
- Authority
- CN
- China
- Prior art keywords
- touch
- area
- target
- user
- suppression
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开涉及触控屏防误触方法、装置及存储介质,解决了抑制触控屏的边缘区域内的触控操作灵活性低的问题。所述方法包括:确定终端设备的触控屏上当前运行的应用程序中的待显示页面;确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,所述目标区域包括预测的所述用户的操作的区域和/或预测的所述用户的误触区域;根据所述目标区域调整所述触控抑制区域的抑制范围。
The present disclosure relates to a method, device and storage medium for preventing accidental touches on a touch screen, which solves the problem of low flexibility in suppressing touch operations in the edge area of a touch screen. The method includes: determining a page to be displayed in an application currently running on a touch screen of a terminal device; determining a target control in the page to be displayed, wherein the target control refers to a control whose touch position is located in a touch suppression area of the touch screen; predicting a target area based on the position information of the target control in the touch suppression area and the user's operation information, wherein the target area includes a predicted area of the user's operation and/or a predicted area of the user's accidental touch; and adjusting the suppression range of the touch suppression area based on the target area.
Description
技术领域Technical Field
本公开涉及触控屏技术领域,尤其涉及一种触控屏防误触方法、装置及存储介质。The present disclosure relates to the field of touch screen technology, and in particular to a touch screen accidental touch prevention method, device and storage medium.
背景技术Background Art
随着触控屏的发展,全面屏、曲面屏以及折叠屏成为主流屏幕,与此同时,触控屏边缘很容易发生误触事件,造成很多误操作。With the development of touch screens, full screens, curved screens and folding screens have become mainstream screens. At the same time, accidental touches are likely to occur on the edges of touch screens, causing many erroneous operations.
相关技术中,采用限定固定抑制区域的方法,即将触控屏的边缘区域作为抑制区域,并对在该抑制区域发生的触控事件进行滤除,虽然该方法能达到防误触的目的,但是这种抑制方法存在灵活性低的问题。In the related art, a method of limiting a fixed inhibition area is adopted, that is, the edge area of the touch screen is used as the inhibition area, and the touch events occurring in the inhibition area are filtered out. Although this method can achieve the purpose of preventing accidental touches, this inhibition method has the problem of low flexibility.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种触控屏防误触方法、装置及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a touch screen accidental touch prevention method, device and storage medium.
根据本公开实施例的第一方面,提供一种触控屏防误触方法,包括:According to a first aspect of an embodiment of the present disclosure, a touch screen accidental touch prevention method is provided, comprising:
确定终端设备的触控屏上当前运行的应用程序中的待显示页面;Determine a page to be displayed in an application currently running on a touch screen of a terminal device;
确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;Determine a target control in the page to be displayed, where the target control refers to a control where a touch position is within a touch suppression area of the touch screen;
根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,所述目标区域包括预测的所述用户的操作的区域和/或预测的所述用户的误触区域;Predicting a target area according to the position information of the target control in the touch suppression area and the operation information of the user, wherein the target area includes a predicted operation area of the user and/or a predicted mis-touch area of the user;
根据所述目标区域调整所述触控抑制区域的抑制范围。The inhibition range of the touch inhibition area is adjusted according to the target area.
可选的,所述确定终端设备的触控屏上当前运行的应用程序中的待显示页面,包括:Optionally, determining a page to be displayed in an application currently running on the touch screen of the terminal device includes:
确定所述应用程序的类型是否为目标类型,所述目标类型为社交类型或游戏类型;Determine whether the type of the application is a target type, and the target type is a social type or a game type;
在所述应用程序的类型为所述目标类型的情况下,确定终端设备的触控屏上当前运行的应用程序中的待显示页面。In a case where the type of the application is the target type, a page to be displayed in the application currently running on the touch screen of the terminal device is determined.
可选的,所述确定所述应用程序的类型是否为目标类型,包括:Optionally, determining whether the type of the application is a target type includes:
获取所述触控屏当前的显示图像;Acquire the current display image of the touch screen;
将所述显示图像输入至分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息;Inputting the display image into a classification model to obtain result information output by the classification model that characterizes the category of the application;
根据所述结果信息确定所述应用程序的类型是否为所述目标类型。Determine whether the type of the application is the target type according to the result information.
可选的,所述获取所述触控屏当前的显示图像,包括:Optionally, acquiring the current display image of the touch screen includes:
获取所述触控屏连续N帧显示图像,其中,N为大于1的整数,所述连续N帧显示图像的第N帧图像为所述触控屏当前的显示图像;Acquire N consecutive frames of displayed images of the touch screen, wherein N is an integer greater than 1, and the Nth frame of the consecutive N frames of displayed images is the current displayed image of the touch screen;
将所述显示图像输入至分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息,包括:Inputting the display image into a classification model to obtain result information output by the classification model that characterizes the category of the application program includes:
在所述N帧图像中每相邻两帧图像均存在相同图像内容的情况下,将所述第N帧显示图像输入至所述分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息。In the case that every two adjacent frames of the N frames of images have the same image content, the Nth frame of display image is input into the classification model to obtain result information output by the classification model that represents the category of the application.
可选的,所述操作信息包括历史触控操作位置信息,相应地,所述根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,包括:Optionally, the operation information includes historical touch operation position information. Accordingly, predicting the target area according to the position information of the target control in the touch inhibition area and the user's operation information includes:
统计所述用户针对所述触控屏的历史触控操作位置信息;Collecting statistics on the historical touch operation position information of the user on the touch screen;
将所述历史触控操作位置信息和所述目标控件在所述触控抑制区域内的位置信息输入至第一预测模型,得到所述第一预测模型输出的目标区域;Inputting the historical touch operation position information and the position information of the target control in the touch inhibition area into a first prediction model to obtain a target area output by the first prediction model;
所述根据所述目标区域调整所述触控抑制区域的抑制范围,包括:The adjusting the inhibition range of the touch inhibition area according to the target area includes:
解除所述触控抑制区域中与所述目标区域处于相同位置的区域的触控抑制,并维持所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。The touch inhibition of the area in the touch inhibition area that is co-located with the target area is released, and the touch inhibition of other areas in the touch inhibition area except the area in the co-located with the target area is maintained.
可选的,所述操作信息包括所述用户的终端握持信息,相应地,所述根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,包括:Optionally, the operation information includes terminal holding information of the user. Accordingly, predicting the target area according to the position information of the target control in the touch inhibition area and the operation information of the user includes:
获取所述用户的终端握持信息;Acquiring terminal holding information of the user;
根据所述终端握持信息判断所述用户的终端握持姿态;Determining the terminal holding posture of the user according to the terminal holding information;
在所述终端握持姿态为单手握持的情况下,将所述目标控件在所述触控抑制区域内的位置信息和所述终端握持信息输入至第二预测模型,得到所述第二预测模型输出的目标区域;In the case where the terminal holding posture is one-handed holding, inputting the position information of the target control in the touch inhibition area and the terminal holding information into the second prediction model to obtain the target area output by the second prediction model;
所述根据所述目标区域调整所述触控抑制区域的抑制范围,包括:The adjusting the inhibition range of the touch inhibition area according to the target area includes:
对所述触控抑制区域中与所述目标区域处于相同位置的区域进行触控抑制,并解除对所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。Touch suppression is performed on an area in the touch suppression area that is located at the same position as the target area, and touch suppression is released on other areas in the touch suppression area except the area in the same position as the target area.
可选的,所述方法还包括:Optionally, the method further includes:
针对调整抑制范围后的触控抑制区域,当存在控件的触控位置位于调整抑制范围后的触控抑制区域靠近所述终端设备中心一侧的边界上时,判断针对所述控件的当前触控位置是否能覆盖与该控件对应的触控位置的中心处;For the touch suppression area after the suppression range is adjusted, when the touch position of a control is located on the boundary of the touch suppression area after the suppression range is adjusted close to the center of the terminal device, determine whether the current touch position of the control can cover the center of the touch position corresponding to the control;
在所述当前触控位置不能覆盖所述控件的触控位置的中心处时,抑制与该当前触控位置对应的触控操作。When the current touch position cannot cover the center of the touch position of the control, the touch operation corresponding to the current touch position is suppressed.
可选的,在确定终端设备的触控屏上当前运行的应用程序中的待显示页面之前,所述方法还包括:Optionally, before determining the page to be displayed in the application currently running on the touch screen of the terminal device, the method further includes:
获取使用所述终端设备的用户画像;Obtaining a user profile of the terminal device;
判断所述用户画像确定所述用户的类型是目标类型;Determining the user profile to determine that the type of the user is a target type;
在所述用户的类型为所述目标类型的情况下,使能所述终端设备的触控抑制区域动态调整功能;In a case where the type of the user is the target type, enabling a touch suppression area dynamic adjustment function of the terminal device;
所述方法还包括:The method further comprises:
在所述用户的类型不是所述目标类型的情况下,关闭所述终端设备的触控抑制区域动态调整功能。When the type of the user is not the target type, the touch suppression area dynamic adjustment function of the terminal device is disabled.
根据本公开实施例的第二方面,提供一种触控屏防误触装置,包括:According to a second aspect of an embodiment of the present disclosure, a touch screen accidental touch prevention device is provided, comprising:
第一确定模块,被配置为确定终端设备的触控屏上当前运行的应用程序中的待显示页面;A first determining module is configured to determine a page to be displayed in an application currently running on a touch screen of a terminal device;
第二确定模块,被配置为确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;A second determination module is configured to determine a target control in the page to be displayed, wherein the target control refers to a control whose touch position is located in a touch inhibition area of the touch screen;
预测模块,被配置为根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,所述目标区域包括预测的所述用户的操作的区域和/或预测的所述用户的误触区域;A prediction module is configured to predict a target area according to the position information of the target control in the touch inhibition area and the operation information of the user, wherein the target area includes a predicted operation area of the user and/or a predicted mis-touch area of the user;
调整模块,被配置为根据所述目标区域调整所述触控抑制区域的抑制范围。The adjustment module is configured to adjust the inhibition range of the touch inhibition area according to the target area.
根据本公开实施例的第三方面,提供一种触控屏防误触装置,包括:According to a third aspect of an embodiment of the present disclosure, a touch screen accidental touch prevention device is provided, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor-executable instructions;
其中,所述处理器被配置为实现本公开第一方面所提供的触控屏防误触方法的步骤。The processor is configured to implement the steps of the touch screen accidental touch prevention method provided in the first aspect of the present disclosure.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面所提供的触控屏防误触方法的步骤。According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the touch screen anti-mistouching method provided in the first aspect of the present disclosure are implemented.
本公开的实施例提供的技术方案可以包括以下有益效果:确定终端设备的触控屏上当前运行的应用程序中的待显示页面;确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域,所述目标区域包括预测的所述用户的操作的区域和/或预测的所述用户的误触区域;根据所述目标区域调整所述触控抑制区域的抑制范围。在使用应用程序的过程中,动态调整触控抑制区域的范围,以达到了对触控屏的触控抑制区域内发生的触控操作进行灵活抑制的目的,进而提升用户体验。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: determining the page to be displayed in the application currently running on the touch screen of the terminal device; determining the target control in the page to be displayed, the target control refers to the control whose touch position is located in the touch suppression area of the touch screen; predicting the target area based on the position information of the target control in the touch suppression area and the user's operation information, the target area includes the predicted area of the user's operation and/or the predicted area of the user's false touch; adjusting the suppression range of the touch suppression area based on the target area. In the process of using the application, the range of the touch suppression area is dynamically adjusted to achieve the purpose of flexibly suppressing touch operations occurring in the touch suppression area of the touch screen, thereby improving the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
图1是根据一示例性实施例示出的一种触控屏防误触方法的流程图。Fig. 1 is a flow chart showing a method for preventing accidental touches on a touch screen according to an exemplary embodiment.
图2是根据一示例性实施例示出的步骤S11的流程图。FIG. 2 is a flowchart showing step S11 according to an exemplary embodiment.
图3是根据一示例性实施例示出的步骤S111的流程图。FIG. 3 is a flowchart showing step S111 according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图。Fig. 4 is another flow chart of a method for preventing accidental touches on a touch screen according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种触控屏的一种结构示意图。Fig. 5 is a schematic structural diagram of a touch screen according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图。Fig. 6 is another flow chart of a method for preventing accidental touches on a touch screen according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图。Fig. 7 is another flow chart of a method for preventing accidental touches on a touch screen according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图。Fig. 8 is another flow chart of a method for preventing accidental touches on a touch screen according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种触控屏防误触装置的框图。Fig. 9 is a block diagram of a touch screen accidental touch prevention device according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种触控屏防误触装置的框图。Fig. 10 is a block diagram of a touch screen accidental touch prevention device according to an exemplary embodiment.
具体实施方式DETAILED DESCRIPTION
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
在介绍本公开提供的触控屏防误触方法、装置及存储介质之前,首先对本公开的应用场景进行介绍。本公开提供的触控屏防误触方法可以应用于终端设备,所述终端设备包括触控屏,例如可以是智能手机,平板电脑,智能手表等。Before introducing the touch screen anti-mistouch method, device and storage medium provided by the present disclosure, the application scenario of the present disclosure is first introduced. The touch screen anti-mistouch method provided by the present disclosure can be applied to a terminal device, which includes a touch screen, such as a smart phone, a tablet computer, a smart watch, etc.
相关技术中,通常将终端设备的边缘区域设置为触控抑制区域,将需要对边缘进行抑制的应用程序加入白名单内,在使用这些应用程序的过程中,对发生在触控抑制区域的触控操作均进行抑制,即不响应该触控操作。采用此类方法实现防误触需要对白名单进行维护,且白名单数量有限,在应用程序较多的情况下,只能实现部分应用程序的防误触。固定的抑制区域的灵活性低,终端设备的使用场景复杂,若一直采取上述方法实现防误触,将出现过度抑制现象,影响用户使用体验。In the related art, the edge area of the terminal device is usually set as the touch suppression area, and the applications that need to suppress the edge are added to the whitelist. When using these applications, all touch operations occurring in the touch suppression area are suppressed, that is, the touch operations are not responded to. Using this method to achieve anti-mistouch requires maintenance of the whitelist, and the number of whitelists is limited. When there are many applications, only some applications can be prevented from accidentally touching. Fixed suppression areas have low flexibility, and the usage scenarios of terminal devices are complex. If the above method is always used to achieve anti-mistouch, excessive suppression will occur, affecting the user experience.
为解决上述技术问题,本公开提供一种触控屏防误触方法,图1是根据一示例性实施例示出的一种触控屏防误触方法的流程图,如图1所示,所述触控屏防误触方法用于终端设备中,包括以下步骤:In order to solve the above technical problems, the present disclosure provides a touch screen anti-mistouch method. FIG1 is a flow chart of a touch screen anti-mistouch method according to an exemplary embodiment. As shown in FIG1 , the touch screen anti-mistouch method is used in a terminal device and includes the following steps:
在步骤S11中,确定终端设备的触控屏上当前运行的应用程序中的待显示页面;In step S11, a page to be displayed in an application currently running on a touch screen of a terminal device is determined;
在步骤S12中,确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;In step S12, a target control in the page to be displayed is determined, where the target control refers to a control whose touch position is located in a touch suppression area of the touch screen;
在步骤S13中,根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域;In step S13, a target area is predicted based on the position information of the target control in the touch inhibition area and the user's operation information;
在步骤S14中,根据所述目标区域调整所述触控抑制区域的抑制范围。In step S14, the suppression range of the touch suppression area is adjusted according to the target area.
需要说明的是,触控抑制区域是位于终端设备触控屏边缘的区域。触控位置位于该区域的触控操作会被抑制。所述目标区域包括预测的所述用户的操作的区域和/或预测的所述用户的误触区域。可以理解的是,预测的所述用户的操作的区域与预测的所述用户的误触区域是相对的。It should be noted that the touch suppression area is an area located at the edge of the touch screen of the terminal device. The touch operation with the touch position located in this area will be suppressed. The target area includes the predicted area of the user's operation and/or the predicted area of the user's mis-touch. It can be understood that the predicted area of the user's operation is relative to the predicted area of the user's mis-touch.
本公开通过对触控屏上当前运行的应用程序的待显示页面进行确定,根据该待显示页面中的目标控件和用户的操作信息,得到预测的所述用户在触控抑制区域中的操作区域,和/或得到预测的所述用户在触控抑制区域中的误触区域,并根据得到的预测区域(即目标区域)动态调整触控抑制区域的抑制范围,以对在使用过程中的应用程序的触控屏的边缘的区域中动态重新确定需要解除抑制的区域和/或需要维持抑制的区域,避免过度抑制的情况,提高触控屏防误触的灵活性。The present disclosure determines a to-be-displayed page of an application currently running on a touch screen, obtains a predicted operation area of the user in a touch suppression area and/or a predicted mis-touch area of the user in the touch suppression area according to a target control in the to-be-displayed page and the user's operation information, and dynamically adjusts a suppression range of the touch suppression area according to the obtained predicted area (i.e., the target area) to dynamically redetermine an area that needs to be released from suppression and/or an area that needs to be maintained suppressed in an area at the edge of the touch screen of an application during use, thereby avoiding excessive suppression and improving the flexibility of the touch screen in preventing mis-touches.
在一种可能实现的方式中,请参阅图2,在步骤S11中确定终端设备的触控屏上当前运行的应用程序中的待显示页面,可以通过以下步骤实现:In a possible implementation, referring to FIG. 2 , determining the page to be displayed in the application currently running on the touch screen of the terminal device in step S11 can be implemented by the following steps:
在步骤S111中,确定所述应用程序的类型是否为目标类型;In step S111, determining whether the type of the application is a target type;
在步骤S112中,在所述应用程序的类型为所述目标类型的情况下,确定终端设备的触控屏上当前运行的应用程序中的待显示页面。In step S112, when the type of the application is the target type, a page to be displayed in the application currently running on the touch screen of the terminal device is determined.
其中,所述目标类型为社交类型或游戏类型,该类应用程序具有使用场景复杂的特点。Among them, the target type is a social type or a game type, and this type of application has the characteristics of complex usage scenarios.
具体的,为兼顾终端设备的功耗和收益,针对使用场景复杂的应用程序,在其使用过程中动态调整触控抑制区域的抑制范围;而对非目标类型的应用程序直接根据原有触控抑制区域的抑制范围进行抑制或不进行抑制。Specifically, in order to take into account the power consumption and revenue of the terminal device, the inhibition range of the touch inhibition area is dynamically adjusted during the use of applications with complex usage scenarios; and non-target type applications are directly inhibited or not inhibited according to the inhibition range of the original touch inhibition area.
在一种可能实现的方式中,请参阅图3,在步骤S111中确定所述应用程序的类型是否为目标类型,可以通过以下步骤实现:In a possible implementation, referring to FIG. 3 , determining whether the type of the application is the target type in step S111 may be implemented by the following steps:
在步骤S1111中,获取所述触控屏当前的显示图像;In step S1111, the current display image of the touch screen is obtained;
在步骤S1112中,将所述显示图像输入至分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息;In step S1112, the display image is input into a classification model to obtain result information output by the classification model that represents the category of the application;
在步骤S1113中,根据所述结果信息确定所述应用程序的类型是否为所述目标类型。In step S1113, it is determined whether the type of the application is the target type according to the result information.
其中,所述结果信息与所述目标类型一一对应。进一步地,分类模型是预先训练好的。具体的:The result information corresponds to the target type one by one. Furthermore, the classification model is pre-trained. Specifically:
第一,获取多个图像样本,其中,每个图像样本携带有类别信息;第二,将每个图像样本输入至第一初始卷积神经网络模型,得到所述第一初始卷积神经网络模型输出的类比结果,根据类比结果和类别信息调整初始卷积神经网络模型的模型参数,直至满足预设条件;第三,输出分类模型。First, obtain multiple image samples, each of which carries category information; second, input each image sample into a first initial convolutional neural network model to obtain an analogy result output by the first initial convolutional neural network model, and adjust the model parameters of the initial convolutional neural network model according to the analogy result and category information until preset conditions are met; third, output a classification model.
在一种可能实现的方式中,在步骤S1111中获取所述触控屏当前的显示图像,包括以下步骤:In a possible implementation, obtaining the current display image of the touch screen in step S1111 includes the following steps:
获取所述触控屏连续N帧显示图像。Obtain N consecutive frames of displayed images on the touch screen.
进一步地,在步骤S1112中将所述显示图像输入至分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息,包括以下步骤:Furthermore, in step S1112, the display image is input into a classification model to obtain result information output by the classification model that represents the category of the application, including the following steps:
在所述N帧图像中每相邻两帧图像均存在相同图像内容的情况下,将所述第N帧显示图像输入至所述分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息。In the case that every two adjacent frames of the N frames of images have the same image content, the Nth frame of display image is input into the classification model to obtain result information output by the classification model that represents the category of the application.
可选的,其中,N为大于1的整数,所述连续N帧显示图像的第N帧图像为所述触控屏当前的显示图像。Optionally, N is an integer greater than 1, and the Nth frame image of the consecutive N frames of displayed images is the current display image of the touch screen.
在本公开中,根据用户在当前运行的应用程序中的操作信息,对用户在当前时刻后的未来预设时间段内,用户对该应用程序的操作区域和/或用户的误触区域进行预测,若所述终端设备的触控屏当前运行的应用程序发生变化,则后续预测没有具体意义。例如,获取到100帧显示图像,前50帧对应的应用场景是游戏类型,而后50帧的应用场景是场景使用简单的非目标类型的应用程序,而使用场景简单的应用程序无需调整触控抑制区域的抑制范围,进一步地,此时预测目标区域是无具体意义的。In the present disclosure, based on the operation information of the user in the currently running application, the user's operation area of the application and/or the user's mis-touch area in the future preset time period after the current moment is predicted. If the application currently running on the touch screen of the terminal device changes, the subsequent prediction has no specific meaning. For example, 100 frames of display images are obtained, the application scenarios corresponding to the first 50 frames are game types, and the application scenarios of the next 50 frames are non-target type applications with simple scene usage. Applications with simple scene usage do not need to adjust the suppression range of the touch suppression area. Further, predicting the target area at this time has no specific meaning.
因此,对获取的N帧图像中每相邻两帧的内容进行判断,在所述N帧图像中每相邻两帧图像均存在相同图像内容的情况下,再执行步骤S1113。以避免后续预测的目标区域的对切换后的应用程序无任何应用意义,进一步达到了降低了所述终端设备的功耗的目的。Therefore, the content of each two adjacent frames in the acquired N frames is judged, and if each two adjacent frames in the N frames have the same image content, step S1113 is performed again, so as to avoid that the target area predicted subsequently has no application significance for the switched application, and further achieve the purpose of reducing the power consumption of the terminal device.
在一种可能实现的方式中,所述操作信息包括历史触控操作位置信息情况下,图4是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图,如图4所示,该方法包括以下步骤:In a possible implementation, when the operation information includes historical touch operation position information, FIG4 is another flow chart of a touch screen false touch prevention method according to an exemplary embodiment. As shown in FIG4 , the method includes the following steps:
在步骤S111中,确定所述应用程序的类型是否为目标类型;In step S111, determining whether the type of the application is a target type;
在步骤S112中,在所述应用程序的类型为所述目标类型的情况下,确定终端设备的触控屏上当前运行的应用程序中的待显示页面;In step S112, when the type of the application is the target type, determining a page to be displayed in the application currently running on the touch screen of the terminal device;
在步骤S12中,确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;In step S12, a target control in the page to be displayed is determined, where the target control refers to a control whose touch position is located in a touch suppression area of the touch screen;
在步骤S41中,统计所述用户针对所述触控屏的历史触控操作位置信息;In step S41, historical touch operation position information of the user on the touch screen is counted;
在步骤S42中,将所述历史触控操作位置信息和所述目标控件在所述触控抑制区域内的位置信息输入至第一预测模型,得到所述第一预测模型输出的目标区域;In step S42, the historical touch operation position information and the position information of the target control in the touch inhibition area are input into a first prediction model to obtain a target area output by the first prediction model;
在步骤S43中,解除所述触控抑制区域中与所述目标区域处于相同位置的区域的触控抑制,并维持所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。In step S43, the touch suppression of the area in the touch suppression area co-located with the target area is released, and the touch suppression of other areas in the touch suppression area except the area co-located with the target area is maintained.
其中,所述历史触控操作位置信息是与当前时刻相邻的前一历史时间段内的触控操作位置信息。所述前一历史时间段例如可以是2秒。The historical touch operation position information is the touch operation position information in a previous historical time period adjacent to the current moment, and the previous historical time period may be, for example, 2 seconds.
可以理解的是,在目标区域包括预测的用户的操作的区域的情况下,且该区域是触控抑制区域中某一区域,相应地,就会在与当前时刻相邻的下一预设时间段内,解除触控抑制区域中预测的用户的操作的区域所在的区域,并维持触控抑制区域中除预测的用户的操作的区域之外的其他区域的触控抑制。其中,与当前时刻相邻的下一预设时间段例如可以是2S。It is understandable that, in the case where the target area includes the predicted user operation area, and the area is a certain area in the touch suppression area, accordingly, in the next preset time period adjacent to the current moment, the area where the predicted user operation area is located in the touch suppression area will be released, and the touch suppression of other areas in the touch suppression area except the predicted user operation area will be maintained. The next preset time period adjacent to the current moment may be, for example, 2S.
进一步可以理解的是,在目标区域包括预测的所述用户的操作区域和预测的所述用户的误触区域,相应地,上述步骤S43可以是:解除所述触控抑制区域中与预测的所述用户的操作区域处于相同位置的区域的触控抑制,并维持所述触控抑制区域中与预测的所述用户的误触区域处于相同位置的区域的触控抑制。It can be further understood that the target area includes the predicted operation area of the user and the predicted mis-touch area of the user. Accordingly, the above step S43 can be: releasing the touch suppression of the area in the touch suppression area that is at the same position as the predicted operation area of the user, and maintaining the touch suppression of the area in the touch suppression area that is at the same position as the predicted mis-touch area of the user.
以目标类型为游戏类型为例,对图4所示的步骤进行进一步说明。请参阅图5,图5所示为一种终端设备触控屏的一种结构示意图。具体的,目标控件对应的触控位置包括位置1、位置2、位置3以及位置4,统计的用户针对所述触控屏的历史触控操作位置信息包括对位置11、位置22以及位置55的触控操作,预测得到的目标区域为包括位置2的操作的区域。因此,根据该区域,解除针对触控操作区域中位置2所处区域内发生的触控操作的抑制,并维持触控操作区域中除位置2所在区域之外其他区域内发生的触控操作的抑制。Taking the target type as a game type as an example, the steps shown in Figure 4 are further explained. Please refer to Figure 5, which is a schematic diagram of the structure of a touch screen of a terminal device. Specifically, the touch positions corresponding to the target controls include position 1, position 2, position 3, and position 4. The statistical historical touch operation position information of the user on the touch screen includes touch operations on position 11, position 22, and position 55. The predicted target area is the area including the operation at position 2. Therefore, according to this area, the suppression of touch operations occurring in the area where position 2 is located in the touch operation area is released, and the suppression of touch operations occurring in other areas of the touch operation area except the area where position 2 is located is maintained.
进一步地,第一预测模型是预先训练好的。具体的:第一,获取多个触控数据样本,其中,每个触控数据样本携带有样本触控操作位置信息、控件的样本位置信息和第一样本区域;第二,将每个触控数据样本输入至第二初始卷积神经网络模型,得到所述第二初始卷积神经网络模型输出的预测区域,根据预测区域和第一样本区域调整初始卷积神经网络模型的模型参数,直至满足预设条件;第三,输出第一预测模型。Furthermore, the first prediction model is pre-trained. Specifically: first, a plurality of touch data samples are obtained, wherein each touch data sample carries sample touch operation position information, sample position information of the control, and a first sample area; second, each touch data sample is input into a second initial convolutional neural network model to obtain a prediction area output by the second initial convolutional neural network model, and the model parameters of the initial convolutional neural network model are adjusted according to the prediction area and the first sample area until a preset condition is met; third, the first prediction model is output.
在一种可能实现的方式中,图6根据一示例性实施例示出的一种触控屏防误触方法的另一流程图,如图6示,该方法包括以下步骤:In a possible implementation, FIG6 is another flow chart of a touch screen false touch prevention method according to an exemplary embodiment. As shown in FIG6 , the method includes the following steps:
在步骤S11中,确定终端设备的触控屏上当前运行的应用程序中的待显示页面;In step S11, a page to be displayed in an application currently running on a touch screen of a terminal device is determined;
在步骤S12中,确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;In step S12, a target control in the page to be displayed is determined, where the target control refers to a control whose touch position is located in a touch suppression area of the touch screen;
在步骤S61,获取所述用户的终端握持信息;In step S61, obtaining the terminal holding information of the user;
在步骤S62,根据所述终端握持信息判断所述用户的终端握持姿态;In step S62, the terminal holding posture of the user is determined according to the terminal holding information;
在步骤S63,在所述终端握持姿态为单手握持的情况下,将所述目标控件在所述触控抑制区域内的位置信息和所述终端握持信息输入至第二预测模型,得到所述第二预测模型输出的目标区域;In step S63, when the terminal holding posture is one-handed holding, the position information of the target control in the touch inhibition area and the terminal holding information are input into the second prediction model to obtain the target area output by the second prediction model;
在步骤S64,对所述触控抑制区域中与所述目标区域处于相同位置的区域进行触控抑制,并解除对所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。In step S64, touch suppression is performed on the area in the touch suppression area that is at the same position as the target area, and touch suppression is released on other areas in the touch suppression area except the area in the same position as the target area.
其中,终端握持信息例如可以由设置在终端设备的边缘的运动传感器获取。运动传感器例如可以是陀螺仪。所述陀螺仪可以检测所述终端设备的倾斜角度信息(包括倾斜方位和倾斜角度大小),根据该倾斜角度信息判断所述用户的终端握持姿态。一般的,单手操作手机的倾斜角度较大。另外,右手单手操作和左手单手操作的倾斜方位不同。因此,根据终端握持信息的倾斜方位和倾斜角度大小,即可判断用户当前是使用哪只手操作终端设备。Among them, the terminal holding information can be obtained by, for example, a motion sensor arranged at the edge of the terminal device. The motion sensor can be, for example, a gyroscope. The gyroscope can detect the tilt angle information (including the tilt direction and the tilt angle size) of the terminal device, and judge the terminal holding posture of the user according to the tilt angle information. Generally, the tilt angle of a mobile phone operated with one hand is larger. In addition, the tilt directions of right-handed operation and left-handed operation are different. Therefore, according to the tilt direction and the tilt angle size of the terminal holding information, it can be judged which hand the user is currently using to operate the terminal device.
可以理解的是,在目标区域包括预测的用户的误触区域的情况下,且该区域是触控抑制区域中某一区域,相应地,就会在与当前时刻相邻的下一预设时间段内,维持触控抑制区域中预测的用户的误触区域所在的区域,并解除触控抑制区域中除预测的用户的操作的区域之外的其他区域的触控抑制。It can be understood that when the target area includes the predicted user's mistouch area, and the area is an area in the touch suppression area, accordingly, during the next preset time period adjacent to the current moment, the area in the touch suppression area where the predicted user's mistouch area is located will be maintained, and the touch suppression of other areas in the touch suppression area except the predicted user's operation area will be released.
进一步可以理解的是,在目标区域包括预测的用户的操作区域和预测的用户的误触区域,相应地,上述步骤S64可以是:解除触控抑制区域中与预测的用户的操作区域处于相同位置的区域的触控抑制,并维持触控抑制区域中与预测的用户的误触区域处于相同位置的区域的触控抑制。It can be further understood that the target area includes the predicted user's operation area and the predicted user's mis-touch area. Accordingly, the above step S64 can be: releasing the touch suppression of the area in the touch suppression area that is at the same position as the predicted user's operation area, and maintaining the touch suppression of the area in the touch suppression area that is at the same position as the predicted user's mis-touch area.
以目标类型为聊天类型为例,对图6所示的步骤进行进一步说明。具体的,当前运行的应用程序为微信,且待显示界面为聊天界面,由于聊天框存在,左手单手操作终端设备的情况下,用户在操作的过程中,左下区域易被误触,则相应地,预测的目标区域可以是左下区域(预测的用户的误触区域)。进一步地,则可以解除所述触控抑制区域中除与左下区域处于相同位置的区域的其他区域(例如,触控抑制区域的右侧区域,触控抑制区域的上侧等)的触控抑制,维持对触控抑制区域中与左下区域处于相同位置的区域的触控抑制,使得抑制区域能够与用户握持该终端设备时手部易造成误触的部位相吻合。Taking the target type as a chat type as an example, the steps shown in Figure 6 are further explained. Specifically, the currently running application is WeChat, and the interface to be displayed is a chat interface. Due to the existence of the chat box, when the terminal device is operated by one hand with the left hand, the user is in the process of operation. The lower left area is easily touched by mistake, and accordingly, the predicted target area can be the lower left area (the predicted user's mis-touch area). Further, the touch inhibition of other areas in the touch inhibition area except the area in the same position as the lower left area (for example, the right area of the touch inhibition area, the upper side of the touch inhibition area, etc.) can be released, and the touch inhibition of the area in the same position as the lower left area in the touch inhibition area is maintained, so that the inhibition area can be consistent with the part of the hand that is easily mis-touched when the user holds the terminal device.
进一步地,第二预测模型是预先训练好的。具体的:第一,获取多个握持姿态数据样本,其中,每个握持姿态数据样本携带有样本终端握持信息、控件的样本位置信息和第二样本区域;第二,将每个触控数据样本输入至第二初始卷积神经网络模型,得到所述第二初始卷积神经网络模型输出的预测区域,根据预测区域和第二样本区域调整初始卷积神经网络模型的模型参数,直至满足预设条件;第三,输出第一预测模型。Furthermore, the second prediction model is pre-trained. Specifically: first, obtain multiple holding posture data samples, wherein each holding posture data sample carries sample terminal holding information, sample position information of the control, and a second sample area; second, input each touch data sample into the second initial convolutional neural network model, obtain the predicted area output by the second initial convolutional neural network model, and adjust the model parameters of the initial convolutional neural network model according to the predicted area and the second sample area until the preset conditions are met; third, output the first prediction model.
在上述实施方式中,分类模型、第一预测模型和第二预测模型的预设条件例如可以是模型的迭代次数。In the above implementation, the preset conditions of the classification model, the first prediction model and the second prediction model may be, for example, the number of iterations of the model.
在一种可能的实施方式中,图7是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图,如图7所示,该方法包括以下步骤:In a possible implementation, FIG. 7 is another flow chart of a method for preventing accidental touches on a touch screen according to an exemplary embodiment. As shown in FIG. 7 , the method includes the following steps:
在步骤S71中,针对调整抑制范围后的触控抑制区域,当存在控件的触控位置位于调整抑制范围后的触控抑制区域靠近所述终端设备中心一侧的边界上时,判断针对所述控件的当前触控位置是否能覆盖与该控件对应的触控位置的中心处;In step S71, for the touch suppression area after the suppression range is adjusted, when the touch position of a control is located on the boundary of the touch suppression area after the suppression range is adjusted close to the center of the terminal device, it is determined whether the current touch position of the control can cover the center of the touch position corresponding to the control;
在步骤S72中,在所述当前触控位置不能覆盖所述控件的触控位置的中心处时,抑制与该当前触控位置对应的触控操作。In step S72, when the current touch position cannot cover the center of the touch position of the control, the touch operation corresponding to the current touch position is suppressed.
在调整抑制范围后的触控抑制区域的边界上(特别是靠近所述终端设备中心一侧的边界且是触控抑制区域中解除抑制的区域)存在控件时,若用户的当前触控位置无法准确覆盖该控件的中心处,则可以认为用户此时是一种误触行为,则对该当前触控位置对应的触控操作进行抑制。When there is a control on the boundary of the touch suppression area after adjusting the suppression range (especially the boundary close to the center of the terminal device and the area where suppression is released in the touch suppression area), if the user's current touch position cannot accurately cover the center of the control, it can be considered that the user is making a false touch at this time, and the touch operation corresponding to the current touch position is suppressed.
在一种可能的实施方式中,图8是根据一示例性实施例示出的一种触控屏防误触方法的另一流程图,如图8所示,该方法包括以下步骤:In a possible implementation, FIG8 is another flow chart of a touch screen false touch prevention method according to an exemplary embodiment. As shown in FIG8 , the method includes the following steps:
在步骤S81中,获取使用所述终端设备的用户画像;In step S81, a user portrait of the terminal device is obtained;
在步骤S82中,判断所述用户画像确定所述用户的类型是目标类型;In step S82, the user portrait is judged to determine that the type of the user is the target type;
在步骤S83中,在所述用户的类型为所述目标类型的情况下,使能所述终端设备的触控抑制区域动态调整功能;In step S83, when the type of the user is the target type, enabling a touch suppression area dynamic adjustment function of the terminal device;
在步骤S11中,确定终端设备的触控屏上当前运行的应用程序中的待显示页面;In step S11, a page to be displayed in an application currently running on a touch screen of a terminal device is determined;
在步骤S12中,确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件;In step S12, a target control in the page to be displayed is determined, where the target control refers to a control whose touch position is located in a touch suppression area of the touch screen;
在步骤S13中,根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域;In step S13, a target area is predicted based on the position information of the target control in the touch inhibition area and the user's operation information;
在步骤S14中,根据所述目标区域调整所述触控抑制区域的抑制范围。In step S14, the suppression range of the touch suppression area is adjusted according to the target area.
在步骤S84中,在所述用户的类型不是所述目标类型的情况下,关闭所述终端设备的触控抑制区域动态调整功能。In step S84, when the type of the user is not the target type, the touch suppression area dynamic adjustment function of the terminal device is turned off.
其中,用户画像作为一种勾画目标用户、联系用户诉求与设计方向的有效工具,用户画像在各领域得到了广泛的应用。可以理解的是,青年用户对应用程序的需求更大,且使用的应用程序场景、功能也较为较为丰富。相对地,老年用户对应用程序的需求较少,且在应用程序的使用场景较为单一,在此情况下,动态调整触控抑制区域的抑制范围并无实际意义。Among them, user portraits are an effective tool for outlining target users and linking user demands with design directions. User portraits have been widely used in various fields. It is understandable that young users have greater demand for applications, and the application scenarios and functions they use are relatively rich. Relatively speaking, elderly users have fewer demands for applications, and the application usage scenarios are relatively simple. In this case, dynamically adjusting the inhibition range of the touch inhibition area has no practical significance.
结合上述,在上述实施方式中,目标用户可以是青年用户。在考虑终端设备功耗的前提下,在用户画像确定用户的类型是目标类型为青年用户时,使能终端设备的触控抑制区域动态调整功能,进一步调整触控抑制区域的抑制范围,以达到了对触控屏的触控抑制区域内发生的触控操作进行灵活抑制的目的,进而提升用户体验;在目标类型不是青年用户时,关闭终端设备的触控抑制区域动态调整功能,在此情况下进一步降低终端设备的使用功耗。In combination with the above, in the above implementation, the target user may be a young user. Under the premise of considering the power consumption of the terminal device, when the user profile determines that the user type is a young user, the touch suppression area dynamic adjustment function of the terminal device is enabled, and the suppression range of the touch suppression area is further adjusted to achieve the purpose of flexibly suppressing the touch operation occurring in the touch suppression area of the touch screen, thereby improving the user experience; when the target type is not a young user, the touch suppression area dynamic adjustment function of the terminal device is turned off, and the power consumption of the terminal device is further reduced in this case.
本公开还提供一种触控屏防误触装置,请参阅图9,图9是根据一示例性实施例示出的一种触控屏防误触装置框图,该装置包括检测模块901,确定模块902和转换模块903。The present disclosure further provides a touch screen accidental touch prevention device. Please refer to FIG. 9 , which is a block diagram of a touch screen accidental touch prevention device according to an exemplary embodiment. The device includes a detection module 901 , a determination module 902 and a conversion module 903 .
该第一确定模块901被配置为确定终端设备的触控屏上当前运行的应用程序中的待显示页面。The first determining module 901 is configured to determine a page to be displayed in an application currently running on the touch screen of the terminal device.
该第二确定模块902被配置为确定所述待显示页面中的目标控件,所述目标控件是指触控位置位于所述触控屏的触控抑制区域内的控件。The second determining module 902 is configured to determine a target control in the page to be displayed, where the target control refers to a control whose touch position is located in a touch suppression area of the touch screen.
该预测模块903被配置为根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域。The prediction module 903 is configured to predict the target area according to the position information of the target control in the touch inhibition area and the user's operation information.
该调整模块904被配置为根据所述目标控件在所述触控抑制区域内的位置信息,以及用户的操作信息,预测得到目标区域。The adjustment module 904 is configured to predict the target area according to the position information of the target control in the touch inhibition area and the user's operation information.
可选的,所述第一确定模块包括:Optionally, the first determining module includes:
目标类型确定子模块,被配置为确定所述应用程序的类型是否为目标类型。The target type determination submodule is configured to determine whether the type of the application is a target type.
页面确定子模块,被配置为在所述应用程序的类型为所述目标类型的情况下,确定终端设备的触控屏上当前运行的应用程序中的待显示页面。The page determination submodule is configured to determine a page to be displayed in an application currently running on the touch screen of the terminal device when the type of the application is the target type.
可选的,所述目标类型确定子模块包括:Optionally, the target type determination submodule includes:
获取子单元,被配置为获取所述触控屏当前的显示图像;An acquisition subunit, configured to acquire a current display image of the touch screen;
类别预测子单元,被配置为将所述显示图像输入至分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息A category prediction subunit is configured to input the display image into a classification model to obtain result information output by the classification model that represents the category of the application program.
目标类型确定子单元,被配置为根据所述结果信息确定所述应用程序的类型是否为所述目标类型。The target type determination subunit is configured to determine whether the type of the application is the target type according to the result information.
可选的,所述获取子单元具体被配置为获取所述触控屏连续N帧显示图像。Optionally, the acquisition subunit is specifically configured to acquire N consecutive frames of displayed images on the touch screen.
可选的,所述类别预测子单元具体被配置为在所述N帧图像中每相邻两帧图像均存在相同图像内容的情况下,将所述第N帧显示图像输入至所述分类模型,得到所述分类模型输出的表征所述应用程序的类别的结果信息。Optionally, the category prediction subunit is specifically configured to input the Nth frame display image into the classification model when every two adjacent frames of the N frames have the same image content, and obtain result information output by the classification model that characterizes the category of the application.
可选的,所述预测模块包括:Optionally, the prediction module includes:
统计子模块,被配置为统计所述用户针对所述触控屏的历史触控操作位置信息。The statistics submodule is configured to count the historical touch operation position information of the user on the touch screen.
第一预测子模块,被配置为将所述历史触控操作位置信息和所述目标控件在所述触控抑制区域内的位置信息输入至第一预测模型,得到所述第一预测模型输出的目标区域。The first prediction submodule is configured to input the historical touch operation position information and the position information of the target control in the touch inhibition area into a first prediction model to obtain a target area output by the first prediction model.
所述调整模块具体被配置为解除所述触控抑制区域中与所述目标区域处于相同位置的区域的触控抑制,并维持所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。The adjustment module is specifically configured to release the touch inhibition of the area in the touch inhibition area that is at the same position as the target area, and maintain the touch inhibition of other areas in the touch inhibition area except the area in the same position as the target area.
可选的,所述预测模块包括:Optionally, the prediction module includes:
获取子模块,被配置为获取所述用户的终端握持信息。The acquisition submodule is configured to acquire the terminal holding information of the user.
判断子模块,被配置为根据所述终端握持信息判断所述用户的终端握持姿态。The determination submodule is configured to determine the terminal holding posture of the user according to the terminal holding information.
第二预测子模块,被配置为在所述终端握持姿态为单手握持的情况下,将所述目标控件在所述触控抑制区域内的位置信息和所述终端握持信息输入至第二预测模型,得到所述第二预测模型输出的目标区域。The second prediction submodule is configured to input the position information of the target control in the touch inhibition area and the terminal holding information into the second prediction model when the terminal holding posture is one-handed holding, so as to obtain the target area output by the second prediction model.
所述调整模块具体被配置为对所述触控抑制区域中与所述目标区域处于相同位置的区域进行触控抑制,并解除对所述触控抑制区域中除与所述目标区域处于相同位置的区域之外的其他区域的触控抑制。The adjustment module is specifically configured to perform touch suppression on an area in the touch suppression area that is at the same position as the target area, and release touch suppression on other areas in the touch suppression area except the area in the same position as the target area.
可选的,触控屏防误触装置700还包括:Optionally, the touch screen accidental touch prevention device 700 further includes:
第一判断模块,被配置为针对调整抑制范围后的触控抑制区域,当存在控件的触控位置位于调整抑制范围后的触控抑制区域靠近所述终端设备中心一侧的边界上时,判断针对所述控件的当前触控位置是否能覆盖与该控件对应的触控位置的中心处。The first judgment module is configured to judge whether the current touch position of the control can cover the center of the touch position corresponding to the control when the touch position of the control is located on the boundary of the touch suppression area after the suppression range is adjusted, which is close to the center of the terminal device.
抑制模块,被配置为在所述当前触控位置不能覆盖所述控件的触控位置的中心处时,抑制与该当前触控位置对应的触控操作。The suppression module is configured to suppress the touch operation corresponding to the current touch position when the current touch position cannot cover the center of the touch position of the control.
可选的,触控屏防误触装置700还包括:Optionally, the touch screen accidental touch prevention device 700 further includes:
用户画像获取模块,被配置为获取使用所述终端设备的用户画像。The user portrait acquisition module is configured to acquire a portrait of a user using the terminal device.
第二判断模块,被配置为判断所述用户画像确定所述用户的类型是目标类型。The second judgment module is configured to judge the user portrait to determine that the type of the user is a target type.
使能模块,被配置为在所述用户的类型为所述目标类型的情况下,使能所述终端设备的触控抑制区域动态调整功能。The enabling module is configured to enable a touch suppression area dynamic adjustment function of the terminal device when the type of the user is the target type.
关闭模块,被配置为在所述用户的类型不是所述目标类型的情况下,关闭所述终端设备的触控抑制区域动态调整功能。The closing module is configured to close the touch suppression area dynamic adjustment function of the terminal device when the type of the user is not the target type.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
本公开还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开提供的触控屏防误触方法的步骤。The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the touch screen anti-mistouching method provided by the present disclosure are implemented.
本公开还提供提供一种触控屏防误触装置,包括:The present disclosure also provides a touch screen accidental touch prevention device, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器,其中,所述处理器被配置为实现本公开提供的触控屏防误触方法的步骤。A memory for storing processor executable instructions, wherein the processor is configured to implement the steps of the touch screen false touch prevention method provided in the present disclosure.
请参阅图10,图10是根据一示例性实施例示出的一种用于触控屏防误触装置1000的框图。例如,装置1000可以是智能手机,游戏控制台,平板设备,医疗设备等。参照图10,装置1000可以包括以下一个或多个组件:处理组件1002,存储器1004,电力组件1006,多媒体组件1008,音频组件1010,输入/输出(I/O)接口1012,传感器组件1014,以及通信组件1016。Please refer to FIG. 10 , which is a block diagram of a touch screen false touch prevention device 1000 according to an exemplary embodiment. For example, the device 1000 may be a smart phone, a game console, a tablet device, a medical device, etc. Referring to FIG. 10 , the device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input/output (I/O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
处理组件1002通常控制装置1000的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1002可以包括一个或多个处理器1200来执行指令,以完成上述的触控屏防误触方法的全部或部分步骤。此外,处理组件1002可以包括一个或多个模块,便于处理组件1002和其他组件之间的交互。例如,处理组件1002可以包括多媒体模块,以方便多媒体组件1008和处理组件1002之间的交互。The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1200 to execute instructions to complete all or part of the steps of the above-mentioned touch screen anti-false touch method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
存储器1004被配置为存储各种类型的数据以支持在装置1000的操作。这些数据的示例包括用于在装置1000上操作的任何应用程序或方法的指令。存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1004 is configured to store various types of data to support operations on the device 1000. Examples of such data include instructions for any application or method operating on the device 1000. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
电力组件1006为装置1000的各种组件提供电力。电力组件1006可以包括电源管理系统,一个或多个电源,及其他与为装置1000生成、管理和分配电力相关联的组件。The power component 1006 provides power to the various components of the device 1000. The power component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
多媒体组件1008包括在所述装置1000和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。屏幕可以被实现为触控屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1008包括一个前置摄像头和/或后置摄像头。当装置1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). The screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and/or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
音频组件1010被配置为输出和/或输入音频信号。例如,音频组件1010包括一个麦克风(MIC),当装置1000处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1004或经由通信组件1016发送。在一些实施例中,音频组件1010还包括一个扬声器,用于输出音频信号。The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the device 1000 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
输入/输出接口1012为处理组件1002和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The input/output interface 1012 provides an interface between the processing component 1002 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
传感器组件1014包括一个或多个传感器,用于为装置1000提供各个方面的状态评估。例如,传感器组件1014可以检测到装置1000的打开/关闭状态,组件的相对定位,例如所述组件为装置1000的显示器和小键盘,传感器组件1014还可以检测装置1000或装置1000一个组件的位置改变,用户与装置1000接触的存在或不存在,装置1000方位或加速/减速和装置1000的温度变化。传感器组件1014可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1014还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1014还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 1014 includes one or more sensors for providing various aspects of the status assessment of the device 1000. For example, the sensor assembly 1014 can detect the open/closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, the sensor assembly 1014 can also detect the position change of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration/deceleration of the device 1000, and the temperature change of the device 1000. The sensor assembly 1014 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件1016被配置为便于装置1000和其他设备之间有线或无线方式的通信。装置1000可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1016经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1016还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1016 is configured to facilitate wired or wireless communication between the device 1000 and other devices. The device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1000可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述触控屏防误触方法。In an exemplary embodiment, the device 1000 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned touch screen anti-mistouch method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1004,上述指令可由装置1000的处理器1200执行以完成上述触控屏防误触方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1200 of the device 1000 to complete the above touch screen false touch prevention method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的触控屏防误触方法的代码部分。In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned touch screen false touch prevention method when executed by the programmable device.
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010858637.XA CN114185444B (en) | 2020-08-24 | 2020-08-24 | Touch screen accidental touch prevention method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010858637.XA CN114185444B (en) | 2020-08-24 | 2020-08-24 | Touch screen accidental touch prevention method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114185444A CN114185444A (en) | 2022-03-15 |
| CN114185444B true CN114185444B (en) | 2024-09-24 |
Family
ID=80600669
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010858637.XA Active CN114185444B (en) | 2020-08-24 | 2020-08-24 | Touch screen accidental touch prevention method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114185444B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114968060B (en) * | 2022-04-28 | 2024-11-08 | 北京小米移动软件有限公司 | Touch control method, device, electronic device and storage medium |
| CN115237327A (en) * | 2022-07-25 | 2022-10-25 | Oppo广东移动通信有限公司 | Anti-mistouch method, device, storage medium and electronic equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018107849A1 (en) * | 2016-12-16 | 2018-06-21 | 广东欧珀移动通信有限公司 | Method for controlling touch operation on mobile terminal, and related product |
| CN111309179A (en) * | 2020-02-10 | 2020-06-19 | 北京小米移动软件有限公司 | Touch screen control method and device, terminal and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106445238B (en) * | 2016-10-17 | 2019-08-13 | 北京小米移动软件有限公司 | Edge touch-control suppressing method and device |
| CN106855785A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for realizing anti-mistouch screen when holding with both hands |
| CN108667999A (en) * | 2017-03-28 | 2018-10-16 | 上海传英信息技术有限公司 | A kind of mobile terminal false-touch prevention method, apparatus, mobile terminal and touch screen |
| CN111316210B (en) * | 2017-09-06 | 2024-03-22 | 深圳传音通讯有限公司 | Control method for preventing false touch of terminal, mobile terminal and computer readable storage medium |
| CN110471606B (en) * | 2019-07-25 | 2022-08-19 | 华为技术有限公司 | Input method and electronic equipment |
-
2020
- 2020-08-24 CN CN202010858637.XA patent/CN114185444B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018107849A1 (en) * | 2016-12-16 | 2018-06-21 | 广东欧珀移动通信有限公司 | Method for controlling touch operation on mobile terminal, and related product |
| CN111309179A (en) * | 2020-02-10 | 2020-06-19 | 北京小米移动软件有限公司 | Touch screen control method and device, terminal and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114185444A (en) | 2022-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105511631B (en) | Gesture identification method and device | |
| US20170060320A1 (en) | Method for controlling a mobile terminal using a side touch panel | |
| CN106951884A (en) | Method, device and electronic equipment for collecting fingerprints | |
| CN106548764A (en) | Screen brightness control method and device | |
| CN104571709B (en) | The processing method of mobile terminal and virtual key | |
| CN107390932A (en) | Edge false-touch prevention method and device, computer-readable recording medium | |
| CN111314552B (en) | User interface control method and device and storage medium | |
| CN111488098B (en) | Method and device for adjusting parameters of touch screen, electronic equipment and storage medium | |
| CN115756202A (en) | Method, device, processing device and storage medium for parameter adjustment of touch panel | |
| CN114185444B (en) | Touch screen accidental touch prevention method, device and storage medium | |
| CN111522498A (en) | Touch response method and device and storage medium | |
| CN112181265B (en) | A touch signal processing method, device and medium | |
| CN112286392B (en) | Touch detection method and device for touch screen, and storage medium | |
| CN107133059A (en) | Camera control method, device and mobile terminal | |
| US20220147244A1 (en) | Method and device for touch operation, and storage medium | |
| CN107908346A (en) | For controlling the method and device of screen display | |
| CN107844257B (en) | Information display method, device, terminal and storage medium | |
| CN108877742A (en) | Luminance regulating method and device | |
| CN107515694B (en) | Terminal control method and device and terminal | |
| CN108804009B (en) | Gesture recognition method and device | |
| CN106454542A (en) | Projection processing method and apparatus | |
| CN115700459B (en) | Split-screen control method, device, and storage medium | |
| EP4339732A1 (en) | Display control method and device | |
| US11402994B2 (en) | Method and apparatus for calling shortcut function, and storage medium | |
| CN108521503A (en) | Terminal equipment control method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |