Shooting method, electronic equipment and storage medium

CN120677707APending Publication Date: 2025-09-19HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380093890.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-12-01
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

When users use electronic devices with shooting functions, they are affected by the camera shutter delay, and the actual shooting results are inconsistent with the image content the user wants. The main reason is that the automatic exposure does not converge and causes delayed shooting.

Method used

By adjusting the convergence speed of the image control algorithm when the user presses the shooting button, such as the convergence speed of the automatic exposure algorithm, the image parameters can quickly converge to the target range when the user lifts the shooting button, thereby reducing shooting delay and improving user experience. experience.

Benefits of technology

It achieves accurate capture of preview images when the user lifts the shooting button, reduces shooting delay, and improves the user's shooting experience and the device's capture performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120677707A_ABST
    Figure CN120677707A_ABST
Patent Text Reader

Abstract

The invention provides a shooting method, electronic equipment and a storage medium, which are applied to the technical field of terminals, and in the method, a user starts a camera application, an image control algorithm can be executed according to a first convergence rate, and image control parameters are acquired to adjust parameters such as brightness and definition of an image. After a user presses a shooting button, the convergence speed of an image control algorithm is increased, for example, the image control algorithm is executed at a second convergence speed, so that convergence of image parameters is accelerated, and when the user lifts the shooting button, parameters such as brightness and definition of an image can be converged in a pre-configured parameter interval, and therefore, the user experience is improved. When the user lifts the shooting button, the camera can be directly triggered to shoot, shooting delay is avoided, and the snapshot performance of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Shooting method, electronic device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 27, 2023, with application number 202310222758.9 and application name “Photographing method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a shooting method, electronic device and storage medium. Background Art

[0003] When users use electronic devices with camera functions, such as SLR cameras or smartphones, to capture moving people or objects, they typically want to capture the image content displayed on the device preview interface when the capture button is pressed. However, in real-world applications, shutter lag can affect the camera's release time, resulting in inconsistent capture results and the desired image content.

[0004] A major cause of shutter lag is failure to converge the automatic exposure (AE). AE automatically adjusts the camera's exposure based on ambient light levels to prevent over- or underexposure. The camera only triggers a shot when AE converges. Slow AE convergence can lead to delayed capture in various shooting environments. Improving the camera's capture performance is a pressing issue.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a shooting method, an electronic device, and a storage medium to improve the device's capture performance.

[0007] In a first aspect, embodiments of the present application provide a photographing method, which can be applied to an electronic device having photographing and displaying functions, and the photographing method includes:

[0008] At a first moment, a first operation of a user pressing a shooting button is detected, and before the first moment, a first image frame and a second image frame are displayed, where the first image frame and the second image frame are adjacent image frames;

[0009] At a second moment, a second operation of the user lifting the shooting button is detected, and between the first moment and the second moment, a third image frame and a fourth image frame are displayed, the third image frame and the fourth image frame being adjacent image frames;

[0010] At the third moment, a fifth image frame is captured;

[0011] The second moment is later than the first moment, and the third moment is later than the second moment; the brightness change speed of the third image frame and the fourth image frame is greater than the brightness change speed of the first image frame and the second image frame.

[0012] In the above scheme, the first and second image frames are adjacent image frames displayed by the device during the preview phase, the third and fourth image frames are adjacent image frames displayed by the device during the user-triggered capture phase, and the fifth image frame is the image frame captured by the device at the moment the user lifts the capture button. The brightness change of adjacent image frames during the user-triggered capture phase is greater than the brightness change of adjacent image frames during the preview phase, indirectly indicating that the speed at which the underlying device adjusts the brightness of image frames during the user-triggered capture phase is greater than the speed at which the underlying device adjusts the brightness of image frames during the preview phase. That is, during the user-triggered capture phase, the device accelerates the convergence speed of the algorithm for adjusting the brightness of image frames. As a result, the brightness of the fifth image frame captured by the device can converge to the brightness range corresponding to the current shooting environment, so that the device can be triggered to capture at the third moment, resulting in the fifth image frame. This ensures that the image frame captured by the device at the moment the user triggers the capture is the image frame captured by the device at the moment the user triggers the capture, thereby reducing capture delays and improving the user's capture experience.

[0013] In an optional embodiment of the first aspect of the present application, displaying the first image frame and the second image frame includes:

[0014] The image control module of the electronic device acquires a sixth image frame from the image sensor of the electronic device; the sixth image frame is an image frame before the first image frame and the second image frame;

[0015] When the image control module determines that the image parameters of the sixth image frame have not converged to the first target parameter range, the image control module executes the image control algorithm at a first convergence speed to obtain first image control parameters;

[0016] The image sensor captures the first image frame and the second image frame based on the first image control parameter;

[0017] The electronic device displays the first image frame and the second image frame.

[0018] In the above solution, the electronic device displays the first image frame and the second image frame on the shooting preview interface. The first image frame and the second image frame may be acquired based on the first image control parameter determined for the sixth image frame preceding the first and second image frames. The image control module of the electronic device analyzes the image parameters of the sixth image frame, such as the brightness, clarity, and white balance of the sixth image frame, to adjust the image parameters of the first and second image frames following the sixth image frame, so that the image parameters of the first and second image frames can converge to the image parameter range corresponding to the current shooting environment as quickly as possible.

[0019] In an optional embodiment of the first aspect of the present application, displaying the third image frame and the fourth image frame includes:

[0020] The image control module of the electronic device acquires a seventh image frame from the image sensor of the electronic device; the seventh image frame is an image frame before the third image frame and the fourth image frame;

[0021] When the image control module determines that the image parameters of the seventh image frame have not converged to the first target parameter range, the image control module executes the image control algorithm at a second convergence speed to obtain second image control parameters; the second convergence speed is greater than the first convergence speed;

[0022] The image sensor captures the third image frame and the fourth image frame based on the second image control parameter;

[0023] The electronic device displays the third image frame and the fourth image frame.

[0024] In the above scheme, the electronic device displays the third image frame and the fourth image frame on the shooting preview interface. The third image frame and the fourth image frame can be collected based on the second image control parameters determined in the seventh image frame before the third image frame and the fourth image frame. The image control module of the electronic device adjusts the image parameters of the third image frame and the fourth image frame after the seventh image frame by analyzing the image parameters of the seventh image frame, such as the image brightness, clarity, white balance, etc. of the seventh image frame, so that the image parameters of the third image frame and the fourth image frame can converge to the image parameter range corresponding to the current shooting environment as quickly as possible. It is worth noting that in this embodiment, during the period when the user presses the shooting button and the user lifts the shooting button, the image control module improves the convergence speed of executing the image control algorithm, so that the image parameters of the fifth image frame collected by the device at the moment the user lifts the shooting button can converge to a better level, thereby reducing the shooting delay.

[0025] In an optional embodiment of the first aspect of the present application, the image control module executes the image control algorithm at a second convergence rate to obtain the second image control parameter, including:

[0026] The image control module executes the image control algorithm at the second convergence speed by calling the first interface to obtain the second image control parameter; the second convergence speed is configured on the first interface.

[0027] In the above scheme, the first interface is a newly configured interface. Before executing the image control algorithm, the image control module adjusts the convergence speed of the image control algorithm by calling the first interface to accelerate the adjustment of the image parameters of subsequent image frames so that the image parameters of subsequent image frames converge as soon as possible.

[0028] In an optional embodiment of the first aspect of the present application, the shooting method further includes:

[0029] After the third moment, displaying an eighth image frame and a ninth image frame, wherein the eighth image frame and the ninth image frame are adjacent image frames;

[0030] A brightness change speed of the third image frame and the fourth image frame is greater than a brightness change speed of the eighth image frame and the ninth image frame.

[0031] In the above solution, the brightness change between adjacent image frames during the user-triggered capture phase is greater than the brightness change between adjacent image frames during the preview phase after the capture is triggered. This indirectly indicates that the device's underlying brightness adjustment speed during the capture phase is greater than the speed during the preview phase after the capture is triggered. This means that after the user triggers capture, the device slows down the convergence rate of the algorithm for adjusting image frame brightness, for example, restoring it to the convergence rate corresponding to the preview phase before the capture is triggered. This improves the stability and smoothness of the preview image displayed by the device.

[0032] In an optional embodiment of the first aspect of the present application, the displaying the eighth image frame and the ninth image frame includes:

[0033] The image control module of the electronic device acquires a tenth image frame from the image sensor of the electronic device; the tenth image frame is an image frame before the eighth image frame and the ninth image frame;

[0034] When the image control module determines that the image parameters of the tenth image frame have not converged to the first target parameter range, the image control module executes the image control algorithm at a third convergence speed to obtain third image control parameters; the third convergence speed is less than the second convergence speed;

