CN116366967A - Power consumption processing method, device, terminal and storage medium - Google Patents

Power consumption processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN116366967A
CN116366967A CN202111579726.1A CN202111579726A CN116366967A CN 116366967 A CN116366967 A CN 116366967A CN 202111579726 A CN202111579726 A CN 202111579726A CN 116366967 A CN116366967 A CN 116366967A
Authority
CN
China
Prior art keywords
power consumption
brightness
frame rate
determining
output frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111579726.1A
Other languages
Chinese (zh)
Inventor
廖宽龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111579726.1A priority Critical patent/CN116366967A/en
Publication of CN116366967A publication Critical patent/CN116366967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Transforming Electric Information Into Light Information (AREA)

Abstract

The disclosure provides a power consumption processing method, a device, a terminal and a storage medium, wherein the method comprises the following steps: when a terminal starts an image acquisition module, acquiring the power consumption of the terminal; determining a brightness value corresponding to an operation scene of the image acquisition module; and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, reducing the output frame rate of the image acquisition module to be the target frame rate so as to reduce the power consumption. The technical scheme of the embodiment of the disclosure can improve the efficiency of reducing the load of the image acquisition module.

Description

Power consumption processing method, device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a power consumption processing method, a device, a terminal and a storage medium.
Background
With the continuous development of image technology, shooting functions are becoming rich, and terminals with good shooting functions are becoming popular. Therefore, more and more algorithms are loaded on the image acquisition module, the functions of the image acquisition module are enriched due to the increase of the algorithms, but the power consumption problem becomes more and more prominent due to the increased algorithms, and the power consumption problem is transferred from the background to the line of sight of the public, so that the image acquisition module is more and more concerned.
Disclosure of Invention
The disclosure provides a power consumption processing method, a device, a terminal and a storage medium.
According to an embodiment of the first aspect of the present disclosure, there is provided a power consumption processing method, including:
when a terminal starts an image acquisition module, acquiring the power consumption of the terminal;
determining a brightness value corresponding to an operation scene of the image acquisition module;
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, reducing the output frame rate of the image acquisition module to be the target frame rate so as to reduce the power consumption.
In some embodiments, the reducing the output frame rate to the target frame rate if the power consumption satisfies the power consumption adjustment condition and the brightness value satisfies the brightness condition includes:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
In some embodiments, the method comprises:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value.
In some embodiments, said determining an amplitude to reduce said output frame rate based on said power consumption and said luminance value comprises:
if the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
if the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
In some embodiments, said determining an amplitude to reduce said output frame rate based on said power consumption and said luminance value comprises:
if the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
And if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
In some embodiments, the method comprises:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the type of the operation scene.
In some embodiments, the determining the magnitude of reducing the output frame rate according to the type of the operation scene includes:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
In some embodiments, the determining the brightness value corresponding to the operation scene of the image acquisition module includes:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
And determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
In some embodiments, determining a brightness value corresponding to an operation scene of the image acquisition module includes:
and if the power consumption is greater than or equal to a third power consumption threshold, determining a brightness value corresponding to the operation scene of the image acquisition module.
According to an embodiment of a second aspect of the present disclosure, there is provided a power consumption processing apparatus including:
the acquisition module is used for acquiring the power consumption of the terminal when the terminal starts the image acquisition module;
the determining module is used for determining a brightness value corresponding to the operation scene of the image acquisition module;
and the processing module is used for reducing the output frame rate of the image acquisition module to be the target frame rate when the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition so as to reduce the power consumption.
In some embodiments, the processing module is configured to:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
In some embodiments, the apparatus comprises:
and the first adjusting module is used for determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
In some embodiments, the first adjustment module is configured to:
if the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
if the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
In some embodiments, the first adjustment module is configured to:
if the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
And if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
In some embodiments, the apparatus comprises:
and the second adjusting module is used for determining the amplitude for reducing the output frame rate according to the type of the running scene when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
In some embodiments, the second adjustment module is configured to:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
In some embodiments, the determining module is configured to:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
and determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
According to an embodiment of a third aspect of the present disclosure, there is provided a terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method steps according to the embodiments of the first aspect are performed.
According to a fourth aspect embodiment of the present disclosure, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor of an electronic device, enables the electronic device to perform the method steps of the first aspect embodiment.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
as can be seen from the foregoing embodiments, in the embodiments of the present disclosure, power consumption is reduced by reducing the output frame rate of the image acquisition module, without adjusting the overall terminal resource, so that the load efficiency of the image acquisition module is improved, and in addition, the effect on the performance of other devices in the terminal except the image acquisition module is reduced by reducing the output frame rate of the image acquisition module. Moreover, in the embodiment of the disclosure, when the power consumption of the terminal when the image acquisition module is started meets the adjustment condition, and the brightness value corresponding to the operation scene of the image acquisition module meets the brightness condition, the output frame rate is reduced, so that the frame rate required by the operation scene can be considered on the basis of reducing the power consumption, and the quality of the output image is effectively ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a power consumption processing method according to an exemplary embodiment;
FIG. 2 is one of the schematic structural diagrams of a power consumption processing apparatus shown according to an exemplary embodiment;
FIG. 3 is a second schematic diagram of a power consumption processing apparatus according to an exemplary embodiment;
FIG. 4 is a schematic diagram of the configuration of the determination module of FIG. 3;
fig. 5 is a block diagram showing a composition structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus consistent with some aspects of the disclosure as detailed in the accompanying claims.
Fig. 1 exemplarily shows a flow chart of a power consumption processing method of an embodiment of the present disclosure. As shown in fig. 1, a power consumption processing method provided by an embodiment of a first aspect of the present disclosure includes:
step S110, when a terminal starts an image acquisition module, acquiring the power consumption of the terminal;
step S120, determining a brightness value corresponding to an operation scene of the image acquisition module;
and step 130, if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, reducing the output frame rate of the image acquisition module to be the target frame rate so as to reduce the power consumption.
In the embodiment of the disclosure, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a television, a camera device, a wearable device, and the like.
The image acquisition module includes, but is not limited to, a camera.
In step S110, without limitation, when the terminal starts the image acquisition module, the power consumption of the terminal may be obtained by acquiring the node data of the battery of the terminal.
Without limitation, the power consumption of the terminal may be obtained in a preset period in the on state of the image acquisition module. The preset period may be 1s, 2s or 3s time every interval, and power consumption of the terminal is obtained. In practical application, the power consumption of the terminal can be continuously and uninterruptedly acquired under the state that the image acquisition module is opened, so that the timeliness of power consumption processing is improved.
In step S120, the adjustment manners of the image processor (ISP) on the ambient light brightness are different under different operation scenes, so that the obtained brightness values are different.
Typically, the luminance value is related to the output frame rate. For example, the higher the output frame rate, the darker the brightness of the image output by the image acquisition module, and the higher the output frame rate, the higher the power consumption. Therefore, adjusting the output frame rate affects not only the quality of the output image but also the power consumption. And the brightness value corresponding to the running scene is determined, so that the image quality is considered when the frame rate is adjusted, and the use experience is effectively ensured.
In step S130, if the power consumption does not meet the power consumption adjustment condition or the luminance value does not meet the luminance condition, an image is output at the output frame rate. I.e. without changing the output frame rate and without performing the power consumption reduction process.
Because the root cause of abnormal power consumption caused by the starting of the image acquisition module is that the load of the image acquisition module is too heavy, the power consumption is reduced in the mode of reducing the output frame rate of the image acquisition module, the load of the image acquisition module is reduced from the source, and the efficiency of reducing the power consumption is improved.
Compared with the mode of adjusting system resources such as memory resources, central processing unit resources and display resources of the terminal to reduce power consumption according to the power consumption level corresponding to the operation scene, the embodiment of the disclosure reduces power consumption by reducing the output frame rate of the image acquisition module without adjusting the whole terminal resources, so that the efficiency of reducing the load of the image acquisition module is improved, and the mode of reducing the output frame rate of the image acquisition module also reduces the influence on the performance of other devices except the image acquisition module in the terminal.
Moreover, in the embodiment of the disclosure, when the power consumption of the terminal when the image acquisition module is started meets the adjustment condition, and the brightness value corresponding to the operation scene of the image acquisition module meets the brightness condition, the output frame rate is reduced, so that the frame rate required by the operation scene can be considered on the basis of reducing the power consumption, and the quality of the output image is effectively ensured.
According to some other optional embodiments of the disclosure, if the power consumption satisfies a power consumption adjustment condition and a brightness value satisfies a brightness condition, reducing the output frame rate to a target frame rate includes:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
In practical applications, if the power consumption is smaller than the first power consumption threshold, or the luminance value is larger than the first luminance threshold, the image is output at the output frame rate, i.e. the power consumption is not optimized (i.e. the power consumption is reduced).
If the power consumption is smaller than the first power consumption threshold, the current power consumption is smaller, and power consumption optimization is not needed.
Generally, if the brightness value is greater than or equal to the first brightness threshold, a brighter or overexposed photo is obtained, which indicates that the actual output frame rate of the image acquisition module is lower, the power consumption is lower, and the power consumption is not required to be optimized.
According to some other alternative embodiments of the present disclosure, the method includes:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value.
In contrast, if the brightness value corresponding to a certain operation scene is A, the larger the power consumption is, the larger the amplitude of the output frame rate which can be reduced is; the smaller the power consumption, the smaller the amplitude by which the output frame rate can be reduced.
Similarly, if the power consumption is B, the smaller the brightness value corresponding to a certain operation scene is, the higher the actual output frame rate is, and the larger the amplitude of the output frame rate which can be reduced is; the larger the brightness value corresponding to a certain operation scene is, the smaller the actual output frame rate is, and the smaller the amplitude of the output frame rate which can be reduced is.
According to some other optional embodiments of the disclosure, the determining the magnitude of reducing the output frame rate according to the power consumption and the luminance value includes:
if the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
If the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
Compared with the first brightness range, when the brightness value is in the second brightness range, the image output by the image acquisition module is darker, so that the output frame rate corresponding to the second brightness range is faster, the output frame rate can be reduced by a larger amplitude, and the power consumption can be reduced to a larger extent.
If the brightness value is greater than or equal to the first brightness threshold value, the first brightness range corresponds to the normal condition, namely the image brightness is moderate; the second luminance range corresponds to the darker case, i.e. the image luminance is darker.
According to some other optional embodiments of the disclosure, the determining the magnitude of reducing the output frame rate according to the power consumption and the luminance value includes:
if the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
And if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
When the power consumption is in the second power consumption range, the power consumption is larger, and the output frame rate can be reduced by a larger extent.
Without limitation, the first preset amplitude may be 1 frame decrease per second and the second preset amplitude may be 2 frames decrease per second; alternatively, the first preset amplitude is 3 frames per second decrease and the second preset amplitude is 9 frames per second decrease.
In some embodiments, the first preset amplitude corresponding to the different operation scenes is different, and/or the second preset amplitude corresponding to the different operation scenes is different.
In some embodiments, the method comprises:
and determining the reduction amplitude of the output frame rate according to the quality parameters of the image corresponding to the operation scene. Wherein the quality parameter includes resolution and/or signal to noise ratio, but is not limited thereto.
In practical application, different first preset amplitudes and/or second preset amplitudes can be configured for different operation scenes according to quality parameters of images corresponding to the operation scenes.
Without limitation, the image quality indicated by the quality parameter is directly proportional to the magnitude of the decrease in the output frame rate. That is, the higher the image quality, the larger the amplitude by which the output frame rate can be reduced.
For example: compared with the normal preview operation scene, the operation scene has the advantages that the first preset amplitude can be larger when the operation scene is photographed in a high-definition mode, and the second preset amplitude can be larger.
For example: when the operation scene is a common preview, the first preset amplitude can be 1 frame reduced per second; when the operation scene is high definition photographing, the first preset amplitude can be reduced by 2 frames per second.
According to some other alternative embodiments of the present disclosure, the method includes:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the type of the operation scene.
In practical application, according to the type of the operation scene, the amplitude of reducing the output frame rate is determined, so that the image quality is further ensured, and the use experience is improved.
The types of the operation scene include a scene type of outputting an image using a dynamic output frame rate, and a scene type of outputting an image using a static output frame rate. The output frame rate of the image acquisition module is not fixed in the scene type of outputting the image by adopting the dynamic output frame rate, and is fixed in the scene type of outputting the image by adopting the static output frame rate. If the same amplitude is adopted for different scene types to reduce the output frame rate, the output image is likely to be excessively dark, and the shooting experience is likely to be affected.
According to some other optional embodiments of the disclosure, the determining, according to the type of the operation scene, an amplitude of reducing the output frame rate includes:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
Compared with the scene type of the output image adopting the static output frame rate, when the type of the running scene is the scene type of the output image adopting the dynamic output frame rate, the output frame rate is reduced by a lower amplitude, and the optimization of the image quality and the power consumption is facilitated.
For example: in a night scene mode (namely a night scene operation scene), an image is output in a dynamic frame rate mode. If the current output frame rate has reached a certain level in the frame rate evaluation, for example, in this case, if the luminance value is in the second luminance range, the decreasing amplitude is not recommended to be greater than the second preset amplitude even if the power consumption is in the second power consumption range, and the decreasing amplitude may be equal to or smaller than the second preset amplitude. The reason is that: the brightness value may be affected by the gain or exposure time in addition to the frame rate, but the actual output frame rate may be already low although the brightness value is low, if the output frame rate is greatly reduced, the image quality may be seriously affected, and the user experience may be reduced.
According to other optional embodiments of the present disclosure, the determining a brightness value corresponding to an operation scene of the image acquisition module includes:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
and determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
In different operation scenes, the debugging parameters of the image processor are different, wherein the debugging parameters comprise brightness adjustment parameters.
The mapping information is a mapping relation between a preconfigured operation scene and debugging parameters when an application program of the image acquisition module is designed. For example: the mark 1 represents some debugging parameters, the mark 2 represents other debugging parameters, and in the mapping information, the mark 1 maps the common preview to represent 2 maps the high-definition shooting; by analogy, an HDR (high dynamic range image, high Dynamic Range) photograph can be mapped with a logo 3, a video mode with a logo 4, and a night scene mode with a logo 5.
If the operation scene is in a video mode, according to the mapping information, the brightness adjustment parameter in the debug parameters represented by the mark 4 can be determined.
According to other optional embodiments of the present disclosure, determining a brightness value corresponding to an operation scene of the image acquisition module includes:
and if the power consumption is greater than or equal to a third power consumption threshold, determining a brightness value corresponding to the operation scene of the image acquisition module.
Without limitation, the third power consumption threshold is less than or equal to the first power consumption threshold.
If the power consumption is smaller than the third power consumption threshold, the power consumption is smaller, the brightness value does not need to be determined, and power consumption optimization is not needed.
Setting the third power consumption threshold can improve the condition for triggering the acquisition of the brightness value, and reduce the power consumption waste caused by monitoring the brightness value at any time.
The terminal takes a mobile phone as an example, the image acquisition module is a camera, and the condition of not carrying out power consumption optimization comprises the following steps:
if the camera is started, the monitored power consumption is lower than a third power consumption threshold value, and power consumption optimization is not performed. And if the power consumption is larger than or equal to the third power consumption threshold value, acquiring an operation scene.
After the current operation scene is obtained, the brightness adjustment parameters are determined according to the operation scene and the mapping information of the image processor adjustment parameters in the camera, and then the brightness value is determined according to the adjustment parameters and the ambient light brightness. If the brightness value is greater than the first brightness threshold (indicating brighter or overexposed), the desired image is not so bright or dark, and a higher output frame rate is needed to achieve the effect, but the output frame rate of the actual camera chip is lower, so that power consumption optimization is not needed; if the brightness value is in the first brightness range or the second brightness range (indicating that brightness is normal or dark), and the power consumption is smaller than the first power consumption threshold, indicating that the actual output frame rate is lower, and not performing power consumption optimization.
In a specific example, the terminal uses a mobile phone as an example, the image acquisition module is a camera, and the power consumption processing method includes: and under the condition that the camera is in an enabling state, acquiring the power consumption of the mobile phone, and if the power consumption is in a second power consumption range, determining an operation scene. If the running scene is in a video mode of 4k@60fps (60 frames per second under 4K pixels), acquiring the brightness adjustment parameter of the ISP of the running scene, and determining a brightness value according to the brightness adjustment parameter and the ambient light brightness. If the brightness value is in the second brightness range (indicating that the brightness is dark), the actual output frame rate is larger due to larger power consumption, and the reduced output frame rate larger than the second preset amplitude is taken as the target frame rate. For example: if the second preset amplitude is 3 frames per second, the fast 9 frames per second can be reduced, i.e. 9 frames per second can be reduced on the basis of the output frame rate of 60 frames per second, and the target frame rate is 51 frames per second.
The second aspect of the present disclosure provides a power consumption processing apparatus, as shown in fig. 2, a power consumption processing apparatus 200 including:
an obtaining module 210, configured to obtain power consumption of a terminal when the terminal enables an image acquisition module;
a determining module 220, configured to determine a brightness value corresponding to an operation scene of the image acquisition module;
And the processing module 230 is configured to reduce the output frame rate of the image acquisition module to a target frame rate when the power consumption satisfies a power consumption adjustment condition and the brightness value satisfies a brightness condition, so as to reduce the power consumption.
Without limitation, when the terminal starts the image acquisition module, the power consumption of the terminal can be obtained by acquiring the node data of the battery of the terminal. In practical applications, the node data of the battery can be obtained through the following addresses: sys/class/power supply/battery/current_now
In some embodiments, as shown in fig. 3, the power consumption processing apparatus 200 includes:
the preset dividing module 211 is configured to determine a power consumption threshold (e.g., a first power consumption threshold, a second power consumption threshold, and a third power consumption threshold), determine a brightness threshold (e.g., a first brightness threshold and a second brightness threshold), and map information of the operation scene and the adjustment parameters of the image processor; the power threshold is used for dividing the acquired power consumption and determining the range of the power consumption; the brightness threshold value is used for dividing brightness values subsequently and determining the range to which the brightness values belong; the mapping information is used to determine the luminance value.
Without limitation, the operating scenario includes: ordinary preview, high definition photographing, HDR photographing, video recording and night scenes.
In some embodiments, as shown in fig. 4, the determining module 220 includes, in order, a power consumption estimating module 221, an acquisition operation scene module 222, an acquisition image processor debugging parameter module 223, a brightness estimating module 224, and a frame rate estimating module 225.
The power consumption evaluation module is used for determining the range of the power consumption according to the power consumption threshold value. In practical applications, the power consumption can be evaluated in three levels of low, medium and high. For example: if the third power consumption threshold is smaller than the first power consumption threshold, the power consumption obtained in the obtaining module is evaluated as low when the power consumption is larger than the third power consumption threshold and smaller than the first power consumption threshold; when the power consumption is greater than or equal to the first power consumption threshold and less than the second power consumption threshold, the power consumption is evaluated as medium; when the power consumption is greater than or equal to the second power consumption threshold, the power consumption is evaluated as high.
The brightness evaluation module is used for determining a brightness value according to the operation scene, the mapping information and the environment brightness, and performing brightness evaluation according to the brightness value and the brightness threshold value. For example: if the brightness value is greater than or equal to the first brightness threshold value, evaluating to be brighter or overexposed; if the brightness value is smaller than the first brightness threshold value and larger than or equal to the second brightness threshold value, evaluating the brightness value as normal; and if the brightness value is smaller than the second brightness threshold value, evaluating darkness.
The frame rate evaluation module is used for evaluating the output frame rate according to the power consumption evaluation result. In general, power consumption is low, and output frame rate is estimated to be slow; the power consumption is middle, and the output frame rate evaluation is also middle; the power consumption is high and the output frame rate evaluation is also high (fast).
The processing module is used for determining an adjustment strategy of the output power according to at least one of an operation scene, brightness evaluation (used for determining whether a brightness value meets brightness adjustment) and power consumption evaluation (used for determining whether power consumption meets power consumption adjustment conditions); the adjustment strategy includes whether to reduce the output frame rate and reduce the amplitude.
According to some alternative embodiments, the processing module is configured to:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
According to some alternative embodiments, the apparatus comprises:
and the first adjusting module is used for determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
According to some optional embodiments, the first adjusting module is configured to:
If the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
if the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
According to some optional embodiments, the first adjusting module is configured to:
if the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
And if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
According to some alternative embodiments, the apparatus comprises:
and the second adjusting module is used for determining the amplitude for reducing the output frame rate according to the type of the operation scene when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
According to some optional embodiments, the second adjusting module is configured to:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
According to some optional embodiments, the determining module is configured to:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
and determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
An embodiment of a third aspect of the present disclosure provides a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method steps according to the embodiments of the first aspect are performed.
A fourth aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform the method steps described in the first embodiment.
In an exemplary embodiment, a plurality of modules, etc. in the printing apparatus may be implemented by one or more central processing units (CPU, central Processing Unit), graphic processors (GPU, graphics Processing Unit), baseband processors (BP, baseband processor), application specific integrated circuits (ASIC, application Specific Integrated Circuit), DSPs, programmable logic devices (PLD, programmable Logic Device), complex programmable logic devices (CPLD, complex Programmable Logic Device), field programmable gate arrays (FPGA, field-Programmable Gate Array), general purpose processors, controllers, microcontrollers (MCU, micro Controller Unit), microprocessors (Microprocessor), or other electronic components for performing the aforementioned methods.
Fig. 5 is a block diagram of an electronic device 800, according to an example embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, image acquisition module operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or sliding action, but also measure the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may measure the on/off state of the device 800, the relative positioning of the components, such as the display and keypad of the device 800, the sensor assembly 814 may also measure the change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and the change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to measure the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The methods disclosed in the several method embodiments provided in the present disclosure may be arbitrarily combined without collision to obtain a new method embodiment.
The features disclosed in the several device embodiments provided in the present disclosure may be combined arbitrarily without conflict to obtain new product embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present disclosure may be combined arbitrarily without any conflict to obtain new method embodiments or product embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (19)

