CN115237327A - Anti-mistouch method, device, storage medium and electronic equipment - Google Patents
Anti-mistouch method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115237327A CN115237327A CN202210878003.XA CN202210878003A CN115237327A CN 115237327 A CN115237327 A CN 115237327A CN 202210878003 A CN202210878003 A CN 202210878003A CN 115237327 A CN115237327 A CN 115237327A
- Authority
- CN
- China
- Prior art keywords
- holding
- user
- data
- touch
- touch operation
- 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.)
- Withdrawn
Links
Images
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/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)
- Position Input By Displaying (AREA)
Abstract
Description
技术领域technical field
本申请涉及触控技术领域,具体涉及一种防误触方法、装置、存储介质和电子设备。The present application relates to the technical field of touch control, and in particular, to a method, device, storage medium and electronic device for preventing false touch.
背景技术Background technique
在手机日常使用中,用户在不同握持姿态下虎口、大鱼际区域和手指头会触碰屏幕边缘,导致触控误响应的现象,被用户视为边缘误触(Edge unintended touches)。为消除此现象带来的不便,在触控屏的触控设计中通常会做边缘防误触功能。In the daily use of mobile phones, the tiger's mouth, thenar area and the fingers will touch the edge of the screen under different holding postures, resulting in the phenomenon of false touch response, which is regarded as edge unintended touches by users. In order to eliminate the inconvenience caused by this phenomenon, the edge anti-mistouch function is usually implemented in the touch design of the touch screen.
现有的做法是设置自定义抑制区域和绝对抑制区域,自定义抑制区域通常是整个边缘内缩几十个像素作为抑制区域,当一些APP的功能图标显示在边缘的时候,会出现点击不灵敏的问题,绝对抑制区域是设定屏幕左右下角边缘区域为绝对抑制区域以减少误触响应频次,但会造成屏幕2个角落如有APP应用按钮图标点击不灵敏的问题。The existing practice is to set a custom suppression area and an absolute suppression area. The custom suppression area is usually indented by dozens of pixels from the entire edge as the suppression area. When the function icons of some APPs are displayed on the edge, there will be click insensitivity. The absolute suppression area is to set the edge area of the lower left and right corners of the screen as the absolute suppression area to reduce the frequency of false touch response, but it will cause the problem of insensitive clicks of APP application button icons in the two corners of the screen.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种防误触方法、装置、存储介质和电子设备,能够基于用户在触控面板上的接触数据动态调整抑制区域,以方便用户在触控面板的操作。The embodiments of the present application disclose a method, device, storage medium and electronic device for preventing false touches, which can dynamically adjust the suppression area based on user contact data on the touch panel, so as to facilitate the user's operation on the touch panel.
第一方面,本申请实施例提供一种防误触方法,应用于电子设备,包括:获取用户在所述电子设备的触控面板上的当前接触数据;将所述当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,所述训练后的识别模型通过用户在多种握持姿态下产生的握持姿态数据和触控操作数据对预设的识别模型进行训练得到,其中,所述握持姿态数据用于指示用户的握持部位与所述触控面板接触产生的接触数据,所述触控操作数据用于指示用户的操作部位在所述触控面板进行触控操作产生的接触数据;对所述当前接触数据对应的抑制区域执行第一操作,所述第一操作用于控制所述当前接触数据对应的抑制区域的触控灵敏度小于或等于灵敏度阈值。In a first aspect, an embodiment of the present application provides a method for preventing accidental touch, which is applied to an electronic device, including: acquiring current contact data of a user on a touch panel of the electronic device; inputting the current contact data into a trained Recognizing the model to obtain the inhibition area corresponding to the current contact data, and the trained recognition model trains the preset recognition model through the holding gesture data and touch operation data generated by the user under various holding gestures Obtained, wherein the holding gesture data is used to indicate contact data generated by the user's holding part in contact with the touch panel, and the touch operation data is used to indicate that the user's operation part is performed on the touch panel. Contact data generated by a touch operation; perform a first operation on the suppression area corresponding to the current contact data, where the first operation is used to control the touch sensitivity of the suppression area corresponding to the current contact data to be less than or equal to a sensitivity threshold.
第二方面,提供一种防误触装置,该装置包括:获取模块、处理模块以及执行模块,其中,获取模块,用于获取用户在所述电子设备的触控面板上的当前接触数据;处理模块,用于将所述当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,所述训练后的识别模型通过用户在多种握持姿态下产生的握持姿态数据和触控操作数据对预设的识别模型进行训练得到,其中,所述握持姿态数据用于指示用户的握持部位与所述触控面板接触产生的接触数据,所述触控操作数据用于指示用户的操作部位在所述触控面板进行触控操作产生的接触数据;执行模块,用于对所述当前接触数据对应的抑制区域执行第一操作,所述第一操作用于控制所述当前接触数据对应的抑制区域的触控灵敏度小于或等于灵敏度阈值。In a second aspect, a device for preventing false touches is provided, the device includes: an acquisition module, a processing module, and an execution module, wherein the acquisition module is used to acquire current contact data of a user on a touch panel of the electronic device; processing A module for inputting the current contact data into a trained recognition model to obtain a suppression area corresponding to the current contact data, and the trained recognition model uses the holding gestures generated by the user under various holding gestures Data and touch operation data are obtained by training a preset recognition model, wherein the holding gesture data is used to indicate the contact data generated by the user's holding part in contact with the touch panel, and the touch operation data contact data generated by instructing the user's operating part to perform a touch operation on the touch panel; the execution module is used to perform a first operation on the suppression area corresponding to the current contact data, and the first operation is used to control The touch sensitivity of the suppression area corresponding to the current contact data is less than or equal to the sensitivity threshold.
第三方面,本申请提供一种电子设备,包括:一个或多个处理器;存储器;其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行第一方面所述的方法。In a third aspect, the present application provides an electronic device, comprising: one or more processors; a memory; wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions , when the instructions are executed by the processor, the electronic device is caused to execute the method of the first aspect.
第四方面,本申请提供一种计算机可读存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行第一方面所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to perform the method of the first aspect.
第五方面,本申请提供一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面所述的方法。In a fifth aspect, the present application provides a computer program product, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the method of the first aspect.
本申请提供的防误触方法,采集用户在所述电子设备的触控面板上的当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,实现了基于用户的握持姿态和手指触控动作动态设置抑制区域,方便了用户的触控操作,提升了用户体验。The method for preventing accidental touch provided by the present application collects the user's current contact data on the touch panel of the electronic device and inputs it into a trained recognition model, obtains a suppression area corresponding to the current contact data, and realizes the user-based grip The restraint area is dynamically set for the gesture and finger touch action, which facilitates the user's touch operation and improves the user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2为本申请实施例提供的一种防误触方法的流程示意图;2 is a schematic flowchart of a method for preventing accidental touches provided by an embodiment of the present application;
图3为本申请实施例提供的一种防误触方法的流程示意图;3 is a schematic flowchart of a method for preventing accidental touches provided by an embodiment of the present application;
图4a为本申请实施例提供的一种竖屏右手握持的提示信息的示意图;4a is a schematic diagram of prompt information for a right-hand holding of a vertical screen according to an embodiment of the present application;
图4b为本申请实施例提供的另一种竖屏右手握持的提示信息的示意图;FIG. 4b is a schematic diagram of another kind of prompt information for holding with the right hand in a vertical screen according to an embodiment of the present application;
图4c为本申请实施例提供的再一种竖屏右手握持的提示信息的示意图;FIG. 4c is a schematic diagram of yet another prompt message for holding with the right hand in a vertical screen according to an embodiment of the present application;
图4d为本申请实施例提供一种竖屏双手握持的提示信息的示意图;4d is a schematic diagram of prompt information for a vertical screen holding with both hands according to an embodiment of the present application;
图5a为本申请实施例提供的一种横屏右手握持的提示信息的示意图;5a is a schematic diagram of prompt information for a right-hand holding of a horizontal screen according to an embodiment of the present application;
图5b为本申请实施例提供的又一种横屏右手握持的提示信息的示意图;FIG. 5b is a schematic diagram of yet another prompt message for a right-hand grip on a horizontal screen provided by an embodiment of the present application;
图5c为本申请实施例提供的一种横屏双手握持的提示信息的示意图;FIG. 5c is a schematic diagram of prompt information for holding a horizontal screen with both hands according to an embodiment of the present application;
图5d为本申请实施例提供的另一种横屏双手握持的提示信息的示意图;FIG. 5d is a schematic diagram of another kind of prompt information for holding a horizontal screen with both hands according to an embodiment of the present application;
图6为本申请实施例提供的一种拇指滑动轨迹的示意图;6 is a schematic diagram of a thumb sliding track provided by an embodiment of the present application;
图7为本申请实施例提供的另一种防误触方法的流程示意图;FIG. 7 is a schematic flowchart of another method for preventing accidental touch provided by an embodiment of the present application;
图8为本申请实施例提供的一种竖屏的预设抑制区域的设置示意图;FIG. 8 is a schematic diagram of setting a preset suppression area of a vertical screen according to an embodiment of the present application;
图9为本申请实施例提供的一种横屏的预设抑制区域的设置示意图;9 is a schematic diagram of setting a preset suppression area of a horizontal screen according to an embodiment of the present application;
图10为本申请实施例提供的一种最大外接矩形的示意图;10 is a schematic diagram of a maximum circumscribed rectangle provided by an embodiment of the present application;
图11为本申请实施例提供的一种防误触装置的结构示意图;FIG. 11 is a schematic structural diagram of a device for preventing accidental contact provided by an embodiment of the application;
图12为本申请实施例提供的另一防误触装置的结构示意图。FIG. 12 is a schematic structural diagram of another device for preventing accidental contact provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
在手机日常使用中,用户在不同握持姿态下虎口、大鱼际区域和手指头触碰屏幕边缘,导致触控误响应的现象,被用户视为边缘误触(Edge unintended touches)。为消除此现象带来的不便,在触控设计中通常会做边缘防误触功能。现有的做法是设置自定义抑制区域和绝对抑制区域,自定义抑制区域通常是整个边缘内缩几十个像素作为抑制区域,当一些APP的功能图标显示在边缘的时候,会出现点击不灵敏的问题,绝对抑制区域是设定屏幕左右下角边缘区域为绝对抑制区域以减少误触响应频次,但会造成屏幕2个角落如有APP应用按钮图标点击不灵敏的问题。In the daily use of mobile phones, the user's tiger's mouth, thenar area and fingers touch the edge of the screen under different holding postures, resulting in the phenomenon of false touch response, which is regarded as edge unintended touches by users. In order to eliminate the inconvenience caused by this phenomenon, the edge anti-mistouch function is usually implemented in the touch design. The existing practice is to set a custom suppression area and an absolute suppression area. The custom suppression area is usually indented by dozens of pixels from the entire edge as the suppression area. When the function icons of some APPs are displayed on the edge, there will be click insensitivity. The absolute suppression area is to set the edge area of the lower left and right corners of the screen as the absolute suppression area to reduce the frequency of false touch response, but it will cause the problem of insensitive clicks of APP application button icons in the two corners of the screen.
综上所述,现有的防误触方案通常是静态设定抑制区域,不便于用户操作。To sum up, the existing anti-missing solutions usually set the suppression area statically, which is inconvenient for the user to operate.
针对上述问题,本申请实施例提供了一种防误触方法,该方法可应用于各种类型的可握持的、具有不同边缘形态的触控面板、例如直面屏、曲面屏、折叠屏、卷轴屏等的电子设备,例如手机,平板电脑等。In view of the above problems, the embodiments of the present application provide an anti-mistouch method, which can be applied to various types of touch panels that can be held and have different edge shapes, such as straight-face screens, curved screens, folding screens, Electronic devices such as scroll screens, such as mobile phones, tablets, etc.
图1为本申请实施例提供的一种电子设备的结构示意图。如图1所示的电子设备100,主要包括处理器110,存储器120,输入单元130,显示单元140,传感器150,音频电路160,无线保真(wireless fidelity,Wi-Fi)模块170,电源模块180等部件。FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 100 shown in FIG. 1 mainly includes a
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作装置、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The
存储器120可用于存储软件程序以及模块,处理器110通过运行存储在存储器120的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作装置、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元130可用于接收输入的数字或字符信息,以及产生与电子设备100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于功能键(比如音量控制按键、开关按键等)、轨迹球、操作杆等中的一种或多种。The
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现电子设备的输入和输出功能。触控面板131可以采用直面屏、曲面屏、折叠屏、卷轴屏等类型屏幕。The
电子设备100还可包括至少一种传感器150,比如陀螺仪传感器、运动传感器以及其他传感器。具体地,陀螺仪传感器可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器还可以用于导航,体感游戏场景。作为运动传感器的一种,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的压力计、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device 100 may also include at least one
音频电路160、扬声器161,传声器162可提供用户与电子设备之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器110处理后,经RF电路以发送给比如另一电子设备,或者将音频数据输出至存储器120以便进一步处理。The
WiFi属于短距离无线传输技术,电子设备通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块170,但是可以理解的是,其并不属于电子设备100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the electronic device can help users to send and receive emails, browse web pages, and access streaming media through the
电子设备100还包括给各个部件供电的电源模块180(比如电池),优选的,电源模块可以通过电源管理装置与处理器110逻辑相连,从而通过电源管理装置实现管理充电、放电、以及功耗管理等功能。The electronic device 100 further includes a power supply module 180 (such as a battery) for supplying power to various components. Preferably, the power supply module can be logically connected to the
尽管未示出,电子设备100还可以包括摄像头。可选地,摄像头在电子设备100的上的位置可以为前置的,也可以为后置的,本申请实施例对此不作限定。另外,尽管未示出,电子设备100还可以包括蓝牙模块等,在此不再赘述。Although not shown, the electronic device 100 may also include a camera. Optionally, the position of the camera on the electronic device 100 may be front or rear, which is not limited in this embodiment of the present application. In addition, although not shown, the electronic device 100 may also include a Bluetooth module, etc., which will not be described herein again.
另外,本申请实施例所涉及的电子设备,可安装有操作系统,在该操作系统上可以安装运行应用程序,本申请实施例对此不作限定。In addition, the electronic device involved in the embodiments of the present application may be installed with an operating system, and an application program may be installed and run on the operating system, which is not limited in the embodiments of the present application.
图2为本申请实施例提供的一种防误触方法的流程示意图。如图2所示,所述防误触方法可以应用于电子设备,所述方法可以包括:FIG. 2 is a schematic flowchart of a method for preventing false touches provided by an embodiment of the present application. As shown in FIG. 2 , the method for preventing accidental touch can be applied to an electronic device, and the method can include:
步骤101:获取用户在所述电子设备的触控面板上的当前接触数据。Step 101: Acquire current contact data of a user on a touch panel of the electronic device.
需要说明的是,用户握持电子设备时主要通过接触电子设备的侧面区域进行握持,用户握持电子设备时会接触到触控面板即触控屏的侧面区域,由于触控面板设置有用于检测触控操作的感应单元矩阵,因此当用户的手接触到触控面板时,感应单元阵列的感应值会发生变化,从而获取到用户在所述触控面板上的当前接触数据。例如,若感应单元阵列为电容感应矩阵,当用户握持电子设备时,电容感应矩阵的感应值发生变化,获取当前的电容感应矩阵的感应值即获得当前接触数据。It should be noted that when the user holds the electronic device, the user mainly holds the electronic device by touching the side area of the electronic device. When the user holds the electronic device, the user will touch the touch panel, that is, the side area of the touch screen. The sensing unit matrix for detecting touch operations, so when the user's hand touches the touch panel, the sensing value of the sensing unit array will change, thereby obtaining the current contact data of the user on the touch panel. For example, if the sensing unit array is a capacitive sensing matrix, when the user holds the electronic device, the sensing value of the capacitive sensing matrix changes, and obtaining the current sensing value of the capacitive sensing matrix means obtaining the current contact data.
步骤102:将所述当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,所述训练后的识别模型通过用户在多种握持姿态下产生的握持姿态数据和触控操作数据对预设的识别模型进行训练得到,其中,所述握持姿态数据用于指示用户的握持部位与所述触控面板接触产生的接触数据,所述触控操作数据用于指示用户的操作部位在所述触控面板进行触控操作产生的接触数据。Step 102: Input the current contact data into a trained recognition model to obtain a suppression area corresponding to the current contact data, and the trained recognition model uses the holding gesture data generated by the user under various holding gestures It is obtained by training a preset recognition model with touch operation data, wherein the holding gesture data is used to indicate the contact data generated by the user's holding part in contact with the touch panel, and the touch operation data is used for Contact data generated by performing a touch operation on the touch panel at an operation part instructing the user.
需要说明的是,所述电子设备设置有训练后的识别模型,将获取的当前接触数据输入训练后的识别模型,训练后的识别模型可以输出对应的抑制区域,即根据用户的接触数据生成触控面板上需要做防误触的抑制区域的信息。It should be noted that the electronic device is provided with a trained recognition model, and the acquired current contact data is input into the trained recognition model, and the trained recognition model can output the corresponding inhibition area, that is, the contact data is generated according to the user's contact data. Information on the suppression area that needs to be done to prevent accidental touches on the control panel.
这里的训练后的识别模型是通过训练或者校正得到的,电子设备在出厂前预设有能够根据接触数据生成抑制区域的预设的识别模型,但是预设的识别模型是基于用户操作的大数据训练得到的,而每个用户的手的大小,手指的粗细等参数都不同,因此对于当前用户来说预设的识别模型可能存在识别误差,因此可以通过采集当前用户在多种握持姿态下产生的个人接触数据,通过个人接触数据对预设的识别模型进行训练或者校正,得到训练后的识别模型,以提高模型识别的精准度。The trained recognition model here is obtained through training or correction. The electronic device is preset with a preset recognition model that can generate a suppression area according to the contact data before leaving the factory, but the preset recognition model is based on the big data of user operations. The parameters such as the size of the hand and the thickness of the fingers of each user are different. Therefore, for the current user, the preset recognition model may have recognition errors. The generated personal contact data is used to train or correct a preset recognition model through the personal contact data to obtain a trained recognition model, so as to improve the accuracy of model recognition.
其中,由于用户握持电子设备姿势有很多种,并且,不同的握持姿态时,其握持部位与触控面板接触的接触区域面积也不同,因此,为了能够更准确的确定握持姿态以及对应的抑制区域,可以采集用户在多种握持姿态下产生的握持姿态数据和触控操作数据对预设的识别模型进行训练,其中握持姿态数据可以包括用户的握持部位与所述触控面板接触产生的接触数据,触控操作数据可以包括用户的操作部位在所述触控面板进行触控操作产生的接触数据。其中,握持部位和操作部位可以属于同一只手,也可以属于不同只手,例如,当用户左手握持电子设备时,既可以用左手的大拇指或其他手指进行屏幕上的触控操作,也可以通过右手的任意手指进行屏幕上的触控操作。通过采集握持姿态数据和触控操作数据同时对预设的识别模型进行训练或者校正,得到训练后的识别模型,能够提高模型识别的精准度。Among them, since there are many postures for users to hold the electronic device, and when different holding postures are used, the area of the contact area between the holding part and the touch panel is also different. Therefore, in order to more accurately determine the holding posture and The corresponding inhibition area can collect the holding gesture data and touch operation data generated by the user under various holding gestures to train the preset recognition model, wherein the holding gesture data can include the user's holding part and the The contact data generated by the touch of the touch panel, and the touch operation data may include the contact data generated by the user's operation part performing a touch operation on the touch panel. The holding part and the operating part may belong to the same hand or different hands. For example, when the user holds the electronic device with the left hand, he can use the thumb or other fingers of the left hand to perform touch operations on the screen. On-screen touch operations can also be performed with any finger of the right hand. The preset recognition model is trained or corrected by collecting the holding gesture data and the touch operation data to obtain a trained recognition model, which can improve the accuracy of the model recognition.
步骤103:对所述当前接触数据对应的抑制区域执行第一操作,所述第一操作用于控制所述当前接触数据对应的抑制区域的触控灵敏度小于或等于灵敏度阈值。Step 103: Perform a first operation on the suppression area corresponding to the current contact data, where the first operation is used to control the touch sensitivity of the suppression area corresponding to the current contact data to be less than or equal to a sensitivity threshold.
需要说明的是,触控面板的触控功能可以是按照预设单位面积划分成多个可以独立控制的子区域,在确定了当前接触数据对应的抑制区域后,调整所述当前接触数据对应的抑制区域对应的子区域的触控灵敏度,使得所述当前接触数据对应的抑制区域对应的子区域的触控灵敏度设置到小于或者等于预设灵敏度阈值;或者,当确定当前接触数据对应的抑制区域后,则可以关闭当前接触数据对应的抑制区域对应的子区域的触控功能,也就是说将当前接触数据对应的抑制区域的触控灵敏度降为0,这样,当降低了抑制区域的触控灵敏度后,可以实现当用户触碰抑制区域时,不会进行对应的触控响应,也就避免了用户的触碰后的误触发。It should be noted that the touch function of the touch panel may be divided into a plurality of independently controllable sub-areas according to the preset unit area, and after the suppression area corresponding to the current contact data is determined, the The touch sensitivity of the sub-region corresponding to the suppression region, so that the touch sensitivity of the sub-region corresponding to the suppression region corresponding to the current contact data is set to be less than or equal to the preset sensitivity threshold; or, when the suppression region corresponding to the current contact data is determined After that, the touch function of the sub-region corresponding to the suppression region corresponding to the current contact data can be turned off, that is to say, the touch sensitivity of the suppression region corresponding to the current contact data can be reduced to 0. After the sensitivity is adjusted, it can be realized that when the user touches the suppression area, the corresponding touch response will not be performed, and the false trigger after the user's touch is avoided.
在一些实施例中,采集用户在多种握持姿态下产生的握持姿态数据和触控操作数据的启动方式较多,例如,可以根据用户需求采集,当用户觉得当前抑制区域不太准确时,可以通过电子设备的菜单点击进入数据采集流程;也可以在用户第一次启动或者进入防误触模式时,系统自动启动数据采集流程;也可以在用户平时使用防误触功能时自动采集数据;本申请对采集用户在多种握持姿态下产生的握持姿态数据和触控操作数据的启动方式不作限定。In some embodiments, there are many start-up ways to collect the holding gesture data and touch operation data generated by the user under various holding gestures. For example, it can be collected according to the user's needs. When the user feels that the current suppression area is not accurate , you can click to enter the data collection process through the menu of the electronic device; or when the user starts for the first time or enters the anti-mistouch mode, the system automatically starts the data collection process; it can also automatically collect data when the user uses the anti-mistouch function. ; The present application does not limit the starting method for collecting the holding gesture data and touch operation data generated by the user under various holding gestures.
本实施例中,所述电子设备可以在开启自定义防误触开关、开启防误触功能或者进入防误触功能时,采集用户在多种握持姿态下产生的握持姿态数据和触控操作数据。In this embodiment, the electronic device can collect the holding posture data and touch control generated by the user under various holding postures when turning on the custom anti-mistouch switch, enabling the anti-mistouch function, or entering the anti-mistouch function. Manipulate data.
图3为本申请实施例提供的一种防误触方法的流程示意图,如图3所示,在图2所示实施例的基础上,在步骤101之前,所述方法还可以包括:3 is a schematic flowchart of a method for preventing false touches provided by an embodiment of the present application. As shown in FIG. 3 , on the basis of the embodiment shown in FIG. 2 , before
步骤201:输出提示信息,所述提示信息用于指示用户握持所述电子设备的握持姿态以及用户在所述握持姿态下进行的触控操作。Step 201 : Output prompt information, where the prompt information is used to instruct the user to hold the holding posture of the electronic device and the touch operation performed by the user in the holding posture.
需要说明的是,提示信息可以是电子设备发出的声音信息,也可以是电子设备在触控面板上显示的握持的方式的示意图,只要提示信息能够指示用户采用哪种握持姿态以及哪种触控操作就行,本申请对所述提示信息的类型不作限定。It should be noted that the prompt information may be sound information emitted by the electronic device, or may be a schematic diagram of the holding method displayed by the electronic device on the touch panel, as long as the prompt information can indicate which holding posture the user adopts and which A touch operation is sufficient, and the present application does not limit the type of the prompt information.
步骤202:获取用户采用所述握持姿态握持所述电子设备对应的握持姿态数据,以及用户进行所述触控操作对应的触控操作数据。Step 202: Acquire holding gesture data corresponding to the user holding the electronic device using the holding gesture, and touch operation data corresponding to the user performing the touch operation.
需要说明的是,在输出提示信息后,电子设备开始采集数据。为了尽可能采集到有效的数据,可以在等待预设时间后开始采集用户的数据,也可以是检测到用户操作后开始采集数据,也可以根据实际需要设定,这里不作限定。It should be noted that, after the prompt information is output, the electronic device starts to collect data. In order to collect effective data as much as possible, you can start collecting user data after waiting for a preset time, or you can start collecting data after detecting a user operation, or you can set it according to actual needs, which is not limited here.
步骤203:重复上述步骤,获得用户在所述多种握持姿态下产生的握持姿态数据和触控操作数据。Step 203: Repeat the above steps to obtain holding gesture data and touch operation data generated by the user under the multiple holding gestures.
需要说明的是,为了提高模型的准确性,需要采集用户在多种握持姿态下的数据,因此需要重复上述步骤,电子设备输出一个握持姿态和触控操作的提示信息,用户根据提示信息进行握持和操作,电子设备就采集一组数据,接下来电子设备输出下一个握持姿态和触控操作的提示信息,用户再根据提示信息进行握持和操作,电子设备又采集一组数据,多次重复后就获得了用户在所述多种握持姿态下产生的握持姿态数据和触控操作数据。It should be noted that, in order to improve the accuracy of the model, it is necessary to collect the data of the user in various holding postures, so the above steps need to be repeated, and the electronic device outputs a prompt information of the holding posture and touch operation, and the user follows the prompt information. Hold and operate, the electronic device collects a set of data, and then the electronic device outputs the next holding gesture and the prompt information of the touch operation. The user then holds and operates according to the prompt information, and the electronic device collects a set of data. , and after repeated multiple times, the holding gesture data and touch operation data generated by the user under the various holding gestures are obtained.
可以理解的是,电子设备已经预先设置好需要采集的握持姿态+触控操作的提示信息,需要采集的握持姿态+触控操作可以是分析大数据后得到的用户常用到的使用情况,也可以为用户在预设的提示信息中选择自己常用的握持姿态+触控操作情况,在输出用户选择的提示信息进行针对性的数据采集。It can be understood that the electronic device has pre-set the prompt information of the holding gesture + touch operation to be collected, and the holding gesture + touch operation to be collected can be the usage situation commonly used by users obtained after analyzing the big data. It is also possible for the user to select their usual holding posture + touch operation situation in the preset prompt information, and to output the prompt information selected by the user for targeted data collection.
示例性的,以下以在触控面板输出操作示意图为例,通过几种握持姿态的提示信息做详细说明。Exemplarily, the following takes an example of outputting a schematic diagram of an operation on a touch panel, and describes in detail through the prompt information of several holding gestures.
图4a为本申请实施例提供的一种竖屏右手握持的提示信息的示意图,如图4a所示,所述提示信息提示用户按照图示方式右手握持电子设备、且右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要右手握持在电子设备的中部位置,右手虎口接触电子设备相对于用户视线的右侧,右手有3个手指接触到电子设备相对于用户视线的左侧,右手的大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图4a所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。Fig. 4a is a schematic diagram of prompt information for holding the right hand in a vertical screen according to an embodiment of the application. As shown in Fig. 4a, the prompt information prompts the user to hold the electronic device with the right hand as shown in the figure, and the right thumb needs to be along the The preset curve in the figure slides in a natural arc. According to the prompt information, the user needs to hold the right hand in the middle of the electronic device. The electronic device is relative to the left side of the user's line of sight, and the thumb of the right hand slides in a natural arc along the preset curve in the figure. When the user holds the electronic device and performs a touch operation as shown in Figure 4a, the electronic device collects to the corresponding holding gesture data and touch operation data.
示例性的,在图4a所示提示信息的指示下,可以在右手握持下大拇指做自然弧形滑动屏幕10次后,再根据提示信息换左手握持下大拇指做自然弧形滑动屏幕10次,直至提示动作完成,以完成数据采集。Exemplarily, under the instruction of the prompt information shown in FIG. 4a, you can hold the thumb with the right hand to slide the screen in a natural arc 10 times, and then switch to the left hand to hold the thumb to slide the screen in a natural arc according to the prompt information. 10 times until the prompt action is completed to complete the data collection.
图4b为本申请实施例提供的另一种竖屏右手握持的提示信息的示意图,如图4b所示,所述提示信息提示用户按照图示方式右手握持电子设备、且右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要右手握持在电子设备的下部位置,右手虎口接触电子设备相对于用户视线的右下角,右手有3个手指接触到电子设备相对于用户视线的左侧,右手的大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图4b所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。FIG. 4b is a schematic diagram of another kind of prompt information for holding the right hand in a vertical screen according to an embodiment of the application. As shown in FIG. 4b, the prompt information prompts the user to hold the electronic device with the right hand according to the diagram, and the right thumb needs to be Make a natural arc sliding along the preset curve in the figure. According to the prompt information, the user needs to hold the right hand at the lower position of the electronic device, the right hand's mouth touches the lower right corner of the electronic device relative to the user's line of sight, and the right hand has 3 fingers to touch To the left side of the electronic device relative to the user's line of sight, the thumb of the right hand slides in a natural arc along the preset curve in the figure. When the user holds the electronic device and performs a touch operation as shown in Figure 4b, the electronic device Corresponding holding gesture data and touch operation data are collected.
示例性的,在图4b所示提示信息的指示下,可以在右手握持下大拇指做自然弧形滑动屏幕10次后,再根据提示信息换左手握持下大拇指做自然弧形滑动屏幕10次,直至提示动作完成,以完成数据采集。Exemplarily, under the instruction of the prompt information shown in Figure 4b, after 10 times of sliding the screen in a natural arc while holding the thumb with the right hand, then according to the prompt information, change the thumb with the left hand to slide the screen in a natural arc. 10 times until the prompt action is completed to complete the data collection.
图4c为本申请实施例提供的再一种竖屏右手握持的提示信息的示意图,如图4c所示,所述提示信息提示用户按照图示方式右手握持电子设备、且左手手指需要在图中的标注位置做点击操作和上下滑动,用户根据所述提示信息,需要右手握持在电子设备的上部位置,右手的大拇指和食指接触电子设备相对于用户视线的右侧和右上角,右手有3个手指接触到电子设备相对于用户视线的左侧,左手的手指的在触控面板上做点击操作和上下滑动操作,在用户按照图4c所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。FIG. 4c is a schematic diagram of another kind of prompt information for holding the right hand in a vertical screen according to an embodiment of the application. As shown in FIG. 4c, the prompt information prompts the user to hold the electronic device with the right hand according to the diagram, and the fingers of the left hand need to be The marked position in the figure is clicked and swiped up and down. According to the prompt information, the user needs to hold the right hand on the upper position of the electronic device, and the thumb and index finger of the right hand touch the right and upper right corners of the electronic device relative to the user's line of sight. Three fingers of the right hand touch the left side of the electronic device relative to the user's line of sight. The fingers of the left hand click and slide up and down on the touch panel. When the user holds the electronic device and touches it as shown in Figure 4c During the control operation, the electronic device collects corresponding holding gesture data and touch operation data.
示例性的,在图4c所示提示信息的指示下,可以执行右手握持下左手5个手指依次在屏幕中间做点击动作各1次,上下滑动屏幕各1次,动作重复10次,直至提示动作已完成,根据提示信息换手操作,换成左手握持,右手各手指完成点击滑动动作10次,直至提示动作已完成,以完成数据采集。Exemplarily, under the instruction of the prompt information shown in FIG. 4c, you can hold the right hand and hold the five fingers of the left hand to click in the middle of the screen once each, slide the screen up and down once each, and repeat the action 10 times until the prompt is displayed. After the action has been completed, change hands according to the prompt information to hold it with the left hand, and complete the click and slide action 10 times with each finger of the right hand until the prompt action is completed to complete the data collection.
图4d为本申请实施例提供一种竖屏双手握持的提示信息的示意图,如图4d所示,所述提示信息提示用户按照图示方式双手握持电子设备、且左手和右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要双手握持在电子设备的中部位置,右手虎口接触电子设备相对于用户视线的右侧,左手虎口接触电子设备相对于用户视线的左侧,右手大拇指沿图中的预设曲线做自然弧形滑动,左手大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图4d所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。FIG. 4d is a schematic diagram of prompt information for holding a vertical screen with both hands according to an embodiment of the present application. As shown in FIG. 4d, the prompt information prompts a user to hold an electronic device with both hands according to the diagram, and the left and right thumbs need to be Make a natural arc sliding along the preset curve in the figure. According to the prompt information, the user needs to hold both hands in the middle of the electronic device. On the left side of the user's line of sight, the right thumb slides in a natural arc along the preset curve in the figure, and the left thumb slides in a natural arc along the preset curve in the figure, and the user holds it as shown in Figure 4d. When the electronic device performs a touch operation, the electronic device collects corresponding holding gesture data and touch operation data.
图5a为本申请实施例提供的一种横屏右手握持的提示信息的示意图,如图5a所示,所述提示信息提示用户按照图示方式右手握持电子设备、且右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要右手握持在电子设备的中部位置,右手手指接触电子设备相对于用户视线的右侧,右手大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图5a所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。Fig. 5a is a schematic diagram of prompt information for holding the right hand on a horizontal screen according to an embodiment of the present application. As shown in Fig. 5a, the prompt information prompts the user to hold the electronic device with the right hand as shown in the figure, and the right thumb needs to be along the The preset curve in the figure slides in a natural arc. According to the prompt information, the user needs to hold the right hand in the middle of the electronic device, the finger of the right hand touches the right side of the electronic device relative to the user's line of sight, and the thumb of the right hand follows the line in the figure. The preset curve slides in a natural arc shape. When the user holds the electronic device in the manner shown in FIG. 5a and performs a touch operation, the electronic device collects corresponding holding gesture data and touch operation data.
示例性的,在图5a所示提示信息的指示下,可以执行单右手完成握持下大拇指自然滑动5次,再根据提示信息换左手完成同样动作,直至提示动作已完成,以完成数据采集。Exemplarily, under the instruction of the prompt information shown in FIG. 5a, one right hand can be performed to complete the natural sliding of the lower thumb for 5 times, and then the left hand can be changed according to the prompt information to complete the same action until the prompt action is completed to complete the data collection. .
图5b为本申请实施例提供的又一种横屏右手握持的提示信息的示意图,如图5b所示,所述提示信息提示用户按照图示方式右手握持电子设备、且右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要右手握持在电子设备的下部位置,右手手指接触电子设备相对于用户视线的右下角,右手大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图5b所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。Fig. 5b is a schematic diagram of another kind of prompt information for holding the right hand on a horizontal screen according to an embodiment of the application. As shown in Fig. 5b, the prompt information prompts the user to hold the electronic device with the right hand according to the diagram, and the right thumb needs to be Make a natural arc sliding along the preset curve in the figure. According to the prompt information, the user needs to hold the right hand at the lower position of the electronic device. The preset curve slides in a natural arc shape. When the user holds the electronic device in the manner shown in FIG. 5b and performs a touch operation, the electronic device collects corresponding holding gesture data and touch operation data.
示例性的,在图5b所示提示信息的指示下,可以执行单右手完成握持下大拇指自然滑动5次,再根据提示信息换左手完成同样动作,直至提示动作已完成,以完成数据采集。Exemplarily, under the instruction of the prompt information shown in Fig. 5b, one right hand can be used to complete the natural sliding of the thumb for 5 times, and then change the left hand according to the prompt information to complete the same action until the prompt action is completed to complete the data collection. .
图5c为本申请实施例提供的一种横屏双手握持的提示信息的示意图,如图5c所示,所述提示信息提示用户按照图示方式双手握持电子设备、且左手和右手大拇指需要沿图中的预设曲线做自然弧形滑动,用户根据所述提示信息,需要双手握持在电子设备的下部位置,右手虎口接触电子设备相对于用户视线的右下角,左手虎口接触电子设备相对于用户视线的左下角,右手大拇指沿图中的预设曲线做自然弧形滑动,左手大拇指沿图中的预设曲线做自然弧形滑动,在用户按照图5c所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。FIG. 5c is a schematic diagram of prompt information of a horizontal screen held by both hands according to an embodiment of the application. As shown in FIG. 5c, the prompt information prompts the user to hold the electronic device with both hands according to the diagram, and the left and right thumbs It is necessary to make a natural arc sliding along the preset curve in the figure. According to the prompt information, the user needs to hold both hands at the lower position of the electronic device, the right hand's mouth is in contact with the lower right corner of the electronic device relative to the user's line of sight, and the left hand's mouth is in contact with the electronic device. Relative to the lower left corner of the user's line of sight, the right thumb slides in a natural arc along the preset curve in the figure, and the left thumb slides in a natural arc along the preset curve in the figure. When holding the electronic device and performing a touch operation, the electronic device collects corresponding holding gesture data and touch operation data.
示例性的,在图5c所示提示信息的指示下,可以执行投篮式握持下左右手大拇指交替完成自然滑动各5次,直至提示动作已完成,以完成数据采集。Exemplarily, under the instruction of the prompting information shown in FIG. 5c , the left and right thumbs can alternately perform natural sliding 5 times under the shooting-grip grip, until the prompting action is completed, so as to complete the data collection.
图5d为本申请实施例提供的另一种横屏双手握持的提示信息的示意图,如图5d所示,所述提示信息提示用户按照图示方式双手握持电子设备、且左手食指和右手食指需要在图中的标注位置做点击操作,用户根据所述提示信息,需要双手握持在电子设备的下部位置,且双手的食指搭靠在电子设备的2个上角落与触控面板接触,右手虎口接触电子设备相对于用户视线的右下角,左手虎口接触电子设备相对于用户视线的左下角,左手食指和右手食指在图中的标注位置做点击操作,在用户按照图5d所示的方式握持电子设备且进行触控操作时,电子设备采集到了对应的握持姿态数据和触控操作数据。Fig. 5d is a schematic diagram of another kind of prompt information for two-hand holding in a horizontal screen provided by an embodiment of the application. As shown in Fig. 5d, the prompt information prompts the user to hold the electronic device with both hands according to the diagram, and the left index finger and right hand The index finger needs to click on the marked position in the figure. According to the prompt information, the user needs to hold both hands at the lower part of the electronic device, and the index fingers of both hands rest on the two upper corners of the electronic device to contact the touch panel. The tab of the right hand touches the lower right corner of the electronic device relative to the user's sight, and the tab of the left hand touches the lower left corner of the electronic device relative to the user's sight. When the electronic device is held and a touch operation is performed, the electronic device collects corresponding holding gesture data and touch operation data.
示例性的,在图5d所示提示信息的指示下,可以执行投篮式握持下左右手食指交替完成点击操作各5次,直至提示动作已完成,以完成数据采集。Exemplarily, under the instruction of the prompting information shown in FIG. 5d , the left and right index fingers may alternately complete the clicking
可以理解的是,以上列举出的提示信息的示意图,并不用于对需要采集的握持方式的限制,在实际应用场景中可以根据需要确定采集哪些握持姿态+触控操作对应的握持姿态数据和触控操作数据。此外,触控面板对握持姿态数据和触控操作数据采集是毫米级的,也就是说握持、点击、滑动等采集的数据都是离散的特征数据。It can be understood that the schematic diagrams of the prompt information listed above are not used to limit the holding methods that need to be collected. In actual application scenarios, which holding gestures to collect + the corresponding holding gestures for touch operations can be determined as needed. data and touch operation data. In addition, the touch panel collects holding gesture data and touch operation data at the millimeter level, that is to say, the data collected by holding, clicking, sliding, etc. are all discrete feature data.
在获得了多种握持姿态下产生的握持姿态数据和触控操作数据后,由于需要得到的信息是抑制区域,因此我们需要对采集的数据进行处理后才能对预设的识别模型进行训练。After obtaining the holding posture data and touch operation data generated under various holding postures, since the information to be obtained is the inhibition area, we need to process the collected data before training the preset recognition model. .
在一些实施例中,为了提高训练模型的准确度,在获取用户采用所述握持姿态握持时对应的握持姿态数据以及用户进行所述触控操作时对应的触控操作数据时,可以在对检测到的数据进行验证后再获取,即只获取有效数据,丢弃无效数据。In some embodiments, in order to improve the accuracy of the training model, when acquiring the holding gesture data corresponding to the user holding the holding gesture and the touch operation data corresponding to the user performing the touch operation, you may After verifying the detected data, obtain it, that is, only obtain valid data and discard invalid data.
本实施例中,所述步骤202所述获取用户采用所述握持姿态握持所述电子设备对应的握持姿态数据,以及用户进行所述触控操作对应的触控操作数据,可以包括:In this embodiment, the obtaining of the holding gesture data corresponding to the user using the holding gesture to hold the electronic device and the touch operation data corresponding to the user performing the touch operation in
步骤2021:检测到用户采用所述握持姿态握持所述电子设备对应的握持姿态数据,以及用户进行所述触控操作对应的触控操作数据;Step 2021: Detecting holding gesture data corresponding to the electronic device held by the user using the holding gesture, and touch operation data corresponding to the user performing the touch operation;
步骤2022:根据所述触控操作数据确定用户采用的所述握持姿态是否与所述提示信息指示的所述握持姿态匹配;Step 2022: Determine whether the holding posture adopted by the user matches the holding posture indicated by the prompt information according to the touch operation data;
步骤2023:响应于所述用户采用的所述握持姿态与所述提示信息指示的所述握持姿态匹配,获取所述用户采用所述握持姿态握持所述电子设备对应的握持姿态数据,以及进行所述触控操作对应的触控操作数据。Step 2023: In response to the fact that the holding posture adopted by the user matches the holding posture indicated by the prompt information, obtain the holding posture corresponding to the electronic device held by the user in the holding posture data, and touch operation data corresponding to the touch operation.
进一步的,所述触控操作数据可以包括所述用户的操作部位与所述触控面板的滑动轨迹,所述步骤2022根据所述触控操作数据确定用户采用的所述握持姿态是否与所述提示信息指示的所述握持姿态匹配,可以包括:根据所述用户的操作部位与所述触控面板的滑动轨迹确定所述触控操作对应的操作部位;根据所述触控操作对应的操作部位和所述提示信息指示的握持姿态对应的握持部位,确定用户采用的所述握持姿态是否与所述提示信息指示的所述握持姿态匹配。Further, the touch operation data may include the operation part of the user and the sliding track of the touch panel. Step 2022 determines whether the holding gesture adopted by the user is consistent with the touch operation data according to the touch operation data. Matching the holding posture indicated by the prompt information may include: determining the operation part corresponding to the touch operation according to the operation part of the user and the sliding track of the touch panel; The operation part and the holding part corresponding to the holding posture indicated by the prompt information determine whether the holding posture adopted by the user matches the holding posture indicated by the prompt information.
需要说明的是,在用户根据提示信息进行握持操作和触控操作时,检测到了握持姿态和触控操作的数据。但是为了确定采集数据的正确性,还需要进行验证,一种方式可以根据所述用户的操作部位与所述触控面板的滑动轨迹确定所述触控操作对应的操作部位,根据所述触控操作对应的操作部位和所述提示信息指示的握持姿态对应的握持部位,验证用户采用的所述握持姿态是否与所述提示信息指示的所述握持姿态匹配。It should be noted that when the user performs a holding operation and a touch operation according to the prompt information, the data of the holding posture and the touch operation are detected. However, in order to determine the correctness of the collected data, verification is also required. One way is to determine the operation part corresponding to the touch operation according to the user's operation part and the sliding trajectory of the touch panel, and according to the touch Operate the corresponding operation part and the holding part corresponding to the holding posture indicated by the prompt information, and verify whether the holding posture adopted by the user matches the holding posture indicated by the prompt information.
进一步的,所述操作部位可以为手指,所述根据所述触控操作对应的操作部位和所述提示信息指示的握持姿态对应的握持部位,确定用户采用的所述握持姿态是否与所述提示信息指示的所述握持姿态匹配,可以包括:若所述操作部位为拇指,且属于所述握持部位对应的手,则确定用户采用的所述握持姿态与所述提示信息指示的所述握持姿态匹配;或,若所述操作部位为手指,且不属于所述握持部位对应的手,则确定用户采用的所述握持姿态与所述提示信息指示的所述握持姿态匹配。Further, the operation part may be a finger, and it is determined according to the operation part corresponding to the touch operation and the holding part corresponding to the holding posture indicated by the prompt information whether the holding posture adopted by the user is the same as that of the user. The matching of the holding posture indicated by the prompt information may include: if the operation part is the thumb and belongs to the hand corresponding to the holding part, determining that the holding posture adopted by the user and the prompt information The indicated holding posture matches; or, if the operating part is a finger and does not belong to the hand corresponding to the holding part, it is determined that the holding posture adopted by the user is the same as the one indicated by the prompt information. The holding pose matches.
示例性的,当提示信息指示的握持姿态为左手握持,检测到的用户的操作部位为左手拇指时,可以确定用户是左手握持、左手操作,即用户采用的握持姿态与提示信息指示的握持姿态匹配;若提示信息提示的握持姿态为左手握持,检测到的用户的操作部位为右手食指时,可以确定是左手握持、右手操作,即用户采用的握持姿态与提示信息指示的握持姿态匹配。即当用户左手握持时,可以左手大拇指进行触控操作,也可以右手的任意手指进行触控操作,通过确定触控操作对应的操作部位可以反向验证用户采用的握持部位是否正确。Exemplarily, when the holding gesture indicated by the prompt information is left-hand holding, and the detected operation part of the user is the left thumb, it can be determined that the user is holding with the left hand and operating with the left hand, that is, the holding gesture adopted by the user and the prompt information. The indicated holding posture matches; if the holding posture indicated by the prompt information is left-hand holding, and the detected operation part of the user is the right index finger, it can be determined that it is a left-hand holding and a right-hand operation, that is, the holding posture adopted by the user is the same as that of the user. The holding gesture indicated by the prompt information matches. That is, when the user holds it with the left hand, he can perform the touch operation with the thumb of the left hand, or with any finger of the right hand. By determining the operation part corresponding to the touch operation, it can be reversely verified whether the holding part used by the user is correct.
进一步的,当用户的握持部位与操作部位属于同一只手时,所述操作部位可以为手指,所述根据所述用户的操作部位与所述触控面板的滑动轨迹确定所述触控操作对应的操作部位,可以包括:根据所述滑动轨迹的起点和所述滑动轨迹的终点确定中点,所述中点为所述起点和所述终点的连线的中点;确定所述滑动轨迹的中垂线与所述滑动轨迹的交点;根据所述中点与所述交点的横坐标的差值与差值阈值的大小关系,确定所述触控操作对应的操作部位,其中,若所述差值大于差值阈值则所述操作部位为右手手指,若所述差值小于差值阈值则所述操作部位为左手手指。Further, when the user's holding part and the operating part belong to the same hand, the operating part may be a finger, and the touch operation is determined according to the user's operating part and the sliding track of the touch panel. The corresponding operation part may include: determining a midpoint according to the starting point of the sliding track and the end point of the sliding track, where the midpoint is the midpoint of the line connecting the starting point and the end point; determining the sliding track The intersection of the vertical line and the sliding track; according to the difference between the abscissa of the midpoint and the intersection and the difference threshold, determine the operation part corresponding to the touch operation, where if the If the difference is greater than the difference threshold, the operation part is the finger of the right hand, and if the difference is less than the difference threshold, the operation part is the finger of the left hand.
需要说明的是,根据用户录入的滑动数据,结合人体工学对人体的手指关节运动特征轨迹来计算指关节相对于手机屏幕的位置,可得到手机操作者握持时是单左手、单右手,或是双手。轨迹计算既可以辅助判读握持姿态,也可以结合采集的握持姿态数据推测出虎口、大鱼际的接触面积大小,用于抑制区域设定。It should be noted that, according to the sliding data entered by the user, the position of the finger joint relative to the screen of the mobile phone is calculated in combination with the ergonomic movement characteristic trajectory of the finger joints of the human body. are hands. Trajectory calculation can not only assist in interpreting the holding posture, but also infer the size of the contact area of the tiger's mouth and the thenar in combination with the collected holding posture data, which can be used to set the suppression area.
示例性的,图6为本申请实施例提供的一种拇指滑动轨迹的示意图,如图6所示,电子设备的屏幕预设有坐标系,以电子设备面对用户视线的左下角为原点,x轴为电子设备的下边缘线,y轴为电子设备的左侧边缘线,利用轨迹数据识别左右手操作判断,相应的几何关系如图6所示。识别方法如下:首先,过(x1,y1)和(x2,y2)直线段的中点(xz,yz),做中垂线L并与弧线相交于(x0,y0)点。中点:中垂线L: 通过计算(xz,yz)与(x0,y0)的相对坐标位置判断进行拇指滑屏操作的是左手还是右手,当(xz-x0)>0时为右手操作手机,当(xz-x0)<0时为左手操作手机。Exemplarily, FIG. 6 is a schematic diagram of a thumb sliding trajectory provided by an embodiment of the application. As shown in FIG. 6 , a coordinate system is preset on the screen of the electronic device, and the origin is the lower left corner of the electronic device facing the user's line of sight. The x-axis is the lower edge line of the electronic device, and the y-axis is the left edge line of the electronic device. The trajectory data is used to identify the left and right hand operation and judgment, and the corresponding geometric relationship is shown in Figure 6. The identification method is as follows: First, pass the midpoint (x z , y z ) of the straight line segment (x 1 , y 1 ) and (x 2 , y 2 ), make a mid-perpendicular line L and intersect the arc at (x 0 , y 0 ) point. midpoint: The vertical line L: By calculating the relative coordinate positions of ( x z , y z ) and ( x 0 , y 0 ), it is judged whether the thumb sliding operation is left or right hand. When (x z -x 0 )<0, the left hand operates the mobile phone.
进一步的,当用户的握持部位与操作部位不属于同一只手时,所述操作部位可以为手指,所述根据所述用户的操作部位与所述触控面板的滑动轨迹确定所述触控操作对应的操作部位,可以包括:根据所述滑动轨迹的指纹特征,确定所述触控操作对应的操作部位。Further, when the user's holding part and the operating part do not belong to the same hand, the operating part may be a finger, and the touch control is determined according to the user's operating part and the sliding track of the touch panel. Operating the corresponding operation part may include: determining the operation part corresponding to the touch operation according to the fingerprint feature of the sliding track.
可以理解的是,电子设备内置的预设的识别模型,能够根据点击容值数据的指纹特征进行学习标记,能够精确识别触控手指类型,即左右手的哪个手指动作。因此在用户输入点击数据或者滑动数据后,可以根据指纹确定是哪只手的哪个手指的操作。It can be understood that the preset recognition model built into the electronic device can learn and mark according to the fingerprint feature of the click volume data, and can accurately identify the type of the touch finger, that is, which finger of the left and right hands is moving. Therefore, after the user inputs the click data or the swipe data, the operation of which finger of which hand is performed can be determined according to the fingerprint.
图7为本申请实施例提供的另一种防误触方法的流程示意图,如图7所示,在图3所示实施例的基础上,在步骤203之后,即在获得用户在所述多种握持姿态下产生的握持姿态数据和触控操作数据之后,所述方法还可以包括:FIG. 7 is a schematic flowchart of another method for preventing accidental touch provided by an embodiment of the present application. As shown in FIG. 7 , on the basis of the embodiment shown in FIG. 3 , after
步骤204:根据每一种所述握持姿态下产生的握持姿态数据和触控操作数据,确定每一种所述握持姿态下对应的抑制区域。Step 204 : According to the holding posture data and the touch operation data generated in each of the holding postures, determine a corresponding inhibition area under each of the holding postures.
需要说明的是,对一种握持姿态对应的握持姿态数据和触控操作数据进行分析,可以确定在该握持姿态下对应的抑制区域,采用相同的方法对多种握持姿态中每一种握持姿态对应的握持姿态数据和触控操作数据进行处理后,就得到了每一种握持姿态对应的抑制区域,该抑制区域数据可以用于对预设的识别模型的训练。It should be noted that, by analyzing the holding posture data and touch operation data corresponding to a holding posture, the corresponding inhibition area under the holding posture can be determined, and the same method is used to analyze each holding posture of the various holding postures. After the holding gesture data and touch operation data corresponding to one holding gesture are processed, the inhibition area corresponding to each holding gesture is obtained, and the inhibition area data can be used for training the preset recognition model.
步骤205:根据多种所述握持姿态下产生的所述握持姿态数据、所述触控操作数据以及每一种所述握持姿态下对应的抑制区域,对所述预设的识别模型进行训练,得到所述训练后的识别模型。Step 205 : According to the holding posture data, the touch operation data and the corresponding inhibition area under each holding posture generated under a variety of holding postures, identify the preset recognition model. Perform training to obtain the trained recognition model.
需要说明的是,电子设备在出厂前已内置预设的识别模型,该模型利用已公开的图像特征深度学习方法,通过对点击容值数据的指纹特征进行学习标记,能够精确识别触控手指类型,即左右手的哪个手指动作。由于每个用户的手的特征存在差异,通过使用用户的个人握持和触控的特征数据对预设的识别模型进行训练,可进一步提高模型的精准度。It should be noted that the electronic device has a built-in preset recognition model before leaving the factory. The model uses the disclosed deep learning method of image features to learn and mark the fingerprint features of the click volume data to accurately identify the type of touch finger. , that is, which fingers of the left and right hands move. Since the characteristics of each user's hand are different, the accuracy of the model can be further improved by training the preset recognition model using the user's personal holding and touch characteristic data.
本实施例中,可以将采集的用户在所述多种握持姿态下产生的握持姿态数据和触控操作数据80%作为训练集、20%作为检验集应用到预设的识别模型进行校正,在模型校正后模型识别精度可大幅提升。In this embodiment, 80% of the collected holding gesture data and touch operation data generated by the user under the various holding gestures can be used as a training set and 20% as a test set and applied to a preset recognition model for correction. , the model recognition accuracy can be greatly improved after model correction.
在一些实施例中,所述电子设备预设有多个抑制区域,步骤204根据每一种所述握持姿态下产生的握持姿态数据和触控操作数据,确定每一种所述握持姿态下对应的抑制区域,可以包括:确定与所述握持姿态对应的目标抑制区域;获取所述握持姿态数据中处于所述目标抑制区域内的握持姿态数据;根据处于所述目标抑制区域内的握持姿态数据确定至少一个多边形;确定所述至少一个多边形的最大外接矩形;确定所述最大外接矩形为所述握持姿态下对应的抑制区域。In some embodiments, the electronic device is preset with a plurality of suppression areas, and step 204 determines each of the holding gestures according to the holding gesture data and touch operation data generated under each of the holding gestures The corresponding suppression area under the posture may include: determining a target suppression area corresponding to the holding posture; acquiring the holding posture data within the target suppression area in the holding posture data; The holding gesture data in the area determines at least one polygon; determines the largest circumscribed rectangle of the at least one polygon; and determines the largest circumscribed rectangle as the corresponding inhibition area under the holding posture.
需要说明的是,为了快速确定握持姿态下对应的抑制区域,电子设备可以预设抑制区域以及握持姿态与抑制区域的对应关系。It should be noted that, in order to quickly determine the corresponding inhibition area under the holding posture, the electronic device may preset the inhibition area and the corresponding relationship between the holding posture and the inhibition area.
图8为本申请实施例提供的一种竖屏的预设抑制区域的设置示意图,如图8所示,竖屏的预设抑制区域可以包括6个预设抑制区域,图中①-⑥分别为左上角区域,左长边区域,左下角区域,右上角区域,右长边区域和右下角区域。FIG. 8 is a schematic diagram of setting a preset suppression area for a vertical screen according to an embodiment of the present application. As shown in FIG. 8 , the preset suppression area for a vertical screen may include 6 preset suppression areas. In the figure, ①-⑥ are respectively are the upper left area, the left long side area, the lower left area, the upper right area, the right long side area and the lower right area.
图9为本申请实施例提供的一种横屏的预设抑制区域的设置示意图,如图9所示,横屏的预设抑制区域也可以包括6个预设抑制区域,图中①-⑥分别为右上角区域,上长边区域,左上角区域,右下角区域,下长边区域和左下角区域。FIG. 9 is a schematic diagram of setting a preset suppression area of a horizontal screen provided by an embodiment of the present application. As shown in FIG. 9 , the preset suppression area of a horizontal screen may also include 6 preset suppression areas, ①-⑥ in the figure They are the upper right corner area, the upper long side area, the upper left corner area, the lower right corner area, the lower long side area and the lower left corner area.
需要说明的是,每种握持姿态可以有对应的预设抑制区域,因此在确定了握持姿态后就可以确定对应的需要抑制的抑制区域的范围,即对应的目标抑制区域,然后获取在目标抑制区域中的握持姿态数据,根据所述握持姿态数据确定对应的多边形,求解出所述多边形的最大外接矩形,该最大外接矩形即为对应的抑制区域。It should be noted that each holding posture can have a corresponding preset inhibition area, so after the holding posture is determined, the corresponding range of the inhibition area to be inhibited can be determined, that is, the corresponding target inhibition area, and then obtained in For the holding attitude data in the target suppression area, the corresponding polygon is determined according to the holding attitude data, and the maximum circumscribed rectangle of the polygon is obtained, and the maximum bounding rectangle is the corresponding suppression area.
其中,握持姿态下抑制区域长方形面积的计算方法可以是:获取已采集的握持姿态下触屏容值变化数据对应的不规则图形,计算这些不规则图形的最大外接矩形。Wherein, the method for calculating the rectangular area of the suppression region in the holding posture may be as follows: acquiring irregular figures corresponding to the collected touch screen volume value change data in the holding posture, and calculating the maximum circumscribed rectangle of these irregular figures.
图10为本申请实施例提供的一种最大外接矩形的示意图,如图10所示,电子设备相对于用户视线左侧检测到3块接触区域,左侧的3块接触区域处于图8中的第②区域,求解出了第一最大外接矩形,电子设备相对于用户视线右侧检测到1块接触区域,求解出了第二最大外接矩形,因此,电子设备的抑制区域即为图中两个虚线标注的第一最大外接矩形和第二最大外接矩形区域。FIG. 10 is a schematic diagram of a maximum circumscribed rectangle provided by an embodiment of the present application. As shown in FIG. 10 , the electronic device detects three contact areas on the left side of the user's line of sight, and the three contact areas on the left are in the area shown in FIG. 8 . In the second area, the first largest circumscribed rectangle is solved. The electronic device detects a contact area on the right side of the user's line of sight, and the second largest circumscribed rectangle is solved. Therefore, the suppression area of the electronic device is the two in the figure. The first largest enclosing rectangle and the second largest enclosing rectangle area marked by dotted lines.
示例性的,当识别到图4a握持姿态时,则将图8中⑤和②区域作为目标抑制区域,抑制范围为根据握持姿态数据计算出的最大外接矩形面积,⑤和②矩形的中心高度对齐;当识别到图4b握持姿态时,将图8中③、⑥区域作为目标抑制区域,抑制范围为根据握持姿态数据计算出的最大外接矩形面积;当识别到图4c握持姿态时,将图8中①、②、④、⑤区域作为目标抑制区域,抑制范围为根据握持姿态数据计算出的最大外接矩形面积,⑤和②矩形的顶端高度对齐;当识别到图4d握持姿态时,将图8中②、③、⑤和⑥区域作为目标抑制区域,抑制范围为根据握持姿态数据计算出的最大外接矩形面积,⑤和②矩形的顶端高度对齐;当识别到图5a握持姿态图时,将图9中④区域作为目标抑制区域,此时其它区域不做抑制,抑制范围为根据握持姿态数据计算出的最大外接矩形面积;当识别图5b握持姿态时,将图9中①、⑤和④区域作为目标抑制区域,此时其它区域不做抑制,抑制范围为根据握持姿态数据计算出的最大外接矩形面积;当识别到图5c握持姿态时,将图9中④、⑤和⑥区域作为目标抑制区域,此时其它区域不做抑制,抑制范围为根据握持姿态数据计算出的最大外接矩形面积;当识别到图5d握持姿态时,将图9中除②外5个区域作为目标抑制区域,此时其它区域不做抑制,抑制范围为根据握持姿态数据计算出的最大外接矩形面积。Exemplarily, when the holding posture in Fig. 4a is recognized, then the
可以理解的是,在训练阶段将上述数据输入预设的识别模型进行训练后,得到训练后的识别模型,使用训练后的识别模型,就可以实现基于握持识别的边缘防误触的方法。It can be understood that, in the training stage, after the above data is input into the preset recognition model for training, the trained recognition model is obtained, and the method for preventing false touches based on grip recognition can be realized by using the trained recognition model.
本实施例提供的方法,将采集的接触数据输入训练后的识别模型,训练后的识别模型根据握持操作和触控操作时感应量变化特征,识别握持指触状态来动态设定抑制区域。实现该方法的核心是采集用户在多种握持姿态+触控操作下的数据,对数据进行分析、计算、标注处理后对预设的识别模型进行训练,得到了训练后的识别模型。In the method provided in this embodiment, the collected contact data is input into the trained recognition model, and the trained recognition model recognizes the holding and finger-touch state to dynamically set the suppression area according to the change characteristics of the sensing amount during the holding operation and the touch operation. . The core of realizing this method is to collect the data of the user under various holding gestures + touch operation, analyze, calculate, and label the data, and then train the preset recognition model to obtain the trained recognition model.
在采集用户在多种握持姿态+触控操作下的数据时,包括了用户10个指头感应数据、握持数据、触控操作数据等,计算形成手指识别预判,根据不同握持姿态学习记忆高频的掌压区域,通过训练后的识别模型内置的触控算法和判断逻辑,使用户在电子设备握持使用过程中,电子设备能够自动根据不同的握持姿态和手指触控动作,进一步识别触控意图、动态抑制掌压区域,从而灵活规避因为使用静态设定抑制区域带来的边缘不灵敏或握持误触发等品质风险及隐患。When collecting the data of the user under various holding gestures + touch operation, including the user's 10 finger sensing data, holding data, touch operation data, etc., the calculation forms finger recognition prediction, and learning according to different holding gestures Memorize the high-frequency palm pressure area, and through the built-in touch algorithm and judgment logic of the trained recognition model, the electronic device can automatically respond to different holding postures and finger touch actions during the user's holding and use of the electronic device. Further identify the touch intention and dynamically suppress the palm pressure area, so as to flexibly avoid quality risks and hidden dangers such as edge insensitivity or incorrect grip triggering caused by the use of statically set suppression areas.
本申请提供的方案自动感知电子设备的左右手握持操作无需要新增加硬件配置,可以节约电子设备的制造成本并方便系统的升级。此外,由于是对当前实际操作的手指运动进行记忆和判断,因此采用该方法实现电子设备操作的左右手识别的实时性和准确性较高,可准确设定不同握持姿态下抑制区域范围。该方案可用于不同边缘形态(直面屏、曲面屏、折叠屏卷轴屏等)的电子设备的边缘防误触机制。The solution provided by the present application automatically senses the left and right hand holding operation of the electronic device without adding new hardware configuration, which can save the manufacturing cost of the electronic device and facilitate the system upgrade. In addition, because the current actual finger movement is memorized and judged, this method is used to realize the real-time and accurate recognition of the left and right hands of the electronic device operation, and can accurately set the inhibition area range under different holding postures. This solution can be used for the edge anti-mistouch mechanism of electronic devices with different edge forms (straight screen, curved screen, folding screen scroll screen, etc.).
可以理解的是,上述实施例中的部分或全部步骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It can be understood that, some or all of the steps or operations in the foregoing embodiments are only examples, and other operations or variations of various operations may also be performed in the embodiments of the present application. Furthermore, the various steps may be performed in a different order presented in the above-described embodiments, and may not perform all operations in the above-described embodiments.
上文中结合图1至图10详细描述了本申请实施例的防误触方法,下面将结合图11至图12,详细描述本申请实施例的防误触装置。The false-touch prevention method of the embodiment of the present application is described in detail above with reference to FIGS. 1 to 10 , and the false-touch prevention device of the embodiment of the present application will be described in detail below with reference to FIGS. 11 to 12 .
图11为本申请实施例提供的一种防误触装置的结构示意图,如图11所示,该装置1100包括:获取模块1101、处理模块1102和执行模块1103。FIG. 11 is a schematic structural diagram of an anti-missing device provided by an embodiment of the present application. As shown in FIG. 11 , the device 1100 includes an
其中,获取模块1101,用于获取用户在所述电子设备的触控面板上的当前接触数据;处理模块1102,用于将所述当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,所述训练后的识别模型通过用户在多种握持姿态下产生的握持姿态数据和触控操作数据对预设的识别模型进行训练得到,其中,所述握持姿态数据用于指示用户的握持部位与所述触控面板接触产生的接触数据,所述触控操作数据用于指示用户的操作部位在所述触控面板进行触控操作产生的接触数据;执行模块1103,用于对所述当前接触数据对应的抑制区域执行第一操作,所述第一操作用于控制所述当前接触数据对应的抑制区域的触控灵敏度小于或等于灵敏度阈值。Among them, the
其中,获取模块1101、处理模块1102和执行模块1103的具体执行过程,请参见前述图2~图10所示的实施例,在此不再赘述。For the specific execution process of the
应理解,这里的防误触装置1100以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,防误触装置1100可以具体为上述实施例中的电子设备,或者,上述实施例中电子设备的功能可以集成在防误触装置1100中,防误触装置1100可以用于执行上述方法实施例中与电子设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the device 1100 for preventing accidental touch here is embodied in the form of functional modules. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (eg, a shared processor, a proprietary processor, or a group of processors) for executing one or more software or firmware programs. processors, etc.) and memory, merge logic, and/or other suitable components to support the described functions. In an optional example, those skilled in the art can understand that the device 1100 for preventing accidental touch may be specifically the electronic device in the foregoing embodiment, or the functions of the electronic device in the foregoing embodiment may be integrated into the device 1100 for preventing accidental touch, The device 1100 for preventing accidental touch may be used to execute each process and/or step corresponding to the electronic device in the above method embodiments, and to avoid repetition, details are not described herein again.
上述防误触装置1100具有实现上述方法中电子设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The above-mentioned device 1100 for preventing accidental touch has the function of implementing the corresponding steps performed by the electronic device in the above-mentioned method; the above-mentioned functions may be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的实施例,图12中的防误触装置1100也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In the embodiment of the present application, the device 1100 for preventing accidental touch in FIG. 12 may also be a chip or a chip system, such as a system on chip (system on chip, SoC).
图12为本申请实施例提供的另一防误触装置的结构示意图,该防误触装置1200包括:处理器1201和存储器1202,通信接口1203以及总线1204。其中,存储器1202用于存储指令,该处理器1201用于执行该存储器1202存储的指令。处理器1201、存储器1202和通信接口1203通过总线1204实现彼此之间的通信连接。例如,处理器1201用于将所述当前接触数据输入训练后的识别模型,得到与所述当前接触数据对应的抑制区域,并对当前接触数据对应的抑制区域进行第一操作,通过第一操作将当前接触数据对应的抑制区域的触控灵敏度小于或等于灵敏度阈值,以防止用户误触。FIG. 12 is a schematic structural diagram of another device for preventing accidental touch according to an embodiment of the present application. The device 1200 for preventing accidental touch includes: a
应理解,防误触装置1200可以具体为上述实施例中的电子设备,上述实施例中电子设备的功能可以集成在防误触装置1200中,防误触装置1200可以用于执行上述方法实施例中与电子设备对应的各个步骤和/或流程。It should be understood that the device 1200 for preventing accidental touches may be specifically the electronic equipment in the above embodiments, the functions of the electronic devices in the above embodiments may be integrated in the device 1200 for preventing accidental touches, and the device 1200 for preventing accidental touches may be used to execute the above method embodiments Each step and/or process corresponding to the electronic device in .
可选地,该存储器1202可以包括只读存储器和随机存取存储器,并向处理器1201提供指令和数据。存储器1202的一部分还可以包括非易失性随机存取存储器。例如,存储器1202还可以存储设备类型的信息。该处理器1201可以用于执行存储器中存储的指令,并且该处理器执行该指令时,该处理器1201可以执行上述方法实施例中与电子设备对应的各个步骤和/或流程。Optionally, the
本申请实施例还进一步提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行前述的握持方式检测方法。Embodiments of the present application further provide a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on an electronic device, the electronic device is made to perform the aforementioned holding method Detection method.
上述计算机可读存储介质可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(readonly memory,ROM)、可擦式可编程只读存储器(erasable programmable read onlymemory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The aforementioned computer-readable storage media may employ any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory, ROM), erasable programmable read only memory (EPROM) or flash memory, optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、射频(radio frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本说明书操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(localarea network,LAN)或广域网(wide area network,WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of this specification may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (eg, using Internet service provider to connect via the Internet).
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中的部分或全部步骤。Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute some or all of the steps in the foregoing method embodiments.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by different The function module is completed, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented. Another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this. Covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210878003.XA CN115237327A (en) | 2022-07-25 | 2022-07-25 | Anti-mistouch method, device, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210878003.XA CN115237327A (en) | 2022-07-25 | 2022-07-25 | Anti-mistouch method, device, storage medium and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115237327A true CN115237327A (en) | 2022-10-25 |
Family
ID=83674792
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210878003.XA Withdrawn CN115237327A (en) | 2022-07-25 | 2022-07-25 | Anti-mistouch method, device, storage medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115237327A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119883023A (en) * | 2023-10-24 | 2025-04-25 | Oppo广东移动通信有限公司 | Picture jitter optimization method and related device |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104932825A (en) * | 2015-06-15 | 2015-09-23 | 金陵科技学院 | Method for automatically sensing left hand/right hand to operate mobile phone and determining moving thermal region of thumb |
| CN106708263A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for preventing false touch of touch screen |
| CN106775405A (en) * | 2016-12-16 | 2017-05-31 | 广东欧珀移动通信有限公司 | Method and device for preventing false touch on touch screen of mobile terminal, and mobile terminal |
| CN109710111A (en) * | 2018-12-30 | 2019-05-03 | 联想(北京)有限公司 | A kind of false-touch prevention method and electronic equipment |
| CN112068730A (en) * | 2020-08-27 | 2020-12-11 | 北京小米移动软件有限公司 | Point output control method, point output control device, and storage medium |
| CN113190156A (en) * | 2021-05-13 | 2021-07-30 | 杭州网易云音乐科技有限公司 | Music playing control method and device, storage medium and electronic equipment |
| CN113467644A (en) * | 2021-07-21 | 2021-10-01 | 无锡变格新材料科技有限公司 | Calibration method and device of touch equipment, terminal equipment and storage medium |
| CN113552995A (en) * | 2020-04-24 | 2021-10-26 | 深圳市万普拉斯科技有限公司 | Mobile terminal accident prevention method, device, computer equipment and storage medium |
| CN114185444A (en) * | 2020-08-24 | 2022-03-15 | 北京小米移动软件有限公司 | Method and device for preventing mistaken touch of touch screen and storage medium |
| CN114612283A (en) * | 2022-03-18 | 2022-06-10 | 北京达佳互联信息技术有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
-
2022
- 2022-07-25 CN CN202210878003.XA patent/CN115237327A/en not_active Withdrawn
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104932825A (en) * | 2015-06-15 | 2015-09-23 | 金陵科技学院 | Method for automatically sensing left hand/right hand to operate mobile phone and determining moving thermal region of thumb |
| CN106708263A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for preventing false touch of touch screen |
| CN106775405A (en) * | 2016-12-16 | 2017-05-31 | 广东欧珀移动通信有限公司 | Method and device for preventing false touch on touch screen of mobile terminal, and mobile terminal |
| CN109710111A (en) * | 2018-12-30 | 2019-05-03 | 联想(北京)有限公司 | A kind of false-touch prevention method and electronic equipment |
| CN113552995A (en) * | 2020-04-24 | 2021-10-26 | 深圳市万普拉斯科技有限公司 | Mobile terminal accident prevention method, device, computer equipment and storage medium |
| CN114185444A (en) * | 2020-08-24 | 2022-03-15 | 北京小米移动软件有限公司 | Method and device for preventing mistaken touch of touch screen and storage medium |
| CN112068730A (en) * | 2020-08-27 | 2020-12-11 | 北京小米移动软件有限公司 | Point output control method, point output control device, and storage medium |
| CN113190156A (en) * | 2021-05-13 | 2021-07-30 | 杭州网易云音乐科技有限公司 | Music playing control method and device, storage medium and electronic equipment |
| CN113467644A (en) * | 2021-07-21 | 2021-10-01 | 无锡变格新材料科技有限公司 | Calibration method and device of touch equipment, terminal equipment and storage medium |
| CN114612283A (en) * | 2022-03-18 | 2022-06-10 | 北京达佳互联信息技术有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119883023A (en) * | 2023-10-24 | 2025-04-25 | Oppo广东移动通信有限公司 | Picture jitter optimization method and related device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5507494B2 (en) | Portable electronic device with touch screen and control method | |
| US9690475B2 (en) | Information processing apparatus, information processing method, and program | |
| KR101844366B1 (en) | Apparatus and method for recognizing touch gesture | |
| JP5759660B2 (en) | Portable information terminal having touch screen and input method | |
| US9400560B2 (en) | Image display device and display control method thereof | |
| EP3792740B1 (en) | Key setting method and device, and storage medium | |
| EP2778849A1 (en) | Method and apparatus for operating sensors of user device | |
| KR20130099717A (en) | Apparatus and method for providing user interface based on touch screen | |
| CN109558061B (en) | Operation control method and terminal | |
| KR20150019352A (en) | Method and apparatus for grip recognition in electronic device | |
| US20140267025A1 (en) | Method and apparatus for operating sensors of user device | |
| US11520481B2 (en) | Touch display screen operation method and user equipment | |
| CN108319386A (en) | A kind of display screen false-touch prevention method and mobile terminal | |
| CN109445656B (en) | Screen control method and terminal equipment | |
| WO2019153362A1 (en) | Fingerprint input method, and terminal | |
| CN111158548A (en) | Screen folding method and electronic device | |
| CN106598422B (en) | hybrid control method, control system and electronic equipment | |
| CN115237327A (en) | Anti-mistouch method, device, storage medium and electronic equipment | |
| CN107943406A (en) | A kind of touch-screen touch point determines method and terminal | |
| JP2014056519A (en) | Portable terminal device, incorrect operation determination method, control program, and recording medium | |
| TW201504929A (en) | Electronic apparatus and gesture control method thereof | |
| KR20140033726A (en) | Method and apparatus for distinguishing five fingers in electronic device including touch screen | |
| CN111443802A (en) | Measurement method and electronic device | |
| KR101424562B1 (en) | Space sensing device, method of operating the same, and system including the same | |
| CN109491515B (en) | An input method, an intelligent terminal, and a computer-readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20221025 |
|
| WW01 | Invention patent application withdrawn after publication |


