Movatterモバイル変換


[0]ホーム

URL:


CN115033121A - Anti-mistouch method, device, equipment and storage medium - Google Patents

Anti-mistouch method, device, equipment and storage medium
Download PDF

Info

Publication number
CN115033121A
CN115033121ACN202110194166.1ACN202110194166ACN115033121ACN 115033121 ACN115033121 ACN 115033121ACN 202110194166 ACN202110194166 ACN 202110194166ACN 115033121 ACN115033121 ACN 115033121A
Authority
CN
China
Prior art keywords
touch
touch screen
area
false
usage scenario
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.)
Pending
Application number
CN202110194166.1A
Other languages
Chinese (zh)
Inventor
王彤辉
刘颖红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN202110194166.1ApriorityCriticalpatent/CN115033121A/en
Publication of CN115033121ApublicationCriticalpatent/CN115033121A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The present disclosure relates to a method, an apparatus, a device and a storage medium for preventing a false touch, the method is applied to an electronic device having a preset sensor and a touch screen, the preset sensor includes at least one of a gyro sensor and an acceleration sensor; the method comprises the following steps: acquiring sensor data acquired based on the preset sensor and touch screen signal data acquired based on the touch screen; determining a usage scenario of the electronic device based on the sensor data and the touch screen signal data, the usage scenario including at least a device pose and a holding pose; determining a false touch prevention area of the touch screen based on the usage scene; and controlling the false touch prevention area to prohibit response to false touch operation. The method and the device can improve the accuracy of determining the false touch prevention area of the touch screen of the electronic equipment, thereby better controlling the false touch prevention area to forbid response to false touch operation and improving the false touch prevention effect of the electronic equipment.

Description

Translated fromChinese
防误触方法、装置、设备及存储介质Anti-mistouch method, device, equipment and storage medium

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种防误触方法、装置、设备及存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a method, apparatus, device and storage medium for preventing accidental touch.

背景技术Background technique

全面屏时代,移动终端设备,尤其是以手机为代表的便携式电子设备,屏占比越来越大,边缘曲面弧度明显。但是随之而来的问题是边缘触控体验变差。用户在享受全面屏的良好视觉体验的同时,也需要获得优秀的触控体验。相关技术中的防误触方案通常是基于触摸屏边缘区域信号特征来识别左右手握持,针对性的对边缘区域信号进行抑制,达到手掌内侧误触的优化。然而该方案中所确定的边缘抑制区域不够准确,会影响最终进行防触控的效果。In the era of full screen, mobile terminal devices, especially portable electronic devices represented by mobile phones, have a larger and larger screen ratio, and the edge curvature is obvious. But the problem that comes with it is that the edge touch experience gets worse. While enjoying the good visual experience of the full screen, users also need to obtain an excellent touch experience. The anti-mistouch solution in the related art is usually based on the signal characteristics of the edge area of the touch screen to identify left and right hand holding, and to suppress the signal of the edge area in a targeted manner, so as to achieve the optimization of the wrong touch on the inside of the palm. However, the edge suppression area determined in this solution is not accurate enough, which will affect the final anti-touch effect.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开实施例提供一种防误触方法、装置、设备及存储介质,用以解决相关技术中的缺陷。In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a method, apparatus, device and storage medium for preventing accidental touch, so as to solve the defects in the related art.

根据本公开实施例的第一方面,提供一种防误触方法,应用于具有预设传感器和触摸屏的电子设备,所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个;According to a first aspect of the embodiments of the present disclosure, a method for preventing false touches is provided, which is applied to an electronic device having a preset sensor and a touch screen, where the preset sensor includes at least one of a gyroscope sensor and an acceleration sensor;

所述方法包括:The method includes:

获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;acquiring sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;

基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;

基于所述使用场景确定所述触摸屏的防误触区域;determining an anti-mistouch area of the touch screen based on the usage scenario;

控制所述防误触区域禁止响应误触操作。The false-touch prevention area is controlled to prohibit responding to false-touch operations.

在一实施例中,所述方法还包括:In one embodiment, the method further includes:

检测作用于所述防误触区域的触控操作;detecting a touch operation acting on the anti-mistouch area;

若所述触控操作满足设定条件,则确定所述触控操作为误触操作,所述设定条件包括以下至少一项:If the touch operation satisfies a set condition, it is determined that the touch operation is a false touch operation, and the set condition includes at least one of the following:

触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;

触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;

触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.

在一实施例中,所述基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,包括:In an embodiment, the determining a usage scenario of the electronic device based on the sensor data and the touch screen signal data includes:

将所述传感器数据和所述触摸屏信号数据输入值预先训练的使用场景确定模型中,得到所述电子设备的使用场景。The sensor data and the touch screen signal data are input into a pre-trained usage scenario determination model to obtain a usage scenario of the electronic device.

在一实施例中,所述方法还包括预先基于以下步骤训练所述使用场景确定模型:In one embodiment, the method further includes pre-training the usage scenario determination model based on the following steps:

获取样本传感器数据和样本触摸屏信号数据;Obtain sample sensor data and sample touch screen signal data;

确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景;determining a usage scenario corresponding to the sample sensor data and the sample touch screen signal data;

基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。Train the pre-built model to be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, terminate the training of the model, and obtain the currently trained usage scenario determination model .

在一实施例中,所述基于所述使用场景确定所述触摸屏的防误触区域,包括:In an embodiment, the determining an anti-mistouch area of the touch screen based on the usage scenario includes:

基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域;Determine, based on the pre-built correspondence data, an anti-mistouch reference area corresponding to the usage scenario;

基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数;determining an area adjustment coefficient based on a comparison result between the false-touch prevention reference area and the current touch area;

基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。The false-touch prevention area is determined based on the product of the false-touch prevention reference area and the area adjustment coefficient.

在一实施例中,所述方法还包括:In one embodiment, the method further includes:

获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据;Acquiring target data whose value is greater than or equal to the set signal threshold in the touch screen signal data;

基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。The current touch area is determined based on the target data corresponding to the position of the touch screen.

根据本公开实施例的第二方面,提供一种防误触装置,应用于具有预设传感器和触摸屏的电子设备,所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个;According to a second aspect of the embodiments of the present disclosure, there is provided an anti-mistouch device, which is applied to an electronic device having a preset sensor and a touch screen, the preset sensor including at least one of a gyroscope sensor and an acceleration sensor;

所述装置包括:The device includes:

数据获取模块,用于获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;a data acquisition module, configured to acquire sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;

场景确定模块,用于基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;a scene determination module, configured to determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;

区域确定模块,用于基于所述使用场景确定所述触摸屏的防误触区域;an area determination module, configured to determine an anti-mistouch area of the touch screen based on the usage scenario;

误触控制模块,用于控制所述防误触区域禁止响应误触操作。The false-touch control module is used to control the false-touch prevention area to prohibit responding to false-touch operations.

在一实施例中,所述装置还包括:误触操作确定模块;In an embodiment, the apparatus further includes: a false-touch operation determination module;

所述误触操作确定模块,包括:The false-touch operation determination module includes:

触控操作检测单元,用于检测作用于所述防误触区域的触控操作;a touch operation detection unit for detecting a touch operation acting on the false-touch prevention area;

误触操作确定单元,用于当所述触控操作满足设定条件时,确定所述触控操作为误触操作,所述设定条件包括以下至少一项:A false touch operation determination unit, configured to determine that the touch operation is a false touch operation when the touch operation satisfies a set condition, and the set condition includes at least one of the following:

触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;

触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;

触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.

在一实施例中,所述场景确定模块还用于将所述传感器数据和所述触摸屏信号数据输入值预先训练的使用场景确定模型中,得到所述电子设备的使用场景。In an embodiment, the scenario determination module is further configured to input the sensor data and the touch screen signal data into a pre-trained usage scenario determination model to obtain a usage scenario of the electronic device.