[0035] The image sensor captures the eighth image frame and the ninth image frame based on the third image control parameter;

[0036] The electronic device displays the eighth image frame and the ninth image frame.

[0037] In the above scheme, the electronic device displays the eighth image frame and the ninth image frame on the shooting preview interface. The eighth image frame and the ninth image frame can be collected based on the third image control parameter determined based on the tenth image frame before the eighth and ninth image frames. The image control module of the electronic device adjusts the image parameters of the eighth image frame and the ninth image frame after the tenth image frame by analyzing the image parameters of the tenth image frame, such as the image brightness, clarity, white balance, etc. of the tenth image frame, so that the image parameters of the eighth image frame and the ninth image frame can converge to the image parameter range corresponding to the current shooting environment as soon as possible. It is worth noting that in this embodiment, after the user triggers shooting, the image control module reduces the convergence speed of executing the image control algorithm, for example, executing it at the default convergence speed of the image control algorithm, which can improve the stability and smoothness of the preview image displayed by the device.

[0038] In an optional embodiment of the first aspect of the present application, obtaining the captured fifth image frame includes:

[0039] The image control module of the electronic device acquires the fifth image frame from the image sensor of the electronic device; the fifth image frame is an image frame subsequent to the third image frame and the fourth image frame;

[0040] When the image control module determines that the image parameters of the fifth image frame have converged to a second target parameter interval, the image control module reports the convergence status of the image parameters of the fifth image frame to the shooting control module of the electronic device; the second target parameter interval includes the first target parameter interval;

[0041] The shooting control module controls the fifth image frame to be stored in a target space based on a convergence state of image parameters of the fifth image frame.

[0042] In the above scheme, the shooting control module controls the storage of the fifth image frame based on the state that the image parameters of the fifth image frame reported by the image control module have converged. It is worth noting that the image control module is based on the newly configured second target parameter interval when determining the convergence state of the image parameters of the fifth image frame. The second target parameter interval is a wider target parameter interval compared to the first target parameter interval. Such a configuration can avoid shooting delays as much as possible. Exemplarily, taking the image parameter as image brightness as an example, referring to Figure 9, the image brightness of the fifth image frame is within the interval (L-thd1, L-thd2). If the image brightness convergence state is determined based on the first target brightness interval, the image brightness of the fifth image frame has not converged, and the shooting control module will delay shooting, that is, the captured image frame is the image frame after the fifth image frame. If the image brightness convergence state is determined based on the second target brightness interval, the image brightness of the fifth image frame has converged, and the shooting control module will store the fifth image frame in the album as a captured image frame.

[0043] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a detection module, a display module, and an acquisition module;

[0044] At a first moment, the detection module detects a first operation of a user pressing a shooting button, and before the first moment, the display module displays a first image frame and a second image frame, where the first image frame and the second image frame are adjacent image frames;

[0045] At a second moment, the detection module detects a second operation of the user lifting the shooting button, and between the first moment and the second moment, the display module displays a third image frame and a fourth image frame, the third image frame and the fourth image frame being adjacent image frames;

[0046] At the third moment, the acquisition module obtains the captured fifth image frame;

[0047] The second moment is later than the first moment, and the third moment is later than the second moment; the brightness change speed of the third image frame and the fourth image frame is greater than the brightness change speed of the first image frame and the second image frame.

[0048] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the processor is configured to call a computer program in the memory to execute a method as described in any one of the first aspects.

[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of the first aspects.

[0050] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute any method as described in the first aspect.

[0051] In a sixth aspect, a computer program product comprises a computer program, which, when executed, enables a computer to execute the method as described in any one of the first aspects.

[0052] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] FIG1 is a schematic diagram of changes in a mobile phone interface provided by an embodiment of the present application;

[0054] FIG2 is a schematic diagram of shooting a preview image frame according to an embodiment of the present application;

[0055] FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0056] FIG4 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;

[0057] FIG5 is a schematic diagram of a flow chart of a photographing method provided in an embodiment of the present application;

[0058] FIG6 is a schematic diagram of the process flow of the mobile phone bottom layer processing provided by an embodiment of the present application;

[0059] FIG7 is a schematic diagram of a process of shooting control in different user operation stages provided by an embodiment of the present application;

[0060] FIG8 is a schematic diagram of a target brightness range provided by an embodiment of the present application;

[0061] FIG9 is a schematic diagram illustrating the configuration of the convergence speed of the AE algorithm provided in an embodiment of the present application;

[0062] FIG10 is a schematic diagram of an image brightness change curve of screen recording data provided in an embodiment of the present application;

[0063] FIG11 is a schematic diagram of a flow chart of a photographing method provided in an embodiment of the present application;

[0064] FIG12 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish between identical or similar items with substantially the same functions and effects. For example, the first image control parameter and the second image control parameter are merely used to distinguish the image control parameters of the camera at different times and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and do not necessarily mean that they are different.

[0066] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0067] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0068] First, a brief introduction to the professional terms involved in the embodiments of this application is given.

[0069] RAW: An image format. A RAW image is the raw data generated by a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor converting the captured light signal into a digital signal.

[0070] YUV: An image format. "Y" represents luminance (luma), which is the grayscale value; "U" and "V" represent chrominance (chroma), which are used to describe the color and saturation of the image and specify the color of the pixel.

[0071] 3A: includes automatic exposure (AE), auto focus (AF), and auto white balance (AWB).

[0072] The technical solution provided in this application can be applied to any electronic device with shooting and display functions, which may be a smart phone, a tablet computer, a laptop computer, a PDA, a personal digital assistant (PDA), a portable media player (PMP), a navigation device, a wearable device, etc. The embodiments of this application do not impose any special restrictions on the specific form of the electronic device.

[0073] In a possible shooting scenario, a user uses a mobile phone to capture a person or object in motion. For example, FIG1 is a schematic diagram of the change of the mobile phone interface provided in an embodiment of the present application. As shown in FIG1 , the user clicks the camera application icon on the mobile phone interface 101 to turn on the camera. After the camera is turned on, a shooting preview image is displayed on the mobile phone interface 102. During the shooting preview process, the user can trigger the camera shooting by clicking the shooting control 103 on the mobile phone interface 102 to capture the preview image content when the user clicks to shoot. Among them, the preview image content when the user clicks to shoot generally refers to the preview image content when the user's finger leaves the shooting control 103. The user can view the captured image content by calling the album interface 104. Affected by the camera shutter delay, the image content recorded in the album (such as the image content shown in interface 104) is inconsistent with the preview image content of the interface when the user triggers shooting (such as the image content shown in interface 102).

[0074] For example, FIG2 is a schematic diagram of the shooting preview image frame provided in an embodiment of the present application. In combination with the user operation shown in FIG1 , when the user uses a mobile phone to capture a person in motion, the image content of the shooting preview interface includes multiple consecutive image frames, such as image frames 1 to 3 in FIG2 . When the user clicks the shooting control, the shooting preview interface displays image frame 1. If the shutter delay of the camera is long, the actual shooting result may be an image frame after image frame 1, such as image frame 3. Under normal circumstances, there may be large differences in the character movements, expressions, etc. in image frame 3 and image frame 1, resulting in the user not being able to capture the desired character image content at a certain moment.

[0075] There are many reasons for camera shutter delay, one of the main reasons being that the auto exposure (AE) has not converged. For example, when a user is trying to capture a moving person, the AE may be in the convergence phase when the user presses the capture button. According to Android standards, the camera application must wait for the AE to converge before the capture is actually triggered. This means that when the AE has not converged, the camera application will block the capture process until the AE reports convergence or the wait timeout occurs. This results in the user being unable to capture the desired image content at the moment, resulting in a poor user experience.

[0076] In response to the above problems, an embodiment of the present application provides a shooting method that can be applied to devices such as SLR cameras, micro-single cameras or smart phones with shooting and display functions. The main idea is as follows: when the user presses the shooting button (or shooting control), the convergence speed of the image control algorithm (such as the AE algorithm, which adjusts the image brightness) is adjusted to accelerate the convergence of the image control algorithm (such as AE convergence), so that when the user lifts the shooting button, the image parameters (such as image brightness) can reach a better convergence level, that is, the image parameters converge to the target interval (such as the image brightness converges to a target brightness interval). When the user lifts the shooting button, it is determined whether the image parameters converge to the newly configured target interval. If so, the device is immediately triggered to shoot.

[0077] Using the above method, the camera can accurately capture the preview image when the user lifts the shooting button. Since the convergence speed of the image control algorithm is improved in the process, for example, the convergence speed of the AE algorithm is improved, the exposure of the captured image frame is good, avoiding the problem of overexposure or too dark image frames, and improving the user's shooting experience.

[0078] In order to better understand the embodiments of the present application, the structure of the electronic device according to the embodiments of the present application is first introduced below.

[0079] The electronic device 100 shown in Figure 3 includes: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor 180, a button 190, a camera 193, a display screen 194, etc.

[0080] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0081] The processor 110 may include one or more processing units. The different processing units may be independent devices or integrated into one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.

[0082] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0083] The USB interface 130 is an interface that complies with USB standard specifications, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.

[0084] The charging management module 140 is configured to receive charging input from a charger. The power management module 141 is configured to connect the battery 142 , the charging management module 140 and the processor 110 .

[0085] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor. The mobile communication module 150 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The wireless communication module 160 can provide solutions for wireless communications such as wireless local area networks (WLAN), Bluetooth, global navigation satellite systems (GNSS), frequency modulation (FM), NFC, and infrared technology (IR) applied to the electronic device 100.

[0086] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or modify display information.

[0087] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0088] The electronic device 100 can implement a shooting function through an image signal processing (ISP) module, one or more cameras 193, a video codec, a GPU, one or more display screens 194, and an application processor.

[0089] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1. Camera 193 includes a lens, an image sensor (such as a complementary metal oxide semiconductor image sensor (CIS)), a motor, and the like.

[0090] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, data files such as music, photos, and videos can be stored on the external memory card.

[0091] The internal memory 121 may be used to store one or more computer programs, which include instructions. The processor 110 may execute the instructions stored in the internal memory 121 to enable the electronic device 100 to perform various functional applications and data processing.

[0092] The sensor 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor, and the like.

[0093] The touch sensor 180K, also known as a touch panel, can be mounted on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a touch screen. The touch sensor 180K detects touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194.

[0094] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with a proximity light sensor to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0095] The keys 190 include a power button, a volume button, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0096] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc. For example, FIG4 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.

[0097] The layered architecture of an electronic device, shown in Figure 4, can divide software into several layers, each with distinct roles and divisions of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android software architecture is divided into multiple layers, from top to bottom: application layer 401, application framework layer 402, hardware abstraction layer 403, and driver layer 404.

[0098] Among them, the application layer 401 includes a camera application, the application framework layer 402 includes a shooting control module, the hardware abstraction layer 403 includes a decision engine, and the driver layer 404 includes a camera driver. The camera driver may include, for example, an ISP module, an AE module, an AF module, an AWB module, a CIS driver, and a motor driver, etc.

[0099] The shooting control module is configured to determine whether to trigger camera shooting based on the AE convergence status reported by the AE module, the AF convergence status reported by the AF module, and the AWB convergence status reported by the AWB module. The AE convergence status includes AE convergence, the AF convergence status includes AF convergence, and the AWB convergence status includes AWB convergence. As an example, the shooting control module may trigger camera shooting when AE converges. It should be noted that if the shooting control module does not wait for AE convergence within a preset time, it may also trigger camera shooting.

[0100] Upon receiving a user-triggered event from the camera application, the decision engine can be configured to send the trigger event to the driver layer 404, triggering the AE module, AF module, and AWB module of the driver layer 404 to execute corresponding algorithms and adjust image control parameters. The decision engine can also be configured to report camera capability-related data, such as the number of cameras and camera capture parameters, to the application framework layer 402. In some embodiments, the decision engine can also be configured to determine whether the user operation was an accidental touch. If the user operation was an accidental touch, the trigger event notification will not be sent to the driver layer 404 to prevent the camera from accidentally capturing an image.

[0101] The ISP module converts the RAW image data output by the CIS into YUV image data and sends the YUV image data to the screen for display. The ISP module also outputs the RAW image's AE statistics to the AE module, the AF statistics to the AF module, and the AWB statistics to the AWB module.

[0102] The AE module determines whether to execute the AE algorithm based on the AE statistics of the RAW image to adjust the brightness of the image subsequently output by the CIS. The AF module determines whether to execute the AF algorithm based on the AF statistics of the RAW image to adjust the camera lens position, that is, adjust the camera lens focal length. The AWB module determines whether to execute the AWB algorithm based on the AWB statistics of the RAW image to adjust the white balance of the image subsequently output by the ISP module.

[0103] In the embodiments of the present application, there is no limitation on the AE algorithm, AF algorithm and AWB algorithm, and specific reference may be made to the existing AE algorithm, AF algorithm and AWB algorithm.

[0104] The CIS driver is used to drive the CIS to adjust the brightness, white balance, etc. of the output image.

[0105] The motor drive is used to drive the movement of the lens motor in the camera, thereby adjusting the lens position and achieving focus.

[0106] The following describes in detail the shooting method provided by the present application in conjunction with specific embodiments. It should be noted that the technical solution provided by the present application may include part or all of the following contents, and the following specific embodiments may be combined with each other. For the same or similar concepts or processes, some embodiments may not be repeated.

[0107] For example, Figure 5 is a flowchart of a shooting method provided by an embodiment of the present application. For the convenience of description, the following embodiment is described with a mobile phone as the execution subject.

[0108] As shown in FIG5 , the photographing method of this embodiment includes the following steps:

[0109] S501 . In response to a first operation of a user opening a camera application, capturing a first image.

[0110] In response to a first operation of a user opening a camera application, an image sensor captures a first image in a RAW format.

[0111] S502. Determine whether the image parameters of the first image converge to a first target parameter range corresponding to the current shooting environment.

[0112] If it is determined that the image parameters of the first image have not converged to the first target parameter range corresponding to the current shooting environment, S503 is executed. If it is determined that the image parameters of the first image have converged to the first target parameter range corresponding to the current shooting environment, the current image control parameters are maintained. The image control parameters include, for example, exposure time, gain, aperture, focal length, AWB value, etc.

[0113] In this embodiment, the image parameters of the first image include a brightness value of the first image. Determining whether the image parameters of the first image converge to a first target parameter range corresponding to the current shooting environment includes: an AE module determining whether the brightness value of the first image is within the first target brightness range corresponding to the current shooting environment.

[0114] Optionally, in some embodiments, the image parameters of the first image further include clarity of the first image. Determining whether the image parameters of the first image converge to a first target parameter range corresponding to the current shooting environment includes: an AF module determining whether the clarity of the first image is within the first target clarity range corresponding to the current shooting environment.

[0115] Optionally, in some embodiments, the image parameters of the first image further include a white balance of the first image. Determining whether the image parameters of the first image converge to a first target parameter range corresponding to the current shooting environment includes: determining, by an AWB module, whether the white balance of the first image is within the first target white balance range corresponding to the current shooting environment.

[0116] S503. Execute a preset image control algorithm at a first convergence speed to obtain a first image control parameter.

[0117] In this embodiment, the preset image control algorithm includes an AE algorithm, which is used to adjust the image brightness so that the image brightness approaches the first target brightness range corresponding to the current shooting environment. Executing the preset image control algorithm includes: the AE module executes the preset AE algorithm at a first convergence speed to obtain a first parameter, and the first parameter includes exposure time and gain. Optionally, the first parameter may also include an aperture value. The image sensor can capture subsequent images based on the first parameter. It should be noted that the lens in the mobile phone camera usually has a fixed aperture, so the first control parameters are mainly exposure time and gain.

[0118] Optionally, in some embodiments, the image control algorithm further includes an AF algorithm configured to adjust image clarity so that the image clarity approaches a target clarity range corresponding to the current shooting environment. Executing a preset image control algorithm includes: an AF module executing the preset AF algorithm at a first convergence rate to obtain a second parameter, the second parameter including a focal length value. The AF module transmits the second parameter to a lens motor to adjust the clarity of subsequent images.

[0119] Optionally, in some embodiments, the image control algorithm further includes an AWB algorithm for adjusting the image white balance so that the image white balance approaches a target white balance range corresponding to the current shooting environment. Executing the preset image control algorithm includes: the AWB module executing the preset AWB algorithm at a first convergence rate to obtain a third parameter, the third parameter including an AWB value. The AWB module transmits the third parameter to the ISP module for adjusting the white balance of subsequent images.

[0120] For example, FIG6 is a flowchart of the underlying processing of a mobile phone provided in an embodiment of the present application. As shown in FIG6, after the user turns on the camera application, the CIS of the camera captures the RAW image and sends the RAW image to the ISP module. On the one hand, the ISP module converts the RAW image into a YUV image and sends it to the screen for display. On the other hand, the ISP module determines the 3A statistics of the RAW image, which include the AE statistics, AF statistics, and AWB statistics of the RAW image. The ISP module sends the AE statistics of the RAW image to the AE module, sends the AF statistics of the RAW image to the AF module, and sends the AWB statistics of the RAW image to the AWB module.

[0121] AE statistics can be used by the AE module to determine the AE convergence status, which can include non-AE convergence or convergence. AE convergence refers to the brightness value of the RAW image being within the first target brightness range corresponding to the current shooting environment. AE non-convergence refers to the brightness value of the RAW image not falling within the first target brightness range. If the AE module determines that AE has not converged, the AE module executes a preset AE algorithm at a first convergence rate and sends a first parameter to the CIS, so that the brightness of RAW images subsequently acquired by the CIS approaches the target brightness.

[0122] AF statistics can be used by the AF module to determine AF convergence status, which can include non-convergence or convergence. AF convergence refers to the RAW image clarity falling within the first target clarity range corresponding to the current shooting environment. Non-convergence refers to the RAW image clarity not falling within the first target clarity range. If the AF module determines that AF has not converged, it executes a preset AF algorithm at the first convergence speed and sends a second parameter, including a focal length value, to the lens motor, causing the motor to move the lens to adjust the lens position so that the clarity of the RAW images subsequently captured by the CIS approaches the target clarity.

[0123] The AWB statistical data can be used by the AWB module to determine the AWB convergence status, which can include AWB non-convergence or AWB convergence. AWB convergence means that the white balance of the RAW image is within the first target white balance range corresponding to the current shooting environment. AWB non-convergence means that the white balance of the RAW image does not fall within the first target white balance range. If the AWB module determines that AWB has not converged, it executes a preset AWB algorithm at a first convergence speed and sends a third parameter, including an AWB value, to the ISP module, ensuring that the white balance of the image output by the ISP module approaches the target white balance.

[0124] It should be noted that after the user opens the camera application, by executing the above steps, the image control parameters are dynamically adjusted so that the image quality displayed on the mobile phone interface meets the image quality requirements of the current shooting environment.

[0125] S504. Capture a second image based on the first image control parameter.

[0126] Based on the above steps, the first image control parameter includes at least one of the first parameter, the second parameter, and the third parameter. The second image is a RAW image, and the second image is an image subsequent to the first image. It should be noted that there is usually at least one frame between the second image and the first image.

[0127] As an example, the CIS receives a first parameter of the AE module and captures a second image based on the first parameter.

[0128] As an example, the lens motor receives the second parameter of the AF module to adjust the focal length of the lens and capture the second image.

[0129] As an example, the ISP module receives the third parameter of the AWB module and adjusts the white balance of the second image based on the third parameter.

[0130] S505 . In response to a second operation of the user pressing a capture button, a third image is acquired.

[0131] In response to a second operation of the user pressing a capture button, the image sensor captures a third image in a RAW format.

[0132] S506: Determine whether the image parameters of the third image converge to the first target parameter range corresponding to the current shooting environment.

[0133] If it is determined that the image parameters of the third image do not converge to the first target parameter range corresponding to the current shooting environment, execute S507. If it is determined that the image parameters of the third image converge to the first target parameter range corresponding to the current shooting environment, maintain the current image control parameters.

[0134] S506 of this embodiment can refer to S502 and will not be described in detail here. It should be noted that different shooting environments correspond to different first target parameter intervals, that is, different shooting environments have different requirements on image parameters.

[0135] S507. Execute a preset image control algorithm at a second convergence speed to obtain a second image control parameter.

[0136] In this embodiment, the second convergence rate is greater than the first convergence rate. Optionally, the second convergence rate may be N times the first convergence rate, where N is greater than 1, for example, N is 3. The second image control parameter includes at least one of the first parameter, the second parameter, and the third parameter.

[0137] In this embodiment, the preset image control algorithm includes an AE algorithm. Executing the preset image control algorithm at a second convergence rate includes: the AE module invoking a first interface to execute the preset AE algorithm at the second convergence rate to obtain a first parameter. The first interface is configured with the second convergence rate for accelerating AE convergence.

[0138] Optionally, in some embodiments, the image control algorithm further includes an AF algorithm. Executing a preset image control algorithm at a second convergence rate includes: the AF module invoking a second interface to execute the preset AF algorithm at the second convergence rate and obtain second parameters. The second interface is configured with the second convergence rate for accelerating AF convergence.

[0139] Optionally, in some embodiments, the image control algorithm further includes an AWB algorithm. Executing a preset image control algorithm at a second convergence rate includes: the AWB module executing the preset AWB algorithm at the second convergence rate by calling a third interface to obtain third parameters. The third interface is configured with the second convergence rate for accelerating AWB convergence.

[0140] S508. Capture a fourth image based on the second image control parameter.

[0141] The fourth image is a RAW format image, and is an image subsequent to the third image. It should be noted that there is usually at least one frame of image between the fourth image and the third image.

[0142] S509 . In response to the third operation of the user releasing the capture button, capturing a fifth image.

[0143] In response to the user's third operation of releasing the shooting button, the image sensor captures a fifth image in RAW format.

[0144] S510. Determine whether the image parameters of the fifth image converge to a second target parameter range corresponding to the current shooting environment.

[0145] If it is determined that the image parameters of the fifth image converge to the second target parameter range corresponding to the current shooting environment, execute S511. If it is determined that the image parameters of the fifth image do not converge to the second target parameter range corresponding to the current shooting environment, execute S512.

[0146] The second target parameter interval includes the first target parameter interval.

[0147] In one example, the first target parameter interval is a first brightness interval, the second target parameter interval is a second brightness interval, and the second brightness interval includes the first brightness interval.

[0148] In one example, the first target parameter interval is a first clarity interval, the second target parameter interval is a second clarity interval, and the second clarity interval includes the first clarity interval.

[0149] It should be noted that the first target parameter interval shown in S502 and S506 is used to determine whether the image control parameters (such as exposure time, gain, focal length value, AWB value) need to be adjusted, and the second target parameter interval shown in S510 is used to determine the convergence state of the image parameters (such as AE convergence state, AF convergence state, AWB convergence state).

[0150] S511. Trigger the camera to shoot.

[0151] When the camera is triggered to shoot, the preview image displayed on the mobile phone interface when the user lifts the shooting button, that is, the fifth image, can be stored in the mobile phone album.

[0152] S512: Do not trigger the camera to shoot.

[0153] It should be noted that the first to fifth images mentioned above will be sent to the screen for display after image processing.

[0154] The above embodiment shows a shooting method. After the user turns on the camera application, the image control algorithm is executed according to the first convergence speed to obtain image control parameters to adjust the brightness, clarity and other parameters of the image. After the user presses the shooting button, the convergence speed of the image control algorithm is increased, for example, the image control algorithm is executed at the second convergence speed to accelerate the convergence of the image parameters, so that before the user lifts the shooting button, the brightness, clarity and other parameters of the image can converge to the vicinity of the first target parameter range. In this way, when the user lifts the shooting button, the image parameters have converged to the vicinity of the first target parameter range (such as having converged to the second target parameter range, the second target parameter range includes the first target parameter range), and the camera can be directly triggered to shoot, avoiding delayed shooting, improving the capture performance of the device, and allowing the user to capture the preview image displayed on the device interface at the moment they want, thereby improving the user's shooting experience.

[0155] Based on the above embodiment, the above shooting method will be described in detail below with reference to FIG7 .

[0156] For example, Figure 7 is a flowchart illustrating the shooting control process in different user operation stages provided by an embodiment of the present application. After the user opens the camera application, the camera's CIS begins to collect image data, which is stored in an image queue. After the image data in the image queue is processed by the ISP module and the 3A module, it can be sent to the screen by the ISP module for display.

[0157] For the convenience of description, the following solution is explained using the AE module as an example.

[0158] As shown in Figure 7, the image queue includes 11 frames. Frames 1 to 6 are the image frames captured by the image sensor before the user presses the capture button. Frames 1 to 6 correspond to the first stage (i.e., the preview stage). Frame 7 is the image frame captured by the image sensor when the user presses the capture button. Frame 10 is the image frame captured by the image sensor when the user releases the capture button. Frames 7 to 9 correspond to the second stage, and the moment corresponding to frame 10 is the capture moment (i.e., the capture moment).

[0159] It should be noted that, in this example, the number of image frames in the second stage is only an example. The number of image frames in the second stage is related to the duration of the user pressing and lifting the finger. The longer the duration, the more image frames there are in the second stage.

[0160] Typically, there is about 100ms between the time a user presses the capture button and the time the user releases the capture button. This time period corresponds to the second stage, which can be used for 3A convergence of the camera, etc.

