Power consumption control method and device, electronic equipment and medium

By obtaining touch indicators, user distance and grip information, and application scenario information, and adjusting the status and parameters of the air-distance gesture function, the high power consumption problem caused by the air-distance gesture function is solved, and power consumption optimization and user experience are improved.

CN120255684APending Publication Date: 2025-07-04VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510306323.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The air-distance gesture function of electronic devices causes large power consumption due to continuous acquisition and detection of images, and a method is needed to reduce power consumption.

Method used

By obtaining touch indication information, distance information between the user's face and the device, grip information of the device, and current application scenario information, the enable status and working parameters of the air-distance gesture function are adjusted to adapt to user needs and device scenarios.

Benefits of technology

It effectively reduces the power consumption of the air-to-air gesture function, ensures the satisfaction of user needs and the efficient operation of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255684A_ABST
    Figure CN120255684A_ABST
Patent Text Reader

Abstract

The invention discloses a power consumption control method and device, electronic equipment and a medium, and belongs to the technical field of terminals. The method comprises the following steps: acquiring first information, wherein the first information comprises at least one of touch indication information, distance information between a user face and the electronic equipment, holding information of the electronic equipment and current application scene information of the electronic equipment; executing first processing according to the first information; wherein the first processing comprises at least one of the following steps: adjusting the starting state of the air gesture function of the electronic equipment, and adjusting the working parameters of the air gesture function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of terminals, and particularly relates to a power consumption control method, device, electronic device, and medium. Background Art

[0002] With the development of terminal technology, the functions of electronic devices have become increasingly rich. For example, electronic devices can support air gesture functions, enabling users to operate electronic devices through air gestures.

[0003] Specifically, an electronic device can continuously detect a user's gesture image through an image sensor or a front camera. If a gesture image is detected, the electronic device can recognize the detected gesture image and perform an operation corresponding to the recognition result. For example, when the electronic device displays the desktop and detects an air gesture of swiping to the right, the electronic device can control the desktop to slide to the right or turn to the right page.

[0004] However, since the air gesture function needs to continuously collect and detect images to determine whether the user performs an air gesture operation, it may cause relatively high power consumption of the electronic device. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide a power consumption control method, device, electronic device, and medium, which can reduce the power consumption of the electronic device.

[0006] In a first aspect, the embodiments of this application provide a power consumption control method, which includes: obtaining first information, where the first information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, current application scenario information of the electronic device; and performing first processing according to the first information; where the first processing includes at least one of the following: adjusting the enabled state of the air gesture function of the electronic device, adjusting the working parameters of the air gesture function.

[0007] In a second aspect, the embodiments of this application provide a power consumption control device, which includes an obtaining module and a processing module. The obtaining module is used to obtain first information, where the first information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, current application scenario information of the electronic device; the processing module is used to perform first processing according to the first information obtained by the obtaining module; where the first processing includes at least one of the following: adjusting the enabled state of the air gesture function of the electronic device, adjusting the working parameters of the air gesture function.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. 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.

[0011] 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.

[0012] In the embodiment of the present application, first information can be obtained, and the first information includes at least one of the following: touch indication information, the distance information between the user's face and the electronic device, the holding information of the electronic device, and the current application scenario information of the electronic device. According to the first information, first processing is performed. The first processing includes at least one of the following: adjusting the enabling state of the air gesture function of the electronic device, and adjusting the working parameters of the air gesture function. Through this solution, since the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device can represent the user's usage intention or usage requirement for the air gesture function, and the current application scenario information of the electronic device can represent whether the current application scenario of the electronic device supports the air gesture function, the electronic device adjusts the enabling state (such as including the on state or the off state) of the air gesture function according to one or more of these information, and / or, after adjusting the working parameters of the air gesture function, it can ensure that the enabling state and the working parameters of the air gesture function are adapted to the user's usage requirement or the current application scenario of the electronic device. For example, when the user does not need or the current application scenario of the electronic device does not support the air gesture function, the air gesture function can be turned off or the working parameters of the air gesture function can be reduced, thereby reducing the power consumption required by the air gesture function and further reducing the power consumption of the electronic device. Description of the Drawings

[0013] Figure 1 is one of the flow diagrams of the power consumption control method provided by the embodiment of the present application;

[0014] Figure 2 is a schematic diagram of the distance between the user's face and the electronic device;

[0015] Figure 3 It is the second flowchart of the power consumption control method provided by the embodiment of the present application;

[0016] Figure 4 It is the third flowchart of the power consumption control method provided by the embodiment of the present application;

[0017] Figure 5 It is the fourth flowchart of the power consumption control method provided by the embodiment of the present application;

[0018] Figure 6 It is the fifth flowchart of the power consumption control method provided by the embodiment of the present application;

[0019] Figure 7 It is the structural schematic diagram of the power consumption control device provided by the embodiment of the present application;

[0020] Figure 8 It is the first structural schematic diagram of the electronic device provided by the embodiment of the present application;

[0021] Figure 9 It is the second structural schematic diagram of the electronic device provided by the embodiment of the present application. Specific embodiments

[0022] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, 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 means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.

[0024] The terms "at least one (item)", "at least one of", etc. in the description and claims of this application refer to any one, any two or more combinations of their included objects. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" means two or more, and its expressed meaning is similar to that of "at least one (item)".

[0025] The following will, with reference to the accompanying drawings, through specific embodiments and their application scenarios, elaborate in detail on the power consumption control method, device, electronic device, and medium provided by the embodiments of this application.

[0026] The power consumption control method, device, electronic device, and medium provided by the embodiments of this application can be applied to scenarios of reducing the power consumption or energy consumption of electronic devices that support the air gesture function.

[0027] Scenario 1: Based on the user's need to use the air gesture function, process the air gesture function to reduce the power consumption of the electronic device. Specifically, the electronic device can obtain touch indication information, which can indicate whether a touch event occurs on the electronic device. Then, based on this touch indication information, the electronic device can adjust the enabled state of the air gesture function of the electronic device and / or adjust the working parameters of the air gesture function. For example, when the touch indication information indicates that a touch event occurs on the electronic device, the electronic device can enable the air gesture function and / or increase the working parameters of the air gesture function; thereby ensuring that the electronic device can accurately receive and respond to the user's air gesture and improving the response accuracy of the air gesture function. For another example, when the touch indication information indicates that no touch event occurs on the electronic device, the electronic device can turn off the air gesture function or reduce the working parameters of the air gesture function, thereby reducing the power consumption generated by running the air gesture function. In this way, since the touch indication information can represent the user's need to use the air gesture function, processing the air gesture function using the touch indication information can ensure that the enabled state and / or working parameters of the air gesture function of the electronic device match the current application scenario of the electronic device, thereby reducing the power consumption of the electronic device on the basis of ensuring the normal use of the air gesture function by the user.

[0028] It can be understood that the above Scenario 1 is illustrated by taking the first information as the touch indication information as an example. In actual implementation, the first information can also be information such as the distance between the user's face and the electronic device, or the holding information of the electronic device, etc., any information that can represent the user's need to use the air gesture function. And the first information can be any combination of the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device.

[0029] Scenario 2: Based on the current application scenario of the electronic device, process the air gesture function to reduce the power consumption of the electronic device. Specifically, the electronic device can obtain the current application scenario information of the electronic device, and based on this scenario information, adjust the enabling state of the air gesture function of the electronic device, and / or adjust the working parameters of the air gesture function. For example, when the application scenario information indicates that the current application scenario of the electronic device supports the air gesture function, the electronic device can enable the air gesture function and / or increase the working parameters of the air gesture function, so as to ensure that the electronic device can accurately receive and respond to the user's air gesture, thereby improving the operation convenience of the electronic device. For another example, when the information indicates that the current application scenario does not support the air gesture function, the electronic device can turn off the air gesture function or reduce the working parameters of the air gesture function, thereby reducing the power consumption generated by running the air gesture function. In this way, on the basis of ensuring that the user can normally use the air gesture function of the electronic device, the power consumption of the electronic device can be reduced. Since the application scenario information of the electronic device can indicate whether the current application scenario of the electronic device supports the air gesture function, using this application scenario information to process the air gesture function can ensure that the enabling state and / or working parameters of the air gesture function of the electronic device match the current application scenario of the electronic device, so that on the basis of ensuring that the user can normally use the air gesture function of the electronic device, the power consumption of the electronic device can be reduced.

[0030] Based on the above scenario, the power consumption control method provided by the embodiments of the present application may include: obtaining first information, where the first information includes at least one of the following: touch indication information, the distance information between the user's face and the electronic device, the holding information of the electronic device, and the current application scenario information of the electronic device; performing first processing according to the first information; where the first processing includes at least one of the following: adjusting the enabling state of the air gesture function of the electronic device, and adjusting the working parameters of the air gesture function. Through this solution, since the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device can indicate the user's intention or demand for using the air gesture function, and the current application scenario information of the electronic device can indicate whether the current application scenario of the electronic device supports the air gesture function, after the electronic device adjusts the enabling state (such as including the on state or off state) of the air gesture function and / or adjusts the working parameters of the air gesture function according to one or more of these information, it can ensure that the enabling state and working parameters of the air gesture function are adapted to the user's usage requirements or the current application scenario of the electronic device. For example, when the user does not need it or the current application scenario of the electronic device does not support the air gesture function, the air gesture function can be turned off or the working parameters of the air gesture function can be reduced, thereby reducing the power consumption required by the air gesture function and further reducing the power consumption of the electronic device.

[0031] The execution subject of the power consumption control method provided in the embodiments of the present application is a power consumption control device, which may be an electronic device, or a functional module or entity in the electronic device. The embodiments of the present application do not make any limitations in this regard. Hereinafter, the power consumption control method provided in the embodiments of the present application will be exemplarily described by taking an electronic device as an example.

[0032] The embodiments of the present application provide a power consumption control method. Figure 1 The flowchart of the power consumption control method provided in the embodiments of the present application is shown, as Figure 1 shown, the power consumption control method may include the following steps 101 and 102.

[0033] Step 101: The electronic device obtains first information.

[0034] Wherein, the above first information may include at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, and current application scenario information of the electronic device.

[0035] In some embodiments of the present application, when the first information includes at least one of touch indication information, distance information between the user's face and the electronic device, and holding information of the electronic device, the first information may represent at least one of the following: the user's usage requirement for the air gesture function.

[0036] In some embodiments of the present application, the above touch indication information is used to indicate whether a touch event occurs.

[0037] In some embodiments of the present application, the holding information of the electronic device may be used to indicate whether the user is holding the electronic device.

[0038] In some embodiments of the present application, the distance information between the user's face and the electronic device may indicate the distance between the user's face and the electronic device. For example, as Figure 2 shown, the distance between the user's face 01 and the electronic device 02 is the distance indicated by the arrow 03.

[0039] In some embodiments of the present application, when the first information includes the current application scenario information of the electronic device, the first information may represent whether the current application scenario of the electronic device supports the air gesture function.

[0040] It can be understood that the air gesture function enables users to operate the electronic device or the screen of the electronic device in the air. However, the capabilities of the air gesture function are limited. In some application scenarios of the electronic device, it may not be possible to operate the electronic device in the air through air gestures. In these application scenarios, even if the air gesture function is enabled, the electronic device cannot accurately respond to the air gestures, resulting in waste of power consumption of the electronic device. Therefore, using the first information that can characterize whether the current application scenario of the electronic device supports the air gesture function can enable the electronic device to turn off the air gesture function or reduce the working parameters of the air gesture function in the application scenarios that do not support the air gesture function, thereby reducing the power consumption generated by running the air gesture function.

[0041] In some embodiments of the present application, the electronic device may use any information that can indicate whether the current application scenario of the electronic device supports the air gesture function as the application scenario information of the electronic device.

[0042] In some embodiments of the present application, the application scenario information of the electronic device may include at least one of the following:

[0043] Information 1: The gesture response information corresponding to the current application scenario of the electronic device, and the gesture response information can indicate whether there is a response operation corresponding to a preset gesture in the application corresponding to the current application scenario of the electronic device;

[0044] Information 2: The scenario identifier of the current application scenario of the electronic device;

[0045] Information 3: The interface feature information of the current display interface of the electronic device;

[0046] Information 4: The power consumption of the current application scenario of the electronic device.

[0047] In some embodiments of the present application, assuming that at least one preset gesture is pre-set in the electronic device, and each preset gesture corresponds to at least one response operation, then: if there is one or more response operations corresponding to the preset gestures in the application to which the currently displayed interface belongs or corresponds, it is determined that the current application scenario supports the air gesture function; if there is no response operation corresponding to any preset gesture in the application to which the currently displayed interface belongs, it is determined that the current application scenario does not support the air gesture function.

[0048] For example, assuming that the electronic device pre-sets an upward swipe gesture and a downward swipe gesture, and the upward swipe gesture is associated with an upward swipe operation of the interface; the downward swipe gesture is associated with a downward swipe operation of the interface, then: since the desktop cannot be swiped up and down, that is, there is no response operation corresponding to the preset gesture, it is determined that the application scenario of displaying the desktop does not support the air gesture function.

[0049] It can be understood that the judgment method using Information 1 can prevent the user from triggering the electronic device to switch the interface in the current application and then being unable to use the air gesture function, such as the scenario where the electronic device switches to an interface with response operations corresponding to some preset gestures in the current application.

[0050] In some embodiments of the present application, the scenario identifier of the application scenario can be the scenario name, abbreviation, or code of the application scenario. For example, the scenario identifier of the video playback scenario can be "Video Playback". Alternatively, the scenario identifier of the application scenario can be the application identifier corresponding to the application of the application scenario. For example, if the electronic device is currently using Application 1 to play Video A, then the scenario identifier of the current application scenario of the electronic device can be "Application 1".

[0051] In some embodiments of the present application, the above interface feature information can indicate the state of the interface; specifically, the interface feature information can indicate whether the interface is in: an inoperable state and / or a gesture invalidation state.

[0052] For example, when the electronic device plays a video in full screen, if the lock control corresponding to the video playback interface is in a closed state, the user cannot adjust the video playback progress, volume, or brightness through touch input or air gesture input on the video playback interface, that is, the inoperable state.

[0053] For example, when the user uses the electronic device to play games, since the operations are relatively intensive and the recognition accuracy of the air gesture is limited, it is considered that the game interface is in a gesture invalidation state.

[0054] In some embodiments of the present application, the electronic device can set a scenario list that does not support the air gesture function. If the scenario identifier of the current application scenario is in this scenario list, it is determined that the current application scenario does not support the air gesture function; otherwise, it is determined that the current application scenario supports the air gesture function.

[0055] In some embodiments of the present application, the application scenarios that do not support the air gesture function can include, but are not limited to, at least one of the following: video playback scenario, game scenario.

[0056] Among them, in the operation disabling scenario: the interface displayed by the electronic device is in an inoperable state. That is, in the operation disabling scenario, the electronic device does not respond to the user's touch input or air gesture input on the interface.

[0057] For example, when an electronic device plays a video in full screen, on the one hand, since the electronic device cannot accurately determine whether the user's up and down swipe gestures are for adjusting the volume or brightness, it may lead to a difference between the response of the electronic device and the user's operation purpose. On the other hand, when the user performs a left and right swipe gesture, the electronic device may not be able to accurately determine the duration for which the user desires to fast forward or rewind, resulting in an adjustment amplitude of the playback progress that does not meet the user's expectations. Thus, since the accuracy of the electronic device's response to air gestures in the video playback scenario may be relatively low, the electronic device can determine that the video playback scenario does not support air gestures to avoid inaccurate responses.

[0058] In some embodiments of the present application, a power consumption threshold may be set in the electronic device. If the power consumption of the current application scenario of the electronic device is greater than or equal to the power consumption threshold, it is determined that the current application scenario does not support the air gesture function.

[0059] The above examples of application scenarios that do not support the air gesture function do not limit the present application. In actual implementation, whether an application scenario supports the air gesture function also needs to be determined in combination with the preset gestures corresponding to the air gesture function of the electronic device and the operations associated with the preset gestures.

[0060] For example, assume that the electronic device presets an upward swipe gesture and a downward swipe gesture, and the upward swipe gesture is associated with an upward swipe operation on the interface; the downward swipe gesture is associated with a downward swipe operation on the interface. Then: since the desktop cannot be swiped up and down, it is determined that the application scenario of displaying the desktop does not support the up and down swipe gestures.

[0061] Again, for example, assume that the electronic device presets a screenshot gesture. Then it can be determined that application scenarios that do not support screenshotting, such as payment scenarios or transfer scenarios, etc., do not support the screenshot gesture.

[0062] In some embodiments of the present application, the electronic device can combine at least one of the above information 1 to 4 to determine whether the current application scenario supports the air gesture function.

[0063] Exemplarily, the electronic device can first determine whether the current application scenario is a video playback scenario. If so, it directly determines that the air gesture function is not supported; if not, it continues to determine whether there is a response operation corresponding to the preset gesture in the application corresponding to the current application scenario through the gesture response information corresponding to the current application scenario. If there is a response operation corresponding to the preset gesture, it is determined that the air gesture function is supported, otherwise it is determined that the air gesture operation is not supported.

[0064] Thus, since the application scenario information of the electronic device can reflect the characteristics of the current application scenario, it is possible to accurately determine whether the current application scenario of the electronic device supports the air gesture function through this scenario information.

[0065] In some embodiments of the present application, "the electronic device obtains the first information" may also be referred to as: electronically detecting or monitoring the first information.

[0066] In some embodiments of the present application, the electronic device can listen for touch event information. If touch event information is detected, the above touch indication information can indicate that a touch event has occurred on the electronic device; otherwise, the above touch indication information can indicate that no touch event has occurred on the electronic device. Each touch event information can indicate a touch event received by the electronic device, such as a touch operation on the screen by the user or a touch operation on the physical button of the electronic device. It can be understood that the touch indication information can be determined based on the listening result of the touch event information, or can be represented by the listening result of the touch event information.

[0067] In some embodiments of the present application, the touch event may include but is not limited to at least one of the following: clicking on the screen, long-pressing on the screen, double-clicking on the screen, dragging on the screen, swiping on the screen, a touch operation on the physical button of the electronic device, etc.

[0068] In some embodiments of the present application, the distance information between the user's face and the electronic device can indicate the distance between the user's face and the electronic device. For example, as Figure 2 shown, the distance between the user's face 01 and the electronic device 02 is the distance indicated by the arrow 03.

[0069] In some embodiments of the present application, the electronic device can use the front camera of the electronic device to capture the user's face image, and based on the size of the face image, determine the distance information between the user's face and the electronic device.

[0070] Among them, the larger the size of the face image, the greater the distance between the user's face and the electronic device; the smaller the size of the face image, the smaller the distance between the user's face and the electronic device.

[0071] In some embodiments of the present application, the electronic device can use the distance sensor in the electronic device to detect the distance information between the user's face and the electronic device. The distance sensor can be an infrared sensor.

[0072] In some embodiments of the present application, the electronic device can use the pressure sensor in the electronic device to obtain the holding information.

[0073] Specifically, if the pressure detected by the pressure sensor is greater than the preset pressure threshold, the holding information can indicate that the user is holding the electronic device; otherwise, the holding information indicates that the user is not holding the electronic device.

[0074] In some embodiments of the present application, in order to improve the detection accuracy, multiple pressure sensors can be set in the electronic device, and the setting positions of these pressure sensors in the electronic device can correspond to the user's habitual holding positions.