在一实施例中,所述装置还包括用于预先训练所述使用场景确定模型的模型训练模块;In one embodiment, the apparatus further includes a model training module for pre-training the usage scenario determination model;

所述模型训练模块,包括:The model training module includes:

样本数据获取单元,用于获取样本传感器数据和样本触摸屏信号数据;a sample data acquisition unit for acquiring sample sensor data and sample touch screen signal data;

使用场景确定单元,用于确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景;a usage scenario determination unit, configured to determine a usage scenario corresponding to the sample sensor data and the sample touch screen signal data;

确定模型获取单元,用于基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。Determine a model acquisition unit, which is used to train the pre-built model to be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, terminate the training of the model, and obtain The currently trained usage scenario determines the model.

在一实施例中,所述区域确定模块,包括:In one embodiment, the area determination module includes:

参考区域确定单元,用于基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域;a reference area determination unit, configured to determine an anti-mistouch reference area corresponding to the usage scenario based on pre-built correspondence data;

调整系数确定单元,用于基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数;an adjustment coefficient determination unit, configured to determine an area adjustment coefficient based on a comparison result between the false-touch prevention reference area and the current touch area;

防误触区域确定单元,用于基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。A false-touch prevention area determination unit, configured to determine the false-touch prevention area based on the product of the false-touch prevention reference area and the area adjustment coefficient.

在一实施例中,所述区域确定模块,还包括:当前触控区域确定单元;In one embodiment, the area determination module further includes: a current touch area determination unit;

所述当前触控区域确定单元,用于:The current touch area determination unit is used for:

获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据;Acquiring target data whose value is greater than or equal to the set signal threshold in the touch screen signal data;

基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。The current touch area is determined based on the target data corresponding to the position of the touch screen.

根据本公开实施例的第三方面,提供一种电子设备,所述设备包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, the device comprising:

预设传感器、触摸屏、处理器以及用于存储处理器可执行指令的存储器;a preset sensor, a touch screen, a processor, and a memory for storing instructions executable by the processor;

其中,所述处理器被配置为:wherein the processor is configured to:

获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;acquiring sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;

基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;

基于所述使用场景确定所述触摸屏的防误触区域;determining an anti-mistouch area of the touch screen based on the usage scenario;

控制所述防误触区域禁止响应误触操作。The false-touch prevention area is controlled to prohibit responding to false-touch operations.

根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现:According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to realize:

获取基于预设传感器采集的传感器数据以及基于触摸屏采集的触摸屏信号数据;Acquire sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;

基于所述传感器数据和所述触摸屏信号数据确定电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;

基于所述使用场景确定触摸屏的防误触区域;Determine an anti-mistouch area of the touch screen based on the usage scenario;

控制所述防误触区域禁止响应误触操作。The false-touch prevention area is controlled to prohibit responding to false-touch operations.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开通过获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据,并基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态,进而可以基于所述使用场景确定所述触摸屏的防误触区域,可以提高确定电子设备的触摸屏的防误触区域的准确性,从而可以更好的控制防误触区域禁止响应误触操作,提升电子设备的防误触效果。The present disclosure obtains sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen, and determines a usage scenario of the electronic device based on the sensor data and the touch screen signal data, the usage scenario It includes at least the device posture and the holding posture, and then the anti-mistouch area of the touch screen can be determined based on the usage scenario, which can improve the accuracy of determining the anti-mistouch area of the touch screen of the electronic device, so as to better control the anti-mistouch area. The touch area is prohibited from responding to false touch operations, improving the anti-false touch effect of electronic equipment.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种防误触方法的流程图;FIG. 1 is a flowchart of a method for preventing accidental touch according to an exemplary embodiment;

图2是根据又一示例性实施例示出的一种防误触方法的流程图;FIG. 2 is a flowchart of a method for preventing accidental touch according to another exemplary embodiment;

图3是根据一示例性实施例示出的如何训练所述使用场景确定模型的流程图;3 is a flowchart showing how to train the usage scenario determination model according to an exemplary embodiment;

图4是根据一示例性实施例示出的如何基于所述使用场景确定所述触摸屏的防误触区域的流程图;FIG. 4 is a flowchart showing how to determine an anti-mistouch area of the touch screen based on the usage scenario, according to an exemplary embodiment;

图5A是根据一示例性实施例示出的如何确定当前触控区域的流程图;5A is a flowchart illustrating how to determine a current touch area according to an exemplary embodiment;

图5B是根据一示例性实施例示出的当前触控区域的示意图;FIG. 5B is a schematic diagram illustrating a current touch area according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种防误触装置的框图;6 is a block diagram of a device for preventing false touches according to an exemplary embodiment;

图7是根据又一示例性实施例示出的一种防误触装置的框图;FIG. 7 is a block diagram of a device for preventing false touches according to yet another exemplary embodiment;

图8是根据一示例性实施例示出的一种电子设备的框图。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施例并不代表与本公开相一致的所有实施例。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

图1是根据一示例性实施例示出的一种防误触方法的流程图;本实施例的方法可以应用于具有预设传感器和触摸屏的电子设备(如,智能手机、平板电脑、笔记本电脑或可穿戴设备等),所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个。FIG. 1 is a flow chart of a method for preventing accidental touch according to an exemplary embodiment; the method in this embodiment can be applied to electronic devices (such as smart phones, tablet computers, notebook computers or wearable device, etc.), the preset sensor includes at least one of a gyroscope sensor and an acceleration sensor.

如图1所示,该方法包括以下步骤S101-S104:As shown in Figure 1, the method includes the following steps S101-S104:

在步骤S101中,获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据。In step S101, sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen are acquired.

其中,上述预设传感器可以包括陀螺仪、加速度传感器等,本实施例对此不进行限定。The above-mentioned preset sensor may include a gyroscope, an acceleration sensor, etc., which is not limited in this embodiment.

上述触摸屏信号数据可以包括用户的手指触摸电子设备的触摸屏时,由触摸屏内的触控单元检测到的信号数据。The above-mentioned touch screen signal data may include signal data detected by a touch control unit in the touch screen when the user's finger touches the touch screen of the electronic device.

举例来说,当电子设备的触摸屏检测到用户的触摸时,可以采集相应的触摸屏信号数据,并获取电子设备的预设传感器采集的传感器数据。For example, when the touch screen of the electronic device detects a user's touch, corresponding touch screen signal data can be collected, and sensor data collected by a preset sensor of the electronic device can be obtained.

在步骤S102中,基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景。In step S102, a usage scenario of the electronic device is determined based on the sensor data and the touch screen signal data.

本实施例中,当获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据后,可以基于上述采集的传感器数据和触摸屏信号数据确定该电子设备的使用场景。In this embodiment, after acquiring the sensor data collected based on the preset sensor and the touch screen signal data collected based on the touch screen, a usage scenario of the electronic device can be determined based on the collected sensor data and the touch screen signal data.

在一实施例中,上述使用场景可以至少包括电子设备的设备姿态和握持姿态。In one embodiment, the above-mentioned usage scenario may include at least a device posture and a holding posture of the electronic device.

举例来说,上述电子设备的设备姿态包括电子设备在三维坐标系下的旋转角度等。For example, the device posture of the electronic device includes a rotation angle of the electronic device in a three-dimensional coordinate system, and the like.

值得说明的是,上述握持姿态的类型可以基于实际业务需要进行预先定义,如定义为坐姿或站姿下的单手竖屏握持、双手横屏握持以及卧姿下的单手竖屏握持、双手横屏握持等,本实施例对此不进行限定。It is worth noting that the above types of holding postures can be pre-defined based on actual business needs, such as one-handed vertical screen holding in sitting or standing positions, two-handed horizontal screen holding, and one-handed vertical screen holding in a lying position. Holding, holding the screen horizontally with both hands, etc., are not limited in this embodiment.

