Image acquisition method, electronic equipment and storage medium
By acquiring long and short frame images in the image acquisition device and adjusting the exposure time according to the image brightness, the problem of target overexposure when the ambient brightness is insufficient is solved, and the quality and clarity of image acquisition are improved.
Patent Information
- Application Number
- CN202410961242.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
AI Technical Summary
When the ambient brightness is insufficient and the fill light intensity increases, the probability of target overexposure is high, resulting in the loss of information in some areas or the license plate overexposure, resulting in a decline in image quality.
By acquiring the first long frame image and the first short frame image, satisfying the preset conditions according to the image brightness, the exposure time of the long frame and short frame is adaptively adjusted to ensure the appropriateness of the exposure time, thereby improving image quality under different environmental conditions. .
Under different environmental conditions, images are collected using more appropriate exposure times, improving the quality of long and short frame images, reducing overexposure, and improving the clarity and noise performance of the monitoring screen.
Smart Images

Figure CN118921562A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image acquisition technology, and in particular to an image acquisition method, electronic equipment and storage medium. Background Art
[0002] When the ambient brightness is insufficient, the device will turn on the fill light to increase the device's viewing distance and improve the quality of the monitoring image. In a fixed scene, the greater the fill light intensity and the higher the ambient brightness, the better the image clarity and noise performance.
[0003] However, in actual applications, many targets have strong reflective ability. The closer they are to the fill light, the greater the probability of overexposure. Under strong fill light, it is easy to cause part of the target to be overexposed, resulting in loss of information in that part of the target, or the license plate to be overexposed, resulting in loss of vehicle information. Summary of the invention
[0004] The present application at least provides an image acquisition method, an electronic device and a storage medium.
[0005] The present application provides an image acquisition method, including: acquiring a first long frame image and a first short frame image, the first long frame image being acquired based on a first long frame exposure time, and the first short frame image being acquired based on a first short frame exposure time; in response to the image brightness of the first long frame image and / or the first short frame image satisfying a first preset condition, increasing the first long frame exposure time and reducing the first short frame exposure time or reducing the first long frame exposure time and increasing the first short frame exposure time to obtain a second long frame exposure time and a second short frame exposure time, the sum of the second long frame exposure time and the second short frame exposure time being less than or equal to a preset single frame exposure time; and acquiring a second long frame image and a second short frame image according to the second long frame exposure time and the second short frame exposure time.
[0006] The present application provides an image acquisition device, including: a first image acquisition module, a parameter adjustment module and a second image acquisition module; the first image acquisition module is used to acquire a first long frame image and a first short frame image, the first long frame image is acquired based on a first long frame exposure time, and the first short frame image is acquired based on a first short frame exposure time; the parameter adjustment module is used to increase the first long frame exposure time and reduce the first short frame exposure time or reduce the first long frame exposure time and increase the first short frame exposure time in response to the image brightness of the first long frame image and / or the first short frame image satisfying a first preset condition, so as to obtain a second long frame exposure time and a second short frame exposure time, the sum of the second long frame exposure time and the second short frame exposure time being less than or equal to a preset single frame exposure time; the second image acquisition module is used to acquire a second long frame image and a second short frame image according to the second long frame exposure time and the second short frame exposure time.
[0007] The present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned image acquisition method.
[0008] The present application provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, the above-mentioned image acquisition method is implemented.
[0009] The above scheme can adaptively adjust the exposure time of the long frame and the short frame when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0012] Figure 1 It is a flowchart of an embodiment of the image acquisition method of the present application;
[0013] Figure 2 It is another flowchart of an embodiment of the image acquisition method of the present application;
[0014] Figure 3 It is a structural schematic diagram of an embodiment of the image acquisition device of the present application;
[0015] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0016] Figure 5 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0017] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0018] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0019] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.
[0020] In some application scenarios, the image acquisition method provided by the present application can be applied to the field of photography, etc. The execution subject for implementing the image acquisition method described in the present application can be an image acquisition device, an electronic device, etc. For example, the image acquisition device can be set in a terminal device or a server or other processing device, wherein the terminal device can be an audio device, an electronic device, a user equipment (UE), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the image acquisition method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0021] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of the image acquisition method of the present application.
[0022] like Figure 1 As shown, the image acquisition method provided by the embodiment of the present disclosure may include the following steps:
[0023] Step S11: Acquire a first long frame image and a first short frame image.
[0024] The first long frame image is acquired based on the first long frame exposure time, and the first short frame image is acquired based on the first short frame exposure time. That is, the first long frame image is acquired within the first long frame exposure time, and the first short frame image is acquired within the first short frame exposure time. There may be multiple relationships between the first long frame exposure time and the first short frame exposure time, such as the first short frame exposure time being after the first long frame exposure time, or the first short frame exposure time being before the first long frame exposure time, or the first long frame exposure time and the first short frame exposure time alternating, etc.
[0025] The sum of the first long frame exposure time and the first short frame exposure time is less than or equal to the preset single frame exposure time. An image acquisition device supporting wide dynamic range technology (HDR) generally supports long frame and short frame exposure within one frame time. For example, taking the image acquisition device capable of shooting 25 frames per second, the preset single frame exposure time is 40ms, that is, the sum of the first long frame exposure time and the first short frame exposure time is less than or equal to 40ms.
[0026] Step S12: In response to the image brightness of the first long frame image and / or the first short frame image satisfying a first preset condition, the first long frame exposure time is increased and the first short frame exposure time is reduced or the first long frame exposure time is reduced and the first short frame exposure time is increased to obtain a second long frame exposure time and a second short frame exposure time.
[0027] The sum of the second long frame exposure time and the second short frame exposure time is less than or equal to the preset single frame exposure time. Among them, the second long frame exposure time can be considered as the new first long frame exposure time, and the second short frame exposure time can be considered as the new first short frame exposure time. Different environmental conditions have different requirements for exposure time, and different processing can be performed, that is, the first preset condition can have multiple sub-conditions, some of the sub-conditions correspond to increasing the first long frame exposure time and reducing the first short frame exposure time, and other sub-conditions correspond to reducing the first long frame exposure time and increasing the first short frame exposure time. By adaptively adjusting the first long frame exposure time and the first short frame exposure time according to the brightness of the captured image, the quality of the image subsequently captured according to the adjusted second short frame exposure time and the second long frame exposure time is higher.
[0028] Step S13: acquiring a second long frame image and a second short frame image according to a second long frame exposure time and a second short frame exposure time.
[0029] That is, the second long frame image is acquired during the second long frame exposure time, and the second short frame image is acquired during the second short frame exposure time. The second long frame image can be considered as a new first long frame image, and the second short frame image can be considered as a new first short frame image. That is, the present solution can determine whether the brightness of the image meets the first preset condition after each long frame image and short frame image are acquired, and execute step S12 if the first preset condition is met. Or in other embodiments, the step of determining whether the brightness of the image meets the first preset condition can be executed at regular intervals, thereby reducing the number of times the exposure time is adjusted.
[0030] In the above scheme, when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, the exposure time of the long frame and the short frame can be adaptively adjusted, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0031] In some embodiments, the above step S11 may include the following steps:
[0032] In response to receiving an instruction to adjust the shooting mode to the long-short frame exposure mode, the shooting mode of the image acquisition device is adjusted to the long-short frame exposure mode. The specific adjustment method may be to detect the user's selection operation on the long-short frame exposure mode. If the selection operation is detected, it is determined that the instruction to adjust the shooting mode to the long-short frame exposure mode is received. Optionally, when the image acquisition device is adjusted from other shooting modes to the long-short frame exposure mode, the first long frame exposure time is a preset long frame exposure time, and the first short frame exposure time is a preset short frame exposure time. Optionally, the preset long frame exposure time is substantially the same as the preset single frame exposure time, that is, the difference between the preset long frame exposure time and the preset single frame exposure time is less than the preset difference, and the preset difference is close to 0. In other words, the preset short frame exposure time is close to 0. Optionally, when the image acquisition device is adjusted from other shooting modes to the long-short frame exposure mode, the short frame gain is close to 0 or directly 0. Closeness can be specifically considered to be that the difference between 0 and 0 is less than or equal to the preset gain difference.
[0033] A first long frame image is acquired according to a first long frame exposure time and a first short frame image is acquired according to a first short frame exposure time, wherein the first long frame exposure time is greater than the first short frame exposure time.
[0034] In some embodiments, the image acquisition method may further include the following steps:
[0035] In response to the brightness of at least a portion of the image area in the first long-frame image being greater than or equal to the first preset brightness, the fill light brightness is reduced. Then, the fill light is controlled to perform fill light according to the reduced fill light brightness. Or, in response to the brightness of at least a portion of the image area in the first long-frame image being less than the second preset brightness, the fill light brightness is increased. Then, the fill light is controlled to perform fill light according to the increased fill light brightness.
[0036] Among them, the first long frame image and the first short frame image can be divided into multiple image blocks, and each image block corresponds to an image area. At least part of the image area can be one or more image blocks. The first preset brightness is greater than or equal to the second preset brightness. In this embodiment, the first preset brightness is greater than the second preset brightness as an example. The first preset brightness can represent that the image brightness is overexposed, and the second preset brightness can represent that the image brightness is low. That is, when the picture is overexposed, the brightness of the fill light is reduced, and after the overexposed target leaves the picture, the brightness of the fill light can be increased.
[0037] In some embodiments, the above step S12 may include the following steps:
[0038] In response to the brightness of at least a partial image area in the first long frame image and / or the first short frame image being greater than or equal to a first preset brightness, the first long frame exposure time is reduced and the first short frame exposure time is increased.
[0039] Exemplarily, if it is detected that there is a moving highlight object or an overexposure of a smart target in the first long frame image and / or the first short frame image, the long frame shutter is reduced by Tms and the short frame shutter is increased by Tms according to the preset exposure time. Optionally, in response to the brightness of at least a part of the image area in the first long frame image and / or the first short frame image being greater than or equal to the first preset brightness, the short frame gain may be increased. As described above, the short frame gain may be close to 0, and the restriction on the short frame gain may be released to better capture the short frame image.
[0040] Or, in response to the brightness of each image area in the first long frame image and / or the first short frame image being less than or equal to a second preset brightness, the first long frame exposure time is increased and the first short frame exposure time is reduced, and the first preset brightness is greater than the second preset brightness.
[0041] Exemplarily, when there is no moving highlight object or no smart target overexposure in the first long frame image and / or the first short frame image, the long frame shutter is as close as possible to a preset single frame exposure time, for example, 40ms under P mode. At this time, the short frame shutter is reduced to 0 as much as possible, and the gain is also controlled to 0. The subsequently collected short frame image is close to completely black, thereby reducing the encoding and decoding resource consumption of the device.
[0042] The reducing of the first short frame exposure time may specifically be reducing the first short frame exposure time to 0. Alternatively, the reducing of the first short frame exposure time may be close to 0. On this basis, after executing the above step S13, the following steps may be further performed: saving the second long frame image acquired according to the second long frame exposure time, and discarding the second short frame image acquired according to the second short frame exposure time.
[0043] As mentioned above, when there is no moving highlight object or no smart target overexposure in the first long frame image and / or the first short frame image, the long frame shutter is as close to the preset single frame exposure time as possible, for example, 40ms under P mode, and the short frame shutter is reduced to 0 as much as possible, and the gain is also controlled to 0. The short frame image collected subsequently is close to black, reducing the encoding and decoding resource consumption of the device. In this case, the short frame image can be omitted to reduce the storage requirements of the system.
[0044] In other embodiments, on the basis of reducing the first long frame exposure time and increasing the first short frame exposure time, after executing the above step S13, the following steps can also be performed: saving the second long frame image captured according to the second long frame exposure time and the second short frame image captured according to the second short frame exposure time.
[0045] The second long frame image and the second short frame image are stored separately. The second long frame image and the second short frame image can be used for image processing such as target detection and target recognition. Exemplarily, the second long frame image and the second short frame image can be processed separately, and then the final image processing result can be determined according to the image processing results of the two images. Alternatively, the second long frame image and the second short frame image are first registered, and image processing is performed according to the image after image registration to obtain the image processing result.
[0046] As mentioned above, when there are no moving overexposed objects or overexposed smart targets, the upper limit of the long-frame shutter is the maximum number of exposure lines to ensure the long-frame image effect, and short-frame videos are not stored to reduce bandwidth and storage resource consumption. When there are moving overexposed objects or overexposed smart targets, the upper limit of the long-frame exposure is lowered, the upper limit of the short-frame exposure is increased, and short-frame videos are stored to record key foreground information that is not overexposed.
[0047] Please also refer to Figure 2 , Figure 2 FIG. 1 is another flow chart of an embodiment of the image acquisition method of the present application. Figure 2 As shown, the image acquisition method may further include the following steps:
[0048] Step S21: Acquire the image brightness of the second short frame image.
[0049] Among them, the method of obtaining the image brightness of the second short frame image can be: obtaining the brightness of several image blocks in the second short frame image. Optionally, each image block can include multiple pixels, and the weight of each pixel is determined according to the brightness of each pixel, and the brightness of the image block is determined according to the weight of the pixel, wherein the weight of the pixel and the brightness of the pixel can be positively correlated. Then, the weight of each image block is determined according to the brightness of each image block, and the weight is positively correlated with the brightness. That is, the higher the brightness, the greater the weight. Then, the brightness of each image block is weightedly fused using the weight of each image block to obtain the image brightness of the second short frame image.
[0050] Step S22: in response to the image brightness of the second short frame image satisfying a second preset condition, reducing the gain corresponding to the second short frame exposure time.
[0051] The second preset condition may be that the image brightness is greater than or equal to a brightness threshold, and the brightness threshold may be the above-mentioned first preset brightness or a third preset brightness higher than the first preset brightness. Optionally, there may be multiple second preset conditions, each second preset condition corresponds to a different brightness threshold, and different brightness thresholds correspond to different short frame gains. In other embodiments, if the image brightness of the second short frame image meets the second preset condition, the brightness of the fill light may be further reduced and / or the exposure time of the second short frame may be reduced to reduce the exposure probability of subsequent short frame images.
[0052] Step S23: using the second long frame exposure time, the second short frame exposure time and the adjusted gain, a new second long frame image and a new second short frame image are acquired.
[0053] That is, in the short frame image, it is determined according to the second preset condition whether to reduce the gain corresponding to the second short frame exposure time to reduce the noise of the short frame.
[0054] In the above scheme, when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, the exposure time of the long frame and the short frame can be adaptively adjusted, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0055] This solution provides a fill light overexposure prevention method that can take into account both background brightness and foreground target brightness, that is, the device is always in 2-frame exposure mode. However, when there is no moving overexposed object, the long frame shutter upper limit is kept basically the same as that of single-frame linear exposure, and the short frame shutter upper limit is basically limited to the minimum to ensure the quality of the long frame image. When a moving overexposed object is detected, the fill light intensity is adjusted down based on the moving highlighted object. At the same time, the long frame shutter upper limit is lowered by Tms, and the short frame shutter upper limit is increased by Tms. In addition, by detecting the image brightness in the short frame image, the gain of the short frame is dynamically adjusted to reduce the noise of the short frame image.
[0056] In some embodiments, for the background in the picture, the impact of the exposure parameters is far greater than that of the fill light. Therefore, after the fill light intensity is reduced, the shutter gain of the long frame focusing on the background can be increased to a certain extent, and the clarity of the background can still be guaranteed. For the short frame focusing on the overexposed objects in the foreground, after the fill light is reduced, a certain strong light suppression strategy is maintained, and the anti-overexposure effect of the foreground can also be guaranteed.
[0057] Among them, the image acquisition device includes an image sensor, which is always in the long and short frame exposure (HDR) mode, but the long and short frame outputs are not fused. The long and short frame images are used as two independent video streams, and their respective exposure parameters are controlled respectively. The fill light is controlled by the long frame.
[0058] When there is no moving highlight object or smart target overexposure in the picture, the long-frame shutter is as close to the preset single-frame exposure time as possible, for example, 40ms under P mode. At this time, the short-frame shutter is reduced to 0 as much as possible, and the gain is also controlled to 0. At this time, the short-frame image is close to black, reducing the encoding and decoding resource consumption of the device. The related video stream is not stored, reducing the storage requirements of the system.
[0059] When the screen detects a moving bright object or an overexposed smart target, the long-frame shutter is reduced by Tms and the short-frame shutter is increased by Tms according to the preset exposure time. The short-frame gain limit is released, and the long-frame control fill light is reduced to a certain level to ensure that the short-frame close-up object is not overexposed. The short-frame video stream is stored. After the screen is stable for a certain period of time, the light is gradually adjusted back, the long-frame shutter is adjusted back, and the short-frame shutter and gain are reduced to the minimum, reducing the pressure on the short-frame encoding and decoding.
[0060] See also Figure 3 , Figure 3: is a structural schematic diagram of an embodiment of an image acquisition device of the present application. The image acquisition device 30 can execute the above-mentioned image acquisition method. The image acquisition device 30 includes a first image acquisition module 31, a parameter adjustment module 32 and a second image acquisition module 33; the first image acquisition module 31 is used to acquire a first long frame image and a first short frame image, the first long frame image is acquired based on a first long frame exposure time, and the first short frame image is acquired based on a first short frame exposure time; the parameter adjustment module 32 is used to increase the first long frame exposure time and reduce the first short frame exposure time or reduce the first long frame exposure time and increase the first short frame exposure time in response to the image brightness of the first long frame image and / or the first short frame image meeting a first preset condition, to obtain a second long frame exposure time and a second short frame exposure time, the sum of the second long frame exposure time and the second short frame exposure time is less than or equal to a preset single frame exposure time; the second image acquisition module 33 is used to acquire a second long frame image and a second short frame image according to the second long frame exposure time and the second short frame exposure time.
[0061] The above scheme can adaptively adjust the exposure time of the long frame and the short frame when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0062] Among them, the functions of each module can be found in the description of the image acquisition method embodiment, and will not be repeated here.
[0063] See also Figure 4 , Figure 4 4 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 40 includes a memory 41 and a processor 42, and the processor 42 is used to execute program instructions stored in the memory 41 to implement the steps in any of the above-mentioned image acquisition method embodiments. In a specific implementation scenario, the electronic device 40 may include but is not limited to: a monitoring device, a microcomputer, and a server. In addition, the electronic device 40 may also include a carrier device such as a laptop computer and a tablet computer, which is not limited here.
[0064] Specifically, the processor 42 is used to control itself and the memory 41 to implement the steps in any of the above-mentioned image acquisition method embodiments. The processor 42 can also be called a CPU (Central Processing Unit). The processor 42 may be an integrated circuit chip with signal processing capabilities. The processor 42 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 42 can be implemented by an integrated circuit chip.
[0065] The above scheme can adaptively adjust the exposure time of the long frame and the short frame when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0066] See also Figure 5 , Figure 5 The computer-readable storage medium 50 stores program instructions 51, which implement the steps in any of the above-mentioned image acquisition method embodiments when executed by a processor.
[0067] The above scheme can adaptively adjust the exposure time of the long frame and the short frame when it is detected that the image brightness of the first long frame image and / or the first short frame image meets the first preset condition, so that under different environmental conditions, a more suitable exposure time can be used to capture long frame images and short frame images, so that the image quality of the captured long frame images and short frame images is higher.
[0068] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0069] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0070] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, units or components can be combined or integrated into another system, or some features can be ignored or not executed. In another image position, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0071] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
Claims
1. An image acquisition method, characterized in that: include: Acquire a first long frame image and a first short frame image, wherein the first long frame image is acquired based on a first long frame exposure time, and the first short frame image is acquired based on a first short frame exposure time; In response to the image brightness of the first long frame image and / or the first short frame image satisfying a first preset condition, increasing the first long frame exposure time and reducing the first short frame exposure time or reducing the first long frame exposure time and increasing the first short frame exposure time to obtain a second long frame exposure time and a second short frame exposure time, wherein the sum of the second long frame exposure time and the second short frame exposure time is less than or equal to a preset single frame exposure time; According to the second long frame exposure time and the second short frame exposure time, a second long frame image and a second short frame image are acquired.
2. The method according to claim 1, characterized in that In response to the image brightness of the first long frame image and / or the first short frame image satisfying a first preset condition, increasing the first long frame exposure time and reducing the first short frame exposure time or reducing the first long frame exposure time and increasing the first short frame exposure time comprises: In response to the brightness of at least a partial image area in the first long frame image and / or the first short frame image being greater than or equal to a first preset brightness, reducing the first long frame exposure time and increasing the first short frame exposure time; or, In response to the brightness of each image area in the first long frame image and / or the first short frame image being less than or equal to a second preset brightness, the first long frame exposure time is increased and the first short frame exposure time is reduced, and the first preset brightness is greater than the second preset brightness.
3. The method according to claim 2, characterized in that The reducing the first short frame exposure time comprises: reducing the first short frame exposure time to 0; The method further comprises: The second long frame image acquired according to the second long frame exposure time is saved, and the second short frame image acquired according to the second short frame exposure time is discarded.
4. The method according to claim 2, characterized in that: After reducing the first long frame exposure time and increasing the first short frame exposure time, the method further includes: The second long frame image acquired according to the second long frame exposure time and the second short frame image acquired according to the second short frame exposure time are saved.
5. The method according to claim 4, characterized in that After reducing the first long frame exposure time and increasing the first short frame exposure time, the method further includes: Acquire the image brightness of the second short frame image; In response to the image brightness of the second short frame image satisfying a second preset condition, reducing the gain corresponding to the second short frame exposure time; A new second long frame image and a new second short frame image are acquired by using the second long frame exposure time, the second short frame exposure time and the adjusted gain.
6. The method according to claim 5, characterized in that The acquiring the image brightness of the second short frame image comprises: Acquire brightness of a plurality of image blocks in the second short frame image; Determine the weight of each image block according to the brightness of each image block, and the weight is positively correlated with the brightness; The brightness of each image block is weightedly fused using the weight of each image block to obtain the image brightness of the second short frame image.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the brightness of at least a portion of the image area in the first long frame image being greater than or equal to a first preset brightness, reducing the brightness of the fill light; Control the fill light to perform fill light according to the reduced fill light brightness; Or, in response to the brightness of at least a part of the image area in the first long frame image being lower than a second preset brightness, the brightness of the fill light is increased; The fill light is controlled to perform fill light according to the increased fill light brightness.
8. The method according to any one of claims 1 to 6, characterized in that The acquiring of the first long frame image and the first short frame image comprises: In response to receiving an instruction to adjust the shooting mode to the long-short frame exposure mode, adjusting the shooting mode of the image acquisition device to the long-short frame exposure mode; The first long frame image is acquired according to a first long frame exposure time and the first short frame image is acquired according to a first short frame exposure time, wherein the first long frame exposure time is greater than the first short frame exposure time.
9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
