[go: up one dir, main page]

CN111273769B - Device control method, device, electronic device and storage medium - Google Patents

Device control method, device, electronic device and storage medium Download PDF

Info

Publication number
CN111273769B
CN111273769B CN202010044212.5A CN202010044212A CN111273769B CN 111273769 B CN111273769 B CN 111273769B CN 202010044212 A CN202010044212 A CN 202010044212A CN 111273769 B CN111273769 B CN 111273769B
Authority
CN
China
Prior art keywords
gesture
hardware
target air
electronic device
hardware operating
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
Application number
CN202010044212.5A
Other languages
Chinese (zh)
Other versions
CN111273769A (en
Inventor
高龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010044212.5A priority Critical patent/CN111273769B/en
Publication of CN111273769A publication Critical patent/CN111273769A/en
Application granted granted Critical
Publication of CN111273769B publication Critical patent/CN111273769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Landscapes

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

Abstract

The embodiment of the application discloses a device control method and device, electronic equipment and a storage medium. The method comprises the following steps: if the target space gesture control scene is entered, identifying a currently acquired target space gesture; acquiring hardware operating parameters corresponding to the target air gesture; configuring the hardware operating parameter to the electronic device for the electronic device to execute a control function corresponding to the target spaced gesture based on the hardware operating parameter. Therefore, the electronic equipment is controlled to operate based on the hardware operating parameters corresponding to the target air-separating gesture collected currently, so that the electronic equipment can adapt to different air-separating gestures more flexibly, the electronic equipment can operate the control function corresponding to the target air-separating gesture with the more adaptive performance of the target air-separating gesture, and the adaptability of the performance of the electronic equipment and the air-separating gesture is improved.

Description

一种设备控制方法、装置、电子设备及存储介质Device control method, device, electronic device and storage medium

技术领域technical field

本申请涉及计算机技术领域,更具体地,涉及一种设备控制方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and more particularly, to a device control method, apparatus, electronic device, and storage medium.

背景技术Background technique

随着传感技术的发展,电子设备的操作方式越来越丰富。例如,可以通过隔空手势来触发电子设备执行相应的功能。但是,在在相关的隔空手势操作中还存在电子设备的性能与隔空手势对应的控制功能不适配的问题,造成用户体验较差。With the development of sensing technology, the operation modes of electronic devices are becoming more and more abundant. For example, the electronic device can be triggered to perform a corresponding function through an air gesture. However, in the related air gesture operation, there is still a problem that the performance of the electronic device does not match the control function corresponding to the air gesture, resulting in poor user experience.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本申请提出了一种设备控制方法、装置、电子设备及存储介质,以改善上述问题。In view of the above problems, the present application proposes a device control method, device, electronic device and storage medium to improve the above problems.

第一方面,本申请提供了一种设备控制方法,应用于电子设备,所述方法包括:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势;获取与所述目标隔空手势对应的硬件运行参数;将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。In a first aspect, the present application provides a device control method, which is applied to an electronic device. The method includes: when entering an air gesture control scene, recognizing a currently collected target air gesture; hardware operating parameters corresponding to the air gesture; and configuring the hardware operating parameters to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

第二方面,本申请提供了一种设备控制装置,运行于电子设备,所述装置包括:手势识别单元,用于若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势;运行参数获取单元,用于获取与所述目标隔空手势对应的硬件运行参数;运行参数配置单元,用于将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。In a second aspect, the present application provides a device control device that runs on an electronic device, the device comprising: a gesture recognition unit for recognizing a currently collected target air gesture when entering a gesture control scene; an operating parameter acquiring unit, configured to acquire hardware operating parameters corresponding to the target air gesture; an operating parameter configuring unit, configured to configure the hardware operating parameters to the electronic device, so that the electronic device can The hardware operating parameter executes the control function corresponding to the target air gesture.

第三方面,本申请提供了一种电子设备,包括处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述处理器执行以实现上述的方法。In a third aspect, the present application provides an electronic device including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.

第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed by a processor.

本申请提供的一种设备控制方法、装置、电子设备及存储介质,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。A device control method, device, electronic device and storage medium provided by the present application, by recognizing the currently collected target air gesture when entering the air gesture control scene, and then obtaining the corresponding target air gesture hardware operating parameters, and then configuring the hardware operating parameters to the electronic device, so that the electronic device can perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请实施例中的一种隔空手势操作的示意图;FIG. 1 shows a schematic diagram of an air gesture operation in an embodiment of the present application;

图2示出了本申请实施例提出的一种设备控制方法的流程图;FIG. 2 shows a flowchart of a device control method proposed by an embodiment of the present application;

图3示出了本申请实施例提出的一种配置控件的示意图;FIG. 3 shows a schematic diagram of a configuration control proposed by an embodiment of the present application;

图4示出了本申请另一实施例提出的一种设备控制方法的流程图;FIG. 4 shows a flowchart of a device control method proposed by another embodiment of the present application;

图5示出了本申请再一实施例提出的一种设备控制方法的流程图;FIG. 5 shows a flowchart of a device control method proposed by still another embodiment of the present application;

图6示出了本申请又一实施例提出的一种设备控制方法的流程图;FIG. 6 shows a flowchart of a device control method proposed by another embodiment of the present application;

图7示出了本申请又一实施例提出的一种设备控制方法的流程图;FIG. 7 shows a flowchart of a device control method proposed by another embodiment of the present application;

图8示出了本申请又一实施例提出的一种设备控制方法的流程图;FIG. 8 shows a flowchart of a device control method proposed by another embodiment of the present application;

图9示出了本申请实施例提出的一种设备控制装置的结构框图;FIG. 9 shows a structural block diagram of a device control apparatus proposed by an embodiment of the present application;

图10示出了本申请另一实施例提出的一种设备控制装置的结构框图;FIG. 10 shows a structural block diagram of a device control apparatus proposed by another embodiment of the present application;

图11示出了本申请的用于执行根据本申请实施例的一种设备控制方法的另一种电子设备的结构框图;FIG. 11 shows a structural block diagram of another electronic device of the present application for executing a device control method according to an embodiment of the present application;

图12示出了本申请实施例中用于保存或者携带实现根据本申请实施例的一种设备控制方法的程序代码的存储单元。FIG. 12 shows a storage unit used to store or carry a program code for implementing a device control method according to an embodiment of the present application in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

随着触摸显示屏的发展,用户可以通过在触摸显示屏中上进行一系列的触控手势来完成所需的功能。例如,在来电界面中,用户可以通过滑动操作来触发接听电话。再例如,在地图界面中,用户可以通过滑动操作来切换当前显示在屏幕区域中的区域。再例如,在浏览器界面中,用户可以通过滑动操作来进行页面刷新,以加载更多的内容到当前的屏幕范围内。With the development of touch display screens, users can perform a series of touch gestures on the touch display screen to complete desired functions. For example, in the incoming call interface, the user can trigger the answering of the call by swiping. For another example, in the map interface, the user can switch the area currently displayed in the screen area through a sliding operation. For another example, in a browser interface, a user can perform a page refresh through a swipe operation, so as to load more content into the current screen range.

但是,在屏幕上进行的触控手势要求用户的手部必须与屏幕进行接触进而会对一些场景下的操作造成不便。例如,当用户的双手较湿时,可能就无法有效的在屏幕上进行触控操作。因此,隔空手势应运而生。在基于隔空手势的操作方式中,用户可以在距离电子设备一定位置作出手势对电子设备进行控制。示例性的,如图1所示,在图1所示的隔空手势作用区域作出手势操作,就可以一定距离外的电子设备。However, the touch gesture performed on the screen requires that the user's hand must be in contact with the screen, which may cause inconvenience to operations in some scenarios. For example, when the user's hands are wet, it may not be possible to effectively perform touch operations on the screen. Therefore, the space gesture came into being. In the operation mode based on air gestures, the user can make gestures at a certain position away from the electronic device to control the electronic device. Exemplarily, as shown in FIG. 1 , by performing a gesture operation in the space gesture action area shown in FIG. 1 , an electronic device at a certain distance can be used.

但是,发明人在对相关的隔空手势的研究中发现,在相关的隔空手势操作中还存在电子设备的性能与隔空手势不适配的问题,造成用户体验较差。发明人经过研究发现,在隔空手势的控制场景中,不同的隔空手势所对应的控制功能是不同的,而不同的控制功能所对应的硬件运行参数需求其实是有所区别的。例如,对于表征点击的隔空操作手势,可以是控制应用程序的启动或者新的界面渲染生成,那么在这种情况下发明人发现需要更佳的性能参数来使得应用程序更快的启动或者新的界面更快的渲染完成。而对于表征左右或者上下滑动的隔空操作手势,可以是控制翻页或者将已经在后台完成加载的内容显示出来,所以相比而言并无需要较佳的硬件性能参数。但是,发明人发现在相关的场景中,无论当前用户作出了那种隔空手势,电子设备都是以相同的硬件运行参数来执行该隔空手势对应的控制功能,进而造成电子设备的性能与隔空手势不适配。However, the inventor found in the research on related air gestures that there is still a problem that the performance of the electronic device does not match the air gestures in the related air gesture operations, resulting in poor user experience. Through research, the inventor found that in the control scene of the air gesture, the control functions corresponding to different air gestures are different, and the hardware operating parameter requirements corresponding to the different control functions are actually different. For example, for the gesture of air-to-air operation representing a click, it can be used to control the startup of an application or to generate a new interface rendering. In this case, the inventor finds that better performance parameters are needed to make the application start faster or update the new interface. Faster rendering of the interface completes. As for the air-to-air gestures representing left-right or up-and-down sliding, it can be used to control page turning or display the content that has been loaded in the background, so there is no need for better hardware performance parameters in comparison. However, the inventor found that in a relevant scenario, no matter what kind of gesture the current user makes, the electronic device uses the same hardware operating parameters to execute the control function corresponding to the gesture, which in turn causes the performance of the electronic device to be different from that of the device. Air gestures don't work.

因此,发明人提出了本申请提供的一种设备控制方法、装置、电子设备及存储介质,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。Therefore, the inventor proposes a device control method, device, electronic device and storage medium provided by the present application, by recognizing the currently collected target air gesture when entering the air gesture control scene, and then obtaining the the hardware operating parameters corresponding to the target air gesture, and then configure the hardware operating parameters to the electronic device, so that the electronic device can execute the control function corresponding to the target air gesture based on the hardware operating parameters . Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture.

在对本申请实施例进行进一步详细说明之前,对本申请实施例中涉及的名词和术语进行说明,本申请实施例中涉及的名词和术语适用于如下的解释。Before the further detailed description of the embodiments of the present application, the terms and terms involved in the embodiments of the present application will be described. The terms and terms involved in the embodiments of the present application are applicable to the following explanations.

目标隔空手势:为电子设备当前识别到的隔空操作手势。Target air gesture: It is the air gesture currently recognized by the electronic device.

硬件运行参数:为电子设备中各个硬件对应的运行参数。可选的,硬件可以包括处理器、图形处理器以及随机存储器。硬件运行参数可以包括处理器的工作频率、处理器中启用的核数、图形处理器的工作频率等。Hardware operating parameters: the operating parameters corresponding to each hardware in the electronic device. Optionally, the hardware may include a processor, a graphics processor, and random access memory. The hardware operating parameters may include the operating frequency of the processor, the number of cores enabled in the processor, the operating frequency of the graphics processor, and the like.

下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

请参阅图2,图2所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 2. FIG. 2 shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S110:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S110 : if the air gesture control scene is entered, the currently collected target air gesture is recognized.

需要说明的是,在本实施例中可以有多种方式来检测是否进入到隔空手势控制场景。It should be noted that, in this embodiment, there may be multiple ways to detect whether to enter the air gesture control scene.

作为一种方式,可以在电子设备的设置界面中配置开启或者关闭隔空手势操作的配置控件。在这种方式下,用户可以通过触控该配置控件来选择开启或者关闭隔空手势操作功能。进而在检测到该配置控件处于表征开启隔空手势操作功能时,确定进入到隔空手势控制场景。在这种方式下,系统在检测到该配置控件被切换到表征开启隔空手势操作功能时,可以通过发送广播的方式通知本地的其他程序。示例性的,如图3所示,在图3所示的设置界面中配置有配置控件10,在图3所示左侧图中该配置控件10配置为处于表征开启隔空手势操作功能的状态,在右侧图中该配置控件10配置为处于表征关闭隔空手势操作功能的状态。As a method, a configuration control for enabling or disabling the air gesture operation can be configured in the setting interface of the electronic device. In this way, the user can choose to enable or disable the air gesture operation function by touching the configuration control. Further, when it is detected that the configuration control is in the state of enabling the air gesture operation function, it is determined to enter the air gesture control scene. In this way, the system can notify other local programs by sending a broadcast when detecting that the configuration control is switched to represent the opening of the air gesture operation function. Exemplarily, as shown in FIG. 3 , the configuration control 10 is configured in the setting interface shown in FIG. 3 , and the configuration control 10 is configured to be in a state representing the opening of the air-space gesture operation function in the left figure shown in FIG. 3 . , in the figure on the right, the configuration control 10 is configured to be in a state representing the closing of the air gesture operation function.

需要说明的是,为了便于系统识别到该配置控件当前所处于的状态,在这种方式下,配置控件可以对应有一个配置文件,该配置文件中可以存储一参数,进而通过该参数来识别配置控件当前所处的状态。示例性的,在该配置文件中存储有参数a,其中a为0对应于配置控件当前处于表征关闭隔空手势操作的状态,而a为1对应于配置控件当前处于表征开启隔空手势操作的状态。从而,系统或者其他应用程序通过查询该配置文件中的参数a的值,就可以识别到该配置控件的状态,进而确定当前是否已经进入到隔空手势控制场景。It should be noted that, in order to facilitate the system to identify the current state of the configuration control, in this way, the configuration control can correspond to a configuration file, and a parameter can be stored in the configuration file, and then the configuration can be identified by this parameter. The current state of the control. Exemplarily, a parameter a is stored in the configuration file, where a is 0 corresponds to the configuration control is currently in a state representing closing the air gesture operation, and a is 1 corresponds to the configuration control is currently in a state representing opening the air gesture operation. state. Therefore, the system or other applications can identify the state of the configuration control by querying the value of the parameter a in the configuration file, and then determine whether the air gesture control scene has been entered.

作为另外一种方式,可以通过当前前台运行的应用程序来确定是否进入到隔空手势控制场景。需要说明的是,对于一些应用程序在启动时会默认开启隔空手势操作功能,那么在检测到这些在启动时会默认开启隔空手势操作功能的应用程序在前台运行时,确定进入到隔空手势控制场景。As another way, whether to enter the air gesture control scene may be determined through the application currently running in the foreground. It should be noted that for some applications, the air gesture operation function will be enabled by default when they are started, then when it is detected that these applications that will enable the air gesture operation function by default at startup are running in the foreground, it is determined to enter the air gesture operation. Gestures control the scene.

可选的,可以通过配置名单的方式来存储该在启动时会默认开启隔空手势操作功能的应用程序。其中,可以通过存储应用程序的包名的方式在该名单中存储应用程序。在这种方式下,可以将当前正在前台运行的应用程序的名包和该名单中的包名进行匹配,若匹配成功,则判定当前在前台运行的应用程序为在启动时默认开启隔空手势操作功能的应用程序,进而确定当前已经进入到隔空手势控制场景。Optionally, the application program whose air gesture operation function is enabled by default at startup can be stored by configuring a list. Wherein, the application program can be stored in the list by storing the package name of the application program. In this way, the name package of the application currently running in the foreground can be matched with the package name in the list. If the matching is successful, it is determined that the application currently running in the foreground is the default open air gesture at startup. The application program of the operation function, and then determine that the current air gesture control scene has been entered.

作为一种方式,一个应用可以运行多个进程,而所有进程都对应着一个进程优先级,进程优先级可以对应该进程所属的应用程序在系统当前处于的状态(前台运行状态、后台运行状态等)。当一个应用程序的界面正在显示时,则运行该界面的进程的优先级为IMPORTANCE_FOREGROUND=100。而系统允许应用在运行时可以获取当前自身应用所有进程的优先级,那么利用该原理,可以对应用程序所有进程的优先级并进行遍历,当检测到应用程序所包括的进程中存在某个进程优先级=IMPORTANCE_FOREGROUND时,则判断该应用程序在前台运行,进而可以获取到前台运行的应用程序的包名。As a way, an application can run multiple processes, and all processes correspond to a process priority, and the process priority can correspond to the current state of the application to which the process belongs in the system (foreground running state, background running state, etc. ). When the interface of an application program is being displayed, the priority of the process running the interface is IMPORTANCE_FOREGROUND=100. The system allows the application to obtain the priority of all the processes of the current application at runtime. Using this principle, the priority of all the processes of the application can be traversed. When it is detected that there is a process in the processes included in the application When priority=IMPORTANCE_FOREGROUND, it is judged that the application is running in the foreground, and then the package name of the application running in the foreground can be obtained.

步骤S120:获取与所述目标隔空手势对应的硬件运行参数。Step S120: Acquire hardware operating parameters corresponding to the target air gesture.

在本实施例中,可以有多种方式来获取与所述目标隔空手势对应的硬件运行参数。In this embodiment, there may be multiple ways to acquire the hardware operating parameters corresponding to the target air gesture.

作为一种方式,可以预先配置有隔空手势与硬件运行参数对应关系。例如,可以通过以配置文件来存储隔空手势与硬件运行参数对应关系,在这种方式下,若获取到了目标隔空手势,就可以基于该对应关系来查询到对应的硬件运行参数。其中,可选的,若所述目标隔空手势表征点击操作,确定与所述目标隔空手势对应的硬件运行参数为第一硬件运行参数;若所述目标隔空手势表征沿指定方向的滑动操作,确定与所述目标隔空手势对应的硬件运行参数为第二硬件运行参数;其中,所述第一硬件运行参数所表征的硬件运行效率高于所述第一硬件运行参数所表征的硬件运行效率。As a way, the correspondence between the air gestures and the hardware operating parameters may be pre-configured. For example, a configuration file can be used to store the corresponding relationship between the air gesture and the hardware operating parameters. In this way, if the target air gesture is obtained, the corresponding hardware operating parameters can be queried based on the corresponding relationship. Wherein, optionally, if the target air gesture represents a click operation, the hardware operating parameter corresponding to the target air gesture is determined to be the first hardware operating parameter; if the target air gesture represents sliding in a specified direction operation, determine the hardware operating parameter corresponding to the target air gesture as the second hardware operating parameter; wherein, the hardware operating efficiency represented by the first hardware operating parameter is higher than the hardware represented by the first hardware operating parameter operation efficiency.

需要说明的是,对于表征点击的隔空操作手势,可以是控制应用程序的启动或者新的界面渲染生成,那么在这种情况下发明人发现需要更佳的性能参数来使得应用程序更快的启动或者新的界面更快的渲染完成。而对于表征左右或者上下滑动的隔空操作手势,可以是控制翻页或者将已经在后台完成加载的内容显示出来,所以相比而言并无需要较佳的硬件性能参数,所以对于表征点击操作的目标隔空手势对应的第一硬件运行参数在表征的硬件性能上更为优越于表征沿指定方向的滑动操作的目标隔空手势对应的第二硬件运行参数。It should be noted that, for the gestures representing clicks, it can be to control the startup of the application or the rendering of a new interface. In this case, the inventor finds that better performance parameters are needed to make the application faster. Start up or the new interface renders faster. As for the gestures that represent the left and right or up and down gestures, it can be used to control page turning or display the content that has been loaded in the background, so there is no need for better hardware performance parameters in comparison. The first hardware operating parameter corresponding to the target air gesture is more superior in characterizing hardware performance than the second hardware operating parameter corresponding to the target air gesture representing the sliding operation in the specified direction.

其中,性能上更为优越可以理解为所对应的硬件运行参数的值更大。示例性的,若硬件运行参数包括CPU的最小频率、CPU的最大频率以及CPU的在线核心数。那么第一硬件参数可以为最小频率1.6GHz,最大频率2.3GHz,在线核心数:8,而第二硬件运行参数可以为CPU:最小频率1.3GHz,最大频率2.3GHz,在线核心数:6。其中,第一硬件运行参数的CPU的最小频率大于第二硬件运行参数的CPU的最小频率,从而使得在电子设备在基于第一硬件运行参数运行时每单位时间内可以处理更多的数据。其中,可以处理更多的数据可以理解为可以绘制更多的图像,或者进行更多的浮点型数据的运算等。Among them, better performance can be understood as a larger value of the corresponding hardware operating parameter. Exemplarily, if the hardware operating parameters include the minimum frequency of the CPU, the maximum frequency of the CPU, and the number of online cores of the CPU. Then the first hardware parameter may be the minimum frequency of 1.6GHz, the maximum frequency of 2.3GHz, the number of online cores: 8, and the second hardware operating parameter may be CPU: the minimum frequency of 1.3GHz, the maximum frequency of 2.3GHz, and the number of online cores: 6. The minimum frequency of the CPU of the first hardware operating parameter is greater than the minimum frequency of the CPU of the second hardware operating parameter, so that the electronic device can process more data per unit time when operating based on the first hardware operating parameter. Among them, it can be understood that more data can be processed, more images can be drawn, or more floating-point data operations can be performed.

其中,需要说明的是,前述内容中所示的最小频率和最大频率为CPU的工作频率。Wherein, it should be noted that the minimum frequency and the maximum frequency shown in the foregoing content are the operating frequencies of the CPU.

步骤S130:将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S130: Configure the hardware operating parameters to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

可选的,在Android系统中可通过调用setAction函数将与所述目标隔空手势对应的硬件运行参数配置给电子设备的硬件。示例性的,在使用setAction函数时可以采用setAction(S1,timeout)的方式进行硬件运行参数配置。其中,参数S1为确定的与所述目标隔空手势对应的硬件运行参数,timeout为确定电子设备保持该与所述目标隔空手势对应的硬件运行参数的时长。例如,若timeout为2,表征电子设备基于该与所述目标隔空手势对应的硬件运行参数运行2秒。Optionally, in the Android system, the hardware operating parameters corresponding to the target air gesture can be configured to the hardware of the electronic device by calling the setAction function. Exemplarily, when the setAction function is used, the mode of setAction(S1, timeout) may be used to configure the hardware operation parameters. Wherein, the parameter S1 is the determined hardware operating parameter corresponding to the target air gesture, and the timeout is the determined time period for which the electronic device maintains the hardware operating parameter corresponding to the target air gesture. For example, if the timeout is 2, it means that the electronic device runs for 2 seconds based on the hardware operating parameter corresponding to the target air gesture.

其中,需要说明的是,如果电子设备一直保持较为高性能的状态运行较长的时间,那么必然会消耗较多的处理资源以及电量资源。进而,为了在提升目标隔空手势对应的控制功能以较快效率的完成,以提升交互流畅性的同时,还可以在整体上有效的节约处理资源或者电量资源,可以根据具体的实际情况来确定电子设备保持该与所述目标隔空手势对应的硬件运行参数的时长。Among them, it should be noted that if the electronic device keeps running in a state of relatively high performance for a long time, it will inevitably consume more processing resources and power resources. Furthermore, in order to improve the control function corresponding to the target air gesture to complete faster and more efficiently, so as to improve the interaction fluency, it can also effectively save processing resources or power resources as a whole, which can be determined according to the specific actual situation. The duration for which the electronic device maintains the hardware operating parameter corresponding to the target air gesture.

作为一种方式,可以根据当前的电量来确定该确定电子设备保持该与所述目标隔空手势对应的硬件运行参数的时长。例如,若电子设备的电量处于较为充足的状态,例如,剩余电量还有80%以上,那么就可以让该与所述目标隔空手势对应的硬件运行参数的时长处于相对更长。其中,相对更长是指相对于电量低于80%的情况下对应的与所述目标隔空手势对应的硬件运行参数对应的保持的时长。示例性的,若当前剩余电量有85%,那么对应的确定的保持该与所述目标隔空手势对应的硬件运行参数的时长可以为3秒,而若当前剩余电量有65%,那么对应的确定的保持该与所述目标隔空手势对应的硬件运行参数的时长可以为1秒。As a method, the time period for which the determined electronic device maintains the hardware operating parameter corresponding to the target air-space gesture can be determined according to the current power. For example, if the power of the electronic device is in a relatively sufficient state, for example, the remaining power is more than 80%, then the duration of the hardware operating parameter corresponding to the target air gesture can be relatively longer. Wherein, relatively longer refers to the holding time corresponding to the hardware operating parameter corresponding to the target air gesture corresponding to the case where the battery power is lower than 80%. Exemplarily, if the current remaining power is 85%, then the corresponding determined duration of maintaining the hardware operating parameter corresponding to the target air gesture can be 3 seconds, and if the current remaining power is 65%, then the corresponding The determined duration of maintaining the hardware operating parameter corresponding to the target air gesture may be 1 second.

可以理解的是,若在该时长结束后,电子设备可以恢复到切换为与所述目标隔空手势对应的硬件运行参数之前原本所采用的硬件运行参数。也可以继续保持与所述目标隔空手势对应的硬件运行参数直到识别到不同的目标隔空手势。It can be understood that, if the time period expires, the electronic device can restore the hardware operating parameters that were originally used before switching to the hardware operating parameters corresponding to the target air gesture. It is also possible to keep maintaining the hardware operating parameters corresponding to the target air gesture until a different target air gesture is recognized.

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture.

请参阅图4,图所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 4 , which shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S210:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S210 : if the air gesture control scene is entered, the currently collected target air gesture is recognized.

步骤S220:获取当前的运行场景。Step S220: Acquire the current running scene.

步骤S230:获取所述当前的运行场景对应的硬件运行参数映射关系,所述硬件运行参数映射关系表征所述当前的运行场景中每个隔空手势对应的硬件运行参数。Step S230: Obtain a hardware operating parameter mapping relationship corresponding to the current operating scene, where the hardware operating parameter mapping relationship represents a hardware operating parameter corresponding to each air gesture in the current operating scene.

需要说明的是,即使对于相同的隔空手势,在不同的运行场景下所对应的控制功能可以是不同的。例如,对于表征点击的隔空手势,在桌面场景下对应控制功能的是触发某个应用程序启动,而在某个应用程序的界面中,点击表征点击的隔空手势对应控制功能是触控某个文本、按钮或者链接。因而,即使对于相同的隔空手势,在不同的运行场景下所对应的控制功能可以是不同的,那么所对应所需的硬件运行参数也可以是不同的。It should be noted that, even for the same air gesture, the corresponding control functions in different running scenarios may be different. For example, for an air gesture representing a click, in the desktop scenario, the corresponding control function is to trigger the startup of an application, while in the interface of an application, the corresponding control function of the air gesture representing a click is to touch a certain application. text, button, or link. Therefore, even for the same air gesture, the corresponding control functions in different operating scenarios may be different, so the corresponding required hardware operating parameters may also be different.

作为一种方式,可以在电子设备中存储一配置文件(可以为前述所示的存储隔空手势与硬件运行参数对应关系的配置文件),进而在电子设备检测到有运行场景的变化时,可以预先对该配置文件的存储的隔空手势所对应的硬件运行参数,进而使得在需要获取与所述目标隔空手势对应的硬件运行参数时,可以直接查询该配置文件即可,而不用再去进行运行场景的识别,以提升硬件运行参数的配置效率,也从整体上提升了隔空手势操作的反应及时性。示例性的,在桌面场景下对应有硬件运行参数集S2,在浏览器运行场景中对应有硬件运行参数集S3。那么在检测到当前处于桌面场景时,就可以即时的将配置文件中的隔空手势与硬件运行参数对应关系切换为该硬件运行参数集S2,而当检测到当前处于浏览器运行场景时,就可以即时的将配置文件中的隔空手势与硬件运行参数对应关系切换为该硬件运行参数集S3。As a method, a configuration file (which may be the configuration file that stores the corresponding relationship between the air gesture and the hardware operating parameters shown above) can be stored in the electronic device, and then when the electronic device detects that there is a change in the operating scene, it can be The hardware operating parameters corresponding to the air gestures stored in the configuration file in advance, so that when the hardware operating parameters corresponding to the target air gestures need to be obtained, the configuration file can be directly queried without going to The recognition of the running scene is carried out to improve the configuration efficiency of the hardware running parameters, and it also improves the response timeliness of the air gesture operation as a whole. Exemplarily, in the desktop scenario, there is corresponding hardware operating parameter set S2, and in the browser operating scenario, there is corresponding hardware operating parameter set S3. Then when it is detected that the current desktop scene is detected, the corresponding relationship between the air gesture in the configuration file and the hardware operating parameters can be instantly switched to the hardware operating parameter set S2, and when it is detected that it is currently in the browser operating scene, the The corresponding relationship between the air gesture and the hardware operation parameter in the configuration file can be switched to the hardware operation parameter set S3 in real time.

步骤S240:基于所述硬件运行参数映射关系获取与所述目标隔空手势对应的硬件运行参数。将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S240: Acquire hardware operating parameters corresponding to the target air gesture based on the hardware operating parameter mapping relationship. The hardware operating parameters are configured to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。并且,在本实施例中,还可以进一步的结合当前的运行场景来获取到当前的运行场景对应的硬件运行参数映射关系,进一步的提升了硬件运行参数获取的准确性以及细粒度。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture. Moreover, in this embodiment, the hardware operating parameter mapping relationship corresponding to the current operating scenario can be further obtained in combination with the current operating scenario, which further improves the accuracy and fine-grained acquisition of the hardware operating parameters.

请参阅图5,图所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 5 , which shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S310:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S310 : if the air gesture control scene is entered, the currently collected target air gesture is recognized.

步骤S320:获取当前在前台运行的应用程序。Step S320: Acquire the application currently running in the foreground.

步骤S330:将所述前台运行的应用程序确定为当前的运行场景。Step S330: Determine the application running in the foreground as the current running scene.

步骤S340:获取所述前台运行的应用程序对应的硬件运行参数映射关系,所述硬件运行参数映射关系表征所述当前的运行场景中每个隔空手势对应的硬件运行参数。Step S340: Obtain the hardware operating parameter mapping relationship corresponding to the application running in the foreground, where the hardware operating parameter mapping relationship represents the hardware operating parameter corresponding to each air gesture in the current operating scene.

步骤S350:基于所述硬件运行参数映射关系获取与所述目标隔空手势对应的硬件运行参数。将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S350: Acquire hardware operating parameters corresponding to the target air gesture based on the hardware operating parameter mapping relationship. The hardware operating parameters are configured to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。并且,在本实施例中,还可以进一步的结合当前的前台运行的应用程序来获取到当前的运行场景对应的硬件运行参数映射关系,进一步的提升了硬件运行参数获取的准确性以及细粒度。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture. Moreover, in this embodiment, the hardware operating parameter mapping relationship corresponding to the current operating scenario can be further obtained in combination with the current foreground running application, which further improves the accuracy and fine-grained acquisition of the hardware operating parameters.

请参阅图6,图所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 6 , which shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S410:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S410 : when entering the air gesture control scene, identify the currently collected target air gesture.

步骤S420:获取系统配置的运行性能等级,其中不同的运行性能等级所对应的耗电量不同。Step S420: Acquire the operating performance level configured by the system, wherein the power consumption corresponding to different operating performance levels is different.

作为一种方式,该运行性能等级可以为用户在设置界面中进行设置。示例性的,该运行性能等级可以包括高级、中级自己低级。其中,高级表征电子设备会以较高的性能运行,对应的也会有较高的耗电量。中级表征电子设备将会以较为平衡的性能运行,对应的耗电量会相比于高级更低。中级表征电子设备将会以较低的性能运行,对应的耗电量也会相比于中级更低。As one way, the operational performance level can be set by the user in the setting interface. Exemplarily, the operational performance level may include high level, medium level and low level. Among them, the advanced characterization electronic equipment will run with higher performance and correspondingly have higher power consumption. The mid-level characterization electronics will run with more balanced performance, and the corresponding power consumption will be lower than the advanced level. The mid-level characterization electronics will run at lower performance and correspondingly consume less power than the mid-level.

示例性的,以硬件运行参数中包括的CPU工作频率为例,在运行性能等级为高级的情况下,表征点击的目标隔空手势操作对应的CPU工作频率最低可以为2.0GHz。在运行性能等级为中级的情况下,表征点击的目标隔空手势操作对应的CPU工作频率最低可以为1.6GHz。在运行性能等级为低级的情况下,表征点击的目标隔空手势操作对应的CPU工作频率最低可以为1.3GHz。Exemplarily, taking the CPU operating frequency included in the hardware operating parameters as an example, when the operating performance level is advanced, the CPU operating frequency corresponding to the target air gesture operation representing the click may be at least 2.0 GHz. In the case where the running performance level is intermediate, the CPU operating frequency corresponding to the target air gesture operation representing the click can be at least 1.6 GHz. In the case that the running performance level is low, the CPU operating frequency corresponding to the target air gesture operation representing the click can be at least 1.3 GHz.

步骤S430:将所述运行性能等级确定为当前的运行场景。Step S430: Determine the running performance level as the current running scenario.

步骤S440:获取所述运行性能等级对应的硬件运行参数映射关系,所述硬件运行参数映射关系表征所述当前的运行场景中每个隔空手势对应的硬件运行参数。Step S440: Obtain a hardware operating parameter mapping relationship corresponding to the operating performance level, where the hardware operating parameter mapping relationship represents a hardware operating parameter corresponding to each air gesture in the current operating scene.

步骤S450:基于所述硬件运行参数映射关系获取与所述目标隔空手势对应的硬件运行参数。将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S450: Acquire hardware operating parameters corresponding to the target air gesture based on the hardware operating parameter mapping relationship. The hardware operating parameters are configured to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

其中,需要说明的是,较高的运行性能等级所对应的硬件运行参数所包括的多个参数可以均优于较低的运行性能等级所对应的硬件运行参数所包括的多个参数,也可以是较高的运行性能等级所对应的硬件运行参数所包括的多个参数中部分参数优于较低的运行性能等级所对应的硬件运行参数所包括的多个参数。示例性的,在硬件运行参数包括有处理器的工作频率、处理器中启用的核数以及图形处理器的工作频率的情况下,较高的运行性能等级所对应的硬件运行参数中,处理器的工作频率、处理器中启用的核数以及图形处理器的工作频率可以均高于较低的运行性能等级所对应的硬件运行参数所包括的硬件运行参数中,处理器的工作频率、处理器中启用的核数,以实现更优。再者,也可以是较高的运行性能等级所对应的硬件运行参数中的处理器的工作频率、处理器中启用的核数以及图形处理器的工作频率中的至多两个,高于较低的运行性能等级所对应的硬件运行参数所包括的硬件运行参数,以实现更优。Among them, it should be noted that the multiple parameters included in the hardware operating parameters corresponding to the higher operating performance level may be superior to the multiple parameters included in the hardware operating parameters corresponding to the lower operating performance level, or may It is that some parameters included in the multiple parameters included in the hardware operation parameter corresponding to the higher operation performance level are better than the multiple parameters included in the hardware operation parameter corresponding to the lower operation performance level. Exemplarily, in the case where the hardware operating parameters include the operating frequency of the processor, the number of cores enabled in the processor, and the operating frequency of the graphics processor, among the hardware operating parameters corresponding to the higher operating performance level, the processor The operating frequency of the CPU, the number of cores enabled in the processor, and the operating frequency of the graphics processor can all be higher than those included in the hardware operating parameters corresponding to the lower operating performance level. The number of cores enabled in , for better optimization. Furthermore, it can also be at most two of the operating frequency of the processor, the number of cores enabled in the processor, and the operating frequency of the graphics processor in the hardware operating parameters corresponding to the higher operating performance level, which are higher than the operating frequency of the lower operating performance. The hardware operating parameters included in the hardware operating parameters corresponding to the operating performance level of the .

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。并且,在本实施例中,还可以进一步的结合当前的运行性能等级来获取到当前的运行场景对应的硬件运行参数映射关系,进一步的提升了硬件运行参数获取的准确性以及细粒度。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture. Moreover, in this embodiment, the hardware operating parameter mapping relationship corresponding to the current operating scenario can be further obtained in combination with the current operating performance level, which further improves the accuracy and fine-grained acquisition of the hardware operating parameters.

请参阅图7,图所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 7 , which shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S510:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S510: If entering the air gesture control scene, identify the currently collected target air gesture.

步骤S520:获取上一次采集的目标隔空手势。Step S520: Acquire the last collected target air gesture.

步骤S530:检测所述上一次采集的目标隔空手势与所述当前所采集的目标隔空手势是否相同。Step S530: Detecting whether the last collected target air gesture is the same as the currently collected target air gesture.

若所述当前所采集的目标隔空手势与所述上一次采集的目标隔空手势相同,结束流程。If the currently collected target air gesture is the same as the last collected target air gesture, the process ends.

步骤S540:若所述当前所采集的目标隔空手势与所述上一次采集的目标隔空手势不同,获取与所述目标隔空手势对应的硬件运行参数。Step S540: If the currently collected target air gesture is different from the last collected target air gesture, acquire hardware operating parameters corresponding to the target air gesture.

需要说明的是,在同样的运行场景下,相同的隔空操作手势对应的硬件运行参数可以是相同的,那么为了避免多次连续给电子设备配置相同的硬件运行参数而造成资源浪费,可以在当前采集的目标隔空手势与所述上一次采集的目标隔空手势不同时,再进而获取与当前所采集的目标隔空手势对应的硬件运行参数,以便配置给电子设备。对应的,在检测到当前采集的目标隔空手势与上一次采集的目标隔空手势相同时,就不在执行后续的获取与当前所采集的目标隔空手势对应的硬件运行参数。It should be noted that, in the same operating scenario, the hardware operating parameters corresponding to the same air gesture gesture can be the same, so in order to avoid the waste of resources caused by configuring the same hardware operating parameters for the electronic device multiple times in succession, you can When the currently collected target air gesture is different from the last collected target air gesture, the hardware operating parameters corresponding to the currently collected target air gesture are further acquired so as to be configured to the electronic device. Correspondingly, when it is detected that the currently collected target air gesture is the same as the last collected target air gesture, subsequent acquisition of hardware operating parameters corresponding to the currently collected target air gesture is not performed.

步骤S550:将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S550: Configure the hardware operating parameters to the electronic device, so that the electronic device performs a control function corresponding to the target air gesture based on the hardware operating parameters.

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。并且,在本实施例中,是在若所述当前所采集的目标隔空手势与所述上一次采集的目标隔空手势不同的情况下才会触发获取与所述目标隔空手势对应的硬件运行参数,进而避免了重复配置相同的硬件运行参数而造成的资源消耗。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture. Moreover, in this embodiment, the acquisition of the hardware corresponding to the target air gesture will be triggered only if the currently collected target air gesture is different from the previously collected target air gesture. Running parameters, thereby avoiding resource consumption caused by repeatedly configuring the same hardware running parameters.

请参阅图8,图所示为本申请一实施例提出的一种设备控制方法的流程图,该方法包括:Please refer to FIG. 8 , which shows a flowchart of a device control method proposed by an embodiment of the present application. The method includes:

步骤S610:若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。Step S610 : if the air gesture control scene is entered, the currently collected target air gesture is recognized.

步骤S620:获取与所述目标隔空手势对应的硬件运行参数,每个硬件运行参数对应有运行性能参数,所述运行性能参数表征每单位时间处理的数据量。Step S620: Acquire hardware operating parameters corresponding to the target air-space gesture, each hardware operating parameter corresponds to an operating performance parameter, and the operating performance parameter represents the amount of data processed per unit time.

步骤S630:获取所述目标隔空手势对应的硬件运行参数的运行性能参数。Step S630: Obtain the operating performance parameters of the hardware operating parameters corresponding to the target air gesture.

步骤S640:检测所述目标隔空手势对应的硬件运行参数的运行性能参数是否为目标运行性能参数,所述目标运行性能参数为每单位时间处理的数据量最大的运行性能参数。Step S640: Detect whether the operating performance parameter of the hardware operating parameter corresponding to the target air gesture is the target operating performance parameter, and the target operating performance parameter is the operating performance parameter with the largest amount of data processed per unit time.

步骤S650:若是,配置所述电子设备在电量高于目标阈值的阶段,保持基于所述目标运行性能参数运行,以用于所述电子设备基于所述目标硬件运行参数执行与所述目标隔空手势对应的控制功能。Step S650: If yes, configure the electronic device to keep running based on the target operating performance parameters when the power level is higher than the target threshold value, so that the electronic device can perform air separation from the target based on the target hardware operating parameters. The control function corresponding to the gesture.

需要说明的是,给硬件配置硬件运行参数在一定情况下也是需要消耗资源的。那么为了可以更好的实现快速响应隔空手势操作,并且同时也能起到降低功耗的目的,可以在电子设备的电量较为充足(例如,电量高于目标阈值的阶段)的情况下,一直保持基于所述目标运行性能参数运行,进而在这种情况下,在电子设备基于前述的目标硬件运行参数运行后,在检测到新的目标隔空操作手势时,需要先判断一下电子设备的电量是否高于目标阈值的阶段,如果电子设备的电量高于目标阈值,则不执行获取该新的目标隔空操作手势对应的硬件运行参数的操作,而如果电子设备的电量不高于目标阈值,则执行获取新的目标隔空操作手势对应的硬件运行参数,并继而将新的目标隔空操作手势对应的硬件运行参数配置给电子设备。It should be noted that configuring hardware operating parameters for hardware also consumes resources under certain circumstances. Then, in order to better realize the fast response to the gesture operation, and at the same time to reduce power consumption, when the power of the electronic device is relatively sufficient (for example, when the power is higher than the target threshold), the power Keep running based on the target operating performance parameters, and in this case, after the electronic device runs based on the aforementioned target hardware operating parameters, when a new target air-space operation gesture is detected, it is necessary to first judge the power of the electronic device. In the stage of whether it is higher than the target threshold, if the power of the electronic device is higher than the target threshold, the operation of acquiring the hardware operating parameters corresponding to the new target air gesture gesture is not performed, and if the power of the electronic device is not higher than the target threshold, Then, obtain the hardware operating parameters corresponding to the new target air-operating gesture, and then configure the hardware operating parameters corresponding to the new target air-operating gesture to the electronic device.

本实施例提供的一种设备控制方法,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。并且,在本实施例中,在配置硬件运行参数的过程中,会检测所述目标隔空手势对应的硬件运行参数的运行性能参数是否为目标运行性能参数,若是,配置所述电子设备在电量高于目标阈值的阶段,保持基于所述运行性能参数运行,进而使得电子设备可以在电量充足时,一直保持较佳的硬件运行参数,以提升电子设备响应隔空手势的效率。In a device control method provided by this embodiment, when entering an air gesture control scene, the currently collected target air gesture is recognized, and then the hardware operating parameters corresponding to the target air gesture are obtained, and then the target air gesture is acquired. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to perform a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture. In addition, in this embodiment, in the process of configuring the hardware operating parameters, it will be detected whether the operating performance parameters of the hardware operating parameters corresponding to the target air gesture are the target operating performance parameters, and if so, configure the electronic device In the stage higher than the target threshold, the operation is kept based on the operating performance parameters, so that the electronic device can always maintain the better hardware operating parameters when the power is sufficient, so as to improve the efficiency of the electronic device in responding to the air gesture.

请参阅图9,图所示为本申请一实施例提出的一种设备控制装置700的结构框图,该装置700包括:Please refer to FIG. 9, which shows a structural block diagram of a device control apparatus 700 according to an embodiment of the present application. The apparatus 700 includes:

手势识别单元710,用于若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势。The gesture recognition unit 710 is configured to recognize the currently collected target air gesture when entering the air gesture control scene.

运行参数获取单元720,用于获取与所述目标隔空手势对应的硬件运行参数。The operating parameter acquiring unit 720 is configured to acquire hardware operating parameters corresponding to the target air gesture.

作为一种方式,运行参数获取单元720,具体用于获取当前的运行场景;As one way, the operation parameter obtaining unit 720 is specifically configured to obtain the current operation scene;

获取所述当前的运行场景对应的硬件运行参数映射关系,所述硬件运行参数映射关系表征所述当前的运行场景中每个隔空手势对应的硬件运行参数;基于所述硬件运行参数映射关系获取与所述目标隔空手势对应的硬件运行参数。在这种方式下,可选的,运行参数获取单元720,具体用于获取当前在前台运行的应用程序;将所述前台运行的应用程序确定为当前的运行场景;获取所述前台运行的应用程序对应的硬件运行参数映射关系。在这种方式下,可选的,运行参数获取单元720,具体用于获取系统配置的运行性能等级,其中不同的运行性能等级所对应的耗电量不同;将所述运行性能等级确定为当前的运行场景;获取所述运行性能等级对应的硬件运行参数映射关系。Obtain the hardware operating parameter mapping relationship corresponding to the current operating scene, where the hardware operating parameter mapping relationship represents the hardware operating parameter corresponding to each air gesture in the current operating scene; obtain based on the hardware operating parameter mapping relationship Hardware operating parameters corresponding to the target air gesture. In this manner, optionally, the operation parameter acquisition unit 720 is specifically configured to acquire the application currently running in the foreground; determine the application running in the foreground as the current running scene; acquire the application running in the foreground The mapping relationship of the hardware operating parameters corresponding to the program. In this way, optionally, the operating parameter obtaining unit 720 is specifically configured to obtain the operating performance level of the system configuration, wherein the power consumption corresponding to different operating performance levels is different; the operating performance level is determined as the current The operation scenario; obtain the hardware operation parameter mapping relationship corresponding to the operation performance level.

作为另外一种方式,运行参数获取单元720,具体用于若所述目标隔空手势表征点击操作,确定与所述目标隔空手势对应的硬件运行参数为第一硬件运行参数;若所述目标隔空手势表征沿指定方向的滑动操作,确定与所述目标隔空手势对应的硬件运行参数为第二硬件运行参数;其中,所述第一硬件运行参数所表征的硬件运行效率高于所述第一硬件运行参数所表征的硬件运行效率。As another way, the operation parameter obtaining unit 720 is specifically configured to determine the hardware operation parameter corresponding to the target air gesture as the first hardware operation parameter if the target air gesture represents a click operation; The air gesture represents a sliding operation in a specified direction, and the hardware operation parameter corresponding to the target air gesture is determined as the second hardware operation parameter; wherein, the hardware operation efficiency represented by the first hardware operation parameter is higher than that of the The hardware operating efficiency represented by the first hardware operating parameter.

运行参数配置单元730,用于将所述硬件运行参数配置给所述电子设备,以用于所述电子设备基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。An operating parameter configuration unit 730, configured to configure the hardware operating parameters to the electronic device, so that the electronic device can perform a control function corresponding to the target air gesture based on the hardware operating parameters.

作为一种方式,如图10所示,所述装置还包括:As one way, as shown in Figure 10, the apparatus further includes:

手势比对单元740,用于获取上一次采集的目标隔空手势;比对所述当前所采集的目标隔空手势与所述上一次采集的目标隔空手势是否不同。在这种方式下,运行参数获取单元720,用于若所述当前所采集的目标隔空手势与所述上一次采集的目标隔空手势不同,执行所述获取与所述目标隔空手势对应的硬件运行参数。The gesture comparison unit 740 is configured to acquire the last collected target air gesture; compare whether the currently collected target air gesture is different from the last collected target air gesture. In this manner, the operating parameter acquisition unit 720 is configured to execute the acquisition corresponding to the target air gesture if the currently collected target air gesture is different from the previously collected target air gesture hardware operating parameters.

作为一种方式,每个硬件运行参数对应有运行性能参数,所述运行性能参数表征每单位时间处理的数据量。运行参数配置单元730,具体用于获取所述目标隔空手势对应的硬件运行参数的运行性能参数;检测所述目标隔空手势对应的硬件运行参数的运行性能参数是否为目标运行性能参数,所述目标运行性能参数为每单位时间处理的数据量最大的运行性能参数;若是,配置所述电子设备在电量高于目标阈值的阶段,保持基于所述运行性能参数运行。In one way, each hardware operating parameter corresponds to an operating performance parameter, where the operating performance parameter represents the amount of data processed per unit time. The operating parameter configuration unit 730 is specifically configured to obtain the operating performance parameter of the hardware operating parameter corresponding to the target air gesture; detect whether the operating performance parameter of the hardware operating parameter corresponding to the target air gesture is the target operating performance parameter, so the The target operating performance parameter is the operating performance parameter with the largest amount of data processed per unit time; if so, configure the electronic device to keep running based on the operating performance parameter when the power level is higher than the target threshold.

本申请提供的一种设备控制装置,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。A device control device provided by the present application recognizes the currently collected target air gesture when entering the air gesture control scene, then acquires hardware operating parameters corresponding to the target air gesture, and then converts the target air gesture. The manner in which the hardware operating parameters are configured to the electronic device enables the electronic device to execute a control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gesture, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gesture, the electronic device can be more flexibly adapted to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture.

需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。It should be noted that the apparatus embodiments in the present application correspond to the foregoing method embodiments, and the specific principles in the apparatus embodiments may refer to the content in the foregoing method embodiments, which will not be repeated here.

下面将结合图11对本申请提供的一种电子设备进行说明。An electronic device provided by the present application will be described below with reference to FIG. 11 .

请参阅图11,基于上述的一种设备控制方法,本申请实施例还提供的另一种包括可以执行前述一种设备控制方法的处理器102的电子设备200,该电子设备200可以为智能手机、平板电脑、计算机或者便携式计算机等设备。电子设备200还包括存储器104、以及网络模块106。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。其中的处理器102的内部结构可以如图1所示。Referring to FIG. 11 , based on the foregoing device control method, another electronic device 200 including a processor 102 capable of executing the foregoing device control method is further provided by the embodiments of the present application, and the electronic device 200 may be a smart phone , tablet, computer, or laptop. The electronic device 200 also includes a memory 104 and a network module 106 . Wherein, the memory 104 stores a program that can execute the content in the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104 . The internal structure of the processor 102 may be as shown in FIG. 1 .

其中,处理器102可以包括一个或者多个用于处理数据的核以及消息矩阵单元。处理器102利用各种接口和线路连接整个电子设备200内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备200的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(DigitalSignal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(GraphicsProcessing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The processor 102 may include one or more cores for processing data and a message matrix unit. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 104, and calling the data stored in the memory 104. Various functions of the electronic device 200 and processing data. Optionally, the processor 102 may employ at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 102, and is implemented by a communication chip alone.

存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the terminal 100 during use (such as phone book, audio and video data, chat record data) and the like.

所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,网络模块106可以与基站进行信息交互。The network module 106 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, communicate with an audio playback device. The network module 106 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, etc. . The network module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with the base station for information.

请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1100中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 1100 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质1100可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1100包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1100具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1110可以例如以适当形式进行压缩。The computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. Computer readable storage medium 1100 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 1110 may be compressed, for example, in a suitable form.

综上所述,本申请提供的一种设备控制方法、装置、电子设备及存储介质,通过若进入到隔空手势控制场景时,识别当前所采集的目标隔空手势,然后获取与所述目标隔空手势对应的硬件运行参数,再将所述硬件运行参数配置给所述电子设备的方式,使得所述电子设备可以基于所述硬件运行参数执行与所述目标隔空手势对应的控制功能。从而通过适配与当前所采集的目标隔空手势对应的硬件运行参数,然后再控制电子设备基于目标隔空手势对应的硬件运行参数运行来使得电子设备可以更加灵活的适配不同的隔空手势,也使得电子设备可以以目标隔空手势更适配的性能运行该目标隔空手势对应的控制功能,提升了电子设备的性能与隔空手势适配性。To sum up, a device control method, device, electronic device and storage medium provided by the present application, by identifying the currently collected target air gestures when entering the air gesture control scene, and then obtaining and matching the target air gestures. The method of configuring the hardware operating parameters to the electronic device based on the hardware operating parameters corresponding to the air gesture, so that the electronic device can execute the control function corresponding to the target air gesture based on the hardware operating parameters. Therefore, by adapting the hardware operating parameters corresponding to the currently collected target air gestures, and then controlling the electronic device to run based on the hardware operating parameters corresponding to the target air gestures, the electronic device can more flexibly adapt to different air gestures. , which also enables the electronic device to run the control function corresponding to the target air gesture with the performance more suitable for the target air gesture, which improves the performance of the electronic device and the adaptability of the air gesture.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not 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: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (7)

1. An apparatus control method applied to an electronic apparatus, the method comprising:
if the target space gesture control scene is entered, identifying a currently acquired target space gesture;
acquiring an application program currently running in a foreground;
determining the foreground running application program as a current running scene;
acquiring a hardware operation parameter mapping relation corresponding to the application program operated by the foreground, wherein the hardware operation parameter mapping relation represents a hardware operation parameter corresponding to each spaced gesture in the current operation scene;
acquiring hardware operating parameters corresponding to the target air-separating gesture based on the hardware operating parameter mapping relation;
configuring the hardware operating parameter to the electronic device for the electronic device to execute a control function corresponding to the target spaced gesture based on the hardware operating parameter.
2. The method of claim 1, wherein the obtaining the current operational scenario comprises:
acquiring operation performance grades configured by a system, wherein the power consumption corresponding to different operation performance grades is different;
determining the operation performance grade as a current operation scene;
the obtaining of the hardware operation parameter mapping relationship corresponding to the current operation scene includes:
and acquiring a hardware operation parameter mapping relation corresponding to the operation performance grade.
3. The method of claim 1, wherein obtaining hardware operating parameters corresponding to the target spaced gesture further comprises:
acquiring a target air gesture acquired last time;
and if the current acquired target air-separating gesture is different from the last acquired target air-separating gesture, executing the acquisition of the hardware operating parameters corresponding to the current acquired target air-separating gesture.
4. The method of claim 1, wherein each hardware operating parameter corresponds to an operating performance parameter that characterizes an amount of data processed per unit time, and wherein configuring the hardware operating parameters to the electronic device comprises:
acquiring the operation performance parameters of the hardware operation parameters corresponding to the target air-separating gesture;
detecting whether an operation performance parameter of a hardware operation parameter corresponding to the target air-separating gesture is a target operation performance parameter, wherein the target operation performance parameter is the operation performance parameter with the maximum data volume processed in unit time;
and if so, configuring the electronic equipment to keep operating based on the operating performance parameters when the electric quantity is higher than a target threshold value.
5. An apparatus control device, operable with an electronic device, the device comprising:
the gesture recognition unit is used for recognizing the currently acquired target air-separating gesture if entering an air-separating gesture control scene;
the operation parameter acquisition unit is used for acquiring the application program currently operated in the foreground; determining the application program running in the foreground as a current running scene; acquiring a hardware operation parameter mapping relation corresponding to the application program operated by the foreground, wherein the hardware operation parameter mapping relation represents a hardware operation parameter corresponding to each spaced gesture in the current operation scene; acquiring hardware operating parameters corresponding to the target air-separating gesture based on the hardware operating parameter mapping relation;
and the operation parameter configuration unit is used for configuring the hardware operation parameters to the electronic equipment so that the electronic equipment can execute a control function corresponding to the target air-separating gesture based on the hardware operation parameters.
6. An electronic device comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-4.
7. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-4.
CN202010044212.5A 2020-01-15 2020-01-15 Device control method, device, electronic device and storage medium Active CN111273769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010044212.5A CN111273769B (en) 2020-01-15 2020-01-15 Device control method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010044212.5A CN111273769B (en) 2020-01-15 2020-01-15 Device control method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111273769A CN111273769A (en) 2020-06-12
CN111273769B true CN111273769B (en) 2022-06-17

Family

ID=70997245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010044212.5A Active CN111273769B (en) 2020-01-15 2020-01-15 Device control method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111273769B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190106B (en) 2021-03-16 2022-11-22 青岛小鸟看看科技有限公司 Gesture recognition method and device and electronic equipment
CN113110887B (en) * 2021-03-31 2023-07-21 联想(北京)有限公司 Information processing method, device, electronic equipment and storage medium
CN117032447B (en) * 2022-05-31 2024-07-26 荣耀终端有限公司 Method, device, electronic chip and electronic device for air gesture interaction

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5288938A (en) * 1990-12-05 1994-02-22 Yamaha Corporation Method and apparatus for controlling electronic tone generation in accordance with a detected type of performance gesture
CN102426675A (en) * 2011-11-07 2012-04-25 北京邮电大学 Method for optimizing software and hardware working state by using information related to user subjective feeling
CN103984416A (en) * 2014-06-10 2014-08-13 北京邮电大学 Gesture recognition method based on acceleration sensor
CN104460935A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104615366A (en) * 2014-12-31 2015-05-13 中国人民解放军国防科学技术大学 Gesture interactive method oriented to multiple devices
CN104978014A (en) * 2014-04-11 2015-10-14 维沃移动通信有限公司 Method for quickly calling application program or system function, and mobile terminal thereof
CN105242861A (en) * 2015-10-15 2016-01-13 广东欧珀移动通信有限公司 Ultrasonic wave-based parameter adjustment method and device
CN106445567A (en) * 2015-08-04 2017-02-22 西安中兴新软件有限责任公司 A method for starting a terminal application and a terminal
CN109271208A (en) * 2018-09-26 2019-01-25 Oppo广东移动通信有限公司 Parameter setting method, device, terminal and storage medium
CN110114256A (en) * 2016-10-03 2019-08-09 三菱电机株式会社 Automatic driving control parameter changing device and automatic driving control parameter changing method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9268404B2 (en) * 2010-01-08 2016-02-23 Microsoft Technology Licensing, Llc Application gesture interpretation
WO2012126103A1 (en) * 2011-03-23 2012-09-27 Mgestyk Technologies Inc. Apparatus and system for interfacing with computers and other electronic devices through gestures by using depth sensing and methods of use
US9459697B2 (en) * 2013-01-15 2016-10-04 Leap Motion, Inc. Dynamic, free-space user interactions for machine control
CN104748737B (en) * 2013-12-30 2017-09-29 华为技术有限公司 A kind of multiple terminals localization method, relevant device and system
US10444819B2 (en) * 2015-06-19 2019-10-15 Intel Corporation Techniques to control computational resources for an electronic device
CN105740020A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Application starting method and starting apparatus, and terminal
US10262751B2 (en) * 2016-09-29 2019-04-16 Intel Corporation Multi-dimensional optimization of electrical parameters for memory training
CN108647088A (en) * 2018-03-13 2018-10-12 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5288938A (en) * 1990-12-05 1994-02-22 Yamaha Corporation Method and apparatus for controlling electronic tone generation in accordance with a detected type of performance gesture
CN102426675A (en) * 2011-11-07 2012-04-25 北京邮电大学 Method for optimizing software and hardware working state by using information related to user subjective feeling
CN104460935A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104978014A (en) * 2014-04-11 2015-10-14 维沃移动通信有限公司 Method for quickly calling application program or system function, and mobile terminal thereof
CN103984416A (en) * 2014-06-10 2014-08-13 北京邮电大学 Gesture recognition method based on acceleration sensor
CN104615366A (en) * 2014-12-31 2015-05-13 中国人民解放军国防科学技术大学 Gesture interactive method oriented to multiple devices
CN106445567A (en) * 2015-08-04 2017-02-22 西安中兴新软件有限责任公司 A method for starting a terminal application and a terminal
CN105242861A (en) * 2015-10-15 2016-01-13 广东欧珀移动通信有限公司 Ultrasonic wave-based parameter adjustment method and device
CN110114256A (en) * 2016-10-03 2019-08-09 三菱电机株式会社 Automatic driving control parameter changing device and automatic driving control parameter changing method
CN109271208A (en) * 2018-09-26 2019-01-25 Oppo广东移动通信有限公司 Parameter setting method, device, terminal and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Interactive Control through Hand Gestures;Nausheen Qaiser Qureshi;《2013 11th International Conference on Frontiers of Information Technology》;20140223;83-88 *
基于手势的自然用户界面开发环境研究与实现;高雄;《西北大学信息科技专辑》;20151231;1-63 *
基于手势识别的人机交互技术研究;吴彩芳等;《计算机时代》;20160510(第二期);29-32 *

Also Published As

Publication number Publication date
CN111273769A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN107466077B (en) A kind of network switching method and mobile terminal
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN111273769B (en) Device control method, device, electronic device and storage medium
CN109033247B (en) Application program management method and device, storage medium and terminal
CN110377141B (en) Application processing method and device, electronic equipment and storage medium
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
CN108845838B (en) Application preloading method, device, storage medium and terminal
CN106095492B (en) Application program closing method and device
CN106776385A (en) A kind of transmission method, device and terminal of log log information
CN111970749A (en) Network connection method and device, intelligent household equipment and intelligent household system
CN112135081A (en) Mode control method, device, frame insertion chip and electronic device
CN105187653B (en) Network connection switchs method for closing and device
CN107402791A (en) Applied program processing method, device, storage medium and terminal
CN110855838A (en) Positioning service control method, positioning service control device, mobile terminal and storage medium
CN108011860B (en) Method, device and terminal for processing broadcast message
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing
CN111897916B (en) Voice instruction recognition method, device, terminal equipment and storage medium
CN106648205B (en) Sleep control method, device and terminal
CN114270297A (en) Touch screen reporting method, device, electronic device and storage medium
CN112840305B (en) Font switching method and related product
CN110717486B (en) Text detection method and device, electronic equipment and storage medium
CN114281724B (en) Data transmission method and device and electronic equipment
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN112889318B (en) WIFI network processing method, device, electronic device and 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