在一实施例中,当获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据后,可以将上述采集的传感器数据和触摸屏信号数据输入到预先训练好的场景确定模型中,以便基于模型的输出结果确定该电子设备的使用场景。其中,该场景确定模型的训练方式可以参见下述图3所示实施例,在此先不进行详述。In one embodiment, after acquiring the sensor data collected based on the preset sensor and the touch screen signal data collected based on the touch screen, the above collected sensor data and touch screen signal data can be input into the pre-trained scene determination model. in order to determine the usage scenario of the electronic device based on the output result of the model. For the training method of the scene determination model, reference may be made to the embodiment shown in FIG. 3 below, which will not be described in detail here.

在步骤S103中,基于所述使用场景确定所述触摸屏的防误触区域。In step S103, an anti-mistouch area of the touch screen is determined based on the usage scenario.

本实施例中,当基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景后,可以基于所述使用场景确定所述触摸屏的防误触区域。In this embodiment, after a usage scenario of the electronic device is determined based on the sensor data and the touch screen signal data, an accidental touch prevention area of the touch screen may be determined based on the usage scenario.

可以理解的是,电子设备处于不同的使用场景时,用户对于电子设备的触摸屏的触碰区域也有所不同,因而本实施例中可以预先确定多种使用场景对应的防误触区域,从而在确定电子设备的当前使用场景的情况下,基于该使用场景确定相应的触摸屏的防误触区域,可以提高确定防误触区域的合理性和准确性。It can be understood that when the electronic device is in different usage scenarios, the user's touch area on the touch screen of the electronic device is also different. Therefore, in this embodiment, the anti-mistouch areas corresponding to various usage scenarios can be pre-determined, so that the In the case of the current usage scenario of the electronic device, determining the corresponding anti-mistouch area of the touch screen based on the usage scenario can improve the rationality and accuracy of determining the anti-mistouch area.

其中,上述防误触区域可以用于禁止响应用户的误触操作,提高电子设备运行的稳定性。Wherein, the above-mentioned anti-mistouch area can be used to prohibit responding to a user's mistouch operation, thereby improving the stability of the operation of the electronic device.

在另一实施例中,上述基于所述使用场景确定所述触摸屏的防误触区域的方式可以参见下述图4所示实施例,在此先不进行详述。In another embodiment, for the above-mentioned manner of determining the anti-mistouch area of the touch screen based on the usage scenario, reference may be made to the embodiment shown in FIG. 4 below, which will not be described in detail here.

在步骤S104中,控制所述防误触区域禁止响应误触操作。In step S104, the false-touch prevention area is controlled to prohibit responding to false-touch operations.

本实施例中,当基于所述使用场景确定所述触摸屏的防误触区域后,可以控制所述防误触区域禁止响应误触操作。In this embodiment, after the accidental touch prevention area of the touch screen is determined based on the usage scenario, the accidental touch prevention area may be controlled to prohibit responding to an accidental touch operation.

举例来说,当确定触摸屏上的防误触区域后,若检测到用户的误触操作,可以控制电子设备在防误触区域禁止响应该误触操作,如对该误触操作不进行响应。For example, after determining the false-touch prevention area on the touch screen, if a user's false-touch operation is detected, the electronic device can be controlled to prohibit responding to the false-touch operation in the false-touch prevention area, such as not responding to the false-touch operation.

由上述描述可知,本实施例通过获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据,并基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态,进而可以基于所述使用场景确定所述触摸屏的防误触区域,可以提高确定电子设备的触摸屏的防误触区域的准确性,从而可以更好的控制防误触区域禁止响应误触操作,提升电子设备的防误触效果。As can be seen from the above description, in this embodiment, the use of the electronic device is determined based on the sensor data collected based on the preset sensor and the touch screen signal data collected based on the touch screen, and based on the sensor data and the touch screen signal data The usage scenario includes at least the device posture and the holding posture, and then the accidental touch prevention area of the touch screen can be determined based on the usage scenario, which can improve the accuracy of determining the accidental touch prevention area of the touch screen of the electronic device, so that it can be Better control of the anti-mistouch area. It is forbidden to respond to mis-touch operations and improve the anti-mistouch effect of electronic equipment.

图2是根据又一示例性实施例示出的一种防误触方法的流程图;本实施例的方法可以应用于具有预设传感器和触摸屏的电子设备(如,智能手机、平板电脑、笔记本电脑或可穿戴设备等),所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个。FIG. 2 is a flow chart of a method for preventing accidental touch according to another exemplary embodiment; the method in this embodiment can be applied to electronic devices (eg, smart phones, tablet computers, notebook computers) with preset sensors and touch screens or wearable device, etc.), the preset sensor includes at least one of a gyroscope sensor and an acceleration sensor.

如图2所示,该方法包括以下步骤S201-S206:As shown in Figure 2, the method includes the following steps S201-S206:

在步骤S201中,获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据。In step S201, sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen are acquired.

在步骤S202中,基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态。In step S202, a usage scenario of the electronic device is determined based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device gesture and a holding gesture.

在步骤S203中,基于所述使用场景确定所述触摸屏的防误触区域。In step S203, an anti-mistouch area of the touch screen is determined based on the usage scenario.

在步骤S204中,检测作用于所述防误触区域的触控操作。In step S204, a touch operation acting on the false-touch prevention area is detected.

本实施例中,当基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景后,可以基于该防误触区域内的触控装置检测用户针对该区域的触控操作。In this embodiment, after the usage scene of the electronic device is determined based on the sensor data and the touch screen signal data, the user's touch operation on the area may be detected based on the touch device in the false-touch prevention area.

在步骤S205中,若所述触控操作满足设定条件,则确定所述触控操作为误触操作。In step S205, if the touch operation satisfies the set condition, it is determined that the touch operation is a false touch operation.

本实施例中,当检测作用于所述防误触区域的触控操作后,可以判断该触控操作是否满足以下条件,若满足条件,则可以将该触控操作确定为误触操作。In this embodiment, after detecting a touch operation acting on the false-touch prevention area, it can be determined whether the touch operation satisfies the following conditions, and if the conditions are satisfied, the touch operation can be determined as a false-touch operation.

其中,上述设定条件可以基于实际需要进行设置,如设置为以下至少一项:The above setting conditions can be set based on actual needs, such as setting at least one of the following:

触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;

触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;

触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.

在步骤S206中,控制所述防误触区域禁止响应误触操作。In step S206 , the false-touch prevention area is controlled to prohibit responding to false-touch operations.

其中,步骤S201-S203、S206的相关解释和说明可以参见上述实施例,在此不进行赘述。The relevant explanations and descriptions of steps S201-S203 and S206 may refer to the above-mentioned embodiments, which will not be repeated here.

由上述描述可知,本实施例通过检测作用于所述防误触区域的触控操作,并当所述触控操作满足设定条件时,确定所述触控操作为误触操作,可以实现准确的识别作用于防误触区域的触控操作是否为误触操作,进而可以实现后续控制所述防误触区域禁止响应误触操作,可以提高防误触的准确性,提升防误触效果。It can be seen from the above description that in this embodiment, by detecting the touch operation acting on the false-touch prevention area, and when the touch operation satisfies the set condition, it is determined that the touch operation is a false-touch operation, so that accurate touch operations can be achieved. It can identify whether the touch operation acting on the false-touch prevention area is a false-touch operation, so as to realize the subsequent control of the false-touch prevention area to prohibit responding to the false-touch operation, which can improve the accuracy of false-touch prevention and the effect of false-touch prevention.

