[go: up one dir, main page]

CN112148149A - Touch screen control method, touch screen control device and storage medium - Google Patents

Touch screen control method, touch screen control device and storage medium Download PDF

Info

Publication number
CN112148149A
CN112148149A CN202011033746.4A CN202011033746A CN112148149A CN 112148149 A CN112148149 A CN 112148149A CN 202011033746 A CN202011033746 A CN 202011033746A CN 112148149 A CN112148149 A CN 112148149A
Authority
CN
China
Prior art keywords
touch screen
touch
film
data
sticker
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.)
Granted
Application number
CN202011033746.4A
Other languages
Chinese (zh)
Other versions
CN112148149B (en
Inventor
常群
张勇
赵彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011033746.4A priority Critical patent/CN112148149B/en
Publication of CN112148149A publication Critical patent/CN112148149A/en
Application granted granted Critical
Publication of CN112148149B publication Critical patent/CN112148149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a touch screen control method, a touch screen control device and a storage medium. The touch screen control method is applied to a terminal, and comprises the following steps: determining that the touch screen is provided with a film based on touch data of the touch screen and a preset model, wherein the input of the preset model is the touch data, and the output is the presence or absence of the film; and adjusting the functional mode of the touch screen to be matched with the functional mode with the adhesive film. Through the touch screen, the influence of the film on the functions of the touch screen can be compensated, and the using effect of the touch screen in various functional modes is ensured.

Description

触摸屏控制方法、触摸屏控制装置及存储介质Touch screen control method, touch screen control device and storage medium

技术领域technical field

本公开涉及触摸屏技术领域,尤其涉及触摸屏控制方法、触摸屏控制装置及存储介质。The present disclosure relates to the technical field of touch screens, and in particular, to a touch screen control method, a touch screen control device, and a storage medium.

背景技术Background technique

诸如智能手机、平板电脑和电子书阅读器之类的触摸终端已经在人们的日常生活中被广泛使用。其中,触摸终端中普遍采用电容式触摸屏。Touch terminals such as smart phones, tablet PCs and e-book readers have been widely used in people's daily life. Among them, capacitive touch screens are generally used in touch terminals.

目前大多用户会对触摸屏进行贴膜,以保护触摸屏在使用过程中不被划伤或者留下划痕。但是终端的触摸屏被贴膜后,会影响触摸屏的使用性能,例如触摸屏的触控灵敏度和屏幕亮度等。At present, most users will stick a film on the touch screen to protect the touch screen from being scratched or left scratched during use. However, after the touch screen of the terminal is filmed, the performance of the touch screen, such as the touch sensitivity and screen brightness of the touch screen, will be affected.

当用户触控电容式触摸屏时,用户触控区域和触摸屏之间会产生电容值,进而根据产生的电容值确定用户触控位置。When a user touches the capacitive touch screen, a capacitance value is generated between the user touch area and the touch screen, and then the user touch position is determined according to the generated capacitance value.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种触摸屏控制方法、触摸屏控制装置及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a touch screen control method, a touch screen control device and a storage medium.

根据本公开实施例的第一方面,提供一种触摸屏控制方法,触摸屏控制方法,应用于终端,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a touch screen control method is provided, and the touch screen control method is applied to a terminal, and the method includes:

基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,所述预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜;Based on the touch data of the touch screen and the preset model, it is determined that the touch screen has a film, the input of the preset model is touch data, and the output is the presence or absence of the film;

将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式。Adjust the functional mode of the touch screen to match the functional mode of the existing sticker.

在一示例中,所述方法还包括:在所述终端处于运动状态情况下,获取对触摸屏的触控数据。In an example, the method further includes: acquiring touch data on the touch screen when the terminal is in a motion state.

在一示例中,基于对触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,包括:以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据;将获所述多个触控数据输入预设模型,得到多个输出结果;若表征所述触摸屏存在贴膜的输出结果个数大于预设阈值,则确定所述触摸屏存在贴膜。In an example, based on touch data on the touch screen and a preset model, determining that there is a film on the touch screen includes: taking a preset time period as a unit, acquiring a plurality of touch data on the touch screen within a preset time period; The plurality of touch data are input into a preset model, and a plurality of output results are obtained; if the number of output results indicating that the touch screen has a film is greater than a preset threshold, it is determined that the touch screen has a film.

在一示例中,所述将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式,包括:将所述触摸屏的触摸灵敏度,调整为匹配存在贴膜的触摸灵敏度;和/或将所述触摸屏的屏幕亮度,调整为匹配存在贴膜的屏幕亮度;和/或将所述触摸屏的叩击识别方式,调整为匹配存在贴膜的叩击识别方式。In an example, the adjusting the function mode of the touch screen to match the function mode of the existing film includes: adjusting the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; and/or adjusting the touch screen The screen brightness of the touch screen is adjusted to match the screen brightness of the presence of the film; and/or the tap recognition method of the touch screen is adjusted to match the tap recognition method of the presence of the film.

在一示例中,所述预设模型采用如下方式训练得到:确定训练数据集,所述训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据;基于训练数据集训练得到所述模型。In an example, the preset model is obtained by training in the following manner: determining a training data set, the training data set includes touch data of the mobile phone case without film and installed, touch data of the phone case installed without film, and touch data without film and installed. The touch data for installing the mobile phone case and the touch data for installing the mobile phone case with the film are obtained; the model is obtained by training based on the training data set.

根据本公开实施例的第二方面,提供一种触摸屏控制装置,触摸屏控制装置应用于终端,所述装置包括:确定单元,被配置为基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,所述预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜;调整单元,被配置为将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式。According to a second aspect of the embodiments of the present disclosure, there is provided a touch screen control apparatus, the touch screen control apparatus is applied to a terminal, the apparatus includes: a determination unit configured to determine the touch screen based on touch data of the touch screen and a preset model There is a sticker, the input of the preset model is touch data, and the output is the existence or absence of the sticker; the adjustment unit is configured to adjust the function mode of the touch screen to match the function mode of the existence sticker.

在一示例中,所述装置还包括获取单元;所述获取单元被配置为在所述终端处于运动状态情况下,获取对触摸屏的触控数据。In an example, the apparatus further includes an acquisition unit; the acquisition unit is configured to acquire touch data on the touch screen when the terminal is in a motion state.

在一示例中,所述确定单元采用如下方式确定所述触摸屏存在贴膜:基于对触摸屏的触控数据以及预设模型,以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据;将获所述多个触控数据输入预设模型,得到多个输出结果;若表征所述触摸屏存在贴膜的输出结果个数大于预设阈值,则确定所述触摸屏存在贴膜。In an example, the determining unit determines that there is a sticker on the touch screen in the following manner: based on the touch data on the touch screen and a preset model, taking a preset time period as a unit, acquiring a plurality of pieces of the touch screen within a preset time period. touch data; inputting the plurality of touch data obtained into a preset model to obtain a plurality of output results; if the number of output results indicating that the touch screen has a film is greater than a preset threshold, it is determined that the touch screen has a film.

在一示例中,所述调整单元采用如下方式将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式:将所述触摸屏的触摸灵敏度,调整为匹配存在贴膜的触摸灵敏度;和/或将所述触摸屏的屏幕亮度,调整为匹配存在贴膜的屏幕亮度;和/或将所述触摸屏的叩击识别方式,调整为匹配存在贴膜的叩击识别方式。In one example, the adjustment unit adjusts the functional mode of the touch screen to match the functional mode of the existing film in the following manner: adjust the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; and/or adjust the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; The screen brightness of the touch screen is adjusted to match the screen brightness of the presence of the film; and/or the tap recognition mode of the touch screen is adjusted to match the tap recognition mode of the presence of the film.

在一示例中,所述预设模型采用如下方式训练得到:确定训练数据集,所述训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据;基于训练数据集训练得到所述预设模型。In an example, the preset model is obtained by training in the following manner: determining a training data set, the training data set includes touch data of the mobile phone case without film and installed, touch data of the phone case installed without film, and touch data without film and installed. The touch data of installing the mobile phone case and the touch data of installing the mobile phone case with a film; the preset model is obtained by training based on the training data set.

本公开的实施例提供的技术方案可以包括以下有益效果:在用户对触摸屏触控操作时,基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜后,可将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式,进而弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the user touches the touch screen, based on the touch data of the touch screen and a preset model, after it is determined that the touch screen has a film, the functions of the touch screen can be changed. The mode is adjusted to match the functional mode of the existing film, thereby making up for the influence of the film on the touch screen function and ensuring the use effect of the touch screen in various functional modes.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 flow chart of a method for controlling a touch screen according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种触摸屏控制方法的流程图。Fig. 2 is a flow chart of a method for controlling a touch screen according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种触摸屏控制方法的流程图。Fig. 3 is a flow chart of a touch screen control method according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 4 is an exemplary flowchart of a touch screen control method according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 5 is an exemplary flowchart of a method for controlling a touch screen according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 6 is an exemplary flowchart of a method for controlling a touch screen according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种触摸屏控制装置的框图。Fig. 7 is a block diagram of a touch screen control device according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种装置的框图。Fig. 8 is a block diagram of an apparatus 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 implementations described in the illustrative examples below are not intended to represent all implementations 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.

本公开的示例性实施例的技术方案可以应用于对终端触摸屏进行使用的应用场景。在以下描述的示例性实施例中,终端有时也称为智能终端设备,其中,该终端可以是移动终端,也可以称作用户设备(User Equipment,UE)、移动台(Mobile Station,MS)等。终端是一种向用户提供语音和/或数据连接的设备,或者是设置于该设备内的芯片,例如,具有无线连接功能的手持式设备、车载设备等。例如,终端的示例可以包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile Internet Devices,MID)、可穿戴设备、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、工业控制中的无线终端、无人驾驶中的无线终端、远程手术中的无线终端、智能电网中的无线终端、运输安全中的无线终端、智慧城市中的无线终端、智慧家庭中的无线终端等。The technical solutions of the exemplary embodiments of the present disclosure can be applied to an application scenario of using a touch screen of a terminal. In the exemplary embodiments described below, a terminal is sometimes also referred to as an intelligent terminal device, wherein the terminal may be a mobile terminal, and may also be referred to as user equipment (User Equipment, UE), mobile station (Mobile Station, MS), etc. . A terminal is a device that provides voice and/or data connection to a user, or a chip provided in the device, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like. For example, examples of terminals may include: mobile phones, tablet computers, notebook computers, PDAs, Mobile Internet Devices (MID), wearable devices, Virtual Reality (VR) devices, Augmented Reality (Augmented Reality, MID), AR) equipment, wireless terminal in industrial control, wireless terminal in unmanned driving, wireless terminal in remote surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home wireless terminals, etc.

目前大多用户会对触摸屏进行贴膜,以保护触摸屏在使用过程中不被划伤或者留下划痕。但是终端的触摸屏被贴膜后,会影响触摸屏的功能使用效果,例如触摸屏的触控灵敏度和屏幕亮度等。At present, most users will stick a film on the touch screen to protect the touch screen from being scratched or left scratched during use. However, after the touch screen of the terminal is affixed with film, the functional use effect of the touch screen, such as the touch sensitivity and screen brightness of the touch screen, will be affected.

为了保证触摸屏存在贴膜后触摸屏的功能和触摸屏不存在贴膜时的功能,在使用效果相一致,本公开可提供一种触摸屏控制方法。在本公开实施例中,在用户对触摸屏触控操作时,基于触摸屏的触控数据以及预设模型,确定触摸屏存在贴膜后,可将触摸屏的功能模式,调整为匹配存在贴膜的功能模式,弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。In order to ensure that the function of the touch screen after the touch screen has a film and the function of the touch screen without the film have the same use effect, the present disclosure can provide a touch screen control method. In the embodiment of the present disclosure, when the user touches the touch screen, based on the touch data of the touch screen and the preset model, after it is determined that the touch screen has a film, the function mode of the touch screen can be adjusted to match the function mode of the film to compensate for the existence of the film. The influence of the film on the function of the touch screen ensures the use of the touch screen in various functional modes.

图1是根据一示例性实施例示出的一种触摸屏控制方法的流程图,如图1所示,触摸屏控制方法用于终端中,包括以下步骤。FIG. 1 is a flowchart of a touch screen control method according to an exemplary embodiment. As shown in FIG. 1 , the touch screen control method used in a terminal includes the following steps.

在步骤S11中,基于触摸屏的触控数据以及预设模型,确定触摸屏存在贴膜,预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜。In step S11 , based on the touch data of the touch screen and the preset model, it is determined that there is a film on the touch screen, the input of the preset model is the touch data, and the output is the presence or absence of the film.

本公开中的触控数据,可以包括用户对触摸屏进行触控操作时,触控操作对应触控位置与触摸屏之间的电容值。The touch data in the present disclosure may include a capacitance value between the touch position corresponding to the touch operation and the touch screen when the user performs a touch operation on the touch screen.

本公开中的预设模型根据输入的触控数据,识别触摸屏是否有贴膜,并输出触摸屏存在贴膜或不存在贴膜的结果。将触控数据输入预设模型,基于预设模型的输出确定触摸屏存在贴膜。The preset model in the present disclosure identifies whether there is a film on the touch screen according to the input touch data, and outputs the result of the presence or absence of the film on the touch screen. Input the touch data into the preset model, and determine that there is a film on the touch screen based on the output of the preset model.

其中,预设模型采用如下方式训练得到:Among them, the preset model is trained in the following way:

确定训练数据集,训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据,基于训练数据集训练得到预设模型。Determine the training data set. The training data set includes the touch data of the mobile phone case without the film and the mobile phone case, the touch data of the mobile phone case without the film and the mobile phone case, the touch data of the mobile phone case with the film and not installed, and the touch data of the mobile phone case with the film installed. The training dataset is trained to obtain a preset model.

一种实施方式中,将训练数据集输入到分类模型,通过分类模型,输出预测的触摸屏存在贴膜或不存在贴膜。基于损失函数调节分类模型的参数,优化分类模型,使得从分类模型输出的触摸屏是否存在贴膜的结果与训练数据集中的触控数据所表征的触摸屏一致时,得到训练好的预设模型。In one embodiment, the training data set is input into the classification model, and through the classification model, the predicted presence or absence of a film on the touch screen is output. Adjust the parameters of the classification model based on the loss function, and optimize the classification model, so that when the result of whether there is a film on the touch screen output from the classification model is consistent with the touch screen represented by the touch data in the training data set, the trained preset model is obtained.

得到训练好的预设模型后,将训练数据集中的测试数据集输入预设模型进行验证,在验证数据集全部通过验证后,将通过验证的预设模型用于实际应用中。After the trained preset model is obtained, the test data set in the training data set is input into the preset model for verification, and after all the verification data sets pass the verification, the verified preset model is used in practical applications.

在步骤S12中,将触摸屏的功能模式,调整为匹配存在贴膜的功能模式。In step S12, the function mode of the touch screen is adjusted to match the function mode of the existing sticker.

本公开中,触摸屏的功能模式例如可包括触摸屏的触摸模式、显示模式和叩击识别模式。In the present disclosure, the functional mode of the touch screen may include, for example, a touch mode, a display mode, and a tap recognition mode of the touch screen.

由于触摸屏被贴膜后,例如针对触摸屏的触摸灵敏度、触摸屏的显示亮度和对触摸屏触控操作后,触摸屏的叩击识别能力均会受到影响,为了保证终端的触摸屏在各种功能模式下的使用效果,本公开中,将用户触控操作对应的触控数据输入预设模型后,通过预设模型确定触摸屏存在贴膜后,将触摸屏的功能模式,例如将触摸屏的触摸模式、显示模式和叩击模式调整为匹配存在贴膜的功能模式,以弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。After the touch screen is filmed, for example, the touch sensitivity of the touch screen, the display brightness of the touch screen and the touch operation of the touch screen will affect the tap recognition ability of the touch screen. In order to ensure the use effect of the touch screen of the terminal in various functional modes In the present disclosure, after inputting the touch data corresponding to the user's touch operation into the preset model, after determining that there is a film on the touch screen through the preset model, the functional mode of the touch screen, such as the touch mode, display mode and tap mode of the touch screen Adjust to match the functional mode of the existing film to make up for the influence of the film on the touch screen function and ensure the use effect of the touch screen in various functional modes.

在本公开的示例性实施例中,在用户对触摸屏触控操作时,基于触摸屏的触控数据以及预设模型,确定触摸屏存在贴膜后,可将触摸屏的功能模式,调整为匹配存在贴膜的功能模式,进而弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。In the exemplary embodiment of the present disclosure, when the user touches the touch screen, based on the touch data of the touch screen and the preset model, after it is determined that the touch screen has a film, the function mode of the touch screen can be adjusted to match the function of the film. mode, and then make up for the impact of the film on the touch screen function, and ensure the use effect of the touch screen in various functional modes.

图2是根据一示例性实施例示出的一种触摸屏控制方法的流程图,如图2所示,触摸屏控制方法用于终端中,包括以下步骤。Fig. 2 is a flowchart of a touch screen control method according to an exemplary embodiment. As shown in Fig. 2 , the touch screen control method used in a terminal includes the following steps.

在步骤S21中,在终端处于运动状态情况下,获取对触摸屏的触控数据。In step S21, when the terminal is in a motion state, touch data on the touch screen is acquired.

实际应用中,经过大量的实验测试,存在当终端处于运动状态时获取的触控数据,即获取的触控操作对应触控位置与触摸屏之间的电容值误差小,基于终端处于运动状态时获取的触控数据更能准确地判断触摸屏是否贴膜。In practical applications, after a large number of experimental tests, there is touch data obtained when the terminal is in motion, that is, the capacitance value error between the touch position corresponding to the acquired touch operation and the touch screen is small, based on the data obtained when the terminal is in motion. The touch data can more accurately determine whether the touch screen is filmed.

进而,为了提升判断终端触摸屏是否存在贴膜的准确度,本公开可在终端处于运动状态时,获取用户对触摸屏触控操作后的触控数据,基于终端处于运动状态时的触控数据,确定触摸屏是否存在贴膜。Furthermore, in order to improve the accuracy of judging whether there is a film on the touch screen of the terminal, the present disclosure can obtain the touch data after the user touches the touch screen when the terminal is in motion, and determine the touch screen based on the touch data when the terminal is in motion. Is there a sticker.

其中,确定终端处于运动状态例如可通过下述方式实现:Wherein, determining that the terminal is in a motion state can be implemented, for example, in the following manner:

响应于接收到对触摸屏的触控操作,确定加速度传感器是否采集到数据,在确定加速度传感器采集到数据时,确定终端处于运动状态。In response to receiving a touch operation on the touch screen, it is determined whether the acceleration sensor has collected data, and when it is determined that the acceleration sensor has collected data, it is determined that the terminal is in a motion state.

在步骤S22中,基于触摸屏的触控数据以及预设模型,确定触摸屏存在贴膜,预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜。In step S22, based on the touch data of the touch screen and the preset model, it is determined that there is a sticker on the touch screen, the input of the preset model is the touch data, and the output is the existence of the sticker or the absence of the sticker.

在步骤S23中,将触摸屏的功能模式,调整为匹配存在贴膜的功能模式。In step S23, the function mode of the touch screen is adjusted to match the function mode of the existing sticker.

在本公开的示例性实施例中,确定终端处于运动状态,并在终端处于运动状态情况下,获取对触摸屏的触控数据,更加准确,进而将终端处于运动状态情况下,获取对触摸屏的触控数据输入预设模型后,可准确确定触摸屏是否存在贴膜,并在确定触摸屏是否存在贴膜后,可将触摸屏的功能模式,调整为匹配存在贴膜的功能模式,进而弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。In the exemplary embodiment of the present disclosure, it is more accurate to determine that the terminal is in a motion state, and when the terminal is in motion, acquire touch data on the touch screen, and then acquire touch data on the touch screen when the terminal is in motion. After the control data is input into the preset model, it can be accurately determined whether there is a film on the touch screen, and after determining whether there is a film on the touch screen, the functional mode of the touch screen can be adjusted to match the function mode with the film, so as to compensate for the influence of the film on the function of the touch screen. Guarantee the use effect of the touch screen in various functional modes.

图3是根据一示例性实施例示出的一种触摸屏控制方法的流程图,如图3所示,触摸屏控制方法用于终端中,包括以下步骤。Fig. 3 is a flowchart of a touch screen control method according to an exemplary embodiment. As shown in Fig. 3 , the touch screen control method used in a terminal includes the following steps.

在步骤S31中,以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据,将获多个触控数据输入预设模型,得到多个输出结果。In step S31 , taking a preset time period as a unit, acquiring multiple touch data of the touch screen within a preset time period, and inputting the acquired multiple touch data into a preset model to obtain multiple output results.

一般而言,终端触摸屏存在贴膜或者不存在贴膜不是实时变化的,而是会将当前的存在贴膜或者不存在贴膜的状态保持一段时间。故,本公开无需实时对终端触摸屏是否贴膜实时进行判断。一种实施方式中,本公开可以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据,将获多个触控数据输入预设模型,得到多个输出结果。Generally speaking, the presence or absence of a film on the touch screen of a terminal does not change in real time, but the current state of the presence or absence of a film is maintained for a period of time. Therefore, the present disclosure does not need to judge in real time whether the touch screen of the terminal is attached to the film in real time. In one embodiment, the present disclosure may use a preset time period as a unit, acquire multiple touch data on the touch screen within a preset time period, input the acquired multiple touch data into a preset model, and obtain multiple output results.

例如,本公开可将预设时间周期设置为1天,预设时间段设置为早晨8点到早晨9点,获取的多个触控数据,例如可以是10个触控数据。即本公开可以1天为周期,在每天的早晨8点到早晨9点之间获取触摸屏的10个触控数据,将获10个触控数据输入预设模型,得到10个输出结果。For example, in the present disclosure, the preset time period may be set as one day, the preset time period may be set as 8:00 am to 9:00 am, and the acquired multiple touch data may be, for example, 10 touch data. That is, the present disclosure can take one day as a cycle, acquire 10 touch data of the touch screen from 8:00 am to 9:00 am every day, input the 10 touch data to the preset model, and obtain 10 output results.

在步骤S32中,若表征触摸屏存在贴膜的输出结果个数大于预设阈值,则确定触摸屏存在贴膜。In step S32, if the number of output results representing the presence of the sticker on the touch screen is greater than the preset threshold, it is determined that the sticker exists on the touch screen.

在预设模型的输出结果中,若表征触摸屏存在贴膜的输出结果个数大于预设阈值,则确定触摸屏存在贴膜。In the output results of the preset model, if the number of output results representing the presence of stickers on the touch screen is greater than the preset threshold, it is determined that stickers exist on the touch screen.

例如在预设模型的输出的10次结果中,有7次的输出结果为存在贴膜,有3次的结果为不存在贴膜,根据预设阈值例如5,确定出触摸屏存在贴膜。For example, in the 10 output results of the preset model, 7 times the output result is that the sticker exists, and 3 times the result is that the sticker does not exist. According to the preset threshold, such as 5, it is determined that the touch screen has sticker.

在步骤S33中,将触摸屏的功能模式,调整为匹配存在贴膜的功能模式。In step S33, the function mode of the touch screen is adjusted to match the function mode of the existing sticker.

在本公开的示例性实施例中,通过以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据,既能保证获取触控数据的及时性,又可减少对终端硬件资源的占用,通过确定终端处于运动状态,并在终端处于运动状态情况下,获取对触摸屏的触控数据,更加准确,进而将终端处于运动状态情况下,获取对触摸屏的触控数据输入预设模型后,可准确确定触摸屏是否存在贴膜,并在确定触摸屏是否存在贴膜后,可将触摸屏的功能模式,调整为匹配存在贴膜的功能模式,进而弥补贴膜对触摸屏功能的影响,保证触摸屏在各种功能模式下的使用效果。In the exemplary embodiment of the present disclosure, by taking the preset time period as a unit, acquiring multiple touch data of the touch screen within the preset time period can not only ensure the timeliness of acquiring the touch data, but also reduce the need for the terminal The occupancy of hardware resources is more accurate by determining that the terminal is in motion, and obtaining touch data on the touch screen when the terminal is in motion, and then obtaining the touch data input to the touch screen when the terminal is in motion. After setting the model, it can be accurately determined whether there is a film on the touch screen, and after determining whether there is a film on the touch screen, the functional mode of the touch screen can be adjusted to match the function mode with the film, so as to compensate for the effect of the film on the function of the touch screen. The effect of use in various function modes.

本公开以下分别针对触摸屏的触摸模式、显示模式和叩击识别模式,对应用本公开触摸屏控制方法进行说明。The present disclosure will describe the application of the touch screen control method of the present disclosure with respect to the touch mode, the display mode and the tap recognition mode of the touch screen, respectively.

图4是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 4 is an exemplary flowchart of a touch screen control method according to an exemplary embodiment.

图4是针对触摸屏触摸模式的场景的示例流程图。4 is an example flow diagram for a scenario of a touch screen touch mode.

由于在使用触摸屏终端时,触摸屏的触控灵敏度是影响触摸屏性能的很重要的因素。在设置触摸屏的触控灵敏度时,如果设置的灵敏度太高,那么误触就会非常高,如果设置的灵敏度太低,那么很多正常触控就识别不到。Because when a touch screen terminal is used, the touch sensitivity of the touch screen is a very important factor affecting the performance of the touch screen. When setting the touch sensitivity of the touch screen, if the sensitivity is set too high, false touches will be very high, and if the sensitivity is set too low, many normal touches will not be recognized.

进而,在终端出厂前,会基于大量的实验数据,设置触摸屏的触摸灵敏度参数。但是,若触摸屏存在贴膜后,基于预先设置的触摸灵敏度参数,触摸灵敏度会降低。Furthermore, before the terminal leaves the factory, the touch sensitivity parameter of the touch screen will be set based on a large amount of experimental data. However, if there is a film on the touch screen, the touch sensitivity will be reduced based on the preset touch sensitivity parameters.

故,在图4中,在用户触控操作触摸屏,对用户触控操作进行识别,若识别到触摸屏存在贴膜时,可以匹配存在贴膜的触摸屏触控灵敏度,例如提高触摸屏的触摸灵敏度。若识别到触摸屏不存在贴膜时,可以匹配不存在贴膜的触摸屏触控灵敏度,例如设置默认触摸屏的触摸灵敏度。Therefore, in FIG. 4 , when the user touches the touch screen to identify the user's touch operation, if it is recognized that there is a film on the touch screen, the touch sensitivity of the touch screen with the film can be matched, for example, the touch sensitivity of the touch screen can be improved. If it is recognized that there is no film on the touch screen, the touch sensitivity of the touch screen without the film can be matched, for example, the touch sensitivity of the default touch screen can be set.

图5是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 5 is an exemplary flowchart of a method for controlling a touch screen according to an exemplary embodiment.

在图5中,在用户触控操作触摸屏,对用户触控操作进行识别,若识别到触摸屏存在贴膜时,可以匹配存在贴膜的叩击识别模式,例如将用户的叩击操作通过有贴膜的叩击模型识别。若识别到触摸屏不存在贴膜时,可以匹配不存在贴膜的叩击识别模式,例如将用户的叩击操作通过没有贴膜的叩击模型识别,以提高叩击识别的准确度。In Figure 5, when the user touches the touch screen, the user's touch operation is recognized. If it is recognized that there is a film on the touch screen, the tap recognition mode with the film can be matched. For example, the user's tap operation is passed through the tap with the film Click Model Identification. If it is recognized that there is no film on the touch screen, the tap recognition mode without the film can be matched, for example, the user's tap operation is recognized by the tap model without the film, so as to improve the accuracy of the tap recognition.

图6是根据一示例性实施例示出的一种触摸屏控制方法的示例流程图。Fig. 6 is an exemplary flowchart of a method for controlling a touch screen according to an exemplary embodiment.

在图6中,在用户触控操作触摸屏,对用户触控操作进行识别,若识别到触摸屏存在贴膜时,可以匹配存在贴膜的屏幕显示亮度,例如提高触摸屏的屏幕显示亮度。若识别到触摸屏不存在贴膜时,可以匹配不存在贴膜的屏幕显示亮度,例如设置默认触摸屏的屏幕显示亮度。In FIG. 6 , when the user touches the touch screen to identify the user's touch operation, if it is recognized that there is a film on the touch screen, the display brightness of the screen with the film can be matched, for example, the screen display brightness of the touch screen can be increased. If it is recognized that there is no film on the touch screen, the display brightness of the screen without the film can be matched, for example, the screen display brightness of the default touch screen can be set.

基于相同的构思,本公开实施例还提供一种触摸屏控制装置。Based on the same concept, an embodiment of the present disclosure also provides a touch screen control device.

可以理解的是,本公开实施例提供的触摸屏控制装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to realize the above-mentioned functions, the touch screen control apparatus provided by the embodiments of the present disclosure includes corresponding hardware structures and/or software modules for executing each function. Combining with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present disclosure.

图7是根据一示例性实施例示出的一种触摸屏控制装置框图。参照图7,触摸屏控制装置700应用于终端,所述触摸屏控制装置包括:确定单元701和调整单元702。Fig. 7 is a block diagram of a touch screen control device according to an exemplary embodiment. Referring to FIG. 7 , a touch screen control apparatus 700 is applied to a terminal, and the touch screen control apparatus includes: a determination unit 701 and an adjustment unit 702 .

其中,确定单元701,被配置为基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,所述预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜;调整单元702,被配置为将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式。Wherein, the determining unit 701 is configured to determine the presence of a film on the touch screen based on touch data of the touch screen and a preset model, the input of the preset model is the touch data, and the output is the presence or absence of the film; the adjustment unit 702, which is configured to adjust the function mode of the touch screen to match the function mode of the existing sticker.

在一实施例中,所述装置还包括获取单元703;所述获取单元被配置为在所述终端处于运动状态情况下,获取对触摸屏的触控数据。In an embodiment, the apparatus further includes an acquisition unit 703; the acquisition unit is configured to acquire touch data on the touch screen when the terminal is in a motion state.

在一实施例中,所述确定单元701采用如下方式确定所述触摸屏存在贴膜:基于对触摸屏的触控数据以及预设模型,以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据;将获所述多个触控数据输入预设模型,得到多个输出结果;若表征所述触摸屏存在贴膜的输出结果个数大于预设阈值,则确定所述触摸屏存在贴膜。In one embodiment, the determining unit 701 determines the presence of a film on the touch screen in the following manner: based on touch data on the touch screen and a preset model, taking a preset time period as a unit, obtaining the touch screen information within a preset time period. Multiple touch data; input the multiple touch data into a preset model to obtain multiple output results; if the number of output results indicating that the touch screen has a film is greater than a preset threshold, it is determined that the touch screen has a film .

在一实施例中,所述调整单元702采用如下方式将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式:将所述触摸屏的触摸灵敏度,调整为匹配存在贴膜的触摸灵敏度;和/或将所述触摸屏的屏幕亮度,调整为匹配存在贴膜的屏幕亮度;和/或将所述触摸屏的叩击识别方式,调整为匹配存在贴膜的叩击识别方式。In one embodiment, the adjustment unit 702 adjusts the function mode of the touch screen to match the function mode of the existing film in the following manner: adjusting the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; and/ Or adjust the screen brightness of the touch screen to match the screen brightness of the film; and/or adjust the tap recognition method of the touch screen to match the tap recognition method of the film.

在一实施例中,所述预设模型采用如下方式训练得到:确定训练数据集,所述训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据;基于训练数据集训练得到所述预设模型。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。In one embodiment, the preset model is obtained by training in the following manner: determining a training data set, the training data set includes touch data without a film and a mobile phone case installed, touch data without a film installed with a mobile phone case, and a film. The touch data of the mobile phone case not installed and the touch data of the film installed mobile phone case; the preset model is obtained by training based on the training data set. Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.

图8是根据一示例性实施例示出的一种用于触摸屏控制的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 8 is a block diagram of an apparatus 800 for touch screen control according to an exemplary embodiment. For example, apparatus 800 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,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。8, apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and Communication component 816.

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

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

电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800 .

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 808 includes a screen that provides an output interface between the device 800 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, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the apparatus 800 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.

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

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 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.

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

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices. Device 800 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 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 is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, executable by the processor 820 of the apparatus 800 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.

可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。It should be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. The singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It is further understood that the terms "first", "second", etc. are used to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish the same type of information from one another, and do not imply a particular order or level of importance. In fact, the expressions "first", "second" etc. are used completely interchangeably. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present disclosure.

进一步可以理解的是,除非有特殊说明,“连接”包括两者之间不存在其他构件的直接连接,也包括两者之间存在其他元件的间接连接。It should be further understood that, unless otherwise specified, "connection" includes a direct connection between the two without other components, and also includes an indirect connection between the two with other elements.

进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。It is further to be understood that, although the operations in the embodiments of the present disclosure are described in a specific order in the drawings, it should not be construed as requiring that the operations be performed in the specific order shown or the serial order, or requiring Perform all operations shown to obtain the desired result. In certain circumstances, multitasking and parallel processing may be advantageous.

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

1.一种触摸屏控制方法,其特征在于,应用于终端,所述方法包括:1. A touch screen control method, characterized in that, applied to a terminal, the method comprising: 基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,所述预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜;Based on the touch data of the touch screen and the preset model, it is determined that the touch screen has a film, the input of the preset model is touch data, and the output is the presence or absence of the film; 将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式。Adjust the functional mode of the touch screen to match the functional mode of the existing sticker. 2.根据权利要求1所述的触摸屏控制方法,其特征在于,所述方法还包括:2. The touch screen control method according to claim 1, wherein the method further comprises: 在所述终端处于运动状态情况下,获取对触摸屏的触控数据。When the terminal is in a motion state, touch data on the touch screen is acquired. 3.根据权利要求1所述的触摸屏控制方法,其特征在于,基于对触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,包括:3 . The touch screen control method according to claim 1 , wherein, based on touch data on the touch screen and a preset model, determining that a film exists on the touch screen, comprising: 3 . 以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据;Acquiring multiple touch data of the touch screen within a preset time period in units of a preset time period; 将获所述多个触控数据输入预设模型,得到多个输出结果;inputting the plurality of touch data into a preset model to obtain a plurality of output results; 若表征所述触摸屏存在贴膜的输出结果个数大于预设阈值,则确定所述触摸屏存在贴膜。If the number of output results representing the presence of the sticker on the touch screen is greater than the preset threshold, it is determined that the touchscreen has sticker. 4.根据权利要求2所述的触摸屏控制方法,其特征在于,所述将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式,包括:4 . The touch screen control method according to claim 2 , wherein the adjusting the functional mode of the touch screen to match the functional mode of the existing film, comprising: 5 . 将所述触摸屏的触摸灵敏度,调整为匹配存在贴膜的触摸灵敏度;和/或Adjusting the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; and/or 将所述触摸屏的屏幕亮度,调整为匹配存在贴膜的屏幕亮度;和/或Adjust the screen brightness of the touch screen to match the screen brightness of the film; and/or 将所述触摸屏的叩击识别方式,调整为匹配存在贴膜的叩击识别方式。The tap recognition mode of the touch screen is adjusted to match the tap recognition mode of the existing sticker. 5.根据权利要求1所述的触摸屏控制方法,其特征在于,所述预设模型采用如下方式训练得到:5. The touch screen control method according to claim 1, wherein the preset model is obtained by training in the following manner: 确定训练数据集,所述训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据;Determine the training data set, the training data set includes the touch data of the mobile phone case without the film and the mobile phone case, the touch data of the mobile phone case without the film, the touch data of the mobile phone case with the film and the mobile phone case, and the touch data of the mobile phone case with the film ; 基于训练数据集训练得到所述预设模型。The preset model is obtained by training based on the training data set. 6.一种触摸屏控制装置,其特征在于,应用于终端,所述装置包括:6. A touch screen control device, characterized in that, applied to a terminal, the device comprising: 确定单元,被配置为基于触摸屏的触控数据以及预设模型,确定所述触摸屏存在贴膜,所述预设模型的输入为触控数据,输出为存在贴膜或不存在贴膜;a determining unit configured to determine, based on the touch data of the touch screen and a preset model, that there is a sticker on the touch screen, the input of the preset model is the touch data, and the output is the existence of the sticker or the absence of the sticker; 调整单元,被配置为将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式。The adjustment unit is configured to adjust the function mode of the touch screen to match the function mode of the existing sticker. 7.根据权利要求6所述的触摸屏控制装置,其特征在于,所述装置还包括获取单元;7. The touch screen control device according to claim 6, wherein the device further comprises an acquisition unit; 所述获取单元被配置为在所述终端处于运动状态情况下,获取对触摸屏的触控数据。The acquiring unit is configured to acquire touch data on the touch screen when the terminal is in a motion state. 8.根据权利要求6所述的触摸屏控制装置,其特征在于,所述确定单元采用如下方式确定所述触摸屏存在贴膜:8 . The touch screen control device according to claim 6 , wherein the determining unit determines that there is a sticker on the touch screen in the following manner: 9 . 基于对触摸屏的触控数据以及预设模型,以预设时间周期为单位,在预设时间段内获取触摸屏的多个触控数据;Based on the touch data on the touch screen and the preset model, with a preset time period as a unit, acquire a plurality of touch data on the touch screen within a preset time period; 将获所述多个触控数据输入预设模型,得到多个输出结果;Inputting the plurality of touch data into a preset model to obtain a plurality of output results; 若表征所述触摸屏存在贴膜的输出结果个数大于预设阈值,则确定所述触摸屏存在贴膜。If the number of output results indicating the presence of the sticker on the touch screen is greater than the preset threshold, it is determined that the touchscreen has sticker. 9.根据权利要求7所述的触摸屏控制装置,其特征在于,所述调整单元采用如下方式将所述触摸屏的功能模式,调整为匹配存在贴膜的功能模式:9 . The touch screen control device according to claim 7 , wherein the adjustment unit adjusts the functional mode of the touch screen to match the functional mode of the film in the following manner: 10 . 将所述触摸屏的触摸灵敏度,调整为匹配存在贴膜的触摸灵敏度;和/或Adjusting the touch sensitivity of the touch screen to match the touch sensitivity of the existing film; and/or 将所述触摸屏的屏幕亮度,调整为匹配存在贴膜的屏幕亮度;和/或Adjust the screen brightness of the touch screen to match the screen brightness of the film; and/or 将所述触摸屏的叩击识别方式,调整为匹配存在贴膜的叩击识别方式。The tap recognition mode of the touch screen is adjusted to match the tap recognition mode of the existing sticker. 10.根据权利要求6所述的触摸屏控制装置,其特征在于,所述预设模型采用如下方式训练得到:10. The touch screen control device according to claim 6, wherein the preset model is obtained by training in the following manner: 确定训练数据集,所述训练数据集中包括未贴膜未安装手机壳的触控数据、未贴膜安装手机壳的触控数据、贴膜未安装手机壳的触控数据和贴膜安装手机壳的触控数据;Determine the training data set, the training data set includes the touch data of the mobile phone case without the film and the mobile phone case, the touch data of the mobile phone case without the film, the touch data of the mobile phone case with the film and the mobile phone case, and the touch data of the mobile phone case with the film ; 基于训练数据集训练得到所述预设模型。The preset model is obtained by training based on the training data set. 11.一种触摸屏控制装置,其特征在于,包括:11. A touch screen control device, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为执行权利要求1-5中任一项所述的触摸屏控制方法。Wherein, the processor is configured to execute the touch screen control method of any one of claims 1-5. 12.一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行权利要求1-5中任一项所述的触摸屏控制方法。12. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the touch screen control method according to any one of claims 1-5 .
CN202011033746.4A 2020-09-27 2020-09-27 Touch screen control method, touch screen control device and storage medium Active CN112148149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011033746.4A CN112148149B (en) 2020-09-27 2020-09-27 Touch screen control method, touch screen control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011033746.4A CN112148149B (en) 2020-09-27 2020-09-27 Touch screen control method, touch screen control device and storage medium

Publications (2)

Publication Number Publication Date
CN112148149A true CN112148149A (en) 2020-12-29
CN112148149B CN112148149B (en) 2025-02-28

Family

ID=73895327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011033746.4A Active CN112148149B (en) 2020-09-27 2020-09-27 Touch screen control method, touch screen control device and storage medium

Country Status (1)

Country Link
CN (1) CN112148149B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114242023A (en) * 2021-12-30 2022-03-25 维沃移动通信有限公司 Display brightness adjustment method, display brightness adjustment device and electronic equipment
WO2025148972A1 (en) * 2024-01-10 2025-07-17 荣耀终端股份有限公司 Sensitivity threshold value determination method for capacitance value sensor, and electronic device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100086533A (en) * 2009-01-23 2010-08-02 남동식 Method for manufacturing touch screen pad
CN103488337A (en) * 2013-08-23 2014-01-01 广东欧珀移动通信有限公司 Method for adjusting touch screen sensitivity under pad pasting condition
US20160062539A1 (en) * 2014-09-02 2016-03-03 Lg Electronics Inc. Mobile terminaland controlling method thereof
CN105975125A (en) * 2016-04-29 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting touch panel parameters and terminal equipment
CN106775094A (en) * 2016-12-24 2017-05-31 珠海市魅族科技有限公司 Sensitivity of touch screen adjusting method and device
CN107272947A (en) * 2017-06-09 2017-10-20 奇酷互联网络科技(深圳)有限公司 Determination method, device and the terminal of adhesive film of touch screen thickness
CN107291280A (en) * 2016-03-31 2017-10-24 宇龙计算机通信科技(深圳)有限公司 A kind of method of adjustment of sensitivity of touch screen, device and terminal device
CN107782280A (en) * 2017-10-20 2018-03-09 维沃移动通信有限公司 A kind of detection method and mobile terminal
CN108062180A (en) * 2017-12-27 2018-05-22 广东欧珀移动通信有限公司 Sensitivity of touch screen control method, device and storage medium and mobile terminal
CN108446052A (en) * 2018-03-22 2018-08-24 广州视源电子科技股份有限公司 Touch mode adjusting method, device, equipment and storage medium
CN108459751A (en) * 2017-02-22 2018-08-28 中兴通讯股份有限公司 A kind of method and apparatus of adjustment sensitivity of touch screen
CN111159669A (en) * 2019-12-03 2020-05-15 北京航空航天大学 Terminal control method, device, terminal and readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100086533A (en) * 2009-01-23 2010-08-02 남동식 Method for manufacturing touch screen pad
CN103488337A (en) * 2013-08-23 2014-01-01 广东欧珀移动通信有限公司 Method for adjusting touch screen sensitivity under pad pasting condition
US20160062539A1 (en) * 2014-09-02 2016-03-03 Lg Electronics Inc. Mobile terminaland controlling method thereof
CN107291280A (en) * 2016-03-31 2017-10-24 宇龙计算机通信科技(深圳)有限公司 A kind of method of adjustment of sensitivity of touch screen, device and terminal device
CN105975125A (en) * 2016-04-29 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting touch panel parameters and terminal equipment
CN106775094A (en) * 2016-12-24 2017-05-31 珠海市魅族科技有限公司 Sensitivity of touch screen adjusting method and device
CN108459751A (en) * 2017-02-22 2018-08-28 中兴通讯股份有限公司 A kind of method and apparatus of adjustment sensitivity of touch screen
CN107272947A (en) * 2017-06-09 2017-10-20 奇酷互联网络科技(深圳)有限公司 Determination method, device and the terminal of adhesive film of touch screen thickness
CN107782280A (en) * 2017-10-20 2018-03-09 维沃移动通信有限公司 A kind of detection method and mobile terminal
CN108062180A (en) * 2017-12-27 2018-05-22 广东欧珀移动通信有限公司 Sensitivity of touch screen control method, device and storage medium and mobile terminal
CN108446052A (en) * 2018-03-22 2018-08-24 广州视源电子科技股份有限公司 Touch mode adjusting method, device, equipment and storage medium
CN111159669A (en) * 2019-12-03 2020-05-15 北京航空航天大学 Terminal control method, device, terminal and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114242023A (en) * 2021-12-30 2022-03-25 维沃移动通信有限公司 Display brightness adjustment method, display brightness adjustment device and electronic equipment
WO2025148972A1 (en) * 2024-01-10 2025-07-17 荣耀终端股份有限公司 Sensitivity threshold value determination method for capacitance value sensor, and electronic device

Also Published As

Publication number Publication date
CN112148149B (en) 2025-02-28

Similar Documents

Publication Publication Date Title
EP3306441B1 (en) Temperature control method and apparatus
US10610152B2 (en) Sleep state detection method, apparatus and system
WO2017124773A1 (en) Gesture recognition method and device
CN106572299A (en) Camera switching-on method and device
WO2018219170A1 (en) Focusing control method, computer device and computer readable storage medium
EP3136699A1 (en) Method and device for connecting external equipment
JP2017504285A (en) Method and apparatus for taking images
US11062640B2 (en) Screen display method and screen display device
CN107704190B (en) Gesture recognition method and device, terminal and storage medium
CN107659717B (en) State detection method, device and storage medium
CN110262692B (en) Touch screen scanning method, device and medium
US20180139790A1 (en) Methods, apparatuses and storage medium for controlling a wireless connection
KR20170038178A (en) Method, apparatus, and mobile terminal for identificating fingerprint
WO2016110146A1 (en) Mobile terminal and virtual key processing method
CN109922202A (en) Screen control method and device, readable storage medium storing program for executing, electronic equipment
WO2018219267A1 (en) Exposure method and device, computer-readable storage medium, and mobile terminal
CN111880681A (en) Touch screen sampling rate adjustment method, device and computer storage medium
RU2665300C2 (en) Method and device for processing point reporting of touch screen
CN106354504A (en) Message display method and device thereof
WO2021103994A1 (en) Model training method and apparatus for information recommendation, electronic device and medium
CN112148149B (en) Touch screen control method, touch screen control device and storage medium
CN104850855B (en) The method and apparatus for calculating confidence level
EP3828716A1 (en) Method and apparatus for identifying electronic device, terminal device, and electronic device
CN108962189A (en) Luminance regulating method and device
US9723218B2 (en) Method and device for shooting a picture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant