Shooting method, device, electronic device and storage medium

By using overlapping exposure technology to pre-acquire multiple frames of target cache images in highly dynamic scenes, each frame of image is exposed with different exposure parameters, which solves the problem of insufficient dynamic range of the CMOS image sensor, achieves efficient HDR shooting, and reduces photography delay. and ghosting phenomena.

CN115278046BActive Publication Date: 2024-09-27VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210673194.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-09-27
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

Existing CMOS image sensors have limited dynamic range in high-dynamic scenes, resulting in underexposure of low-brightness areas and overexposure of high-brightness areas in the photos taken, making it impossible to effectively restore the scenery seen by the human eye.

Method used

Using overlapping exposure technology, multiple frames of target cache images are pre-acquired before receiving user input. Each frame of image is exposed with different exposure parameters, reducing the delay and ghosting phenomenon during HDR synthesis processing, and directly generating the target image.

Benefits of technology

The speed of photography has been improved, making HDR photography close to zero delay, reducing the ghosting phenomenon during HDR synthesis processing, and improving the shooting effect and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278046B
    Figure CN115278046B
Patent Text Reader

Abstract

The present application discloses a shooting method, device, electronic device and storage medium, which belongs to the field of photography. The shooting method includes: receiving a first input from a user to a shooting preview interface; in response to the first input, acquiring at least two frames of target cache images; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different; obtaining a target image based on the at least two frames of target cache images; wherein the at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, we often encounter many high-dynamic scenes during daily photography, but the dynamic range of the photosensitivity of the complementary metal oxide semiconductor (CMOS) image sensor is limited, much smaller than that of the human eye. Therefore, in such scenes, the scenery seen by the human eye cannot be restored very well, and the photos taken are underexposed in low-light areas and overexposed in high-light areas. In order to solve the above problems, when shooting such high-dynamic scenes, a high dynamic range imaging (HDR) algorithm is added to improve the dynamic range of the photo and better restore the scene seen by the human eye. 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 better and timely restore the scene seen by human eyes in high-dynamic scenes.

[0004] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:

[0005] Receive a first input from a user on the shooting preview interface;

[0006] In response to the first input, at least two frames of target cache images are acquired; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different;

[0007] Obtaining a target image based on the at least two frames of target cache images;

[0008] The at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on an overlapping exposure mode before receiving the first input.

[0009] In a second aspect, an embodiment of the present application provides a photographing device, the photographing device comprising:

[0010] A first receiving module, used to receive a first input from a user on the shooting preview interface;

[0011] An image signal processing module is used to obtain at least two frames of target cache images in response to the first input; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different; and obtain a target image based on the at least two frames of target cache images; wherein the at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on an overlapping exposure method before receiving the first input.

[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 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 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 instruction to implement the 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 method described in the first aspect.

[0016] In the embodiment of the present application, by responding to the user's first input to the shooting preview interface, at least two frames of target cache images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input can be directly obtained, and then based on the at least two frames of target cache images, the target image can be obtained. Since the at least two frames of target cache images obtained are pre-exposed according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input, when shooting the shooting preview interface, at least two frames of target cache images obtained in advance can be directly obtained, and the target image can be directly generated without re-exposure, thereby improving the shooting speed, making HDR shooting closer to zero-delay shooting, and what you see is what you get. And because the overlapping exposure technology is used to control the shooting device for exposure, the frame interval between different exposure frames is short, which can reduce the ghosting phenomenon during HDR synthesis processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a schematic diagram showing exposure using a common exposure technology according to an exemplary embodiment;

[0018] Figure 2 is a schematic diagram showing exposure using overlapping exposure technology according to an exemplary embodiment;

[0019] Figure 3 is a flowchart of a shooting method according to an exemplary embodiment;

[0020] Figure 4 is a structural schematic diagram of a photographing device according to an exemplary embodiment;

[0021] Figure 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment;

[0022] Figure 6 It is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0023] 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.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be 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 one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The existing HDR processing algorithm, when exposing image frames, recalculates the exposure based on the preview exposure. The calculated exposure needs to be sent back to the sensor. It usually takes 2 to 4 frames for the exposure to take effect. Then the frames with the required exposure can be captured, resulting in slow photo taking and poor user experience.

[0026] In order to solve the above problems, the embodiment of the present application provides a shooting method, which can directly obtain at least two frames of target cache images obtained by exposing according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input, and then obtain the target image based on the at least two frames of target cache images. Since the at least two frames of target cache images obtained are pre-exposed according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input, when shooting the shooting preview interface, at least two frames of target cache images obtained in advance can be directly obtained, and the target image is directly generated without re-exposure, thereby improving the shooting speed, making HDR shooting closer to zero-delay shooting, and what you see is what you get. And because the overlapping exposure technology is used to control the shooting device for exposure, the frame interval between different exposure frames is short, which can reduce the ghosting phenomenon during HDR synthesis processing.

[0027] Before introducing the technical solution of the embodiment of the present application, the exposure overlap technology to be used in the technical solution of the present application is first introduced.

[0028] like Figure 1 This is a schematic diagram of exposure using ordinary exposure technology. Assuming that the exposure time of the two frames is inconsistent, during exposure, after the first row 110 of the first frame is exposed and read, it is necessary to wait until the last row 140 of the first frame is exposed and read before the exposure data of the first row 120 of the second frame can be read. The exposure interval H1 between the two frames, that is, the time interval, is relatively large.

[0029] like Figure 2 This is a schematic diagram of exposure using the exposure overlap technology. Assuming that the exposure times of the two frames are inconsistent, during exposure, after the first line 210 of the first frame is exposed and read, there is no need to wait for the last line 240 of the first frame to be exposed and read. Instead, the exposure and reading of the first line 220 of the second frame can be continued directly. The exposure interval H2 between the two frames is relatively short.

[0030] The following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0031] Figure 3 It is a flow chart of a shooting method provided in an embodiment of the present application. The execution subject of the shooting method may be an electronic device. It should be noted that the above execution subject does not constitute a limitation on the embodiment of the present application.

[0032] In an embodiment of the present application, the electronic device may be an intelligent terminal with a photographing function, and may be, but not limited to, a personal computer (PC), a smart phone, a tablet computer or a personal digital assistant (PDA).

[0033] like Figure 3 As shown, the shooting method provided in the embodiment of the present application may include steps 310 to 340.

[0034] Step 310: Receive a first input from a user on the shooting preview interface.

[0035] The first input may be an input for shooting the shooting preview interface. Specifically, the first input may be a click input, a double-click input, a slide input, a voice input, a gesture input, etc. on the shooting control of the electronic device by the user, or a combination of at least two of the above inputs, which is not limited here.

[0036] In some embodiments of the present application, the shooting scene corresponding to the shooting preview interface may be a high dynamic scene.

[0037] Step 320: In response to the first input, obtain at least two frames of target cache images.

[0038] The target cache image may be an image frame acquired in response to the first input. The specific target cache image may be at least one frame of the multiple images obtained by exposing the photosensitive unit in the image sensor according to the exposure parameters in the target exposure parameter group based on the overlapping exposure mode before receiving the first input. That is, the target cache image is at least one frame of the multiple images obtained by controlling the shooting device to expose the photosensitive unit in the image sensor according to the exposure parameters in the target exposure parameter group from the time when the user starts to shoot accurately (i.e., the shooting preview interface is displayed) until the user presses the shooting control to terminate.

[0039] In some embodiments of the present application, the exposure parameters corresponding to each target cache image in at least two frames of target cache images are different, that is, each target cache image is obtained by exposure based on different exposure parameters.

[0040] Here, the multiple frames of images obtained by exposing the photosensitive units in the image sensor according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method can be stored in different cache spaces (that is, each exposure parameter can correspond to a different cache space, and the target cache images obtained based on the different exposure parameters can be stored in different image cache spaces corresponding thereto), and after receiving the first input from the user to the shooting preview interface, in response to the first input, at least two frames of the target cache images are obtained from each cache space.

[0041] The target exposure parameter group here may be at least one exposure parameter, for example, an exposure parameter EV0 for normal exposure (i.e., a first exposure parameter), an exposure parameter EV+ for overexposure (i.e., a second exposure parameter), or an exposure parameter EV- for underexposure (i.e., a third exposure parameter).

[0042] Step 330: Obtain a target image based on at least two frames of target cache images.

[0043] The target image may be an image obtained by fusing at least one frame of acquired target cache image.

[0044] In some embodiments of the present application, in order to further improve the shooting speed, before step 310, the above-mentioned shooting method may further include:

[0045] Determining a first exposure parameter, a second exposure parameter, and a third exposure parameter according to light intensity information of a shooting scene;

[0046] Based on the overlapping exposure mode, the image sensor of the shooting device is controlled to perform exposure based on the first exposure parameter, the second exposure parameter and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image and at least one frame of the third image;

[0047] storing at least one frame of the first image, at least one frame of the second image, and at least one frame of the third image respectively to obtain a first cache image sequence, a second cache image sequence, and a third cache image sequence;

[0048] The first exposure parameter may be an exposure parameter for normal exposure, that is, it may be EV0.

[0049] The second exposure parameter may be an overexposure exposure parameter, that is, it may be EV+.

[0050] The third exposure parameter may be an underexposure exposure parameter, that is, it may be EV-.

[0051] Here, the first exposure parameter, the second exposure parameter and the third exposure parameter may be different.

[0052] For the first exposure parameter, the second exposure parameter and the third exposure parameter, each exposure parameter includes an exposure time and a gain.

[0053] The first image may be an image obtained by controlling the image sensor of the photographing device to perform exposure based on the first exposure parameter by using an overlapping exposure method.

[0054] The second image may be an image obtained by controlling the image sensor of the photographing device to perform exposure based on the second exposure parameter in an overlapping exposure manner.

[0055] The third image may be an image obtained by controlling the image sensor of the photographing device to perform exposure based on the third exposure parameter using an overlapping exposure method.

[0056] The brightness value of the obtained first image is smaller than the brightness value of the second image. The brightness value of the first image is larger than the brightness value of the third image.

[0057] The first cached image sequence may be a cached image sequence obtained after caching the first image.

[0058] The second cached image sequence may be a cached image sequence obtained after caching the second image.

[0059] The third cached image sequence may be a cached image sequence obtained by caching the third image.

[0060] In some embodiments of the present application, when performing a shooting preview, the automatic exposure control module in the electronic device can calculate the first exposure parameter EV0 for normal exposure based on the light intensity information in the current shooting scene. How to calculate the first exposure parameter EV0 for normal exposure when shooting a shooting scene based on the light intensity information in the current shooting scene belongs to the prior art and will not be described in detail here.

[0061] In some embodiments of the present application, when performing a shooting preview, the electronic device can detect the light intensity information in the current shooting scene based on the HDR algorithm in the automatic exposure control module, and then evaluate the dynamic range of the current shooting scene in combination with a histogram or an artificial intelligence method, and then calculate the exposure parameter EV+ (i.e., the second exposure parameter) and the exposure parameter EV- (i.e., the third exposure parameter) required to improve the shooting effect to a better dynamic range. How to calculate the second exposure parameter of overexposure and the third exposure parameter of underexposure based on the HDR algorithm belongs to the prior art and will not be repeated here.

[0062] After obtaining three sets of different exposure parameters (i.e., the first exposure parameter, the second exposure parameter, and the third exposure parameter), the three sets of different exposure parameters can be sent to the image sensor via the I2C transmission bus. After receiving the three sets of different exposure parameters, the image sensor can use overlapping exposure technology to control the image sensor of the shooting device to perform exposure based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image, and at least one frame of the third image, respectively.

[0063] It should be noted that when the image sensor uses the overlapping exposure technology to control the image sensor of the shooting device to expose, the order of using the first exposure parameter, the second exposure parameter and the third exposure parameter for exposure can be set according to user needs, and is not limited here. Specifically, it can be that the image sensor of the shooting device is first controlled to expose through the second exposure parameter (i.e., EV+) to obtain an image frame, and then the image sensor of the shooting device is controlled to expose through the first exposure parameter (i.e., EV0) to obtain an image frame, and then the image sensor of the shooting device is controlled to expose through the third exposure parameter (i.e., EV-) to obtain an image frame, so as to meet the user's what-you-see-is-what-you-get effect.

[0064] The image sensor can then set a different Mobile Industry Processor Interface (MIPI) virtual channel identification code (VC ID) for each image (first image, second image, and third image). For example, the VC ID for the second image of EV+ can be set to 1, the VC ID for the first image of EV0 can be set to 0, and the VC ID for the third image of EV- can be set to 2. Then MIPI transmits the exposed image to the image signal processing module through different VCIDs.

[0065] After receiving the second image of EV+, the first image of EV0 and the third image of EV-, the image signal processing module can parse the received images based on the camera serial interface decoder (CSID), and then store the images into different cache spaces according to the VC ID. For example, the first image of EV0 can be stored in the cache space buffer0, the second image of EV+ can be stored in the cache space buffer1, and the third image of EV- can be stored in the cache space buffer2.

[0066] It should be noted that, while the image signal processing module stores the first image of EV0 in the cache space buffer0, it can also send the first image of EV0 to the shooting preview processing flow for processing. Specifically, the processing flow of sending the RAW format image to the YUV processing module includes color, noise, tone and other processing, and then the preview image displayed on the shooting preview interface is updated, that is, the processed first image is updated to the preview image displayed on the shooting preview interface.

[0067] It should be noted that for each cache space, each image in the cache space has its corresponding VC ID. The larger the VC ID, the more recent the image has been stored. The smaller the VC ID, the longer the image has been stored.

[0068] In an embodiment of the present application, a first exposure parameter, a second exposure parameter, and a third exposure parameter are determined according to light intensity information of a shooting scene, and then based on an exposure overlap method, an image sensor of a shooting device is controlled to perform exposure based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, respectively, to obtain at least one frame of a first image, at least one frame of a second image, and at least one frame of a third image, respectively, and the at least one frame of the first image, at least one frame of the second image, and at least one frame of the third image are stored, respectively. In this way, when shooting a shooting preview interface, at least two frames of target cache images can be directly obtained from the stored at least one frame of the first image, at least one frame of the second image, and at least one frame of the third image, without the need for re-exposure, thereby further improving the speed of shooting.

[0069] In some embodiments of the present application, in order to improve user experience, step 320 may specifically include:

[0070] Based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images are obtained from the first cache image sequence, the second cache image sequence and the third cache image sequence.

[0071] The target image area may be an image area corresponding to the target object.

[0072] The target object here may be an object in the preview image displayed in the shooting preview interface, for example, it may be a billboard or a person, etc., which is not limited here.

[0073] In an embodiment of the present application, based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained from the first cache image sequence, the second cache image sequence and the third cache image sequence. In this way, the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface can be obtained to obtain accurate at least two frames of target cache images, and then the accurate target image required by the user can be obtained, thereby improving the user experience.

[0074] In some embodiments of the present application, in order to improve the photographing effect, the step of acquiring at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image region in the shooting preview interface and the area ratio of the target image region in the shooting preview interface may specifically include:

[0075] When the gray value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is greater than a first preset threshold, acquiring at least two frames of target cache images from the first cache image sequence and the second cache image sequence;

[0076] When the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within a second preset range, the second exposure parameter is updated.

[0077] The first preset threshold may be a preset threshold of the area ratio of the target image area in the shooting preview interface, for example, 70%. The specific value may be set according to user needs and is not limited here.

[0078] The second preset range may be a preset range of the area ratio of the target image area in the shooting preview interface, for example, may be 30%-70%.

[0079] In one example, if there are not many dark areas in the shooting scene, but there is a large black billboard (i.e., the target object), the grayscale value of the target image area corresponding to the target object is 0. In this case, the HDR algorithm generally obtains a relatively large EV+ to brighten the low-light area, i.e., the black object area, but due to brightening the black object area, the black object will be seriously blurred. At this time, at least two frames of target cache images can be obtained based on the area ratio of the target image area in the shooting preview interface:

[0080] 1) If the area ratio of the target image region in the shooting preview interface is greater than a first preset threshold (for example, 70%), cache images are obtained only from the first cache image sequence and the third cache image sequence, and the cache images obtained from the first cache image sequence and the third cache image sequence are used as the target cache images.

[0081] 2) If the area ratio of the target image area in the shooting preview interface is within a second preset range (for example, the area ratio of the target image area in the shooting preview interface is 30%-70%), the HDR algorithm is directly fed back to reduce the EV+ value.

[0082] In some embodiments of the present application, if the target image area accounts for a very small area in the shooting preview interface (for example, the target image area accounts for less than 30% of the area in the shooting preview interface), no processing is performed.

[0083] In an embodiment of the present application, when the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is greater than a first preset threshold, at least two frames of target cache images are obtained from the first cache image sequence and the third cache image sequence; when the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within a second preset range, the second exposure parameter is updated. In this way, according to the grayscale value of the target image area corresponding to the target object and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained, and the second exposure parameter can be updated. In this way, the brightness and contrast of the second image corresponding to the second exposure parameter can be optimized using the result of scene detection, thereby improving the photography effect.

[0084] In some embodiments of the present application, in order to improve the photographing effect, the step of acquiring at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image region in the shooting preview interface and the area ratio of the target image region in the shooting preview interface may specifically include:

[0085] When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is greater than a third preset threshold, acquiring at least two frames of target cache images from the first cache image sequence and the second cache image sequence;

[0086] When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated.

[0087] The third preset threshold may be a preset area ratio of the target image area in the shooting preview interface, for example, 70%. The specific value may be set according to user needs and is not limited here.

[0088] The fourth preset range may be a preset range of the area ratio of the target image area in the shooting preview interface, for example, may be 30%-70%.

[0089] In one example, if there is a large white object in the shooting scene, such as a white wall (i.e., the target object), the grayscale value of the target image area corresponding to the target object is 255. In this case, the HDR algorithm generally obtains a relatively large EV-, because the role of EV- is to suppress highlights during HDR processing, but this is very likely to cause excessive suppression of highlight objects (i.e., white walls), resulting in a large loss of brightness, making the white walls dark, and may also cause local contrast loss in other scenes. At this time, you can obtain at least two frames of target cache images based on the area ratio of the target image area in the shooting preview interface:

[0090] 1) If the area ratio of the target image region in the shooting preview interface is greater than a third preset threshold (e.g., 70%), cache images are obtained only from the first cache image sequence and the second cache image sequence, and the cache images obtained from the first cache image sequence and the second cache image sequence are used as the target cache images.

[0091] 2) If the area ratio of the target image area in the shooting preview interface is within a fourth preset range (for example, the area ratio of the target image area in the shooting preview interface is 30%-70%), the HDR algorithm is directly fed back to increase the EV-value.

[0092] In some embodiments of the present application, if the target image area accounts for a very small area in the shooting preview interface (for example, the target image area accounts for less than 30% of the area in the shooting preview interface), no processing is performed.

[0093] In an embodiment of the present application, when the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is greater than the third preset threshold, at least two frames of target cache images are obtained from the first cache image sequence and the second cache image sequence; when the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated. In this way, according to the grayscale value of the target image area corresponding to the target object and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained, and the third exposure parameter can be updated. In this way, the brightness and contrast of the third image corresponding to the third exposure parameter can be optimized using the result of scene detection, thereby improving the photography effect.

[0094] In some embodiments of the present application, for any exposure parameter among the first exposure parameter, the second exposure parameter and the third exposure parameter, the exposure parameter may include a gain.

[0095] In some embodiments of the present application, in order to improve user experience, before step 330, the above-mentioned shooting method may further include:

[0096] When the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to at least two frames of target cache images are greater than a preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively.

[0097] The preset intensity may be light intensity information of a preset shooting scene, and the preset intensity may be set according to user needs, and is not limited here.

[0098] The preset gain may be a preset gain corresponding to at least two frames of target cache images. The preset gain may be set according to user needs and is not limited here.

[0099] In some embodiments of the present application, when it is detected that the environment of the current shooting scene is relatively dark, such as a night scene, the light intensity information of the shooting scene is less than a preset intensity, and since the image signal-to-noise ratio is reduced, that is, the exposure gain corresponding to at least two frames of target cache images is greater than the preset exposure gain, at this time, noise reduction processing can be performed on the at least two frames of target cache images respectively to obtain at least two frames of target cache images after noise reduction processing.

[0100] In an embodiment of the present application, when the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to at least two frames of target cache images are greater than the preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively. In this way, noise reduction processing is performed on the at least two frames of target cache images respectively using the results of scene detection, thereby improving the photo-taking effect, and obtaining a target image with better quality that meets user needs, thereby improving the user experience.

[0101] In some embodiments of the present application, EV+ is mainly used to enhance the brightness of dark areas of the image and enhance the details of dark areas during HDR processing; EV- is mainly used to suppress the brightness of highlights of the image and enhance the details of highlights during HDR processing. However, the local contrast of EV+ and EV- obtained from the cache space may not be good in low-light and high-light areas. In this way, in order to further improve the user experience, when the first target cache image in the first cache image sequence, the second target cache image in the second cache image sequence, and the third target cache image in the third cache image sequence are used as at least two frames of target cache images, step 330 may specifically include:

[0102] Determine a first image region of a second target cache image and a second image region of a third target cache image;

[0103] When the contrast between the brightness value of the first image region and the brightness value of the second image region is less than a preset contrast threshold, image enhancement processing is performed on the first image region and the second image region.

[0104] The first target cache image may be any frame of cache image in the first cache image sequence.

[0105] The second target cache image may be any frame cache image in the second cache image sequence.

[0106] The third target cache image may be any frame of cache image in the third cache image sequence.

[0107] The first image area may be a low-brightness image area in the second target cache image.

[0108] The second image area may be a highlighted image area in the third target cache image.

[0109] In some embodiments of the present application, the brightness value of the first image area is less than a first brightness threshold, and the brightness value of the second image area is greater than a second brightness threshold.

[0110] The first brightness threshold here may be a preset threshold of the brightness value of the first image area. The first brightness threshold here may be set according to user needs and is not limited here.

[0111] The second brightness threshold here may be a preset threshold of the brightness value of the second image area. The second brightness threshold here may be set according to user needs and is not limited here.

[0112] The preset contrast threshold may be a preset threshold of the contrast between the first brightness of the first image area and the second brightness of the second image area. The preset contrast threshold may be set according to user needs and is not limited here.

[0113] In an embodiment of the present application, after obtaining the second target cache image corresponding to EV+ and the third target cache image corresponding to EV-, if the brightness value of the first image area is less than the first brightness threshold, and the brightness value of the second image area is greater than the second brightness threshold, that is, the local contrast of the second target cache image corresponding to V+ and the third target cache image corresponding to EV- is not good, then the contrast of the brightness value of the first image area and the brightness value of the second image area can be obtained, and the local contrast detection of the low brightness of EV+ and the high brightness of EV- can be performed. If the contrast is not ideal (that is, the contrast is less than the preset contrast threshold), the local contrast enhancement of the low brightness of EV+ and the high brightness of EV- can be performed to improve the local contrast of the image synthesized by HDR processing. In this way, a target image that meets user needs and has good quality can be obtained.

[0114] 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.

[0115] Figure 4 The figure is a schematic diagram showing the structure of a photographing device according to an exemplary embodiment.

[0116] like Figure 4 As shown, the photographing device 400 may include:

[0117] The first receiving module 410 is used to receive a first input from a user on the shooting preview interface;

[0118] The image signal processing module 420 is used to obtain at least two frames of target cache images in response to the first input; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different; and obtain a target image based on the at least two frames of target cache images; wherein the at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input.

[0119] In an embodiment of the present application, by responding to the first input of the user to the shooting preview interface received by the first receiving module based on the image signal processing module, at least two frames of target cache images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input can be directly obtained, and then based on the at least two frames of target cache images, the target image can be obtained. Since the at least two frames of target cache images obtained are pre-exposed according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input, when shooting the shooting preview interface, at least two frames of target cache images obtained in advance can be directly obtained, and the target image can be directly generated without re-exposure, thereby improving the shooting speed, making HDR shooting closer to zero-delay shooting, and what you see is what you get. And because the overlapping exposure technology is used to control the shooting device to expose, the frame interval between different exposure frames is short, which can reduce the ghosting phenomenon during HDR synthesis processing.

[0120] In some embodiments of the present application, in order to further improve the shooting speed, the above-mentioned shooting device may further include:

[0121] An automatic exposure control module, used to determine a first exposure parameter, a second exposure parameter and a third exposure parameter according to light intensity information of a shooting scene; wherein the first exposure parameter, the second exposure parameter and the third exposure parameter are different from each other;

[0122] a control module, configured to control the image sensor of the shooting device to perform exposure based on the overlapping exposure mode and based on the first exposure parameter, the second exposure parameter and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image and at least one frame of the third image; the image signal processing module is further configured to store the at least one frame of the first image, the at least one frame of the second image and the at least one frame of the third image, respectively, to obtain a first cache image sequence, a second cache image sequence and a third cache image sequence;

[0123] The brightness value of the first image is smaller than the brightness value of the second image, and the brightness value of the first image is larger than the brightness value of the third image.

[0124] In some embodiments of the present application, in order to improve user experience, the image signal processing module 420 includes:

[0125] A first acquisition unit is used to acquire the at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface; wherein the target image area is an image area corresponding to the target object.

[0126] In some embodiments of the present application, in order to improve the photographing effect, the first acquiring unit is specifically used to:

[0127] When the gray value of the target image area is 0 and the area proportion of the target image area in the shooting preview interface is greater than a first preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the third cache image sequence;

[0128] When the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within a second preset range, the second exposure parameter is updated.

[0129] In some embodiments of the present application, in order to improve the photographing effect, the first acquiring unit is specifically used to:

[0130] When the grayscale value of the target image area is 255 and the area proportion of the target image area in the shooting preview interface is greater than a third preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the second cache image sequence;

[0131] When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated.

[0132] In some embodiments of the present application, for any exposure parameter among the first exposure parameter, the second exposure parameter and the third exposure parameter, the exposure parameter includes gain.

[0133] In some embodiments of the present application, in order to improve user experience, the image signal processing module 420 may also be specifically used for:

[0134] When the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to the at least two frames of target cache images are greater than a preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively.

[0135] In some embodiments of the present application, in order to further improve user experience, when the first target cache image in the first cache image sequence, the second target cache image in the second cache image sequence, and the third target cache image in the third cache image sequence are used as at least two frames of target cache images, the image signal processing module may also be specifically used to:

[0136] Determine a first image region of the second target cache image and a second image region of the third target cache image, wherein a brightness value of the first image region is less than a first brightness threshold, and a brightness value of the second image region is greater than a second brightness threshold;

[0137] When the contrast between the brightness value of the first image area and the brightness value of the second image area is less than a preset contrast threshold, image enhancement processing is performed on the first image area and the second image area.

[0138] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, 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., and the embodiment of the present application does not make specific limitations.

[0139] 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.

[0140] The shooting device provided in the embodiment of the present application can achieve Figure 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0141] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, the various steps of the above-mentioned shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0142] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0143] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0144] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

[0145] Those skilled in the art will appreciate that the electronic device 600 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 processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 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.

[0146] The user input unit 607 is used to receive a first input from a user on the shooting preview interface;

[0147] The processor 610 is configured to obtain at least two frames of target cache images in response to the first input; and obtain a target image based on the at least two frames of target cache images.

[0148] The at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on an overlapping exposure mode before receiving the first input.

[0149] In this way, by responding to the user's first input to the shooting preview interface, at least two frames of target cache images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input can be directly obtained, and then based on the at least two frames of target cache images, the target image can be obtained. Since the at least two frames of target cache images obtained are pre-exposed according to the exposure parameters in the target exposure parameter group based on the overlapping exposure method before receiving the first input, when shooting the shooting preview interface, at least two frames of target cache images obtained in advance can be directly obtained, and the target image can be directly generated without re-exposure, thereby improving the shooting speed, making HDR shooting closer to zero-delay shooting, and what you see is what you get. And because the overlapping exposure technology is used to control the shooting device for exposure, the frame interval between different exposure frames is short, which can reduce the ghosting phenomenon during HDR synthesis processing.

[0150] Optionally, the processor 610 is further used to determine a first exposure parameter, a second exposure parameter, and a third exposure parameter based on light intensity information of a shooting scene; based on an overlapping exposure method, control the image sensor of the shooting device to perform exposure based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image, and at least one frame of the third image; store the at least one frame of the first image, the at least one frame of the second image, and the at least one frame of the third image, respectively, to obtain a first cache image sequence, a second cache image sequence, and a third cache image sequence.

[0151] In this way, by determining the first exposure parameter, the second exposure parameter and the third exposure parameter according to the light intensity information of the shooting scene, and then based on the exposure overlap method, the image sensor of the shooting device is exposed based on the first exposure parameter, the second exposure parameter and the third exposure parameter respectively, so as to obtain at least one frame of the first image, at least one frame of the second image and at least one frame of the third image respectively, and store the at least one frame of the first image, at least one frame of the second image and at least one frame of the third image respectively. In this way, when shooting the shooting preview interface, at least two frames of target cache images can be directly obtained from the stored at least one frame of the first image, at least one frame of the second image and at least one frame of the third image without re-exposure, thereby further improving the speed of shooting.

[0152] Optionally, the processor 610 is also used to obtain the at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface.

[0153] In this way, based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained from the first cache image sequence, the second cache image sequence and the third cache image sequence. In this way, the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface can be obtained to obtain accurate at least two frames of target cache images, and then the accurate target image required by the user can be obtained, thereby improving the user experience.

[0154] Optionally, the processor 610 is further used to obtain the at least two frames of target cache images from the first cache image sequence and the third cache image sequence when the grayscale value of the target image area is 0 and the area proportion of the target image area in the shooting preview interface is greater than a first preset threshold; and update the second exposure parameter when the grayscale value of the target image area is 0 and the area proportion of the target image area in the shooting preview interface is within a second preset range.

[0155] In this way, when the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is greater than the first preset threshold, at least two frames of target cache images are obtained from the first cache image sequence and the third cache image sequence; when the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within the second preset range, the second exposure parameter is updated. In this way, according to the grayscale value of the target image area corresponding to the target object and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained, and the second exposure parameter can be updated. In this way, the brightness and contrast of the second image corresponding to the second exposure parameter can be optimized using the result of scene detection, thereby improving the photo effect.

[0156] Optionally, the processor 610 is further configured to, when the grayscale value of the target image area is 255 and the area proportion of the target image area in the shooting preview interface is greater than a third preset threshold, obtain the at least two frames of target cache images from the first cache image sequence and the second cache image sequence;

[0157] When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated.

[0158] In this way, when the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is greater than the third preset threshold, at least two frames of target cache images are obtained from the first cache image sequence and the second cache image sequence; when the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within the fourth preset range, the third exposure parameter is updated. In this way, according to the grayscale value of the target image area corresponding to the target object and the area ratio of the target image area in the shooting preview interface, at least two frames of target cache images can be obtained, and the third exposure parameter can be updated. In this way, the brightness and contrast of the third image corresponding to the third exposure parameter can be optimized using the result of scene detection, thereby improving the photo effect.

[0159] Optionally, the processor 610 is further configured to perform noise reduction processing on the at least two frames of target cache images respectively when the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to the at least two frames of target cache images are greater than a preset gain.

[0160] In this way, when the light intensity information of the shooting scene is less than the preset intensity and the gains corresponding to at least two frames of target cache images are greater than the preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively. In this way, noise reduction processing is performed on at least two frames of target cache images respectively using the results of scene detection, which improves the photo-taking effect, and then obtains target images with better quality that meet user needs, thereby improving user experience.

[0161] Optionally, the processor 610 is further used to determine a first image area of ​​the second target cache image and a second image area of ​​the third target cache image, wherein a brightness value of the first image area is less than a first brightness threshold, and a brightness value of the second image area is greater than a second brightness threshold; when a contrast between a first brightness threshold of the first image area and a second brightness threshold of the second image area is less than a preset contrast threshold, image enhancement processing is performed on the first image area and the second image area.

[0162] In this way, after obtaining the second target cache image corresponding to EV+ and the third target cache image corresponding to EV-, if the brightness value of the first image area is less than the first brightness threshold, and the brightness value of the second image area is greater than the second brightness threshold, that is, the local contrast of the second target cache image corresponding to V+ and the third target cache image corresponding to EV- is not good, then the contrast of the brightness value of the first image area and the brightness value of the second image area can be obtained, and the local contrast detection of the low brightness of EV+ and the high brightness of EV- can be performed. If the contrast is not ideal (that is, the contrast is less than the preset contrast threshold), the local contrast enhancement of the low brightness of EV+ and the high brightness of EV- can be performed to improve the local contrast of the image synthesized after HDR processing. In this way, a target image that meets user needs and has good quality can be obtained.

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

[0164] The memory 609 can be used to store software programs and various data. The memory 609 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 609 may include a volatile memory or a non-volatile memory, or the memory 609 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 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0165] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a 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 processor 610.

[0166] An 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 a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0167] 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 magnetic disk or an optical disk.

[0168] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions 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.

[0169] It should be understood that the chip mentioned in the embodiments 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.

[0170] An embodiment of the present application 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.

[0171] 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.

[0172] 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 a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0173] 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 a shooting device, It is characterized in that The method comprises: Receive a first input from a user on the shooting preview interface; In response to the first input, at least two frames of target cache images are acquired; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different; Obtaining a target image based on the at least two frames of target cache images; The at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on the overlapping exposure mode before receiving the first input; The step of acquiring at least two frames of target cache images comprises: Based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface, acquiring the at least two frames of target cache images; The target image area is an image area corresponding to the target object.

2. The method according to claim 1, It is characterized in that Before receiving a first input from a user on the shooting preview interface, the method further includes: Determining a first exposure parameter, a second exposure parameter, and a third exposure parameter according to light intensity information of a shooting scene; wherein the first exposure parameter, the second exposure parameter, and the third exposure parameter are different from each other; Based on the overlapping exposure mode, the image sensor of the shooting device is controlled to perform exposure based on the first exposure parameter, the second exposure parameter and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image and at least one frame of the third image; The at least one frame of the first image, the at least one frame of the second image, and the at least one frame of the third image are stored respectively to obtain a first cache image sequence, a second cache image sequence, and a third cache image sequence; The brightness value of the first image is smaller than the brightness value of the second image, and the brightness value of the first image is larger than the brightness value of the third image.

3. The method according to claim 2, It is characterized in that The acquiring the at least two frames of target cache images based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface includes: Based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface, the at least two frames of target cache images are obtained from the first cache image sequence, the second cache image sequence and the third cache image sequence.

4. The method according to claim 3, It is characterized in that The acquiring the at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image region in the shooting preview interface and the area ratio of the target image region in the shooting preview interface includes: When the gray value of the target image area is 0 and the area proportion of the target image area in the shooting preview interface is greater than a first preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the third cache image sequence; When the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within a second preset range, the second exposure parameter is updated.

5. The method according to claim 3, It is characterized in that The acquiring the at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image region in the shooting preview interface and the area ratio of the target image region in the shooting preview interface includes: When the grayscale value of the target image area is 255 and the area proportion of the target image area in the shooting preview interface is greater than a third preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the second cache image sequence; When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated.

6. The method according to claim 2, It is characterized in that For any exposure parameter among the first exposure parameter, the second exposure parameter and the third exposure parameter, the exposure parameter includes a gain, and before obtaining the target image based on the at least two frames of target cache images, the method further includes: When the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to the at least two frames of target cache images are greater than a preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively.

7. The method according to claim 2, It is characterized in that In the case where a first target cache image in a first cache image sequence, a second target cache image in a second cache image sequence, and a third target cache image in a third cache image sequence are used as the at least two frames of target cache images, obtaining a target image based on the at least two frames of target cache images includes: Determine a first image region of the second target cache image and a second image region of the third target cache image, wherein a brightness value of the first image region is less than a first brightness threshold, and a brightness value of the second image region is greater than a second brightness threshold; When the contrast between the brightness value of the first image area and the brightness value of the second image area is less than a preset contrast threshold, image enhancement processing is performed on the first image area and the second image area.

8. A photographing device, It is characterized in that The device comprises: A first receiving module, used to receive a first input from a user on the shooting preview interface; An image signal processing module, configured to obtain at least two frames of target cache images in response to the first input; wherein the exposure parameters corresponding to each target cache image in the at least two frames of target cache images are different; and obtain a target image based on the at least two frames of target cache images; wherein the at least two frames of target cache images are images obtained by exposure according to the exposure parameters in the target exposure parameter group based on an overlapping exposure method before receiving the first input; The image signal processing module includes a first acquisition unit, which is used to acquire the at least two frames of target cache images based on the grayscale value of the target image area in the shooting preview interface and the area ratio of the target image area in the shooting preview interface; wherein the target image area is an image area corresponding to the target object.

9. The device according to claim 8, It is characterized in that The device also includes: An automatic exposure control module, used to determine a first exposure parameter, a second exposure parameter and a third exposure parameter according to light intensity information of a shooting scene; wherein the first exposure parameter, the second exposure parameter and the third exposure parameter are different from each other; a control module, configured to control the image sensor of the shooting device to perform exposure based on the overlapping exposure mode and based on the first exposure parameter, the second exposure parameter and the third exposure parameter, respectively, to obtain at least one frame of the first image, at least one frame of the second image and at least one frame of the third image; the image signal processing module is further configured to store the at least one frame of the first image, the at least one frame of the second image and the at least one frame of the third image, respectively, to obtain a first cache image sequence, a second cache image sequence and a third cache image sequence; The brightness value of the first image is smaller than the brightness value of the second image, and the brightness value of the first image is larger than the brightness value of the third image.

10. The device according to claim 9, It is characterized in that The first acquisition unit is configured to acquire the at least two frames of target cache images from the first cache image sequence, the second cache image sequence, and the third cache image sequence based on the grayscale value of the target image region in the shooting preview interface and the area ratio of the target image region in the shooting preview interface; The target image area is an image area corresponding to the target object.

11. The device according to claim 10, It is characterized in that The first acquisition unit is specifically used for: When the gray value of the target image area is 0 and the area proportion of the target image area in the shooting preview interface is greater than a first preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the third cache image sequence; When the grayscale value of the target image area is 0 and the area ratio of the target image area in the shooting preview interface is within a second preset range, the second exposure parameter is updated.

12. The device according to claim 10, It is characterized in that The first acquisition unit is specifically used for: When the grayscale value of the target image area is 255 and the area proportion of the target image area in the shooting preview interface is greater than a third preset threshold, acquiring the at least two frames of target cache images from the first cache image sequence and the second cache image sequence; When the grayscale value of the target image area is 255 and the area ratio of the target image area in the shooting preview interface is within a fourth preset range, the third exposure parameter is updated.

13. The device according to claim 9, It is characterized in that For any exposure parameter among the first exposure parameter, the second exposure parameter and the third exposure parameter, the exposure parameter includes a gain, and the image signal processing module is further used to: When the light intensity information of the shooting scene is less than a preset intensity and the gains corresponding to the at least two frames of target cache images are greater than a preset gain, noise reduction processing is performed on the at least two frames of target cache images respectively.

14. The device according to claim 9, It is characterized in that In the case where the first target cache image in the first cache image sequence, the second target cache image in the second cache image sequence, and the third target cache image in the third cache image sequence are used as the at least two frames of target cache images, the image signal processing module is further used to: Determine a first image region of the second target cache image and a second image region of the third target cache image, wherein a brightness value of the first image region is less than a first brightness threshold, and a brightness value of the second image region is greater than a second brightness threshold; When the contrast between the brightness value of the first image area and the brightness value of the second image area is less than a preset contrast threshold, image enhancement processing is performed on the first image area and the second image area.

15. An electronic device, It is characterized in that The method comprises 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 7 are implemented.

16. 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 7 are implemented.

Citation Information

Patent Citations

  • Image processing method and device, storage medium and electronic device

    CN110198417A

  • Image processing method and device, storage medium and electronic equipment

    CN110445988A

  • Image capture method and device

    WO2019183813A1