图3是根据一示例性实施例示出的如何训练所述使用场景确定模型的流程图;本实施例在上述实施例的基础上以如何训练所述使用场景确定模型为例进行示例性说明。如图3所示,本实施例在上述实施例的基础上还包括基于以下步骤S301-S303训练所述使用场景确定模型:Fig. 3 is a flow chart showing how to train the usage scenario determination model according to an exemplary embodiment; this embodiment takes how to train the usage scenario determination model as an example to illustrate on the basis of the foregoing embodiment. As shown in FIG. 3 , on the basis of the foregoing embodiment, this embodiment further includes training the usage scenario determination model based on the following steps S301-S303:

在步骤S301中,获取样本传感器数据和样本触摸屏信号数据。In step S301, sample sensor data and sample touch screen signal data are acquired.

本实施例中,为了训练用于基于电子设备的传感器数据和触摸屏信号数据确定电子设备的使用场景的模型,可以获取该型号电子设备的样本传感器数据和样本触摸屏信号数据。In this embodiment, in order to train a model for determining a usage scenario of an electronic device based on sensor data and touch screen signal data of the electronic device, sample sensor data and sample touch screen signal data of the electronic device of this model may be acquired.

在步骤S302中,确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景。In step S302, a usage scenario corresponding to the sample sensor data and the sample touch screen signal data is determined.

本实施例中,当获取样本传感器数据和样本触摸屏信号数据后,可以确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景。In this embodiment, after the sample sensor data and the sample touch screen signal data are acquired, a usage scenario corresponding to the sample sensor data and the sample touch screen signal data can be determined.

举例来说,可以预先获取电子设备的各个使用场景下的样本传感器数据和样本触摸屏信号数据,并将该样本传感器数据和样本触摸屏信号数据与相应的使用场景进行关联,即标定该样本传感器数据和样本触摸屏信号数据对应的使用场景。For example, sample sensor data and sample touch screen signal data in various usage scenarios of the electronic device can be acquired in advance, and the sample sensor data and sample touch screen signal data can be associated with the corresponding usage scenarios, that is, the sample sensor data and the sample sensor data can be calibrated. The usage scenarios corresponding to the sample touch screen signal data.

在步骤S303中,基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。In step S303, the pre-built model to be trained is trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, the training of the model is terminated, and the current training is obtained. The usage scenario determines the model.

本实施例中,当确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景后,可以基于该样本传感器数据和样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,在当检测到满足训练终止条件时,终止对该模型的训练,从而得到当前训练的使用场景确定模型。In this embodiment, after determining the usage scenarios corresponding to the sample sensor data and the sample touch screen signal data, the pre-built to-be-trained model can be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios. When it is detected that the training termination condition is satisfied, the training of the model is terminated, thereby obtaining the currently trained usage scenario determination model.

其中,上述终止条件可以基于实际需要进行设置,如设置为满足设定的训练次数等,本实施例对此不进行限定。The above termination condition may be set based on actual needs, for example, set to meet the set number of training times, etc., which is not limited in this embodiment.

值得说明的是,上述待训练模型的类型可以基于实际需要从相关技术中进行选取,本实施例对此不进行限定。It should be noted that the type of the above model to be trained may be selected from related technologies based on actual needs, which is not limited in this embodiment.

由上述描述可知,本实施例通过获取样本传感器数据和样本触摸屏信号数据,并确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景,进而基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型,可以实现基于获取的样本数据准确的训练用于确定电子设备的使用场景的模型,可以确保后续基于该模型确定电子设备的使用场景的准确性,进而可以提高确定电子设备的触摸屏的防误触区域的准确性,提升电子设备的防误触效果。It can be seen from the above description that in this embodiment, the sample sensor data and the sample touch screen signal data are acquired, and the usage scenarios corresponding to the sample sensor data and the sample touch screen signal data are determined, and then the sample sensor data and the sample touch screen signal data are determined based on the sample sensor data and the sample touch screen. The signal data and the corresponding usage scenario train the pre-built model to be trained, and in response to detecting that the training termination condition is met, the training of the model is terminated, and the currently trained usage scenario is obtained to determine the model, which can realize accurate training based on the acquired sample data. The model used to determine the usage scenario of the electronic device can ensure the accuracy of the subsequent determination of the usage scenario of the electronic device based on the model, thereby improving the accuracy of determining the anti-mistouch area of the touch screen of the electronic device, and improving the anti-mistake of the electronic device. touch effect.

图4是根据一示例性实施例示出的如何基于所述使用场景确定所述触摸屏的防误触区域的流程图;本实施例在上述实施例的基础上以如何基于所述使用场景确定所述触摸屏的防误触区域为例进行示例性说明。如图4所示,上述步骤S103中所述基于所述使用场景确定所述触摸屏的防误触区域,可以包括以下步骤S401-S403:Fig. 4 is a flow chart showing how to determine the anti-mistouch area of the touch screen based on the usage scenario according to an exemplary embodiment; this embodiment is based on the above-mentioned embodiment and shows how to determine the anti-mistouch area based on the usage scenario The anti-mistouch area of the touch screen is taken as an example to illustrate. As shown in FIG. 4 , determining the anti-mistouch area of the touch screen based on the usage scenario in the above step S103 may include the following steps S401-S403:

在步骤S401中,基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域。In step S401 , based on pre-built correspondence data, a false-touch prevention reference area corresponding to the usage scenario is determined.

本实施例中,可以预先构建不同使用场景与相应的防误触参考区域之间的对应关系,得到对应关系数据,进而当基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景后,可以基于上述预先构建的对应关系数据,确定该使用场景对应的防误触参考区域。In this embodiment, the corresponding relationship between different usage scenarios and the corresponding anti-mistouch reference area can be pre-built to obtain the corresponding relationship data, and then the use of the electronic device is determined based on the sensor data and the touch screen signal data. After the scene is established, the reference area for preventing accidental touches corresponding to the usage scene may be determined based on the above-mentioned pre-built correspondence data.

在步骤S402中,基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数。In step S402, an area adjustment coefficient is determined based on a comparison result between the false-touch prevention reference area and the current touch area.

本实施例中,当基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域后,可以基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数。In this embodiment, after determining the false-touch prevention reference area corresponding to the usage scene based on the pre-built correspondence data, the area adjustment coefficient may be determined based on the comparison result between the false-touch prevention reference area and the current touch area.

举例来说,当确定所述使用场景对应的防误触参考区域后,可以将上述防误触参考区域与电子设备的当前触控区域进行比较,得到比较结果。其中,该比较结果可以为二者之间的比值,本实施例对此不进行限定。For example, after determining the false-touch prevention reference area corresponding to the usage scene, the above-mentioned false-touch prevention reference area may be compared with the current touch area of the electronic device to obtain a comparison result. The comparison result may be a ratio between the two, which is not limited in this embodiment.

在一实施例中,当确定所述防误触参考区域与当前触控区域的比较结果后,可以基于该比较结果确定区域调整系数。例如,当比较结果大于设定阈值时,可以将该区域调整系数设置为一较大数值;而当比较结果小于或等于设定阈值时,可以将该区域调整系数设置为一较小数值。In one embodiment, after the comparison result between the false-touch prevention reference area and the current touch area is determined, an area adjustment coefficient may be determined based on the comparison result. For example, when the comparison result is greater than the preset threshold, the region adjustment coefficient can be set to a larger value; and when the comparison result is less than or equal to the preset threshold, the region adjustment coefficient can be set to a smaller value.

