CN116366968A - Image shooting method and device, electronic equipment and storage medium - Google Patents

Image shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116366968A
CN116366968A CN202111589310.8A CN202111589310A CN116366968A CN 116366968 A CN116366968 A CN 116366968A CN 202111589310 A CN202111589310 A CN 202111589310A CN 116366968 A CN116366968 A CN 116366968A
Authority
CN
China
Prior art keywords
target
power consumption
terminal
shooting
image
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
CN202111589310.8A
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 CN202111589310.8A priority Critical patent/CN116366968A/en
Publication of CN116366968A publication Critical patent/CN116366968A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure relates to an image shooting method and device, electronic equipment and storage medium. Wherein the method comprises the following steps: determining a target power consumption level corresponding to a target shooting scene where a terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene; and adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.

Description

Image shooting method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of terminals, and in particular, to an image shooting method and device, electronic equipment and a storage medium.
Background
With the advent of the national photography era, various terminals are often equipped with cameras for satisfying the photography and image capturing demands of users.
However, as the requirements of users on image quality are higher and higher, the process of processing the shot image becomes more and more complex, so that the problems of higher heating, untimely response and the like of the terminal are easily caused due to higher power consumption of the terminal in the process of shooting and processing the image.
Disclosure of Invention
The disclosure provides an image shooting method and device, electronic equipment and storage medium, which can adjust resolution adopted when shooting images according to shooting scenes of a terminal, and further control power consumption of the terminal.
According to a first aspect of the present disclosure, there is provided an image capturing method including:
determining a target power consumption level corresponding to a target shooting scene where a terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene;
and adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.
According to a second aspect of the present disclosure, there is provided an image photographing apparatus including:
the determining unit is used for determining a target power consumption level corresponding to a target shooting scene where the terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene;
and the adjusting unit is used for adjusting the target resolution adopted by the terminal when the terminal shoots the image based on the target power consumption level and shooting the image based on the adjusted target resolution.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of the first aspect by executing the executable instructions.
According to a fourth aspect of the present disclosure there is provided a computer readable storage medium having stored thereon computer instructions which when executed by a processor perform the steps of the method according to the first aspect.
In the technical scheme of the disclosure, before the terminal shoots an image, the shooting scene of the terminal is preferentially determined, and the power consumption level corresponding to the shooting scene is determined. On the basis, the resolution adopted by the terminal when shooting the image can be adjusted according to the determined power consumption level, and the image shooting is carried out based on the adjusted resolution.
It will be appreciated that when different resolutions are employed by the terminal, the processing resources required to be consumed are different and the resulting power consumption is also different. The power consumption level in the disclosure is used for reflecting the influence degree of the terminal power consumption when image shooting is performed under the corresponding shooting scene. In other words, the present disclosure is equivalent to adjusting the target resolution based on the extent to which the current shooting scene affects the power consumption of the terminal. Therefore, the method and the device are used for adjusting the most essential factors influencing the power consumption of the terminal on the basis of evaluating the influence degree of the current shooting scene on the power consumption of the terminal, namely the method and the device fundamentally solve the problem that the power consumption of the terminal caused by image shooting cannot be controlled.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of an image photographing method shown in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart of another image photographing method shown in an exemplary embodiment of the present disclosure;
fig. 3 is a block diagram of an image photographing device according to an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram of another image photographing device shown in an exemplary embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Along with the higher and higher requirements of users on the quality of the shot images, various manufacturers frequently upgrade and upgrade the image shooting technology of the terminal, so that more and more complex image processing algorithms are adopted, and more abundant hardware structures are configured. Accordingly, in the image shooting process of the terminal, the power consumption of the terminal is also larger and larger, so that the problems of higher heating, untimely response and the like of the terminal often occur, and the use experience of a user is seriously affected.
Therefore, the disclosure provides an image shooting method to avoid the problems of terminal heating, untimely response and the like caused by excessively high power consumption of a terminal in the image shooting process in the related technology.
Fig. 1 is a diagram illustrating an image photographing method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method may include the steps of:
step 102, determining a target power consumption level corresponding to a target shooting scene where the terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene.
In the disclosure, before image shooting is performed, a target shooting scene where a terminal is currently located and a target power consumption level corresponding to the target shooting scene are preferentially determined, so that the influence degree of the target shooting scene where the terminal is currently located on the power consumption of the terminal is known. After the target power consumption level is obtained, the target resolution adopted by the terminal in image shooting can be further adjusted according to the target power consumption level, and image shooting is carried out based on the adjusted target resolution.
It should be understood that the power consumption level in the present disclosure is used to characterize the influence degree of the terminal on the power consumption of the terminal when the terminal performs image capturing under the corresponding capturing scene, and the present disclosure adjusts the target resolution based on the target power consumption level of the target capturing scene where the terminal is currently located, which is equivalent to the present disclosure that, on the basis of evaluating the influence degree of the capturing scene where the terminal is currently located on the power consumption of the terminal, the target resolution is adjusted based on the evaluation result, so that the strict control on the power consumption of the terminal in the image capturing process is realized.
In actual operation, the method and the device can reduce the target resolution on the basis of guaranteeing the basic image quality of the shot image, so as to avoid overhigh target resolution and overhigh terminal power consumption. For example, the adjustment amplitude of the target resolution may be positively correlated with the target power consumption level of the target shooting scene where the terminal is currently located, in other words, the higher the target power consumption level is, the higher the adjustment amplitude of the target resolution is, and vice versa, the smaller the adjustment amplitude is. The reason for this is that the higher the target power consumption level is, the larger the influence on the power consumption of the terminal is when the terminal performs image shooting in the target shooting scene is, and the power consumption of the terminal may be increased sharply, at this time, the target resolution should be reduced as much as possible, so as to avoid the power consumption failing to be reduced due to the excessively high target resolution.
In practical application, technicians can perform continuous tests and experiments to determine that the terminal can consider the image effect and the resolution adjustment strategy of the terminal power consumption when the terminal is in the power consumption level corresponding to different shooting scenes according to the test results and the experiment results. Resolution adjustment strategies corresponding to different power consumption levels can be prestored in the terminal, so that the terminal can determine a target resolution optimization strategy corresponding to the target power consumption level according to the target power consumption level of a target shooting mode where the terminal is positioned before image shooting, and adjust the target resolution of the terminal according to the target resolution optimization strategy. It should be stated that, in the target resolution adjustment strategy, the specific value of the target resolution to be adopted under the target power consumption level can be directly recorded, and then the terminal can directly adjust the target resolution to the specific value; the "amplitude of adjustment of the target resolution at the target power consumption level" may also be recorded, and then the terminal may simply adjust the target resolution according to the amplitude. Of course, this example is merely illustrative, and how to set the content in the resolution adjustment policy specifically may be determined by those skilled in the art according to actual circumstances, which is not limited by the present disclosure.
In the present disclosure, a photographing scene of a terminal may be divided from multiple dimensions.
In an embodiment, the shooting scene in the present disclosure may refer to a shooting mode of a terminal, for example, a preview mode, an HDR mode, a portrait mode, a panoramic mode, a video recording mode, and the like. In this embodiment, the terminal may be preset with target power consumption levels corresponding to respective shooting modes, so that before image shooting, the terminal may determine, based on the target shooting mode in which the terminal is currently located, the target power consumption level corresponding to the target shooting mode. On the basis, the target resolution adopted by the terminal in image shooting can be further adjusted based on the target power consumption level.
In another embodiment, the shooting scene in the present disclosure may refer to exposure parameters of a terminal, and in actual operation, a technician may preset several sets of exposure parameter ranges, and power consumption levels corresponding to each set of exposure parameter ranges. On the basis, before the terminal shoots the image, the target exposure parameter range of the target exposure parameter adopted by the terminal at present can be determined, and the power consumption level corresponding to the target exposure parameter range is determined as the target power consumption level, so that the target resolution adopted by the terminal during the image shooting is further adjusted based on the target power consumption level.
It should be understood that both the shooting mode and the exposure parameters described above affect the power consumption of the terminal to a large extent. For example, in the portrait mode, the terminal generally needs to process the captured image through a relatively complex portrait processing algorithm, which causes an increase in power consumption of the terminal; in the panoramic mode, more picture contents are shot, so that the data size to be processed by the terminal in image processing is larger, and further the power consumption of the terminal is increased. For another example, when different parameter combinations are used for exposure parameters, there is a certain difference in the amount of light entering, which also causes a difference in the power consumption of the terminal. Of course, in actual operation, the shooting scene may also include the shooting mode and the exposure parameters, even other parameter values that affect the power consumption of the terminal in the image shooting process, which parameters the shooting scene in the present disclosure is specifically affected by, and may be determined by those skilled in the art according to actual situations, which is not limited in the present disclosure.
In the present disclosure, the terminal may also preferentially determine whether power consumption control is required during image capturing before image capturing. Specifically, a power consumption threshold may be preset in the terminal, and before the terminal performs image capturing, the power consumption parameter of the terminal may be preferentially acquired to determine whether the power consumption parameter has exceeded the preset power consumption threshold, where in the case that the power consumption threshold has been exceeded, it is determined that power consumption control is required, that is, the above operations of determining the target power consumption level and performing the target resolution adjustment based on the power consumption level are performed.
It should be understood that the obtained power consumption parameter reflects the current power consumption condition of the terminal, and if the power consumption parameter indicates that the power consumption of the terminal is very low, even if the terminal adopts a shooting scene with the greatest influence on the power consumption to perform image shooting, the problems of heating, untimely response and the like of the terminal may not be caused. Therefore, in this case, power consumption control may not be performed during image capturing; on the contrary, under the condition that the power consumption of the terminal is higher, the power consumption control is obviously needed in the image shooting process, so that the problems of heating, untimely response and the like of the terminal caused by the excessively high power consumption are avoided.
And step 104, adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.
In the present disclosure, when power consumption control is performed, it is also required to ensure that an image obtained by shooting meets a certain image quality requirement, so as to consider both terminal power consumption and image effect. Therefore, after determining the target power consumption level, the present disclosure may further obtain the target image quality requirement currently adopted by the terminal, so as to adjust the target resolution of the terminal according to the target power consumption level and the target image quality requirement.
For example, a correspondence relationship between the image quality requirements and the resolutions may be preset in the terminal, where each image quality requirement corresponds to a plurality of resolutions. Then, after the terminal determines the current target image quality requirement adopted by the terminal, a plurality of resolutions corresponding to the target image quality requirement can be determined as resolutions to be selected, and the resolutions to be selected corresponding to the target power consumption level are determined from the resolutions to be selected to be used as the target resolutions adopted in the image shooting process.
It should be noted that, since different terminals have different requirements for the image quality of the captured image, the image quality requirements corresponding to the respective terminals can be set when the terminals leave the factory. For example, for a mobile phone with higher image quality requirement, such as a camera mobile phone for shooting by a main camera, the image quality requirement of the mobile phone can be set to be high definition or ultra-definition when leaving the factory; for another example, for a mobile phone with low image quality requirement, such as a game mobile phone with main playing performance, the image quality requirement of the mobile phone can be set as standard definition when leaving the factory. In addition to setting the image quality requirements of the terminal at the time of shipment, the same terminal may also include a plurality of different image quality requirements, for example, a plurality of image quality requirements may be preset in the terminal, selected by the user, and then the target resolution adopted at the time of image capturing may be determined based on the image quality requirements selected by the user. Of course, the above examples are merely illustrative, and how to determine the image quality requirement specifically, can be determined by those skilled in the art according to the actual situation, and the present disclosure is not limited thereto.
In the method, the shooting scene with higher power consumption level can be subjected to more targeted power consumption optimization. Specifically, a preset level can be set in the terminal, and corresponding optimization strategies are configured for the power consumption level with the level higher than the preset level, wherein each optimization strategy is designed for the difficulty coefficient of an image algorithm adopted by the shooting scene where the corresponding power consumption level is located. On the basis, under the condition that the target power consumption level is higher than the preset level, the terminal can acquire the target difficulty coefficient of the image algorithm adopted in the target shooting scene, and the target optimization strategy corresponding to the target difficulty coefficient is determined from the corresponding relation between the preset difficulty coefficient and the optimization strategy, so that the target resolution of the terminal is adjusted according to the target optimization strategy.
For example, when the power consumption level is higher, the image algorithm adopted in the image mode may be complex, i.e. the difficulty coefficient is higher, so that the power consumption of the terminal is higher as in the portrait mode; it is also possible that in the panoramic mode, the image algorithm itself is not complex, but the terminal power consumption is high due to the large amount of data to be processed. It should be understood that, for shooting scenes with different algorithm difficulties, the adopted optimization strategies for the target resolution should be different, for example, for an image algorithm with a higher difficulty coefficient, the originally adopted resolution in the corresponding shooting scene may be higher, and even if the adjustment amplitude of the target resolution is larger, the adjustment amplitude of the target resolution will not cause the excessively poor effect of the finally obtained image, so that the optimization strategies configured for the target resolution may be to adjust the target resolution to a larger amplitude. Of course, this example is merely illustrative, and the actual configuration in this case may also be different from the description in this example, and how to configure the optimization strategy for the image algorithm with different difficulty coefficients may be configured by those skilled in the art according to the actual case, without specific limitation in this disclosure.
It should be noted that, in the disclosure, the terminal for executing the image capturing method may be any type of terminal device, for example, the terminal device may be a mobile terminal such as a smart phone, a tablet computer, or a fixed terminal such as a smart television, a PC (personal computer ), or the like. It should be understood that, only the terminal device having the image capturing function may be used as the terminal responsible for executing the image capturing method described above in the present disclosure, and specifically, which type of terminal device is used as the execution subject of the technical solution of the present disclosure may be determined by those skilled in the art according to actual needs, which is not limited in this disclosure.
As can be seen from the above description, before the terminal performs image capturing, the present disclosure preferably determines a capturing scene in which the terminal is located, and determines a power consumption level corresponding to the capturing scene. On the basis, the resolution adopted by the terminal when shooting the image can be adjusted according to the determined power consumption level, and the image shooting is carried out based on the adjusted resolution.
It will be appreciated that when different resolutions are employed by the terminal, the processing resources required to be consumed are different and the resulting power consumption is also different. The power consumption level in the disclosure is used for reflecting the influence degree of the terminal power consumption when image shooting is performed under the corresponding shooting scene. In other words, the present disclosure is equivalent to adjusting the target resolution based on the extent to which the current shooting scene affects the power consumption of the terminal. Therefore, the method and the device are based on evaluating the influence degree of the current shooting scene on the power consumption of the terminal, and the most essential factors influencing the power consumption of the terminal are adjusted, namely the method and the device control the power consumption of the terminal caused by image shooting fundamentally.
Further, when the target resolution of the terminal is adjusted according to the power consumption level, the adjustment amplitude may be positively correlated with the determined target power consumption level, that is, the higher the target power consumption level is, the larger the adjustment amplitude is, and vice versa, the smaller the adjustment amplitude is. It should be understood that the higher the target power consumption level is, the higher the influence degree on the terminal power consumption is in the current target shooting mode, and if the adjustment amplitude is too small, the terminal power consumption is likely to be unable to be effectively controlled. However, in the present disclosure, the adjustment range of the target resolution is positively related to the target power consumption level, so that resolution adjustment with a larger range can be performed in a shooting scene with a higher power consumption level, and the problem that the terminal power consumption cannot be effectively controlled due to mismatching of the adjustment range and the power consumption level is avoided.
Still further, the present disclosure may further obtain a target image quality requirement currently adopted by the terminal, so as to determine, together, a target resolution adopted when the terminal image is captured according to the target power consumption level and the target image quality requirement. In actual operation, a plurality of resolutions to be selected corresponding to the target image quality requirements can be set, and then the target resolution is determined from the plurality of resolutions to be selected under the condition that the target power consumption level is determined. It should be appreciated that the resolution to be selected, which is set for the target image quality requirement, corresponds to a number of choices above a lower limit value specifying the resolution that the terminal can employ, and ultimately the target resolution is determined based on the target power consumption level. Therefore, the method and the device can reduce the power consumption of the terminal by adjusting the target resolution on the basis of guaranteeing the final presentation effect of the image, namely, the method and the device can give consideration to the presentation effect of the image and the power consumption control of the terminal.
In the following, the technical scheme of the present disclosure will be described by taking image capturing by a smart phone as an example.
Fig. 2 is a flowchart of another image photographing method shown in an exemplary embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:
step 201, a camera application is started.
In this embodiment, a camera application may be pre-installed in the smart phone, so that a user can take an image through the camera application at any time.
In the camera application, several setting options may be included. Wherein, the options of a plurality of shooting modes and the options of a plurality of image quality requirements can be included. The user can select the shooting mode and the image quality requirement to be adopted in the shooting according to the shooting requirement of the user.
For example, the options for shooting modes presented in the smartphone may include: preview mode, normal mode, HDR mode, portrait mode, macro mode; and the options for the presented image quality requirements may include: standard definition, high definition and ultra definition.
Step 202, determining a target image quality requirement and a target shooting mode selected by a user.
In view of the above, it is assumed that the user triggers the portrait mode option and the super-definition option included in the program interface of the camera application program by clicking operation, and then the portrait mode may be determined as the target shooting mode to be adopted in the current shooting, and the super-definition option may be determined as the target image quality requirement. On this basis, the default resolution corresponding to both the portrait mode and the super-clear image quality can be determined, and the default resolution is tentatively set as the target resolution adopted in the current shooting. Typically, the default resolution is high to give priority to ensuring the presentation of the final captured image.
Step 203, obtaining power consumption parameters of the smart phone.
In this embodiment, before image capturing, it is first required to adjust the target resolution adopted in the present capturing according to whether the current power consumption parameter of the terminal is too high, where under the condition that the current power consumption parameter is too high, so as to avoid that the power consumption of the mobile phone increases sharply due to the too high target resolution.
Step 204, judging whether the value of the power consumption parameter exceeds a power consumption threshold; if yes, go to step 205, otherwise, go to step 209.
In this embodiment, a power consumption threshold may be preset to be used for judging whether the power consumption of the smart phone is higher. In the case of yes, the target resolution may be adjusted according to the target shooting mode and the target image quality requirement, and in the case of no, the image shooting may be directly performed based on the default resolution.
In step 205, a target power consumption level corresponding to the target shooting mode is determined.
Taking the above example as an example, assume that the power consumption levels corresponding to the preset shooting modes may be as shown in the following table 1:
Figure BDA0003429278860000101
TABLE 1
Then, in the case where it is determined that the target photographing mode is the portrait mode, it is possible to determine that the target power consumption level is level 3.
Step 206, obtaining the corresponding relation between the preset image quality requirement, the power consumption level and the resolution in the smart phone.
Taking the above example, it is further assumed that the correspondence between the preset image quality requirement, the power consumption level, and the resolution in the terminal may be as shown in the following table 2:
standard definition High definition Super-clean food
Power consumption level 1 960*720 1920*1080 2560*1440
Power consumption class 2 800*600 1600*900 1920*1440
Power consumption level 3 640*480 1280*720 1600*1200
TABLE 2
Then, based on the power consumption level 3 and the super definition image quality, the target resolution may be determined to be 1600×1200.
Step 207, determining a target resolution corresponding to both the target image quality requirement and the target power consumption level from the correspondence.
In response to detecting the photographing operation, image photographing is performed based on the target resolution, step 208.
In this embodiment, after the user completes setting, the user may trigger the shooting control displayed in the program interface of the camera application program to shoot the image.
With the above example in mind, after detecting the triggering operation of the user on the photographing control, image photographing can be performed based on the resolution of "1600×1200".
Step 209, determining a default resolution corresponding to the target shooting mode and the target image quality requirement.
In this embodiment, when power consumption control is not required in the image capturing process, a default resolution corresponding to the target capturing mode and the target image quality requirement can be determined, and image capturing is directly performed based on the default resolution.
In response to detecting the photographing operation, image photographing is performed based on the default resolution, step 210.
In the above example, when the target shooting mode is the portrait mode and the target image quality is required to be super-clear, the default resolution is generally higher than the highest resolution in the super-clear list of table 2, and may be "2880×1620", for example. Then, when the power consumption parameter of the smart phone does not exceed the power consumption threshold, image capturing can be performed based on the default resolution of 2880×1620.
In the above example, if the power consumption control is not performed, the image capturing is performed with the default resolution of "2880×1620"; if the power consumption control is performed, the image capturing is performed with the adjusted target resolution of 1600×1200. It is apparent that, after the power consumption control is performed, the resolution adopted in the image capturing is obviously smaller than the default resolution adopted in the case where the power consumption control is not performed, and the power consumption caused by the image capturing operation can be obviously reduced.
As can be seen from the above technical solution, in this embodiment, the power consumption parameter of the smart phone can be obtained first, so as to determine whether to adjust the target resolution adopted when the image is captured according to the preset power consumption threshold, so as to perform power consumption control, thereby avoiding the problem that the resolution adjustment is performed when the power consumption of the smart phone is low, and the presentation effect of the captured image is reduced.
Further, when determining that the target resolution needs to be adjusted when the image is captured, the embodiment may determine the target resolution to be adjusted based on the capturing mode and the image quality requirement of the smart phone, so as to capture the image according to the target resolution. The adjusted target resolution is obviously lower than the default resolution corresponding to the corresponding shooting mode and image quality requirement, so that the power consumption of the smart phone in the image shooting process is fundamentally reduced.
Fig. 3 is a block diagram of an image photographing device according to an exemplary embodiment of the present disclosure. Referring to fig. 3, the apparatus includes a determination unit 301 and an adjustment unit 302.
The determining unit 301 determines a target power consumption level corresponding to a target shooting scene where the terminal is currently located, where the target power consumption level is used for characterizing a power consumption influence degree of image shooting performed under the target shooting scene on the terminal;
an adjusting unit 302 adjusts a target resolution adopted by the terminal when capturing an image based on the target power consumption level, and captures an image based on the adjusted target resolution.
Optionally, the adjustment amplitude of the target resolution is positively correlated with the target power consumption level.
Optionally, the determining unit 301 is further configured to:
determining a target shooting mode adopted by the terminal currently;
and determining a target power consumption level corresponding to the target shooting mode from a preset mapping relation between the shooting mode and the power consumption level.
Optionally, the determining unit 301 is further configured to:
determining a target exposure parameter currently adopted by a terminal and a target exposure parameter range to which the target exposure parameter belongs;
and determining a target power consumption level corresponding to the target exposure parameter range from a preset mapping relation between the exposure parameter range and the power consumption level.
Alternatively to this, the method may comprise,
the determining unit 301 is also used for: determining a plurality of resolutions to be selected corresponding to the target image quality requirements currently adopted by the terminal from the corresponding relation between the preset image quality requirements and the resolutions;
the adjustment unit 302 is further adapted to: and determining the resolution to be selected corresponding to the target power consumption level from the resolutions to be selected, wherein the resolution to be selected is used as the target resolution adopted by the terminal in image shooting.
Optionally, the adjusting unit 302 is further configured to:
when the target power consumption level is higher than a preset level, acquiring a target difficulty coefficient of an image algorithm adopted in the target shooting scene;
determining a target optimization strategy corresponding to the target difficulty coefficient from the corresponding relation between the preset difficulty coefficient and the optimization strategy, and adjusting the target resolution based on the target optimization strategy.
As shown in fig. 4, fig. 4 is a block diagram of another image photographing device according to an exemplary embodiment of the present disclosure, which includes, on the basis of the foregoing embodiment shown in fig. 3: an acquisition unit 303.
Optionally, the method comprises the following steps:
an obtaining unit 303, configured to obtain a current power consumption parameter of the terminal;
wherein the operations of determining the target power consumption level and adjusting the target resolution based on the power consumption level are performed if the value of the power consumption parameter exceeds a power consumption threshold.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Correspondingly, the disclosure also provides an image shooting device, which comprises: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the image capturing method according to any of the above embodiments, for example, the method may include: determining a target power consumption level corresponding to a target shooting scene where a terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene; and adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.
Accordingly, the present disclosure also provides an electronic device including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, where the one or more programs include instructions for implementing the image capturing method according to any of the foregoing embodiments, for example, the method may include: determining a target power consumption level corresponding to a target shooting scene where a terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene; and adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.
FIG. 5 is a block diagram illustrating an apparatus 500 for implementing a process scheduling method, according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 5, an apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the apparatus 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on the apparatus 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 500 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the apparatus 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 may also detect a change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in temperature of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G LTE, 5G NR (New Radio), or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 516 includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of apparatus 500 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
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.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present disclosure.

Claims (10)

1. An image capturing method, comprising:
determining a target power consumption level corresponding to a target shooting scene where a terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene;
and adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level, and shooting the image based on the adjusted target resolution.
2. The method of claim 1, wherein the adjustment magnitude of the target resolution is positively correlated with the target power consumption level.
3. The method of claim 1, wherein determining a target power consumption level corresponding to a target shooting scene in which the terminal is currently located comprises:
determining a target shooting mode adopted by the terminal currently;
and determining a target power consumption level corresponding to the target shooting mode from a preset mapping relation between the shooting mode and the power consumption level.
4. The method of claim 1, wherein determining a target power consumption level corresponding to a target shooting scene in which the terminal is currently located comprises:
determining a target exposure parameter currently adopted by a terminal and a target exposure parameter range to which the target exposure parameter belongs;
and determining a target power consumption level corresponding to the target exposure parameter range from a preset mapping relation between the exposure parameter range and the power consumption level.
5. The method according to claim 1, characterized in that it comprises:
acquiring current power consumption parameters of the terminal;
wherein the operations of determining the target power consumption level and adjusting the target resolution based on the power consumption level are performed if the value of the power consumption parameter exceeds a power consumption threshold.
6. The method according to claim 1, characterized in that it comprises:
determining a plurality of resolutions to be selected corresponding to the target image quality requirements currently adopted by the terminal from the corresponding relation between the preset image quality requirements and the resolutions;
the adjusting the target resolution adopted by the terminal when shooting the image based on the target power consumption level comprises the following steps: and determining the resolution to be selected corresponding to the target power consumption level from the resolutions to be selected, wherein the resolution to be selected is used as the target resolution adopted by the terminal in image shooting.
7. The method of claim 1, wherein adjusting the target resolution employed by the terminal in capturing the image based on the power consumption level comprises:
when the target power consumption level is higher than a preset level, acquiring a target difficulty coefficient of an image algorithm adopted in the target shooting scene;
determining a target optimization strategy corresponding to the target difficulty coefficient from the corresponding relation between the preset difficulty coefficient and the optimization strategy, and adjusting the target resolution based on the target optimization strategy.
8. An image capturing apparatus, comprising:
the determining unit is used for determining a target power consumption level corresponding to a target shooting scene where the terminal is currently located, wherein the target power consumption level is used for representing the power consumption influence degree of image shooting on the terminal under the target shooting scene;
and the adjusting unit is used for adjusting the target resolution adopted by the terminal when the terminal shoots the image based on the target power consumption level and shooting the image based on the adjusted target resolution.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of claims 1-7 by executing the executable instructions.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of claims 1-7.
CN202111589310.8A 2021-12-23 2021-12-23 Image shooting method and device, electronic equipment and storage medium Pending CN116366968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111589310.8A CN116366968A (en) 2021-12-23 2021-12-23 Image shooting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111589310.8A CN116366968A (en) 2021-12-23 2021-12-23 Image shooting method and device, electronic equipment and storage medium

Publications (1)

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

Family

ID=86932017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111589310.8A Pending CN116366968A (en) 2021-12-23 2021-12-23 Image shooting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116366968A (en)

Similar Documents

Publication Publication Date Title
CN105245775B (en) camera imaging method, mobile terminal and device
JP6205065B2 (en) Imaging method, imaging apparatus, program, and storage medium
CN104811609A (en) Photographing parameter adjustment method and device
CN112188074B (en) Image processing method and device, electronic equipment and readable storage medium
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN111343386B (en) Image signal processing method and device, electronic device and storage medium
CN114422687B (en) Preview image switching method and device, electronic equipment and storage medium
CN106775246B (en) Screen brightness adjusting method and device
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
CN111277754B (en) Mobile terminal shooting method and device
CN116366968A (en) Image shooting method and device, electronic equipment and storage medium
CN112086075B (en) Screen display parameter adjusting method and device and storage medium
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN107707819B (en) Image shooting method, device and storage medium
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN114390211B (en) Exposure convergence method, device, electronic equipment and storage medium
CN115733913B (en) Continuous photographing method and device and storage medium
CN109862252B (en) Image shooting method and device
CN116506730A (en) Focusing area determining method and device, electronic equipment and storage medium
CN114339017B (en) Distant view focusing method, device and storage medium
CN116634266A (en) Method, device and storage medium for adjusting power consumption of camera
CN111225158B (en) Image generation method and device, electronic equipment and computer readable storage medium
CN116567411A (en) Power consumption control method, device, equipment and medium
CN117956268A (en) Preview frame rate control method and device thereof
CN117252769A (en) Image processing method, device, electronic equipment and storage medium

Legal Events

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