CN112363611B - Power consumption adjustment method and device, electronic equipment and readable storage medium - Google Patents

Power consumption adjustment method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112363611B
CN112363611B CN202011355733.9A CN202011355733A CN112363611B CN 112363611 B CN112363611 B CN 112363611B CN 202011355733 A CN202011355733 A CN 202011355733A CN 112363611 B CN112363611 B CN 112363611B
Authority
CN
China
Prior art keywords
electronic equipment
state
display state
power consumption
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011355733.9A
Other languages
Chinese (zh)
Other versions
CN112363611A (en
Inventor
柴柏君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202011355733.9A priority Critical patent/CN112363611B/en
Publication of CN112363611A publication Critical patent/CN112363611A/en
Application granted granted Critical
Publication of CN112363611B publication Critical patent/CN112363611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a power consumption adjusting method and device, electronic equipment and a computer readable storage medium, wherein when the electronic equipment is in a first display state, an external control state of the electronic equipment is detected, and the external control state is used for representing whether the electronic equipment is externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. Because the external control state of the electronic equipment is detected in advance, if the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images for subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.

Description

Power consumption adjustment method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for adjusting power consumption, an electronic device, and a readable storage medium.
Background
With the continuous development of computer technology, various electronic devices have more and more functions, and accordingly, power consumption of the electronic devices has also been higher and higher. Especially when the electronic device is in high power consumption display, the electronic device generally adopts a gazing screen-non-extinguishing technology, namely whether the screen is extinguished or not is determined by detecting whether a face exists in a range acquired by the camera, so that the power consumption of the electronic device is reduced.
However, when the electronic device is in high-power display, the power consumption of the electronic device is very high, and then the camera is continuously called to take pictures by adopting the gazing-keeping screen-turning-off technology, so that the camera also has very high power consumption. Clearly, the use of gaze-invariant screen technology does not reduce power consumption of electronic devices well.
Disclosure of Invention
The embodiment of the application provides a power consumption adjusting method and device, electronic equipment and a readable storage medium, which can effectively reduce the power consumption of the electronic equipment.
A method of power consumption regulation, the method comprising:
when the electronic equipment is in a first display state, detecting an external control state of the electronic equipment at present, wherein the external control state is used for representing whether the electronic equipment is externally controlled;
If the external control state of the electronic equipment currently indicates that the electronic equipment is not controlled externally, shooting an image through a front camera of the electronic equipment;
and if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state.
A power consumption adjustment device, the device comprising:
the electronic equipment comprises an external control state detection module, a display module and a display module, wherein the external control state detection module is used for detecting the current external control state of the electronic equipment when the electronic equipment is in a first display state, and the external control state is used for representing whether the electronic equipment is externally controlled;
the camera shooting module is used for shooting an image through a front camera of the electronic equipment if the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally;
and the display state conversion module is used for controlling the electronic equipment to enter a second display state from the first display state if the image does not comprise the target part of the human body, and the power consumption of the second display state is lower than that of the first display state.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the power consumption adjustment method as described above.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a power consumption adjustment method as described above.
The power consumption adjusting method and device, the electronic equipment and the computer readable storage medium detect the external control state of the electronic equipment when the electronic equipment is in the first display state, wherein the external control state is used for representing whether the electronic equipment is externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. Because the external control state of the electronic equipment is detected in advance, if the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment, and whether the image comprises a target part of a human body is judged. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of an application environment for a power consumption adjustment method in one embodiment;
FIG. 2 is a flow chart of a method of power consumption adjustment in one embodiment;
FIG. 3 is a flow chart of a method of power consumption adjustment in another embodiment;
FIG. 4 is a flow chart of a method of power consumption adjustment in yet another embodiment;
FIG. 5 is a schematic diagram of a power regulation method in one embodiment;
FIG. 6 is a flow chart of a method of power consumption adjustment in one embodiment;
FIG. 7 is a flow chart of a method of power consumption adjustment in one embodiment;
FIG. 8 is a block diagram of a power consumption adjustment device in one embodiment;
FIG. 9 is a block diagram showing a structure of a power consumption adjusting apparatus in another embodiment;
fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is an application scenario diagram of a power consumption adjustment method in one embodiment. As shown in fig. 1, the application environment includes an electronic device 120. By the power consumption adjusting method, when the electronic device is in the first display state, the electronic device 120 detects an external control state of the electronic device, where the external control state is used for representing whether the electronic device is externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. Here, the electronic device 120 may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a wearable device, and a smart home device.
FIG. 2 is a flow chart of a power consumption adjustment method in one embodiment. The power consumption adjustment method in this embodiment is described taking the electronic device 120 in fig. 1 as an example. As shown in fig. 2, the power consumption adjustment method includes steps 220 to 260. Wherein,
step 220, detecting an external manipulation state of the electronic device when the electronic device is in the first display state, where the external manipulation state is used for representing whether the electronic device is externally manipulated.
The first display state is relative to the second display state, and the power consumption of the second display state is lower than that of the first display state. That is, the first display state is understood to be a high power consumption display state, and the second display state is understood to be a low power consumption display state. For example, the electronic device may be considered to be in a high power consumption display state in which power consumption is high in a bright screen state.
In the traditional method, when the electronic equipment is in a bright screen state, a gazing screen-non-extinguishing technology is adopted, namely whether the screen is extinguished or not is determined by detecting whether a face exists in a range acquired by a camera, so that the power consumption of the electronic equipment is reduced. Obviously, the electronic equipment is in a high-power display state, and then the camera is continuously called to take pictures by adopting the fixation screen-non-extinguishing technology, so that the camera also has great power consumption. Therefore, the power consumption of the electronic device is not well reduced with the gaze-on-off technology.
According to the power consumption adjusting method provided by the embodiment of the application, when the electronic equipment is in the first display state, the external control state of the electronic equipment is detected in a preset time period. The external control state is used for representing whether the electronic equipment is externally controlled. The external manipulation state may be determined based on a motion state of the electronic device and/or a user operation state of the electronic device. Specifically, when any one of events such as the user moving the electronic device, the user touching the screen on the screen of the electronic device, and the user operating the electronic device at intervals occurs, it can be obtained that the electronic device is externally controlled.
In step 240, if the external control state of the electronic device indicates that the electronic device is not controlled externally, an image is captured by the front camera of the electronic device.
If the external control state of the electronic device is detected to be not controlled externally in the preset time period, it can be known that if the user does not move the electronic device in the preset time period, and the user does not touch the screen on the screen of the electronic device, or the user does not operate the electronic device in a blank manner, the electronic device is not controlled externally. At this time, if it is detected that the electronic device is not externally controlled within the preset time period, it is necessary to further capture an image by a front camera of the electronic device. Judging whether the electronic equipment is not externally controlled at the moment or not through the shot image, and not only the user does not appear in the preset range of the electronic equipment. Of course, the present application is not limited to the front camera, the under-screen camera or the rear camera.
In step 260, if the image does not include the target portion of the human body, the electronic device is controlled to enter a second display state from the first display state, and the power consumption of the second display state is lower than that of the first display state.
After an image is obtained through shooting by the front-facing camera of the electronic equipment, judging whether the image comprises a target part of a human body or not to obtain whether a user appears in the shooting range of the front-facing camera of the electronic equipment. If the image does not include the target part of the human body, the fact that the user does not appear in the preset range of the electronic equipment is indicated. Because no user appears in the preset range of the electronic equipment, the electronic equipment can be converted from the high-power-consumption display state to the low-power-consumption display state, so that the power consumption is reduced. Specifically, if the image does not include the target portion of the human body, the electronic device is controlled to enter the second display state from the first display state.
The target portion of the human body may include a human face, a human eye, a human hand, etc., which is not limited in the present application. In addition, the target portion of the human body may also refer to a target portion of the human body corresponding to a target user of the electronic device. For example, the target portion of the human body may also refer to a target portion of the human body corresponding to the owner of the electronic device (the identity information of the owner is entered in advance).
In the embodiment of the application, because the external control state of the electronic equipment is detected in advance, if the electronic equipment is not controlled externally, the image is shot by the front camera of the electronic equipment, and whether the image comprises the target part of the human body is judged. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
In one embodiment, as shown in fig. 3, there is provided a power consumption adjustment method, further including:
in step 280, if the image includes the target portion of the human body, the electronic device is controlled to maintain the first display state.
Specifically, a power consumption adjusting method is provided, which includes: when the electronic equipment is in a first display state, detecting an external control state of the electronic equipment at present, wherein the external control state is used for representing whether the electronic equipment is externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment. And if the image comprises the target part of the human body, controlling the electronic equipment to keep a first display state.
After an image is obtained through shooting by the front-facing camera of the electronic equipment, whether the image comprises a target part of a human body or not is judged, so that whether a user appears in the shooting range of the front-facing camera of the electronic equipment or not is obtained. If the image comprises the target part of the human body, the user appears in the preset range of the electronic equipment. Since a user appears within a preset range of the electronic device, it is necessary to keep the electronic device in a high power consumption display state. If the image includes the target part of the human body, the electronic equipment is controlled to maintain the first display state.
In the embodiment of the application, a power consumption adjusting method is provided, because the external control state of the electronic equipment is detected in advance, if the electronic equipment is not controlled externally, an image is shot by a front camera of the electronic equipment, and whether the image includes a target part of a human body is judged. If the image comprises the target part of the human body, the electronic equipment is controlled to keep a first display state, and the power consumption of the second display state is lower than that of the first display state. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
In one embodiment, as shown in fig. 4, there is provided a power consumption adjustment method, further including:
in step 290, if the external operation state of the electronic device indicates that the electronic device is operated externally, the electronic device is controlled to maintain the first display state.
Specifically, a power consumption adjusting method is provided, which includes: when the electronic equipment is in a first display state, detecting an external control state of the electronic equipment at present, wherein the external control state is used for representing whether the electronic equipment is externally controlled. And if the external control state of the electronic equipment currently indicates that the electronic equipment is controlled by the outside, controlling the electronic equipment to keep a first display state.
In the embodiment of the application, because the external control state of the electronic equipment is detected in advance, if the electronic equipment is not controlled externally, the image is shot by the front camera of the electronic equipment. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
In one embodiment, the external manipulation state includes a motion state of the electronic device and/or a user operation state of the electronic device, and detecting the external manipulation state in which the electronic device is currently located includes:
If the running state of the electronic equipment is a static state, determining that the electronic equipment is not externally controlled; and/or the number of the groups of groups,
if the user operation state of the electronic equipment is the no-operation state, determining that the electronic equipment is not externally controlled.
In particular, the external manipulation state may be determined based on a motion state of the electronic device and/or a user operation state of the electronic device. The motion state of the electronic device can be monitored through a decision center in the electronic device, and particularly the electronic device is in a static state or a non-static state. FIG. 5 is a schematic diagram of a power regulation method in one embodiment; the decision center 580 obtains the axial rotation speed of the x/y/z three axes of the electronic device through the gyro sensor 540 to determine whether the operation state of the electronic device is a stationary state. The device is considered to be in a stationary state when the absolute values of the axial rotation speeds of the three shafts are all equal to 0 or very close to 0.
In addition, the decision center 580 obtains data from the screen module 560 to monitor the user operation state of the electronic device, and specifically, to monitor whether the user operation state of the electronic device is a no operation state or a no operation state. The decision center 580 monitors the motion state of the electronic device, and no time sequence is set between the decision center 580 and the user operation state of the electronic device. Specifically, the decision center 580 monitors whether a touch screen event occurs on the screen of the electronic device through the screen module to monitor the user operation state of the electronic device. For example, decision center 580 listens for a touch screen event through a display screen in the screen module. If the touch screen event is monitored, determining that the user operation state of the electronic equipment is an operation state; and if the touch screen event is not monitored, determining that the user operation state of the electronic equipment is a non-operation state. Decision center 580 may also monitor whether a blanking event has occurred to monitor the user operational status of the electronic device. If the idle operation event is monitored, determining that the user operation state of the electronic equipment is an operation state; if the idle operation event is not monitored, determining that the user operation state of the electronic equipment is a non-operation state.
The decision center 580 also obtains image data from the camera module 520 to monitor whether the image does not include a target portion of the human body. And based on the data obtained from the gyro sensor 540, the screen module 560 and the camera module 520, comprehensively judging whether a power consumption reduction instruction needs to be sent to the electronic device, and adjusting the display parameters of the electronic device according to the power consumption adjustment instruction so as to control the electronic device to enter the second display state from the first display state.
In the embodiment of the present application, a power consumption reduction method is provided, firstly, the decision center 580 monitors the operation state of the electronic device and the user operation state of the electronic device. If the running state of the electronic equipment is a static state, determining that the electronic equipment is not externally controlled; and/or if the user operation state of the electronic equipment is the no-operation state, determining that the electronic equipment is not externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment.
The method comprises the following steps of determining that the electronic equipment is not externally controlled, wherein the method comprises three conditions: in the first case, if the running state of the electronic equipment is a static state, determining that the electronic equipment is not externally controlled; in the second case, if the user operation state of the electronic device is a no-operation state, determining that the electronic device is not externally controlled; and in the third case, if the running state of the electronic equipment is a static state and the user operation state of the electronic equipment is a no-operation state, determining that the electronic equipment is not externally controlled.
In the embodiment of the application, a decision center monitors the motion state of the electronic equipment and the user operation state of the electronic equipment, and if the operation state of the electronic equipment is a static state, the electronic equipment is determined not to be externally controlled; and/or if the user operation state of the electronic equipment is the no-operation state, determining that the electronic equipment is not externally controlled. Whether the electronic equipment is not externally controlled or not is determined in various modes, various situations can be covered, and different use requirements are met.
In one embodiment, detecting an external manipulation state in which an electronic device is currently located includes:
monitoring whether a screen touching event occurs on a screen of the electronic equipment through the screen module;
if the screen touching event occurs on the screen of the electronic equipment is monitored, determining that the user operation state of the electronic equipment is an operation state;
and if the screen touching event does not occur on the screen of the electronic equipment, determining that the user operation state of the electronic equipment is a no-operation state.
Specifically, the touch event may include a click event, a tap-type event, a wipe event, and the like. And monitoring whether a touch screen event occurs on a screen of the electronic equipment through the screen module, and if any one or more events of a click event, a tap event and a wipe event occur on the screen of the electronic equipment, determining that the user operation state of the electronic equipment is an operation state. If any one event of click event, tap event and wipe event does not occur on the screen of the electronic equipment is monitored, determining that the user operation state of the electronic equipment is a no-operation state.
In the embodiment of the application, whether the screen touching event occurs on the screen of the electronic equipment is monitored through the screen module to determine the current external control state of the electronic equipment. The implementation mode is simple and convenient, and the efficiency of the power consumption adjusting method is improved.
In one embodiment, the display parameters of the first display state and the second display state are different, the display parameters including at least one of a frame rate, a screen refresh rate, a screen brightness, a screen resolution; controlling the electronic device to enter a second display state from the first display state, comprising:
sending a power consumption adjusting instruction to the electronic equipment;
and adjusting the display parameters of the electronic equipment according to the power consumption adjusting instruction so as to control the electronic equipment to enter a second display state from the first display state.
Specifically, the first display state is relative to the second display state, and the power consumption of the second display state is lower than the power consumption of the first display state. That is, the first display state is understood to be a high power consumption display state, and the second display state is understood to be a low power consumption display state. Accordingly, the display parameters of the first display state and the second display state are different. Wherein the display parameters include at least one of frame rate, screen refresh rate, screen brightness, screen resolution. At least one of a frame rate, a screen refresh rate, a screen brightness, a screen resolution of the first display state and the second display state is different.
Therefore, when controlling the electronic device to enter the second display state from the first display state, first, a power consumption adjustment instruction is sent to the electronic device; then, adjusting display parameters of the electronic equipment according to the power consumption adjusting instruction; finally, the electronic equipment is controlled to enter a second display state from the first display state. Specifically, the display parameters of the electronic device are reduced according to the power consumption adjustment instruction, for example, at least one display parameter of the frame rate, the screen refresh rate, the screen brightness and the screen resolution of the electronic device is reduced. When the screen brightness is zero, the electronic equipment is directly controlled to enter the off-screen state, namely, the off-screen state is entered from the first display state. For example, the frame rate may be reduced (e.g., 60FPS- >30 FPS), the screen refresh rate may be reduced (e.g., 120Hz- >90 Hz), the screen brightness may be reduced (e.g., 200- > 100), and the screen resolution may be reduced (e.g., 1080P- > 480P).
In the embodiment of the application, if the external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment, and the shot image does not include a target part of a human body, and a power consumption adjusting instruction is sent to the electronic equipment. And adjusting the display parameters of the electronic equipment according to the power consumption adjusting instruction so as to control the electronic equipment to enter a second display state from the first display state. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
And adjust the display parameter of electronic equipment to control the electronic equipment to enter the second display state from the first display state, this kind of mode of adjusting the display parameter is accurate convenient, can realize accurately adjusting the power of electronic equipment.
In one embodiment, as shown in fig. 6, after the control electronics enter the second display state from the first display state, the method further comprises:
step 620, continuously detecting the current external control state of the electronic device, and continuously shooting images through a front camera of the electronic device;
in step 640, if the external operation state of the electronic device indicates that the electronic device is externally controlled and/or the image includes the target portion of the human body, the electronic device is controlled to restore the first display state from the second display state.
Specifically, after the control electronic device enters the second display state from the first display state, it is further required to continuously detect the external control state where the electronic device is currently located, and continuously shoot an image through a front camera of the electronic device. And if the external operation state of the electronic equipment indicates that the electronic equipment is externally controlled and/or the image comprises the target part of the human body, controlling the electronic equipment to recover the first display state from the second display state.
If the external operation state of the electronic device indicates that the electronic device is externally controlled and/or the image includes a target part of a human body, the electronic device is controlled to recover the first display state from the second display state, which includes four cases: in the first case, if the running state of the electronic equipment is a non-static state, determining that the electronic equipment is externally controlled, and controlling the electronic equipment to recover the first display state from the second display state; in the second case, if the user operation state of the electronic device is the operation state, determining that the electronic device is externally controlled, and controlling the electronic device to recover the first display state from the second display state; in the third case, if the running state of the electronic device is a non-stationary state and the user operation state of the electronic device is an operating state, determining that the electronic device is externally controlled, and controlling the electronic device to recover the first display state from the second display state; and in the fourth case, if the image shot by the camera includes the target part of the human body, controlling the electronic equipment to recover the first display state from the second display state.
After the electronic equipment is restored to the first display state, after a preset time (for example, 1 min) is set, continuing to execute detection of the external control state of the electronic equipment, and if the external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, shooting an image through a front camera of the electronic equipment; and if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state.
In the embodiment of the application, after the electronic equipment is controlled to enter the second display state from the first display state, the external control state of the electronic equipment is continuously detected, and the image is continuously shot through the front camera of the electronic equipment. And if the external operation state of the electronic equipment indicates that the electronic equipment is externally controlled and/or the image comprises the target part of the human body, controlling the electronic equipment to recover the first display state from the second display state. Therefore, the electronic equipment can recover the first display state from the second display state in time, and normal use of a user is met.
In one embodiment, the first display state comprises a bright screen display state when a game-like or video-like application is running on the electronic device.
In the embodiment of the application, the power consumption is higher when the game or video application program is run on the general electronic equipment, especially in the bright screen display state. Thus, the first display state comprises a bright screen display state when a game-like or video-like application is running on the electronic device. When meeting the conditions, the power consumption adjusting method can realize the conversion of the bright screen display state when running the game or video application program to the low power consumption display state, and reduce the power consumption of the electronic equipment.
In one embodiment, if the first display state comprises a bright screen display state when the game-like application is running on the electronic device, the second display state comprises a display state when the game-like application is in at least one of an update, death, on-hook scenario.
Specifically, for a game application running on an electronic device and in a bright screen display state, detecting an external control state of the electronic device, where the external control state is currently located, where the external control state is used for representing whether the electronic device is externally controlled. If the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally, an image is shot through a front camera of the electronic equipment. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state.
When the game application is in at least one of the update, death and on-hook scenes, the electronic equipment is not controlled externally, and the user possibly leaves the shooting range of the electronic equipment, so that the electronic equipment can be controlled to enter the second display state from the first display state when the game application is in at least one of the update, death and on-hook scenes.
According to the embodiment of the application, through the power consumption adjusting method, when the game application program is in at least one of updated, dead and on-hook scenes, the electronic equipment is controlled to enter the second display state from the first display state. Thus, the power consumption of the game application program in the update, death and on-hook scenes is reduced. And the problem that the camera is continuously called to cause great power consumption is also avoided, so that the power consumption of the electronic equipment is greatly reduced.
In a specific embodiment, taking a game scenario as an example, as shown in fig. 7, there is provided a power consumption adjustment method, including:
step 702, entering a game mode, and in a first display state; step 704 is entered;
step 704, judging whether the electronic equipment is in a static state or not through a gyroscope sensor; if yes, go to step 706; if not, go to step 702;
step 706, judging whether the electronic device is in a non-operation state or not through a screen module in the electronic device; if yes, go to step 708; if not, go to step 702;
step 708, shooting an image by a front camera of the electronic device, and judging whether the image does not comprise a target part of a human body; if yes, go to step 710; if not, go to step 702;
Step 710, entering a game idle mode; step 712 is entered;
step 712, sending a power consumption reduction instruction to the electronic device; step 714 is entered;
step 714, calling a system API (Application Programming Interface, application program interface), and adjusting display parameters of the electronic device according to the power consumption adjustment instruction to control the electronic device to enter a second display state from a first display state;
step 716, continuously judging whether the electronic equipment is in a static state through a gyroscope sensor, continuously judging whether the electronic equipment is in a non-operation state through a screen module in the electronic equipment, continuously shooting an image through a front camera of the electronic equipment, and judging whether the image does not comprise a target part of a human body; if not, go to step 718;
step 718, controlling the electronic device to enter the first display state from the second display state; step 702 is entered;
step 720, if a command for exiting the game is received, exiting the game mode;
in the embodiment of the application, because the external control state of the electronic equipment is detected in advance, if the electronic equipment is not controlled externally, the image is shot by the front camera of the electronic equipment, and whether the image comprises the target part of the human body is judged. And if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state. If the electronic equipment is detected to be controlled externally in advance, the camera is not required to be called to shoot images so as to carry out subsequent judgment. Obviously, the phenomenon that the camera is continuously called to cause great power consumption is avoided, so that the power consumption of the electronic equipment is greatly reduced.
In one embodiment, as shown in fig. 8, there is provided a power consumption adjustment apparatus 800 comprising:
the external manipulation state detection module 820 is configured to detect, when the electronic device is in the first display state, an external manipulation state in which the electronic device is currently located, where the external manipulation state is used to characterize whether the electronic device is externally manipulated;
the camera shooting module 840 is configured to shoot an image through a front camera of the electronic device if the external control state of the electronic device indicates that the electronic device is not controlled externally;
the display state transition module 860 is configured to control the electronic device to enter a second display state from the first display state if the image does not include the target portion of the human body, where the power consumption of the second display state is lower than the power consumption of the first display state.
In one embodiment, as shown in fig. 9, there is provided a power consumption adjustment apparatus 800, further comprising: the display state maintaining module 880 is configured to control the electronic device to maintain the first display state if the image includes the target portion of the human body.
In one embodiment, there is provided a power consumption adjusting apparatus 800, further comprising: the display state maintaining module 880 is configured to control the electronic device to maintain the first display state if the external manipulation state in which the electronic device is currently located indicates that the electronic device is externally manipulated.
In one embodiment, the external manipulation state comprises a motion state of the electronic device and/or a user operation state of the electronic device; the external control state detection module 820 is further configured to determine that the electronic device is not externally controlled if the running state of the electronic device is a stationary state; and/or if the user operation state of the electronic equipment is the no-operation state, determining that the electronic equipment is not externally controlled.
In one embodiment, the external manipulation state detection module 820 is further configured to monitor whether a touch screen event occurs on a screen of the electronic device through the screen module; if the screen touching event occurs on the screen of the electronic equipment is monitored, determining that the user operation state of the electronic equipment is an operation state; and if the screen touching event does not occur on the screen of the electronic equipment, determining that the user operation state of the electronic equipment is a no-operation state.
In one embodiment, the display parameters of the first display state and the second display state are different, the display parameters including at least one of a frame rate, a screen refresh rate, a screen brightness, a screen resolution; the display state transition module 860 is further configured to send a power consumption adjustment instruction to the electronic device; and adjusting the display parameters of the electronic equipment according to the power consumption adjusting instruction so as to control the electronic equipment to enter a second display state from the first display state.
In one embodiment, there is provided a power consumption adjusting apparatus 800, further comprising:
the continuous detection module is used for continuously detecting the current external control state of the electronic equipment and continuously shooting images through a front camera of the electronic equipment;
and the display state recovery module is used for controlling the electronic equipment to recover the first display state from the second display state if the external operation state of the electronic equipment indicates that the electronic equipment is controlled by the outside and/or the image comprises the target part of the human body.
In one embodiment, the first display state comprises a bright screen display state when a game-like or video-like application is running on the electronic device.
In one embodiment, if the first display state comprises a bright screen display state when the game-like application is running on the electronic device, the second display state comprises a display state when the game-like application is in at least one of an update, death, on-hook scenario.
It should be understood that, although the steps in the flowcharts in the above figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the figures described above may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
The above-mentioned division of each module in the power consumption adjusting device is only for illustration, and in other embodiments, the power consumption adjusting device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned power consumption adjusting device.
For specific limitations of the power consumption adjustment device, reference may be made to the above limitation of the power consumption adjustment method, and no further description is given here. The respective modules in the above-described power consumption adjustment apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, there is also provided an electronic device including a memory and a processor, where the memory stores a computer program, and the computer program when executed by the processor causes the processor to perform the steps of a power consumption adjustment method provided in the above embodiments.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected through a system bus. Wherein the processor is configured to provide computing and control capabilities to support operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a power consumption adjustment method provided by the above embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a car-mounted computer, and a wearable device.
The implementation of each module in the power consumption adjustment device provided in the embodiment of the application may be in the form of a computer program. The computer program may be run on the electronic device or on an electronic device. Program modules of the computer program may be stored on the electronic device or on a memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a power consumption adjustment method.
A computer program product containing instructions that, when run on a computer, cause the computer to perform a power consumption adjustment method.
Any reference to memory, storage, database, or other medium used by embodiments of the application may include non-volatile and/or volatile memory. Suitable nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above power consumption adjustment examples only represent a few embodiments of the present application, which are described in more detail and detail, but are not to be construed as limiting the scope of the present application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (11)

1. A method of power consumption regulation, the method comprising:
when the electronic equipment is in a first display state, detecting an external control state of the electronic equipment at present, wherein the external control state is used for representing whether the electronic equipment is externally controlled; the external manipulation state is determined based on a motion state of the electronic device and/or a user operation state of the electronic device; the detecting the external control state of the electronic device at present includes: monitoring the motion state of the electronic equipment and/or monitoring the user operation state of the electronic equipment through a decision center in the electronic equipment, and if the operation state of the electronic equipment is a static state, determining that the electronic equipment is not externally controlled; and/or if the user operation state of the electronic equipment is a non-operation state, determining that the electronic equipment is not externally controlled;
If the external control state of the electronic equipment currently indicates that the electronic equipment is not controlled externally, shooting an image through a front camera of the electronic equipment;
if the image does not comprise the target part of the human body, controlling the electronic equipment to enter a second display state from the first display state, wherein the power consumption of the second display state is lower than that of the first display state; the first display state and the second display state differ in display parameters including at least one of a frame rate, a screen refresh rate, a screen brightness, a screen resolution.
2. The method according to claim 1, wherein the method further comprises:
and if the image comprises the target part of the human body, controlling the electronic equipment to keep the first display state.
3. The method according to claim 1, wherein the method further comprises:
and if the external control state of the electronic equipment currently indicates that the electronic equipment is controlled by the outside, controlling the electronic equipment to keep the first display state.
4. The method of claim 3, wherein the detecting the external manipulation state in which the electronic device is currently located comprises:
Monitoring whether a touch screen event occurs on a screen of the electronic equipment through a screen module;
if the screen touching event occurs on the screen of the electronic equipment is monitored, determining that the user operation state of the electronic equipment is an operation state;
and if the screen touching event does not occur on the screen of the electronic equipment, determining that the user operation state of the electronic equipment is a non-operation state.
5. The method of claim 1, wherein the controlling the electronic device to enter a second display state from the first display state comprises:
sending a power consumption adjusting instruction to the electronic equipment;
and adjusting the display parameters of the electronic equipment according to the power consumption adjusting instruction so as to control the electronic equipment to enter a second display state from the first display state.
6. The method of claim 1, wherein after the control electronics enter a second display state from the first display state, the method further comprises:
continuously detecting the current external control state of the electronic equipment, and continuously shooting images through a front-facing camera of the electronic equipment;
and if the external operation state of the electronic equipment indicates that the electronic equipment is controlled by the outside and/or the image comprises the target part of the human body, controlling the electronic equipment to recover the first display state from the second display state.
7. The method of claim 1, wherein the first display state comprises a bright screen display state when a game-like or video-like application is running on the electronic device.
8. The method of claim 7, wherein if the first display state comprises a bright screen display state when a game-like application is running on the electronic device, the second display state comprises a display state when the game-like application is in at least one of an update, a death, an on-hook scenario.
9. A power consumption regulating apparatus, the apparatus comprising:
the electronic equipment comprises an external control state detection module, a display module and a display module, wherein the external control state detection module is used for detecting the current external control state of the electronic equipment when the electronic equipment is in a first display state, and the external control state is used for representing whether the electronic equipment is externally controlled; the external manipulation state is determined based on a motion state of the electronic device and/or a user operation state of the electronic device; the detecting the external control state of the electronic device at present includes: monitoring the motion state of the electronic equipment and/or monitoring the user operation state of the electronic equipment through a decision center in the electronic equipment, and if the operation state of the electronic equipment is a static state, determining that the electronic equipment is not externally controlled; and/or if the user operation state of the electronic equipment is a non-operation state, determining that the electronic equipment is not externally controlled;
The camera shooting module is used for shooting an image through a front camera of the electronic equipment if the current external control state of the electronic equipment indicates that the electronic equipment is not controlled externally;
a display state transition module, configured to control the electronic device to enter a second display state from the first display state if the image does not include a target part of a human body, where power consumption of the second display state is lower than that of the first display state; the first display state and the second display state differ in display parameters including at least one of a frame rate, a screen refresh rate, a screen brightness, a screen resolution.
10. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the power consumption adjustment method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the power consumption adjustment method according to any one of claims 1 to 8.
CN202011355733.9A 2020-11-27 2020-11-27 Power consumption adjustment method and device, electronic equipment and readable storage medium Active CN112363611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011355733.9A CN112363611B (en) 2020-11-27 2020-11-27 Power consumption adjustment method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011355733.9A CN112363611B (en) 2020-11-27 2020-11-27 Power consumption adjustment method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112363611A CN112363611A (en) 2021-02-12
CN112363611B true CN112363611B (en) 2023-11-10

Family

ID=74536103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011355733.9A Active CN112363611B (en) 2020-11-27 2020-11-27 Power consumption adjustment method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112363611B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073876A (en) * 2010-09-29 2012-04-12 Fujitsu Ltd Electronic device, state control program and state control method
CN103795871A (en) * 2014-01-22 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Standby method and system
CN105808997A (en) * 2014-12-31 2016-07-27 联想(北京)有限公司 Control method and electronic equipment
CN108090466A (en) * 2017-12-29 2018-05-29 珠海市魅族科技有限公司 A kind of face identification method and device
CN108491151A (en) * 2018-03-22 2018-09-04 维沃移动通信有限公司 A kind of reminding method and mobile terminal of mobile terminal
CN108536381A (en) * 2018-03-26 2018-09-14 珠海格力电器股份有限公司 A kind of method and device of screen locking in short-term
CN108764056A (en) * 2018-05-03 2018-11-06 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN109167877A (en) * 2018-08-01 2019-01-08 Oppo(重庆)智能科技有限公司 Terminal screen control method, device, terminal device and storage medium
CN109947227A (en) * 2019-03-28 2019-06-28 努比亚技术有限公司 Screen lighting method, wearable device and computer readable storage medium
CN110290352A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Monitoring method and device, electronic equipment and storage medium
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073876A (en) * 2010-09-29 2012-04-12 Fujitsu Ltd Electronic device, state control program and state control method
CN103795871A (en) * 2014-01-22 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Standby method and system
CN105808997A (en) * 2014-12-31 2016-07-27 联想(北京)有限公司 Control method and electronic equipment
CN108090466A (en) * 2017-12-29 2018-05-29 珠海市魅族科技有限公司 A kind of face identification method and device
CN108491151A (en) * 2018-03-22 2018-09-04 维沃移动通信有限公司 A kind of reminding method and mobile terminal of mobile terminal
CN108536381A (en) * 2018-03-26 2018-09-14 珠海格力电器股份有限公司 A kind of method and device of screen locking in short-term
CN108764056A (en) * 2018-05-03 2018-11-06 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN109167877A (en) * 2018-08-01 2019-01-08 Oppo(重庆)智能科技有限公司 Terminal screen control method, device, terminal device and storage medium
CN109947227A (en) * 2019-03-28 2019-06-28 努比亚技术有限公司 Screen lighting method, wearable device and computer readable storage medium
CN110290352A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Monitoring method and device, electronic equipment and storage medium
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device

Also Published As

Publication number Publication date
CN112363611A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
KR102199436B1 (en) Terminal control method and terminal
CN106710539B (en) Liquid crystal display method and device
CN106710540B (en) Liquid crystal display method and device
KR20140128885A (en) Power efficient image sensing apparatus, method of operating the same and eye/gaze tracking system
CN111432143A (en) Control method, system, medium and electronic device for switching camera modules
US20230247287A1 (en) Shooting Method and Apparatus, and Electronic Device
CN115552916B (en) Refresh rate adjusting method and electronic equipment
CN113766324B (en) Video playing control method and device, computer equipment and storage medium
US20220392253A1 (en) Method for processing images, electronic device, and storage medium
CN111432261A (en) Video window picture display method and device
US9898982B2 (en) Display method, device and computer-readable medium
CN112130940A (en) Terminal control method and device, storage medium and electronic equipment
US11563243B2 (en) Charging control method, device and storage medium
CN112363611B (en) Power consumption adjustment method and device, electronic equipment and readable storage medium
CN112416231B (en) Scroll bar display method and device, electronic equipment and readable storage medium
EP3425533A1 (en) Displaying page
CN112367486A (en) Video processing method and device
US9947278B2 (en) Display method and device and computer-readable medium
CN114155151A (en) Image drawing method, device, equipment and storage medium
CN111711748B (en) Control method and device for screen refresh rate, electronic equipment and readable storage medium
US20180286006A1 (en) Tile reuse in imaging
CN112367470B (en) Image processing method and device and electronic equipment
CN113885735B (en) Touch display device, control method thereof and electronic device
CN117389402A (en) Image processing method and device and electronic equipment
CN116419044A (en) Media data processing unit, method and electronic equipment

Legal Events

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