[0075] In addition, the arm distance of a person is generally in the range of 20-80cm. When a user holds an electronic device with both hands to operate it, the effective distance between the face (i.e., the user's face) and the electronic device generally does not exceed the range of 20-80cm. Therefore, it is possible to use the detection of whether the face distance exceeds this range as a basis for judging whether the user is currently holding the electronic device. Specifically, if the distance between the user's face and the electronic device is within the range, it can be considered that the electronic device is currently being held by the user, thereby determining that the user does not need to use the air gesture function; if the distance between the user's face and the electronic device is outside the range, it can be considered that the electronic device is currently in a shelved or placed state, or the user is inconvenient to hold the electronic device with both hands. In other words, the holding information of the electronic device can be determined based on the distance information between the user's face and the electronic device.

[0076] In this way, since the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device can all represent whether the user has the conditions or needs to operate the electronic device by touch, and the air gesture function is usually used when it is inconvenient for the user to operate the electronic device by touch, using the touch indication information, at least one of the distance information between the user's face and the electronic device and the holding information can accurately represent whether the user needs to use the air gesture function, thereby improving the processing accuracy of the air gesture function.

[0077] Step 102: The electronic device performs a first process according to the first information.

[0078] Among them, the first processing may include at least one of the following: adjusting the enabling state of the air gesture function, and adjusting the working parameters of the air gesture function.

[0079] In some embodiments of the present application, the enabling state of the air gesture function may include: an on state and an off state.

[0080] It should be noted that turning off the air gesture function can be done by: turning off the air gesture detection algorithm, or, when using a dedicated sensor, such as an image sensor to capture gesture images, the electronic device can also turn off the image sensor, that is, no longer capture gesture images.

[0081] In some embodiments of the present application, the air gesture function of the electronic device may include at least two sub-functions, each sub-function corresponds to at least one preset air gesture, and the electronic device can adjust the activation state of at least one of the at least two sub-functions.

[0082] In some embodiments of the present application, if an electronic device turns off a sub-function, it means that the electronic device does not need to compare the collected gesture image with the preset air gesture corresponding to the sub-function, so as to reduce the power consumption of gesture recognition of the electronic device.

[0083] For example, the air gesture function of the electronic device may include 3 sub-functions, namely: up and down swipe gesture, left and right swipe gesture, and screenshot gesture. Among them, the up swipe gesture is used to trigger the up swipe of the interface, the down swipe gesture is used to trigger the down swipe of the interface, the left swipe gesture is used to trigger the left swipe of the interface, the right swipe gesture is used to trigger the right swipe of the interface, and the screenshot gesture is used to trigger the screenshot operation on the interface. Then: if the electronic device turns off the up and down swipe gesture, after the electronic device collects a gesture image, it can compare the gesture image with: the left and right swipe gesture and the screenshot gesture respectively, without comparing the gesture image with the up and down swipe gesture.

[0084] In some embodiments of the present application, the electronic device may adjust the enabled state of the at least two sub-functions according to the support situation of the current application scenario for the at least two sub-functions.

[0085] For example, turn off the sub-functions not supported by the current application scenario.

[0086] In some embodiments of the present application, when 2 or more than 2 of the above at least two sub-functions are turned on, the working parameters of these turned-on sub-functions may be the same.

[0087] In some embodiments of the present application, the electronic device may collect the user's gesture image through a gesture collection sensor. Among them, the gesture collection sensor may be: the front camera or the image sensor of the electronic device.

[0088] In some embodiments of the present application, compared with the front camera, since the power consumption of the image sensor is lower, the power consumption of the electronic device can be reduced to a certain extent.

[0089] In some embodiments of the present application, the image sensor may be an infrared sensor or other sensors with lower power consumption.

[0090] In some embodiments of the present application, when the electronic device turns off all sub-functions, the electronic device may turn off the gesture collection sensor to minimize the power consumption of the electronic device.

[0091] In some embodiments of the present application, the working parameters of the air gesture function may include at least one of the following:

[0092] The acquisition frame rate of the air gesture image, which may also be referred to as the image output frame rate or the air gesture detection frame rate;

[0093] The acquisition resolution of the air gesture image, which is also called the image output resolution.

[0094] It can be understood that the above acquisition frame rate can be the frequency at which the electronic device acquires the user's air gesture image through the gesture acquisition sensor, and the acquisition resolution of the air gesture image can be the resolution used by the electronic device to acquire the air gesture image through the gesture sensor.

[0095] In some embodiments of the present application, the above acquisition frame rate may include but is not limited to any one of the following: 2fps, 3fps, 4fps, 5fps, etc.

[0096] In some embodiments of the present application, the above acquisition resolution may include but is not limited to any one of the following: 1080P (1920x1080), 720P (1280×720), 2K (2560x1440), etc.

[0097] It should be noted that the smaller the working parameter of the air gesture function, the smaller the power consumption of the electronic device when executing the air gesture function.

[0098] For example, the smaller the acquisition frame rate of the air gesture image, the smaller the number of air gesture images acquired by the gesture acquisition sensor per unit time, and the smaller the number of images that the electronic device needs to perform gesture comparison, so that the comparison power consumption of the electronic device is smaller, and further the overall power consumption of the electronic device is smaller.

[0099] In some embodiments of the present application, if the gesture acquisition sensor is a front camera and the electronic device enables the face recognition function, the electronic device can reduce the acquisition frame rate of the gesture acquisition sensor to ensure the normal use of related functions such as face recognition while reducing the power consumption of the electronic device. It can be understood that the images acquired by the front camera can be used for face recognition and / or air gesture recognition, etc., which can be specifically determined according to actual usage requirements.

[0100] In some embodiments of the present application, the smaller the working parameter of the above air gesture function, the lower the accuracy and accuracy of the electronic device in recognizing air gestures.

[0101] In some embodiments of the present application, the electronic device can adjust the acquisition resolution of the air gesture image by switching the gesture acquisition sensor.

[0102] For example, the electronic device can switch the gesture acquisition sensor from the front camera to an infrared sensor to reduce the acquisition resolution of the air gesture image.

[0103] For example, the electronic device can switch the gesture acquisition sensor from the infrared sensor to the front camera to increase the acquisition resolution of the air gesture image.

[0104] In some embodiments of the present application, the electronic device can also adjust the acquisition resolution of the air gesture image by switching the working mode of the gesture acquisition sensor.

[0105] For example, by switching the working mode of the infrared sensor from the normal working mode to the low power consumption mode to reduce the acquisition resolution.

[0106] In the power consumption control method provided in the embodiments of the present application, since the touch indication information, the distance between the user's face and the electronic device, and the holding information of the electronic device can characterize the user's usage intention or usage requirement for the air gesture function, and the current application scenario information of the electronic device can characterize whether the current application scenario of the electronic device supports the air gesture function, the electronic device adjusts the enabling state (such as including the on state or the off state) of the air gesture function according to one or more of these information, and / or, after adjusting the working parameters of the air gesture function, it can ensure that the enabling state and the working parameters of the air gesture function are adapted to the user's usage requirement or the current application scenario of the electronic device. For example, when the user does not need it or the current application scenario of the electronic device does not support the air gesture function, the air gesture function can be turned off or the working parameters of the air gesture function can be reduced, thereby reducing the power consumption required by the air gesture function and further reducing the power consumption of the electronic device.

[0107] In some embodiments of the present application, the above step 102 may include the following step 102A.

[0108] Step 102A: The electronic device performs a first process according to the first information and the first condition.

[0109] Wherein, the first condition may include at least one of the following:

[0110] The electronic device receives a touch input;

[0111] The distance between the user's face and the electronic device is less than or equal to a preset distance;

[0112] The user holds the electronic device;

[0113] The current application scenario of the electronic device does not support the air gesture function.

[0114] In some embodiments of the present application, if the electronic device receives a touch input, it can be considered that the user is currently using their hand to operate the electronic device, that is, at this time, the user's hands or one hand are in an idle state, that is, it is more convenient for the user to operate the electronic device in a touch manner at this time, so it is determined that the user has no need or intention to use the air gesture function. Correspondingly, if the touch indication information indicates that the electronic device has not received a touch input, it means that the user is currently inconvenient to operate the electronic device in a touch manner, so it is considered that the user has a need to use the air gesture function.

[0115] In some embodiments of the present application, the greater the distance between the user's face and the electronic device, the smaller the probability or success rate that the user uses the touch or touch method to operate the electronic device (the screen of the electronic device), and thus the greater the probability or success rate that the user needs to use the air gesture function. Therefore, the distance information between the user's face and the electronic device and the preset distance can accurately represent whether the user needs to use the air gesture function.

[0116] In some embodiments of the present application, the above preset distance can be any one of the following: user-defined, system default, determined according to big data.

[0117] In some embodiments of the present application, the preset distance can be the maximum effective distance when the user can use the touch method to operate the electronic device. If the distance between the user's face and the electronic device is greater than the preset distance, the user may not be able to or is inconvenient to use the touch method to operate the electronic device.

[0118] In some embodiments of the present application, when the user holds the electronic device, it means that the distance between the user's hand and the electronic device is small, so it is determined that the user is convenient to use the touch method to operate the electronic device, and further it is determined that the user has no need to use the air gesture function. When the user does not hold the electronic device, it means that the distance between the user's hand and the electronic device is large, so it is determined that the user is inconvenient to use the touch method to operate the electronic device, and further it is determined that the user has a need to use the air gesture function.

[0119] Thus, since the first processing is executed based on the first condition and the first information, and the first condition represents that the user has no need or intention to use the air gesture function and / or the electronic device cannot currently respond to the user's air gesture, the first processing executed by the electronic device can make the enabled state and working parameters of the air gesture function match the usage requirements of the air gesture function or the response ability of the electronic device, so that the power consumption occupied or required by the air gesture function can be accurately controlled, and further the power consumption of the electronic device can be accurately controlled.

[0120] In some embodiments of the present application, the electronic device can execute corresponding first processing based on the relationship between the first information and the first condition. It can be understood that different relationships between the first information and the first condition result in different first processing executed by the electronic device.

[0121] In some embodiments of the present application, the above step 102A may include the following step 102A1.

[0122] Step 102A1: When the first information satisfies the first condition, the electronic device executes second processing.

[0123] Wherein, the second processing may include at least one of the following:

[0124] Turn off the air gesture function;

[0125] Reduce the acquisition frame rate of the air gesture image;

[0126] Reduce the acquisition resolution of the air gesture image.

[0127] In some embodiments of the present application, if the first information meets the first condition, the first information indicates that the user has no intention of using the air gesture function or the current application scenario of the electronic device does not support the air gesture function. If the first information does not meet the second condition, the first information indicates that the user has a need to use the air gesture function or the current application scenario of the electronic device does not support the air gesture function.

[0128] In some embodiments of the present application, the first information meeting the first condition may include at least one of the following:

[0129] The above touch indication information indicates that the electronic device has received a touch input;

[0130] The distance indicated by the above distance information is less than or equal to a preset distance;

[0131] The holding information of the electronic device indicates that the user is holding the electronic device;

[0132] The application scenario information of the electronic device indicates that the current application scenario does not support the air gesture function.

[0133] In some embodiments of the present application, the electronic device turning off the air gesture function may include any one of the following:

[0134] The electronic device turns off a part of the air gesture function, such as turning off the sub-function that is not supported by the current application scenario among the above at least two sub-functions;

[0135] The electronic device may completely turn off the air gesture function, such as turning off the gesture acquisition sensor, so as to minimize the power consumption of the electronic device.

[0136] In some embodiments of the present application, when the first information does not meet the first condition, the electronic device may turn off the gesture acquisition sensor to completely turn off the air gesture function, so as to minimize the power consumption of the electronic device; or, the electronic device may reduce the working parameters of the air gesture function, such as reducing the acquisition frame rate of the air gesture image and / or reducing the acquisition resolution of the air gesture image. In this way, the power consumption of the electronic device can be reduced to a certain extent, and the user can also be prevented from being unable to use the air gesture function.

[0137] In some embodiments of the present application, when the first information includes the application scenario information of the electronic device, if the first information meets the first condition, the electronic device may turn off the sub-functions not supported by the current application scenario, and / or may reduce at least one of the acquisition resolution and acquisition frame rate of the air gesture image.

[0138] In some embodiments of the present application, when the first information meets the first condition and the air gesture function is in the on state, the electronic device may turn off the air gesture function.

[0139] In some embodiments of the present application, when the first information meets the first condition and the working parameters of the air gesture function are greater than or equal to the preset parameters, the electronic device may reduce the working parameters of the air gesture. For example, the acquisition frame rate may be reduced from 5fps to 2fps, or the acquisition resolution may be reduced from 1080P to 720P.

[0140] Wherein, the preset parameters may include at least one of an acquisition frame rate threshold and an acquisition resolution threshold.

[0141] In this way, since it is possible to execute at least one of turning off the air gesture function, reducing the acquisition frame rate of the air gesture image, and reducing the acquisition resolution of the air gesture image when the first information meets the first condition, that is, the user has no intention or need to use the air gesture function, and / or the current application scenario of the electronic device does not support the air gesture function. And turning off the air gesture function, reducing the acquisition frame rate of the air gesture image, and reducing the acquisition resolution of the air gesture image can all reduce the power consumption of the electronic device. Therefore, the power consumption generated by running the air gesture function is reduced, and thus the purpose of reducing the power consumption of the electronic device can be achieved.

[0142] In some embodiments of the present application, the above step 102A may include the following step 102A2.

[0143] Step 102A2: When the first information does not meet the first condition, the electronic device performs a third process.

[0144] Wherein, the third process may include at least one of the following:

[0145] Turn on the air gesture function;

[0146] Increase the acquisition frame rate of the air gesture image;

[0147] Increase the acquisition resolution of the air gesture image.

[0148] In some embodiments of the present application, after the electronic device performs the third process, the electronic device can accurately respond to the user's air gesture, thereby improving the accuracy of air gesture response.

[0149] It can be understood that enabling the air gesture function of the electronic device can include any one of the following:

[0150] Fully enable the air gesture function, that is, enable all functions in the air gesture function, such as all sub-functions;

[0151] Enable a part of the functions in the air gesture function, such as the sub-functions required by the user or the sub-functions supported by the current application scenario.

[0152] In some embodiments of the present application, the electronic device can enable the air gesture function when the air gesture function is in the off state.

[0153] In some embodiments of the present application, the electronic device can increase the working parameters of the air gesture function when the working parameters of the air gesture function are less than the preset parameters.

[0154] In this way, since at least one of enabling the air gesture function, increasing the acquisition frame rate of the air gesture image, and increasing the acquisition resolution of the air gesture image can be performed when the first information does not meet the first condition, that is, the user has an intention or need to use the air gesture function, and / or the current application scenario of the electronic device supports the air gesture function, the electronic device can accurately receive and respond to the user's air gesture input. Therefore, on the basis of reducing the power consumption of the electronic device, the accuracy of the electronic device in responding to air gestures can be improved, and the user experience of using the air gesture function can be enhanced.

[0155] In some embodiments of the present application, the above step 102A may include the following steps 102A3 and 102A4.

[0156] Step 102A3: When the first information does not meet the first condition, the electronic device enables a timer and acquires second information within the timing duration of the timer.

[0157] Step 102A4: The electronic device performs a first process according to the second information and the first condition.

[0158] Among them, the second information may include at least one of the following: touch indication information, the distance between the user's face and the electronic device, the holding information of the electronic device, and the current application scenario information of the electronic device.

[0159] For the description of the second information, refer to the relevant description of the first information in the above embodiments.

[0160] In some embodiments of the present application, the information items included in the second information and the first information may be the same or different.

[0161] For example, both the first information and the second information include touch indication information.

[0162] For example, the first information includes touch indication information, and the second information includes application scenario information of the electronic device.

[0163] For example, both the first information and the second information include application scenario information of the electronic device.

[0164] It can be understood that the acquisition time of the second information is different from that of the first information.

[0165] In some embodiments of the present application, the operation time when the user operates the electronic device in a touch manner is random, and the user may trigger the electronic device to switch the application scenario of the electronic device at any time. Therefore, when the first information detected once does not meet the first condition, it may not be possible to determine whether the user currently has a need to use the air gesture function and / or whether the current application scenario of the electronic device supports the air gesture function. Thus, in order to improve the judgment accuracy, the electronic device may turn on a timer, and obtain the second information within the timing duration of the timer, and further determine whether the user has a need to execute the air gesture function and / or whether the current application scenario of the electronic device supports the air gesture function based on the relationship between the obtained second information and the first condition.

[0166] In some embodiments of the present application, the electronic device turns on a timer and obtains the second information within the timing duration of the timer, which can also be described as: the electronic device starts a countdown and obtains the second information during the countdown process.

[0167] For the description of the first processing, refer to the relevant description in the above embodiments.

[0168] In this way, when the first information does not meet the first condition, that is, the user has an intention or a need to use the air gesture function, and / or the current application scenario of the electronic device supports the air gesture function, since the electronic device can turn on a timer and perform the first processing based on the second information obtained within the timing duration of the timer and the first condition, and the second information obtained by the electronic device within the timing duration can reflect whether the user has an intention to use the air gesture function and / or whether the application scenario of the electronic device supports the air gesture function within a continuous time period, therefore, based on the obtained second information and the first condition, the control accuracy of the power consumption of the air gesture function can be improved, and thus the power consumption control accuracy of the electronic device can be improved.

[0169] In some embodiments of the present application, step 102A4 may include the following step 201 or step 202.

[0170] Step 201: When there is second information that meets the first condition before the timer times out, the electronic device performs the second processing and stops the timer.

[0171] Step 202: When the second information does not satisfy the first condition within the timing duration of the timer, the electronic device performs a third process.

[0172] Among them, the second process may include at least one of the following:

[0173] Turn off the air gesture function;

[0174] Reduce the acquisition frame rate of the air gesture image;

[0175] Reduce the acquisition resolution of the air gesture image.

[0176] Among them, the third process may include at least one of the following:

[0177] Turn on the air gesture function;

[0178] Increase the acquisition frame rate of the air gesture image;

[0179] Increase the acquisition resolution of the air gesture image.

[0180] For other descriptions of the second process and the third process, refer to the relevant descriptions in the above embodiments. To avoid repetition, they are not elaborated here.

[0181] In some embodiments of the present application, "there is second information that satisfies the first condition before the timer times out" can be understood as: the electronic device obtains second information that satisfies the first condition before the timer times out.

[0182] In some embodiments of the present application, after the electronic device obtains each second information, it can determine whether the second information satisfies the first condition. If a certain second information obtained satisfies the first condition, the electronic device can perform the above step 201. If the electronic device does not obtain second information that satisfies the first condition until the timer times out, it performs the above step 202.

[0183] For example, if a touch indication information (i.e., the first information) indicates that no touch event has occurred, the electronic device can enter a countdown, such as starting a timer. If a touch event is detected before the countdown ends, the countdown is cancelled, such as turning off the timer, and the touch event information is continuously monitored to determine whether the user has a need to use the air gesture function. If no touch event information is monitored until the countdown ends, the electronic device determines that the user has a need to use the air gesture function.

[0184] Thus, on the one hand, since there is second information that satisfies the first condition before the timer times out, indicating whether the user is operating the electronic device in a touch manner or the current application scenario of the electronic device does not support the air gesture function, the electronic device performing a second process (such as turning off the air gesture function, reducing the acquisition frame rate of the air gesture image, or reducing the acquisition resolution of the air gesture function) can reduce the power consumption required for the air gesture function, thereby reducing the power consumption of the electronic device; and stopping the timer can also reduce the power consumption of the electronic device, so that the purpose of reducing the power consumption of the electronic device can be achieved. On the other hand, if the second information obtained by the electronic device within the timing duration of the timer does not satisfy the first condition, it can be accurately determined that the user is not currently operating the electronic device in a touch manner and the application scenario of the electronic device indicates the air gesture function within a period of time. Therefore, it is highly likely that the user will operate the electronic device through air gestures. Thus, the electronic device can perform a third process (such as turning on the air gesture function, increasing the acquisition frame rate of the air gesture image, or increasing the acquisition resolution of the air gesture function) so that when the user performs an air gesture, the electronic device can accurately receive and respond to the air gesture, thereby improving the experience of using air gestures.

[0185] The following uses specific examples to exemplarily illustrate the complete process of the power consumption control method provided by the embodiments of the present application.

[0186] Example 1: Adjust the working state of the air gesture function based on whether a touch event occurs. As Figure 3 shown, the power consumption control method provided by the embodiments of the present application includes the following steps:

[0187] Step 20: The mobile phone monitors whether a touch event occurs on the touch screen of the mobile phone to obtain touch indication information.

[0188] If the touch indication information indicates that a touch event occurs, it is considered that the user is operating the mobile phone with their hands. At this time, both hands are in an idle state, that is, the user does not need to use the air gesture function, so the mobile phone executes step 21. If the touch indication information indicates that no touch event occurs, the mobile phone executes step 23.

[0189] Step 21: The mobile phone determines whether the air gesture function is in a first state.

[0190] Among them, the first state includes at least one of the following: on state, high working parameter state.

[0191] Among them, the high working parameter state means that the working parameters of the air gesture function are greater than or equal to the preset parameters.

[0192] In some embodiments of the present application, the working parameters of the air gesture function may include at least one of the acquisition frame rate and acquisition resolution of the air gesture image.

[0193] In some embodiments of the present application, if the air gesture function is in the first state, the mobile phone continues to execute step 22.

[0194] Step 22: The mobile phone turns off the air gesture function, or reduces at least one of the acquisition resolution and acquisition frame rate of the air gesture function.

[0195] For example, the mobile phone can turn off the air gesture function by turning off the gesture acquisition sensor; or, the mobile phone can adjust the acquisition frame rate of the air gesture image from 5fps to 2fps; or the mobile phone can switch the gesture acquisition sensor to an infrared sensor to reduce the acquisition resolution of the air gesture image.

[0196] Step 23: The mobile phone starts a countdown and listens for whether a touch event occurs before the countdown ends.

[0197] If no touch event is detected until the countdown ends, it is considered that the user does not operate the mobile phone with their hand or the user cannot perform a touch operation on the mobile phone, and thus step 24 is entered; if a touch event is detected before the countdown ends, the countdown is stopped and step 20 is entered.

[0198] It can be understood that starting the countdown corresponds to starting the timer in the above embodiments.

[0199] It can be understood that before the countdown ends, if a touch event is detected, the first information indicating the occurrence of the touch event can be obtained; if no touch event occurs at the end of the countdown, the first information indicating the non-occurrence of the touch event can be obtained.

[0200] Step 24: The mobile phone determines whether the air gesture function of the mobile phone is in the second state.

[0201] Among them, the second state may include: a closed state or a low working parameter state.

[0202] The low working parameter state may include at least one of the following:

[0203] A low acquisition resolution state, such as the acquisition resolution of the air gesture image is less than a preset resolution;

[0204] A low acquisition frame rate state, such as the acquisition frame rate of the air gesture image is less than a preset acquisition frame rate.

[0205] In some embodiments of the present application, when the air gesture function is in the low working parameter state, the working parameters of the air gesture function are less than the preset parameters.

[0206] It can be understood that low sampling resolution is for optimizing power consumption by reducing the resolution of the captured gesture images. However, low capture resolution will also affect the effect. Therefore, when it is clear that the air gesture function is to be used, the resolution of the output image (i.e., the capture resolution) should be restored to a resolution that can ensure the algorithm effect, so as not to affect the user experience.

[0207] In some embodiments of the present application, when the mobile phone determines that the air gesture function is in the second state, the mobile phone can execute step 25.

[0208] Step 25: The mobile phone enables the air gesture function and / or increases at least one of the capture resolution and capture frame rate of the air gesture function.

[0209] For example, the mobile phone can increase the capture frame rate from 2fps to 5fps.

[0210] In this way, using whether there is a touch event on the touch screen as the basis for judging whether the user's current two hands are in an idle state, when a touch event is detected, it can be considered that the current user can operate the electronic device with the hands, that is, it is considered that the user does not need the air gesture function. At this time, the air gesture function can be turned off or at least one of the capture resolution and capture frame rate of the air gesture function can be reduced to achieve the purpose of optimizing power consumption.

[0211] Example 2: Adjust the working state of the air gesture function based on whether a touch event occurs and whether the current application scenario supports the air gesture function. As Figure 4 shown, the power consumption control method provided in this application example includes the following steps:

[0212] Step 30: The mobile phone monitors whether a touch event occurs on the touch screen of the mobile phone to obtain touch indication information.

[0213] If the touch indication information indicates that a touch event occurs, it is considered that the user is operating the mobile phone with the hands. At this time, the two hands are in an idle state, that is, the user does not need to use the air gesture function. Therefore, the mobile phone executes step 31. If the touch indication information indicates that no touch event occurs, the mobile phone executes step 33.

[0214] Step 31: The mobile phone determines whether the air gesture function is in the first state.

[0215] For the description of the first state, refer to the relevant description in Example 1 above.

[0216] In some embodiments of the present application, if the air gesture function is in the first state, the mobile phone continues to execute step 32.

[0217] Step 32: The mobile phone turns off the air gesture function or reduces at least one of the capture resolution and capture frame rate of the air gesture function.

[0218] For example, the mobile phone can turn off the gesture acquisition sensor to turn off the air gesture function; or, the mobile phone can adjust the frame rate of the rendered image of the air gesture function from 5fps to 2fps to reduce the acquisition frame rate of the air gesture image; or the mobile phone can switch the gesture acquisition sensor to an infrared sensor to reduce the acquisition resolution.

[0219] Step 33: The mobile phone determines whether the current application scenario supports the air gesture function.

[0220] Exemplarily, if the current application scenario is a video playback scenario, it is determined that the current application scenario does not support the air gesture function; if the current application scenario is not a video playback scenario, it can be further determined whether the interface currently displayed on the electronic device can respond to the response operations corresponding to one or more preset gestures. If it can respond, it is determined that the air gesture function is supported, otherwise it is determined that the air gesture function is not supported.

[0221] In some embodiments of the present application, if the current application scenario supports the air gesture function, step 34 is executed; if the air gesture function is not supported, step 30 is executed.

[0222] In some embodiments of the present application, since the fact that the current application scenario does not support the air gesture function can to some extent reflect that the user will not use the air gesture function, in order to further reduce power consumption, the mobile phone can wait for a certain period of time and then re-execute step 30 to reduce the listening power consumption.

[0223] Step 34: The mobile phone determines whether the air gesture function is in the second state.

[0224] For the description of the second state, refer to the relevant description in the above Example 1.

[0225] If the mobile phone determines that the air gesture function is in the second state, step 35 is executed; otherwise, step 36 is executed.

[0226] Step 35: The mobile phone turns on the air gesture function and / or increases at least one of the acquisition resolution and the acquisition frame rate of the air gesture function.

[0227] In this way, using whether there is a touch event on the touch screen as the basis for determining whether the user's current hands are idle, and when a touch event is detected, or when no touch event is detected but the current application scenario does not support the air gesture function, turning off the air gesture function or reducing the working parameters of the air gesture function, that is, the air gesture function can be turned off when the user does not need to use it or the current scenario does not allow the use of the air gesture function, or at least one of the acquisition resolution and the acquisition frame rate of the air gesture function can be reduced, thereby further optimizing the power consumption of the electronic device.

[0228] Example 3: Based on the distance between the user's face and the electronic device, it is determined whether the user needs to use the air gesture function to adjust the working state of the air gesture function. For example Figure 5 As shown, the power consumption control method provided in this application example includes the following steps:

[0229] Step 50: The mobile phone detects the distance information between the user's face and the mobile phone.

[0230] Step 51: Based on the distance information, the mobile phone determines whether the distance between the user's face and the mobile phone is within a preset range.

[0231] If the distance between the user's face and the mobile phone is within the specified range, that is, the distance indicated by the above distance information is less than or equal to the preset distance, it is considered that the user is using their hands to operate the mobile phone. At this time, both hands are in an idle state, that is, the user does not need to use the air gesture function, so the mobile phone executes step 52. If the distance between the user's face and the mobile phone is within the specified range, that is, the distance indicated by the above distance information is greater than the preset distance, it is determined that both hands are not idle, that is, the user needs to use the air gesture function, so the mobile phone executes step 53.

[0232] Step 52: The mobile phone determines whether the air gesture function is in the first state.

[0233] In some embodiments of this application, if the air gesture function is in the first state, the mobile phone continues to execute step 54; otherwise, it is determined that the mobile phone is in the second state, so the mobile phone executes step 55.

[0234] For the descriptions of the first state and the second state, refer to the relevant descriptions in the above Example 1.

[0235] Step 53: The mobile phone enables the air gesture function, and / or increases at least one of the acquisition resolution and acquisition frame rate of the air gesture function.

[0236] Step 54: The mobile phone disables the air gesture function, or reduces at least one of the acquisition resolution and acquisition frame rate of the air gesture function.

[0237] Step 55: The mobile phone enables the air gesture function, and / or increases at least one of the acquisition resolution and acquisition frame rate of the air gesture function.

[0238] In this way, using the distance between the user's face and the mobile phone, it is determined whether the user's hands are in an idle state, that is, the basis for whether the user currently needs to use the air gesture function. When the distance between the user's face and the mobile phone is within the preset range, it is considered that the current user can use their hands to operate the electronic device, that is, it is considered that the user does not need the air gesture function. At this time, the air gesture function can be disabled or the working parameters of the air gesture function, such as the acquisition frame rate or acquisition resolution, can be reduced to achieve the purpose of optimizing power consumption.

[0239] Example 4: Based on whether the current application scenario supports the air gesture function, the working state of the air gesture function is adjusted. Usually, the air gesture function of the mobile phone is in the always-on state. However, in some specific application scenarios, the air gesture function is not applicable. For applications with high power consumption, the air gesture function can be turned off. For example Figure 6 As shown, the power consumption control method provided by the embodiments of the present application includes the following steps:

[0240] Step 60: Detect whether the currently displayed interface belongs to a game application or a video application.

[0241] If the interface of the game application or the video application is currently displayed, step 61 is executed; otherwise, step 62 is executed.

[0242] Step 61: The mobile phone determines whether the interface displayed on the mobile phone is in the landscape fixed state.

[0243] When mainly the video application and the game application are in the landscape fixed state, the air gesture function cannot take effect on these applications. Therefore, if the interface displayed on the mobile phone is in the landscape fixed state, it is considered that the air gesture function is invalid for this interface, and thus step 63 can be executed. If the interface is in the non-landscape fixed state, the mobile phone executes step 62.

[0244] Step 62: The mobile phone turns on the air gesture function, or increases at least one of the acquisition resolution and the acquisition frame rate of the air gesture function.

[0245] In some embodiments of the present application, the mobile phone can turn on the air gesture function when the air gesture function is turned off, or increase the acquisition resolution when the acquisition resolution of the air gesture function is less than the preset resolution, or increase the acquisition frame rate when the acquisition frame rate of the air gesture function is less than the preset frame rate, so as to meet the user's usage requirements for the air gesture function.

[0246] Step 63: The mobile phone turns off the air gesture function, or decreases at least one of the acquisition resolution and the acquisition frame rate of the air gesture function.

[0247] In some embodiments of the present application, after the mobile phone executes step 63, it can continue to execute the step of detecting whether the currently displayed interface belongs to a game application or a video application, that is, repeat step 60. If it is detected that the game application or the video application has exited, step 62 is continued to be executed.

[0248] Thus, since the air gesture function is a global function and not specific to a particular application, common air gestures typically include swiping up, down, left, or right, which simulate finger sliding events on the screen. This air gesture sliding is effective across all scenarios, meaning that for applications that support left - right or up - down interface sliding, users can trigger the interface to slide using air gestures. For example, on the desktop, air gestures can be used to slide left or right to operate the desktop, and when watching short videos, air gestures can be used to slide up and down to switch videos. However, for a specific application or application interface, since there are no sliding events occurring on the interface itself, such as when watching videos through a video application or playing games through a game application, the application interface is in a fixed landscape orientation state. At this time, the gestures are no longer effective, and thus, by turning off the air gesture function, the purpose of reducing power consumption can be achieved.

[0249] In the power consumption control method provided by the embodiments of the present application, the execution subject can be a power consumption control device. In the embodiments of the present application, taking the power consumption control device executing the power consumption control method as an example, the power consumption control device provided by the embodiments of the present application is described.

[0250] The embodiments of the present application provide a power consumption control device. Figure 7 The structural schematic diagram of the power consumption control device is shown, as Figure 7 shown, the power consumption control device 700 may include: an acquisition module 701 and a processing module 702;

[0251] The acquisition module 701 is configured to acquire first information, where the first information includes at least one of the following: touch indication information, the distance information between the user's face and the electronic device, the holding information of the electronic device, and the current application scenario information of the electronic device;

[0252] The processing module 702 is configured to perform a first process according to the first information acquired by the acquisition module 701.

[0253] Wherein, the first process includes at least one of the following: adjusting the enabling state of the air gesture function of the electronic device, and adjusting the working parameters of the air gesture function.

[0254] In some embodiments of the present application, the above - mentioned processing module 702 is specifically configured to perform the first process according to the first information and a first condition;

[0255] Wherein, the first condition includes at least one of the following:

[0256] The electronic device receives a touch input;

[0257] The distance between the user's face and the electronic device is less than or equal to a preset distance;

[0258] The user holds the electronic device;

[0259] The current application scenario of the electronic device supports the air gesture function.

[0260] In some embodiments of the present application, the above processing module 702 is specifically configured to execute a second process when the first information meets the first condition, and the second process includes at least one of the following:

[0261] Turn off the air gesture function;

[0262] Reduce the acquisition frame rate of the air gesture image;

[0263] Reduce the acquisition resolution of the air gesture image.

[0264] In some embodiments of the present application, the above processing module 702 is specifically configured to execute a third process when the first information does not meet the first condition, and the third process includes at least one of the following:

[0265] Turn on the air gesture function;

[0266] Increase the acquisition frame rate of the air gesture image;

[0267] Increase the acquisition resolution of the air gesture image.

[0268] In some embodiments of the present application, the above processing module 702 is specifically configured to:

[0269] When the first information does not meet the first condition, turn on a timer and obtain second information within the timing duration of the timer;

[0270] Execute the first process according to the second information and the first condition;

[0271] Wherein, the second information includes at least one of the following: touch indication information, the distance information between the user's face and the electronic device, the holding information of the electronic device, the current application scenario information of the electronic device.

[0272] In some embodiments of the present application, the above processing module 702 is specifically configured to:

[0273] When there is second information that meets the first condition before the timer times out, execute the second process and stop the timer; or,

[0274] When the second information within the timing duration does not meet the first condition, execute the third process.

[0275] In the power consumption control device provided in the embodiments of the present application, since the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device can characterize the user's intention or demand for using the air gesture function, and the current application scenario information of the electronic device can characterize whether the current application scenario of the electronic device supports the air gesture function. Therefore, after the electronic device adjusts the enabling state of the air gesture function (such as including the on state or the off state) according to one or more of these information, and / or adjusts the working parameters of the air gesture function, it can ensure that the enabling state and the working parameters of the air gesture function are adapted to the user's usage requirements or the current application scenario of the electronic device. For example, when the user does not need it or the current application scenario of the electronic device does not support the air gesture function, the air gesture function can be turned off or the working parameters of the air gesture function can be reduced, thereby reducing the power consumption required by the air gesture function and further reducing the power consumption of the electronic device.

[0276] The power consumption control device in the embodiments 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 other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0277] The power consumption control device in the embodiments of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0278] The power consumption control device provided in the embodiments of the present application can achieve Figures 1 to 6 each process implemented by the method embodiments, achieving the same technical effects. To avoid repetition, it will not be elaborated here.

[0279] Optionally, as Figure 8As shown in the figure, an embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802. A program or instruction that can run on the processor 801 is stored on the memory 802. When the program or instruction is executed by the processor 801, each step of the above-mentioned power consumption control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0280] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.

[0281] Figure 9 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0282] The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110 and other components.

[0283] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine some components, or have different component arrangements, which will not be elaborated here.

[0284] Among them, the processor 110 is used to obtain first information, and the first information includes at least one of the following: touch indication information, the distance information between the user's face and the electronic device, the holding information of the electronic device, and the current application scenario information of the electronic device;

[0285] The processor 110 is used to perform a first process according to the first information obtained by the processor 110.

[0286] Among them, the first process includes at least one of the following: adjusting the enabling state of the air gesture function of the electronic device, and adjusting the working parameters of the air gesture function.

[0287] In some embodiments of the present application, the above-mentioned processor 110 is specifically used to perform the first process according to the first information and a first condition;

[0288] Among them, the first condition includes at least one of the following:

[0289] The electronic device receives a touch input;

[0290] The distance between the user's face and the electronic device is less than or equal to a preset distance;

[0291] The user holds the electronic device;

[0292] The current application scenario of the electronic device supports the air gesture function.

[0293] In some embodiments of the present application, the above-mentioned processor 110 is specifically configured to perform a second process when the first information meets the first condition, and the second process includes at least one of the following:

[0294] Turn off the air gesture function;

[0295] Reduce the acquisition frame rate of the air gesture image;

[0296] Reduce the acquisition resolution of the air gesture image.

[0297] In some embodiments of the present application, the above-mentioned processor 110 is specifically configured to perform a third process when the first information does not meet the first condition, and the third process includes at least one of the following:

[0298] Turn on the air gesture function;

[0299] Increase the acquisition frame rate of the air gesture image;

[0300] Increase the acquisition resolution of the air gesture image.

[0301] In some embodiments of the present application, the above-mentioned processor 110 is specifically configured to:

[0302] When the first information does not meet the first condition, turn on a timer and obtain second information within the timing duration of the timer;

[0303] Execute the first process according to the second information and the first condition;

[0304] Wherein, the second information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, and current application scenario information of the electronic device.

[0305] In some embodiments of the present application, the above-mentioned processor 110 is specifically configured to:

[0306] When there is second information that meets the first condition before the timer times out, execute the second process and stop the timer; or,

[0307] In the case that none of the second information within the specified duration meets the first condition, a third process is executed.

[0308] In the electronic device provided in the embodiment of the present application, since the touch indication information, the distance information between the user's face and the electronic device, and the holding information of the electronic device can characterize the user's intention or demand for using the air gesture function, and the current application scenario information of the electronic device can characterize whether the current application scenario of the electronic device supports the air gesture function, the electronic device adjusts the enabling state (such as including the on state or off state) of the air gesture function according to one or more of these information, and / or, after adjusting the working parameters of the air gesture function, it can ensure that the enabling state and working parameters of the air gesture function are adapted to the user's usage requirements or the current application scenario of the electronic device. For example, the air gesture function can be turned off or the working parameters of the air gesture function can be reduced when the user does not need it or the current application scenario of the electronic device does not support the air gesture function, thereby reducing the power consumption required by the air gesture function and further reducing the power consumption of the electronic device.

