CN116225274A - Identification method and device for touch operation, electronic equipment and storage medium - Google Patents

Identification method and device for touch operation, electronic equipment and storage medium Download PDF

Info

Publication number
CN116225274A
CN116225274A CN202310476916.3A CN202310476916A CN116225274A CN 116225274 A CN116225274 A CN 116225274A CN 202310476916 A CN202310476916 A CN 202310476916A CN 116225274 A CN116225274 A CN 116225274A
Authority
CN
China
Prior art keywords
touch operation
acceleration data
knuckle
touch
screen
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
CN202310476916.3A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310476916.3A priority Critical patent/CN116225274A/en
Publication of CN116225274A publication Critical patent/CN116225274A/en
Pending legal-status Critical Current

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

本申请公开了一种触控操作的识别方法、装置、电子设备及存储介质,所述方法应用于电子设备,电子设备包括:触控屏、应用处理器AP和基带处理器CP,所述方法包括:AP监测是否存在对触控屏的触控操作;CP监听加速度数据,并将监听到的加速度数据存储到存储模块;在AP监测到触控操作时,CP根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作,并将识别结果发送给AP。采用该实施例,CP根据加速度数据识别触控操作是否为指关节敲击动作。相对于现有技术,省去了将加速度数据由CP传到AP,由AP根据接收到的加速度数据进行识别的操作。可以及时地对触控操作进行识别,能够提高对指关节敲击屏幕的识别率。

Figure 202310476916

The present application discloses a touch operation recognition method, device, electronic equipment, and storage medium. The method is applied to electronic equipment, and the electronic equipment includes: a touch screen, an application processor AP, and a baseband processor CP. The method Including: the AP monitors whether there is a touch operation on the touch screen; the CP monitors the acceleration data and stores the monitored acceleration data in the storage module; when the AP detects a touch operation, the CP Identify whether the touch operation is a knuckle tapping action, and send the identification result to the AP. With this embodiment, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data. Compared with the prior art, the operation of transmitting the acceleration data from the CP to the AP, and the AP performs identification according to the received acceleration data is omitted. The touch operation can be recognized in time, and the recognition rate of knuckle tapping on the screen can be improved.

Figure 202310476916

Description

触控操作的识别方法、装置、电子设备及存储介质Recognition method, device, electronic device and storage medium for touch operation

技术领域technical field

本申请涉及电子设备技术领域,尤其涉及一种触控操作的识别方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic equipment, and in particular to a touch operation recognition method, device, electronic equipment, and storage medium.

背景技术Background technique

随着手机、平板等电子设备功能的多样化,用户可以通过截屏、区域截屏或者录屏等功能保存屏幕中显示的图像或者视频。除了通过菜单或者按压物理按键启动相关功能以外,还可以利用指关节在触控屏上单击或者双击等操作启动截屏、区域截屏或者录屏等功能。With the diversification of functions of electronic devices such as mobile phones and tablets, users can save images or videos displayed on the screen through functions such as screen capture, area screen capture, or screen recording. In addition to starting related functions through menus or pressing physical buttons, you can also use your knuckles to click or double-click on the touch screen to start functions such as screen capture, area screen capture, or screen recording.

在实际操作中,利用指关节敲击显示屏启动相关功能时,存在成功率低或者误操作高的问题。In actual operation, when using knuckles to tap the display screen to start related functions, there is a problem of low success rate or high misoperation.

因此,如何提高识别指关节操作的成功率是目前亟待解决的技术问题。Therefore, how to improve the success rate of recognizing knuckle operations is a technical problem to be solved urgently.

发明内容Contents of the invention

本申请提供了一种触控操作的识别方法、装置、电子设备及存储介质,能够提高对指关节敲击屏幕的识别率。The present application provides a touch operation recognition method, device, electronic equipment and storage medium, which can improve the recognition rate of knuckle tapping on the screen.

第一方面,本申请实施例提供了一种触控操作的识别方法,应用于电子设备,所述电子设备包括:触控屏、应用处理器(applicationprocessor,AP)和基带处理器(cooperateprocessor,CP),所述方法包括:In the first aspect, an embodiment of the present application provides a touch operation recognition method, which is applied to an electronic device, and the electronic device includes: a touch screen, an application processor (application processor, AP) and a baseband processor (cooperate processor, CP) ), the method includes:

所述AP监测是否存在对所述触控屏的触控操作;The AP monitors whether there is a touch operation on the touch screen;

所述CP监听加速度数据,并将监听到的加速度数据存储到存储模块;The CP monitors acceleration data, and stores the monitored acceleration data in a storage module;

在所述AP监测到触控操作时,所述CP根据所述存储模块中存储的加速度数据识别所述触控操作是否为指关节敲击动作,并将识别结果发送给所述AP。When the AP detects a touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module, and sends the identification result to the AP.

采用该实施例进行触控操作的识别时,在AP监测到触控操作时,CP根据加速度数据识别触控操作是否为指关节敲击动作。相对于现有技术中,CP将加速度数据传给AP,由AP根据接收到的加速度数据识别触控操作是否为指关节敲击动作的技术方案来说,本申请实施例省去了将存储模块中的加速度数据由CP传到AP的操作,可以及时地对触控操作进行识别,能够提高对指关节敲击屏幕的识别率。When using this embodiment to identify the touch operation, when the AP detects the touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data. Compared with the technical solution in the prior art, where the CP transmits the acceleration data to the AP, and the AP identifies whether the touch operation is a knuckle tapping action according to the received acceleration data, the embodiment of the present application omits the storage module The acceleration data in the CP is transmitted from the CP to the AP operation, which can recognize the touch operation in a timely manner, and can improve the recognition rate of the knuckles tapping the screen.

在一种可能的实现方式中,触控操作的识别方法还可以包括:In a possible implementation manner, the method for identifying a touch operation may further include:

在所述AP监测到触控操作时,获取所述触控屏的电容值;Acquire the capacitance value of the touch screen when the AP detects a touch operation;

所述AP根据所述电容值识别所述触控操作是否为指关节敲击动作;The AP identifies whether the touch operation is a knuckle tapping action according to the capacitance value;

在所述AP根据所述电容值到的识别结果与所述CP根据所述加速度数据得到的识别结果都是指关节敲击动作时,确定所述触控操作为指关节敲击动作。When the recognition result obtained by the AP according to the capacitance value and the recognition result obtained by the CP according to the acceleration data are both knuckle tapping actions, it is determined that the touch operation is a knuckle tapping action.

该实施例中,AP根据触控屏的电容值对触控操作进行识别,在AP根据电容值得到的识别结果与CP根据加速度数据得到的识别结果都是指关节敲击动作时,才确定触控操作为指关节敲击动作,采用该实施例提高了识别的准确性。In this embodiment, the AP recognizes the touch operation according to the capacitance value of the touch screen, and the touch operation is determined only when the recognition result obtained by the AP according to the capacitance value and the recognition result obtained by the CP according to the acceleration data are both knuckle tapping actions. The control operation is a knuckle tapping action, and the recognition accuracy is improved by adopting this embodiment.

在一种可能的实现方式中,触控操作的识别方法还可以包括:In a possible implementation manner, the method for identifying a touch operation may further include:

在所述AP根据所述电容值得到的识别结果与所述CP根据所述加速度数据得到的识别结果不都是指关节敲击动作时,确定所述触控操作为点击操作。When the recognition result obtained by the AP according to the capacitance value and the recognition result obtained by the CP according to the acceleration data are not both knuckle tapping actions, it is determined that the touch operation is a click operation.

在一种可能的实现方式中,所述存储模块是功耗低于双倍速率同步动态随机存储器DDR的存储模块。In a possible implementation manner, the storage module is a storage module whose power consumption is lower than that of a double rate synchronous dynamic random access memory (DDR).

采用该实施例,相对于现有技术中使用DDR存储加速度数据来说,使用功耗低于DDR的存储模块存储加速度数据,有利于降低功耗。Using this embodiment, compared to using DDR to store acceleration data in the prior art, using a memory module with lower power consumption than DDR to store acceleration data is beneficial to reduce power consumption.

第二方面,本申请实施例提供了一种触控操作方法,应用于电子设备,所述电子设备包括:触控屏、应用处理器AP和基带处理器CP,所述方法包括:In the second aspect, an embodiment of the present application provides a touch operation method, which is applied to an electronic device, and the electronic device includes: a touch screen, an application processor AP, and a baseband processor CP, and the method includes:

所述AP监测是否存在对所述触控屏的触控操作;The AP monitors whether there is a touch operation on the touch screen;

所述CP监听加速度数据,并将监听到的加速度数据存储到预设的存储模块;The CP monitors acceleration data, and stores the monitored acceleration data into a preset storage module;

在所述AP监测到触控操作时,所述CP根据所述存储模块中存储的加速度数据识别所述触控操作是否为指关节敲击动作,并将识别结果发送给所述AP;When the AP detects a touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module, and sends the identification result to the AP;

响应于所述触控操作,所述AP执行与识别出的所述触控操作的类型匹配的预设操作。In response to the touch operation, the AP performs a preset operation matching the recognized type of the touch operation.

在一种可能的实现方式中,在确定所述触控操作包括指关节敲击动作时,所述预设操作包括:截屏、区域截屏或者录屏中的任意一项操作。In a possible implementation manner, when it is determined that the touch operation includes a knuckle tapping action, the preset operation includes: any one of screen capture, area screen capture, or screen recording.

第三方面,本申请实施例提供了一种触控操作的识别装置,应用于电子设备,所述电子设备包括:触控屏,所述识别装置包括:应用处理器AP和基带处理器CP,In the third aspect, the embodiment of the present application provides a touch operation recognition device, which is applied to electronic equipment, and the electronic device includes: a touch screen, and the recognition device includes: an application processor AP and a baseband processor CP,

所述AP,用于监测是否存在对所述触控屏的触控操作;The AP is used to monitor whether there is a touch operation on the touch screen;

所述CP,用于监听加速度数据,并将监听到的加速度数据存储到预设的存储模块,以及用于在所述AP监测到触控操作时,根据所述存储模块中存储的加速度数据识别所述触控操作是否为指关节敲击动作,并将识别结果发送给所述AP。The CP is configured to monitor acceleration data, and store the monitored acceleration data in a preset storage module, and is configured to identify according to the acceleration data stored in the storage module when the AP detects a touch operation. Whether the touch operation is a knuckle tapping action, and send the recognition result to the AP.

第四方面,本申请实施例提供了一种触控操作装置,应用于电子设备,所述电子设备包括:触控屏,所述触控操作装置包括:响应模块和如第三方面所述的触控操作的识别装置;In a fourth aspect, an embodiment of the present application provides a touch operation device, which is applied to an electronic device, and the electronic device includes: a touch screen, and the touch operation device includes: a response module and the third aspect Recognition device for touch operation;

所述响应模块,用于在所述识别装置确定所述触控操作包括指关节敲击动作时,响应于所述触控操作,执行与所述触控操作匹配的预设操作。The response module is configured to execute a preset operation matching the touch operation in response to the touch operation when the recognition device determines that the touch operation includes a knuckle tapping action.

第五方面,本申请实施例提供了一种电子设备,包括:触控屏、应用处理器AP、基带处理器CP、以及存储有指令的存储器,所述指令在被所述AP和所述CP执行时使得所述电子设备执行如上述第一方面或者第一方面的任意一种可能的实现方式所述的方法或如上述第二方面或者第二方面的任意一种可能的实现方式所述的方法。In the fifth aspect, the embodiment of the present application provides an electronic device, including: a touch screen, an application processor AP, a baseband processor CP, and a memory storing instructions, and the instructions are executed by the AP and the CP When executed, the electronic device executes the method described in the first aspect or any possible implementation of the first aspect or the method described in the second aspect or any possible implementation of the second aspect. method.

第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有指令,所述指令在被电子设备执行时,使得所述电子设备执行如上述第一方面或者第一方面的任意一种可能的实现方式所述的方法或如上述第二方面或者第二方面的任意一种可能的实现方式所述的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed by an electronic device, the electronic device performs the above-mentioned first aspect. Or the method described in any possible implementation manner of the first aspect, or the method described in the above second aspect or any possible implementation manner of the second aspect.

第七方面,本申请实施例提供了一种计算机程序产品,其所述计算机程序产品包括指令,所述指令在被电子设备执行时使得所述电子设备执行如上述第一方面或者第一方面的任意一种可能的实现方式所述的方法或如上述第二方面或者第二方面的任意一种可能的实现方式所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes instructions, and the instructions, when executed by an electronic device, cause the electronic device to perform the above-mentioned first aspect or the first aspect. The method described in any possible implementation manner or the method described in the second aspect or any possible implementation manner of the second aspect.

可以理解的是,上述第二方面至第七方面所能达到的有益效果可以参考上述第一方面或者第一方面的任意一种可能的实现方式中的方法对应的有益效果。It can be understood that, for the beneficial effects achieved by the above second aspect to the seventh aspect, reference may be made to the above first aspect or the corresponding beneficial effects of the method in any possible implementation manner of the first aspect.

附图说明Description of drawings

图1是本申请一实施例提供的触控操作的识别方法的流程示意图;FIG. 1 is a schematic flowchart of a method for recognizing touch operations provided by an embodiment of the present application;

图2是现有技术中AP与CP之间的信息交互示意图;FIG. 2 is a schematic diagram of information interaction between an AP and a CP in the prior art;

图3是本申请实施例中AP与CP之间的信息交互示意图;FIG. 3 is a schematic diagram of information interaction between an AP and a CP in an embodiment of the present application;

图4是本申请一实施例提供的触控操作的识别方法的流程示意图;FIG. 4 is a schematic flowchart of a touch operation recognition method provided by an embodiment of the present application;

图5是本申请一实施例提供的触控操作方法的流程示意图;FIG. 5 is a schematic flowchart of a touch operation method provided by an embodiment of the present application;

图6是本申请一实施例提供的触控操作的识别装置的结构示意图;FIG. 6 is a schematic structural diagram of a touch-operated recognition device provided by an embodiment of the present application;

图7是本申请一实施例提供的触控操作装置的结构示意图;FIG. 7 is a schematic structural diagram of a touch operation device provided by an embodiment of the present application;

图8是本申请实施例提供的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图9是本申请实施例提供的一种电子设备的软件系统的框图。FIG. 9 is a block diagram of a software system of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be further described in detail below in conjunction with the accompanying drawings.

应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, It means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

在使用手机、平板等带有触控屏的电子设备时,用户可以通过指关节敲击触控屏对电子设备执行相关操作,若检测到对触控屏的触控操作,需要对触控操作的类型进行识别,确定触控操作是指关节敲击操作还是普通的触控点击操作。然后响应确定的触控操作的类型,执行与之匹配的相关操作。目前大部份智能手机采用AP加CP的系统架构,AP用于运行操作系统和处理高负荷的多媒体应用,CP用于完成网络交互等功能。When using electronic devices with touch screens such as mobile phones and tablets, users can perform related operations on the electronic devices by tapping the touch screen with their knuckles. Identify the type of touch operation to determine whether the touch operation is a joint tapping operation or a common touch click operation. Then, in response to the determined type of the touch operation, a matching related operation is performed. At present, most smartphones use the system architecture of AP plus CP. AP is used to run the operating system and handle high-load multimedia applications, and CP is used to complete functions such as network interaction.

参见图1,图1是触控操作的识别方法的流程示意图。如图1所示,触控操作的识别方法可以包括步骤101至步骤106,其中:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for recognizing a touch operation. As shown in FIG. 1, the method for recognizing a touch operation may include steps 101 to 106, wherein:

101.监测到对触摸屏的触控操作。101. A touch operation on the touch screen is detected.

102.根据触控屏的电容值得到第一结果,第一结果是:确定触控操作是否为指关节敲击动作。102. Obtain a first result according to the capacitance value of the touch screen, the first result is: determine whether the touch operation is a knuckle tapping action.

103.根据加速度数据,得到第二结果,第二结果是:确定触控操作是否为指关节敲击动作。103. Obtain a second result according to the acceleration data, and the second result is: determine whether the touch operation is a knuckle tapping action.

在一些可能的实施方式中,可以根据指关节虚拟传感器监听加速度数据。虚拟传感器主要针对难以直接测量或直接测量成本很高的被测量,通过建模对相关量进行测量,再对测得的信号进行处理,可间接获取被测量的信息。从某种意义上说它是一个数学模型,这种模型可以根据有关原始数据,通过一个引申的系统模型的创建,来实现被测量数据的输出。虚拟传感器的原始数据可来自于虚拟加工过程或虚拟仿真过程,也可来自于真实的物理传感器。In some possible implementations, the acceleration data can be monitored according to the knuckle virtual sensor. The virtual sensor is mainly aimed at the measurand that is difficult to measure directly or the cost of direct measurement is very high. Through modeling to measure the relevant quantities, and then process the measured signal, the information of the measurand can be obtained indirectly. In a sense, it is a mathematical model, which can realize the output of the measured data through the creation of an extended system model based on the relevant original data. The raw data of the virtual sensor can come from the virtual machining process or the virtual simulation process, and can also come from the real physical sensor.

104.判断第一结果与第二结果是否都是指关节敲击动作。104. Determine whether the first result and the second result both refer to a knuckle tapping action.

若是,则执行步骤105;若否,则执行步骤106。If yes, execute step 105; if not, execute step 106.

105.确定触控操作为指关节敲击动作。105. Determine that the touch operation is a knuckle tapping action.

106.确定触控操作为普通的触控点击操作。106. Determine that the touch operation is an ordinary touch and click operation.

需要说明的是,本申请实施例与现有技术的差异体现在图1中的步骤103的具体实现中。It should be noted that the difference between the embodiment of the present application and the prior art is reflected in the specific implementation of step 103 in FIG. 1 .

参见图2和图3,图2是现有技术中AP与CP之间的信息交互示意图,图3是本申请实施例中AP与CP之间的信息交互示意图。具体地,如图2所示,现有技术中,CP监听加速度数据并将加速度数据存储到存储模块中,在AP确定有触控操作时,CP将存储模块中存储的加速度数据发送给AP,在AP侧,指关节驱动请求加速度数据,根据指关节算法结合从CP获取的加速度数据确定触控操作是否为指关节敲击动作。由图2可知CP对监听到的加速度数据不进行识别,而是将存储在存储模块中的加速度数据传给AP,由AP根据接收到的加速度数据进行识别,确定是否为指关节敲击动作,由于存储模块中保存的加速度数据通常比较大,比如,传输的加速度数据可以是128个数,加速度数据由CP传到AP需要一定的时长,另外,数据传输中有可能存在数据丢失或者改变等失误,这些都可能影响识别效率和准确性。Referring to FIG. 2 and FIG. 3 , FIG. 2 is a schematic diagram of information interaction between an AP and a CP in the prior art, and FIG. 3 is a schematic diagram of information interaction between an AP and a CP in an embodiment of the present application. Specifically, as shown in FIG. 2, in the prior art, the CP monitors the acceleration data and stores the acceleration data in the storage module. When the AP determines that there is a touch operation, the CP sends the acceleration data stored in the storage module to the AP. On the AP side, the knuckle driver requests acceleration data, and determines whether the touch operation is a knuckle tapping action based on the knuckle algorithm and the acceleration data obtained from the CP. It can be seen from Figure 2 that the CP does not identify the monitored acceleration data, but transmits the acceleration data stored in the storage module to the AP, and the AP identifies it according to the received acceleration data to determine whether it is a knuckle tapping action. Because the acceleration data stored in the storage module is usually relatively large, for example, the transmitted acceleration data can be 128 numbers, and it takes a certain amount of time for the acceleration data to be transmitted from the CP to the AP. In addition, there may be errors such as data loss or change during data transmission. , which may affect the recognition efficiency and accuracy.

作为改进,本申请实施例采用的技术方案可以参考图3所示,CP监听加速度数据,并将加速度数据存储到存储模块,存储模块可以用于存储预设个数(比如128个数等)的加速度数据,当存储模块存满后,新的监听到的加速度数据覆盖最先存储的数据,当AP确定有触控操作时,CP根据存储模块中存储的预设个数的加速度数据确定触控操作是否为指关节敲击动作,然后将识别结果是否为指关节敲击动作发送给AP。采用该实施方式,存储模块中存储的加速度数据不用由CP传给AP,节省了传输时间,避免了传输中出错,有利于提高指关节敲击屏幕的识别率。As an improvement, the technical solution adopted in the embodiment of the present application can refer to Figure 3. The CP monitors the acceleration data and stores the acceleration data in the storage module. The storage module can be used to store a preset number (such as 128 numbers, etc.) Acceleration data. When the storage module is full, the newly monitored acceleration data will overwrite the first stored data. When the AP determines that there is a touch operation, the CP determines the touch operation according to the preset number of acceleration data stored in the storage module. It determines whether the operation is a knuckle tapping action, and then sends the recognition result whether it is a knuckle tapping action to the AP. With this embodiment, the acceleration data stored in the storage module does not need to be transmitted from the CP to the AP, which saves transmission time, avoids errors in transmission, and improves the recognition rate of knuckle tapping on the screen.

另外,现有技术中,电子设备打开指关节识别功能,就唤醒DDR,CP监听到的加速度数据存储在DDR中。本申请实施例中,为了节省功耗,不唤醒DDR,CP监听到的加速度数据存储到功耗低于DDR的存储模块中(比如Island低功耗),采用这种方式有利于减少功耗。In addition, in the prior art, when the electronic device turns on the knuckle recognition function, the DDR is woken up, and the acceleration data monitored by the CP is stored in the DDR. In this embodiment of the application, in order to save power consumption, without waking up DDR, the acceleration data monitored by the CP is stored in a storage module with lower power consumption than DDR (such as Island low power consumption). This method is beneficial to reduce power consumption.

需要说明的是,本申请实施例涉及的电子设备为具有触控屏的电子设备,具体可以为手机、平板电脑等,本申请实施例对电子设备的具体类型不做限定。为了便于理解,接下来将以电子设备为手机为例详细说明本申请提供的触控操作的识别方法。It should be noted that the electronic device involved in the embodiment of the present application is an electronic device with a touch screen, specifically, a mobile phone, a tablet computer, etc., and the specific type of the electronic device is not limited in the embodiment of the present application. For ease of understanding, the method for identifying touch operations provided by the present application will be described in detail below by taking the electronic device as an example of a mobile phone.

参见图4,图4是本申请实施例提供的一种触控操作的识别方法的流程示意图。在该实施例中,触控操作的识别方法包括步骤401至步骤404,其中:Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a method for recognizing a touch operation provided by an embodiment of the present application. In this embodiment, the method for identifying a touch operation includes steps 401 to 404, wherein:

401.AP监测是否存在对触控屏的触控操作。401. The AP monitors whether there is a touch operation on the touch screen.

具体地,AP可以通过电子设备上的传感器监测是否存在对触控屏的触控操作。Specifically, the AP can monitor whether there is a touch operation on the touch screen through a sensor on the electronic device.

402.CP监听加速度数据,并将监听到的加速度数据存储到存储模块。402. The CP monitors the acceleration data, and stores the monitored acceleration data in the storage module.

具体地,CP可以利用指关节虚拟传感器获取监听到的加速度数据。Specifically, the CP can use the knuckle virtual sensor to obtain the monitored acceleration data.

403.在AP监测到触控操作时,CP根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作。403. When the AP detects a touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module.

404.CP将识别结果发送给AP。404. The CP sends the identification result to the AP.

采用该实施例进行触控操作的识别时,在AP监测到触控操作时,CP根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作。相对于现有技术中,CP将存储模块中的加速度数据传给AP,由AP根据接收到的加速度数据识别触控操作是否为指关节敲击动作的技术方案来说,本申请实施例省去了将存储模块中的加速度数据由CP传到AP的操作,可以及时地对触控操作进行识别,能够提高对指关节敲击屏幕的识别率。When using this embodiment to identify the touch operation, when the AP detects the touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module. Compared with the technical solution in the prior art, where the CP transmits the acceleration data in the storage module to the AP, and the AP identifies whether the touch operation is a knuckle tapping action according to the received acceleration data, the embodiment of the present application omits In order to transmit the acceleration data in the storage module from the CP to the AP, the touch operation can be recognized in time, and the recognition rate of the knuckle tapping the screen can be improved.

在一些可能的实施方式中,在AP监测到触控操作时,AP根据触控屏的电容值识别触控操作是否为指关节敲击动作;具体地,可以根据训练好的触控操作的神经网络模型结合触控屏的电容值确定触控操作是否为指关节敲击动作。在AP根据触控屏的电容值得到的识别结果与CP根据加速度数据得到的识别结果都是指关节敲击动作时,确定触控操作为指关节敲击动作。In some possible implementations, when the AP detects a touch operation, the AP identifies whether the touch operation is a knuckle tapping action according to the capacitance value of the touch screen; The network model combines the capacitance value of the touch screen to determine whether the touch operation is a knuckle tapping action. When the recognition result obtained by the AP based on the capacitance value of the touch screen and the recognition result obtained by the CP based on the acceleration data are both knuckle tapping actions, it is determined that the touch operation is a knuckle tapping action.

可以理解的,当用户在触摸屏上点击、滑动或者用指关节敲击时,被点击、滑动或敲击的区域的电容值会发生变化,触控驱动模块能够监测到触摸屏上各区域的电容值。It can be understood that when the user clicks, slides or taps with knuckles on the touch screen, the capacitance value of the clicked, slide or tapped area will change, and the touch driver module can monitor the capacitance value of each area on the touch screen .

该实施例中,AP根据触控屏的电容值对触控操作进行识别,在AP根据容值数据得到的识别结果与CP根据加速度数据得到的识别结果都是指关节敲击动作时,才确定触控操作为指关节敲击动作,采用该实施例提高了识别的准确性。In this embodiment, the AP recognizes the touch operation according to the capacitance value of the touch screen, and only when the recognition result obtained by the AP according to the capacitance value data and the recognition result obtained by the CP according to the acceleration data are both knuckle tapping actions The touch operation is a knuckle tapping action, and the adoption of this embodiment improves the accuracy of recognition.

在一些可能的实施方式中,存储加速度数据的存储模块是功耗低于DDR的存储模块。CP将加速度数据存储到低功耗的存储模块中。In some possible implementation manners, the storage module storing acceleration data is a storage module with lower power consumption than DDR. The CP stores acceleration data in a memory module with low power consumption.

采用该实施例,相对于现有技术中使用DDR存储加速度数据来说,使用低功耗存储模块存储加速度数据,有利于降低功耗。Using this embodiment, compared with using DDR to store acceleration data in the prior art, using a low-power storage module to store acceleration data is beneficial to reduce power consumption.

如图5所示,本申请实施例还提供了一种触控操作方法,应用于电子设备,电子设备包括:触控屏、应用处理器AP和基带处理器CP,触控操作方法包括如下步骤:As shown in Figure 5, the embodiment of the present application also provides a touch operation method, which is applied to an electronic device. The electronic device includes: a touch screen, an application processor AP, and a baseband processor CP. The touch operation method includes the following steps :

501.AP监测是否存在对触控屏的触控操作。501. The AP monitors whether there is a touch operation on the touch screen.

502.CP监听加速度数据,并将监听到的加速度数据存储到存储模块。502. The CP monitors the acceleration data, and stores the monitored acceleration data in the storage module.

在一些可能的实施方式中,可以利用指关节虚拟传感器获取监听到的加速度数据。监听到的加速度数据可以存储在低功耗岛对应的低功耗存储模块中。In some possible implementation manners, the monitored acceleration data may be obtained by using the knuckle virtual sensor. The monitored acceleration data may be stored in a low-power storage module corresponding to the low-power island.

503.在AP监测到触控操作时,CP根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作。503. When the AP detects a touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module.

504.CP将根据加速度数据得到的识别结果发送给AP。504. The CP sends the recognition result obtained according to the acceleration data to the AP.

在一些可能的实施方式中,还可以包括:在AP监测到触控操作时,AP根据触控屏的电容值识别触控操作是否为指关节敲击动作;在AP根据触控屏的电容值得到的识别结果与CP根据加速度数据得到的识别结果都是指关节敲击动作时,确定触控操作为指关节敲击动作。In some possible implementation manners, it may also include: when the AP detects the touch operation, the AP identifies whether the touch operation is a knuckle tapping action according to the capacitance value of the touch screen; When the obtained recognition result and the recognition result obtained by the CP based on the acceleration data are both knuckle tapping actions, it is determined that the touch operation is a knuckle tapping action.

505.响应于触控操作,AP执行与触控操作的类型匹配的预设操作。505. In response to the touch operation, the AP performs a preset operation matching the type of the touch operation.

其中,预设操作可以包括:截屏、区域截屏或者录屏等操作中的任意一项操作。Wherein, the preset operation may include: any one of operations such as screen capture, area screen capture, or screen recording.

采用该实施例进行触控操作时,在AP监测到触控操作时,CP根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作。相对于现有技术中,CP将存储模块中存储的加速度数据传给AP,由AP根据接收到的加速度数据识别触控操作是否为指关节敲击动作的技术方案来说,本申请实施例省去了将加速度数据由CP传到AP的操作,可以及时地对触控操作进行识别,能够提高对指关节敲击屏幕的识别效率,有利于及时准确地响应用户对触控屏的触控操作。When using this embodiment to perform a touch operation, when the AP detects the touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module. Compared with the technical solution in the prior art, where the CP transmits the acceleration data stored in the storage module to the AP, and the AP identifies whether the touch operation is a knuckle tapping action according to the received acceleration data, the embodiment of the present application saves The operation of transmitting the acceleration data from the CP to the AP is removed, and the touch operation can be recognized in a timely manner, which can improve the recognition efficiency of the knuckles tapping the screen, and is conducive to responding to the user's touch operation on the touch screen in a timely and accurate manner. .

如图6所示,本申请实施例还提供了一种触控操作的识别装置600,应用于电子设备,电子设备包括:触控屏,识别装置600包括:应用处理器AP601和基带处理器CP602,AP601用于监测是否存在对触控屏的触控操作;CP602用于监听加速度数据并将监听到的加速度数据存储到存储模块,以及用于在AP601监测到触控操作时,根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作,以及用于将识别结果发送给AP601。As shown in Figure 6, the embodiment of the present application also provides a touch-operated identification device 600, which is applied to electronic equipment, the electronic equipment includes: a touch screen, and the identification device 600 includes: an application processor AP601 and a baseband processor CP602 , AP601 is used to monitor whether there is a touch operation on the touch screen; CP602 is used to monitor the acceleration data and store the monitored acceleration data in the storage module, and when AP601 detects a touch operation, according to the storage module The stored acceleration data identifies whether the touch operation is a knuckle tapping action, and is used to send the identification result to the AP601.

在一些可能的实施方式中,AP601还用于,在AP601监测到触控操作时,AP601根据触控屏的电容值识别触控操作是否为指关节敲击动作;在AP601根据电容值得到的识别结果与CP602根据存储模块中存储的加速度数据得到的识别结果都是指关节敲击动作时,确定触控操作为指关节敲击动作。In some possible implementations, the AP601 is also used to identify whether the touch operation is a knuckle tapping action according to the capacitance value of the touch screen when the AP601 detects the touch operation; When the result and the recognition result obtained by the CP602 based on the acceleration data stored in the storage module are both knuckle tapping actions, the touch operation is determined to be a knuckle tapping action.

在一些可能的实施方式中,存储模块是功耗低于DDR的存储模块。In some possible implementation manners, the memory module is a memory module with lower power consumption than DDR.

如图7所示,本申请实施例还提供了一种触控操作装置,应用于电子设备,电子设备包括:触控屏,触控操作装置700包括:响应模块701和识别装置702、识别装置702包括:应用处理器AP7021和基带处理器CP7022;As shown in FIG. 7 , the embodiment of the present application also provides a touch operation device, which is applied to electronic equipment. The electronic equipment includes a touch screen. 702 includes: application processor AP7021 and baseband processor CP7022;

响应模块701,用于在识别装置702确定触控操作包括指关节敲击动作时,响应于触控操作,执行与触控操作匹配的预设操作。The response module 701 is configured to execute a preset operation matching the touch operation in response to the touch operation when the recognition device 702 determines that the touch operation includes a knuckle tapping action.

AP7021用于监测是否存在对触控屏的触控操作;CP7022用于监听加速度数据,并将监听到的加速度数据存储到存储模块,以及用于在AP7021监测到触控操作时,根据存储模块中存储的加速度数据识别触控操作是否为指关节敲击动作,并将识别结果发送给AP7021。AP7021 is used to monitor whether there is a touch operation on the touch screen; CP7022 is used to monitor the acceleration data, and store the monitored acceleration data in the storage module, and is used when the AP7021 detects a touch operation, according to the storage module The stored acceleration data identifies whether the touch operation is a knuckle tapping action, and sends the identification result to the AP7021.

在一些可能的实施方式中,AP7021还用于,在AP7021监测到触控操作时,AP7021根据触控屏的电容值识别触控操作是否为指关节敲击动作;在AP7021根据电容值得到的识别结果与CP7022根据加速度数据得到的识别结果都是指关节敲击动作时,确定触控操作为指关节敲击动作。In some possible implementations, the AP7021 is also used to identify whether the touch operation is a knuckle tapping action according to the capacitance value of the touch screen when the AP7021 detects the touch operation; When the result and the recognition result obtained by CP7022 based on the acceleration data are both knuckle tapping actions, the touch operation is determined to be a knuckle tapping action.

在一些可能的实施方式中,存储模块是功耗低于双倍速率同步动态随机存储器DDR的存储模块。In some possible implementation manners, the memory module is a memory module whose power consumption is lower than that of a double rate synchronous dynamic random access memory (DDR).

接下来,对本申请实施例涉及的电子设备予以说明。Next, the electronic device involved in the embodiment of the present application will be described.

图8是本申请实施例提供的一种电子设备800的结构示意图,其具体可以是手机、平板电脑等设备。参见图8,电子设备800可以包括处理器810,外部存储器接口820,内部存储器821,通用串行总线(universal serial bus,USB)接口830,充电管理模块840,电源管理模块841,电池842,天线1,天线2,移动通信模块850,无线通信模块860,音频模块870,扬声器870A,受话器870B,麦克风870C,耳机接口870D,传感器模块880,按键890,马达891,指示器892,摄像头893,屏幕894,以及用户标识模块(subscriber identification module,SIM)卡接口895等。其中,传感器模块880可以包括压力传感器880A,陀螺仪传感器880B,气压传感器880C,磁传感器880D,加速度传感器880E,距离传感器880F,接近光传感器880G,指纹传感器880H,温度传感器880J,触摸传感器880K,环境光传感器880L,骨传导传感器880M等。FIG. 8 is a schematic structural diagram of an electronic device 800 provided by an embodiment of the present application, which may specifically be a mobile phone, a tablet computer, and other devices. 8, the electronic device 800 may include a processor 810, an external memory interface 820, an internal memory 821, a universal serial bus (universal serial bus, USB) interface 830, a charging management module 840, a power management module 841, a battery 842, and an antenna 1. Antenna 2, mobile communication module 850, wireless communication module 860, audio module 870, speaker 870A, receiver 870B, microphone 870C, earphone jack 870D, sensor module 880, button 890, motor 891, indicator 892, camera 893, screen 894, and a subscriber identification module (subscriber identification module, SIM) card interface 895, etc. Among them, the sensor module 880 may include a pressure sensor 880A, a gyroscope sensor 880B, an air pressure sensor 880C, a magnetic sensor 880D, an acceleration sensor 880E, a distance sensor 880F, a proximity light sensor 880G, a fingerprint sensor 880H, a temperature sensor 880J, a touch sensor 880K, an environment Light sensor 880L, bone conduction sensor 880M, etc.

处理器810可以包括一个或多个处理单元,比如:处理器810可以包括AP、CP、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(imagesignal processor,ISP)、控制器、存储器、视频编解码器、数字信号处理器(digitalsignal processor,DSP)、基带处理器、和/或神经网络处理器(neural-networkprocessing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 810 may include one or more processing units, for example: the processor 810 may include an AP, a CP, a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (imagesignal processor, ISP) , controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

其中,控制器可以是电子设备800的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 800 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器810中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器810中的存储器为高速缓冲存储器。该存储器可以保存处理器810刚用过或循环使用的指令或数据。如果处理器810需要再次使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器810的等待时间,因而提高了系统的效率。处理器还可以设置低功耗存储器(比如,Island 低功耗等)以降低功耗。A memory may also be provided in the processor 810 for storing instructions and data. In some embodiments, the memory in processor 810 is a cache memory. The memory may hold instructions or data that the processor 810 has just used or recycled. If the processor 810 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 810 is reduced, thereby improving the efficiency of the system. The processor can also set low-power memory (for example, Island low power consumption, etc.) to reduce power consumption.

电子设备800通过GPU,屏幕894,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接屏幕894和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器810可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 800 implements a display function through a GPU, a screen 894, an application processor, and the like. The GPU is a microprocessor for image processing, which is connected to the screen 894 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 810 may include one or more GPUs that execute program instructions to generate or alter display information.

屏幕894用于显示图像,视频等。屏幕894包括显示面板。显示面板可以采用液晶屏幕(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organiclight emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-OLED、量子点发光二极管(quantum dot light emittingdiodes,QLED)等。在一些实施例中,电子设备800可以包括1个或N个屏幕894,N为大于1的整数。The screen 894 is used to display images, videos and the like. Screen 894 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode, or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-OLED, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 800 may include 1 or N screens 894, where N is an integer greater than 1.

电子设备800可以通过ISP,摄像头893,视频编解码器,GPU,屏幕894以及应用处理器等实现拍摄功能。The electronic device 800 can realize the shooting function through an ISP, a camera 893 , a video codec, a GPU, a screen 894 and an application processor.

ISP 用于处理摄像头893反馈的数据。比如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头893中。The ISP is used to process the data fed back by the camera 893. For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 893 .

摄像头893用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备800可以包括1个或N个摄像头893,N为大于1的整数。Camera 893 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 800 may include 1 or N cameras 893, where N is an integer greater than 1.

外部存储器接口820可以用于连接外部存储卡,比如Micro SD卡,实现扩展电子设备800的存储能力。外部存储卡通过外部存储器接口820与处理器810通信,实现数据存储功能。比如将音乐,视频等文件保存在外部存储卡中。The external memory interface 820 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 800 . The external memory card communicates with the processor 810 through the external memory interface 820 to realize the data storage function. Such as saving music, video and other files in the external memory card.

内部存储器821可以用于存储计算机可执行程序代码,计算机可执行程序代码包括指令。处理器810通过运行存储在内部存储器821的指令,来执行电子设备800的各种功能应用以及数据处理。内部存储器821可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备800在使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器821可以包括高速随机存取存储器,还可以包括非易失性存储器,比如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 821 may be used to store computer-executable program code, which includes instructions. The processor 810 executes various functional applications and data processing of the electronic device 800 by executing instructions stored in the internal memory 821 . The internal memory 821 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phonebook, etc.) created by the electronic device 800 during use. In addition, the internal memory 821 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.

加速度传感器880E可检测电子设备800在各个方向上(一般为三轴)加速度的大小。当电子设备800静止时可检测出重力的大小及方向。加速度传感器880E还可以用于识别电子设备800的姿态,应用于横竖屏切换,计步器等应用。当然,加速度传感器880E也可以结合陀螺仪传感器880B,来识别电子设备800的姿态,应用于横竖屏切换。The acceleration sensor 880E can detect the acceleration of the electronic device 800 in various directions (generally three axes). When the electronic device 800 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 880E can also be used to identify the posture of the electronic device 800, and can be used in applications such as horizontal and vertical screen switching, pedometers, and the like. Of course, the acceleration sensor 880E can also be combined with the gyroscope sensor 880B to identify the posture of the electronic device 800 and be applied to switch between horizontal and vertical screens.

陀螺仪传感器880B可以用于确定电子设备800的运动姿态。在一些实施例中,可以通过陀螺仪传感器880B确定电子设备800围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器880B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器880B检测电子设备800抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备800的抖动,实现防抖。陀螺仪传感器880B还可以用于横竖屏切换,导航,体感游戏场景。The gyro sensor 880B can be used to determine the motion posture of the electronic device 800 . In some embodiments, the angular velocity of the electronic device 800 about three axes (ie, x, y and z axes) may be determined by the gyro sensor 880B. The gyro sensor 880B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 880B detects the shaking angle of the electronic device 800, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 800 through reverse movement to achieve anti-shake. The gyroscope sensor 880B can also be used for horizontal and vertical screen switching, navigation, and somatosensory game scenes.

可以理解的是,本申请实施例示意的结构并不构成对电子设备800的具体限定。在本申请另一些实施例中,电子设备800可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 800 . In other embodiments of the present application, the electronic device 800 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

本申请实施例提供的电子设备可以是用户设备(user equipment,UE),例如移动终端(如手机)、平板电脑等设备。The electronic device provided in the embodiment of the present application may be user equipment (user equipment, UE), such as a mobile terminal (such as a mobile phone), a tablet computer, and other devices.

另外,在上述部件之上,运行有操作系统。例如可以是谷歌公司所开发的Android开源操作系统等。In addition, an operating system runs on top of the above components. For example, it may be the Android open source operating system developed by Google.

电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。为了更清楚的说明本申请实施例提供的触控操作的识别方法,本申请实施例以分层架构的安卓(Android)系统为例,对电子设备的软件系统进行示例性说明。The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In order to more clearly illustrate the touch operation recognition method provided by the embodiment of the present application, the embodiment of the present application takes an Android (Android) system with a layered architecture as an example to illustrate the software system of the electronic device.

如图9所示,电子设备可以包括硬件层和软件层,其中,分层架构的Android系统可以包括应用层,应用框架层,系统库层和内核层。在一些可选的实施例中,电子设备的系统还可以包括上述技术架构未提及的层级,如安卓运行时(Android Runtime)。应用程序层可以包括一系列应用程序包,如导航应用、音乐应用、视频应用、和指关节敲击屏幕应用等。应用程序包可以包括视频、聊天等应用,以及系统用户界面(system user interface,SystemUI),指关节敲击屏幕应用可以用于截屏、录屏、长截屏、区域截屏等。As shown in FIG. 9 , the electronic device may include a hardware layer and a software layer, wherein an Android system with a layered architecture may include an application layer, an application framework layer, a system library layer and a kernel layer. In some optional embodiments, the system of the electronic device may also include layers not mentioned above in the technical architecture, such as Android Runtime (Android Runtime). The application layer can include a series of application packages, such as navigation application, music application, video application, and knuckle tapping screen application, etc. The application package can include video, chat and other applications, as well as a system user interface (system user interface, SystemUI). The knuckle tap screen application can be used for screenshots, screen recordings, long screenshots, and area screenshots.

视频、聊天等应用用于为用户提供对应的服务。例如,用户使用视频应用观看视频,使用聊天应用和其他用户聊天,使用音乐应用收听音乐。Applications such as video and chat are used to provide users with corresponding services. For example, a user uses a video application to watch a video, uses a chat application to chat with other users, and uses a music application to listen to music.

SystemUI用于管理电子设备的人机交互界面(user interface,UI),在本申请实施例中,SystemUI用于监测触控屏上的触控操作。The SystemUI is used to manage the human-computer interaction interface (user interface, UI) of the electronic device. In the embodiment of the present application, the SystemUI is used to monitor the touch operation on the touch screen.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层可以包括窗口管理服务模块(window manage service,WMS),显示旋转模块(又称DisplayRotation),应用管理服务模块(activity manage service,AMS)和输入管理模块(又称Input)等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer may include a window management service module (window management service, WMS), a display rotation module (also known as DisplayRotation), an application management service module (activity management service, AMS), and an input management module (also known as Input).

WMS用于管理窗口程序。窗口管理器可以获取屏幕大小,判断是否有状态栏,对屏幕中的图像进行抠图截取屏幕等。本申请实施例中,WMS可以创建并管理应用对应的窗口。WMS is used to manage window programs. The window manager can obtain the screen size, determine whether there is a status bar, cut out images on the screen and capture the screen, etc. In the embodiment of the present application, the WMS can create and manage the windows corresponding to the application.

显示旋转模块用于控制屏幕进行旋转,通过旋转使得屏幕呈现出竖屏或者横屏的布局。比如在确定需要进行屏幕旋转时,通知Surfaceflinger进行应用界面的横竖屏切换。The display rotation module is used to control the rotation of the screen, so that the screen presents a vertical or horizontal layout through rotation. For example, when it is determined that the screen needs to be rotated, Surfaceflinger is notified to switch between the horizontal and vertical screens of the application interface.

AMS用于根据用户的操作启动特定的应用。例如,当图像完成合成操作后,触发图像在屏幕中主键显示出来,在图像显示出来后,触发对确定需要被执行抠图操作的图像执行抠图操作,并创建视频应用对应的应用堆栈,使视频应用能够正常运行。AMS is used to launch specific applications according to user operations. For example, after the compositing operation of the image is completed, the image is triggered to be displayed on the main key on the screen. After the image is displayed, it is triggered to perform the cutout operation on the image that needs to be cut out, and the application stack corresponding to the video application is created, so that Video applications work fine.

系统库层可以包括多个功能模块,比如:传感器模块(又称sensor)和SurfaceFlinger。The system library layer can include multiple functional modules, such as: sensor module (also known as sensor) and SurfaceFlinger.

传感器模块用于获取传感器采集的数据,比如采集屏幕下的环境光。采集电子设备的重力方向信息。或者,传感器模块也可以根据环境光调节屏幕的亮度,以及根据电子设备的重力方向信息,确定电子设备的横竖屏状态信息,横竖屏状态信息用于指示电子设备处于横屏状态还是竖屏状态。The sensor module is used to obtain the data collected by the sensor, such as collecting the ambient light under the screen. Collect gravity direction information of electronic equipment. Alternatively, the sensor module can also adjust the brightness of the screen according to the ambient light, and determine the horizontal and vertical screen state information of the electronic device according to the gravity direction information of the electronic device, and the horizontal and vertical screen state information is used to indicate whether the electronic device is in a landscape or portrait state.

Surfaceflinger是一种系统服务,用于图层的创建、控制和管理等功能。Surfaceflinger is a system service for functions such as layer creation, control, and management.

另外,系统库层还可以包括:表面管理器(surface manager),媒体库(MediaLibraries),三维图形处理库(比如:OpenGL ES),2D图形引擎(比如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,比如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。In addition, the system library layer may also include: a surface manager (surface manager), a media library (MediaLibraries), a 3D graphics processing library (such as: OpenGL ES), a 2D graphics engine (such as: SGL), and so on. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc. 2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。在本申请实施例中,内核层至少包含触控驱动模块和显示驱动模块。The kernel layer is the layer between hardware and software. In the embodiment of the present application, the kernel layer includes at least a touch driver module and a display driver module.

显示驱动模块用于根据应用框架层的模块和应用层的应用程序所提供的图像数据,在屏幕中显示合成的图像。例如,视频应用将视频的一帧图像数据传递给显示驱动模块,显示驱动模块根据该图像数据在触摸屏上显示视频中的一帧图像。SystemUI将图像数据传递给显示驱动模块,显示驱动模块将合成后的图像在屏幕中显示出来。The display driver module is used for displaying the synthesized image on the screen according to the image data provided by the module of the application framework layer and the application program of the application layer. For example, the video application transmits one frame of image data of the video to the display driver module, and the display driver module displays one frame of image in the video on the touch screen according to the image data. The SystemUI transmits the image data to the display driver module, and the display driver module displays the synthesized image on the screen.

触控驱动模块用于监测触摸屏各区域的容值数据。当用户在触摸屏上点击或滑动时,被点击或滑动的区域的电容值会发生变化,触控驱动模块能够监测到触摸屏上各区域电容值的变化,并向输入管理模块发送电容值变化的消息,电容值数据变化消息中携带有触摸屏各个区域的电容值的变化幅度以及发生变化的时间等信息。The touch driver module is used to monitor the capacitance data of each area of the touch screen. When the user clicks or slides on the touch screen, the capacitance value of the clicked or slided area will change, and the touch driver module can monitor the change of the capacitance value of each area on the touch screen, and send a message of capacitance value change to the input management module The capacitance value data change message carries information such as the magnitude of change of the capacitance value of each area of the touch screen and the time when the change occurs.

输入管理模块根据上报的电容值变化消息可以确定触控操作,然后将识别到的触控操作发送给其他模块。这里的触控操作可以包括指关节敲击操作、点击操作、拖拽操作、以及特定的手势操作(如上滑手势操作,横滑手势操作等)。The input management module can determine the touch operation according to the reported capacitance value change message, and then send the recognized touch operation to other modules. The touch operation here may include a knuckle tap operation, a click operation, a drag operation, and a specific gesture operation (such as an upward slide gesture operation, a horizontal slide gesture operation, etc.).

硬件层包括屏幕和环境光传感器等,环境光传感器用于检测屏幕下面的环境光信息等。应用处理器监测对触控屏的触控操作,基带处理器监听加速度数据并将监听到的加速度数据存储到存储模块,在AP监测到触控操作时,CP根据存储模块存储的加速度数据识别触控操作是否为指关节敲击动作;CP将识别结果发送给AP。The hardware layer includes a screen and an ambient light sensor, etc., and the ambient light sensor is used to detect ambient light information under the screen, etc. The application processor monitors the touch operation on the touch screen. The baseband processor monitors the acceleration data and stores the monitored acceleration data in the storage module. When the AP detects a touch operation, the CP identifies the touch operation according to the acceleration data stored in the storage module. Whether the control operation is a knuckle tapping action; the CP sends the recognition result to the AP.

上述技术架构列举了电子设备中本申请可能涉及的模块和器件。在实际应用中,电子设备可以包括上述技术架构的全部或部分模块和器件,以及其他上述技术架构未提及的模块和器件,当然,也可以只包括上述技术架构的模块和器件,本实施例对此不做限定。The technical architecture above lists the modules and devices that may be involved in the present application in the electronic equipment. In practical applications, electronic equipment may include all or part of the modules and devices of the above-mentioned technical architecture, as well as other modules and devices not mentioned in the above-mentioned technical architecture. Of course, it may also include only the modules and devices of the above-mentioned technical architecture. This embodiment There is no limit to this.

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,当计算机程序被处理器执行时能够实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.

本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机程序,当计算机程序被处理器执行时能够实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.

本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。This application implements all or part of the processes in the methods of the above embodiments, which can be completed by instructing related hardware through computer programs. The computer program can be stored in a computer-readable storage medium, and the computer program can be executed by a processor. , the steps in each of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

在本申请所提供的实施例中,应该理解到,所揭露的方法和电子设备,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed methods and electronic devices may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (10)

1.一种触控操作的识别方法,其特征在于,应用于电子设备,所述电子设备包括:触控屏、应用处理器AP和基带处理器CP,所述方法包括:1. A recognition method for a touch operation, characterized in that it is applied to an electronic device, the electronic device comprising: a touch screen, an application processor AP and a baseband processor CP, the method comprising: 所述AP监测是否存在对所述触控屏的触控操作;The AP monitors whether there is a touch operation on the touch screen; 所述CP监听加速度数据,并将监听到的加速度数据存储到存储模块;The CP monitors acceleration data, and stores the monitored acceleration data in a storage module; 在所述AP监测到触控操作时,所述CP根据所述存储模块中存储的加速度数据识别所述触控操作是否为指关节敲击动作,并将识别结果发送给所述AP。When the AP detects a touch operation, the CP identifies whether the touch operation is a knuckle tapping action according to the acceleration data stored in the storage module, and sends the identification result to the AP. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 在所述AP监测到触控操作时,获取所述触控屏的电容值;Acquire the capacitance value of the touch screen when the AP detects a touch operation; 所述AP根据所述电容值识别所述触控操作是否为指关节敲击动作;The AP identifies whether the touch operation is a knuckle tapping action according to the capacitance value; 在所述AP根据所述电容值到的识别结果与所述CP根据所述加速度数据得到的识别结果都是指关节敲击动作时,确定所述触控操作为指关节敲击动作。When the recognition result obtained by the AP according to the capacitance value and the recognition result obtained by the CP according to the acceleration data are both knuckle tapping actions, it is determined that the touch operation is a knuckle tapping action. 3.根据权利要求2所述的方法,其特征在于,还包括:3. The method according to claim 2, further comprising: 在所述AP根据所述电容值得到的识别结果与所述CP根据所述加速度数据得到的识别结果不都是指关节敲击动作时,确定所述触控操作为点击操作。When the recognition result obtained by the AP according to the capacitance value and the recognition result obtained by the CP according to the acceleration data are not both knuckle tapping actions, it is determined that the touch operation is a click operation. 4.根据权利要求1至3中任一项所述的方法,其特征在于,4. The method according to any one of claims 1 to 3, characterized in that, 所述存储模块是功耗低于双倍速率同步动态随机存储器DDR的存储模块。The storage module is a storage module whose power consumption is lower than that of a double-rate synchronous dynamic random access memory (DDR). 5.一种触控操作方法,其特征在于,应用于电子设备,所述电子设备包括:触控屏、应用处理器AP和基带处理器CP,所述方法包括:5. A touch operation method, characterized in that it is applied to an electronic device, the electronic device comprising: a touch screen, an application processor AP and a baseband processor CP, the method comprising: 所述AP和所述CP采用如权利要求1至4中任一项所述的方法对触控操作的类型进行识别;The AP and the CP use the method according to any one of claims 1 to 4 to identify the type of touch operation; 响应于所述触控操作,所述AP执行与所述触控操作的类型匹配的预设操作。In response to the touch operation, the AP performs a preset operation matching the type of the touch operation. 6.根据权利要求5所述的方法,其特征在于,6. The method of claim 5, wherein, 在确定所述触控操作包括指关节敲击动作时,所述预设操作包括:截屏、区域截屏或者录屏中的任意一项操作。When it is determined that the touch operation includes a knuckle tapping action, the preset operation includes: any one of screen capture, area screen capture, or screen recording. 7.一种触控操作的识别装置,其特征在于,应用于电子设备,所述电子设备包括:触控屏,所述识别装置包括:应用处理器AP和基带处理器CP,7. An identification device for touch operation, characterized in that it is applied to electronic equipment, and the electronic equipment includes: a touch screen, and the identification device includes: an application processor AP and a baseband processor CP, 所述AP,用于监测是否存在对所述触控屏的触控操作;The AP is used to monitor whether there is a touch operation on the touch screen; 所述CP,用于监听加速度数据,并将监听到的加速度数据存储到存储模块,以及用于在所述AP监测到触控操作时,根据所述存储模块中存储的加速度数据识别所述触控操作是否为指关节敲击动作,并将识别结果发送给所述AP。The CP is configured to monitor acceleration data, store the monitored acceleration data in a storage module, and identify the touch operation according to the acceleration data stored in the storage module when the AP detects a touch operation. Check whether the control operation is a knuckle tapping action, and send the recognition result to the AP. 8.一种触控操作装置,其特征在于,应用于电子设备,所述电子设备包括:触控屏,所述触控操作装置包括:响应模块和如权利要求7所述的触控操作的识别装置;8. A touch operation device, characterized in that it is applied to electronic equipment, and the electronic equipment includes: a touch screen, and the touch operation device includes: a response module and the touch operation device according to claim 7 identification device; 所述响应模块,用于在所述识别装置确定所述触控操作包括指关节敲击动作时,响应于所述触控操作,执行与所述触控操作匹配的预设操作。The response module is configured to execute a preset operation matching the touch operation in response to the touch operation when the recognition device determines that the touch operation includes a knuckle tapping action. 9.一种电子设备,其特征在于,包括:触控屏、应用处理器AP、基带处理器CP、以及存储有指令的存储器,所述指令在被所述AP和所述CP执行时使得所述电子设备执行如权利要求1至4中任一项所述的方法或5至6中任一项所述的方法。9. An electronic device, characterized in that it comprises: a touch screen, an application processor AP, a baseband processor CP, and a memory storing instructions, and when the instructions are executed by the AP and the CP, the The electronic device executes the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 6. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,所述指令在被电子设备执行时,使得所述电子设备执行如权利要求1至4中任一项所述的方法或5至6中任一项所述的方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores instructions, and when the instructions are executed by an electronic device, the electronic device executes any one of claims 1-4. The method described in item or the method described in any one of 5 to 6.
CN202310476916.3A 2023-04-28 2023-04-28 Identification method and device for touch operation, electronic equipment and storage medium Pending CN116225274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310476916.3A CN116225274A (en) 2023-04-28 2023-04-28 Identification method and device for touch operation, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310476916.3A CN116225274A (en) 2023-04-28 2023-04-28 Identification method and device for touch operation, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116225274A true CN116225274A (en) 2023-06-06

Family

ID=86573472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310476916.3A Pending CN116225274A (en) 2023-04-28 2023-04-28 Identification method and device for touch operation, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116225274A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450026A (en) * 2023-06-16 2023-07-18 荣耀终端有限公司 Method and system for identifying touch operation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253900A (en) * 2013-06-28 2014-12-31 展讯通信(上海)有限公司 Smart phone and data transmission method and data transmission system thereof
US20150309650A1 (en) * 2014-04-24 2015-10-29 Qualcomm Incorporated Efficient lossless compression for peripheral interface data transfer
CN106415472A (en) * 2015-04-14 2017-02-15 华为技术有限公司 Gesture control method, device, terminal apparatus and storage medium
CN106445120A (en) * 2016-09-05 2017-02-22 华为技术有限公司 Touch operation identification method and apparatus
CN108418768A (en) * 2018-02-13 2018-08-17 广东欧珀移动通信有限公司 Service data identification method, device, terminal and storage medium
CN110475023A (en) * 2019-08-19 2019-11-19 Oppo广东移动通信有限公司 Context data processing method, device, electronic equipment and computer-readable medium
CN113805487A (en) * 2020-07-23 2021-12-17 荣耀终端有限公司 Control instruction generation method and device, terminal equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253900A (en) * 2013-06-28 2014-12-31 展讯通信(上海)有限公司 Smart phone and data transmission method and data transmission system thereof
US20150309650A1 (en) * 2014-04-24 2015-10-29 Qualcomm Incorporated Efficient lossless compression for peripheral interface data transfer
CN106415472A (en) * 2015-04-14 2017-02-15 华为技术有限公司 Gesture control method, device, terminal apparatus and storage medium
CN106445120A (en) * 2016-09-05 2017-02-22 华为技术有限公司 Touch operation identification method and apparatus
CN108418768A (en) * 2018-02-13 2018-08-17 广东欧珀移动通信有限公司 Service data identification method, device, terminal and storage medium
CN110475023A (en) * 2019-08-19 2019-11-19 Oppo广东移动通信有限公司 Context data processing method, device, electronic equipment and computer-readable medium
CN113805487A (en) * 2020-07-23 2021-12-17 荣耀终端有限公司 Control instruction generation method and device, terminal equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450026A (en) * 2023-06-16 2023-07-18 荣耀终端有限公司 Method and system for identifying touch operation
CN116450026B (en) * 2023-06-16 2023-10-20 荣耀终端有限公司 Method and system for identifying touch operation

Similar Documents

Publication Publication Date Title
CN112394811B (en) Interaction method of air-separation gestures and electronic equipment
WO2021244443A1 (en) Split-screen display method, electronic device, and computer readable storage medium
CN111880648A (en) Three-dimensional element control method and terminal
CN110830645B (en) Operation method, electronic equipment and computer storage medium
CN116826892B (en) Charging method, charging device, electronic apparatus, and readable storage medium
US20230027523A1 (en) Display control method and terminal device
WO2021254113A1 (en) Control method for three-dimensional interface and terminal
CN116095412B (en) Video processing method and electronic equipment
EP4207744A1 (en) Video photographing method and electronic device
CN115643485B (en) Photography methods and electronic equipment
WO2023040666A1 (en) Keyboard display method, foldable screen device, and computer-readable storage medium
CN116225274A (en) Identification method and device for touch operation, electronic equipment and storage medium
WO2021052488A1 (en) Information processing method and electronic device
CN114356196A (en) A display method and electronic device
CN116055627B (en) Screen-off control method, electronic equipment and storage medium
CN117724783A (en) Dynamic effect display method and electronic equipment
CN117133043A (en) Gaze point estimation method, electronic device and computer-readable storage medium
CN117746762B (en) Display processing method and device and electronic equipment
WO2023078133A1 (en) Video playback method and device
CN117130471B (en) Human-computer interaction method, electronic equipment and system
CN117135253B (en) Contact search method, terminal device and storage medium
CN113821153B (en) Gesture navigation method, electronic device and readable storage medium
EP4579415A1 (en) Display method, display apparatus, and electronic device
WO2024099206A1 (en) Graphical interface processing method and apparatus
WO2023072113A1 (en) Display method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Terminal Co.,Ltd.

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Applicant before: Honor Device Co.,Ltd.

Country or region before: China

CB02 Change of applicant information