Power consumption processing method and apparatus, terminal, and storage medium
By adjusting the output frame rate of the image acquisition module and optimizing the terminal power consumption based on power consumption and brightness conditions, the power consumption problem of the image acquisition module was solved, achieving efficient power reduction without affecting image quality.
Patent Information
- Application Number
- CN202111579726.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2041-12-22
AI Technical Summary
As the number of image acquisition module algorithms increases, the power consumption problem of terminals becomes increasingly prominent, and existing technologies are unable to effectively reduce power consumption without affecting image quality.
By acquiring power consumption and brightness values when the image acquisition module is enabled on the terminal, the output frame rate is adjusted according to the power consumption and brightness conditions to reduce power consumption while maintaining image quality.
It effectively reduces the power consumption of the image acquisition module, improves load efficiency, reduces the impact on the performance of other devices, and ensures the quality of the output image.
Smart Images

Figure CN116366967B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of terminal technology, and in particular to a power consumption processing method, apparatus, terminal, and storage medium. Background Technology
[0002] With the continuous development of imaging technology and the increasing richness of shooting functions, terminals with excellent shooting capabilities are becoming more and more popular. As a result, image acquisition modules are being loaded with more and more algorithms. While the increase in algorithms has enriched the functions of image acquisition modules, it has also led to a more prominent power consumption issue, which has now moved from the background to the public eye and is receiving increasing attention. Summary of the Invention
[0003] This disclosure provides a power consumption processing method, apparatus, terminal, and storage medium.
[0004] According to a first aspect embodiment of this disclosure, a power consumption processing method is provided, the method comprising:
[0005] When the image acquisition module is enabled on the terminal, the power consumption of the terminal is obtained;
[0006] Determine the brightness value corresponding to the operating scene of the image acquisition module;
[0007] If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the output frame rate of the image acquisition module is reduced to the target frame rate to reduce the power consumption.
[0008] In some embodiments, reducing the output frame rate to the target frame rate if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition includes:
[0009] If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
[0010] In some embodiments, the method includes:
[0011] If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the amount by which the output frame rate is reduced is determined based on the power consumption and the brightness value.
[0012] In some embodiments, determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes:
[0013] If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold.
[0014] If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
[0015] In some embodiments, determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes:
[0016] If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude;
[0017] If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
[0018] In some embodiments, the method includes:
[0019] If the power consumption meets the power consumption adjustment conditions and the brightness value meets the brightness conditions, the magnitude of the reduction in the output frame rate is determined according to the type of the running scenario.
[0020] In some embodiments, determining the extent to which the output frame rate is reduced based on the type of the operating scenario includes:
[0021] If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range;
[0022] If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
[0023] In some embodiments, determining the brightness value corresponding to the operating scene of the image acquisition module includes:
[0024] Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined.
[0025] The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
[0026] In some embodiments, determining the brightness value corresponding to the operating scene of the image acquisition module includes:
[0027] If the power consumption is greater than or equal to the third power consumption threshold, the brightness value corresponding to the operating scenario of the image acquisition module is determined.
[0028] According to a second aspect of this disclosure, a power consumption processing apparatus is provided, the apparatus comprising:
[0029] The acquisition module is used to acquire the power consumption of the terminal when the image acquisition module is enabled on the terminal.
[0030] The determination module is used to determine the brightness value corresponding to the operating scene of the image acquisition module;
[0031] The processing module is configured to reduce the output frame rate of the image acquisition module to a 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.
[0032] In some embodiments, the processing module is configured to:
[0033] If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
[0034] In some embodiments, the apparatus includes:
[0035] The first adjustment module is used to determine the extent to which the output frame rate is reduced based on the power consumption and the brightness value when the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition.
[0036] In some embodiments, the first adjustment module is configured to:
[0037] If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold.
[0038] If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
[0039] In some embodiments, the first adjustment module is configured to:
[0040] If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude;
[0041] If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
[0042] In some embodiments, the apparatus includes:
[0043] The second adjustment module is used to determine the extent to which the output frame rate is reduced based on the type of the running scenario when the power consumption meets the power consumption adjustment conditions and the brightness value meets the brightness conditions.
[0044] In some embodiments, the second adjustment module is configured to:
[0045] If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range;
[0046] If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
[0047] In some embodiments, the determining module is configured to:
[0048] Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined.
[0049] The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
[0050] According to a third aspect embodiment of this disclosure, a terminal is provided, comprising:
[0051] processor;
[0052] Memory used to store processor-executable instructions;
[0053] The processor is configured to execute the steps of the method described in the first aspect embodiment.
[0054] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the method described in the first aspect of the disclosure.
[0055] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0056] As can be seen from the above embodiments, the embodiments of this disclosure reduce power consumption by lowering the output frame rate of the image acquisition module without adjusting the overall terminal resources, thus improving the efficiency of reducing the load on the image acquisition module. Furthermore, this method of reducing the output frame rate of the image acquisition module also reduces the impact on the performance of other components within the terminal besides the image acquisition module. Moreover, in the embodiments of this disclosure, when the power consumption of the terminal when the image acquisition module is activated meets the adjustment conditions, and the brightness value corresponding to the operating scenario of the image acquisition module meets the brightness conditions, the output frame rate is reduced. This allows for both power consumption reduction and consideration of the frame rate required by the operating scenario, effectively ensuring the quality of the output image.
[0057] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0058] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0059] Figure 1 This is a flowchart illustrating a power consumption processing method according to an exemplary embodiment;
[0060] Figure 2 This is one of the structural schematic diagrams of a power consumption processing device according to an exemplary embodiment;
[0061] Figure 3 This is a second schematic diagram of the structure of a power consumption processing device according to an exemplary embodiment;
[0062] Figure 4 yes Figure 3 The structural diagram of the module is determined in the middle;
[0063] Figure 5 This is a block diagram illustrating the structural composition of a terminal according to an exemplary embodiment. Detailed Implementation
[0064] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.
[0065] Figure 1 An exemplary flowchart of a power consumption processing method according to an embodiment of this disclosure is shown. Figure 1 As shown, the power consumption processing method provided in the first aspect embodiment of this disclosure includes:
[0066] Step S110: When the image acquisition module is enabled on the terminal, obtain the power consumption of the terminal;
[0067] Step S120: Determine the brightness value corresponding to the operating scene of the image acquisition module;
[0068] Step S130: If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, reduce the output frame rate of the image acquisition module to the target frame rate to reduce the power consumption.
[0069] In this embodiment of the disclosure, the terminal includes, but is not limited to, mobile phones, tablets, laptops, televisions, camera devices, or wearable devices.
[0070] Image acquisition modules include, but are not limited to, cameras.
[0071] In step S110, without limitation, when the terminal enables the image acquisition module, the power consumption of the terminal can be obtained by acquiring the node data of the terminal battery.
[0072] Without limitation, the power consumption of the terminal can be acquired at preset intervals when the image acquisition module is on. The preset interval can be every 1 second, 2 seconds, or 3 seconds. In practical applications, when the image acquisition module is on, the terminal power consumption can be acquired continuously to improve the timeliness of power consumption processing.
[0073] In step S120, the image processor (ISP) adjusts the ambient light brightness in different ways under different operating scenarios, resulting in different brightness values.
[0074] Generally, brightness values are related to the output frame rate. For example, a higher output frame rate results in a darker image output by the image acquisition module, but also higher power consumption. Therefore, adjusting the output frame rate affects not only the quality of the output image but also power consumption. Determining the brightness value corresponding to the operating scenario helps to balance image quality when adjusting the frame rate, effectively ensuring a good user experience.
[0075] In step S130, if the power consumption does not meet the power consumption adjustment condition, or the brightness value does not meet the brightness condition, the image is output at the output frame rate. That is, the output frame rate is not changed, and no power consumption reduction processing is performed.
[0076] The root cause of abnormal power consumption due to the activation of the image acquisition module is that the image acquisition module itself is overloaded. This embodiment of the present disclosure reduces power consumption by reducing the output frame rate of the image acquisition module, thereby reducing the load on the image acquisition module from the source and improving the efficiency of power consumption reduction.
[0077] Compared to reducing power consumption by adjusting system resources such as memory, CPU, and display resources of the terminal according to the power consumption level corresponding to the operating scenario, the embodiments of this disclosure reduce power consumption by reducing the output frame rate of the image acquisition module. This does not require adjusting the overall terminal resources, which not only improves the efficiency of reducing the load on the image acquisition module, but also reduces the impact on the performance of other devices in the terminal other than the image acquisition module.
[0078] Furthermore, in this embodiment, when the power consumption of the terminal when the image acquisition module is enabled meets the adjustment conditions, and when the brightness value corresponding to the operating scenario of the image acquisition module meets the brightness conditions, the output frame rate is reduced. This can reduce power consumption while taking into account the frame rate required by the operating scenario, effectively ensuring the quality of the output image.
[0079] According to some other optional embodiments of this disclosure, the step of reducing the output frame rate to the target frame rate if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition includes:
[0080] If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
[0081] In practical applications, if the power consumption is less than the first power consumption threshold, or the brightness value is greater than the first brightness threshold, the image is output at the output frame rate, that is, no power consumption optimization (referring to reducing power consumption) is performed.
[0082] If the power consumption is less than the first power consumption threshold, it indicates that the current power consumption is low and no power consumption optimization is needed.
[0083] Generally, if the brightness value is greater than or equal to the first brightness threshold, a brighter or overexposed photo will be obtained, indicating that the actual output frame rate of the image acquisition module is low and the power consumption is also low, so there is no need to optimize the power consumption.
[0084] According to some other optional embodiments of this disclosure, the method includes:
[0085] If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the amount by which the output frame rate is reduced is determined based on the power consumption and the brightness value.
[0086] Relatively speaking, if the brightness value corresponding to a certain operating scenario is A, the greater the power consumption, the greater the reduction in the output frame rate; the smaller the power consumption, the smaller the reduction in the output frame rate.
[0087] Similarly, if the power consumption is B, the smaller the brightness value corresponding to a certain operating scenario, the higher the actual output frame rate, and the greater the reduction in the output frame rate; the larger the brightness value corresponding to a certain operating scenario, the lower the actual output frame rate, and the smaller the reduction in the output frame rate.
[0088] According to other optional embodiments of this disclosure, determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes:
[0089] If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold.
[0090] If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
[0091] Compared to the first brightness range, when the brightness value is in the second brightness range, the image output by the image acquisition module is darker, indicating that the output frame rate corresponding to the second brightness range is faster. At this time, the output frame rate can be reduced by a greater margin, and the power consumption can be reduced to a greater extent.
[0092] If the brightness value is greater than or equal to the first brightness threshold, which corresponds to a brighter or overexposed situation, then the first brightness range corresponds to a normal situation, i.e., the image brightness is moderate; the second brightness range corresponds to a darker situation, i.e., the image brightness is darker.
[0093] According to other optional embodiments of this disclosure, determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes:
[0094] If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude;
[0095] If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
[0096] Compared to the first power consumption range, when the power consumption is in the second power consumption range, the power consumption is greater, and the output frame rate can be reduced to a greater extent.
[0097] Without limitation, the first preset amplitude can be a decrease of 1 frame per second, and the second preset amplitude can be a decrease of 2 frames per second; or, the first preset amplitude is a decrease of 3 frames per second, and the second preset amplitude is a decrease of 9 frames per second.
[0098] In some embodiments, the first preset amplitude is different for different operating scenarios, and / or the second preset amplitude is different for different operating scenarios.
[0099] In some embodiments, the method includes:
[0100] The reduction in output frame rate is determined based on the quality parameters of the image corresponding to the described operating scenario. These quality parameters include, but are not limited to, resolution and / or signal-to-noise ratio.
[0101] In practical applications, different first preset amplitudes and / or second preset amplitudes can be configured for different operating scenarios based on the image quality parameters corresponding to the operating scenario.
[0102] Without limitation, the image quality indicated by the quality parameter is directly proportional to the reduction in output frame rate. That is, the higher the image quality, the greater the reduction in output frame rate.
[0103] For example, compared to the normal preview scenario, the first preset amplitude can be larger and the second preset amplitude can also be larger when the scenario is high-definition photography.
[0104] For example, when the running scene is a normal preview, the first preset amplitude can be a reduction of 1 frame per second; when the running scene is a high-definition photo, the first preset amplitude can be a reduction of 2 frames per second.
[0105] According to some other optional embodiments of this disclosure, the method includes:
[0106] If the power consumption meets the power consumption adjustment conditions and the brightness value meets the brightness conditions, the magnitude of the reduction in the output frame rate is determined according to the type of the running scenario.
[0107] In practical applications, determining the extent to which the output frame rate is reduced based on the type of operating scenario is beneficial for further ensuring image quality and improving the user experience.
[0108] The operating scene types include those that output images using a dynamic output frame rate and those that output images using a static output frame rate. In scenes with a dynamic output frame rate, the output frame rate of the image acquisition module is not fixed, while in scenes with a static output frame rate, the output frame rate of the image acquisition module is fixed. If the output frame rate is reduced by the same amount for both scene types, the output image may be too dark, affecting the shooting experience.
[0109] According to some other optional embodiments of this disclosure, determining the extent to which the output frame rate is reduced based on the type of the operating scenario includes:
[0110] If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range;
[0111] If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
[0112] Compared to scene types that use a static output frame rate to output images, when the running scene type uses a dynamic output frame rate to output images, the output frame rate is reduced by a smaller margin, which is beneficial for balancing image quality and power consumption optimization.
[0113] For example, in Night Mode (i.e., night scene operation), images are output using a dynamic frame rate. If the current output frame rate has already reached a certain level in the frame rate evaluation, such as medium, then if the brightness value is within the second brightness range, even if the power consumption is within the second power consumption range, it is not recommended to reduce the frame rate by more than the second preset level. The reduction level can be equal to or less than the second preset level. The reason is that the brightness value is affected not only by the frame rate but also by gain or exposure time. Although the brightness value may be low, the actual output frame rate may already be very low. If the output frame rate is significantly reduced, it will seriously affect the image quality and reduce the user experience.
[0114] According to some other optional embodiments of this disclosure, determining the brightness value corresponding to the operating scene of the image acquisition module includes:
[0115] Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined.
[0116] The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
[0117] The debugging parameters of the image processor are different in different operating scenarios, including brightness adjustment parameters.
[0118] The mapping information represents the pre-configured mapping relationships between operating scenes and debugging parameters in the design of the image acquisition module's application. For example, flag 1 represents some debugging parameters, flag 2 represents other debugging parameters, and in the mapping information, flag 1 maps to normal preview, flag 2 maps to high-definition photography; and so on, flag 3 can be used to map HDR (High Dynamic Range) photography, flag 4 to video recording mode, and flag 5 to night scene mode.
[0119] If the running scenario is in recording mode, the brightness adjustment parameter in the debugging parameters represented by flag 4 can be determined based on the mapping information.
[0120] According to some other optional embodiments of this disclosure, determining the brightness value corresponding to the operating scene of the image acquisition module includes:
[0121] If the power consumption is greater than or equal to the third power consumption threshold, the brightness value corresponding to the operating scenario of the image acquisition module is determined.
[0122] Without limitation, the third power consumption threshold is less than or equal to the first power consumption threshold.
[0123] If the power consumption is less than the third power consumption threshold, it indicates that the power consumption is low, and there is no need to determine the brightness value or optimize the power consumption.
[0124] Setting a third power consumption threshold can improve the conditions for triggering the acquisition of brightness values, reducing power waste caused by constantly monitoring brightness values.
[0125] Taking a mobile phone as an example, the image acquisition module is a camera. The following scenarios are not optimized for power consumption:
[0126] If the power consumption detected when the camera is enabled is lower than the third power consumption threshold, no power consumption optimization is performed. If the power consumption is greater than or equal to the third power consumption threshold, the operating scene is acquired.
[0127] After determining the current operating scenario, the brightness adjustment parameters are determined based on the mapping information between the operating scenario and the image processor adjustment parameters in the camera. Then, the brightness value is determined based on the adjustment parameters and the ambient light brightness. If the brightness value is greater than the first brightness threshold (indicating that it is too bright or overexposed), and the desired image is less bright or darker, a higher output frame rate is required to achieve the desired effect. However, the actual output frame rate of the camera chip is relatively low, so no power optimization is needed. If the brightness value is within the first brightness range or the second brightness range (indicating that the brightness is normal or dark), and the power consumption is less than the first power consumption threshold, it indicates that the actual output frame rate is low, and no power optimization is performed.
[0128] In a specific example, taking a mobile phone as the terminal and a camera as the image acquisition module, the power consumption processing method includes: when the camera is enabled, acquiring the phone's power consumption; if the power consumption is within a second power consumption range, determining the operating scenario. If the operating scenario is a 4K@60fps (60 frames per second at 4K pixels) recording mode, then acquiring the ISP's brightness adjustment parameters for that operating scenario, and determining the brightness value based on the brightness adjustment parameters and ambient light brightness. If the brightness value is within the second brightness range (indicating relatively low brightness), due to the high power consumption, the actual output frame rate is high, and the output frame rate is reduced to the target frame rate by a reduction greater than the second preset amplitude. For example, if the second preset amplitude is a reduction of 3 frames per second, then nearly 9 frames per second can be reduced, that is, from an output frame rate of 60 frames per second, a reduction of 9 frames per second is made, resulting in a target frame rate of 51 frames per second.
[0129] A second aspect of this disclosure provides a power consumption processing apparatus, such as... Figure 2 As shown, the power consumption processing device 200 includes:
[0130] The acquisition module 210 is used to acquire the power consumption of the terminal when the image acquisition module is enabled on the terminal;
[0131] The determining module 220 is used to determine the brightness value corresponding to the operating scene of the image acquisition module;
[0132] The processing module 230 is used to reduce the output frame rate of the image acquisition module to a 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.
[0133] Without limitation, when the image acquisition module is enabled on the terminal, the terminal's power consumption can be obtained by acquiring the terminal's battery node data. In practical applications, the battery node data can be obtained through the following address: / sys (system) / class (category) / power (power)_supply (supply) / battery (battery) / current_now (current status)
[0134] In some embodiments, such as Figure 3 As shown, the power consumption processing device 200 includes:
[0135] The preset division module 211 is used to determine power consumption thresholds (e.g., a first power consumption threshold, a second power consumption threshold, and a third power consumption threshold), brightness thresholds (e.g., a first brightness threshold and a second brightness threshold), and mapping information of the running scene and image processor adjustment parameters; wherein, the power consumption threshold is used to divide the acquired power consumption and determine the range to which the power consumption belongs; the brightness threshold is used to divide the brightness value and determine the range to which the brightness value belongs; the mapping information is used to determine the brightness value.
[0136] Unrestricted operation scenarios include: normal preview, high-definition photo capture, HDR photo capture, video recording, and night scene.
[0137] In some embodiments, such as Figure 4 As shown, the determination module 220 includes, in sequence, a power consumption evaluation module 221, a scene acquisition module 222, an image processor debugging parameter acquisition module 223, a brightness evaluation module 224, and a frame rate evaluation module 225.
[0138] The power consumption assessment module is used to determine the power consumption range based on power consumption thresholds. In practical applications, power consumption can be assessed using three levels: low, medium, and high. For example, if the third power consumption threshold is less than the first power consumption threshold, and the power consumption obtained by the acquisition module is greater than the third power consumption threshold but less than the first power consumption threshold, the power consumption is assessed as low; if the power consumption is greater than or equal to the first power consumption threshold but less than the second power consumption threshold, the power consumption is assessed as medium; and if the power consumption is greater than or equal to the second power consumption threshold, the power consumption is assessed as high.
[0139] The brightness assessment module determines the brightness value based on the operating scene, mapping information, and ambient light intensity, and performs a brightness assessment based on the brightness value and a brightness threshold. For example: if the brightness value is greater than or equal to the first brightness threshold, it is assessed as bright or overexposed; if the brightness value is less than the first brightness threshold but greater than or equal to the second brightness threshold, it is assessed as normal; if the brightness value is less than the second brightness threshold, it is assessed as dark.
[0140] The frame rate evaluation module is used to evaluate the output frame rate based on the power consumption evaluation results. Generally, low power consumption results in a slow output frame rate; medium power consumption also results in a medium output frame rate; and high power consumption also results in a high (fast) output frame rate.
[0141] The processing module is used to determine an output power adjustment strategy based on at least one of the following: operating scenario, brightness assessment (used to determine whether the brightness value meets the brightness adjustment requirements), and power consumption assessment (used to determine whether the power consumption meets the power consumption adjustment conditions); wherein the adjustment strategy includes whether to reduce the output frame rate and the reduction amount.
[0142] According to some optional embodiments, the processing module is configured to:
[0143] If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
[0144] According to some alternative embodiments, the apparatus includes:
[0145] The first adjustment module is used to determine the extent to which the output frame rate is reduced based on the power consumption and the brightness value when the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition.
[0146] According to some optional embodiments, the first adjustment module is configured to:
[0147] If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold.
[0148] If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
[0149] According to some optional embodiments, the first adjustment module is configured to:
[0150] If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude;
[0151] If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
[0152] According to some alternative embodiments, the apparatus includes:
[0153] The second adjustment module is used to determine the extent to which the output frame rate is reduced based on the type of the running scenario when the power consumption meets the power consumption adjustment conditions and the brightness value meets the brightness conditions.
[0154] According to some optional embodiments, the second adjustment module is configured to:
[0155] If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range;
[0156] If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
[0157] According to some optional embodiments, the determining module is configured to:
[0158] Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined.
[0159] The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
[0160] A third aspect of this disclosure provides a terminal, including:
[0161] processor;
[0162] Memory used to store processor-executable instructions;
[0163] The processor is configured to execute the steps of the method described in the first aspect embodiment.
[0164] A fourth aspect of this disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is able to perform the steps of the method described in the first embodiment.
[0165] In an exemplary embodiment, the multiple modules in the printing apparatus may be implemented by one or more central processing units (CPUs), graphics processing units (GPUs), baseband processors (BPs), application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0166] Figure 5 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0167] Reference Figure 5 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply 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.
[0168] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, image acquisition module operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0169] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 storage, flash memory, magnetic disk, or optical disk.
[0170] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0171] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of the touch or swipe action but also measure the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0172] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0173] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0174] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may measure the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in position of device 800 or a component of device 800, the presence or absence of user contact with device 800, orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to measure the presence of nearby objects without any physical contact. 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, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0175] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. 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.
[0176] 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 components to perform the methods described above.
[0177] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0178] The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments.
[0179] The features disclosed in the several device embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new product embodiments.
[0180] The features disclosed in the several method or device embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments or product embodiments.
[0181] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0182] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A power consumption processing method, characterized in that, The method includes: When the image acquisition module is enabled on the terminal, the power consumption of the terminal is obtained; Determine the brightness value corresponding to the operating scene of the image acquisition module; If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the output frame rate of the image acquisition module is reduced to the target frame rate to reduce the power consumption. If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the amount of reduction in the output frame rate is determined based on the power consumption and the brightness value. The step of determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes: If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold. If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
2. The method according to claim 1, characterized in that, If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the output frame rate is reduced to the target frame rate, including: If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
3. The method according to claim 1, characterized in that, Determining the extent to which the output frame rate is reduced based on the power consumption and the brightness value includes: If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude; If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
4. The method according to claim 1, characterized in that, The method includes: If the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition, the magnitude of the reduction in the output frame rate is determined according to the type of the running scenario.
5. The method according to claim 4, characterized in that, Determining the extent to which the output frame rate is reduced based on the type of the operating scenario includes: If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range; If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
6. The method according to claim 1, characterized in that, Determining the brightness value corresponding to the operating scene of the image acquisition module includes: Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined; The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
7. The method according to claim 1, characterized in that, Determining the brightness value corresponding to the operating scene of the image acquisition module includes: If the power consumption is greater than or equal to the third power consumption threshold, the brightness value corresponding to the operating scenario of the image acquisition module is determined.
8. A power consumption processing device, characterized in that, The device includes: The acquisition module is used to acquire the power consumption of the terminal when the image acquisition module is enabled on the terminal. The determination module is used to determine the brightness value corresponding to the operating scene of the image acquisition module; The processing module is configured to reduce the output frame rate of the image acquisition module to a 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. The first adjustment module is used to determine the extent to which the output frame rate is reduced based on the power consumption and the brightness value if the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition. The first adjustment module is used for: If the power consumption is within a first power consumption range and the brightness value is within a first brightness range, the decrease in the output frame rate is determined to be a first preset range; wherein, the lower limit of the first power consumption range is greater than or equal to a first power consumption threshold, the upper limit of the first power consumption range is less than a second power consumption threshold, the lower limit of the first brightness range is greater than a second brightness threshold, and the upper limit of the first brightness range is less than or equal to a first brightness threshold. If the power consumption is within the first power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the first preset range; wherein, the upper limit of the second brightness range is less than or equal to the second brightness threshold.
9. The apparatus according to claim 8, characterized in that, The processing module is used for: If the power consumption is greater than or equal to the first power consumption threshold, and the brightness value is less than or equal to the first brightness threshold, the output frame rate is reduced to the target frame rate.
10. The apparatus according to claim 8, characterized in that, The first adjustment module is used for: If the power consumption is within the second power consumption range and the brightness value is within the first brightness range, the decrease in the output frame rate is determined to be a second preset magnitude; wherein, the lower limit of the second power consumption range is greater than or equal to the second power consumption threshold, and the second preset magnitude is greater than the first preset magnitude; If the power consumption is within the second power consumption range and the brightness value is within the second brightness range, it is determined that the decrease in the output frame rate is greater than the second preset range.
11. The apparatus according to claim 8, characterized in that, The device includes: The second adjustment module is used to determine the extent to which the output frame rate is reduced based on the type of the running scenario when the power consumption meets the power consumption adjustment condition and the brightness value meets the brightness condition.
12. The apparatus according to claim 11, characterized in that, The second adjustment module is used for: If the type of the running scenario is a scenario that outputs images using a dynamic output frame rate, the reduction range of the output frame rate is determined to be a third preset range; If the type of the running scenario is a scenario that outputs images using a static output frame rate, then the decrease in the output frame rate is determined to be greater than the third preset magnitude.
13. The apparatus according to claim 8, characterized in that, The determining module is used for: Based on the operating scenario and the mapping information between the operating scenario and the image processor adjustment parameters in the image acquisition module, the brightness adjustment parameters are determined; The brightness value is determined based on the brightness adjustment parameters and the ambient light brightness.
14. A terminal, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the method steps of any one of claims 1 to 7.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method steps of any one of claims 1 to 7.
Citation Information
Patent Citations
Image preview method and device of intelligent terminal and terminal
CN105208360A
Image processing method, terminal and computer storage medium
CN110933294A