[0309] It should be understood that in the embodiment of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. The other input devices 1072 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 elaborated here.

[0310] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both a volatile memory and a non-volatile memory. 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 (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0311] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110.

[0312] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above power consumption control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0313] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs.

[0314] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above power consumption control method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0315] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip.

[0316] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above power consumption control method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0317] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device including a series of elements includes not only those elements but also other elements not expressly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments 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 the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0318] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented 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, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0319] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A power consumption control method, characterized in that, The method includes: Obtaining first information, where the first information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, current application scenario information of the electronic device; Performing a first process according to the first information; Wherein, the first process includes at least one of the following: adjusting the enabled state of the air gesture function of the electronic device, adjusting the working parameters of the air gesture function.

2. The method according to claim 1, wherein The performing the first process according to the first information includes: Performing the first process according to the first information and a first condition; Wherein, the first condition includes at least one of the following: The electronic device receives a touch input; The distance between the user's face and the electronic device is less than or equal to a preset distance; The user holds the electronic device; The current application scenario of the electronic device does not support the air gesture function.

3. The method according to claim 2, wherein The performing the first process according to the first information and the first condition includes: When the first information meets the first condition, performing a second process, where the second process includes at least one of the following: Turning off the air gesture function; Reducing the acquisition frame rate of the air gesture image; Reducing the acquisition resolution of the air gesture image.

4. The method according to claim 2, wherein The performing the first process according to the first information and the first condition includes: When the first information does not meet the first condition, performing a third process, where the third process includes at least one of the following: Turning on the air gesture function; Increasing the acquisition frame rate of the air gesture image; Increasing the acquisition resolution of the air gesture image.

5. The method according to claim 2, wherein The performing the first process according to the first information and the first condition includes: When the first information does not meet the first condition, turning on a timer and obtaining second information within the timing duration of the timer; Performing the first process according to the second information and the first condition; Wherein, the second information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, current application scenario information of the electronic device.

6. The method according to claim 5, wherein The performing the first process according to the second information and the first condition includes: When there is second information that meets the first condition before the timer times out, performing the second process and stopping the timer; or, When the second information within the timing duration does not meet the first condition, performing the third process.

7. A power consumption control device, characterized in that, The device includes: an acquisition module and a processing module; The acquisition module is configured to obtain first information, where the first information includes at least one of the following: touch indication information, distance information between the user's face and the electronic device, holding information of the electronic device, current application scenario information of the electronic device; The processing module is configured to perform a first process according to the first information obtained by the acquisition module; Wherein, the first process includes at least one of the following: adjusting the enabled state of the air gesture function of the electronic device, adjusting the working parameters of the air gesture function.

8. The device according to claim 7, characterized in that, The processing module is specifically configured to perform the first processing according to the first information and the first condition; Wherein, the first condition includes at least one of the following: The electronic device receives a touch input; The distance between the user's face and the electronic device is less than or equal to a preset distance; The user holds the electronic device; The current application scenario of the electronic device supports the air gesture function.

9. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the power consumption control method described in any one of claims 1 to 6 are implemented.

10. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by the processor, the steps of the power consumption control method described in any one of claims 1 to 6 are implemented.