举例来说,图5A是根据一示例性实施例示出的如何确定当前触控区域的流程图;本实施例在上述实施例的基础上以如何确定当前触控区域为例进行示例性说明。如图5A所示,本实施例还包括基于以下步骤S501-S502确定所述当前触控区域:For example, FIG. 5A is a flowchart showing how to determine the current touch area according to an exemplary embodiment; this embodiment uses how to determine the current touch area as an example to illustrate on the basis of the above embodiments. As shown in FIG. 5A , this embodiment further includes determining the current touch area based on the following steps S501-S502:

在步骤S501中,获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据。In step S501, acquire target data whose value is greater than or equal to a set signal threshold in the touch screen signal data.

本实施例中,当电子设备的触摸屏采集到触摸屏信号数据后,可以将该触摸屏信号数据的数值与设定信号阈值进行比较,进而获取该触摸屏信号数据中数值大于或等于设定信号阈值的目标数据。In this embodiment, after the touch screen of the electronic device collects the touch screen signal data, the value of the touch screen signal data can be compared with the set signal threshold, and then the target whose value in the touch screen signal data is greater than or equal to the set signal threshold can be obtained. data.

举例来说,图5B是根据一示例性实施例示出的当前触控区域的示意图。当电子设备的触摸屏采集到触摸屏信号数据(如图5B中左半部分所示的信号数据)后,可以将各个数据与设定信号阈值进行比较。其中,该设定信号阈值可以基于实际需要进行设置,如设置为20等,本实施例对此不进行限定。从而可以确定上述触摸屏信号数据中数值大于20的数据,即目标数据。For example, FIG. 5B is a schematic diagram illustrating a current touch area according to an exemplary embodiment. After the touch screen of the electronic device collects the touch screen signal data (the signal data shown in the left half of FIG. 5B ), each data can be compared with the set signal threshold. The set signal threshold may be set based on actual needs, for example, set to 20, etc., which is not limited in this embodiment. Therefore, the data whose value is greater than 20 in the above-mentioned touch screen signal data can be determined, that is, the target data.

在步骤S502中,基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。In step S502, the current touch area is determined based on the target data corresponding to the position of the touch screen.

本实施例中,当获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据后,可以基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。In this embodiment, after acquiring target data whose value is greater than or equal to a set signal threshold in the touch screen signal data, the current touch area may be determined based on the target data corresponding to the position of the touch screen.

举例来说,当获取上述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据后,可以确定这些目标数据对应于触摸屏的位置,进而可以将包含这些位置的区域确定为当前触控区域。For example, after acquiring the target data whose value is greater than or equal to the set signal threshold in the touch screen signal data, the position of the target data corresponding to the touch screen can be determined, and then the area including these positions can be determined as the current touch area.

仍参见图5B所示实施例,当确定触摸屏信号数据中数值大于或等于设定信号阈值的目标数据后,可以确定该目标数据对应于上述触摸屏的位置,进而可以将包含这些位置的区域确定为当前触控区域,即如图5B中有半部分所示的阴影区域。Still referring to the embodiment shown in FIG. 5B , after determining the target data whose value is greater than or equal to the set signal threshold in the touch screen signal data, it can be determined that the target data corresponds to the position of the above-mentioned touch screen, and then the area including these positions can be determined as The current touch area is the shaded area shown in the half of FIG. 5B .

通过获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据以及基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域,可以实现准确的确定电子设备的当前触控区域,进而可以提高基于防误触参考区域与该当前触控区域的比较结果确定区域调整系数的准确性。By acquiring target data whose value is greater than or equal to a set signal threshold in the touch screen signal data and determining the current touch area based on the target data corresponding to the position of the touch screen, it is possible to accurately determine the current touch of the electronic device. The control area can be further improved, and the accuracy of determining the area adjustment coefficient based on the comparison result between the false-touch prevention reference area and the current touch area can be improved.

在步骤S403中,基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。In step S403, a false-touch prevention region is determined based on the product of the false-touch prevention reference region and the region adjustment coefficient.

本实施例中,当基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数后,可以计算所述防误触参考区域与所述区域调整系数的乘积,进而可以基于该乘积确定防误触区域的大小。In this embodiment, after a region adjustment coefficient is determined based on the comparison result between the false-touch prevention reference region and the current touch region, the product of the false-touch prevention reference region and the region adjustment coefficient can be calculated, and then the product of the false-touch prevention reference region and the region adjustment coefficient can be calculated based on the The product determines the size of the false-touch prevention area.

在一实施例中,当确定防误触参考区域的大小为S1后,若确定区域调整系数为0.9,则可以计算出防误触区域的大小为0.9S1,且该防误触区域可以为在防误触参考区域的基础上缩小10%得到的区域,本实施例对此不进行限定。In one embodiment, after the size of the false-touch prevention reference area is determined to be S1 , if the area adjustment coefficient is determined to be 0.9, the size of the false-touch prevention area can be calculated to be 0.9S1 , and the false-touch prevention area can be In order to reduce the obtained area by 10% on the basis of the false-touch prevention reference area, this embodiment does not limit this.

举例来说,上述防误触参考区域可以是位于电子设备的触摸屏边缘的一个矩形区域,其横向的长度可以为m,纵向的高度可以为n,可知该防误触参考区域的大小为m x n;在此基础上,若确定区域调整系数为0.9,则可以计算出防误触区域的大小为0.9m x n;进一步的,可以将该防误触区域设置为与防误触参考区域的一侧(如,靠近触摸屏边缘的一侧)重合、且宽度为0.9m的区域。For example, the above-mentioned anti-mistouch reference area may be a rectangular area located at the edge of the touch screen of the electronic device, the horizontal length may be m, and the vertical height may be n, it can be known that the size of the mistouch prevention reference area is m x n; On this basis, if the area adjustment coefficient is determined to be 0.9, the size of the accident prevention area can be calculated to be 0.9m x n; further, the accident prevention area can be set to one side of the accident prevention reference area (such as , the side close to the edge of the touch screen) coincides with an area with a width of 0.9m.

由上述描述可知,本实施例通过基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域,并基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数,进而基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域,可以提高确定防误触区域的准确性,有利于提升后续控制防误触区域禁止响应误触操作的准确度,提升电子设备的防误触效果。It can be seen from the above description that, in this embodiment, based on the pre-built correspondence data, the anti-mistouch reference area corresponding to the usage scene is determined, and the area adjustment is determined based on the comparison result between the anti-mistouch reference area and the current touch area. coefficient, and then determine the anti-mistouch area based on the product of the anti-mistouch reference area and the area adjustment coefficient, which can improve the accuracy of determining the anti-mistouch area, which is conducive to improving the subsequent control of the anti-mistouch area and the prohibition of responding to mistouch operations. It can improve the accuracy of electronic equipment and improve the anti-mistouch effect of electronic equipment.

图6是根据一示例性实施例示出的一种防误触装置的框图;本实施例的装置可以应用于具有预设传感器和触摸屏的电子设备(如,智能手机、平板电脑、笔记本电脑或可穿戴设备等),所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个。Fig. 6 is a block diagram of a device for preventing accidental touch according to an exemplary embodiment; the device in this embodiment can be applied to electronic devices (such as smart phones, tablet computers, notebook computers or other electronic devices) with preset sensors and touch screens. wearable device, etc.), the preset sensor includes at least one of a gyroscope sensor and an acceleration sensor.

如图6所示,该装置可以包括:数据获取模块110、场景确定模块120、区域确定模块130以及误触控制模块140,其中:As shown in FIG. 6 , the apparatus may include: adata acquisition module 110, ascene determination module 120, anarea determination module 130, and a false-touch control module 140, wherein:

数据获取模块110,用于获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;adata acquisition module 110, configured to acquire sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;

场景确定模块120,用于基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;ascenario determination module 120, configured to determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device gesture and a holding gesture;

