CN116634265A - Camera power consumption adjusting method and device - Google Patents

Camera power consumption adjusting method and device Download PDF

Info

Publication number
CN116634265A
CN116634265A CN202210125746.XA CN202210125746A CN116634265A CN 116634265 A CN116634265 A CN 116634265A CN 202210125746 A CN202210125746 A CN 202210125746A CN 116634265 A CN116634265 A CN 116634265A
Authority
CN
China
Prior art keywords
power consumption
consumption level
value
camera
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210125746.XA
Other languages
Chinese (zh)
Inventor
廖宽龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210125746.XA priority Critical patent/CN116634265A/en
Publication of CN116634265A publication Critical patent/CN116634265A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure relates to a method and a device for adjusting power consumption of a camera, and belongs to the technical field of terminals. Wherein the method comprises the following steps: acquiring the power consumption level of a camera; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state. According to the embodiment of the disclosure, the on or off of the flash lamp is determined according to the power consumption level of the camera, and the power of the flash lamp is further adjusted according to the power consumption level in the on state of the flash lamp, so that the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.

Description

Camera power consumption adjusting method and device
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a method and a device for adjusting power consumption of a camera.
Background
As cameras are more popular with the public, the requirements on the diversity of camera functions are higher and higher, algorithms loaded on the cameras are increased, so that the power consumption problem becomes more and more prominent, the power consumption problem enters the line of sight of the public from the background, attention is paid to how to efficiently adjust the power consumption of the cameras so as to reduce the power consumption of the cameras, and the problem to be solved is urgent.
Disclosure of Invention
The disclosure provides a method, a device, a terminal device, an electronic device and a computer readable storage medium for adjusting power consumption of a camera, so as to at least solve the problem of how to efficiently adjust the power consumption of the camera to reduce the power consumption of the camera. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a method for adjusting power consumption of a camera, including: acquiring the power consumption level of a camera; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state.
In some embodiments, a method for adjusting camera power consumption includes: in response to the target state being an off state, the exposure time of the image is increased while the camera is taking a picture.
In some embodiments, adjusting the power of the flash according to the power consumption level includes: acquiring a power adjustment value of a flash lamp corresponding to the power consumption level according to the power consumption level; the current power of the flash is adjusted to a power target value based on the power adjustment value.
In some embodiments, obtaining a power consumption level of a camera includes: acquiring an initial power consumption level of a camera; acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; and correcting the initial power consumption level based on the continuous power consumption value and/or the environment brightness value to obtain the final power consumption level of the camera.
In some embodiments, correcting the initial power consumption level based on the endurance electric quantity value to obtain a final power consumption level of the camera includes: determining the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being greater than or equal to a first preset electric quantity threshold; and determining a next power consumption level adjacent to and smaller than the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being smaller than the first preset electric quantity threshold.
In some embodiments, correcting the initial power consumption level based on the ambient brightness value to obtain a final power consumption level of the camera includes: and determining a next power consumption level adjacent to and less than the initial power consumption level as a final power consumption level in response to the ambient brightness value being less than the first preset brightness threshold.
In some embodiments, correcting the initial power consumption level based on the endurance electric value and the ambient brightness value to obtain a final power consumption level of the camera includes: correcting the initial power consumption level based on the cruising electric quantity value to obtain a corrected power consumption level; and correcting the corrected power consumption level again based on the ambient brightness value to obtain a final power consumption level.
In some embodiments, obtaining a target state of a flash of a camera includes: acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; a target state of the flash is determined based on the endurance power value and/or the ambient brightness value.
In some embodiments, determining the target state of the flash based on the endurance power value and/or the ambient brightness value includes: determining that the target state of the flash lamp is a closed state in response to the endurance electric quantity value being smaller than or equal to a second preset electric quantity threshold value and/or the environment brightness value being larger than or equal to the second preset brightness threshold value; or, determining that the target state of the flash lamp is an on state in response to the endurance electric quantity value being greater than a second preset electric quantity threshold value and/or the ambient brightness value being less than a second preset brightness threshold value.
In some embodiments, the power consumption level is positively correlated to the power adjustment value of the flash.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for adjusting power consumption of a camera, including: the first acquisition module is configured to acquire the power consumption level of the camera; the second acquisition module is configured to acquire a target state of a flash lamp of the camera; and the adjusting module is configured to respond to the target state as an on state and adjust the power of the flash lamp according to the power consumption level.
In some embodiments, the adjustment module is configured to: in response to the target state being an off state, the exposure time of the image is increased while the camera is taking a picture.
In some embodiments, the adjustment module is configured to: acquiring a power adjustment value of a flash lamp corresponding to the power consumption level according to the power consumption level; the current power of the flash is adjusted to a power target value based on the power adjustment value.
In some embodiments, the adjustment module is configured to: acquiring an initial power consumption level of a camera; acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; and correcting the initial power consumption level based on the continuous power consumption value and/or the environment brightness value to obtain the final power consumption level of the camera.
In some embodiments, the adjustment module is configured to: determining the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being greater than or equal to a first preset electric quantity threshold; and determining a next power consumption level adjacent to and smaller than the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being smaller than the first preset electric quantity threshold.
In some embodiments, the adjustment module is configured to: and determining a next power consumption level adjacent to and less than the initial power consumption level as a final power consumption level in response to the ambient brightness value being less than the first preset brightness threshold.
In some embodiments, the adjustment module is configured to: correcting the initial power consumption level based on the cruising electric quantity value to obtain a corrected power consumption level; and correcting the corrected power consumption level again based on the ambient brightness value to obtain a final power consumption level.
In some embodiments, the second acquisition module is configured to: acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; a target state of the flash is determined based on the endurance power value and/or the ambient brightness value.
In some embodiments, the second acquisition module is configured to: determining that the target state of the flash lamp is a closed state in response to the endurance electric quantity value being smaller than or equal to a second preset electric quantity threshold value and/or the environment brightness value being larger than or equal to the second preset brightness threshold value; or, determining that the target state of the flash lamp is an on state in response to the endurance electric quantity value being greater than a second preset electric quantity threshold value and/or the ambient brightness value being less than a second preset brightness threshold value.
In some embodiments, the power consumption level is positively correlated to the power adjustment value of the flash.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including: the power consumption adjusting device of the camera according to the second aspect of the embodiment of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory configured to store executable instructions of the processor; wherein the processor is configured to execute instructions to implement a method of adjusting camera power consumption as in the first aspect of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a method of adjusting camera power consumption as in the first aspect of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: acquiring the power consumption level of a camera; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state. According to the embodiment of the disclosure, the on or off of the flash lamp is determined according to the power consumption level of the camera, and the power of the flash lamp is further adjusted according to the power consumption level in the on state of the flash lamp, so that the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flowchart illustrating a method of adjusting camera power consumption according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of acquiring a target state of a flash of a camera according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating adjusting the present power of a flash to a power target value based on a power adjustment value, according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating a correction of an initial power consumption level based on a endurance power value and/or an ambient brightness value, according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus for adjusting camera power consumption according to an exemplary embodiment.
Fig. 6 is a block diagram of a terminal device, according to an example embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating a method for adjusting power consumption of a camera according to an exemplary embodiment, and as shown in fig. 1, the method for adjusting power consumption of a camera according to an embodiment of the disclosure may include the following steps:
s101, acquiring the power consumption level of the camera.
It should be noted that, the execution body of the method for adjusting the power consumption of the camera according to the embodiments of the present disclosure is the device for adjusting the power consumption of the camera according to the embodiments of the present disclosure, and the device may be disposed in an electronic device, for example, a mobile phone, a single-lens reflex, a digital camera, and other terminal devices, so as to execute the method for adjusting the power consumption of the camera according to the embodiments of the present disclosure.
In the embodiment of the disclosure, the camera may be understood as an image pickup device in a terminal device such as a mobile phone, a single-lens reflex and a digital camera, and after the camera is turned on, power consumption is detected to obtain power consumption parameter data of the camera, for example, by continuously obtaining data of a battery node of the camera device, a power consumption value after the camera is turned on is determined according to the data, so as to determine a power consumption level corresponding to the power consumption value after the camera is turned on.
Here, it should be noted that a correspondence relationship between the power consumption level of the camera and the power consumption value of the camera may be preset, for example, dividing different power consumption intervals respectively corresponds to three levels of high power consumption, medium power consumption and low power consumption. The present disclosure is not limited as to the number of divisions of the power consumption level.
S102, acquiring a target state of a flash lamp of the camera.
The target states of the flash lamp of the camera include two states, namely a flash lamp on state and a flash lamp off state, so that the flash lamp of the camera can be turned off under the condition that the set condition is met in order to reduce the power consumption of the camera, and the purpose of reducing the power consumption of the camera is achieved.
For example, when the electric quantity of the camera device is too low, in order to ensure the endurance of the camera device, the flash lamp may be turned off directly when photographing. Optionally, in order to obtain a brighter image effect, the defect of turning off the flash can be compensated by increasing the exposure time, so as to ensure the endurance of the camera device.
For example, when the current ambient light in which the camera device is located is sufficiently bright, the flash may be turned off directly when taking a picture in order to reduce the power consumption of the camera. Alternatively, in order to obtain a brighter image effect, the defect of turning off the flash can be compensated by increasing the exposure time.
And S103, responding to the target state as an on state, and adjusting the power of the flash lamp according to the power consumption level.
If the target state of the flash lamp of the camera is in an on state, the power of the flash lamp can be adjusted according to the power consumption level of the camera so as to reduce the power consumption of the flash lamp, thereby reducing the power consumption of the camera.
For example, when the power consumption level of the camera is high, the power of the flash is reduced to reduce the power consumption of the flash, thereby reducing the power consumption of the camera.
According to the method for adjusting the power consumption of the camera, the power consumption level of the camera is obtained; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state. According to the embodiment of the disclosure, the on or off of the flash lamp is determined according to the power consumption level of the camera, and the power of the flash lamp is further adjusted according to the power consumption level in the on state of the flash lamp, so that the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.
Fig. 2 is a flowchart illustrating a method for adjusting power consumption of a camera according to an exemplary embodiment, and as shown in fig. 2, based on the above embodiment, obtaining a target state of a flash of the camera may include the following steps:
s201, obtaining a continuous voyage electric quantity value and/or an environment brightness value of the camera.
And obtaining the current continuous voyage electric quantity value of the camera equipment. The cruising power of the camera device can be directly displayed on a screen, for example, the current cruising power value of the camera is 68%.
And acquiring an environment brightness value of the current environment of the camera. For example, the ambient brightness value of the current environment of the camera is 500lx.
S202, determining a target state of the flash lamp based on the continuous voyage electric quantity value and/or the environment brightness value.
And determining whether the target state of the flash lamp is an on state or an off state according to the obtained continuous voyage electric quantity value and/or the obtained environment brightness value.
For example, a second preset power threshold is preset, for example, the second preset power threshold may be set to 10%, if the obtained endurance power value of the camera device is smaller than or equal to the second preset power threshold, the endurance power value of the camera is considered to be too low, and in order to ensure the endurance capability of the camera device, the target state of the flash lamp is determined to be an off state, that is, the flash lamp is not turned on when the camera takes a photograph. Optionally, the defect of turning off the flash can be compensated by increasing the exposure time, so that the cruising ability of the camera device can be ensured under the condition that a brighter image effect is obtained.
For example, a second preset brightness threshold is preset, if the obtained ambient brightness value of the camera device is greater than or equal to the second preset brightness threshold, the environment where the camera is currently located is considered to be enough to enable the image shot by the camera to have a brighter image effect, and in order to reduce the power consumption value of the camera, the target state of the flash lamp is determined to be an off state, that is, the flash lamp is not turned on when the camera performs shooting. Optionally, the defect of turning off the flash can be compensated by increasing the exposure time, so that the cruising ability of the camera device can be ensured under the condition that a brighter image effect is obtained.
For example, a second preset power threshold is preset, for example, the second preset power threshold may be set to 10%, if the obtained endurance power value of the camera device is greater than the second preset power threshold, the endurance power value of the camera is considered to be sufficient to support the camera to take a picture, and then the target state of the flash lamp is determined to be an on state, that is, the flash lamp is turned on when the camera takes a picture.
For example, a second preset brightness threshold is preset, if the obtained ambient brightness value of the camera device is smaller than the second preset brightness threshold, the current environment of the camera is considered to be darker, the image shot by the camera cannot have a brighter image effect, and the target state of the flash lamp is determined to be an on state, namely the flash lamp is turned on when the camera takes a picture.
According to the method for adjusting the power consumption of the camera, provided by the embodiment of the disclosure, the target state of the flash lamp is determined in a targeted manner by combining the endurance capacity of the camera battery and the ambient brightness around the camera, so that the flash lamp is adjusted according to the target state of the flash lamp, when the endurance capacity value of the camera is too low or the ambient brightness value is high, the flash lamp is directly turned off, the defect that the flash lamp is not turned on for light filling is overcome by increasing the exposure time, the endurance capacity of a user is ensured, the power consumption of the camera can be effectively adjusted, and the power consumption of the camera is reduced.
When it is determined that the flash lamp is in the on state, further adjustment of the flash lamp power in the on state is required, fig. 3 is a flowchart illustrating a method for adjusting the power consumption of the camera according to an exemplary embodiment, and as shown in fig. 3, the method for adjusting the power consumption of the camera according to the embodiment of the disclosure may include the following steps:
s301, acquiring the power consumption level of the camera.
Regarding the implementation manner of step S301, the implementation manner of each embodiment in the present disclosure, for example, the implementation manner of step S101, will not be described herein.
S302, responding to the target state of the camera as an on state, and acquiring a power adjustment value of a flash lamp corresponding to the power consumption level according to the power consumption level.
And determining a power adjustment value of the flash lamp corresponding to the power consumption level of the camera according to the determined power consumption level of the camera.
For example, a correspondence between a power consumption level of the camera and a power adjustment value of a flash lamp of the camera may be preset, for example, when the power consumption level of the camera is divided into three power consumption levels of high power consumption, medium power consumption and low power consumption, the power adjustment value of the corresponding flash lamp may be set to be the first power adjustment value if the power consumption level of the camera is high power consumption; if the power consumption level of the camera is the medium power consumption, the power adjustment value of the corresponding flash lamp is a second power adjustment value; and if the power consumption level of the camera is low power consumption, the power adjustment value of the corresponding flash lamp is a third power adjustment value. The first power adjustment value of the flash lamp is larger than the second power adjustment value, and the second power adjustment value is larger than the third power adjustment value, namely the power consumption level and the power adjustment value of the flash lamp are positively correlated. It is understood that, after determining the power consumption level of the camera, the power adjustment value of the flash corresponding to the power consumption level may be determined according to the power consumption level of the camera. For example, the first power adjustment value of the flash may be set to 80mw, the second power adjustment value of the flash may be set to 40mw, and the third power adjustment value of the flash may be set to 20mw.
The present disclosure is not limited to the number of power consumption levels and is not intended as a limitation of the present disclosure.
S303, adjusting the current power of the flash lamp to a power target value based on the power adjustment value.
And adjusting the current power of the flash lamp according to the determined power adjustment value to obtain a power target value of the flash lamp. For example, if the determined power adjustment value is the second power adjustment value, in order to reduce the power consumption of the camera, the power of the flash is reduced according to the second power adjustment value based on the current power of the flash, and the power value obtained after the reduction is used as the power target value of the flash. For example, if the current power value of the flash lamp is a and the second power adjustment value is b, the power target value of the flash lamp is a-b.
According to the embodiment of the disclosure, according to the power consumption level of the camera, in the on state of the flash lamp, the power adjustment value of the flash lamp corresponding to the power consumption level is further obtained according to the power consumption level, so that the power of the flash lamp is adjusted, the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.
In addition to the above-described scheme, when it is determined that the flash is in the on state, further adjustment of the flash power in the on state is required, the following scheme may be adopted. Fig. 4 is a flowchart illustrating a method for adjusting power consumption of a camera according to an exemplary embodiment, and as shown in fig. 4, the method for adjusting power consumption of a camera according to an embodiment of the disclosure may include the following steps:
S401, acquiring an initial power consumption level of a camera.
In the above description, in order to fully consider multiple factors of the camera device, in order to enhance the experience of the user, the power consumption level corresponding to the power consumption value of the camera is not directly used as the final power consumption level, but the power consumption level corresponding to the power consumption value of the camera is used as the initial power consumption level.
Here, it should be noted that, similarly to the above, the correspondence relationship between the initial power consumption level of the camera and the power consumption value of the camera may be preset, for example, dividing different power consumption intervals into three initial levels corresponding to high power consumption, medium power consumption and low power consumption, respectively.
S402, obtaining a continuous voyage electric quantity value and/or an environment brightness value of the camera.
And obtaining the current continuous voyage electric quantity value of the camera equipment. The cruising power of the camera device can be directly displayed on a screen, for example, the current cruising power value of the camera is 68%.
And acquiring an environment brightness value of the current environment of the camera. For example, the ambient brightness value of the current environment of the camera is 500lx.
S403, correcting the initial power consumption level based on the continuous power consumption value and/or the environment brightness value to obtain the final power consumption level of the camera in response to the target state of the camera being the on state.
As an achievable way, the initial power consumption level obtained above may be corrected based on the endurance electric power value, to obtain the final power consumption level of the camera. Two implementation examples of correcting the obtained initial power consumption level based on the continuous power consumption value to obtain the final power consumption level of the camera are given below.
For example, a first preset power threshold is preset, and if the obtained cruising power value is greater than or equal to the first preset power threshold, the obtained initial power consumption level is determined to be a final power consumption level. For example, if the initial power consumption level is high power consumption, the first preset power threshold is set to 50%, and if the obtained cruising power value is 80%, the obtained initial power consumption level is high power consumption and is determined to be the final power consumption level, that is, the final power consumption level is high power consumption.
For example, a first preset power threshold is preset, and if the obtained cruising power value is smaller than the first preset power threshold, the next power consumption level adjacent to the initial power consumption level and smaller than the initial power consumption level is determined as the final power consumption level in consideration of the cruising capability of the device. For example, if the initial power consumption level is high power consumption, the first preset power threshold is set to 50%, and if the obtained cruising power value is 20%, the next power consumption level of the high power consumption is determined to be the final power consumption level, i.e. the middle power consumption is determined to be the final power consumption level. It should be noted that, if the initial power consumption level of the camera is low power consumption, since the low power consumption is already the lowest power consumption level, the low power consumption is not reduced when the continuous power value is smaller than the first preset power threshold.
As another implementation manner, the initial power consumption level may be corrected based on the obtained ambient brightness value, so as to obtain the final power consumption level of the camera. An example of an implementation of correcting the initial power consumption level based on the ambient brightness value to obtain the final power consumption level of the camera is given below.
For example, a first preset brightness threshold is preset, and if the ambient brightness value is smaller than the first preset brightness threshold, the next power consumption level adjacent to the initial power consumption level and smaller than the initial power consumption level is determined as the final power consumption level in consideration of the endurance capability of the device. For example, if the initial power consumption level is high power consumption, if the ambient brightness value is smaller than the first preset brightness threshold value, the next power consumption level of the high power consumption is determined as the final power consumption level, i.e. the middle power consumption is determined as the final power consumption level. It should be noted that, if the initial power consumption level of the camera is low power consumption, since the low power consumption is already the lowest power consumption level, the low power consumption is not reduced when the ambient brightness value is smaller than the first preset brightness threshold.
As another implementation manner, the initial power consumption level may be corrected by combining the obtained cruising electric power value and the environment brightness value, so as to obtain the final power consumption level of the camera. An implementation example of correcting the initial power consumption level to obtain the final power consumption level of the camera by combining the obtained continuous power consumption value and the obtained ambient brightness value is given below.
The initial power consumption level is modified based on the endurance electric quantity value, the modified power consumption level is obtained, and the modified power consumption level is modified again based on the environment brightness value, so that the final power consumption level is obtained. For example, a first preset power threshold and a first preset brightness threshold are preset, if the initial power consumption level is high power consumption, if the obtained cruising power value is smaller than the first preset power threshold, considering the cruising capability of the device, the next power consumption level adjacent to the initial power consumption level and smaller than the initial power consumption level is determined as a corrected power consumption level, after the corrected power consumption level is determined, the environment brightness value is compared with the first preset brightness threshold, and if the environment brightness value is smaller than the first preset brightness threshold, the next power consumption level of the middle power consumption is determined as a final power consumption level, namely, the low power consumption is determined as the final power consumption level.
S404, according to the power consumption level, acquiring a power adjustment value of the flash lamp corresponding to the power consumption level.
And determining a power adjustment value of the flash lamp corresponding to the final power consumption level of the camera according to the determined final power consumption level of the camera.
For example, a correspondence between a final power consumption level of the camera and a power adjustment value of a flash lamp of the camera may be preset, for example, when the power consumption level of the camera is divided into three power consumption levels of high power consumption, medium power consumption and low power consumption, the power adjustment value of the corresponding flash lamp may be set to be the first power adjustment value if the final power consumption level of the camera is high power consumption; if the final power consumption level of the camera is the medium power consumption, the power adjustment value of the corresponding flash lamp is a second power adjustment value; and if the final power consumption level of the camera is low power consumption, the power adjustment value of the corresponding flash lamp is a third power adjustment value. The first power adjustment value of the flash lamp is larger than the second power adjustment value, and the second power adjustment value is larger than the third power adjustment value, namely the power consumption level and the power adjustment value of the flash lamp are positively correlated. It will be appreciated that, after determining the final power consumption level of the camera, the power adjustment value of the flash corresponding to the final power consumption level of the camera may be determined according to the final power consumption level of the camera. For example, the first power adjustment value of the flash may be set to 80mw, the second power adjustment value of the flash may be set to 40mw, and the third power adjustment value of the flash may be set to 20mw.
The present disclosure is not limited to the number of power consumption levels and is not intended as a limitation of the present disclosure.
S405, based on the power adjustment value, the current power of the flash is adjusted to the power target value.
And adjusting the current power of the flash lamp according to the determined power adjustment value to obtain a power target value of the flash lamp. For example, if the determined power adjustment value is the second power adjustment value, in order to reduce the power consumption of the camera, the power of the flash is reduced according to the second power adjustment value based on the current power of the flash, and the power value obtained after the reduction is used as the power target value of the flash. For example, if the current power value of the flash lamp is a and the second power adjustment value is b, the power target value of the flash lamp is a-b.
According to the method for adjusting the power consumption of the camera, under the condition that the starting state of the flash lamp is determined, the initial power consumption level of the camera is corrected by combining the cruising ability of the battery of the camera and the ambient brightness around the camera, and the corresponding power adjustment value of the flash lamp is determined according to the corrected power consumption level, so that the power of the flash lamp is adjusted, the power consumption of the camera can be effectively adjusted, and the power consumption of the camera is reduced.
Fig. 5 is a block diagram illustrating an apparatus for adjusting camera power consumption according to an exemplary embodiment. As shown in fig. 5, an apparatus 500 for adjusting camera power consumption according to an embodiment of the present disclosure includes: a first acquisition module 51, a second acquisition module 52 and an adjustment module 53, wherein:
the first acquisition module 51 is configured to acquire a power consumption level of the camera.
The second acquisition module 52 is configured to acquire a target state of a flash of the camera.
The adjustment module 53 is configured to adjust the power of the flash according to the power consumption level in response to the target state being an on state.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The embodiment of the disclosure provides a device for adjusting power consumption of a camera, which is used for acquiring the power consumption level of the camera; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state. According to the embodiment of the disclosure, the on or off of the flash lamp is determined according to the power consumption level of the camera, and the power of the flash lamp is further adjusted according to the power consumption level in the on state of the flash lamp, so that the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.
Further, the adjustment module 53 is configured to: in response to the target state being an off state, the exposure time of the image is increased while the camera is taking a picture.
Further, the adjustment module 53 is configured to: acquiring a power adjustment value of a flash lamp corresponding to the power consumption level according to the power consumption level; the current power of the flash is adjusted to a power target value based on the power adjustment value.
Further, the adjustment module 53 is configured to: acquiring an initial power consumption level of a camera; acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; and correcting the initial power consumption level based on the continuous power consumption value and/or the environment brightness value to obtain the final power consumption level of the camera.
Further, the adjustment module 53 is configured to: determining the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being greater than or equal to a first preset electric quantity threshold; and determining a next power consumption level adjacent to and smaller than the initial power consumption level as a final power consumption level in response to the endurance electric quantity value being smaller than the first preset electric quantity threshold.
Further, the adjustment module 53 is configured to: and determining a next power consumption level adjacent to and less than the initial power consumption level as a final power consumption level in response to the ambient brightness value being less than the first preset brightness threshold.
Further, the adjustment module 53 is configured to: correcting the initial power consumption level based on the cruising electric quantity value to obtain a corrected power consumption level; and correcting the corrected power consumption level again based on the ambient brightness value to obtain a final power consumption level.
Further, the second acquisition module 52 is configured to: acquiring a continuous voyage electric quantity value and/or an environment brightness value of a camera; a target state of the flash is determined based on the endurance power value and/or the ambient brightness value.
Further, the second acquisition module 52 is configured to: determining that the target state of the flash lamp is a closed state in response to the endurance electric quantity value being smaller than or equal to a second preset electric quantity threshold value and/or the environment brightness value being larger than or equal to the second preset brightness threshold value; or, determining that the target state of the flash lamp is an on state in response to the endurance electric quantity value being greater than a second preset electric quantity threshold value and/or the ambient brightness value being less than a second preset brightness threshold value.
Further, the power consumption level is positively correlated with the power adjustment value of the flash.
In order to implement the above embodiment, as shown in fig. 6, the disclosure further proposes a terminal device 600, including a device 601 for adjusting camera power consumption, where the device 601 for adjusting camera power consumption has the same structure as the device 500 for adjusting camera power consumption in the above embodiment.
The terminal equipment of the embodiment of the disclosure obtains the power consumption level of the camera; acquiring a target state of a flash lamp of a camera; and adjusting the power of the flash lamp according to the power consumption level in response to the target state being the on state. According to the embodiment of the disclosure, the on or off of the flash lamp is determined according to the power consumption level of the camera, and the power of the flash lamp is further adjusted according to the power consumption level in the on state of the flash lamp, so that the power consumption of the camera can be efficiently adjusted, and the power consumption of the camera is reduced.
Fig. 7 is a block diagram of an electronic device 700, according to an example embodiment.
As shown in fig. 7, the electronic device 700 includes:
a memory 701 and a processor 702, a bus 703 connecting different components (including the memory 701 and the processor 702), the memory 701 storing a computer program, the processor 702 implementing the method of adjusting camera power consumption of the embodiments of the present disclosure when executing the program.
Bus 703 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 700 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by electronic device 700 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 701 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 704 and/or cache memory 705. Electronic device 700 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 706 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 703 through one or more data medium interfaces. Memory 701 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the disclosure.
A program/utility 708 having a set (at least one) of program modules 707 may be stored in, for example, memory 701, such program modules 707 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 707 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 700 may also communicate with one or more external devices 709 (e.g., keyboard, pointing device, display 710, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 711. Also, the electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 712. As shown in fig. 7, the network adapter 712 communicates with other modules of the electronic device 700 over the bus 703. It should be appreciated that although not shown in fig. 7, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 702 executes various functional applications and data processing by running programs stored in the memory 701.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the method for adjusting the power consumption of the camera in the embodiment of the disclosure, which is not repeated herein.
To achieve the above embodiments, the present disclosure also proposes a computer-readable storage medium.
Wherein the instructions in the computer-readable storage medium, when executed by the processor of the electronic device, enable the electronic device to perform a method of adjusting camera power consumption as before. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (23)

1. A method for adjusting power consumption of a camera, comprising:
acquiring the power consumption level of a camera;
acquiring a target state of a flash lamp of the camera;
and responding to the target state as an on state, and adjusting the power of the flash lamp according to the power consumption level.
2. The method according to claim 1, characterized in that it comprises:
in response to the target state being an off state, an exposure time of an image is increased while the camera is taking a picture.
3. The method of claim 1, wherein said adjusting the power of the flash according to the power consumption level comprises:
acquiring a power adjustment value of the flash lamp corresponding to the power consumption level according to the power consumption level;
and adjusting the current power of the flash lamp to a power target value based on the power adjustment value.
4. The method of claim 3, wherein the obtaining the power consumption level of the camera comprises:
Acquiring an initial power consumption level of the camera;
acquiring a continuous voyage electric quantity value and/or an environment brightness value of the camera;
and correcting the initial power consumption level based on the continuous voyage electric quantity value and/or the environment brightness value to obtain the final power consumption level of the camera.
5. The method of claim 4, wherein the modifying the initial power consumption level based on the endurance electric quantity value to obtain the final power consumption level of the camera comprises:
determining the initial power consumption level as the final power consumption level in response to the endurance electric quantity value being greater than or equal to a first preset electric quantity threshold;
and in response to the continuous power value being smaller than the first preset power threshold, determining a next power consumption level adjacent to and smaller than the initial power consumption level as the final power consumption level.
6. The method of claim 4, wherein modifying the initial power consumption level based on the ambient brightness value to obtain the final power consumption level of the camera comprises:
and in response to the ambient brightness value being less than a first preset brightness threshold, determining a next power consumption level adjacent to and less than the initial power consumption level as the final power consumption level.
7. The method of claim 4, wherein the modifying the initial power consumption level based on the endurance power value and the ambient brightness value to obtain the final power consumption level of the camera comprises:
correcting the initial power consumption level based on the cruising electric quantity value to obtain a corrected power consumption level;
and correcting the corrected power consumption level again based on the environment brightness value to obtain the final power consumption level.
8. The method of any of claims 1-7, wherein the obtaining the target state of the flash of the camera comprises:
acquiring a continuous voyage electric quantity value and/or an environment brightness value of the camera;
and determining the target state of the flash lamp based on the continuous voyage electric quantity value and/or the environment brightness value.
9. The method of claim 8, wherein the determining the target state of the flash based on the endurance electrical value and/or the ambient brightness value comprises:
determining that the target state of the flash lamp is a closed state in response to the continuous electric quantity value being smaller than or equal to a second preset electric quantity threshold value and/or the environment brightness value being larger than or equal to a second preset brightness threshold value; or,
And determining that the target state of the flash lamp is an on state in response to the continuous electric quantity value being greater than the second preset electric quantity threshold value and/or the environment brightness value being less than the second preset brightness threshold value.
10. The method of any of claims 3-7, wherein the power consumption level is positively correlated to the power adjustment value of the flash.
11. A device for adjusting power consumption of a camera, comprising:
the first acquisition module is configured to acquire the power consumption level of the camera;
a second acquisition module configured to acquire a target state of a flash of the camera;
and the adjusting module is configured to respond to the target state as an on state and adjust the power of the flash lamp according to the power consumption level.
12. The apparatus of claim 11, wherein the adjustment module is configured to:
in response to the target state being an off state, an exposure time of an image is increased while the camera is taking a picture.
13. The apparatus of claim 11, wherein the adjustment module is configured to:
acquiring a power adjustment value of the flash lamp corresponding to the power consumption level according to the power consumption level;
And adjusting the current power of the flash lamp to a power target value based on the power adjustment value.
14. The apparatus of claim 13, wherein the adjustment module is configured to:
acquiring an initial power consumption level of the camera;
acquiring a continuous voyage electric quantity value and/or an environment brightness value of the camera;
and correcting the initial power consumption level based on the continuous voyage electric quantity value and/or the environment brightness value to obtain the final power consumption level of the camera.
15. The apparatus of claim 14, wherein the adjustment module is configured to:
determining the initial power consumption level as the final power consumption level in response to the endurance electric quantity value being greater than or equal to a first preset electric quantity threshold;
and in response to the continuous power value being smaller than the first preset power threshold, determining a next power consumption level adjacent to and smaller than the initial power consumption level as the final power consumption level.
16. The apparatus of claim 14, wherein the adjustment module is configured to:
and in response to the ambient brightness value being less than a first preset brightness threshold, determining a next power consumption level adjacent to and less than the initial power consumption level as the final power consumption level.
17. The apparatus of claim 14, wherein the adjustment module is configured to:
correcting the initial power consumption level based on the cruising electric quantity value to obtain a corrected power consumption level;
and correcting the corrected power consumption level again based on the environment brightness value to obtain the final power consumption level.
18. The apparatus of any one of claims 11-17, wherein the second acquisition module is configured to:
acquiring a continuous voyage electric quantity value and/or an environment brightness value of the camera;
and determining the target state of the flash lamp based on the continuous voyage electric quantity value and/or the environment brightness value.
19. The apparatus of claim 18, wherein the second acquisition module is configured to:
determining that the target state of the flash lamp is a closed state in response to the continuous electric quantity value being smaller than or equal to a second preset electric quantity threshold value and/or the environment brightness value being larger than or equal to a second preset brightness threshold value; or,
and determining that the target state of the flash lamp is an on state in response to the continuous electric quantity value being greater than the second preset electric quantity threshold value and/or the environment brightness value being less than the second preset brightness threshold value.
20. The apparatus of any of claims 13-17, wherein the power consumption level is positively correlated to the power adjustment value of the flash.
21. A terminal device, comprising: a device for adjusting camera power consumption according to any of claims 11-20.
22. An electronic device, comprising:
a processor;
a memory configured to store executable instructions of the processor;
wherein the processor is configured to execute the instructions to implement the method of any of claims 1-10.
23. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-10.
CN202210125746.XA 2022-02-10 2022-02-10 Camera power consumption adjusting method and device Pending CN116634265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210125746.XA CN116634265A (en) 2022-02-10 2022-02-10 Camera power consumption adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210125746.XA CN116634265A (en) 2022-02-10 2022-02-10 Camera power consumption adjusting method and device

Publications (1)

Publication Number Publication Date
CN116634265A true CN116634265A (en) 2023-08-22

Family

ID=87596000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210125746.XA Pending CN116634265A (en) 2022-02-10 2022-02-10 Camera power consumption adjusting method and device

Country Status (1)

Country Link
CN (1) CN116634265A (en)

Similar Documents

Publication Publication Date Title
US8576256B2 (en) Dynamic backlight adaptation for video images with black bars
CN110619860B (en) Screen refresh rate adjusting method and device, storage medium and electronic equipment
EP3379822A1 (en) Real-time video enhancement method, terminal, and nonvolatile computer readable storage medium
CN110751608A (en) Night scene high dynamic range image fusion method and device and electronic equipment
US10446089B2 (en) Method, system and computer readable storage medium for driving liquid crystal displays
CN111432143A (en) Control method, system, medium and electronic device for switching camera modules
WO2017049939A1 (en) Picture display method, device, and terminal
US10769416B2 (en) Image processing method, electronic device and storage medium
CN111294575A (en) Image processing method, image processing device, electronic equipment and storage medium
US20230136022A1 (en) Virtual reality display device and control method thereof
CN113315965B (en) Optical anti-shake test method, device, equipment and medium
CN115082350A (en) Stroboscopic image processing method and device, electronic device and readable storage medium
CN112669769A (en) Display screen box body parameter correction method and device, equipment and storage medium
US20190220948A1 (en) Method and associated processor for buffer swap
CN116634265A (en) Camera power consumption adjusting method and device
CN109831629B (en) Terminal photographing mode adjusting method and device, terminal and storage medium
CN111131707B (en) Shooting method and device based on raspberry pie
CN112925478A (en) Camera storage space control method, intelligent terminal and computer readable storage medium
CN115118886A (en) Image processing chip, application processing chip, electronic device and image processing method
CN116634264A (en) Camera power consumption adjusting method and device
CN116366956A (en) Camera power consumption adjusting method and device
CN110891148A (en) Self-timer light supplement method and system, double-screen terminal and computer readable storage medium
CN112529823B (en) Image processing method, device and equipment
CN113194267B (en) Image processing method and device and photographing method and device
CN104717430A (en) Image processing method and device

Legal Events

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