Shooting method and device, electronic equipment and storage medium

By adding an image signal processor to the electronic device and hardening the DR detection algorithm there, the problem of untimely switching of the HDR image shooting function is solved, and fast-response HDR image shooting is achieved.

CN118646956APending Publication Date: 2024-09-13VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880002.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The HDR image shooting function in existing electronic equipment cannot be switched in time, mainly because the DR detection algorithm is executed on the central processor, resulting in a long detection link and high delay.

Method used

A dedicated image signal processor is added between the image sensor and the central processor of the electronic device, and the DR detection algorithm is hardened into the image signal processor. The dynamic range parameters are quickly detected through the image signal processor and the DR parameter detection link is shortened.

Benefits of technology

It realizes the quick completion of HDR image shooting function switching, reduces delay, and improves the response speed of HDR image shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646956A
    Figure CN118646956A
Patent Text Reader

Abstract

The invention discloses a shooting method and device, electronic equipment and a storage medium, and belongs to the technical field of electronic equipment.The shooting method is applied to the electronic equipment, the electronic equipment comprises an image sensor, an image signal processor and a central processor, and the method comprises the steps that the image sensor collects an original image of a first scene, the original image is transmitted to the image signal processor; the image signal processor determines a first dynamic range value of the first scene according to the original image and transmits the first dynamic range value to the central processing unit; and the central processing unit starts a high dynamic range (HDR) shooting mode under the condition that the first dynamic range value is greater than a first threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a shooting method, device, electronic equipment and storage medium. Background Art

[0002] In recent years, with the continuous development of electronic technology, electronic devices such as mobile phones and tablets have become indispensable tools in people's daily lives. At the same time, people's requirements for electronic devices are getting higher and higher, especially the image capture function of electronic devices. Take the High Dynamic Range (HDR) image capture function as an example. Compared with ordinary images, HDR images can provide more dynamic range and image details. The final HDR image is synthesized using the image with the best details corresponding to each exposure time, which can better reflect the visual effects in the real environment. However, in the related art, when the user uses the capture function of the electronic device, the HDR image capture function is not switched in time. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a shooting method, device, electronic device and storage medium, which can quickly complete the switching of HDR image shooting function.

[0004] In a first aspect, an embodiment of the present application provides a shooting method, which is applied to an electronic device, wherein the electronic device includes an image sensor, an image signal processor, and a central processing unit, and the method includes:

[0005] The image sensor collects an original image of a first scene and transmits the original image to the image signal processor;

[0006] The image signal processor determines a first dynamic range value of the first scene according to the original image, and transmits the first dynamic range value to the central processor;

[0007] The central processor turns on a high dynamic range (HDR) shooting mode when the first dynamic range value is greater than a first threshold.

[0008] In a second aspect, an embodiment of the present application provides a photographing device, which is applied to an electronic device, wherein the electronic device includes an image sensor, an image signal processor, and a central processing unit, and the device includes:

[0009] An acquisition module, configured to acquire an original image of the first scene through the image sensor, and transmit the original image to the image signal processor;

[0010] A first determining module, configured to determine a first dynamic range value of the first scene according to the original image through the image signal processor, and transmit the first dynamic range value to the central processing unit;

[0011] The control module is used to enable a high dynamic range (HDR) shooting mode through the central processor when the first dynamic range value is greater than a first threshold.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the shooting method described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the shooting method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the steps of the shooting method described in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the shooting method described in the first aspect.

[0016] In an embodiment of the present application, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device; the image signal processor determines a first dynamic range value of the first scene based on the original image, and transmits the first dynamic range value to a central processor of the electronic device; the central processor turns on an HDR shooting mode when the first dynamic range value is greater than a first threshold.

[0017] It can be seen that compared with the related art in which the DR detection algorithm is executed on the central processing unit and the detection link from acquiring the scene image to executing DR parameter detection is long and the delay is high, resulting in the untimely switching of the HDR image shooting function, in the embodiment of the present application, the hardware structure of the electronic device is improved, a dedicated image signal processor is added between the image sensor and the central processing unit of the electronic device, the DR detection algorithm is hardened into the image signal processor, and the DR parameters are detected by the image signal processor, so that after the image sensor captures the scene image, the image signal processor can quickly acquire the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly acquire the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is one of the flow charts of a shooting method provided in an embodiment of the present application;

[0019] Figure 2 This is the second flowchart of a shooting method provided in an embodiment of the present application;

[0020] Figure 3 This is the third flowchart of a shooting method provided in an embodiment of the present application;

[0021] Figure 4 This is a fourth flowchart of a shooting method provided in an embodiment of the present application;

[0022] Figure 5 This is a fifth flow chart of a shooting method provided in an embodiment of the present application;

[0023] Figure 6 This is the sixth flowchart of a shooting method provided in an embodiment of the present application;

[0024] Figure 7 is a structural block diagram of a photographing device provided in an embodiment of the present application;

[0025] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0026] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] The embodiments of the present application provide a shooting method, device, electronic device and storage medium. To facilitate understanding, some concepts and application scenarios involved in the embodiments of the present application are first introduced.

[0030] 1. Concept

[0031] Dynamic Range (DR), also known as contrast ratio, refers to the ratio of the brightest and darkest parts of an image. The dynamic range of an image is often expressed in EV (Exposure Value), which is a photography term with the Chinese name "exposure value". The more EVs an image covers, the larger the dynamic range; a larger dynamic range means more brightness and color information, and more brightness and color information means better image details.

[0032] High Dynamic Range (HDR) is a processing technology that improves image brightness and contrast. Compared with ordinary images, HDR can provide more dynamic range and image details. The final HDR image is synthesized using the SDR image or LDR image with the best details corresponding to each exposure time, which can better reflect the visual effects in the real environment.

[0033] Standard Dynamic Range (SDR) refers to a very common color display method. The information size is smaller than HDR and it is highly popular.

[0034] Low Dynamic Range (LDR) refers to a very common color display method. The information size is smaller than SDR and it is widely used.

[0035] Dual Conversion Gain (DCG) technology enables pixels to have two different charge-voltage amplifiers. After setting two independent power supply noise elimination paths, low conversion gain and high conversion gain, the impact of pixel power supply noise on image quality can be reduced. DCG technology automatically switches between high gain and low gain modes according to light changes to optimize dynamic range and noise performance.

[0036] Less Blanking Multi Frame (LBMF) technology is a technology used to reduce the flicker phenomenon when a TV or display screen is "powered on". This technology reduces the flicker of static images by capturing multiple frames in a short period of time and synthesizing them into an output image.

[0037] Stagger HDR (SHDR) technology uses "long and short frames" with "rows" as the output unit. It can simultaneously acquire multiple frames with different exposure times in a single shot, greatly reducing the time interval between frames and thus reducing the possibility of "ghost images".

[0038] Rolling Shutter (RS) is a common exposure method. The exposure control of RS is performed in line units (the smallest unit is a row). Before exposing a line, it is necessary to reset it (clear it to 0), then wait for a period of time (exposure time, in line units), and then read this line. The exposure is completed after reading this line. Before the next reset, these lines are in a free exposure state.

[0039] The DCG HDR generation strategy is an HDR generation technology based on the above-mentioned DCG technology.

[0040] The LBMF HDR generation strategy is an HDR generation technology based on the above-mentioned LBMF technology.

[0041] The Stagger HDR generation strategy is an HDR generation technology based on the above-mentioned SHDR technology.

[0042] The differences between the DCG HDR generation strategy, the LBMF HDR generation strategy and the Stagger HDR generation strategy: 1) The power consumption of the DCG HDR generation strategy is better than that of the LBMF HDR generation strategy, and the power consumption of the LBMF HDR generation strategy is better than that of the Stagger HDR generation strategy. In addition, the DCG generation strategy has no ghosting problem; 2) The long and short exposure of the LMBF HDR generation strategy can be flexibly configured, and supports 1:1 long and short exposure fusion. In an environment with normal brightness, there is no need to worry about the overexposure problem of the DCG HDR generation strategy; 3) In a high-brightness environment, the characteristics of the LBMF generation strategy are relatively poor, and the short exposure time of the Stagger HDR generation strategy is less than the RS time of the LBMF generation strategy, and the captured image quality effect is better.

[0043] The automatic exposure algorithm is an algorithm that dynamically adjusts the camera's shutter speed, aperture, sensitivity and other parameters to obtain appropriate exposure. The automatic exposure algorithm is designed to measure the brightness of the scene and determine the target brightness according to the photographer's needs, and then adjust the camera's exposure parameters to achieve appropriate exposure.

[0044] The lux index is a unit used to evaluate the brightness of light perceived by the human eye. It refers to the light energy received per square meter on a plane. The lux index is usually used to describe the brightness level of a light source or lighting device, where a lower lux index indicates darker light and a higher lux index indicates brighter light.

[0045] 2. Application Scenarios

[0046] At present, HDR generation technology is very popular in electronic devices. Compared with ordinary images, HDR images can provide more dynamic range and image details. Using the image with the best details corresponding to each exposure time to synthesize the final HDR image can better reflect the visual effects in the real environment.

[0047] In the related art, the DR detection algorithm is hardened in the central processor of the electronic device. When the user uses the shooting function of the electronic device, the central processor obtains the scene image from the image sensor. On the one hand, the process from obtaining the scene image to performing DR parameter detection based on the DR detection algorithm takes a long time. On the other hand, the priority of the central processor in executing the DR detection algorithm is low. Therefore, the DR parameter detection link is long and the delay is high, resulting in untimely switching of the HDR image shooting function.

[0048] In order to solve the above technical problems, the embodiments of the present application provide a shooting method, a device, an electronic device and a storage medium. The shooting method provided by the embodiments of the present application is described in detail below.

[0049] It should be noted that the shooting method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices include but are not limited to: smart phones, tablet computers, personal digital assistants and other mobile terminals, and the embodiment of the present application does not limit this.

[0050] Figure 1 This is one of the flow charts of a shooting method provided in an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps: step 101, step 102 and step 103;

[0051] In step 101, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0052] In the related art, the electronic device includes an image sensor and a central processing unit. The image sensor collects the original image of the current shooting scene and transmits the original image to the central processing unit. The DR detection algorithm is hardened in the central processing unit of the electronic device. The central processing unit determines the dynamic range value of the scene based on the original image and the DR detection algorithm. If the dynamic range value of the scene is greater than the set dynamic range threshold, the HDR shooting mode is turned on, otherwise the normal shooting mode is turned on. Since the process from acquiring the scene image to performing DR parameter detection based on the DR detection algorithm in the central processing unit takes a long time, and the priority of the central processing unit in executing the DR detection algorithm is low, the DR parameter detection link is long and the delay is high, resulting in untimely switching of the HDR image shooting function.

[0053] In an embodiment of the present application, the hardware structure of the electronic device is improved, and a dedicated image signal processor is added between the image sensor and the central processing unit of the electronic device. At this time, the electronic device includes an image sensor, an image signal processor and a central processing unit, and the DR detection algorithm is hardened into the image signal processor. The DR parameters are detected by the image signal processor, so that after the image sensor captures the scene image, the image signal processor can quickly obtain the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly obtain the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function.

[0054] In the embodiment of the present application, the image sensor may be any camera or webcam.

[0055] In the embodiment of the present application, the central processing unit may be a system on chip (SoC).

[0056] In the embodiment of the present application, the image signal processor may be any image processing chip.

[0057] In the embodiment of the present application, the first scene refers to the scene currently being photographed.

[0058] In the embodiment of the present application, the original image may be an SDR image, or may be an LDR image.

[0059] In step 102, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0060] In an embodiment of the present application, the DR detection algorithm is pre-hardened into the image signal processor, so that the image signal processor can determine a first dynamic range value of the first scene based on the original image and the DR detection algorithm, wherein the first dynamic range value is used to reflect whether the first scene is a high dynamic range scene.

[0061] In an embodiment of the present application, the image signal processor can communicate with the image sensor through a mobile industry processor interface (Mobile Industry Processor Interface, MIPI) or a serial peripheral interface (Serial Peripheral Interface, SPI). After the image sensor captures the original image of the first scene, the original image is transmitted to the image signal processor through MIPI or SPI.

[0062] In the embodiment of the present application, the image signal processor can communicate with the central processing unit through a secure digital input and output interface (Secure Digital Input and Output, SDIO). After determining the first dynamic range value of the first scene, the first dynamic range value of the first scene is transmitted to the central processing unit through the SDIO, so that the central processing unit can quickly obtain the first dynamic range value of the first scene, thereby achieving the purpose of quickly switching the HDR shooting mode.

[0063] In step 103, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0064] In the embodiment of the present application, the first threshold refers to a preset dynamic range threshold, which may be determined based on an empirical value or by analyzing the dynamic ranges of images captured in various scenes.

[0065] In an embodiment of the present application, the central processing unit determines whether it is necessary to enter the HDR shooting mode based on the first dynamic range value. If the first dynamic range value is greater than the first threshold value, it means that the first scene is a high dynamic range scene, and the HDR shooting mode is turned on; if the first dynamic range value is less than or equal to the first threshold value, it means that the first scene is a low dynamic range scene, and the normal shooting mode is turned on.

[0066] For example, the first threshold is 4. If the first dynamic range value is greater than 4, the HDR shooting mode is entered, and the HDR shooting mode includes two exposures, namely, a long exposure and a short exposure; if the first dynamic range value is less than or equal to 4, the normal shooting mode is entered, and the normal shooting mode only includes one exposure.

[0067] It can be seen from the above embodiment that in this embodiment, the image sensor of the electronic device captures the original image of the first scene, and transmits the original image to the image signal processor of the electronic device; the image signal processor determines the first dynamic range value of the first scene based on the original image, and transmits the first dynamic range value to the central processor of the electronic device; the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0068] It can be seen that compared with the related art in which the DR detection algorithm is executed on the central processing unit and the detection link from acquiring the scene image to executing DR parameter detection is long and the delay is high, in the embodiment of the present application, the hardware structure of the electronic device is improved, a special image signal processor is added between the image sensor of the electronic device and the central processing unit, the DR detection algorithm is hardened into the image signal processor, and the DR parameters are detected by the image signal processor. After the image sensor captures the scene image, the image signal processor can quickly acquire the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly acquire the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function.

[0069] With the continuous development of image processing technology, the implementation methods of HDR generation strategies are also emerging in an endless stream, for example, DCGHDR generation strategy, LBMF HDR generation strategy and SHDR generation strategy have all appeared. In related technologies, equipment manufacturers will choose one of the HDR generation strategies to improve the brightness and contrast of the image. However, since different HDR generation strategies have different characteristics, their performances in different shooting scenes are different, and the shooting scenes faced by electronic devices are not fixed, if only a single HDR generation strategy is used, it is impossible to achieve a better shooting effect.

[0070] Figure 2FIG. 2 is a flowchart of a shooting method provided in an embodiment of the present application. In an embodiment of the present application, different HDR generation strategies can be selected according to the characteristics of the shooting scene, so that the electronic device can achieve better shooting effects when facing different shooting scenes. Accordingly, Figure 2 As shown, the method may include the following steps: step 201, step 202, step 203, step 204, step 205 and step 206;

[0071] In step 201, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0072] In step 202, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0073] In step 203, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0074] The contents of steps 201 to 203 in the embodiment of the present application are Figure 1 The contents of steps 101 to 103 in the illustrated embodiment are similar and will not be described in detail herein.

[0075] In step 204, the central processing unit obtains first feature information of the first scene when the HDR shooting mode is turned on.

[0076] In the embodiment of the present application, the first characteristic information is used to characterize the characteristics of the first scene.

[0077] In some embodiments, considering that some shooting scenes contain moving objects and other shooting scenes do not contain moving objects, and some HDR generation strategies perform better when shooting moving objects and other HDR generation strategies perform better when shooting still objects, the first feature information may include: relevant information for characterizing whether the scene contains moving objects.

[0078] In some embodiments, taking into account that some shooting scenes have low brightness, some shooting scenes have medium brightness, and other shooting scenes have high brightness, and some HDR generation strategies perform better when shooting in dark environments, other HDR generation strategies perform better when shooting in bright environments, and other HDR generation strategies perform better when shooting in high-brightness environments, and taking into account that the effect of HDR images is closely related to the scene brightness, in order to determine a suitable HDR generation strategy, the first feature information may include: information related to the scene brightness.

[0079] It can be seen that in the embodiment of the present application, the first feature information may include multiple optional types of feature information, so that the HDR shooting function of the electronic device is more flexible and applicable to a wider range of scenarios.

[0080] In the embodiment of the present application, the first feature information can be obtained based on the original image, or based on a specific sensor in the electronic device, or based on a specific image algorithm. In practical applications, different acquisition methods can be used according to different types of first feature information, and the embodiment of the present application does not limit this.

[0081] In step 205, the central processing unit determines a target HDR generation strategy based on the first feature information.

[0082] In an embodiment of the present application, a mapping relationship between different types of feature information of different shooting scenes and HDR generation strategies can be pre-constructed, and the central processor obtains the target HDR generation strategy corresponding to the first feature information from the above mapping relationship based on the first feature information.

[0083] In step 206, the central processor generates an HDR image based on the target HDR generation strategy and the original image.

[0084] It can be seen that in the embodiments of the present application, a method for quickly acquiring DR based on a dedicated image signal processor can be provided, so as to timely and adaptively select an optimal HDR generation strategy according to the characteristics of the shooting scene, quickly complete the HDR shooting function switching, and improve the photo and video recording effects.

[0085] In some embodiments provided by the present application, when the first feature information includes information related to scene brightness, since the brightness index of an image can directly represent the brightness of a shooting scene corresponding to the image, and the exposure duration is adjusted in real time according to the brightness of the shooting scene, the brightness index and the exposure duration are both related to the scene brightness, and the acquisition method has a small amount of calculation and a fast speed, the first feature information can specifically include a brightness index value and a short exposure duration, and the above step 204 can include the following steps: step 2041 and step 2042;

[0086] In step 2041, the central processing unit determines a brightness index value of the first scene according to the original image.

[0087] In the embodiment of the present application, considering that the brightness index of the shooting scene can roughly reflect the brightness and darkness of the shooting scene, the central processing unit determines the brightness index value of the first scene according to the original image and the brightness index calculation method.

[0088] In an embodiment of the present application, if the brightness index value of the first scene is less than or equal to a preset second threshold value, the first scene is considered to be a shooting scene in a dark environment; if the brightness index value of the first scene is greater than the preset second threshold value, the first scene is considered to be a shooting scene in a bright environment.

[0089] In the embodiment of the present application, the second threshold refers to a preset brightness index threshold, which may be determined based on an empirical value or by analyzing brightness information of captured images of various scenes.

[0090] In step 2042, when the brightness index value is greater than the second threshold, the central processor determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0091] In the embodiment of the present application, when the brightness index value is greater than the second threshold value, it indicates that the first scene is a shooting scene in a bright environment. However, since bright environments have different brightness levels, such as general brightness, high brightness, etc., it is impossible to make a more detailed distinction between bright environments based on the brightness index value. Considering that the short exposure time is adjusted in real time according to the brightness of the scene, the brightness level of the first scene can be divided more finely. Therefore, when the brightness index value is greater than the second threshold value, the central processing unit determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0092] It can be seen that in the embodiment of the present application, the first characteristic information of the first scene may include a brightness index value and a short exposure time. Since the brightness index of an image can directly represent the brightness of the shooting scene corresponding to the image, and the exposure time is adjusted in real time according to the brightness of the shooting scene, the brightness index and the exposure time are both related to the scene brightness. Different scene brightnesses correspond to different HDR generation strategies, and the amount of calculation is small, thereby improving the generation speed and image effect of HDR images.

[0093] Figure 3 FIG. 3 is a flowchart of a shooting method provided in an embodiment of the present application. In the embodiment of the present application, a suitable HDR generation strategy can be selected according to the brightness of the shooting scene, so that the electronic device can achieve a better shooting effect when facing a darker shooting scene. Accordingly, Figure 3 As shown, the method may include the following steps: step 301, step 302, step 303, step 304, step 305 and step 306;

[0094] In step 301, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0095] In step 302, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0096] In step 303, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0097] The contents of steps 301 to 303 in the embodiment of the present application are Figure 1 The contents of steps 101 to 103 in the illustrated embodiment are similar and will not be described in detail herein.

[0098] In step 304, the central processor determines a brightness index value of the first scene according to the original image when the HDR shooting mode is turned on.

[0099] The content of step 304 in the embodiment of the present application is similar to the content of the above-mentioned step 2041 and will not be repeated here.

[0100] In step 305, the central processor determines the DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to the second threshold.

[0101] In the embodiment of the present application, when the brightness index value of the first scene is less than or equal to the second threshold, it indicates that the first scene is a shooting scene in a dark environment. Considering that the DCG HDR generation strategy has lower power consumption in a dark environment and better performance than other HDR generation strategies, the central processor determines the DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to the second threshold.

[0102] In step 306, the central processor generates an HDR image based on the target HDR generation strategy and the original image.

[0103] It can be seen that in the embodiment of the present application, when the electronic device is in a darker shooting scene, for the HDR shooting mode, the DCG HDR generation strategy is adopted to generate HDR images, so that on the one hand, the power consumption of the device in the HDR shooting mode can be reduced, and on the other hand, it can ensure that the generated HDR image has a better image effect.

[0104] Figure 4 FIG4 is a flowchart of a shooting method provided in an embodiment of the present application. In the embodiment of the present application, a suitable HDR generation strategy can be selected according to the brightness of the shooting scene, so that the electronic device can achieve a better shooting effect when facing a shooting scene in a general brightness environment. Accordingly, Figure 4As shown, the method may include the following steps: step 401, step 402, step 403, step 404, step 405, step 406 and step 407;

[0105] In step 401, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0106] In step 402, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0107] In step 403, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0108] The contents of steps 401 to 403 in the embodiment of the present application are Figure 1 The contents of steps 101 to 103 in the illustrated embodiment are similar and will not be described in detail herein.

[0109] In step 404, the central processor determines a brightness index value of the first scene according to the original image when the HDR shooting mode is turned on.

[0110] In step 405, when the brightness index value is greater than the second threshold, the central processor determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0111] The contents of step 404 and step 405 in the embodiment of the present application are similar to the contents of step 2041 and step 2042 described above, and are not repeated here.

[0112] In step 406, the central processor determines the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is greater than or equal to the rolling exposure RS duration corresponding to the LBMF HDR generation strategy.

[0113] In the embodiment of the present application, when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is greater than or equal to the rolling shutter exposure RS duration corresponding to the LBMF HDR generation strategy, it indicates that the first scene is a shooting scene in a general brightness environment. Considering that the LBMF HDR generation strategy can flexibly configure long and short exposures in a general brightness environment, is not limited by the 1:1 long and short exposure fusion, and has better performance than other HDR generation strategies, the central processor determines the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is greater than or equal to the rolling shutter exposure RS duration corresponding to the LBMF HDR generation strategy.

[0114] In step 407, the central processor generates an HDR image based on the target HDR generation strategy and the original image.

[0115] It can be seen that in the embodiment of the present application, when the electronic device is in a shooting scene in a general brightness environment, for the HDR shooting mode, the LBMF HDR generation strategy is used to generate an HDR image, so as to ensure that the generated HDR image has a better image effect.

[0116] Figure 5 FIG. 5 is a flowchart of a shooting method provided in an embodiment of the present application. In the embodiment of the present application, a suitable HDR generation strategy can be selected according to the brightness of the shooting scene, so that the electronic device can achieve a better shooting effect when facing a shooting scene in a high-brightness environment. Accordingly, Figure 5 As shown, the method may include the following steps: step 501, step 502, step 503, step 504, step 505, step 506 and step 507;

[0117] In step 501, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0118] In step 502, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0119] In step 503, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0120] The contents of steps 501 to 503 in the embodiment of the present application are Figure 1 The contents of steps 101 to 103 in the illustrated embodiment are similar and will not be described in detail herein.

[0121] In step 504, the central processor determines a brightness index value of the first scene according to the original image when the HDR shooting mode is turned on.

[0122] In step 505, when the brightness index value is greater than the second threshold, the central processor determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0123] The contents of step 504 and step 505 in the embodiment of the present application are similar to the contents of step 2041 and step 2042 described above, and are not repeated here.

[0124] In step 506, the central processor determines the Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is less than the RS duration.

[0125] In the embodiment of the present application, when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is less than the RS duration, it indicates that the first scene is a shooting scene in a high-brightness environment. Considering that the short exposure duration of the Stagger HDR generation strategy in a high-brightness environment is shorter and its performance is better than other HDR generation strategies, the central processor determines the Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is less than the RS duration.

[0126] In step 507, the central processor generates an HDR image based on the target HDR generation strategy and the original image.

[0127] It can be seen that in the embodiment of the present application, when the electronic device is in a shooting scene in a high-brightness environment, for the HDR shooting mode, the Stagger HDR generation strategy is used to generate an HDR image, so as to ensure that the generated HDR image has a better image effect.

[0128] In order to facilitate the understanding of the complete shooting method provided in the embodiment of the present application, Figure 6 The flowchart shown is described.

[0129] Figure 6 This is a sixth flowchart of a shooting method provided in an embodiment of the present application, such as Figure 6 As shown, the shooting method may include the following steps: step 601, step 602, step 603, step 604, step 605, step 606, step 607, step 608, step 609 and step 610;

[0130] In step 601, an image sensor of an electronic device captures an original image of a first scene and transmits the original image to an image signal processor of the electronic device.

[0131] In the embodiment of the present application, the first scene refers to the scene currently being photographed. In practical applications, the original image of the first scene may be an SDR image or an LDR image.

[0132] In an embodiment of the present application, the hardware structure of the electronic device is improved, and a dedicated image signal processor is added between the image sensor and the central processing unit of the electronic device. At this time, the electronic device includes an image sensor, an image signal processor and a central processing unit, and the DR detection algorithm is hardened into the image signal processor. The DR parameters are detected by the image signal processor, so that after the image sensor captures the scene image, the image signal processor can quickly obtain the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly obtain the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function.

[0133] In the embodiment of the present application, the image signal processor can communicate with the image sensor via MIPI or SPI, and the image signal processor can communicate with the central processing unit via SDIO.

[0134] In step 602, an image signal processor determines a first dynamic range value of a first scene according to an original image, and transmits the first dynamic range value to a central processor of an electronic device.

[0135] In the embodiment of the present application, the first dynamic range value is used to reflect whether the first scene is a shooting scene with a high dynamic range.

[0136] In step 603, the central processing unit starts the normal shooting mode when the first dynamic range value is less than or equal to the first threshold.

[0137] In the embodiment of the present application, the normal shooting mode only includes one exposure.

[0138] In step 604, the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0139] In the embodiment of the present application, the HDR shooting mode includes two exposures, namely a long exposure and a short exposure.

[0140] In step 605, the central processor determines a brightness index value of the first scene according to the original image when the HDR shooting mode is turned on.

[0141] In the embodiment of the present application, considering that the brightness index of the shooting scene can roughly reflect the brightness and darkness of the shooting scene, the central processing unit determines the brightness index value of the first scene according to the original image and the brightness index calculation method.

[0142] In an embodiment of the present application, if the brightness index value of the first scene is less than or equal to a preset second threshold value, the first scene is considered to be a shooting scene in a dark environment; if the brightness index value of the first scene is greater than the preset second threshold value, the first scene is considered to be a shooting scene in a bright environment.

[0143] In the embodiment of the present application, the second threshold refers to a preset brightness index threshold, which may be determined based on an empirical value or by analyzing brightness information of captured images of various scenes.

[0144] In step 606, the central processor determines the DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to the second threshold.

[0145] In the embodiment of the present application, when the brightness index value of the first scene is less than or equal to the second threshold, it indicates that the first scene is a shooting scene in a dark environment. Considering that the DCG HDR generation strategy has lower power consumption and better performance than other HDR generation strategies, the central processor determines the DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to the second threshold.

[0146] In step 607, when the brightness index value of the first scene is greater than the second threshold, the central processor determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0147] In the embodiment of the present application, when the brightness index value is greater than the second threshold value, it indicates that the first scene is a shooting scene in a bright environment. However, since bright environments have different brightness levels, such as general brightness, high brightness, etc., it is impossible to make a more detailed distinction between bright environments based on the brightness index value. Considering that the short exposure time is adjusted in real time according to the brightness of the scene, the brightness level of the first scene can be divided more finely. Therefore, when the brightness index value is greater than the second threshold value, the central processing unit determines the short exposure time corresponding to the first scene based on the automatic exposure algorithm.

[0148] In step 608, the central processor determines the LBMF HDR generation strategy as the target HDR generation strategy when the short exposure duration corresponding to the first scene is greater than or equal to the rolling shutter exposure RS duration corresponding to the LBMF HDR generation strategy.

[0149] In the embodiment of the present application, when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is greater than or equal to the rolling shutter exposure RS duration corresponding to the LBMF HDR generation strategy, it indicates that the first scene is a shooting scene in a general brightness environment. Considering that the LBMF HDR generation strategy can flexibly configure long and short exposures in a general brightness environment, is not limited by the 1:1 long and short exposure fusion, and has better performance than other HDR generation strategies, the central processor determines the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is greater than or equal to the rolling shutter exposure RS duration corresponding to the LBMF HDR generation strategy.

[0150] In step 609, when the short exposure duration corresponding to the first scene is less than the RS duration, the central processor determines the Stagger HDR generation strategy as the target HDR generation strategy.

[0151] In the embodiment of the present application, when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is less than the RS duration, it indicates that the first scene is a shooting scene in a high-brightness environment. Considering that the short exposure duration of the Stagger HDR generation strategy in a high-brightness environment is shorter and its performance is better than other HDR generation strategies, the central processor determines the Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold value and the short exposure duration corresponding to the first scene is less than the RS duration.

[0152] In step 610, the central processor generates an HDR image based on the target HDR generation strategy and the original image.

[0153] It can be seen that in the embodiments of the present application, a method for quickly acquiring DR based on a dedicated image signal processor can be provided, so as to timely and adaptively select an optimal HDR generation strategy according to the brightness characteristics of the shooting scene, quickly complete the HDR shooting function switching, and improve the photo and video recording effects.

[0154] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.

[0155] Figure 7 is a structural block diagram of a shooting device provided by some embodiments of the present application, wherein the electronic device includes an image sensor, an image signal processor and a central processing unit, such as Figure 7 As shown, the photographing device 700 may include: a collection module 701, a first determination module 702 and a control module 703;

[0156] The acquisition module 701 is used to acquire an original image of the first scene through the image sensor and transmit the original image to the image signal processor;

[0157] A first determining module 702, configured to determine a first dynamic range value of the first scene according to the original image through the image signal processor, and transmit the first dynamic range value to the central processor;

[0158] The control module 703 is used to enable a high dynamic range (HDR) shooting mode through the central processor when the first dynamic range value is greater than a first threshold.

[0159] It can be seen from the above embodiment that in this embodiment, the image sensor of the electronic device captures the original image of the first scene, and transmits the original image to the image signal processor of the electronic device; the image signal processor determines the first dynamic range value of the first scene based on the original image, and transmits the first dynamic range value to the central processor of the electronic device; the central processor turns on the HDR shooting mode when the first dynamic range value is greater than the first threshold.

[0160] It can be seen that compared with the related art in which the DR detection algorithm is executed on the central processing unit and the detection link from acquiring the scene image to executing DR parameter detection is long and the delay is high, resulting in the untimely switching of the HDR image shooting function, in the embodiment of the present application, the hardware structure of the electronic device is improved, a dedicated image signal processor is added between the image sensor and the central processing unit of the electronic device, the DR detection algorithm is hardened into the image signal processor, and the DR parameters are detected by the image signal processor, so that after the image sensor captures the scene image, the image signal processor can quickly acquire the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly acquire the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function.

[0161] Optionally, as an embodiment, the photographing device 700 may further include:

[0162] an acquisition module, configured to acquire, by the central processor, first feature information of the first scene when the HDR shooting mode is turned on;

[0163] A second determination module, configured to determine a target HDR generation strategy according to the first feature information through the central processor;

[0164] A generating module is used to generate an HDR image based on the target HDR generation strategy and the original image through the central processor.

[0165] Optionally, as an embodiment, the first characteristic information may include: information related to scene brightness.

[0166] Optionally, as an embodiment, the acquisition module may include:

[0167] a fourth determination submodule, configured to determine, by the central processor, a brightness index value of the first scene according to the original image;

[0168] A fifth determination submodule, configured to determine, by the central processor, a short exposure duration corresponding to the first scene based on an automatic exposure algorithm when the brightness index value is greater than a second threshold;

[0169] The first characteristic information includes the brightness index value and the short exposure time.

[0170] Optionally, as an embodiment, the second determining module may include:

[0171] A first determination submodule, configured to determine, by the central processor, a dual conversion gain DCG HDR generation strategy as a target HDR generation strategy when the brightness index value of the first scene is less than or equal to a second threshold;

[0172] A second determination submodule is configured to determine, by the central processor, the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is greater than or equal to a rolling shutter exposure RS duration corresponding to a frame interval multi-frame LBMF HDR generation strategy;

[0173] The third determination submodule is used to determine, through the central processor, the superimposable Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is less than the RS duration.

[0174] The shooting device in the embodiment of the present application can be an electronic device that works independently, or it can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR) / virtual reality (Virtual Reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook, or a personal digital assistant (Personal Digital Assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0175] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0176] The shooting device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented in the illustrated method embodiment will not be described again here.

[0177] Alternatively, if Figure 8 As shown, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, the memory 802 stores a program or instruction that can be run on the processor 801, and the program or instruction is executed by the processor 801 to implement the various steps of the above-mentioned shooting method embodiment, and can achieve the same technical effect, to avoid repetition, it is not repeated here. It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0178] Fig. 9 900 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present application. The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a central processing unit 910.

[0179] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the central processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0180] The central processing unit 910 is used to control the image sensor to capture the original image of the first scene and transmit the original image to the image signal processor; control the image signal processor to determine the first dynamic range value of the first scene according to the original image, and transmit the first dynamic range value to the central processing unit 910; when the first dynamic range value is greater than a first threshold, turn on the high dynamic range HDR shooting mode.

[0181] It can be seen that compared with the related art in which the DR detection algorithm is executed on the central processing unit and the detection link from acquiring the scene image to executing DR parameter detection is long and the delay is high, resulting in the untimely switching of the HDR image shooting function, in the embodiment of the present application, the hardware structure of the electronic device is improved, a dedicated image signal processor is added between the image sensor and the central processing unit of the electronic device, the DR detection algorithm is hardened into the image signal processor, and the DR parameters are detected by the image signal processor, so that after the image sensor captures the scene image, the image signal processor can quickly acquire the scene image from the image sensor for DR parameter detection, and the central processing unit can quickly acquire the DR parameters from the image signal processor, thereby shortening the DR parameter detection link, reducing the delay, and being able to quickly complete the switching of the HDR image shooting function.

[0182] Optionally, as an embodiment, the central processor 910 is also used to obtain first characteristic information of the first scene when the HDR shooting mode is turned on; determine a target HDR generation strategy based on the first characteristic information; and generate an HDR image based on the target HDR generation strategy and the original image.

[0183] Optionally, as an embodiment, the first characteristic information includes: information related to scene brightness.

[0184] Optionally, as an embodiment, the central processor 910 is specifically used to determine the brightness index value of the first scene based on the original image; when the brightness index value is greater than a second threshold, determine the short exposure time corresponding to the first scene based on an automatic exposure algorithm; wherein the first feature information includes the brightness index value and the short exposure time.

[0185] Optionally, as an embodiment, the central processor 910 is specifically used to determine the dual conversion gain DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to the second threshold; determine the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is greater than or equal to the rolling exposure RS duration corresponding to the frame interval multi-frame LBMF HDR generation strategy; determine the superimposable Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is less than the RS duration.

[0186] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0187] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0188] The central processing unit 910 may include one or more processing units; optionally, the central processing unit 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the central processing unit 910.

[0189] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by the processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a disk or an optical disk, etc.

[0190] The embodiment of the present application also provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run a program or instruction, implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect, to avoid repetition, it is not repeated here. It should be understood that the chip mentioned in the embodiment of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0191] The embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0192] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0193] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0194] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A shooting method, applied to an electronic device, It is characterized in that The electronic device includes an image sensor, an image signal processor and a central processing unit, and the method includes: The image sensor collects an original image of a first scene and transmits the original image to the image signal processor; The image signal processor determines a first dynamic range value of the first scene according to the original image, and transmits the first dynamic range value to the central processor; The central processor turns on a high dynamic range (HDR) shooting mode when the first dynamic range value is greater than a first threshold.

2. The method according to claim 1, It is characterized in that The method further comprises: The central processor acquires first feature information of the first scene when the HDR shooting mode is turned on; The central processor determines a target HDR generation strategy according to the first feature information; The central processor generates an HDR image based on the target HDR generation strategy and the original image.

3. The method according to claim 2, It is characterized in that The first characteristic information includes: information related to scene brightness.

4. The method according to claim 2, It is characterized in that The acquiring first characteristic information of the first scene includes: The central processing unit determines a brightness index value of the first scene according to the original image; The central processor determines, when the brightness index value is greater than a second threshold, a short exposure time corresponding to the first scene based on an automatic exposure algorithm; The first characteristic information includes the brightness index value and the short exposure time.

5. The method according to claim 2, It is characterized in that The central processor determines a target HDR generation strategy according to the first feature information, including: The central processor determines the dual conversion gain DCG HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is less than or equal to a second threshold; The central processor determines the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is greater than or equal to a rolling shutter exposure RS duration corresponding to the frame interval multi-frame LBMF HDR generation strategy; The central processor determines the superimposable Stagger HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is less than the RS duration.

6. A photographing device, applied to electronic equipment, It is characterized in that The electronic device comprises an image sensor, an image signal processor and a central processing unit, and the device comprises: An acquisition module, configured to acquire an original image of the first scene through the image sensor, and transmit the original image to the image signal processor; A first determining module, configured to determine a first dynamic range value of the first scene according to the original image through the image signal processor, and transmit the first dynamic range value to the central processing unit; The control module is used to enable a high dynamic range (HDR) shooting mode through the central processor when the first dynamic range value is greater than a first threshold.

7. The device according to claim 6, It is characterized in that The device also includes: an acquisition module, configured to acquire, by the central processor, first feature information of the first scene when the HDR shooting mode is turned on; A second determination module, configured to determine a target HDR generation strategy according to the first feature information through the central processor; A generating module is used to generate an HDR image based on the target HDR generation strategy and the original image through the central processor.

8. The device according to claim 7, It is characterized in that The second determining module comprises: A first determination submodule, configured to determine, by the central processor, a dual conversion gain DCG HDR generation strategy as a target HDR generation strategy when the brightness index value of the first scene is less than or equal to a second threshold; A second determination submodule is configured to determine, by the central processor, the LBMF HDR generation strategy as the target HDR generation strategy when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is greater than or equal to a rolling shutter exposure RS duration corresponding to a frame interval multi-frame LBMF HDR generation strategy; The third determination submodule is used to determine the superimposable StaggerHDR generation strategy as the target HDR generation strategy through the central processor when the brightness index value of the first scene is greater than the second threshold and the short exposure duration corresponding to the first scene is less than the RS duration.

9. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 5 are implemented.

10. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 5 are implemented.