区域确定模块130,用于基于所述使用场景确定所述触摸屏的防误触区域;anarea determination module 130, configured to determine an anti-mistouch area of the touch screen based on the usage scenario;

误触控制模块140,用于控制所述防误触区域禁止响应误触操作。The false-touch control module 140 is configured to control the false-touch prevention area to prohibit responding to false-touch operations.

由上述描述可知,本实施例通过获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据,并基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态,进而可以基于所述使用场景确定所述触摸屏的防误触区域,可以提高确定电子设备的触摸屏的防误触区域的准确性,从而可以更好的控制防误触区域禁止响应误触操作,提升电子设备的防误触效果。As can be seen from the above description, in this embodiment, the use of the electronic device is determined based on the sensor data collected based on the preset sensor and the touch screen signal data collected based on the touch screen, and based on the sensor data and the touch screen signal data The usage scenario includes at least the device posture and the holding posture, and then the accidental touch prevention area of the touch screen can be determined based on the usage scenario, which can improve the accuracy of determining the accidental touch prevention area of the touch screen of the electronic device, so that it can be Better control of the anti-mistouch area. It is forbidden to respond to mis-touch operations and improve the anti-mistouch effect of electronic equipment.

图7是根据又一示例性实施例示出的一种防误触装置的框图;本实施例的装置可以应用于具有预设传感器和触摸屏的电子设备(如,智能手机、平板电脑、笔记本电脑或可穿戴设备等),所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个。本实施例中,数据获取模块210、场景确定模块220、区域确定模块230以及误触控制模块240与前述图6所示实施例中的数据获取模块110、场景确定模块120、区域确定模块130以及误触控制模块140的功能相同,在此不进行赘述。Fig. 7 is a block diagram of a device for preventing accidental touch according to another exemplary embodiment; the device in this embodiment can be applied to electronic devices (such as smart phones, tablet computers, notebook computers or wearable device, etc.), the preset sensor includes at least one of a gyroscope sensor and an acceleration sensor. In this embodiment, thedata acquisition module 210 , thescene determination module 220 , thearea determination module 230 and the falsetouch control module 240 are the same as thedata acquisition module 110 , thescene determination module 120 , thearea determination module 130 and thedata acquisition module 110 in the embodiment shown in FIG. The functions of the false-touch control module 140 are the same, and are not described in detail here.

如图7所示,上述装置还可以包括:误触操作确定模块250;As shown in FIG. 7 , the above-mentioned apparatus may further include: a false-touch operation determination module 250;

误触操作确定模块250,可以包括:The false-touch operation determination module 250 may include:

触控操作检测单元251,用于检测作用于所述防误触区域的触控操作;The touchoperation detection unit 251 is used to detect the touch operation acting on the anti-mistouch area;

误触操作确定单元252,用于当所述触控操作满足设定条件时,确定所述触控操作为误触操作,所述设定条件包括以下至少一项:The false touchoperation determination unit 252 is configured to determine that the touch operation is a false touch operation when the touch operation satisfies a set condition, and the set condition includes at least one of the following:

触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;

触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;

触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.

在一实施例中,上述场景确定模块220还可以用于将所述传感器数据和所述触摸屏信号数据输入值预先训练的使用场景确定模型中,得到所述电子设备的使用场景。In an embodiment, the above-mentionedscenario determination module 220 may also be configured to input the sensor data and the touch screen signal data into a pre-trained usage scenario determination model to obtain the usage scenario of the electronic device.

在一实施例中,上述装置还可以包括用于预先训练所述使用场景确定模型的模型训练模块260;In an embodiment, the above apparatus may further include amodel training module 260 for pre-training the usage scenario determination model;

模型训练模块260,可以包括:Themodel training module 260 may include:

样本数据获取单元261,用于获取样本传感器数据和样本触摸屏信号数据;a sampledata acquisition unit 261, configured to acquire sample sensor data and sample touch screen signal data;

使用场景确定单元262,用于确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景;a usagescenario determination unit 262, configured to determine a usage scenario corresponding to the sample sensor data and the sample touch screen signal data;

确定模型获取单元263,用于基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。A determinationmodel acquisition unit 263, configured to train the pre-built model to be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, terminate the training of the model, and Get the currently trained usage scenario determination model.

在一实施例中,上述区域确定模块230,可以包括:In one embodiment, the above-mentionedarea determination module 230 may include:

参考区域确定单元231,用于基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域;A referencearea determination unit 231, configured to determine an anti-mistouch reference area corresponding to the usage scenario based on pre-built correspondence data;

调整系数确定单元232,用于基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数;an adjustmentcoefficient determination unit 232, configured to determine an area adjustment coefficient based on a comparison result between the false-touch prevention reference area and the current touch area;

防误触区域确定单元233,用于基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。The false-touch preventionarea determination unit 233 is configured to determine the false-touch prevention area based on the product of the false-touch prevention reference area and the area adjustment coefficient.

在一实施例中,上述区域确定模块230,还可以包括:当前触控区域确定单元234;In an embodiment, the above-mentionedarea determination module 230 may further include: a current toucharea determination unit 234;

当前触控区域确定单元234,用于:The current toucharea determination unit 234 is used for:

获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据;Acquiring target data whose value is greater than or equal to the set signal threshold in the touch screen signal data;

基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。The current touch area is determined based on the target data corresponding to the position of the touch screen.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned 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 described in detail here.

图8是根据一示例性实施例示出的一种电子设备的框图。例如,设备900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment. For example,device 900 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图8,设备900可以包括以下一个或多个组件:处理组件902,存储器904,电源组件906,多媒体组件908,音频组件910,输入/输出(I/O)的接口912,传感器组件914,以及通信组件916。8, thedevice 900 may include one or more of the following components: aprocessing component 902, amemory 904, apower supply component 906, amultimedia component 908, anaudio component 910, an input/output (I/O)interface 912, asensor component 914, And thecommunication component 916 .

处理组件902通常控制设备900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件902可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理组件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。Theprocessing component 902 generally controls the overall operation of thedevice 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. Theprocessing component 902 may include one ormore processors 920 to execute instructions to perform all or some of the steps of the methods described above. Additionally,processing component 902 may include one or more modules to facilitate interaction betweenprocessing component 902 and other components. For example,processing component 902 may include a multimedia module to facilitate interaction betweenmultimedia component 908 andprocessing component 902.

存储器904被配置为存储各种类型的数据以支持在设备900的操作。这些数据的示例包括用于在设备900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 904 is configured to store various types of data to support operation atdevice 900 . Examples of such data include instructions for any application or method operating ondevice 900, contact data, phonebook data, messages, pictures, videos, and the like.Memory 904 may be implemented by any type of volatile or non-volatile storage device or 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 or Optical Disk.

电源组件906为设备900的各种组件提供电力。电源组件906可以包括电源管理系统,一个或多个电源,及其他与为设备900生成、管理和分配电力相关联的组件。Power supply assembly 906 provides power to various components ofdevice 900 .Power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power todevice 900 .

多媒体组件908包括在所述设备900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当设备900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 908 includes a screen that provides an output interface between thedevice 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, themultimedia component 908 includes a front-facing camera and/or a rear-facing camera. When thedevice 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当设备900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。Audio component 910 is configured to output and/or input audio signals. For example,audio component 910 includes a microphone (MIC) that is configured to receive external audio signals whendevice 900 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored inmemory 904 or transmitted viacommunication component 916 . In some embodiments,audio component 910 also includes a speaker for outputting audio signals.

I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 912 provides an interface between theprocessing component 902 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件914包括一个或多个传感器,用于为设备900提供各个方面的状态评估。例如,传感器组件914可以检测到设备900的打开/关闭状态,组件的相对定位,例如所述组件为设备900的显示器和小键盘,传感器组件914还可以检测设备900或设备900一个组件的位置改变,用户与设备900接触的存在或不存在,设备900方位或加速/减速和设备900的温度变化。传感器组件914还可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 914 includes one or more sensors for providing status assessments of various aspects ofdevice 900 . For example, thesensor assembly 914 can detect the open/closed state of thedevice 900, the relative positioning of components, such as the display and keypad of thedevice 900, and thesensor assembly 914 can also detect a change in the position of thedevice 900 or a component of thedevice 900 , the presence or absence of user contact with thedevice 900 , the orientation or acceleration/deceleration of thedevice 900 and the temperature change of thedevice 900 .Sensor assembly 914 may also include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件916被配置为便于设备900和其他设备之间有线或无线方式的通信。设备900可以接入基于通信标准的无线网络,如WiFi,2G或3G,4G或5G或它们的组合。在一个示例性实施例中,通信组件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 916 is configured to facilitate wired or wireless communication betweendevice 900 and other devices.Device 900 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In one exemplary embodiment, thecommunication component 916 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,设备900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子组件实现,用于执行上述方法。In an exemplary embodiment,device 900 may 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 A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由设备900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such asmemory 904 including instructions, executable byprocessor 920 ofdevice 900 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying 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 (14)

Translated fromChinese
1.一种防误触方法,其特征在于,应用于具有预设传感器和触摸屏的电子设备,所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个;1. A method for preventing false touches, characterized in that it is applied to an electronic device with a preset sensor and a touch screen, the preset sensor comprising at least one of a gyroscope sensor and an acceleration sensor;所述方法包括:The method includes:获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;acquiring sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;基于所述使用场景确定所述触摸屏的防误触区域;determining an anti-mistouch area of the touch screen based on the usage scenario;控制所述防误触区域禁止响应误触操作。The false-touch prevention area is controlled to prohibit responding to false-touch operations.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises:检测作用于所述防误触区域的触控操作;detecting a touch operation acting on the anti-mistouch area;若所述触控操作满足设定条件,则确定所述触控操作为误触操作,所述设定条件包括以下至少一项:If the touch operation satisfies a set condition, it is determined that the touch operation is a false touch operation, and the set condition includes at least one of the following:触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.3.根据权利要求1所述的方法,其特征在于,所述基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,包括:3. The method according to claim 1, wherein the determining a usage scenario of the electronic device based on the sensor data and the touch screen signal data comprises:将所述传感器数据和所述触摸屏信号数据输入值预先训练的使用场景确定模型中,得到所述电子设备的使用场景。The sensor data and the touch screen signal data are input into a pre-trained usage scenario determination model to obtain a usage scenario of the electronic device.4.根据权利要求3所述的方法,其特征在于,所述方法还包括预先基于以下步骤训练所述使用场景确定模型:4. The method according to claim 3, wherein the method further comprises pre-training the usage scenario determination model based on the following steps:获取样本传感器数据和样本触摸屏信号数据;Obtain sample sensor data and sample touch screen signal data;确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景;determining a usage scenario corresponding to the sample sensor data and the sample touch screen signal data;基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。Train the pre-built model to be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, terminate the training of the model, and obtain the currently trained usage scenario determination model .5.根据权利要求1所述的方法,其特征在于,所述基于所述使用场景确定所述触摸屏的防误触区域,包括:5 . The method according to claim 1 , wherein the determining an anti-mistouch area of the touch screen based on the usage scenario comprises: 5 .基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域;Determine, based on the pre-built correspondence data, an anti-mistouch reference area corresponding to the usage scenario;基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数;determining an area adjustment coefficient based on a comparison result between the false-touch prevention reference area and the current touch area;基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。The false-touch prevention area is determined based on the product of the false-touch prevention reference area and the area adjustment coefficient.6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, wherein the method further comprises:获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据;Acquiring target data whose value is greater than or equal to the set signal threshold in the touch screen signal data;基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。The current touch area is determined based on the target data corresponding to the position of the touch screen.7.一种防误触装置,其特征在于,应用于具有预设传感器和触摸屏的电子设备,所述预设传感器包括陀螺仪传感器和加速度传感器中的至少一个;7. An anti-mistouch device, characterized in that it is applied to an electronic device having a preset sensor and a touch screen, the preset sensor comprising at least one of a gyroscope sensor and an acceleration sensor;所述装置包括:The device includes:数据获取模块,用于获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;a data acquisition module, configured to acquire sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;场景确定模块,用于基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;a scene determination module, configured to determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;区域确定模块,用于基于所述使用场景确定所述触摸屏的防误触区域;an area determination module, configured to determine an anti-mistouch area of the touch screen based on the usage scenario;误触控制模块,用于控制所述防误触区域禁止响应误触操作。The false-touch control module is used to control the false-touch prevention area to prohibit responding to false-touch operations.8.根据权利要求7所述的装置,其特征在于,所述装置还包括:误触操作确定模块;8. The device according to claim 7, wherein the device further comprises: a false-touch operation determination module;所述误触操作确定模块,包括:The false-touch operation determination module includes:触控操作检测单元,用于检测作用于所述防误触区域的触控操作;a touch operation detection unit for detecting a touch operation acting on the false-touch prevention area;误触操作确定单元,用于当所述触控操作满足设定条件时,确定所述触控操作为误触操作,所述设定条件包括以下至少一项:A false touch operation determination unit, configured to determine that the touch operation is a false touch operation when the touch operation satisfies a set condition, and the set condition includes at least one of the following:触控时长大于或等于设定时长阈值;The touch duration is greater than or equal to the set duration threshold;触控压力大于或等于设定压力阈值;The touch pressure is greater than or equal to the set pressure threshold;触控频率大于或等于设定频率阈值。The touch frequency is greater than or equal to the set frequency threshold.9.根据权利要求7所述的装置,其特征在于,所述场景确定模块还用于将所述传感器数据和所述触摸屏信号数据输入值预先训练的使用场景确定模型中,得到所述电子设备的使用场景。9 . The apparatus according to claim 7 , wherein the scene determination module is further configured to input the sensor data and the touch screen signal data into a pre-trained usage scene determination model to obtain the electronic device. 10 . usage scenarios.10.根据权利要求9所述的装置,其特征在于,所述装置还包括用于预先训练所述使用场景确定模型的模型训练模块;10. The apparatus according to claim 9, wherein the apparatus further comprises a model training module for pre-training the usage scenario determination model;所述模型训练模块,包括:The model training module includes:样本数据获取单元,用于获取样本传感器数据和样本触摸屏信号数据;a sample data acquisition unit for acquiring sample sensor data and sample touch screen signal data;使用场景确定单元,用于确定所述样本传感器数据和所述样本触摸屏信号数据对应的使用场景;a usage scenario determination unit, configured to determine a usage scenario corresponding to the sample sensor data and the sample touch screen signal data;确定模型获取单元,用于基于所述样本传感器数据和所述样本触摸屏信号数据以及对应的使用场景训练预先构建的待训练模型,并响应于检测到满足训练终止条件,终止模型的训练,并获取当前训练的使用场景确定模型。Determine a model acquisition unit, used for training the pre-built model to be trained based on the sample sensor data and the sample touch screen signal data and the corresponding usage scenarios, and in response to detecting that the training termination condition is met, terminate the training of the model, and obtain The currently trained usage scenario determines the model.11.根据权利要求7所述的装置,其特征在于,所述区域确定模块,包括:11. The apparatus according to claim 7, wherein the area determination module comprises:参考区域确定单元,用于基于预先构建的对应关系数据,确定所述使用场景对应的防误触参考区域;a reference area determination unit, configured to determine an anti-mistouch reference area corresponding to the usage scenario based on pre-built correspondence data;调整系数确定单元,用于基于所述防误触参考区域与当前触控区域的比较结果确定区域调整系数;an adjustment coefficient determination unit, configured to determine an area adjustment coefficient based on a comparison result between the false-touch prevention reference area and the current touch area;防误触区域确定单元,用于基于所述防误触参考区域与所述区域调整系数的乘积确定防误触区域。A false-touch prevention area determination unit, configured to determine the false-touch prevention area based on the product of the false-touch prevention reference area and the area adjustment coefficient.12.根据权利要求11所述的装置,其特征在于,所述区域确定模块,还包括:当前触控区域确定单元;12 . The device according to claim 11 , wherein the area determination module further comprises: a current touch area determination unit; 12 .所述当前触控区域确定单元,用于:The current touch area determination unit is used for:获取所述触摸屏信号数据中数值大于或等于设定信号阈值的目标数据;Acquiring target data whose value is greater than or equal to the set signal threshold in the touch screen signal data;基于所述目标数据对应于所述触摸屏的位置确定所述当前触控区域。The current touch area is determined based on the target data corresponding to the position of the touch screen.13.一种电子设备,其特征在于,所述设备包括:13. An electronic device, characterized in that the device comprises:预设传感器、触摸屏、处理器以及用于存储处理器可执行指令的存储器;a preset sensor, a touch screen, a processor, and a memory for storing processor-executable instructions;其中,所述处理器被配置为:wherein the processor is configured to:获取基于所述预设传感器采集的传感器数据以及基于所述触摸屏采集的触摸屏信号数据;acquiring sensor data collected based on the preset sensor and touch screen signal data collected based on the touch screen;基于所述传感器数据和所述触摸屏信号数据确定所述电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;基于所述使用场景确定所述触摸屏的防误触区域;determining an anti-mistouch area of the touch screen based on the usage scenario;控制所述防误触区域禁止响应误触操作。Controlling the false-touch prevention area prohibits responding to false-touch operations.14.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现:14. A computer-readable storage medium on which a computer program is stored, wherein the program is implemented by a processor when executed:获取基于预设传感器采集的传感器数据以及基于触摸屏采集的触摸屏信号数据;Obtain the sensor data collected based on the preset sensor and the touch screen signal data collected based on the touch screen;基于所述传感器数据和所述触摸屏信号数据确定电子设备的使用场景,所述使用场景至少包括设备姿态和握持姿态;Determine a usage scenario of the electronic device based on the sensor data and the touch screen signal data, where the usage scenario at least includes a device posture and a holding posture;基于所述使用场景确定触摸屏的防误触区域;determining an anti-mistouch area of the touch screen based on the usage scenario;控制所述防误触区域禁止响应误触操作。Controlling the false-touch prevention area prohibits responding to false-touch operations.
CN202110194166.1A2021-02-202021-02-20 Anti-mistouch method, device, equipment and storage mediumPendingCN115033121A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110194166.1ACN115033121A (en)2021-02-202021-02-20 Anti-mistouch method, device, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110194166.1ACN115033121A (en)2021-02-202021-02-20 Anti-mistouch method, device, equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN115033121Atrue CN115033121A (en)2022-09-09