1. A power consumption processing method, the method comprising:
when a terminal starts an image acquisition module, acquiring the power consumption of the terminal;
determining a brightness value corresponding to an operation scene of the image acquisition module;
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, reducing the output frame rate of the image acquisition module to be the target frame rate so as to reduce the power consumption.
2. The method of claim 1, wherein reducing the output frame rate to a target frame rate if the power consumption satisfies a power consumption adjustment condition and a brightness value satisfies a brightness condition, comprises:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
3. The method according to claim 1, characterized in that the method comprises:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value.
4. A method according to claim 3, wherein said determining the magnitude of the reduction of the output frame rate based on the power consumption and the luminance value comprises:
If the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
if the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
5. The method of claim 4, wherein said determining an amplitude to reduce said output frame rate based on said power consumption and said brightness value comprises:
if the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
And if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
6. The method according to claim 1, characterized in that the method comprises:
and if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, determining the amplitude for reducing the output frame rate according to the type of the operation scene.
7. The method of claim 6, wherein determining the magnitude to reduce the output frame rate based on the type of the operational scenario comprises:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
8. The method according to claim 1, wherein determining the brightness value corresponding to the operation scene of the image acquisition module comprises:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
And determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
9. The method of claim 1, wherein determining a brightness value corresponding to an operating scene of the image acquisition module comprises:
and if the power consumption is greater than or equal to a third power consumption threshold, determining a brightness value corresponding to the operation scene of the image acquisition module.
10. A power consumption processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring the power consumption of the terminal when the terminal starts the image acquisition module;
the determining module is used for determining a brightness value corresponding to the operation scene of the image acquisition module;
and the processing module is used for reducing the output frame rate of the image acquisition module to be the target frame rate when the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition so as to reduce the power consumption.
11. The apparatus of claim 10, wherein the processing module is configured to:
and if the power consumption is greater than or equal to a first power consumption threshold and the brightness value is less than or equal to a first brightness threshold, reducing the output frame rate to a target frame rate.
12. The apparatus of claim 10, wherein the apparatus comprises:
And the first adjusting module is used for determining the amplitude for reducing the output frame rate according to the power consumption and the brightness value when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
13. The apparatus of claim 12, wherein the first adjustment module is configured to:
if the power consumption is in the first power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a first preset amplitude; the lower limit value of the first power consumption range is larger than or equal to a first power consumption threshold, the upper limit value of the first power consumption range is smaller than a second power consumption threshold, the lower limit value of the first brightness range is larger than a second brightness threshold, and the upper limit value of the first brightness range is smaller than or equal to the first brightness threshold;
if the power consumption is in the first power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the first preset amplitude; wherein an upper limit value of the second luminance range is less than or equal to the second luminance threshold.
14. The apparatus of claim 13, wherein the first adjustment module is configured to:
If the power consumption is in a second power consumption range and the brightness value is in the first brightness range, determining that the reduction amplitude of the output frame rate is a second preset amplitude; wherein the lower limit value of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset amplitude is greater than the first preset amplitude;
and if the power consumption is in the second power consumption range and the brightness value is in the second brightness range, determining that the reduction amplitude of the output frame rate is larger than the second preset amplitude.
15. The apparatus of claim 10, wherein the apparatus comprises:
and the second adjusting module is used for determining the amplitude for reducing the output frame rate according to the type of the running scene when the power consumption meets the power consumption adjusting condition and the brightness value meets the brightness condition.
16. The apparatus of claim 15, wherein the second adjustment module is configured to:
if the type of the operation scene is the scene type of the output image adopting the dynamic output frame rate, determining the reduction amplitude of the output frame rate as a third preset amplitude;
and if the type of the operation scene is the scene type of the output image adopting the static output frame rate, determining that the reduction amplitude of the output frame rate is larger than the third preset amplitude.
17. The apparatus of claim 10, wherein the determining module is configured to:
determining brightness adjustment parameters according to the operation scene, the operation scene and the mapping information of the image processor adjustment parameters in the image acquisition module;
and determining the brightness value according to the brightness adjustment parameter and the ambient light brightness.
18. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method steps of any one of claims 1 to 9.
19. A computer readable storage medium having stored thereon a computer program, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method steps of any one of claims 1 to 9.
CN202111579726.1A 2021-12-22 2021-12-22 Power consumption processing method, device, terminal and storage medium Pending CN116366967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111579726.1A CN116366967A (en) 2021-12-22 2021-12-22 Power consumption processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111579726.1A CN116366967A (en) 2021-12-22 2021-12-22 Power consumption processing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116366967A true CN116366967A (en) 2023-06-30

Family

ID=86924734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111579726.1A Pending CN116366967A (en) 2021-12-22 2021-12-22 Power consumption processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116366967A (en)

Similar Documents

Publication Publication Date Title
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
EP3890306A1 (en) Photographing method and device, mobile terminal and storage medium
CN106710540B (en) Liquid crystal display method and device
CN113963659B (en) Display device and adjustment method thereof
CN108986053B (en) Screen display method and device
CN108200279B (en) Backlight adjusting method, device and equipment
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN111223432A (en) Method and device for controlling screen display
CN110876014B (en) Image processing method and device, electronic device and storage medium
US11062640B2 (en) Screen display method and screen display device
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN116366967A (en) Power consumption processing method, device, terminal and storage medium
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN111835977B (en) Image sensor, image generation method and device, electronic device, and storage medium
CN108874482B (en) Image processing method and device
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN112019680A (en) Screen brightness adjusting method and device
CN110876015B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN107317977B (en) Shooting method and device
CN117676055A (en) Image processing method and device, electronic equipment and storage medium
CN115733913A (en) Continuous photographing method and device and storage medium
CN107105182B (en) Video backup method and device
CN113470583A (en) Display picture adjusting method and device and storage medium
CN115811594A (en) Video call image processing method, device, equipment, system and storage medium

Legal Events

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