[0161] As shown in Figure 7, in response to the user pressing the capture button, the camera application in the application layer sends a first event notification to the decision engine in the hardware abstraction layer. The first event notification is used to notify the user of the event of pressing the capture button. The decision engine sends this first event notification to the AE module in the driver layer. Before executing the AE algorithm, the AE module can increase the convergence speed of the AE algorithm by calling the accelerated convergence interface (SetAEConvergeRatio). For example, the convergence speed can be adjusted from the first convergence speed to the second convergence speed, where the second convergence speed is greater than the first convergence speed. That is, the AE convergence speed corresponding to the second stage is greater than the AE convergence speed during the preview stage.

[0162] After the AE module increases the convergence speed to the second convergence speed, the AE module executes the AE algorithm at the second convergence speed. The AE module outputs new image control parameters such as exposure time and gain, which are used for the CIS to capture images after the 7th frame, such as the 8th frame.

[0163] It should be noted that in actual applications, the new image control parameters output by the AE module are used by the CIS to capture the 7+Nth frame, where N is a positive integer greater than 1. This is because the CIS continuously captures image frames. Before the AE module outputs the new image control parameters, the CIS still captures, for example, the 8th frame based on the original image control parameters. After determining the new image control parameters, the CIS captures, for example, the 9th frame based on the new image control parameters.

[0164] As shown in Figure 7, in response to the user lifting the capture button, the camera application sends a second event notification to the decision engine, which is used to notify the user to lift the capture button. The decision engine sends the second event notification to the AE module. Before executing the AE algorithm, the AE module reduces the convergence speed of the AE algorithm, for example, adjusting it from the second convergence speed to the third convergence speed. The third convergence speed is less than the second convergence speed, that is, the AE convergence speed corresponding to the capture moment is less than the AE convergence speed corresponding to the second stage. Optionally, the first convergence speed is equal to the third convergence speed, that is, at the capture moment, the AE convergence speed is restored to the AE convergence speed of the preview stage.

[0165] After the AE module reduces the convergence speed to the third convergence speed, it executes the AE algorithm at the third convergence speed and outputs image control parameters to the CIS, enabling the CIS to capture subsequent images based on the image control parameters. Furthermore, the AE module determines the AE convergence status by calling the AE convergence status determination interface (CheckAEConvergeStatus) and reports the AE convergence status (AE converged or AE converging) to the upper layer (application framework layer). The upper layer then determines whether to trigger camera capture based on the AE convergence status.

[0166] As an example, the CheckAEConvergeStatus interface configures a new target brightness interval. For example, Figure 8 is a schematic diagram of the target brightness interval provided in an embodiment of the present application. As shown in Figure 8, the first target brightness interval is recorded as [L-thd1, L+thd1], and the first target brightness interval is the existing target brightness interval. The newly configured target brightness interval is the second target brightness interval, recorded as [L-thd2, L+thd2], where L represents the target brightness corresponding to the current shooting environment, thd1 and thd2 are both numbers greater than 0, and thd1<thd2. It can be seen from Figure 8 that the second target brightness interval includes the first target brightness interval.

[0167] Optionally, thd1=L*0.05, thd2=L*0.1.

[0168] The first target brightness range is used by the AE module to determine whether it is necessary to adjust image control parameters such as exposure time and gain. If the image brightness converges to the first target brightness range, the AE module does not need to execute the AE algorithm and does not need to adjust image control parameters such as exposure time and gain. If the image brightness does not converge to the first target brightness range, the AE module executes the AE algorithm to adjust image control parameters such as exposure time and gain.

[0169] The second target brightness range is used by the AE module to determine the AE convergence status. If the image brightness converges within the second target brightness range, the AE module determines that AE is converged. If the image brightness does not converge within the second target brightness range, the AE module determines that AE is converging. For each frame of the image, the AE module reports the AE convergence status to the upper layer (application framework layer).

[0170] Based on the above example, the AE module calls the CheckAEConvergeStatus interface, determines the AE convergence status based on the second target brightness range, and reports the AE convergence status to the upper layer. Since the second stage improves the convergence speed of the AE algorithm and configures a wider target brightness range (the second target brightness range) to determine the AE convergence state of the image, when the user lifts the shooting button, the brightness of the 10th frame of the image collected by the CIS can quickly converge to the second target brightness range. The AE module reports the AE convergence to the upper layer, thereby triggering the upper layer to control the camera shooting and capture the 10th frame of the image to the mobile phone album. The 10th frame of the image is the preview image of the moment the user wants.

[0171] The following summarizes the configuration of the convergence speed of the execution algorithm of the AE module in the above embodiment.

[0172] Exemplarily, FIG9 is a configuration diagram of the convergence speed of the AE algorithm provided in an embodiment of the present application. As shown in FIG9 , the stage before the user presses the shooting button is the first stage, and the image frames collected by the CIS in the first stage include, for example, frames 1 to 6 in FIG7 . In the first stage, the AE module executes the AE algorithm at the original convergence speed (such as ratio = 1.0) and adjusts the image control parameters to adjust the image brightness of subsequent images. The stage from the user pressing the shooting button to the user lifting the shooting button is the second stage, and the image frames collected by the CIS in the second stage include, for example, frames 7 to 9 in FIG7 . In the second stage, the AE module executes the AE algorithm at 3 times the original convergence speed (such as ratio = 3.0) and adjusts the image control parameters to accelerate the adjustment of the image brightness of subsequent images. The moment when the user lifts the shooting button is the capture moment, and the image frame collected by the CIS at the capture moment may be the 10th frame in FIG7 . The stage after the capture moment is the third stage, and the image frame collected by the CIS in the third stage may be the image frame after the 10th frame in FIG7 . At the capture moment and the third stage, the AE module returns to the original convergence speed (i.e., ratio = 1.0).

[0173] In the above example, the AE module adjusts the convergence speed of the second-stage AE algorithm by calling the SetAEConvergeRatio interface that accelerates AE convergence, so that the image brightness can converge to the second target brightness range at the moment of capture. AE can directly report AE convergence, thereby triggering the camera to shoot, allowing users to capture the image at the desired moment.

[0174] It should be noted that the convergence rate of the AE algorithm corresponding to the second stage configured in the above example is only an example. As long as the convergence rate is greater than 1.0, this embodiment does not impose any restrictions on this. In some embodiments, the AE convergence rate can also be configured to be less than 1.0 to slow down the AE convergence rate.

[0175] It should also be noted that the above-mentioned configuration of the AE algorithm convergence speed can be extended to the configuration of the AF algorithm convergence speed and the configuration of the AWB algorithm convergence speed. Accordingly, the AF module can adjust the convergence speed of the second-stage AF algorithm by calling the interface for accelerating AF convergence, so that AF can reach a better convergence level at the moment of capture, thereby capturing the image content with good clarity at the moment the user wants to shoot. The AWB module can adjust the convergence speed of the second-stage AWB algorithm by calling the interface for accelerating AWB convergence, so that AWB can reach a higher convergence level at the moment of capture, thereby capturing the image content with good white balance at the moment the user wants to shoot.

[0176] The present application also provides a testing system comprising a first device and a second device. The first device is a device under test and can be used to perform the photography method of the above embodiment. The second device is an image acquisition device and can be used to record image data displayed on the screen of the first device when a user uses the first device to photograph a moving person or object. For example, the first device can be a smartphone, and the second device can be a high-speed camera.

[0177] In this embodiment, the high-speed camera can record dynamic multi-frame images at a very high frequency, for example, 3000 frames per second. If a 30fps player is used to play the video recorded by the high-speed camera, an image frame recorded for 1s can be played for 100s, so that the moment corresponding to each frame of the image can be accurately recorded.

[0178] Based on the above-mentioned test system, an embodiment of the present application provides a test method, the main steps of which are as follows: a user uses a baffle to block the camera of a first device and then opens the camera application of the first device; the user uses a high-speed camera to record the screen changes of the first device; after removing the baffle, the user quickly clicks the capture button; after the capture is completed, the recording of the first device screen is stopped and the recorded screen data is obtained from a second device; the brightness information of each frame of the recorded screen data is obtained, and based on the brightness information of each frame of the recorded screen data, an image brightness change curve of the recorded screen data is determined. The image brightness change curve can be used to determine whether the first device has executed the shooting method proposed in the above-mentioned embodiment.

[0179] It should be noted that the brightness information of each frame image in the screen recording data mainly refers to the brightness information of each frame image displayed on the screen of the first device in the screen recording data, that is, the image brightness change curve of the screen recording data indicates the brightness change of the image frame displayed on the screen of the first device during the entire shooting process from the user turning on the camera application to the user clicking to shoot.

[0180] Optionally, the brightness change speed of adjacent image frames in the screen recording data is determined by the following formula: ConvergeSpeed ​​= |luma(n+1)-luma(n)| / luma(n)

[0181] Where ConvergeSpeed ​​represents the brightness change rate between the adjacent (n+1)th and (n)th frames, luma(n+1) represents the average brightness of the (n+1)th frame, and luma(n) represents the average brightness of the (n)th frame.

[0182] It should be noted that the brightness change rate of adjacent image frames in the screen recording data refers to the brightness change rate of adjacent image frames displayed on the screen of the first device in the screen recording data. The brightness change rate of adjacent image frames can indirectly indicate the convergence rate of the image control algorithm (such as the AE algorithm, AF algorithm, and AWB algorithm) of the first device. It is understood that the faster the convergence rate of the image control algorithm of the first device, the greater the brightness change rate of adjacent image frames captured by the first device.

[0183] For example, Figure 10 is a schematic diagram of an image brightness change curve of screen recording data provided in an embodiment of the present application. As shown in Figure 10, if the brightness change rate of a certain period of the image brightness change curve (such as the period from t1 to t2 in Figure 10) is significantly greater than that of other periods (such as the period from 0 to t1 and the period after t2 in Figure 10), it can be determined that the first device has executed the shooting method proposed in an embodiment of the present application.

[0184] For example, Figure 11 is a flowchart of a photographing method according to an embodiment of the present application. The photographing method is applied to an electronic device, which may be the first device in the above-mentioned test method, such as a mobile phone.

[0185] As shown in FIG11 , the shooting method may include:

[0186] S1101. At a first moment, a first operation of a user pressing a capture button is detected. Before the first moment, a first image frame and a second image frame are displayed, where the first image frame and the second image frame are adjacent image frames.

[0187] S1102. At a second moment, a second operation of the user lifting the capture button is detected. Between the first moment and the second moment, a third image frame and a fourth image frame are displayed, where the third image frame and the fourth image frame are adjacent image frames.

[0188] S1103. At the third moment, obtain the captured fifth image frame.

[0189] The second moment is later than the first moment, and the third moment is later than the second moment; the brightness change speed of the third image frame and the fourth image frame is greater than the brightness change speed of the first image frame and the second image frame.

[0190] The first and second image frames are adjacent image frames displayed by the device during the preview phase, such as frames 1 and 2 in Figure 7. The third and fourth image frames are adjacent image frames displayed by the device during the user-triggered capture phase, such as frames 8 and 9 in Figure 7. The fifth image frame is the image frame captured by the device when the user releases the capture button, such as frame 10 in Figure 7.

[0191] In the above scheme, the brightness change between adjacent image frames during the user-triggered capture phase is greater than the brightness change between adjacent image frames during the preview phase, indirectly indicating that the speed at which the device's underlying brightness adjustment is performed during the user-triggered capture phase is greater than during the preview phase. That is, during the user-triggered capture phase, the device accelerates the convergence of the algorithm for adjusting image frame brightness. As a result, the brightness of the fifth image frame captured by the device converges to the brightness range corresponding to the current shooting environment, enabling the device to capture the fifth image frame at the third moment. This ensures that the image frame captured by the device at the moment the user triggers the capture is the same as the image frame captured by the device at the moment the user triggers the capture, reducing capture latency and improving the user's shooting experience.

[0192] As an example, the brightness change rate of the first image frame and the second image frame may be the ratio of the absolute value of the difference between the average brightness of the first image frame and the average brightness of the second image frame to the average brightness of the first image frame. The brightness change rate of the third image frame and the fourth image frame may be the ratio of the absolute value of the difference between the average brightness of the third image frame and the average brightness of the fourth image frame to the average brightness of the third image frame.

[0193] As an example, the above shooting method is applicable to shooting scenes with changing ambient brightness, such as:

[0194] At the fourth moment, the ambient brightness is the first brightness; at the fifth moment, the ambient brightness changes from the first brightness to the second brightness; wherein the fifth moment is later than the fourth moment, the first moment is later than the fifth moment, and the second brightness is greater than the first brightness.

[0195] In this example, the fourth moment may be the moment when the user uses a baffle to cover the camera of the first device and then opens the camera application of the first device. The fifth moment may be the moment when the user removes the baffle. It is understood that after the user removes the baffle, the ambient brightness increases, that is, the second brightness is greater than the first brightness.

[0196] This example illustrates a shooting scenario where the ambient brightness changes before the electronic device detects the user pressing the capture button, for example, when the user moves from a dark environment to a bright one. In this shooting scenario, the electronic device needs to adjust the camera parameters based on the ambient brightness change, so that the brightness of the image frames captured by the camera converges to the brightness range corresponding to the current shooting environment as quickly as possible, thereby reducing device shooting delays.

[0197] As an example, the above shooting method is applicable to shooting scenes in which the ambient brightness is stable but the shooting object (such as a person or object) is in motion. That is, at the above-mentioned first moment, second moment and third moment, and after the third moment, the ambient brightness is the first brightness, and the continuous image frames captured by the electronic device, such as the above-mentioned first image frame and second image frame, third image frame and fourth image frame, and fifth image frame, all include the shooting object. In this shooting scene, the brightness change of the continuous image frames mainly refers to the brightness change of the image blocks corresponding to the shooting object in the continuous image frames. The electronic device needs to adjust the camera parameters based on the brightness change of the shooting object, so that the image brightness of the shooting object in the image frames captured by the camera converges to the brightness range corresponding to the shooting object in the current shooting environment as soon as possible, so as to reduce the delay of the device in capturing the shooting object in the running state.

[0198] It should be noted that, in any of the above-mentioned shooting scenarios, the underlying processing method of the electronic device is similar. For details, please refer to the following optional embodiments.

[0199] In an optional embodiment, displaying the first image frame and the second image frame includes:

[0200] The image control module of the electronic device obtains a sixth image frame from the image sensor of the electronic device; the sixth image frame is an image frame before the first image frame and the second image frame;

[0201] When the image control module determines that the image parameters of the sixth image frame have not converged to the first target parameter interval, the image control module executes the image control algorithm at a first convergence speed to obtain first image control parameters;

[0202] The image sensor captures a first image frame and a second image frame based on the first image control parameter;

[0203] The electronic device displays the first image frame and the second image frame.

[0204] The first convergence speed may be a default convergence speed of the image control algorithm, for example, the first convergence speed is 1.

[0205] It should be noted that the brightness change speed of the first image frame and the second image frame can be used to indicate the first convergence speed.

[0206] In the above solution, the electronic device displays the first image frame and the second image frame on the shooting preview interface. The first image frame and the second image frame may be acquired based on the first image control parameter determined for the sixth image frame preceding the first and second image frames. The image control module of the electronic device analyzes the image parameters of the sixth image frame, such as the brightness, clarity, and white balance of the sixth image frame, to adjust the image parameters of the first and second image frames following the sixth image frame, so that the image parameters of the first and second image frames can converge to the image parameter range corresponding to the current shooting environment as quickly as possible.

[0207] As an example, the image control module is an AE module, the image control algorithm is an AE algorithm, the image parameter is image brightness, the first target parameter range is a first target brightness range, and the first image control parameter includes exposure time and gain. Optionally, the first image control parameter also includes an aperture value.

[0208] As an example, the image control module is an AF module, the image control algorithm is an AF algorithm, the image parameter is image clarity, the first target parameter interval is a first target clarity interval, and the first image control parameter includes a focal length value.

[0209] As an example, the image control module is an AWB module, the image control algorithm is an AWB algorithm, the image parameter is image white balance, the first target parameter interval is a first target white balance interval, and the first image control parameter includes a white balance parameter value.

[0210] In an optional embodiment, displaying the third image frame and the fourth image frame includes:

[0211] The image control module of the electronic device obtains a seventh image frame from the image sensor of the electronic device; the seventh image frame is an image frame before the third image frame and the fourth image frame;

[0212] When the image control module determines that the image parameters of the seventh image frame have not converged to the first target parameter range, the image control module executes the image control algorithm at a second convergence speed to obtain second image control parameters; the second convergence speed is greater than the first convergence speed;

[0213] The image sensor captures a third image frame and a fourth image frame based on the second image control parameter;

[0214] The electronic device displays the third image frame and the fourth image frame.

[0215] The second convergence rate is a preconfigured convergence rate used to accelerate the convergence of the image control algorithm. The second convergence rate can be appropriately configured based on actual application requirements and is not specifically limited in this embodiment. For example, the second convergence rate can be configured to be three times the first convergence rate, i.e., the second convergence rate is 3.

[0216] It should be noted that the brightness change speed of the third image frame and the fourth image frame can be used to indicate the second convergence speed.

[0217] In the above scheme, the electronic device displays the third image frame and the fourth image frame on the shooting preview interface. The third image frame and the fourth image frame can be collected based on the second image control parameters determined in the seventh image frame before the third image frame and the fourth image frame. The image control module of the electronic device adjusts the image parameters of the third image frame and the fourth image frame after the seventh image frame by analyzing the image parameters of the seventh image frame, such as the image brightness, clarity, white balance, etc. of the seventh image frame, so that the image parameters of the third image frame and the fourth image frame can converge to the image parameter range corresponding to the current shooting environment as quickly as possible. It is worth noting that in this embodiment, during the period when the user presses the shooting button and the user lifts the shooting button, the image control module improves the convergence speed of executing the image control algorithm, so that the image parameters of the fifth image frame collected by the device at the moment the user lifts the shooting button can converge to a better level, thereby reducing the shooting delay.

[0218] In an optional embodiment, the image control module executes the image control algorithm at a second convergence rate to obtain a second image control parameter, including:

[0219] The image control module executes the image control algorithm at a second convergence speed by calling the first interface to obtain second image control parameters; the second convergence speed is configured on the first interface.

[0220] In the above scheme, the first interface is a newly configured interface. Before executing the image control algorithm, the image control module adjusts the convergence speed of the image control algorithm by calling the first interface to accelerate the adjustment of the image parameters of subsequent image frames so that the image parameters of subsequent image frames converge as soon as possible.

[0221] As an example, the image control module is an AE module, the first interface is an interface for accelerating AE convergence, the image control algorithm is an AE algorithm, and the second image control parameter includes exposure time and gain. Optionally, the second image control parameter also includes an aperture value. Exemplarily, the first interface may be SetAEConvergeRatio as shown in FIG7 .

[0222] As an example, the image control module is an AF module, the first interface is an interface for accelerating AF convergence, the image control algorithm is an AF algorithm, and the second image control parameter includes a focal length value.

[0223] As an example, the image control module is an AWB module, the first interface is an interface for accelerating AWB convergence, the image control algorithm is an AWB algorithm, and the second image control parameter includes a parameter value of AWB.

[0224] In an optional embodiment, the shooting method also includes: after the third moment, displaying the eighth image frame and the ninth image frame, the eighth image frame and the ninth image frame being adjacent image frames; the brightness change rate of the third image frame and the fourth image frame is greater than the brightness change rate of the eighth image frame and the ninth image frame.

[0225] The third and fourth image frames are adjacent image frames displayed by the device during the user-triggered capture phase, such as frames 8 and 9 in Figure 7. The eighth and ninth image frames are adjacent image frames displayed by the device during the preview phase after the user triggers capture, such as frames 12 and 13 following frame 10 in Figure 7.

[0226] In the above solution, the brightness change between adjacent image frames during the user-triggered capture phase is greater than the brightness change between adjacent image frames during the preview phase after the capture is triggered. This indirectly indicates that the device's underlying brightness adjustment speed during the capture phase is greater than the speed during the preview phase after the capture is triggered. This means that after the user triggers capture, the device slows down the convergence rate of the algorithm for adjusting image frame brightness, for example, restoring it to the convergence rate corresponding to the preview phase before the capture is triggered. This improves the stability and smoothness of the preview image displayed by the device.

[0227] As an example, the brightness change speed of the eighth image frame and the ninth image frame may be the ratio of the absolute value of the difference between the average brightness of the eighth image frame and the average brightness of the ninth image frame to the average brightness of the eighth image frame.

[0228] In an optional embodiment, displaying the eighth image frame and the ninth image frame includes:

[0229] The image control module of the electronic device obtains a tenth image frame from the image sensor of the electronic device; the tenth image frame is an image frame before the eighth image frame and the ninth image frame;

[0230] When the image control module determines that the image parameters of the tenth image frame have not converged to the first target parameter range, the image control module executes the image control algorithm at a third convergence speed to obtain third image control parameters; the third convergence speed is less than the second convergence speed;

[0231] The image sensor captures an eighth image frame and a ninth image frame based on the third image control parameter;

[0232] The electronic device displays the eighth image frame and the ninth image frame.

[0233] The eighth and ninth image frames are adjacent image frames displayed by the device during the preview phase after the user triggers capture, such as the 12th and 13th frames following the 10th frame in FIG7 . The tenth image frame is the image frame preceding the eighth and ninth image frames, such as the 11th frame in FIG7 .

[0234] Optionally, the third convergence rate is equal to the first convergence rate, for example, the third convergence rate is 1.

[0235] It should be noted that the brightness change speeds of the eighth image frame and the ninth image frame can be used to indicate the third convergence speed.

[0236] In the above scheme, the electronic device displays the eighth image frame and the ninth image frame on the shooting preview interface. The eighth image frame and the ninth image frame can be collected based on the third image control parameter determined based on the tenth image frame before the eighth and ninth image frames. The image control module of the electronic device adjusts the image parameters of the eighth image frame and the ninth image frame after the tenth image frame by analyzing the image parameters of the tenth image frame, such as the image brightness, clarity, white balance, etc. of the tenth image frame, so that the image parameters of the eighth image frame and the ninth image frame can converge to the image parameter range corresponding to the current shooting environment as soon as possible. It is worth noting that in this embodiment, after the user triggers shooting, the image control module reduces the convergence speed of executing the image control algorithm, for example, executing it at the default convergence speed of the image control algorithm, which can improve the stability and smoothness of the preview image displayed by the device.

[0237] In an optional embodiment, obtaining the captured fifth image frame includes:

[0238] The image control module of the electronic device acquires a fifth image frame from the image sensor of the electronic device; the fifth image frame is an image frame subsequent to the third image frame and the fourth image frame;

[0239] When the image control module determines that the image parameters of the fifth image frame have converged to a second target parameter interval, the image control module reports the convergence status of the image parameters of the fifth image frame to the shooting control module of the electronic device; the second target parameter interval includes the first target parameter interval;

[0240] The shooting control module controls the fifth image frame to be stored in the target space based on a convergence state of image parameters of the fifth image frame.

[0241] The fifth image frame is an image frame captured by the device when the user releases the capture button.

[0242] As an example, the target space is the storage space of an album application of an electronic device.

[0243] In the above scheme, the shooting control module controls the storage of the fifth image frame based on the state that the image parameters of the fifth image frame reported by the image control module have converged. It is worth noting that the image control module is based on the newly configured second target parameter interval when determining the convergence state of the image parameters of the fifth image frame. The second target parameter interval is a wider target parameter interval compared to the first target parameter interval. Such a configuration can avoid shooting delays as much as possible. Exemplarily, taking the image parameter as image brightness as an example, referring to Figure 9, the image brightness of the fifth image frame is within the interval (L-thd1, L-thd2). If the image brightness convergence state is determined based on the first target brightness interval, the image brightness of the fifth image frame has not converged, and the shooting control module will delay shooting, that is, the captured image frame is the image frame after the fifth image frame. If the image brightness convergence state is determined based on the second target brightness interval, the image brightness of the fifth image frame has converged, and the shooting control module will store the fifth image frame in the album as a captured image frame.

[0244] As an example, the image control module is an AE module, the image parameter is image brightness, the second target parameter interval is the second target brightness interval, the first target parameter interval is the first target brightness interval, the second target brightness interval includes the first target brightness interval, and the image parameter convergence state is the convergence state of the image brightness, that is, the AE convergence state.

[0245] As an example, the image control module is an AF module, the image parameter is image clarity, the second target parameter interval is the second target clarity interval, the first target parameter interval is the first target clarity interval, the second target clarity interval includes the first target clarity interval, and the image parameter convergence state is the convergence state of image clarity, that is, the AF convergence state.

[0246] As an example, the image control module is an AWB module, the image parameter is the image white balance, the second target parameter interval is the second target white balance interval, the first target parameter interval is the first target white balance interval, the second target white balance interval includes the first target white balance interval, and the image parameter convergence state is the convergence state of the image white balance, that is, the AWB convergence state.

[0247] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 12, the electronic device of this embodiment includes: a detection module 1201, a display module 1202 and an acquisition module 1203;

[0248] At a first moment, the detection module 1201 detects a first operation of a user pressing a shooting button. Before the first moment, the display module 1202 displays a first image frame and a second image frame, where the first image frame and the second image frame are adjacent image frames.

[0249] At the second moment, the detection module 1201 detects a second operation of the user lifting the shooting button. Between the first moment and the second moment, the display module 1202 displays the third image frame and the fourth image frame, where the third image frame and the fourth image frame are adjacent image frames.

[0250] At the third moment, the acquisition module 1203 obtains the captured fifth image frame;

[0251] The second moment is later than the first moment, and the third moment is later than the second moment; the brightness change speed of the third image frame and the fourth image frame is greater than the brightness change speed of the first image frame and the second image frame.

[0252] In an optional embodiment, the electronic device further includes: a control module 1204 ; wherein the control module 1204 includes an image control module 1205 and a shooting control module 1206 .

[0253] The image control module 1205 acquires a sixth image frame from the image sensor; the sixth image frame is an image frame before the first image frame and the second image frame;

[0254] When the image control module 1205 determines that the image parameters of the sixth image frame have not converged to the first target parameter range, the image control module 1205 executes the image control algorithm at the first convergence speed to obtain the first image control parameters;

[0255] The image sensor captures a first image frame and a second image frame based on the first image control parameter;

[0256] The display module 1202 displays the first image frame and the second image frame.

[0257] In an optional embodiment, the image control module 1205 obtains a seventh image frame from the image sensor; the seventh image frame is an image frame before the third image frame and the fourth image frame;

[0258] When the image control module 1205 determines that the image parameters of the seventh image frame have not converged to the first target parameter range, the image control module 1205 executes the image control algorithm at a second convergence speed to obtain second image control parameters; the second convergence speed is greater than the first convergence speed;

[0259] The image sensor captures a third image frame and a fourth image frame based on the second image control parameter;

[0260] The display module 1202 displays the third image frame and the fourth image frame.

[0261] In an optional embodiment, the image control module 1205 executes the image control algorithm at a second convergence speed by calling the first interface to obtain the second image control parameters; the second convergence speed is configured on the first interface.

[0262] In an optional embodiment, after the third moment, the display module 1202 displays the eighth image frame and the ninth image frame, and the eighth image frame and the ninth image frame are adjacent image frames; the brightness change rate of the third image frame and the fourth image frame is greater than the brightness change rate of the eighth image frame and the ninth image frame.

[0263] In an optional embodiment, the image control module 1205 obtains a tenth image frame from the image sensor; the tenth image frame is an image frame before the eighth image frame and the ninth image frame;

[0264] When the image control module 1205 determines that the image parameters of the tenth image frame have not converged to the first target parameter range, the image control module 1205 executes the image control algorithm at a third convergence speed to obtain third image control parameters; the third convergence speed is less than the second convergence speed;

[0265] The image sensor captures an eighth image frame and a ninth image frame based on the third image control parameter;

[0266] The display module 1202 displays the eighth image frame and the ninth image frame.

[0267] In an optional embodiment, the image control module 1205 obtains a fifth image frame from the image sensor; the fifth image frame is an image frame after the third image frame and the fourth image frame;

[0268] When the image control module 1205 determines that the image parameters of the fifth image frame have converged to the second target parameter interval, the image control module 1205 reports the convergence status of the image parameters of the fifth image frame to the shooting control module 1206; the second target parameter interval includes the first target parameter interval;

[0269] The shooting control module 1206 controls the fifth image frame to be stored in the target space based on the convergence state of the image parameters of the fifth image frame.

[0270] In the above embodiments, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functions.

[0271] Therefore, the modules of each example described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0272] The present application also provides an electronic device comprising: a memory, a processor, and a computer program. The computer program is stored in the memory and configured to be executed by the processor to implement the technical solution of any of the above method embodiments. The implementation principles and technical effects are similar and will not be further described here.

[0273] The memory may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0274] The memory can be independent and connected to the processor via a communication line, or it can be integrated with the processor.

[0275] The processor may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0276] An embodiment of the present application provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the technical solution of the above embodiment. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments and will not be repeated here.

[0277] An embodiment of the present application provides a chip, which includes a processor. The processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments and will not be repeated here.

[0278] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effects are similar to those of the above-mentioned related embodiments and will not be repeated here.

[0279] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A shooting method, characterized in that: Applied to electronic equipment, the method comprises: At a first moment, a first operation of a user pressing a shooting button is detected, and before the first moment, a first image frame and a second image frame are displayed, wherein the first image frame and the second image frame are adjacent image frames; At a second moment, a second operation of the user lifting the shooting button is detected, and between the first moment and the second moment, a third image frame and a fourth image frame are displayed, and the third image frame and the fourth image frame are adjacent image frames; At the second moment, a fifth image frame is obtained; the second moment is later than the first moment; A brightness change speed of the third image frame and the fourth image frame is greater than a brightness change speed of the first image frame and the second image frame.

2. The method according to claim 1, characterized in that The convergence speed of the brightness of the image displayed on the preview interface after the first moment based on the first operation becomes greater than the convergence speed of the brightness of the image displayed on the preview interface before the first moment; The image displayed on the preview interface before the first moment includes the first image frame and the second image frame, and the image displayed on the preview interface after the first moment includes the third image frame and the fourth image frame.

3. The method according to claim 1 or 2, characterized in that: The displaying of the first image frame and the second image frame comprises: The image control module of the electronic device acquires a sixth image frame from the image sensor of the electronic device; the sixth image frame is an image frame before the first image frame and the second image frame; When the image control module determines that the image parameters of the sixth image frame have not converged to the first target parameter interval, the image control module executes the image control algorithm at a first convergence speed to obtain a first image control parameter; The image sensor collects the first image frame and the second image frame based on the first image control parameter; The electronic device displays the first image frame and the second image frame.

4. The method according to any one of claims 1 to 3, characterized in that: The displaying of the third image frame and the fourth image frame comprises: The image control module of the electronic device acquires a seventh image frame from the image sensor of the electronic device; the seventh image frame is an image frame before the third image frame and the fourth image frame; When the image control module determines that the image parameters of the seventh image frame have not converged to the first target parameter interval, the image control module executes the image control algorithm at a second convergence speed to obtain a second image control parameter; the second convergence speed is greater than the first convergence speed; The image sensor collects the third image frame and the fourth image frame based on the second image control parameter; The electronic device displays the third image frame and the fourth image frame.

5. The method according to claim 4, characterized in that The image control module executes the image control algorithm at a second convergence speed to obtain a second image control parameter, including: The image control module executes the image control algorithm at the second convergence speed by calling the first interface to obtain the second image control parameter; and the second convergence speed is configured on the first interface.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: After the second moment, an eighth image frame and a ninth image frame are displayed, wherein the eighth image frame and the ninth image frame The image frames are adjacent image frames; The brightness change speed of the third image frame and the fourth image frame is greater than the brightness change speed of the eighth image frame and the ninth image frame.

7. The method according to claim 6, characterized in that The convergence speed of the brightness of the image displayed on the preview interface after the second moment is smaller than the convergence speed of the brightness of the image displayed on the preview interface between the first moment and the second moment; The image displayed on the preview interface after the second moment includes the eighth image frame and the ninth image frame, and the image displayed on the preview interface between the first moment and the second moment includes the third image frame and the fourth image frame.

8. The method according to claim 6 or 7, characterized in that: The displaying of the eighth image frame and the ninth image frame comprises: The image control module of the electronic device acquires a tenth image frame from the image sensor of the electronic device; the tenth image frame is an image frame before the eighth image frame and the ninth image frame; When the image control module determines that the image parameters of the tenth image frame have not converged to the first target parameter interval, the image control module executes the image control algorithm at a third convergence speed to obtain a third image control parameter; the third convergence speed is less than the second convergence speed; The image sensor collects the eighth image frame and the ninth image frame based on the third image control parameter; The electronic device displays the eighth image frame and the ninth image frame.

9. The method according to any one of claims 1 to 8, characterized in that: The obtaining of the captured fifth image frame comprises: The image control module of the electronic device acquires the fifth image frame from the image sensor of the electronic device; the fifth image frame is an image frame after the third image frame and the fourth image frame; When the image control module determines that the image parameters of the fifth image frame have converged to a second target parameter interval, the image control module reports the convergence state of the image parameters of the fifth image frame to the shooting control module of the electronic device; the second target parameter interval includes the first target parameter interval; The shooting control module controls the fifth image frame to be stored in the target space based on a convergence state of image parameters of the fifth image frame.

10. An electronic device, characterized in that: include: Detection module, display module and acquisition module; At a first moment, the detection module detects a first operation of a user pressing a shooting button, and before the first moment, the display module displays a first image frame and a second image frame, wherein the first image frame and the second image frame are adjacent image frames; At a second moment, the detection module detects a second operation of the user lifting the shooting button, and between the first moment and the second moment, the display module displays a third image frame and a fourth image frame, the third image frame and the fourth image frame being adjacent image frames; At the second moment, the acquisition module obtains the captured fifth image frame; The second moment is later than the first moment; A brightness change speed of the third image frame and the fourth image frame is greater than a brightness change speed of the first image frame and the second image frame.

11. An electronic device, characterized in that: The electronic device comprises: a memory and a processor, wherein the processor is used to call a computer program in the memory to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 9.

13. A chip, characterized in that: The chip comprises a processor, and the processor is used to call a computer program in a memory to execute the method according to any one of claims 1 to 9.