Method and device for reducing power consumption of camera terminal, electronic equipment and storage medium
By adjusting the output power and status of the camera terminal's flash according to the ambient light level, the problem of uncontrollable flash power consumption was solved, resulting in reduced power consumption, extended battery life, and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2022-02-10
- Publication Date
- 2026-07-21
AI Technical Summary
In existing technologies, the power consumption of the flash of a camera terminal cannot be precisely controlled, resulting in high power consumption, short battery life, and negatively impacting user experience.
By acquiring the power consumption value of the camera terminal, the output power of the flash is adjusted according to the brightness of the ambient light, and the flash is turned on and off based on the output power, including adjusting the output power, brightness level and flash index of the flash within a predetermined range to adapt to the brightness of the ambient light.
It achieves precise control over flash power consumption, reduces the power consumption of the camera terminal, extends battery life, and improves user experience.
Smart Images

Figure CN116626966B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to, but is not limited to, the field of electronic equipment technology, and particularly to a method, apparatus, electronic device, and storage medium for reducing the power consumption of a camera terminal. Background Technology
[0002] As terminals (such as mobile phones and cameras) become more and more functional and more algorithms are loaded onto them, power consumption issues become increasingly prominent, seriously affecting the battery life of terminals, and power consumption issues are receiving more and more attention.
[0003] Most mobile devices are equipped with camera functions, which require a flash to capture high-quality images. Since the flash is a high-power-consuming device, reducing its energy consumption is crucial for reducing the overall energy consumption of the device. However, current technologies cannot precisely control the flash's power consumption, leading to high energy consumption, short battery life, and a negative impact on user experience. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for reducing the power consumption of a camera terminal.
[0005] According to a first aspect of the present disclosure, a method for reducing the power consumption of a camera terminal is provided, the method comprising:
[0006] Obtain the power consumption value of the camera terminal;
[0007] In response to the power consumption value being within a predetermined range, the output power of the flash lamp is adjusted according to the brightness of the ambient light.
[0008] Based on the output power, the flash is controlled to fire.
[0009] In one embodiment, adjusting the output power of the flash lamp based on the acquired ambient light brightness includes:
[0010] In response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power to a second power, wherein the first power is greater than the second power.
[0011] In one embodiment, adjusting the output power of the flash lamp based on the acquired ambient light brightness includes:
[0012] The output power of the flash is adjusted according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
[0013] In one embodiment, the method includes:
[0014] Determine if the main subject of the photograph has changed;
[0015] The flashlight is turned off in response to a change in the subject object.
[0016] In one embodiment, adjusting the output power of the flash lamp based on the acquired ambient light brightness includes:
[0017] The flash index of the flash lamp is determined based on the obtained brightness of the ambient light;
[0018] The output power of the flash is adjusted according to the flash index.
[0019] In one embodiment, the aperture value and / or flash distance of the camera terminal are determined based on the flash index.
[0020] In one embodiment, the voltage and / or current of the flash lamp is determined based on the output power.
[0021] According to a second aspect of the present disclosure, an apparatus for reducing the power consumption of a camera terminal is provided, the apparatus comprising:
[0022] The acquisition module is used to acquire the power consumption value of the camera terminal;
[0023] An adjustment module is used to adjust the output power of the flash lamp according to the brightness of the ambient light, in response to the power consumption value being within a predetermined range.
[0024] The control module is used to control the flash to fire based on the output power.
[0025] In one embodiment, the adjustment module is used to:
[0026] In response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power to a second power, wherein the first power is greater than the second power.
[0027] In one embodiment, the adjustment module is used to:
[0028] The output power of the flash is adjusted according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
[0029] In one embodiment, the apparatus includes a determining module; wherein,
[0030] The determining module is used to determine whether the subject of the photograph has changed;
[0031] The control module is used to turn off the flash in response to a change in the main object.
[0032] In one embodiment, the apparatus includes a determining module; wherein,
[0033] The determining module is used to determine the flash index of the flash lamp based on the acquired brightness of the ambient light;
[0034] The adjustment module is used to adjust the output power of the flash lamp according to the flash index.
[0035] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0036] processor;
[0037] Memory used to store the processor's executable instructions;
[0038] The processor is configured to implement the method described in any embodiment of this disclosure when running the executable instructions.
[0039] According to a fourth aspect of the present disclosure, a computer storage medium is provided, the computer storage medium storing a computer executable program, which, when executed by a processor, implements the methods described in any embodiment of the present disclosure.
[0040] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0041] In this embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the obtained ambient light brightness; and the flash is controlled to fire based on the output power. Here, when the flash power consumption value of the camera terminal is within the predetermined range, the output power of the flash can be adjusted based on the ambient light brightness, and the flash can be controlled to fire based on the output power. Compared to a method where the output power cannot be adjusted after the flash is turned on, the output power can adapt to the ambient light brightness. Thus, the flash can be precisely controlled by the output power, thereby reducing the flash power consumption, extending the camera terminal's battery life, and improving the user experience.
[0042] 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
[0043] 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.
[0044] Figure 1This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0045] Figure 2 This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0046] Figure 3 This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0047] Figure 4 This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0048] Figure 5 This is a flowchart illustrating a segmentation method according to an exemplary embodiment.
[0049] Figure 6 This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0050] Figure 7 This is a schematic diagram illustrating an apparatus for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0051] Figure 8 This is a flowchart illustrating a method for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0052] Figure 9 This is a schematic diagram of a device for reducing the power consumption of a camera terminal according to an exemplary embodiment.
[0053] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0054] 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 and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0055] To facilitate understanding by those skilled in the art, this disclosure provides multiple embodiments to clearly illustrate the technical solutions of the embodiments of this disclosure. Of course, those skilled in the art will understand that the multiple embodiments provided in this disclosure can be executed individually, or in combination with the methods of other embodiments in this disclosure, or individually or in combination with some methods in other related technologies; this disclosure does not limit these aspects.
[0056] To facilitate understanding of any embodiment of this disclosure, a scenario for reducing flash power consumption will first be described through exemplary embodiments.
[0057] In one embodiment, a ranging module is used to obtain the distance between the terminal and the target object to be photographed by the camera in the terminal; the power of the flash used in conjunction with the camera in the terminal is determined based on the obtained distance; during the process of the camera photographing the target object, the flash is triggered to work according to the determined power of the flash.
[0058] like Figure 1 As shown, this embodiment provides a method for reducing the power consumption of a camera terminal, the method comprising:
[0059] Step 11: Obtain the power consumption value of the camera terminal;
[0060] Step 12: In response to the power consumption value being within a predetermined range, adjust the output power of the flash lamp according to the brightness of the ambient light.
[0061] Step 13: Based on the output power, control the flash to fire.
[0062] Here, the camera terminal may be, but is not limited to, a computer, mobile phone, wearable device, vehicle terminal, roadside unit (RSU), smart home terminal, dedicated display calibration equipment, industrial sensing equipment and / or medical equipment, etc.
[0063] In one embodiment, the power consumption value of the camera terminal may be acquired periodically; in response to the power consumption value being greater than a predetermined value, the output power of the flash lamp may be adjusted according to the acquired ambient light brightness; and the flash lamp may be controlled to fire based on the output power.
[0064] In one embodiment, the power consumption value of the camera terminal may be acquired periodically; the brightness of the ambient light may be acquired periodically; in response to the power consumption value being greater than a predetermined value, the output power of the flash may be adjusted according to the acquired brightness of the ambient light; and the flash may be controlled to fire based on the output power.
[0065] Here, the period for periodically acquiring the power consumption value of the camera terminal can be determined based on the flash usage frequency. For example, in response to a flash usage frequency greater than a frequency threshold, the period for periodically acquiring the flash power consumption value is determined to be less than a period threshold; or, in response to a flash usage frequency less than a frequency threshold, the period for periodically acquiring the flash power consumption value is determined to be greater than a period threshold. Thus, the period can be adapted to the flash usage frequency.
[0066] Here, the period for periodically acquiring the brightness of ambient light can be determined based on the rate of change of ambient light. For example, in response to a rate of change of ambient light exceeding a rate of change threshold, the period for periodically acquiring the brightness of ambient light can be determined to be less than a period threshold; or, in response to a rate of change of ambient light falling below a rate of change threshold, the period for periodically acquiring the brightness of ambient light can be determined to be greater than a period threshold. Here, the rate of change of ambient light can be the rate of change of ambient light intensity.
[0067] Here, a predetermined range can be determined based on power consumption requirement parameters. For example, in response to a power consumption requirement parameter being greater than a parameter threshold, a value within the predetermined range is determined to be less than the predetermined threshold; or, in response to a power consumption requirement parameter being less than a parameter threshold, a value within the predetermined range is determined to be greater than the predetermined threshold. Thus, the predetermined range can be adapted to the power consumption requirement parameters. Here, the power consumption requirement parameters can be preset by the user.
[0068] In one embodiment, the energy storage information of the camera terminal's battery may be acquired periodically, and the current power consumption value of the camera terminal may be determined based on the energy storage information. In response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the acquired ambient light brightness; based on the output power, the flash is controlled to fire. Alternatively, the current power consumption value may be obtained by comparing the energy storage information indicated by the energy storage information with the total energy storage.
[0069] In one embodiment, the power consumption of the camera terminal can be divided into different levels, such as low, medium, and high. That is, low power consumption level, medium power consumption level, and high power consumption level. In one embodiment, the power consumption value of the camera terminal is acquired; in response to the power consumption value being a high power consumption level value, the output power of the flash is adjusted according to the acquired ambient light brightness; based on the output power, the flash is controlled to fire. It should be noted that in response to the power consumption value being a medium power consumption level value or a low power consumption level value, the output power of the flash may not be adjusted.
[0070] In one embodiment, different brightness levels can be defined based on the ambient light intensity, for example, three levels: high, medium, and dark. That is, high brightness level, medium brightness level, and dark brightness level. In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the ambient light intensity being at the high brightness level, the output power of the flash is reduced; based on the output power, the flash is controlled to fire; or, in response to the power consumption value being within a predetermined range and the ambient light intensity being at the medium brightness level, the output power of the flash is increased; based on the output power, the flash is controlled to fire.
[0071] In one embodiment, different brightness levels can be defined based on the ambient light intensity, such as high, medium, and dark levels. In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the ambient light intensity being at the high brightness level, the output power of the flash is reduced; based on the output power, the flash is controlled to fire; or, in response to the power consumption value being within the predetermined range and the ambient light intensity being at the dark brightness level, the output power of the flash is increased. Based on the output power, the flash current is adjusted to control the flash firing.
[0072] In one embodiment, the flash guide number (CDR) can be determined based on the output power. Here, different CDR levels can be defined based on the CDR value, for example, three levels: strong, medium, and weak. That is, strong CDR, medium CDR, and weak CDR. In one embodiment, the power consumption value of the camera terminal is acquired; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the acquired ambient light brightness to the output power corresponding to the CDR of the medium CDR level; based on the CDR, the flash is controlled to fire.
[0073] In one embodiment, the flash index can be determined based on the output power. Here, different flash index levels can be defined based on the flash index, for example, three levels: strong, medium, and weak. In one embodiment, the power consumption value of the camera terminal is acquired; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the acquired ambient light brightness to the output power corresponding to the flash index level of weak flash; based on the flash index, the flash current is adjusted to control the flash to fire.
[0074] In one embodiment, the aperture value and / or flash distance of the camera terminal are determined based on the flash index.
[0075] In one embodiment, the voltage and / or current of the flash lamp is determined based on the output power.
[0076] In one embodiment, after obtaining the flash index, the output power of the flash lamp is obtained using the following formula: Flash index = K1 × Flash output power, where K1 is a fixed conversion factor between the flash index and the flash output power. Based on the power calculation formula, the corresponding current value is obtained while keeping the voltage constant. Here, flash output power = voltage × current. For example, please refer to Table 1, which shows the mapping relationship between power consumption levels and the magnitude of reduction in maximum current.
[0077] Table 1:
[0078] Power consumption level Low middle Advanced and above Reduce the maximum current by an amount (mA) 5 10 20
[0079] It's important to note that the guide number (GN) is a measure of a flash unit's ability to illuminate a target under specific ISO and viewing angle conditions. A higher guide number means a higher flash power. The guide number indicates the light intensity set by the flash unit manufacturer for each unit, typically based on ISO 100. Increasing the ISO value increases the guide number. A higher GN means a stronger flash intensity but also faster power consumption, and vice versa.
[0080] In one embodiment, the flash guide number = aperture value × flash distance. When the ambient flash guide number exceeds a preset range or the maximum flash guide number, the flash is turned off or disabled, thus extending its lifespan. Here, the aperture value directly affects the amount of light entering the camera's sensor. More light reaches the sensor's surface, resulting in a brighter image, and vice versa. A smaller aperture value means a larger opening, allowing more light into the camera, and vice versa. It's important to note that when taking a photograph, besides the flash illuminating the subject and surrounding environment, the brightness of the resulting image is indirectly altered by the flash, which only provides an auxiliary effect by increasing ambient light. Without a flash, the same goal of increasing image brightness can be achieved by reducing the camera's aperture value. This method of increasing the aperture value directly increases the amount of light entering the image, fundamentally increasing its brightness.
[0081] In one embodiment, since a higher flash index results in higher power consumption, if the flash index exceeds an intensity threshold, the power consumption level can be reduced by one level to minimize power consumption. It's important to note that reducing flash brightness does not affect the camera's shooting function; the purpose of the flash is simply to increase ambient brightness, assisting in capturing the moment. Without a flash, only the quality of the generated image will be affected. To achieve better performance, image quality in some scenes can be sacrificed.
[0082] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the brightness of the obtained ambient light being at a bright level, the output power is adjusted to 0; based on the output power, the flash is controlled to turn off.
[0083] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the obtained ambient light brightness being at a medium or dark level, the output power is adjusted to be greater than 0; based on the output power, the flash is controlled to fire.
[0084] In this embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the obtained ambient light brightness; and the flash is controlled to fire based on the output power. Here, when the flash power consumption value of the camera terminal is within the predetermined range, the output power of the flash can be adjusted based on the ambient light brightness, and the flash can be controlled to fire based on the output power. Compared to a method where the output power cannot be adjusted after the flash is turned on, the output power can adapt to the ambient light brightness. Thus, the flash can be precisely controlled by the output power, thereby reducing the flash power consumption, extending the camera terminal's battery life, and improving the user experience.
[0085] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0086] like Figure 2 As shown, this embodiment provides a method for reducing the power consumption of a camera terminal, the method comprising:
[0087] Step 21: In response to the ambient light brightness being greater than a brightness threshold, adjust the output power of the flash from a first power to a second power, wherein the first power is greater than the second power.
[0088] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the brightness of the ambient light being greater than a brightness threshold, the output power of the flash is adjusted from a first power to a second power, wherein the first power is greater than the second power; based on the output power, the flash is controlled to fire.
[0089] In one embodiment, the average power consumption of the camera terminal within a predetermined time period is obtained; in response to the average power consumption being within a predetermined range and the average brightness of the ambient light being greater than a brightness threshold, the output power of the flash is adjusted from a first power to a second power, wherein the first power is greater than the second power; and the flash is controlled to fire based on the output power.
[0090] In one embodiment, in response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power at a high power level to a second power at a medium power level or a second power at a low power level.
[0091] In one embodiment, in response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power at a medium power level to a second power at a low power level.
[0092] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0093] like Figure 3 As shown, this embodiment provides a method for reducing the power consumption of a camera terminal, the method comprising:
[0094] Step 31: Adjust the output power of the flash according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
[0095] In one embodiment, different brightness levels can be defined based on the intensity of ambient light, for example, three levels: high, medium, and dark. These correspond to high brightness level, medium brightness level, and dark brightness level, respectively.
[0096] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the brightness level of the ambient light, wherein the brightness level is a level determined based on the brightness of the ambient light; and the flash is controlled to fire based on the output power.
[0097] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the obtained ambient light brightness level being a high brightness level, the output power of the flash is adjusted from the high power consumption level output power to the medium power consumption level output power or the low power consumption level output power, wherein the brightness level is determined based on the brightness of the ambient light; based on the output power, the flash is controlled to fire.
[0098] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the obtained ambient light brightness level being a high brightness level, the output power of the flash is adjusted from the output power of the medium power consumption level to the output power of the low power consumption level, wherein the brightness level is determined based on the brightness of the ambient light; based on the output power, the flash is controlled to fire.
[0099] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the obtained ambient light brightness level being a medium brightness level, the output power of the flash is adjusted from a high power consumption level to a medium power consumption level or a low power consumption level, wherein the brightness level is determined based on the brightness of the ambient light; based on the output power, the flash is controlled to fire.
[0100] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range and the obtained ambient light brightness level being a medium brightness level, the output power of the flash is adjusted from the output power of the medium power consumption level to the output power of the low power consumption level, wherein the brightness level is a level determined based on the brightness of the ambient light; based on the output power, the flash is controlled to fire.
[0101] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0102] like Figure 4 As shown, this embodiment provides a method for reducing the power consumption of a camera terminal, the method comprising:
[0103] Step 41: Determine if the main subject of the photograph has changed;
[0104] Step 42: In response to a change in the subject object, turn off the flash.
[0105] In one embodiment, it is determined whether the subject being photographed has changed; in response to the change in the subject, the flash is turned off; or, in response to the no change in the subject, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range, the output power of the flash is adjusted according to the brightness of the ambient light obtained; and based on the output power, the flash is controlled to fire.
[0106] In one embodiment, the proportion of the subject within the frame is calculated using the rule of thirds composition method and compared to a preset value. If the proportion exceeds the preset value, the subject is considered valid; otherwise, it is invalid. Among valid subjects, the primary subject, or main image, is determined based on its distance from the frame. It should be noted that... (Please refer to...) Figure 5 The rule of thirds composition refers to dividing the image into thirds horizontally and vertically as seen in the viewfinder of a camera. The intersection of these thirds is called the golden ratio point. The subject can be placed at the golden ratio point or along the thirds line as needed. For example, a minimum preset value can be set based on the number of objects and their space occupation in the frame. If the value is less than this, the object is initially judged as a non-primary subject.
[0107] In one embodiment, if a change in the main subject is detected at the moment the photo is taken (i.e., a change in the subject), the flash can be disabled or its power consumption reduced, depending on the camera's power consumption. From the user's perspective, the captured image data is not the desired image, or data the user would delete. Considering this, turning on the flash is essentially a waste of resources. It should be noted that the flash is primarily used in low-light conditions to provide supplemental lighting. Even without a flash, the camera's functionality remains unaffected, only the final image quality will be affected. Using a flash for supplemental lighting can result in better image quality.
[0108] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0109] like Figure 6 As shown, this embodiment provides a method for reducing the power consumption of a camera terminal, the method comprising:
[0110] Step 61: Determine the flash index of the flash lamp based on the obtained brightness of the ambient light;
[0111] Step 62: Adjust the output power of the flash lamp according to the flash index.
[0112] In one embodiment, the power consumption value of the camera terminal is obtained; in response to the power consumption value being within a predetermined range, the flash index of the flash lamp is determined based on the obtained brightness of the ambient light; the output power of the flash lamp is adjusted according to the flash index; and the flash lamp is controlled to fire based on the output power.
[0113] In one embodiment, the power consumption value of the camera terminal is acquired; in response to the power consumption value being within a predetermined range, based on the acquired ambient light brightness being at a high brightness level, the flash index of the flash lamp is determined to be at a low flash index level; based on the flash index, the output power of the flash lamp is adjusted to a low power level; and based on the output power, the flash lamp is controlled to fire. It should be noted that before adjustment, the output power of the flash lamp can be either a high power level or a medium power level.
[0114] In one embodiment, the power consumption value of the camera terminal is acquired; in response to the power consumption value being within a predetermined range, based on the acquired ambient light brightness being at a low brightness level, the flash index of the flash unit is determined to be at a high flash index level; based on the flash index, the output power of the flash unit is adjusted to a high power level; and based on the output power, the flash unit is controlled to fire. It should be noted that before adjustment, the output power of the flash unit can be at a medium power level or a low power level.
[0115] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0116] To better understand the embodiments of this disclosure, the following exemplary embodiment will be used to further illustrate the scheme of this disclosure:
[0117] Example 1:
[0118] Please see Figure 7 This document discloses schematic diagrams of various modules for performing a method according to any embodiment of the present disclosure. The schematic diagrams include a power consumption assessment module, an ambient brightness assessment module, a module for identifying the main subject, a module for controlling the flash to be turned on or off, a module for determining the flash index, and a module for adjusting the flash current. In one embodiment, please refer to… Figure 8 A method for reducing the power consumption of a camera terminal is provided, the method comprising:
[0119] Step 81: The power consumption assessment module obtains the power consumption value of the camera terminal and determines that the power consumption value is within a predetermined range; here, the power consumption value being within the predetermined range can mean that the power consumption value is greater than a predetermined value.
[0120] Step 82: The ambient light assessment module acquires the brightness of the ambient light and determines it to be at a high brightness level. Here, different brightness levels can be divided according to the magnitude of the ambient light brightness, for example, high, medium, and dark levels. That is, high brightness level, medium brightness level, and dark brightness level.
[0121] Step 83: The module identifying the main subject determines that the main subject has not changed. It should be noted that if a change in the main subject is detected at the moment the photo is taken, depending on the camera's power consumption, it's advisable to disable the flash or reduce its power consumption level. From the user's perspective, the captured image data at this point is not the image the user wants, or data the user will delete. Considering this, turning on the flash is essentially a waste of resources.
[0122] Step 84: The module that controls the flash to turn on or off controls the flash to turn on.
[0123] Step 85: The module that determines the flash index adjusts the strong flash index to the weak flash index based on the brightness of the ambient light.
[0124] Step 86: The module for adjusting the flash current adjusts the flash current based on the weak flash index.
[0125] It should be noted that those skilled in the art will understand that the methods provided in the embodiments of this disclosure can be executed alone or together with some methods in the embodiments of this disclosure or some methods in related technologies.
[0126] like Figure 9 As shown, this embodiment provides a device for reducing the power consumption of a camera terminal, the device comprising:
[0127] The acquisition module 91 is used to acquire the power consumption value of the camera terminal;
[0128] The adjustment module 92 is used to adjust the output power of the flash lamp according to the brightness of the acquired ambient light in response to the power consumption value being within a predetermined range.
[0129] The control module 93 is used to control the flash to fire based on the output power.
[0130] In one embodiment, the adjustment module 92 is used for:
[0131] In response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power to a second power, wherein the first power is greater than the second power.
[0132] In one embodiment, the adjustment module 92 is used for:
[0133] The output power of the flash is adjusted according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
[0134] In one embodiment, the apparatus includes a determining module 94; wherein,
[0135] The determining module 94 is used to determine whether the subject of the photograph has changed;
[0136] The control module 93 is used to turn off the flash in response to a change in the main object.
[0137] In one embodiment, the apparatus includes a determining module 94; wherein,
[0138] The determining module 94 is used to determine the flash index of the flash lamp based on the acquired brightness of the ambient light;
[0139] The adjustment module 92 is used to adjust the output power of the flash lamp according to the flash index.
[0140] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0141] This disclosure also provides a communication device, including:
[0142] antenna;
[0143] Memory;
[0144] The processor, connected to both the antenna and the memory, is used to control the antenna to transmit and receive wireless signals by executing an executable program stored in the memory, and is capable of performing the steps of the wireless network access method provided in any of the foregoing embodiments.
[0145] The communication device provided in this embodiment can be the aforementioned terminal or base station. The terminal can be various human-mounted or vehicle-mounted terminals. The base station can be various types of base stations, such as 4G base stations or 5G base stations.
[0146] The antenna can be any type of antenna, such as a 3G antenna, a 4G antenna, or a 5G antenna, or other mobile antennas; the antenna may also include WiFi antennas or wireless charging antennas, etc.
[0147] The memory can include various types of storage media, which are non-transitory computer storage media that can continue to store information after the communication device loses power.
[0148] The processor can be connected to the antenna and memory via a bus or the like, for reading executable programs stored in the memory, such as at least one of the methods shown in any embodiment of this disclosure.
[0149] This disclosure also provides a non-transitory computer-readable storage medium storing an executable program, wherein when the executable program is executed by a processor, it implements the steps of the wireless network access method provided in any of the foregoing embodiments, such as at least one of the methods shown in any embodiment of this disclosure.
[0150] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0151] Figure 10 This is a block diagram illustrating an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0152] Reference Figure 10 The electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.
[0153] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0154] Memory 604 is configured to store various types of data to support the operation of device 600. Examples of this data include instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 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.
[0155] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.
[0156] Multimedia component 608 includes a screen that provides an output interface between the electronic device 600 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 sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the device 600 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.
[0157] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 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 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0158] I / O interface 612 provides an interface between processing component 602 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.
[0159] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 may detect the on / off state of device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0160] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 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.
[0161] In an exemplary embodiment, the electronic device 600 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.
[0162] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 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.
[0163] 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 application 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.
[0164] 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 method for reducing the power consumption of a camera terminal, characterized in that, The method includes: The power consumption value of the camera terminal is acquired periodically; wherein the size of each period is determined according to the usage frequency of the flash on the camera terminal. In response to the power consumption value being within a predetermined range, the output power of the flash lamp is adjusted according to the brightness of the ambient light. Based on the output power, control the flash to fire; The step of adjusting the output power of the flash lamp according to the acquired ambient light brightness in response to the power consumption value being within a predetermined range includes: In response to the power consumption value being greater than a predetermined value, the output power of the flash lamp is adjusted according to the brightness of the ambient light.
2. The method according to claim 1, characterized in that, Adjusting the output power of the flash lamp based on the acquired ambient light brightness includes: In response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power to a second power, wherein the first power is greater than the second power.
3. The method according to claim 1, characterized in that, Adjusting the output power of the flash lamp based on the acquired ambient light brightness includes: The output power of the flash is adjusted according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
4. The method according to claim 1, characterized in that, The method includes: Determine if the main subject of the photograph has changed; The flashlight is turned off in response to a change in the subject object.
5. The method according to claim 1, characterized in that, Adjusting the output power of the flash lamp based on the acquired ambient light brightness includes: The flash index of the flash unit is determined based on the obtained brightness of the ambient light. The output power of the flash is adjusted according to the flash index.
6. The method according to claim 5, characterized in that, The aperture value and / or flash distance of the camera terminal are determined based on the flash index.
7. The method according to claim 5, characterized in that, The voltage and / or current of the flash lamp are determined based on the output power.
8. A device for reducing the power consumption of a camera terminal, characterized in that, The device includes: The acquisition module is used to periodically acquire the power consumption value of the camera terminal; wherein the size of each period is determined according to the usage frequency of the flash on the camera terminal; An adjustment module is used to adjust the output power of the flash lamp according to the brightness of the ambient light, in response to the power consumption value being within a predetermined range. A control module is used to control the flash to fire based on the output power; The adjustment module is specifically used for: In response to the power consumption value being greater than a predetermined value, the output power of the flash lamp is adjusted according to the brightness of the ambient light.
9. The apparatus according to claim 8, characterized in that, The adjustment module is used for: In response to the ambient light brightness being greater than a brightness threshold, the output power of the flash lamp is adjusted from a first power to a second power, wherein the first power is greater than the second power.
10. The apparatus according to claim 8, characterized in that, The adjustment module is also used for: The output power of the flash is adjusted according to the brightness level, wherein the brightness level is determined based on the brightness of the ambient light.
11. The apparatus according to claim 8, characterized in that, The device further includes a determining module; wherein... The determining module is used to determine whether the subject of the photograph has changed; The control module is used to turn off the flash in response to a change in the main object.
12. The apparatus according to claim 8, characterized in that, The device further includes a determining module; wherein... The determining module is used to determine the flash index of the flash lamp based on the acquired brightness of the ambient light; The adjustment module is used to adjust the output power of the flash lamp according to the flash index.
13. An electronic device, characterized in that, The electronic device includes: a processor and a memory for storing computer services that can be run on the processor, wherein the processor, when running the computer services, implements the method of any one of claims 1 to 7.
14. A storage medium, characterized in that, The storage medium contains computer-executable instructions, which are executed by a processor to implement the method of any one of claims 1 to 7.