Family

ID=83118457

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110194166.1APendingCN115033121A (en)2021-02-202021-02-20 Anti-mistouch method, device, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN115033121A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118605750A (en)*2024-06-032024-09-06深圳市雅为智能技术有限公司 Touch control method and system for smart ring
CN119620878A (en)*2023-09-142025-03-14Oppo广东移动通信有限公司 Anti-accidental touch method and related device
CN119902641A (en)*2023-10-262025-04-29北京小米移动软件有限公司 Anti-accidental touch method, device, electronic device and storage medium
CN119902637A (en)*2023-10-262025-04-29北京小米移动软件有限公司 Anti-accidental touch method, device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106775086A (en)*2016-12-162017-05-31广东欧珀移动通信有限公司 Method and device for controlling touch screen of mobile terminal and mobile terminal
WO2018107903A1 (en)*2016-12-162018-06-21广东欧珀移动通信有限公司Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
CN109683742A (en)*2018-12-192019-04-26努比亚技术有限公司Prevent touch control device by error touch control method and device, touch control device and storage medium
CN111064847A (en)*2019-12-142020-04-24惠州Tcl移动通信有限公司False touch prevention method and device, storage medium and electronic equipment
CN111309179A (en)*2020-02-102020-06-19北京小米移动软件有限公司Touch screen control method and device, terminal and storage medium
CN112000270A (en)*2020-07-292020-11-27北京小米移动软件有限公司Method and device for dynamically adjusting false touch prevention area and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106775086A (en)*2016-12-162017-05-31广东欧珀移动通信有限公司 Method and device for controlling touch screen of mobile terminal and mobile terminal
WO2018107903A1 (en)*2016-12-162018-06-21广东欧珀移动通信有限公司Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
CN109683742A (en)*2018-12-192019-04-26努比亚技术有限公司Prevent touch control device by error touch control method and device, touch control device and storage medium
CN111064847A (en)*2019-12-142020-04-24惠州Tcl移动通信有限公司False touch prevention method and device, storage medium and electronic equipment
CN111309179A (en)*2020-02-102020-06-19北京小米移动软件有限公司Touch screen control method and device, terminal and storage medium
CN112000270A (en)*2020-07-292020-11-27北京小米移动软件有限公司Method and device for dynamically adjusting false touch prevention area and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119620878A (en)*2023-09-142025-03-14Oppo广东移动通信有限公司 Anti-accidental touch method and related device
CN119902641A (en)*2023-10-262025-04-29北京小米移动软件有限公司 Anti-accidental touch method, device, electronic device and storage medium
CN119902637A (en)*2023-10-262025-04-29北京小米移动软件有限公司 Anti-accidental touch method, device, electronic device and storage medium
CN118605750A (en)*2024-06-032024-09-06深圳市雅为智能技术有限公司 Touch control method and system for smart ring

Similar Documents

PublicationPublication DateTitle
US10750007B2 (en)Method and device for preventing terminal from being inadvertently touched
EP3179711B1 (en)Method and apparatus for preventing photograph from being shielded
CN106572299B (en) Camera opening method and device
US11199928B2 (en)Method and apparatus for preventing false touch on edge, and storage medium
EP3163404A1 (en)Method and device for preventing accidental touch of terminal with touch screen
CN115033121A (en) Anti-mistouch method, device, equipment and storage medium
CN105260732A (en)Image processing method and device
CN107426428A (en)Electronic equipment and display lightness regulating method
CN106980409B (en) Input control method and device
CN106548764A (en)Screen brightness control method and device
CN107480785B (en)Convolutional neural network training method and device
EP3232301B1 (en)Mobile terminal and virtual key processing method
US10061497B2 (en)Method, device and storage medium for interchanging icon positions
US20170344184A1 (en)Method, electronic device, and medium for controlling state of touch screen
CN106598429A (en)Method and device for adjusting window of mobile terminal
CN106603835A (en)Method and device for adjusting position of target object
CN111104001B (en) A method, device, mobile terminal and storage medium for preventing accidental touch of screen
CN112331158B (en) Terminal display adjustment method, device, equipment and storage medium
CN106055093A (en)Method and device for picture rotation
CN106791391A (en)The control method of rotatable camera, device and mobile terminal
CN108962189A (en)Luminance regulating method and device
CN108877742A (en)Luminance regulating method and device
CN112965653B (en) Touch position reporting method, device and electronic device
CN111506207B (en)Method and device for determining lighting area during on-screen fingerprint identification
CN115145420A (en) Accidental touch prevention method, device, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp