CN114415929B - Electronic device control method, device, electronic device and readable storage medium - Google Patents
Electronic device control method, device, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN114415929B CN114415929B CN202210083471.8A CN202210083471A CN114415929B CN 114415929 B CN114415929 B CN 114415929B CN 202210083471 A CN202210083471 A CN 202210083471A CN 114415929 B CN114415929 B CN 114415929B
- Authority
- CN
- China
- Prior art keywords
- touch
- data
- electronic device
- scenario
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/22—Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请公开了一种电子设备的控制方法、装置、电子设备和可读存储介质,属于电子设备技术领域。该方法包括:获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。
The present application discloses a control method, device, electronic device and readable storage medium of an electronic device, belonging to the technical field of electronic devices. The method comprises: obtaining a first usage scenario of the electronic device; determining a first touch mode corresponding to the first usage scenario according to a mapping relationship between a preset usage scenario and a touch mode; and controlling the electronic device according to the first touch mode.
Description
技术领域Technical Field
本申请属于电子设备技术领域,具体涉及一种电子设备的控制方法、装置、电子设备和可读存储介质。The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and device for an electronic equipment, an electronic equipment, and a readable storage medium.
背景技术Background Art
智能手机已经成为了人们生活中不可或缺的一部分,目前的智能手机控制方式通常以触控为主。Smartphones have become an indispensable part of people's lives, and current smartphone control methods are usually based on touch.
目前的智能手机的触控屏大多具体以电容触控方式为主,可以实现触控识别目的。Most of the current touch screens of smart phones are based on capacitive touch, which can achieve the purpose of touch recognition.
但是在一些特殊使用场景下,会出现使用某种触控方式无法实现触控识别目的的情况,使得用户使用体验不佳。However, in some special usage scenarios, there may be a situation where a certain touch method cannot achieve the purpose of touch recognition, resulting in a poor user experience.
发明内容Summary of the invention
本申请实施例的目的是提供一种电子设备的控制方法、装置、电子设备和可读存储介质,能够提升用户使用体验。The purpose of the embodiments of the present application is to provide a control method and device for an electronic device, an electronic device, and a readable storage medium, which can enhance the user experience.
第一方面,本申请实施例提供了一种电子设备的控制方法,该方法包括:获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, the method comprising: obtaining a first usage scenario of the electronic device; determining a first touch method corresponding to the first usage scenario based on a mapping relationship between preset usage scenarios and touch methods; and controlling the electronic device based on the first touch method.
第二方面,本申请实施例提供了一种电子设备的控制装置,该装置包括:获取模块,用于获取电子设备的第一使用场景;确定模块,用于根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;以及,处理模块,用于根据所述第一触控方式,对所述电子设备进行控制。In a second aspect, an embodiment of the present application provides a control device for an electronic device, the device comprising: an acquisition module for acquiring a first usage scenario of the electronic device; a determination module for determining a first touch mode corresponding to the first usage scenario based on a mapping relationship between a preset usage scenario and a touch mode; and a processing module for controlling the electronic device according to the first touch mode.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
在本申请实施例中,获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。可见,本实施例中不同的使用场景采用不同的触控方式实现触控识别目的,可以使得触控方式与当前使用场景始终保持匹配,避免无法实现触控目的,从而提升用户使用体验。In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本实施例提供的一种电子设备的控制方法的流程图;FIG1 is a flow chart of a control method of an electronic device provided by this embodiment;
图2是本实施例提供的一种电子设备的控制装置的方框原理图;FIG2 is a block diagram of a control device of an electronic device provided in this embodiment;
图3是本实施例提供的一种电子设备的硬件结构示意图;FIG3 is a schematic diagram of the hardware structure of an electronic device provided in this embodiment;
图4是本实施例提供的另一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of another electronic device provided in this embodiment.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的电子设备的控制方法进行详细地说明。The control method of the electronic device provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
请参考图1,本实施例提供的一种电子设备的控制方法可以包括以下步骤110~步骤130:Referring to FIG. 1 , a control method of an electronic device provided in this embodiment may include the following steps 110 to 130:
步骤110,获取电子设备的第一使用场景。Step 110: Obtain a first usage scenario of the electronic device.
本实施例中的电子设备可以为用户的智能手机,智能手机配置有触控屏,用户可以通过操作触控屏以发出相应控制指令。本实施例的实施主体可以为电子设备的主控模块,主控模块可以采用一定的触控方式来识别用户通过触控操作发出的控制指令。The electronic device in this embodiment can be a user's smart phone, which is equipped with a touch screen, and the user can issue corresponding control instructions by operating the touch screen. The implementation subject of this embodiment can be a main control module of the electronic device, and the main control module can use a certain touch mode to identify the control instructions issued by the user through touch operation.
详细地,基础的触控方式可以有电容触控方式、电阻触控方式、激光触控方式等。本实施例中,这些基础触控方式均设置在电子设备中,并可以同时工作。In detail, the basic touch control methods may include a capacitive touch control method, a resistive touch control method, a laser touch control method, etc. In this embodiment, these basic touch control methods are all provided in the electronic device and can work simultaneously.
其中,不同基础触控方式的触控特点不同。详细地,电容触控方式具有灵敏、多点触控的优点,电阻触控方式具有精准、抗水渍、不用强制手指接触的优点,激光触控方式具有精准、不强制手指接触的优点。Among them, different basic touch modes have different touch characteristics. Specifically, the capacitive touch mode has the advantages of sensitivity and multi-point touch, the resistive touch mode has the advantages of precision, water stain resistance, and no forced finger contact, and the laser touch mode has the advantages of precision and no forced finger contact.
举例来说,用户使用带汗渍的手指执行触控操作、或者用户佩戴手套执行触控操作时,电容触控方式通常无法识别该触控操作,而电阻触控方式、激光触控方式则可以识别该触控操作。For example, when a user performs a touch operation with a sweaty finger or performs a touch operation while wearing gloves, the capacitive touch method generally cannot recognize the touch operation, whereas the resistive touch method and the laser touch method can recognize the touch operation.
如此,为了能够准确响应用户通过触控操作发出的控制指令,可以使用符合电子设备使用场景的触控方式来进行触控操作的准确识别。基于此,本实施例中,首先获取电子设备的使用场景,以便于后续可以根据该使用场景确定出相应的触控方式。In this way, in order to accurately respond to the control instructions issued by the user through the touch operation, the touch operation can be accurately identified using the touch mode that meets the use scenario of the electronic device. Based on this, in this embodiment, the use scenario of the electronic device is first obtained so that the corresponding touch mode can be determined according to the use scenario later.
详细地,可以在电子设备使用过程中,周期性地执行获取电子设备使用场景的步骤。In detail, the step of acquiring the usage scenario of the electronic device can be periodically performed during the use of the electronic device.
步骤120,根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式。Step 120: Determine a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes.
本实施例中,不同的使用场景可以采用不同的触控方式,使用场景和触控方式间的映射关系可以根据经验等预先设置好。In this embodiment, different touch modes may be used in different usage scenarios, and the mapping relationship between the usage scenarios and the touch modes may be preset based on experience or the like.
在可行的实现方式中,电子设备的控制装置所采用的触控方式可以为单一型触控方式,比如电容触控方式、电阻触控方式和激光触控方式中的任意一种基础触控方式,也可以为组合型触控方式,比如电阻触控方式和激光触控方式这两种基础触控方式的结合。In a feasible implementation, the touch mode adopted by the control device of the electronic device can be a single touch mode, such as any one of the basic touch modes including capacitive touch mode, resistive touch mode and laser touch mode, or a combined touch mode, such as a combination of the two basic touch modes including resistive touch mode and laser touch mode.
以用户触摸电子设备的触摸屏上的一个位置为例,对于单一型触控方式,直接使用该单一型触控方式获得用户在触摸屏上的触摸位置,而对于组合型触控方式,可以分别使用该组合型触控方式中的每一种单一型触控方式,来获得用户在触摸屏上的触摸位置,即可以获得多个触摸位置,再将获得的这多个触摸位置进行加权平均等处理,来得到一个统一的触摸位置。Taking the example of a user touching a position on the touch screen of an electronic device, for a single touch mode, the single touch mode is directly used to obtain the touch position of the user on the touch screen, and for a combined touch mode, each single touch mode in the combined touch mode can be used separately to obtain the touch position of the user on the touch screen, that is, multiple touch positions can be obtained, and then the obtained multiple touch positions are processed by weighted averaging to obtain a unified touch position.
步骤130,根据所述第一触控方式,对所述电子设备进行控制。Step 130: Control the electronic device according to the first touch control method.
该步骤中,在确定好符合当前使用场景的触控方式后,即可根据该触控方式对电子设备进行控制,从而实现准确触控的目的。In this step, after the touch control method that meets the current usage scenario is determined, the electronic device can be controlled according to the touch control method, thereby achieving the purpose of accurate touch control.
在本申请实施例中,获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。可见,本实施例中不同的使用场景采用不同的触控方式实现触控识别目的,可以使得触控方式与当前使用场景始终保持匹配,避免无法实现触控目的,从而提升用户使用体验。In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.
在本发明一个实施例中,所述步骤110,获取电子设备的第一使用场景,可以包括以下步骤1101~步骤1102:In one embodiment of the present invention, the step 110 of obtaining the first usage scenario of the electronic device may include the following steps 1101 to 1102:
步骤1101,获取电子设备的使用数据,所述使用数据包括界面操作数据、传感器数据、触控数据中的至少一种。Step 1101, obtaining usage data of the electronic device, wherein the usage data includes at least one of interface operation data, sensor data, and touch data.
步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景。Step 1102: Determine a first usage scenario of the electronic device based on the usage data.
可行地,所述第一使用场景包括第一预设子场景、第二预设子场景以及第三预设子场景中的一个。Feasibly, the first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario and a third preset sub-scenario.
本实施例中,第一预设子场景可以为用户手指带汗渍、佩戴手套或者使用没有静电的工具进行触摸操作的使用场景,此时可以使用电阻触控方式或者激光触控方式来实现触控识别目的。In this embodiment, the first preset sub-scenario may be a usage scenario where the user's fingers are sweaty, the user is wearing gloves, or a tool without static electricity is used to perform touch operations. In this case, a resistive touch method or a laser touch method may be used to achieve the purpose of touch recognition.
第二预设子场景可以为进行精细化操作的使用场景,此时可以使用电阻触控方式和激光触控方式来实现触控识别目的。The second preset sub-scenario may be a usage scenario for performing refined operations, in which case the resistive touch method and the laser touch method may be used to achieve the purpose of touch recognition.
第三预设子场景可以为进行多点触控的常规使用场景,此时可以使用电容触控方式来实现触控识别目的。The third preset sub-scenario may be a conventional usage scenario for multi-touch, in which case a capacitive touch method may be used to achieve the purpose of touch recognition.
下面,分别针对该三种预设子场景进行说明。The following describes the three preset sub-scenarios respectively.
本实施例中,可以根据电子设备的界面操作数据,来确定电子设备是否处于精细化操作的使用场景。精细化操作使用场景下优选使用的触控方式和非精细化操作使用场景下优选使用的触控方式可以不同。In this embodiment, whether the electronic device is in a refined operation usage scenario can be determined based on the interface operation data of the electronic device. The preferred touch mode in the refined operation usage scenario may be different from the preferred touch mode in the non-refined operation usage scenario.
因此在识别场景之前,可以预先设置电子设备界面场景与触控方式的关联关系。Therefore, before identifying the scene, the association between the electronic device interface scene and the touch mode can be preset.
比如,用户制图时需要打开制图软件并精细化操作(具体可通过指甲、细棍状物体等)触控屏幕。此时可以使用电阻触控方式和激光触控方式,来实现触控识别目的,因此,可以设置在识别到场景为绘图场景时,对应的触控方式为电阻触控方式和激光触控。For example, when drawing, the user needs to open the drawing software and perform fine operations (specifically, the user can use fingernails, thin stick-like objects, etc.) to touch the screen. At this time, the resistive touch mode and the laser touch mode can be used to achieve the purpose of touch recognition. Therefore, when the scene is recognized as a drawing scene, the corresponding touch mode can be set to the resistive touch mode and the laser touch mode.
而用户执行常规的查阅照片、玩游戏等操作时,通常会用到多点触控。此时可以使用电容触控方式,来实现触控识别目的,因此,可以设置在识别到场景为查阅照片、玩游戏等场景时,对应的触控方式为电容触控方式。When users perform routine operations such as browsing photos and playing games, they usually use multi-touch. At this time, capacitive touch can be used to achieve the purpose of touch recognition. Therefore, it can be set that when the scene is recognized as browsing photos, playing games, etc., the corresponding touch mode is capacitive touch.
基于上述内容,在本发明一个实施例中,所述步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景,可以包括:Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:
在所述使用数据为所述电子设备的界面操作数据,且所述界面操作数据表示所述电子设备的操作界面为任一预设应用程序的界面的情况下,确定所述电子设备的第一使用场景为第二预设子场景;其中,所述第二预设子场景对应触控方式为电阻触控方式和激光触控方式。When the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is the interface of any preset application, the first usage scenario of the electronic device is determined to be a second preset sub-scenario; wherein the touch modes corresponding to the second preset sub-scenario are resistive touch mode and laser touch mode.
可行地,该预设应用程序可以包括制图软件等需要进行精细化操作的应用程序。Preferably, the preset application may include an application that requires sophisticated operations, such as mapping software.
本实施例中,也可以根据电子设备的传感器数据和/或触控数据,来确定电子设备是否处于需要使用电阻触控方式或者激光触控方式来实现触控识别目的的使用场景。In this embodiment, it is also possible to determine whether the electronic device is in a usage scenario where a resistive touch method or a laser touch method is required to achieve touch recognition based on sensor data and/or touch data of the electronic device.
因此,可以预先设置电子设备的传感器数据和/或触控数据与触控方式的关联关系。Therefore, the association relationship between the sensor data and/or touch data of the electronic device and the touch mode can be preset.
比如,用户携带电子设备运动(如跑步)的过程中,用户手指通常容易携带汗渍,电子设备也会具有一定的位置变化规律。此时可以使用电阻触控方式或者激光触控方式,来实现触控识别目的。因此,可以设置在识别到场景为运动场景时,对应的触控方式为电阻触控方式或者激光触控方式。For example, when a user carries an electronic device for exercise (such as running), the user's fingers are usually prone to sweat stains, and the electronic device will also have a certain position change pattern. In this case, a resistive touch method or a laser touch method can be used to achieve the purpose of touch recognition. Therefore, it can be set that when the scene is recognized as a sports scene, the corresponding touch method is a resistive touch method or a laser touch method.
对应地,可以通过位置传感器获取电子设备的位置变化规律,从而判断电子设备对应的用户是否处于运动场景。Correspondingly, the position change pattern of the electronic device can be obtained through the position sensor, so as to determine whether the user corresponding to the electronic device is in a sports scene.
基于上述内容,在本发明一个实施例中,所述步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景,可以包括:Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:
在所述使用数据为所述电子设备的位置传感数据,且所述位置传感数据变化规律符合预设变化规律的情况下,确定所述电子设备的第一使用场景为第一预设子场景;其中,所述第一预设子场景对应触控方式为电阻触控方式或者激光触控方式。When the usage data is position sensor data of the electronic device and a change pattern of the position sensor data conforms to a preset change pattern, the first usage scenario of the electronic device is determined to be a first preset sub-scenario; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.
该预设变化规律可以为因用户携带电子设备运动而导致电子设备的位置传感数据发生相应变化的位置传感数据变化规律。比如,当用户将手机放在身上跑动时,手机的运动方向及幅度会产生有规律的变化,手机的惯性陀螺仪和加速度计可以感知到手机位置传感数据的改变。通过对该改变进行大数据分析,可以得到对应跑步的位置传感数据变化规律。The preset change rule may be a change rule of position sensor data in which the position sensor data of the electronic device changes accordingly due to the user carrying the electronic device for movement. For example, when a user carries a mobile phone on his body and runs, the movement direction and amplitude of the mobile phone will change regularly, and the inertial gyroscope and accelerometer of the mobile phone can sense the change of the position sensor data of the mobile phone. By performing big data analysis on the change, the change rule of the position sensor data corresponding to running can be obtained.
若位置传感数据符合预设变化规律,可以确定用户是在携带手机运动期间,并在存在汗渍的情况下使用手机,此时可以使用电阻触控方式或者激光触控方式。If the position sensing data conforms to a preset change pattern, it can be determined that the user is carrying the phone for exercise and using the phone in the presence of sweat. In this case, resistive touch or laser touch can be used.
再比如,可以设置在操作对象佩戴有工具的场景下,对应的触控方式为电阻触控方式或者激光触控方式。For another example, it can be set that in a scenario where the operating object wears a tool, the corresponding touch mode is a resistive touch mode or a laser touch mode.
对应地,可以通过指纹识别或图像识别确定操作对象是否佩戴有工具。可行地,可以通过指纹传感器获得指纹识别数据,以及可以通过摄像头获得图像识别数据。Correspondingly, whether the operating object is wearing a tool can be determined by fingerprint recognition or image recognition. It is feasible that fingerprint recognition data can be obtained by a fingerprint sensor, and image recognition data can be obtained by a camera.
基于此,在本发明一个实施例中,所述步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景,可以包括:Based on this, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:
在所述使用数据为所述电子设备的指纹识别数据或者图像识别数据,且所述电子设备的指纹识别数据或者图像识别数据表示操作对象佩戴有工具的情况下,确定所述电子设备的第一使用场景为第一预设子场景;其中,所述第一预设子场景对应触控方式为电阻触控方式或者激光触控方式。When the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating object is wearing a tool, the first usage scenario of the electronic device is determined to be a first preset sub-scenario; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.
操作对象佩戴的工具可以为用户佩戴的手套,用户手持的手写笔等。在根据指纹识别数据或者图像识别数据确定出用户使用工具执行触控操作的情况下,可以使用电阻触控方式或者激光触控方式。The tool worn by the operating object may be a glove worn by the user, a stylus held by the user, etc. When it is determined according to the fingerprint recognition data or the image recognition data that the user uses a tool to perform a touch operation, a resistive touch method or a laser touch method may be used.
在本发明一个实施例中,所述步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景,可以包括:In one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:
在所述使用数据为触控数据,且所述触控数据表示存在目标触控结果且不存在电容触控结果的情况下;或,所述触控数据表示存在所述目标触控结果和所述电容触控结果且所述目标触控结果和所述电容触控结果不一致的情况下,确定所述电子设备的第一使用场景为第一预设子场景;其中,所述目标触控结果包括电阻触控结果和激光触控结果中的至少一种;其中,所述第一预设子场景对应触控方式为电阻触控方式或者激光触控方式。When the usage data is touch data, and the touch data indicates that there is a target touch result and there is no capacitive touch result; or, when the touch data indicates that there are the target touch result and the capacitive touch result and the target touch result and the capacitive touch result are inconsistent, it is determined that the first usage scenario of the electronic device is a first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result; wherein the touch mode corresponding to the first preset sub-scenario is a resistive touch mode or a laser touch mode.
本实施例中,基于各种基础触控方式的触控结果,可以确定电子设备是否处于用户携带汗渍、佩戴手套、使用工具来执行触控操作的使用场景。在该使用场景下,可以使用电阻触控方式或者激光触控方式。In this embodiment, based on the touch results of various basic touch modes, it can be determined whether the electronic device is in a usage scenario where the user is sweating, wearing gloves, or using tools to perform touch operations. In this usage scenario, a resistive touch mode or a laser touch mode can be used.
本实施例中,还可以根据触控数据,来确定电子设备是否处于常规触控的使用场景。此时可以使用电容触控方式。In this embodiment, it is also possible to determine whether the electronic device is in a conventional touch usage scenario based on the touch data. In this case, a capacitive touch method can be used.
基于上述内容,在本发明一个实施例中,所述步骤1102,根据所述使用数据,确定所述电子设备的第一使用场景,可以包括:Based on the above content, in one embodiment of the present invention, the step 1102 of determining the first usage scenario of the electronic device according to the usage data may include:
在所述使用数据为所述电子设备的触控数据,且所述触控数据表示存在电容触控结果的情况下,确定所述电子设备的第一使用场景为第三预设子场景;其中,所述第三预设子场景对应触控方式为电容触控方式。When the usage data is touch data of the electronic device and the touch data indicates the presence of a capacitive touch result, the first usage scenario of the electronic device is determined to be a third preset sub-scenario; wherein the touch mode corresponding to the third preset sub-scenario is a capacitive touch mode.
在存在电容触控结果的情况下,或者存在电容触控结果且电容触控结果与上述目标触控结果一致的情况下,可以确定电子设备当前处于第三预设子场景。在这一使用场景下,可以使用电容触控方式。When there is a capacitive touch result, or when there is a capacitive touch result and the capacitive touch result is consistent with the target touch result, it can be determined that the electronic device is currently in the third preset sub-scenario. In this usage scenario, the capacitive touch method can be used.
可行地,除了位置传感器摄像头,本实施例还可结合其他传感器,比如温度传感器、距离传感器、光线传感器等采集的数据,以用于使用场景的确定。比如,用户高温下容易出汗使得手指携带汗渍,用户低温下会选择戴手套,此时可以使用电阻触控方式或者激光触控方式,来实现触控识别目的。本实施例在此不做一一说明。It is feasible that in addition to the position sensor camera, this embodiment can also combine data collected by other sensors, such as temperature sensors, distance sensors, light sensors, etc., to determine the usage scenario. For example, users tend to sweat easily in high temperatures, so their fingers carry sweat stains. Users will choose to wear gloves in low temperatures. At this time, resistive touch or laser touch can be used to achieve the purpose of touch recognition. This embodiment will not be explained one by one here.
由于本实施例可以根据用户的使用条件和环境,智能的选择一种或者多种触控方案来响应用户的触控操作,故而在用户不做额外处理(如擦干汗渍、脱掉手套、改用专用触控笔等)的情况下,即便用户手指带汗渍、用户佩戴手套、用户使用指甲操作等,亦可实现用户所需的触控操作目的,故而用户体验更好。Since the present embodiment can intelligently select one or more touch schemes to respond to the user's touch operation according to the user's usage conditions and environment, the user does not need to perform additional processing (such as wiping off sweat, taking off gloves, using a dedicated stylus, etc.), even if the user's fingers are sweaty, the user wears gloves, or the user uses nails to operate, the touch operation purpose required by the user can be achieved, so the user experience is better.
本实施例中,在确定出当前使用场景之后,还可进一步对该场景确定的准确性进行校验,以校验确定出的使用场景是否和实际的使用场景相一致。若相一致,可以实现准确的触控目的,触控效果更好。In this embodiment, after determining the current usage scenario, the accuracy of the scenario determination can be further verified to verify whether the determined usage scenario is consistent with the actual usage scenario. If they are consistent, accurate touch control can be achieved and the touch control effect is better.
可行地,可以对使用场景所对应触控方式的触控效果进行检测,以保证是基于触控效果较佳的触控方式来准确控制电子设备。It is feasible to detect the touch effect of the touch mode corresponding to the usage scenario to ensure that the electronic device is accurately controlled based on the touch mode with better touch effect.
在本公开一个实施例中,所述第一触控方式包括至少两种预设触控方式中的至少一种。In one embodiment of the present disclosure, the first touch mode includes at least one of at least two preset touch modes.
详细地,至少两种预设触控方式可以为电容触控方式、电阻触控方式、激光触控方式这三种基础触控方式中的任意两个的组合。对应地,第一触控方式可以为这些基础触控方式中的一种或多种。比如,第一触控方式可以为电容触控方式,也可以为电阻触控方式和激光触控方式的结合等。In detail, at least two preset touch modes may be a combination of any two of the three basic touch modes: capacitive touch mode, resistive touch mode, and laser touch mode. Correspondingly, the first touch mode may be one or more of these basic touch modes. For example, the first touch mode may be a capacitive touch mode, or a combination of a resistive touch mode and a laser touch mode.
基于此,在所述根据所述第一触控方式,对所述电子设备进行控制之前,所述方法还可以包括以下B1~B3:Based on this, before controlling the electronic device according to the first touch control mode, the method may further include the following B1 to B3:
B1,响应于针对所述电子设备的触控操作,确定所述触控操作的对应于所述第一触控方式的第一触控结果,以及确定所述触控操作的分别对应于每一个所述预设触控方式的第二触控结果。B1, in response to a touch operation on the electronic device, determining a first touch result of the touch operation corresponding to the first touch mode, and determining a second touch result of the touch operation corresponding to each of the preset touch modes.
该步骤中,在确定好第一触控方式中,可以令每一种基础触控方式均处于激活状态,从而在用户发出触控操作时,至少存在一种基础触控方式可以感应到该触控操作,从而可以获得相应的触控结果。In this step, after the first touch mode is determined, each basic touch mode can be activated, so that when the user issues a touch operation, at least one basic touch mode can sense the touch operation, thereby obtaining a corresponding touch result.
比如,用户带手套触碰触摸屏时,电容触控方式通常检测不到该触控操作而没有相应触控结果,但电阻触控方式和激光触控方式通常均可检测到该触控操作,并获得相应触控结果,比如该触控结果为指示触控位置的数据。For example, when a user touches the touch screen with gloves on, the capacitive touch method usually cannot detect the touch operation and there is no corresponding touch result, but the resistive touch method and the laser touch method can usually detect the touch operation and obtain the corresponding touch result, such as the touch result is data indicating the touch position.
B2,根据所述第一触控结果和每一个所述第二触控结果,确定所述第一触控方式的触控效果是否满足预设要求。B2: Determine whether a touch effect of the first touch mode meets a preset requirement according to the first touch result and each of the second touch results.
该步骤中,根据各个基础触控方式的触控结果和所确定的触控方式的触控结果,可以校验所确定的触控方式是否具有预期的触控效果。In this step, according to the touch results of each basic touch mode and the touch result of the determined touch mode, it can be verified whether the determined touch mode has the expected touch effect.
详细地,上述预设要求可以按需设定,比如可以设置为所得触控位置的误差小于设定阈值。In detail, the above preset requirement can be set as needed, for example, it can be set so that the error of the obtained touch position is less than a set threshold.
比如,若第一触控方式为电容触控方式,则在用户带手套触碰触摸屏时,第一触控方式检测不到触控位置,但另外两种基础触控方式可以检测到触控位置,则第一触控方式的触控效果不满足预设要求。For example, if the first touch mode is a capacitive touch mode, when a user touches the touch screen with gloves, the first touch mode cannot detect the touch position, but the other two basic touch modes can detect the touch position, so the touch effect of the first touch mode does not meet the preset requirements.
再比如,若第一触控方式为电阻触控方式,则在用户带手套触碰触摸屏时,第一触控方式和激光触控方式均可检测到触控位置,若两者偏差不大,则可以认为第一触控方式的触控效果满足预设要求。For another example, if the first touch mode is a resistive touch mode, when the user touches the touch screen with gloves, both the first touch mode and the laser touch mode can detect the touch position. If the deviation between the two is not large, it can be considered that the touch effect of the first touch mode meets the preset requirements.
本实施例中,根据各种基础触控方式的触控结果,来确定所选触控方式的触控效果是否良好,以保证是基于触控效果较佳的触控方式来准确控制电子设备。In this embodiment, whether the touch effect of the selected touch mode is good is determined according to the touch results of various basic touch modes, so as to ensure that the electronic device is accurately controlled based on the touch mode with better touch effect.
B3,在所述第一触控方式的触控效果满足所述预设要求的情况下,执行所述根据所述第一触控方式,对所述电子设备进行控制的步骤。B3, when the touch effect of the first touch mode meets the preset requirement, executing the step of controlling the electronic device according to the first touch mode.
该步骤中,若触控效果满足预设要求,即可认为所选用的第一触控方式的触控效果较佳,进而可据此来准确控制电子设备。In this step, if the touch effect meets the preset requirement, it can be considered that the touch effect of the selected first touch mode is better, and the electronic device can be accurately controlled accordingly.
综上所述,本实施例通过智能的选择一种或者多种基础触控方式采样数据,能够在各种使用场景中得到精准的触控反馈结果,有效的改善单电容触控方案在实际生活中的痛点。In summary, this embodiment can obtain accurate touch feedback results in various usage scenarios by intelligently selecting one or more basic touch modes to sample data, and effectively improve the pain points of the single capacitive touch solution in real life.
本发明实施例能够实现用户在各种复杂的生活场景中使用触控屏时,均不会出现触控失灵或者识别不准确的情况,无需用户取下手套进行操作,而且可以使用生活中常见的任何笔等设备进行精细化操作,整个过程可以实现全自动化,具有较好的实用价值。The embodiments of the present invention can realize that when users use the touch screen in various complex life scenarios, there will be no touch failure or inaccurate recognition. The user does not need to remove gloves for operation, and any common pen or other device in life can be used for refined operation. The whole process can be fully automated and has good practical value.
本申请实施例提供的电子设备的控制方法,执行主体可以为电子设备的控制装置。本申请实施例中以电子设备的控制装置执行电子设备的控制方法为例,说明本申请实施例提供的电子设备的控制装置。The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. In the embodiment of the present application, the electronic device control method is executed by a control device of the electronic device as an example to illustrate the electronic device control device provided in the embodiment of the present application.
如图2所示,本实施例提供了一种电子设备的控制装置200,可以包括获取模块210、确定模块220和处理模块230。As shown in FIG. 2 , this embodiment provides a control device 200 for an electronic device, which may include an acquisition module 210 , a determination module 220 , and a processing module 230 .
其中,获取模块210用于获取电子设备的第一使用场景。确定模块220用于根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式。处理模块230用于根据所述第一触控方式,对所述电子设备进行控制。The acquisition module 210 is used to acquire a first usage scenario of the electronic device. The determination module 220 is used to determine a first touch mode corresponding to the first usage scenario according to a preset mapping relationship between usage scenarios and touch modes. The processing module 230 is used to control the electronic device according to the first touch mode.
在本申请实施例中,获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。可见,本实施例中不同的使用场景采用不同的触控方式实现触控识别目的,可以使得触控方式与当前使用场景始终保持匹配,避免无法实现触控目的,从而提升用户使用体验。In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.
在本发明一个实施例中,所述获取模块210,用于获取电子设备的使用数据,所述使用数据包括界面操作数据、传感器数据、触控数据中的至少一种;根据所述使用数据,确定所述电子设备的第一使用场景。In one embodiment of the present invention, the acquisition module 210 is used to acquire usage data of the electronic device, where the usage data includes at least one of interface operation data, sensor data, and touch data; and determine a first usage scenario of the electronic device based on the usage data.
在本发明一个实施例中,所述获取模块210,用于在所述使用数据为所述电子设备的位置传感数据,且所述位置传感数据变化规律符合预设变化规律的情况下;In one embodiment of the present invention, the acquisition module 210 is used for, when the usage data is the position sensor data of the electronic device, and the change rule of the position sensor data conforms to the preset change rule;
或,在所述使用数据为所述电子设备的指纹识别数据或者图像识别数据,且所述电子设备的指纹识别数据或者图像识别数据表示操作对象佩戴有工具的情况下;or, in the case where the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating subject is wearing a tool;
或,在所述使用数据为触控数据,且所述触控数据表示存在目标触控结果且不存在电容触控结果的情况下;or, in the case where the usage data is touch data, and the touch data indicates that a target touch result exists and a capacitive touch result does not exist;
或,所述触控数据表示存在所述目标触控结果和所述电容触控结果且所述目标触控结果和所述电容触控结果不一致的情况下,确定所述电子设备的第一使用场景为第一预设子场景;其中,所述目标触控结果包括电阻触控结果和激光触控结果中的至少一种;Or, when the touch data indicates that the target touch result and the capacitive touch result exist and the target touch result and the capacitive touch result are inconsistent, determining that the first usage scenario of the electronic device is the first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result;
在所述使用数据为所述电子设备的界面操作数据,且所述界面操作数据表示所述电子设备的操作界面为任一预设应用程序的界面的情况下,确定所述电子设备的第一使用场景为第二预设子场景;In a case where the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, determining that the first usage scenario of the electronic device is a second preset sub-scenario;
在所述使用数据为所述电子设备的触控数据,且所述触控数据表示存在电容触控结果的情况下,确定所述电子设备的第一使用场景为第三预设子场景;When the usage data is touch data of the electronic device, and the touch data indicates that a capacitive touch result exists, determining that the first usage scenario of the electronic device is a third preset sub-scenario;
其中,所述第一预设子场景对应触控方式为电阻触控方式或者激光触控方式;Wherein, the touch mode corresponding to the first preset sub-scene is a resistive touch mode or a laser touch mode;
所述第二预设子场景对应触控方式为电阻触控方式和激光触控方式;The touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode;
所述第三预设子场景对应触控方式为电容触控方式;The touch mode corresponding to the third preset sub-scenario is a capacitive touch mode;
所述第一使用场景包括第一预设子场景、第二预设子场景以及第三预设子场景中的一个。The first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario, and a third preset sub-scenario.
在本发明一个实施例中,所述第一触控方式包括至少两种预设触控方式中的至少一种;In one embodiment of the present invention, the first touch control mode includes at least one of at least two preset touch control modes;
所述处理模块230,用于响应于针对所述电子设备的触控操作,确定所述触控操作的对应于所述第一触控方式的第一触控结果,以及确定所述触控操作的分别对应于每一个所述预设触控方式的第二触控结果;根据所述第一触控结果和每一个所述第二触控结果,确定所述第一触控方式的触控效果是否满足预设要求;在所述第一触控方式的触控效果满足所述预设要求的情况下,执行所述根据所述第一触控方式,对所述电子设备进行控制的步骤。The processing module 230 is used to determine, in response to a touch operation on the electronic device, a first touch result of the touch operation corresponding to the first touch mode, and determine a second touch result of the touch operation corresponding to each of the preset touch modes respectively; determine whether the touch effect of the first touch mode meets the preset requirements based on the first touch result and each of the second touch results; and if the touch effect of the first touch mode meets the preset requirements, execute the step of controlling the electronic device according to the first touch mode.
本申请实施例中的电子设备的控制装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The control device of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
本申请实施例中的电子设备的控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The control device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
本申请实施例提供的电子设备的控制装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。The control device of the electronic device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 1, and will not be described again here to avoid repetition.
可选地,如图3所示,本申请实施例还提供一种电子设备300,包括处理器310和存储器320,存储器320上存储有可在所述处理器310上运行的程序或指令,该程序或指令被处理器310执行时实现上述电子设备的控制方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 3, an embodiment of the present application also provides an electronic device 300, including a processor 310 and a memory 320, and the memory 320 stores programs or instructions that can be executed on the processor 310. When the program or instructions are executed by the processor 310, the various steps of the control method embodiment of the above-mentioned electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
图4为实现本申请实施例的一种电子设备1000的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device 1000 implementing an embodiment of the present application.
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 can also include a power source (such as a battery) for supplying power to each component, and the power source can be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The electronic device structure shown in FIG4 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
其中,处理器1010,用于获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。Among them, the processor 1010 is used to obtain a first usage scenario of the electronic device; determine a first touch method corresponding to the first usage scenario according to a mapping relationship between a preset usage scenario and a touch method; and control the electronic device according to the first touch method.
在本申请实施例中,获取电子设备的第一使用场景;根据预设的使用场景和触控方式的映射关系,确定与所述第一使用场景对应的第一触控方式;根据所述第一触控方式,对所述电子设备进行控制。可见,本实施例中不同的使用场景采用不同的触控方式实现触控识别目的,可以使得触控方式与当前使用场景始终保持匹配,避免无法实现触控目的,从而提升用户使用体验。In the embodiment of the present application, a first usage scenario of the electronic device is obtained; a first touch mode corresponding to the first usage scenario is determined according to a preset mapping relationship between the usage scenario and the touch mode; and the electronic device is controlled according to the first touch mode. It can be seen that in the present embodiment, different usage scenarios use different touch modes to achieve the purpose of touch recognition, which can make the touch mode always match the current usage scenario, avoid failure to achieve the touch purpose, and thus improve the user experience.
可选地,处理器1010,用于获取电子设备的使用数据,所述使用数据包括界面操作数据、传感器数据、触控数据中的至少一种;根据所述使用数据,确定所述电子设备的第一使用场景。Optionally, the processor 1010 is used to obtain usage data of the electronic device, where the usage data includes at least one of interface operation data, sensor data, and touch data; and determine a first usage scenario of the electronic device based on the usage data.
可选地,处理器1010,用于在所述使用数据为所述电子设备的位置传感数据,且所述位置传感数据变化规律符合预设变化规律的情况下;Optionally, the processor 1010 is configured to, when the usage data is position sensor data of the electronic device and a change rule of the position sensor data conforms to a preset change rule;
或,在所述使用数据为所述电子设备的指纹识别数据或者图像识别数据,且所述电子设备的指纹识别数据或者图像识别数据表示操作对象佩戴有工具的情况下;or, in the case where the usage data is fingerprint recognition data or image recognition data of the electronic device, and the fingerprint recognition data or image recognition data of the electronic device indicates that the operating subject is wearing a tool;
或,在所述使用数据为触控数据,且所述触控数据表示存在目标触控结果且不存在电容触控结果的情况下;or, in the case where the usage data is touch data, and the touch data indicates that a target touch result exists and a capacitive touch result does not exist;
或,所述触控数据表示存在所述目标触控结果和所述电容触控结果且所述目标触控结果和所述电容触控结果不一致的情况下,确定所述电子设备的第一使用场景为第一预设子场景;其中,所述目标触控结果包括电阻触控结果和激光触控结果中的至少一种;Or, when the touch data indicates that the target touch result and the capacitive touch result exist and the target touch result and the capacitive touch result are inconsistent, determining that the first usage scenario of the electronic device is the first preset sub-scenario; wherein the target touch result includes at least one of a resistive touch result and a laser touch result;
在所述使用数据为所述电子设备的界面操作数据,且所述界面操作数据表示所述电子设备的操作界面为任一预设应用程序的界面的情况下,确定所述电子设备的第一使用场景为第二预设子场景;In a case where the usage data is interface operation data of the electronic device, and the interface operation data indicates that the operation interface of the electronic device is an interface of any preset application program, determining that the first usage scenario of the electronic device is a second preset sub-scenario;
在所述使用数据为所述电子设备的触控数据,且所述触控数据表示存在电容触控结果的情况下,确定所述电子设备的第一使用场景为第三预设子场景;When the usage data is touch data of the electronic device, and the touch data indicates that a capacitive touch result exists, determining that the first usage scenario of the electronic device is a third preset sub-scenario;
其中,所述第一预设子场景对应触控方式为电阻触控方式或者激光触控方式;Wherein, the touch mode corresponding to the first preset sub-scene is a resistive touch mode or a laser touch mode;
所述第二预设子场景对应触控方式为电阻触控方式和激光触控方式;The touch modes corresponding to the second preset sub-scenario are a resistive touch mode and a laser touch mode;
所述第三预设子场景对应触控方式为电容触控方式;The touch mode corresponding to the third preset sub-scenario is a capacitive touch mode;
所述第一使用场景包括第一预设子场景、第二预设子场景以及第三预设子场景中的一个。The first usage scenario includes one of a first preset sub-scenario, a second preset sub-scenario, and a third preset sub-scenario.
可选地,所述第一触控方式包括至少两种预设触控方式中的至少一种;处理器1010,用于响应于针对所述电子设备的触控操作,确定所述触控操作的对应于所述第一触控方式的第一触控结果,以及确定所述触控操作的分别对应于每一个所述预设触控方式的第二触控结果;根据所述第一触控结果和每一个所述第二触控结果,确定所述第一触控方式的触控效果是否满足预设要求;在所述第一触控方式的触控效果满足所述预设要求的情况下,执行所述根据所述第一触控方式,对所述电子设备进行控制的步骤。Optionally, the first touch mode includes at least one of at least two preset touch modes; the processor 1010 is used to determine, in response to a touch operation on the electronic device, a first touch result of the touch operation corresponding to the first touch mode, and determine a second touch result of the touch operation corresponding to each of the preset touch modes respectively; determine whether the touch effect of the first touch mode meets the preset requirements based on the first touch result and each of the second touch results; if the touch effect of the first touch mode meets the preset requirements, execute the step of controlling the electronic device according to the first touch mode.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器x09可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述电子设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述电子设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述电子设备的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present application and the claims, all of which are within the protection of the present application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210083471.8A CN114415929B (en) | 2022-01-24 | 2022-01-24 | Electronic device control method, device, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210083471.8A CN114415929B (en) | 2022-01-24 | 2022-01-24 | Electronic device control method, device, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114415929A CN114415929A (en) | 2022-04-29 |
CN114415929B true CN114415929B (en) | 2024-10-11 |
Family
ID=81277482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210083471.8A Active CN114415929B (en) | 2022-01-24 | 2022-01-24 | Electronic device control method, device, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114415929B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062456A (en) * | 2018-10-12 | 2018-12-21 | Oppo广东移动通信有限公司 | A kind of touch-control control method, touch-control control device and terminal device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101532403B1 (en) * | 2013-02-28 | 2015-06-30 | 임종민 | Resistive type touch film for capacitive touch panel |
CN104142742B (en) * | 2013-05-08 | 2017-12-19 | 航天信息股份有限公司 | The touch control manner switching method of touch-controlled electronic devices and touch-controlled electronic devices |
CN109224437A (en) * | 2018-08-28 | 2019-01-18 | 腾讯科技(深圳)有限公司 | The exchange method and terminal and storage medium of a kind of application scenarios |
CN110058729B (en) * | 2019-03-19 | 2022-05-31 | 荣耀终端有限公司 | Method and electronic device for adjusting the sensitivity of touch detection |
CN110430558B (en) * | 2019-06-26 | 2023-04-07 | 深圳绿米联创科技有限公司 | Device control method, device, electronic device and storage medium |
CN110442263A (en) * | 2019-07-23 | 2019-11-12 | 深圳市锐尔觅移动通信有限公司 | Touching display screen processing method, device, storage medium and electronic equipment |
CN113805487B (en) * | 2020-07-23 | 2022-09-23 | 荣耀终端有限公司 | Control instruction generation method and device, terminal equipment and readable storage medium |
CN111901482B (en) * | 2020-07-28 | 2022-01-28 | 维沃移动通信有限公司 | Function control method and device, electronic equipment and readable storage medium |
CN112540717B (en) * | 2020-12-11 | 2022-05-31 | 维沃移动通信有限公司 | Touch method, device and storage medium |
-
2022
- 2022-01-24 CN CN202210083471.8A patent/CN114415929B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062456A (en) * | 2018-10-12 | 2018-12-21 | Oppo广东移动通信有限公司 | A kind of touch-control control method, touch-control control device and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN114415929A (en) | 2022-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8358200B2 (en) | Method and system for controlling computer applications | |
CN107526521B (en) | Method and system for applying offset to touch gesture and computer storage medium | |
CN103885632B (en) | Input method and device | |
US9189152B2 (en) | Touch device and method for dynamically setting touch inactive area, and non-transitory recording medium | |
CN104020878A (en) | Touch input control method and device | |
US9262012B2 (en) | Hover angle | |
US20180321797A1 (en) | Human-Computer Interaction Method of User Terminal, Apparatus, And User Terminal | |
WO2019174398A1 (en) | Method, apparatus, and terminal for simulating mouse operation by using gesture | |
WO2015131590A1 (en) | Method for controlling blank screen gesture processing and terminal | |
US20200142582A1 (en) | Disambiguating gesture input types using multiple heatmaps | |
CN108984096A (en) | Touch operation method, device, storage medium and electronic device | |
CN108984097A (en) | Touch operation method, device, storage medium and electronic device | |
CN114415929B (en) | Electronic device control method, device, electronic device and readable storage medium | |
WO2025016426A1 (en) | Screenshot method and apparatus, electronic device, and readable storage medium | |
CN107422854A (en) | Action identification method and terminal applied to virtual reality | |
US12182335B2 (en) | Head-mounted display, tapping input signal generating method and non-transitory computer readable storage medium thereof | |
CN118259811A (en) | Information acquisition method, device, electronic device and medium | |
CN105630204A (en) | Mouse simulation system and method | |
CN103793053B (en) | Gesture projection method and device for mobile terminals | |
CN112698745A (en) | Control display method and electronic equipment | |
CN115291791B (en) | Text recognition method, device, electronic device and storage medium | |
CN115657881B (en) | Method and device for identifying states of left and right hand holding pens and electronic pen | |
CN112433624B (en) | Tilt angle acquisition method, device and electronic equipment | |
CN110362206B (en) | Gesture detection method, gesture detection device, terminal and computer readable storage medium | |
CN117191223A (en) | Temperature detection method, device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |