Shooting parameter adjusting method and device and electronic equipment
By adjusting the exposure time and flash brightness value to compensate for light changes, the problem of insufficient light when shooting high-speed moving objects is solved, and a clear and bright shooting effect is achieved during movement.
Patent Information
- Application Number
- CN202510532357.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-01
AI Technical Summary
When shooting high-speed moving objects, in the prior art, due to changes in ambient light, the brightness of the fill light cannot be obtained, and a clear and bright image cannot be obtained.
Compensate for light changes by adjusting the shooting exposure time and flash brightness value, and adjust the exposure time and flash brightness in real time according to the movement speed of the electronic device to ensure a clear and bright shooting effect.
Effectively avoid motion blur and ensures clear and bright images taken during movement.
Smart Images

Figure CN120416673A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of camera technology, and particularly relates to a method and device for adjusting shooting parameters and an electronic device. Background Art
[0002] With the continuous development of electronic device technology, more and more electronic devices support multiple shooting modes. When a user needs to photograph a fast-moving object with an electronic device, the electronic device reduces the exposure time to photograph the moving object. In this way, the problem of motion blur generated when photographing a moving object can be reduced.
[0003] In related technologies, when an electronic device uses a short exposure time to photograph a fast-moving object, the electronic device needs to be in an environment with sufficient light so that the electronic device can capture a clear image of the instantaneous state of the moving object. Generally, when the current ambient light is weak, before shooting, the user will first select the required shooting parameters on the displayed shooting interface, and then the electronic device adjusts the brightness value of the flash to a fixed brightness value according to the shooting parameters selected by the user, and uses this brightness value to fill light for the current ambient brightness to obtain a clear and bright shooting image.
[0004] However, when the object photographed by the electronic device is a moving object, since the electronic device may move accordingly when the object is moving, the light in the shooting screen of the electronic device will change. Thus, if the electronic device still uses this brightness value to fill light for the current shooting screen, it may cause the fill light brightness to be insufficient, and thus a sufficiently clear and bright image cannot be obtained. Summary of the Invention
[0005] The purpose of the embodiments of this application is to provide a method and device for adjusting shooting parameters and an electronic device, which can ensure that a clear and bright image can be obtained when the electronic device photographs a moving object.
[0006] In a first aspect, the embodiments of this application provide a method for adjusting shooting parameters. The method for adjusting shooting parameters includes: when the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjusting the shooting exposure time based on the second moving speed; adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
[0007] In a second aspect, the embodiments of this application provide a device for adjusting shooting parameters. The device for adjusting shooting parameters includes: a processing module; the processing module is used to adjust the shooting exposure time based on the second moving speed when the moving speed of the electronic device changes from a first moving speed to a second moving speed; the processing module is further used to adjust the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0012] In the embodiment of the present application, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, based on the second moving speed, the shooting exposure time is adjusted; based on the second moving speed or the adjusted shooting exposure time, the brightness value of the flash of the electronic device is adjusted. In this solution, the electronic device continuously adjusts the corresponding shooting exposure time according to the changing moving speed of the electronic device, and further adjusts the brightness value of the flash in real time according to the adjusted exposure time or the changed moving speed to fill light for the current environment. Thus, when the moving speed of the electronic device changes, the light change caused by the movement can be compensated by adjusting the exposure time and the flash brightness value according to the changed moving speed. Furthermore, when the electronic device is moving, a clear and bright shooting image can still be obtained, avoiding motion blur in the shooting image and ensuring a good shooting effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a schematic diagram of a shooting parameter adjustment method provided by some embodiments of the present application;
[0014] Figure 2 is a schematic diagram of the corresponding relationship between the exposure gain value and the exposure meter provided by some embodiments of the present application;
[0015] Figure 3 is a schematic diagram of the selection mode of the shooting interface of a mobile phone provided by some embodiments of the present application;
[0016] Figure 4It is a schematic diagram of the selectable frame rate of the shooting interface of a mobile phone provided by some embodiments of the present application;
[0017] Figure 5 It is a prompt diagram for reducing the frame rate of the shooting interface of a mobile phone provided by some embodiments of the present application;
[0018] Figure 6 It is a specific example diagram of the shooting parameter adjustment method provided by some embodiments of the present application;
[0019] Figure 7 It is a schematic diagram of the corresponding relationship between the flash brightness and the mobile phone moving speed provided by some embodiments of the present application;
[0020] Figure 8 It is a schematic diagram of the corresponding relationship between the flash brightness and the mobile phone moving speed provided by some embodiments of the present application;
[0021] Figure 9 It is a schematic structural diagram of the shooting parameter adjustment device provided by some embodiments of the present application;
[0022] Figure 10 It is a schematic structural diagram of the shooting parameter adjustment device provided by some embodiments of the present application;
[0023] Figure 11 It is a schematic hardware structure diagram of an electronic device provided by some embodiments of the present application;
[0024] Figure 12 It is a schematic hardware structure diagram of an electronic device provided by some embodiments of the present application. Detailed implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0026] The terms used in the implementation manners part of the present application are only used to explain the specific embodiments of the present application, rather than aiming to limit the present application. Some terms and nouns involved in the embodiments of the present application are explained below.
[0027] Exposure time: The exposure time is the time for the shutter to open in order to project light onto the photosensitive surface of the photographic light-sensitive material. It depends on the sensitivity of the photographic light-sensitive material and the illuminance on the photosensitive surface. If the exposure time is long, more light enters, which is suitable for relatively poor light conditions. If the exposure time is short, it is suitable for relatively good light conditions.
[0028] Fill light brightness: During the shooting process, at a certain exposure time, the electronic device needs to control the brightness of the flash to meet the shooting light conditions.
[0029] Motion blur: Motion blur or motion blur is a noticeable blurry dragging effect caused by fast-moving objects in a static scene or a series of images, such as in a movie or animation.
[0030] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in this specification indicates at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0031] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".
[0032] The logo in this application refers to text, symbols, images, etc. used to indicate information. Logos or other containers can be used as carriers for displaying information, including but not limited to text logos, image logos, symbol logos, etc.
[0033] It should be noted that the shooting parameter adjustment method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and in-vehicle electronic devices. In some embodiments of the present application, the shooting parameter adjustment method provided in the embodiments of the present application is described by taking an electronic device as the execution subject to execute the shooting parameter adjustment method.
[0034] The following describes in detail the method, device, and electronic device for adjusting camera parameters provided by the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0035] In related technologies, an electronic device is usually configured with a flash, so that the electronic device can, when natural light is insufficient, such as at dusk, at night, or when the indoor light is dim, use the flash to provide sufficient light for the current captured image, ensuring that the photo is clear and bright. At the same time, using the flash can highlight the subject in the photo, making it more eye-catching. When the light is focused on parts such as the face and eyes, the visual effect can be enhanced. Moreover, using flashes of different colors and materials can also create different atmospheres and effects. For example, using a soft light diffuser can produce soft light, making the photo look warmer and more natural.
[0036] However, the effect of using the flash of current electronic devices has limitations. It can only adjust the brightness and color of the developed photo, and the function is relatively single. Moreover, if the flash is continuously used for a long time, it will cause a large power consumption of the electronic device, thereby making the electronic device heat up, and then causing problems such as stuttering during the shooting process or inability to be used normally due to heating. Thus, the shooting effect of the electronic device is poor.
[0037] To solve the above problem of poor shooting effect, in the solution provided by the embodiments of the present invention, during the process of using the electronic device to take a photo, if the moving speed of the electronic device changes, then based on the changed moving speed, the exposure time used for shooting is adjusted; and further, based on the adjusted exposure time, the brightness value of the flash of the electronic device is adjusted. In this way, when the moving speed of the electronic device changes, the exposure time used for shooting can be adjusted in real time, so that the electronic device can adjust the corresponding exposure time in real time according to the continuously changing moving speed. Then, the electronic device adjusts the brightness value of the flash in real time according to the adjusted exposure time to fill light for the current environment, thereby enabling the shooting parameter adjustment method provided by the embodiments of the present application to be applied to the scenario of shooting flying birds and also to the scenario of shooting running athletes in a sports meeting.
[0038] The execution subject of the shooting parameter adjustment method provided by the embodiments of the present application can be a shooting parameter adjustment device. Exemplarily, the shooting parameter adjustment device can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. Hereinafter, the shooting parameter adjustment method provided by the embodiments of the present application will be exemplarily described by taking an electronic device as an example.
[0039] The embodiments of the present application provide a shooting parameter adjustment method. Figure 1 The flowchart of a shooting parameter adjustment method provided by the embodiments of the present application is shown, and this method can be applied to an electronic device. As Figure 1 shown, the shooting parameter adjustment method provided by the embodiments of the present application may include the following step 201 and step 202.
[0040] Step 201: When the moving speed of the electronic device changes from a first moving speed to a second moving speed, the electronic device adjusts the shooting exposure time based on the second moving speed.
[0041] In some embodiments of the present application, the above shooting exposure time is the exposure time parameter used by the electronic device during shooting.
[0042] Exemplarily, the above shooting process can be a video shooting process or a photo shooting process, which is not limited in the present application.
[0043] In some embodiments of the present application, the above "changing from a first moving speed to a second moving speed" can be understood as that during a shooting process, the electronic device makes a non-uniform movement.
[0044] For example, when shooting a flying bird scene, since the flying speed of the bird is a non-uniform flying process, in order to ensure that the bird is always displayed on the display screen of the electronic device, the user needs to hold the electronic device and move or run along the flying trajectory of the bird, and cooperate with the rotation of the user's hand to move the electronic device for shooting. Therefore, when the flying speed of the bird changes, the moving speed of the electronic device will also change accordingly.
[0045] For example, when shooting an athlete scene, since the running speed of the athlete is non-uniform, in order to ensure that the athlete is always displayed on the display screen of the electronic device, the user needs to hold the electronic device and move or run along the moving trajectory of the athlete's running, and cooperate with the movement of the user's position to move the electronic device for shooting. Therefore, when the running speed of the athlete changes, the moving speed of the electronic device will also change accordingly.
[0046] In some embodiments of the present application, the moving speed of the above electronic device is inversely proportional to the shooting exposure time.
[0047] Exemplarily, the faster the moving speed of the above electronic device, the shorter the shooting exposure time.
[0048] In some embodiments of the present application, during the shooting process, as long as the electronic device detects a change in the current moving speed, it immediately adjusts the corresponding shooting exposure time. In other words, the electronic device can adjust the shooting exposure time in real time according to the continuous change of the moving speed.
[0049] Optionally, in some embodiments of the present application, the above step 201 can be specifically implemented through the following steps 201a and 201b.
[0050] Step 201a: The electronic device determines the first exposure time by dividing the motion blur parameter required for shooting by the second moving speed.
[0051] In some embodiments of the present application, the above-mentioned motion blur parameter is used to characterize the degree of motion blur of the captured image.
[0052] Exemplarily, the above-mentioned motion blur parameter is used to characterize the degree of motion blur of the image. The smaller the motion blur parameter, the clearer the image; conversely, the larger the motion blur parameter, the more blurred the image, such as having more ghosting and noise points.
[0053] In some embodiments of the present application, the electronic device can calculate the exposure time corresponding to different moving speeds using the first formula based on the motion blur parameter required for shooting and the moving speed of the electronic device.
[0054] Exemplarily, the above-mentioned first formula is:
[0055]
[0056] Wherein, B is the set motion blur parameter, v is the moving speed of the electronic device at a certain moment, and t is the exposure time at that moment.
[0057] For example, assuming B is taken as 0.01 m and the second moving speed v is 1 m / s, then combining the above first formula, the shooting exposure time at this time is calculated to be 0.01 s.
[0058] Step 201b: The electronic device adjusts the shooting exposure time from the second exposure time to the first exposure time.
[0059] In some embodiments of the present application, the above-mentioned second exposure time is the shooting exposure time corresponding to the electronic device at the first moving speed, that is, the shooting exposure time when the speed of the electronic device has not changed yet.
[0060] In some embodiments of the present application, when the electronic device detects that the moving speed of the electronic device changes from the first moving speed to the second moving speed, that is, when the current moving speed changes, it determines the corresponding shooting exposure time according to the changed moving speed, that is, the second moving speed, and adjusts the exposure time used before the moving speed change, that is, the above-mentioned second exposure time, to the shooting exposure time corresponding after the moving speed change, that is, the above-mentioned first exposure time.
[0061] For example, the default exposure time of the electronic device, that is, the above-mentioned second exposure time, is 0.05 s, and the first exposure time calculated according to the moving speed is 0.01 s. At this time, the electronic device needs to adjust the exposure time from 0.05 s to 0.01 s.
[0062] It should be noted that the electronic device uses the first exposure time to control the camera of the electronic device to shoot the captured image at this moving speed. If the moving speed changes again, a new exposure time is calculated again and shooting is performed using the new exposure time.
[0063] In this way, the electronic device can adjust the exposure time in real time according to different moving speeds, so that the electronic device can use an appropriate exposure time to capture images at different speeds, thereby reducing the motion blur in the final image and obtaining a sufficiently clear captured image.
[0064] Step 202: The electronic device adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
[0065] In some embodiments of the present application, the electronic device can calculate the brightness value of the flash of the electronic device according to the adjusted exposure time, and adjust the brightness value of the flash of the electronic device according to the calculated brightness value.
[0066] Exemplarily, the above exposure time is inversely proportional to the brightness value of the flash of the electronic device, that is, the smaller the exposure time, the less light is obtained under a certain lens light input, and the greater the brightness value of the flash, so as to increase the light obtained by the electronic device and ensure the brightness of the captured image.
[0067] In some embodiments of the present application, the electronic device can calculate the brightness value of the flash of the electronic device according to different moving speeds, and adjust the brightness value of the flash of the electronic device according to the calculated brightness value.
[0068] Exemplarily, there is a direct proportional relationship between the moving speed of the electronic device and the brightness value of the flash, that is, when the moving speed of the electronic device is faster, the generated motion blur is greater, and at this time, the brightness value of the flash will be higher, so as to shorten the exposure time and reduce the motion blur.
[0069] In a possible embodiment, the brightness value calculated by the electronic device according to the second moving speed or the adjusted shooting exposure time is less than or equal to the maximum brightness value of the flash of the electronic device. At this time, the electronic device adjusts the brightness value of the flash to the calculated brightness value. Then, the current environment is filled with light using this brightness value, and the current shooting image is captured using the adjusted exposure time and other relevant shooting parameters.
[0070] In another possible embodiment, when the brightness value calculated by the electronic device based on the second moving speed or the adjusted shooting exposure time is greater than the maximum brightness value of the flash, the electronic device adjusts the brightness value of the flash to the maximum brightness value. Then, the current environment is filled with light using this brightness value. Next, the electronic device calculates an exposure gain value based on the maximum brightness value, the moving speed of the electronic device, and the signal strength required for imaging. Further, the electronic device determines a set of exposure parameter groups that match the current exposure gain value according to the mapping relationship between the exposure gain value and the exposure parameter groups, and uses the exposure parameters in this set of exposure parameter groups to capture the current shooting scene.
[0071] In the shooting parameter adjustment method provided in the embodiments of the present application, when the moving speed of the electronic device changes from the first moving speed to the second moving speed, the shooting exposure time is adjusted based on the second moving speed; the brightness value of the flash of the electronic device is adjusted based on the second moving speed or the adjusted shooting exposure time. In this solution, the electronic device continuously adjusts the corresponding shooting exposure time according to the changing moving speed of the electronic device, and further adjusts the brightness value of the flash in real time according to the adjusted exposure time or the changed moving speed to fill light for the current environment, so that when the moving speed of the electronic device changes, the light change caused by the movement can be compensated by adjusting the exposure time and the brightness value of the flash according to the changed speed, and thus the electronic device can still capture clear and bright shooting images when moving, avoiding motion blur in the shooting images.
[0072] Optionally, in some embodiments of the present application, before step 202 "the electronic device adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time", the shooting parameter adjustment method provided in the embodiments of the present application further includes step 301 or step 302.
[0073] Step 301: The electronic device determines the first quotient as the first brightness value.
[0074] In some embodiments of the present application, the above first quotient is the quotient of the light input amount of the lens of the electronic device and the adjusted shooting exposure time.
[0075] In some embodiments of the present application, the above light input amount of the lens is the total amount of light received by the camera of the electronic device through the lens within a specific time, and this light input amount of the lens is directly related to the brightness and texture of the photo.
[0076] In some embodiments of the present application, the above light input amount of the lens is a fixed value determined by the electronic device according to the shooting parameters and the shooting hardware device.
[0077] Exemplarily, the above-mentioned light input of the lens is related to parameters such as the aperture size, focal length, or entrance pupil diameter.
[0078] In some embodiments of the present application, the electronic device calculates the above-mentioned first brightness value according to the second formula.
[0079] Exemplarily, the above-mentioned second formula is:
[0080]
[0081] Wherein, E is the calculated brightness value to be adjusted, that is, the above-mentioned first brightness value, and k is the light input of the lens.
[0082] For example, assuming k is 0.1 lux·s and t is 0.001 s, substituting into the above-mentioned second formula, we get Finally, we get E = 100 lux. Thus, it can be known that when the flash brightness value is adjusted to 100 lux, the current shooting light requirements can be met, and a clear and bright image can be obtained.
[0083] Step 302, the electronic device determines the product of the second quotient and the second moving speed as the first brightness value.
[0084] In some embodiments of the present application, the above-mentioned second quotient is the quotient of the light input of the lens of the electronic device and the motion blur parameter required for shooting.
[0085] In some embodiments of the present application, the above-mentioned light input of the lens is the total amount of light received by the camera of the electronic device through the lens within a specific time, and this light input of the lens is directly related to the brightness and texture of the photo.
[0086] In some embodiments of the present application, the above-mentioned light input of the lens is a fixed value determined by the electronic device according to the shooting parameters and the shooting hardware device.
[0087] Exemplarily, the above-mentioned light input of the lens is related to parameters such as the aperture size, focal length, or entrance pupil diameter.
[0088] In some embodiments of the present application, the electronic device combines the first formula and the second formula to derive a third formula, and then uses the third formula to determine the brightness value required for the flash based on the moving speed of the electronic device, the light input of the lens, and the motion parameters required for shooting, that is, the above-mentioned first brightness value.
[0089] Exemplarily, when the electronic device combines the above-mentioned first formula and the second formula, the obtained third formula is:
[0090]
[0091] Wherein, E is the calculated brightness value to be adjusted, k is the light input amount of the lens, B is the motion blur parameter required for shooting, and v is the moving speed of the electronic device.
[0092] For example, assume that k is 0.1 lux·s, v is 1 m / s, and B is 0.001 m. Substituting these values into the above third formula, we get Finally, we obtain E = 100 lux. It can be seen that when the brightness value of the flash is 100 lux and the speed of the electronic device is 1 m / s, the requirements of the motion modulus parameter for the current shooting can be met.
[0093] It can be understood that there is a direct proportional relationship between the moving speed of the electronic device and the brightness value of the flash. The faster the moving speed of the electronic device, the greater the motion blur generated. At this time, the brightness value of the flash will be higher to shorten the exposure time and thus reduce the motion blur.
[0094] In this way, it can be seen from the above formula that the fill light brightness E of the flash is directly proportional to the moving speed v of the electronic device. When the moving speed of the electronic device is faster, the brightness value of the flash is controlled to be brighter, so that the degree of motion blur in the imaging captured by the electronic device can be maintained at the same level.
[0095] Optionally, in some embodiments of the present application, the above step 202 can be specifically implemented by the following step 202a.
[0096] Step 202a: When the first brightness value is less than or equal to the maximum brightness value of the flash, the electronic device adjusts the brightness value of the flash from the second brightness value to the first brightness value.
[0097] For example, assume that the maximum brightness value of the flash of the electronic device is 500 lux. When the first brightness value is 200 lux, the electronic device adjusts the brightness value of the flash to 200 lux.
[0098] Further, in combination with the above step 202a, after the above step 202, the shooting parameter adjustment method provided by the embodiments of the present application further includes step 401.
[0099] Step 401: The electronic device captures an image or video according to the adjusted shooting exposure time and the first brightness value.
[0100] In some embodiments of the present application, the above second brightness value is the brightness value of the flash before the moving speed of the electronic device changes.
[0101] In a possible embodiment, the electronic device uses the above third formula and combines the changed moving speed of the electronic device to calculate a first brightness value. When the first brightness value is less than or equal to the maximum brightness value of the flash, the brightness value of the flash before the moving speed of the electronic device changes is adjusted to the first brightness value calculated according to the changed moving speed.
[0102] In some embodiments of the present application, after the electronic device uses the adjusted shooting exposure time and adjusts the brightness value of the flash to the first brightness value, it controls the camera of the electronic device to take a picture of the shooting scene according to the current shooting parameters to obtain a captured image or video.
[0103] In this way, when the electronic device moves, it can compensate for the light change caused by the movement by adjusting the exposure time and the brightness value of the flash according to the speed, so that the electronic device can still capture a clear and bright captured image when moving, avoiding motion blur in the captured image and ensuring a good shooting effect.
[0104] Optionally, in some embodiments of the present application, step 202 above can be specifically implemented by the following step 202b.
[0105] Step 202b: When the first brightness value is greater than the maximum brightness value of the flash, the electronic device adjusts the brightness value of the flash from the second brightness value to the maximum brightness value.
[0106] In a possible embodiment, the electronic device uses the above third formula and combines the changed moving speed of the electronic device to calculate a first brightness value. When the first brightness value is greater than the maximum brightness value of the flash, the brightness value of the flash before the moving speed of the electronic device changes is directly adjusted to the maximum brightness value to ensure the degree of motion blur in the captured image to the greatest extent possible.
[0107] For example, assume that the maximum brightness value of the flash of the electronic device is 500 lux. When the first brightness value is 700 lux, the electronic device adjusts the brightness value of the flash to 500 lux, that is, the maximum brightness value of the flash.
[0108] Optionally, in some embodiments of the present application, in combination with the above step 202b, after the above step 202, the shooting parameter adjustment method provided by the embodiments of the present application further includes step 402 and step 403.
[0109] Step 402: The electronic device determines an exposure gain value based on the maximum brightness value and the second moving speed.
[0110] In some embodiments of the present application, one exposure gain value corresponds to a set of exposure parameters.
[0111] In some embodiments of the present application, different exposure gain values correspond to different sets of exposure parameters.
[0112] In some embodiments of the present application, the electronic device derives a fifth formula by combining the above first formula and the following fourth formula, and calculates the exposure gain value based on the maximum brightness value of the flash and the changed moving speed.
[0113] For example, the fourth formula is:
[0114]
[0115] Exemplarily, the electronic device derives the fifth formula according to the fourth formula and the first formula as follows:
[0116]
[0117] Among them, G is the calculated exposure gain value, C is the signal intensity required for imaging, and E max The maximum brightness of the flash.
[0118] Exemplarily, the signal strength required for imaging is used to characterize the intensity of the noise signal value contained in the captured image. In other words, the signal strength required for imaging is used to characterize the image quality of the captured image.
[0119] For example, assuming that C is 400 lux·s, E is 200 lux, B is 0.05 m, and v is 5 m / s, substituting them into the fifth formula above, we get G=200, that is, the exposure gain value is 200.
[0120] It should be noted that this formula simplifies parameters. After considering aspects such as multi-frame synthesis and hardware noise reduction, the values shown in the example will vary within a certain range.
[0121] Step 403: The electronic device determines a set of exposure parameters corresponding to the exposure gain value as shooting exposure parameters, and shoots an image or video according to the shooting exposure parameters.
[0122] In some embodiments of the present application, the above-mentioned exposure parameters include exposure time.
[0123] In some embodiments of the present application, the above-mentioned exposure parameters further include but are not limited to at least one of the following: aperture value, sensitivity.
[0124] In some embodiments of the present application, the electronic device can use the exposure gain value to retrieve the mapping relationship between different exposure gain values and exposure parameter groups pre-stored in the electronic device, and find the exposure parameter group corresponding to the calculated exposure gain value.
[0125] Exemplarily, the electronic device may store the mapping relationship between different exposure gain values and exposure parameter groups in the form of an exposure parameter configuration table.
[0126] In some embodiments of the present application, the electronic device may calculate different exposure gain values according to the moving speed of the current electronic device, and then select the exposure parameters in the corresponding exposure parameter group according to the different exposure gain values to dynamically adjust the exposure parameters used for shooting.
[0127] It can be understood that, as Figure 2 shown, the exposure parameters are set with reference to the actual lens performance, and the gain values increase from 1 to n. When the brightness is the same, the exposure time becomes shorter and the gain value becomes larger from 1 to n.
[0128] In this way, the above steps can intelligently match the exposure parameters corresponding to different exposure gain values from 1 to n according to the different moving speeds of the electronic device. Intuitively, when the moving speed increases, the system will switch to the parameter group with a shorter exposure time, thereby effectively controlling the motion blur within a very small range.
[0129] Optionally, in some embodiments of the present application, before the above step 201 "the electronic device adjusts the shooting exposure time based on the changed moving speed", the electronic device will calculate the moving speed of the electronic device in real time.
[0130] In some embodiments of the present application, the electronic device may obtain speed parameters in different dimensions through different sensors respectively, and then further calculate the moving speed of the electronic device according to the speed parameters.
[0131] In some embodiments of the present application, the electronic device may obtain the first speed value of the electronic device in different directions through a gyroscope sensor; and obtain the first acceleration value of the electronic device in different directions through an acceleration sensor; at the same time, and obtain the first gravitational acceleration value of the electronic device in different directions through a gravity sensor.
[0132] Exemplarily, the first speed values obtained by the electronic device through the gyroscope sensor are respectively: gyro x , gyro y , gyro z .
[0133] Exemplarily, the first acceleration values obtained by the electronic device through the acceleration sensor are respectively: acc x , acc y , acc z .
[0134] Exemplarily, the first gravitational acceleration values obtained by the electronic device through the gravity sensor are respectively: gravity x , gravity y , gravity z .
[0135] In some embodiments of the present application, the first acceleration value in one direction corresponds to the acceleration gravity and velocity values in the same direction. For example, in the direction corresponding to acc x , there is a corresponding gravity x .
[0136] In some embodiments of the present application, the electronic device calculates the moving speed of the electronic device based on the above first speed value, the above first acceleration value, and the above first gravitational acceleration value.
[0137] Specifically, the electronic device weights the sum of the first speed values according to the first weight to obtain the weighted first speed value; then weights each first acceleration value according to the second weight and weights each first gravitational acceleration value according to the third weight; then, sums the absolute values of the differences between each weighted first acceleration value and the weighted first gravitational acceleration value in the same direction to obtain the second speed value; finally, determines the sum of the weighted first speed value and the second speed value as the moving speed of the electronic device.
[0138] Exemplarily, the electronic device uses the sixth formula, the seventh formula, and the eighth formula to calculate the moving speed of the electronic device based on the above first speed value, first acceleration value, and first gravitational acceleration value.
[0139] Exemplarily, the above sixth formula is:
[0140] gyro_value = α(gyro x + gyro y + gyro z ) (6)
[0141] Wherein, gyro_value is the above weighted first speed value, and α is the first weight.
[0142] Exemplarily, the above seventh formula is:
[0143] linear_acc_value = |βacc x - γgravity x | + |βacc y - γgravity y | + |βacc z - γgravity z | (7)
[0144] Wherein, linear_acc_value is the second speed value described above, β is the second weight, and γ is the third weight.
[0145] Exemplarily, the above eighth formula is:
[0146] motion_value = gyro_value + linear_acc_value (8)
[0147] Wherein, motion_value is the moving speed of the electronic device calculated above.
[0148] It can be understood that the above first weight, second weight, and third weight are used to characterize the reference degree of the speed parameters obtained by different sensors. The larger the weight value, the more reference value the speed parameter obtained by the sensor has.
[0149] It should be noted that on an electronic device equipped with a linear acceleration sensor, the linear acceleration can be directly read for calculation.
[0150] In this way, the electronic device can accurately match the current moving speed of the electronic device by adjusting α, β, and γ to use this moving speed value, eliminating the error of the moving speed calculated by a single sensor and improving the accuracy of calculating the moving speed of the overall electronic device.
[0151] Optionally, in some embodiments of the present application, the shooting parameter adjustment method provided by the embodiments of the present application further includes step 501 to step 503, or step 501 to step 504.
[0152] Step 501: The electronic device sets the shooting frame rate to the first frame rate in response to the user's selection input.
[0153] In some embodiments of the present application, the electronic device receives the user's selection input for the shooting parameters in the shooting interface and determines the first frame rate in the shooting parameters in response to the selection input.
[0154] In some embodiments of the present application, the above selection input is used to select shooting parameters.
[0155] In some embodiments of the present application, the above selection input may include a touch input by the user clicking on a setting control in the shooting interface, or a voice command input by the user, or a specific gesture input by the user. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.
[0156] Exemplarily, the above touch input includes a user's sliding input or click input on a setting control, etc. The specific gestures in the embodiments of the present application can be any one of a single click gesture, a sliding gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture; the click input in the embodiments of the present application can be a single click input, a double click input, or a click input of any number of times, etc., and the above click input can also be a long press input or a short press input.
[0157] Exemplarily, at least one shooting parameter is included in the above setting control, such as a shooting frame rate and a shooting mode.
[0158] Exemplarily, the number of the above setting controls can be one or multiple, and can be at any position on the shooting interface.
[0159] For example, as Figure 3 shown, after the electronic device turns on the camera function and enters the shooting interface 31, the user first selects the input by clicking on the mode setting control 32 directly above the shooting interface 31 to select the dynamic priority mode, so as to trigger the shooting parameters corresponding to the electronic device entering the dynamic shooting mode. Then, in combination with Figure 3 , such as Figure 4 shown, click on the frame rate selection control 33 in the upper right of the shooting interface 31 again to select the shooting parameter 34 of 60fps for fill light and frame extraction, that is, the above first frame rate.
[0160] Step 502: The electronic device determines a reference ambient brightness range based on the first frame rate.
[0161] In some embodiments of the present application, the above reference ambient brightness range is used to represent that within this reference ambient brightness range, the electronic device can capture bright and clear images, such as photos or videos, using the first shooting parameter.
[0162] For example, when the above first frame rate is 60 frames, the reference environment range is 100 lux to 200 lux.
[0163] In some embodiments of the present application, the process of calculating the above reference ambient brightness range is as follows:
[0164] First, the total exposure amount, or signal strength, of the image sensor can generally be expressed as the contribution of the light sources provided by the hardware in each electronic device plus the influence of the exposure gain value. Assuming that the ambient light intensity is E_env, the brightness value of the flash is E_flash, the exposure time is t, and the exposure gain value is G. At this time, the total signal S can be expressed by the ninth formula as:
[0165] S=(E_env + E_flash)×t×G (9)
[0166] Exemplarily, the above total signal is usually related to the saturation level of the image sensor or the required signal-to-noise ratio.
[0167] However, in order to achieve the correct exposure of the image, the total signal S usually needs to reach a target value S_target. When the brightness value of the flash and the exposure gain value gain both reach their maximum values, the electronic device can adjust the exposure time t to compensate for the change in ambient light, so that S remains constant. Therefore, the tenth formula can be established:
[0168] S_target = (E_env + E_flash) × t × G (10)
[0169] Next, it is necessary to transform the tenth formula into the eleventh formula for the ambient brightness E_env with respect to the exposure time t:
[0170] E_env = S_target / (t × G) - E flash (11)
[0171] When calculating whether the 60-frame requirement is met, the exposure time t needs to be less than the frame interval, and t is taken as 16 milliseconds. S is taken as the total exposure amount. According to the lens parameters, the maximum brightness value of the E_flash flash can be known. Overall, the reference ambient brightness range when the 60-frame rate can be enabled can be calculated.
[0172] For example, when S is taken as 200, G is taken as 100, t is taken as 0.01 s, and the maximum fill light of E_flash is taken as 100 lux. Substituting into the above formula gives
[0173] That is, when the ambient brightness is above 100 lux, the condition for enabling 60 frames is met. However, this value is calculated under ideal conditions. In actuality, the electronic sensor is affected by factors such as the sensor quantum efficiency, ambient light wavelength, and inherent noise of the sensor. In actual operation, the electronic device can subjectively calibrate and preset the brightness range at which the high frame rate can be enabled while meeting the basic image quality requirements.
[0174] Step 503: When the ambient brightness value of the environment where the electronic device is located is within the reference ambient brightness range, the electronic device captures an image or video at the first frame rate.
[0175] In some embodiments of the present application, in combination with Figure 3 , as Figure 5 shown, when the current ambient brightness meets the calculated reference ambient brightness range, subsequent fill light calculations can be performed and shooting can be carried out; while when the current ambient brightness does not meet the calculated reference ambient brightness range, it will be feedback on the shooting interface 31 that the setting of the shooting parameters is unsuccessful and has dropped to 30 frames.
[0176] Step 504: When the ambient brightness value of the environment where the electronic device is located is outside the reference ambient brightness range, the electronic device uses the second frame rate for shooting.
[0177] In some embodiments of the present application, the reference ambient brightness range corresponding to the second frame rate includes the ambient brightness value of the environment where the electronic device is located.
[0178] In other words, the ambient brightness value of the current environment where the electronic device is located is within the reference ambient brightness range determined based on the second frame rate.
[0179] In some embodiments of the present application, after the electronic device detects that the ambient brightness value of the environment where the electronic device is located is outside the reference ambient brightness range, the electronic device adjusts the first frame rate to the second frame rate, then recalculates the reference ambient brightness range according to the second shooting parameter, and then determines whether the current ambient brightness value is within the reference ambient brightness range. If it is, the second frame rate is used for subsequent fill light calculation and shooting; if not, the frame rate is changed and the reference ambient brightness range is recalculated, and so on, until the ambient brightness value of the current environment is within the reference ambient brightness range calculated according to the set frame rate.
[0180] In this way, the electronic device can determine whether the currently selected shooting frame rate is appropriate by detecting whether the ambient brightness value of the current environment meets the reference ambient brightness range corresponding to the selected shooting frame rate. If it is not appropriate, it means that the current environment is too dark or too bright, and the shooting parameters need to be readjusted to obtain a bright and clear shooting image. Since the electronic device will refer to the current ambient brightness and the reference ambient brightness range of the shooting frame rate, it can ensure that the electronic device uses an appropriate frame rate in the current ambient brightness to shoot photos or videos that meet the required frame rate, and thus obtain bright and clear images.
[0181] In a possible scenario, the electronic device uses the above technical solution for shooting during video recording.
[0182] Specifically, in some embodiments of the present application, the above step 201 can be specifically implemented by the following step 201c, and step 202 can be specifically implemented by the following step 202c.
[0183] Step 201c: During the video recording process of the electronic device, when the moving speed of the electronic device changes from the first moving speed to the second moving speed, the electronic device adjusts the video recording exposure time according to the second moving speed.
[0184] In some embodiments of the present application, the video recording exposure time is the exposure time used during the video recording process of the electronic device.
[0185] Step 202c: During the video recording process of the electronic device, the electronic device adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted video recording exposure time.
[0186] It should be noted that the description of the process of adjusting the video recording exposure time and the description of the process of adjusting the brightness value of the flash of the electronic device can refer to the relevant specific descriptions in the above steps 202 and 203, and will not be elaborated here.
[0187] Combining the above steps 201c and 202c, after the above step 202c, the shooting parameter adjustment method provided by the embodiment of the present application further includes step 601.
[0188] Step 601: The electronic device controls the camera to perform video recording according to the adjusted video recording exposure time and the brightness value of the flash, and outputs a video.
[0189] In some embodiments of the present application, the electronic device can control the camera to perform video recording according to the adjusted video recording exposure time and the brightness value of the flash according to different moving speeds of the electronic device, obtain a video, and output it.
[0190] In one example, the electronic device directly stores the recorded video in the storage space of the electronic device.
[0191] In one example, the electronic device directly displays the recorded video on the display screen of the electronic device, and when the user determines to store it, the recorded video is stored in the storage space of the electronic device.
[0192] In this way, during the continuous video recording process of the electronic device, the shooting exposure time and the brightness value of the flash can be continuously and dynamically adjusted according to the change of the moving speed, so that the picture captured by the electronic device always maintains sufficient light brightness to overcome the motion blur caused by movement.
[0193] In another possible scenario, the electronic device will adopt the above technical solution for shooting during the photo-taking process.
[0194] Specifically, in some embodiments of the present application, the above step 201 can be specifically implemented by the following step 201d, and the above step 202 can be specifically implemented by the following step 202d.
[0195] Step 201d: When the electronic device receives a photo-taking input and the moving speed of the electronic device changes from the first moving speed to the second moving speed, the electronic device adjusts the photo-taking exposure time based on the second moving speed.
[0196] In some embodiments of the present application, the above photo-taking input is used to control the electronic device to capture an image.
[0197] In some embodiments of the present application, the above-mentioned photo-taking input may include a touch input in which the user clicks on a shooting control in the shooting interface, or a voice command input by the user, or a specific gesture input by the user. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.
[0198] In some embodiments of the present application, the above-mentioned photo-taking exposure time is the exposure time used by the electronic device at the moment of taking a photo.
[0199] It can be understood that at the moment when the electronic device receives a photo-taking input, the moving speed of the electronic device may change from stationary to moving, or the speed may change. At this time, the electronic device adjusts the photo-taking exposure time according to the current moving speed of the electronic device.
[0200] Step 202d: The electronic device adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted photo-taking exposure time.
[0201] It should be noted that the description of the process of adjusting the photo-taking exposure time and the description of the process of adjusting the brightness value of the flash of the electronic device can refer to the relevant specific descriptions of the above steps 202 and 203, and will not be elaborated here.
[0202] Combining the above steps 201c and 202c, after the above step 202c, the shooting parameter adjustment method provided by the embodiments of the present application further includes step 602.
[0203] Step 602: The electronic device controls the camera to perform image shooting according to the adjusted photo-taking exposure time and the brightness value of the flash, and outputs an image.
[0204] In some embodiments of the present application, when receiving a photo-taking input, the electronic device may control the camera to perform video recording according to the photo-taking exposure time and the brightness value of the flash that are adjusted in real time according to the current moving speed of the electronic device, obtain a captured image, and output it.
[0205] In one example, the electronic device directly stores the captured image in the storage space of the electronic device.
[0206] In one example, the electronic device directly displays the captured image on the display screen of the electronic device, and when the user determines to store it, the captured image is then stored in the storage space of the electronic device.
[0207] In this way, when the electronic device receives a photo-taking input, the electronic device can adjust the photo-taking exposure time and the brightness value of the flash in real time according to the change of the instantaneous moving speed, so that the captured picture of the electronic device maintains sufficient light brightness to overcome the motion blur caused by movement.
[0208] It is understandable that the shooting parameter adjustment method provided by the embodiments of the present application can be used in combination with any of the following scenarios.
[0209] For the scenario of shooting flying birds, the electronic device receives the user's input, runs the camera function, and uses the electronic device to shoot along the movement trajectory of the flying birds. During the shooting process, the electronic device A adjusts the exposure time in the current shooting parameter A in real time according to its own moving speed, so that when the moving speed of the electronic device A increases, the exposure time is adjusted smaller to reduce the degree of motion blur. And further, according to the adjusted exposure time, the brightness value of the flash lamp during the shooting process is adjusted in real time to perform dynamic fill light on the environment, so that the light during the shooting process is always sufficient, and a clear and bright shooting image is obtained, thereby improving the shooting effect.
[0210] For the scenario of shooting running athletes in a sports meeting, the electronic device receives the user's input, runs the camera function, and uses the electronic device to shoot along the movement trajectory of the flying birds. During the shooting process, the electronic device A adjusts the exposure time in the current shooting parameter A in real time according to its own moving speed, so that when the moving speed of the electronic device A increases, the exposure time is adjusted smaller to reduce the degree of motion blur. And further, according to the adjusted exposure time, the brightness value of the flash lamp during the shooting process is adjusted in real time to perform dynamic fill light on the environment, so that the light during the shooting process is always sufficient
[0211] The following uses specific examples to exemplarily illustrate the shooting parameter adjustment method provided by the embodiments of the present application.
[0212] Embodiment 1: Taking a mobile phone as an electronic device as an example, as Figure 6 shown, the shooting parameter adjustment method may include the following steps A1 to A4.
[0213] Step A1: The user sets the dynamic priority mode and the required frame rate on the shooting interface, that is, the above-mentioned first shooting parameter.
[0214] Step A2: After the user sets the desired shooting parameters, the calculation of the frame rate layer starts. That is, it is calculated whether the current shooting parameters can obtain an image with the currently set shooting frame rate under the ambient brightness value of the current environment.
[0215] Exemplarily, the mobile phone reads the brightness value of the current ambient brightness to determine whether a higher frame rate can be enabled, and then determines whether the ambient brightness value of the current environment is within the calculated ambient brightness threshold. Among them, the ambient brightness threshold takes into account how dark the environment is when the fill light is adjusted to the brightest and the gain is turned to the highest, and still cannot control the exposure time to be within the current frame rate.
[0216] Step A3: After the frame rate layer is judged, the mobile phone continues to calculate the fill light layer to calculate how much fill light is required to meet the user's needs.
[0217] First, according to the moving speed of the electronic device, the exposure time is calculated, and based on the exposure time and the moving speed of the electronic device, the brightness value of the flash light, that is, the above-mentioned first brightness value, is further calculated. If the calculated first brightness value is less than or equal to the maximum brightness value of the flash light, the brightness value of the flash light is adjusted to the first brightness value; if the calculated first brightness value is greater than the maximum brightness value of the flash light, the brightness value of the flash light is adjusted to the maximum brightness value.
[0218] Exemplarily, generally, the faster the mobile phone moves, the more serious the motion blur of the photo. And the moving speed of the mobile phone is affected by the user and cannot be controlled.
[0219] For example, as Figure 7 shown, the slanted part in the figure represents the corresponding relationship between the moving speed v of the mobile phone when the motion blur B = 1mm. If the control of the motion blur B is not so strict, for example, when B = 3mm, B = 5mm, the corresponding relationship will be as Figure 8 shown.
[0220] It should be noted that for the specific calculation of the brightness value of the flash light of the electronic device, reference can be made to the calculation in the above-mentioned embodiment.
[0221] Among them, when the mobile phone speed v is the same, the higher the brightness value of the flash light, the smaller the controlled motion blur, which also conforms to the intuitive judgment.
[0222] After comprehensive calculation, if the flash light brightness requirement of the device is within the allowable range, it is set to the corresponding brightness; if the requirement exceeds the brightness upper limit of the device, the maximum brightness is used and the calculation enters the gain layer to evaluate whether the requirement can be met after increasing the gain gain.
[0223] Step 104: The electronic device calculates the exposure gain value according to the moving speed of the electronic device, and judges whether the exposure gain value exceeds the maximum exposure gain value. If it does not exceed the maximum exposure gain value, the exposure parameter group in the corresponding exposure parameter configuration table is obtained according to the calculated exposure gain value; if it exceeds the maximum exposure gain value, the exposure parameter group corresponding to the maximum exposure gain value is set, and the user is prompted through the shooting interface that the current moving speed is too fast.
[0224] In one example, as Figure 8As shown, if the electronic device moves too fast, it means that even if the exposure gain value is set to the strongest, the motion blur cannot be controlled within the preset motion blur parameters. At this time, the electronic device will set the exposure parameter to the parameter in the exposure parameter group corresponding to the maximum exposure gain value, and prompt on the shooting interface that the movement is too fast to prevent the user from having doubts about the sudden increase in motion blur on the preview screen.
[0225] Thus, the overall concept of the embodiments of the present application is to use flash fill light to shorten the exposure time and thus achieve the purpose of reducing motion blur. The more severe the phone shake, the more severe the motion blur in the photo, so the brightness of the light is determined based on the degree of phone shake. When the flash reaches its maximum brightness, the exposure parameters can be automatically adjusted to further reduce the exposure time, thereby suppressing more severe motion blur. By shortening the exposure time of a single frame, the frame rate limit of traditional long exposure can be removed, thereby supporting an increase in frame rate and achieving smoother dynamic image capture.
[0226] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.
[0227] The shooting parameter adjustment method provided in the embodiment of the present application can be executed by an electronic device or a shooting parameter adjustment device. In the embodiment of the present application, the shooting parameter adjustment device is used as an example to illustrate the shooting parameter adjustment method provided in the embodiment of the present application.
[0228] Figure 9 FIG. 1 shows a possible structural diagram of a shooting parameter adjustment device involved in an embodiment of the present application. Figure 9 As shown, the shooting parameter adjustment device 700 may include: a processing module 701.
[0229] Among them, the above-mentioned processing module 701 is used to adjust the shooting exposure time based on the above-mentioned second moving speed when the moving speed of the electronic device changes from the first moving speed to the second moving speed; the above-mentioned processing module 701 is also used to adjust the brightness value of the flash of the above-mentioned electronic device based on the above-mentioned second moving speed or the adjusted above-mentioned shooting exposure time.
[0230] Optionally, in some embodiments of the present application, before the processing module 701 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the processing module 701 is further configured to determine the first quotient as a first brightness value; the first quotient being the quotient of the amount of light entering the lens of the electronic device and the adjusted shooting exposure time;
[0231] Alternatively, the above processing module 701 is further configured to determine the product of the second quotient and the second moving speed as the first brightness value; the second quotient is the quotient of the light input amount of the lens of the electronic device and the motion blur parameter required for shooting; the motion blur parameter is used to characterize the motion blur degree of the captured image.
[0232] Optionally, in some embodiments of the present application, the processing module 701 is specifically configured to adjust the brightness value of the flash from the second brightness value to the first brightness value when the first brightness value is less than or equal to the maximum brightness value of the flash;
[0233] After the processing module 701 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, in combination with Figure 9 , such as Figure 10 shown, the device 700 further includes:
[0234] A shooting module 702, configured to shoot an image or video according to the adjusted shooting exposure time and the first brightness value.
[0235] Optionally, in some embodiments of the present application, the processing module 701 is specifically configured to adjust the brightness value of the flash from the second brightness value to the maximum brightness value when the first brightness value is greater than the maximum brightness value of the flash;
[0236] After the processing module 701 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, in combination with Figure 9 , such as Figure 10 shown, the device 700 further includes: a shooting module 702;
[0237] The processing module 701 is further configured to determine an exposure gain value based on the maximum brightness value and the second moving speed. One exposure gain value corresponds to a set of exposure parameters, and different exposure gain values correspond to different sets of exposure parameters; each set of exposure parameters includes an exposure time;
[0238] The shooting module 702 is configured to determine a set of exposure parameters corresponding to the exposure gain value as the shooting exposure parameters, and shoot an image or video according to the shooting exposure parameters.
[0239] Optionally, in some embodiments of the present application, the processing module 701 is specifically configured to:
[0240] Determine the quotient of the motion blur parameter required for shooting and the second moving speed as the first exposure time, where the motion blur parameter is used to characterize the motion blur degree of the captured image;
[0241] Adjust the above-mentioned shooting exposure time from the second exposure time to the above-mentioned first exposure time.
[0242] Optionally, in some embodiments of the present application, the above-mentioned processing module 701 is further configured to set the shooting frame rate to the first frame rate in response to a user's selection input; in combination with Figure 9 , such as Figure 10 As shown, the above-mentioned device 700 further includes: a shooting module 702;
[0243] The above-mentioned processing module 701 is further configured to determine a reference ambient brightness range based on the above-mentioned first frame rate;
[0244] The above-mentioned shooting module 702 is configured to capture an image or video at the above-mentioned first frame rate when the ambient brightness value of the environment where the above-mentioned electronic device is located is within the above-mentioned reference ambient brightness range;
[0245] Alternatively, the above-mentioned shooting module 702 is configured to shoot at a second frame rate when the ambient brightness value of the environment where the above-mentioned electronic device is located is outside the above-mentioned reference ambient brightness range, and the reference ambient brightness range corresponding to the second frame rate includes the ambient brightness value of the environment where the above-mentioned electronic device is located.
[0246] Optionally, in some embodiments of the present application, the above-mentioned processing module 701 is specifically configured to, during the video recording process of the above-mentioned electronic device, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the video recording exposure time according to the above-mentioned second moving speed.
[0247] Optionally, in some embodiments of the present application, after adjusting the brightness value of the flash of the above-mentioned electronic device based on the above-mentioned second moving speed or the adjusted above-mentioned shooting exposure time, the above-mentioned processing module 701 is further configured to perform video recording and output a video according to the adjusted above-mentioned video recording exposure time and the brightness value of the flash.
[0248] Optionally, in some embodiments of the present application, the above-mentioned processing module 701 is specifically configured to, when the above-mentioned electronic device receives a photo-taking input and the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the photo-taking exposure time based on the above-mentioned second moving speed; wherein, the above-mentioned photo-taking input is used to control the capture of an image.
[0249] Optionally, in some embodiments of the present application, after adjusting the brightness value of the flash of the above-mentioned electronic device according to the above-mentioned second moving speed or the adjusted above-mentioned exposure time, the above-mentioned processing module 701 is further configured to capture an image and output an image according to the adjusted above-mentioned photo-taking exposure time and the brightness value of the flash.
[0250] In the shooting parameter adjustment device provided in the embodiment of the present application, when the moving speed of the shooting parameter adjustment device changes from the first moving speed to the second moving speed, based on the second moving speed, the shooting exposure time is adjusted; based on the second moving speed or the adjusted shooting exposure time, the brightness value of the flash of the shooting parameter adjustment device is adjusted. In this solution, the shooting parameter adjustment device continuously adjusts the corresponding shooting exposure time according to the changed moving speed of the shooting parameter adjustment device, and further adjusts the brightness value of the flash in real time according to the adjusted exposure time or the changed moving speed to fill light for the current environment, so that when the moving speed of the shooting parameter adjustment device changes, the light change caused by the movement can be compensated by adjusting the exposure time and the flash brightness value according to the changed speed, and thus the shooting parameter adjustment device can still capture clear and bright shooting images when moving, avoiding motion blur of the shooting images.
[0251] The shooting parameter adjustment device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application does not make specific limitations.
[0252] The shooting parameter adjustment device in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application does not make specific limitations.
[0253] The shooting parameter adjustment device provided in the embodiment of the present application can implement each process implemented by the shooting parameter adjustment method embodiment and achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0254] Optionally, asFigure 11 As shown in the figure, an embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802. A program or instruction that can run on the processor 801 is stored on the memory 802. When the program or instruction is executed by the processor 801, it implements each step of the above-mentioned embodiment of the shooting parameter adjustment method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0255] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0256] Figure 12 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0257] The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.
[0258] Those skilled in the art can understand that the electronic device 100 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 110 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 12 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0259] Among them, the above-mentioned processor 110 is used to adjust the shooting exposure time based on the second moving speed when the moving speed of the electronic device changes from the first moving speed to the second moving speed; the processor 110 is further used to adjust the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
[0260] Optionally, in some embodiments of the present application, before the processor 110 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, it is further used to determine the first quotient as the first brightness value; the first quotient is the quotient of the light input amount of the lens of the electronic device and the adjusted shooting exposure time;
[0261] Alternatively, the above-mentioned processor 110 is further configured to determine the product of the second quotient and the second moving speed as the first brightness value; the second quotient is the quotient of the light input amount of the lens of the electronic device and the motion blur parameter required for shooting; the motion blur parameter is used to characterize the motion blur degree of the captured image.
[0262] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is specifically configured to, when the first brightness value is less than or equal to the maximum brightness value of the flash, adjust the brightness value of the flash from the second brightness value to the first brightness value;
[0263] After the above-mentioned processor 110 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the above-mentioned processor 110 is further configured to capture an image or video according to the adjusted shooting exposure time and the first brightness value.
[0264] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is specifically configured to, when the first brightness value is greater than the maximum brightness value of the flash, adjust the brightness value of the flash from the second brightness value to the maximum brightness value;
[0265] After the above-mentioned processor 110 adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time,
[0266] the above-mentioned processor 110 is further configured to determine an exposure gain value based on the maximum brightness value and the second moving speed. An exposure gain value corresponds to a set of exposure parameters, and different exposure gain values correspond to different sets of exposure parameters; each set of exposure parameters includes an exposure time;
[0267] the above-mentioned processor 110 is further configured to determine a set of exposure parameters corresponding to the exposure gain value as the shooting exposure parameters, and capture an image or video according to the shooting exposure parameters.
[0268] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is specifically configured to:
[0269] Determine the quotient of the motion blur parameter required for shooting and the second moving speed as the first exposure time, where the motion blur parameter is used to characterize the motion blur degree of the captured image;
[0270] Adjust the shooting exposure time from the second exposure time to the first exposure time.
[0271] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is further configured to set the shooting frame rate to the first frame rate in response to a user's selection input;
[0272] The above-mentioned processor 110 is further configured to determine a reference ambient brightness range based on the above-mentioned first frame rate;
[0273] The above-mentioned processor 110 is further configured to, when the ambient brightness value of the environment where the electronic device is located is within the above-mentioned reference ambient brightness range, capture an image or video at the above-mentioned first frame rate;
[0274] Alternatively, the above-mentioned processor 110 is further configured to, when the ambient brightness value of the environment where the electronic device is located is outside the above-mentioned reference ambient brightness range, perform shooting at a second frame rate, and the reference ambient brightness range corresponding to the second frame rate includes the ambient brightness value of the environment where the electronic device is located.
[0275] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is specifically configured to, during the video recording process of the electronic device, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the video recording exposure time according to the second moving speed.
[0276] Optionally, in some embodiments of the present application, after adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted video recording exposure time, the above-mentioned processor 110 is further configured to perform video recording and output a video according to the adjusted video recording exposure time and the brightness value of the flash.
[0277] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is specifically configured to, when the electronic device receives a photo-taking input and the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the photo-taking exposure time based on the second moving speed; wherein the photo-taking input is used to control the capture of an image.
[0278] Optionally, in some embodiments of the present application, after adjusting the brightness value of the flash of the electronic device according to the second moving speed or the adjusted exposure time, the above-mentioned processor 110 is further configured to capture an image and output an image according to the adjusted photo-taking exposure time and the brightness value of the flash.
[0279] In the electronic device provided in the embodiment of the present application, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, the shooting exposure time is adjusted based on the second moving speed; based on the second moving speed or the adjusted shooting exposure time, the brightness value of the flash of the electronic device is adjusted. In this solution, the electronic device continuously adjusts the corresponding shooting exposure time according to the changing moving speed of the electronic device, and further adjusts the brightness value of the flash in real time according to the adjusted exposure time or the changed moving speed to fill light for the current environment, so that when the moving speed of the electronic device changes, the light change caused by the movement can be compensated by adjusting the exposure time and the flash brightness value according to the changed speed, and thus the electronic device can still capture a clear and bright shooting image when moving, avoiding motion blur in the shooting image and ensuring a good shooting effect.
[0280] It should be understood that in the embodiment of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of the static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.
[0281] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 can include a volatile memory or a non-volatile memory, or the memory 109 can include both a volatile and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0282] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110 either.
[0283] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above embodiment of the shooting parameter adjustment method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0284] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0285] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above embodiment of the shooting parameter adjustment method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0286] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0287] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above embodiment of the shooting parameter adjustment method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0288] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0289] Through the description of the above embodiments, those skilled in the art can clearly understand that the above method of the embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0290] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A method for adjusting shooting parameters, characterized in that The method includes: When the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjusting the shooting exposure time based on the second moving speed; Adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
2. The method according to claim 1, characterized in that, Before adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, it further includes: Determining a first brightness value as a first quotient; the first quotient is the quotient of the light incident on the lens of the electronic device and the adjusted shooting exposure time; Alternatively, determining the product of a second quotient and the second moving speed as the first brightness value; the second quotient is the quotient of the light incident on the lens of the electronic device and the motion blur parameter required for shooting; the motion blur parameter is used to characterize the motion blur degree of the captured image.
3. The method according to claim 2, wherein Adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time includes: When the first brightness value is less than or equal to the maximum brightness value of the flash, adjusting the brightness value of the flash from a second brightness value to the first brightness value; After adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, it further includes: Shooting an image or video according to the adjusted shooting exposure time and the first brightness value.
4. The method according to claim 2, characterized in that, Adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time includes: When the first brightness value is greater than the maximum brightness value of the flash, adjusting the brightness value of the flash from a second brightness value to the maximum brightness value; After adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, it further includes: Determining an exposure gain value based on the maximum brightness value and the second moving speed, where one exposure gain value corresponds to a set of exposure parameters, and different exposure gain values correspond to different sets of exposure parameters; each set of exposure parameters includes an exposure time; Determining the set of exposure parameters corresponding to the exposure gain value as the shooting exposure parameters, and shooting an image or video according to the shooting exposure parameters.
5. The method according to claim 1, characterized in that Adjusting the shooting exposure time based on the second moving speed includes: Determining a first exposure time as the quotient of the motion blur parameter required for shooting and the second moving speed, where the motion blur parameter is used to characterize the motion blur degree of the captured image; Adjusting the shooting exposure time from a second exposure time to the first exposure time.
6. The method according to claim 1, characterized in that, The method further includes: Responding to the user's selection input, setting the shooting frame rate to a first frame rate; Determining a reference ambient brightness range based on the first frame rate; When the ambient brightness value of the environment where the electronic device is located is within the reference ambient brightness range, shooting an image or video according to the first frame rate. Alternatively, when the ambient brightness value of the environment where the electronic device is located is outside the reference ambient brightness range, shooting is performed at a second frame rate, and the reference ambient brightness range corresponding to the second frame rate includes the ambient brightness value of the environment where the electronic device is located.
7. The method according to claim 1, characterized in that When the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjusting the shooting exposure time according to the second moving speed includes: During the video recording process of the electronic device, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, the video recording exposure time is adjusted according to the second moving speed.
8. The method according to claim 7, characterized in that, After adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the method further includes: Performing video recording according to the adjusted video recording exposure time and the brightness value of the flash, and outputting a video.
9. The method according to claim 1, wherein When the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjusting the shooting exposure time based on the second moving speed includes: When the electronic device receives a photo-taking input and the moving speed of the electronic device changes from a first moving speed to a second moving speed, the photo-taking exposure time is adjusted based on the second moving speed; wherein the photo-taking input is used to control the captured image.
10. The method according to claim 9, characterized in that After adjusting the brightness value of the flash of the electronic device according to the second moving speed or the adjusted exposure time, the method further includes: Performing image capture according to the adjusted photo-taking exposure time and the brightness value of the flash, and outputting an image.
11. A shooting parameter adjustment device, characterized in that, including: a processing module, configured to adjust the shooting exposure time based on the second moving speed when the moving speed of the electronic device changes from a first moving speed to a second moving speed; The processing module is further configured to adjust the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time.
12. The device according to claim 11, characterized in that, Before the processing module adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, it is further configured to determine a first quotient as a first brightness value; the first quotient is the quotient of the light input amount of the lens of the electronic device and the adjusted shooting exposure time; Alternatively, the processing module is further configured to determine the product of a second quotient and the second moving speed as the first brightness value; the second quotient is the quotient of the light input amount of the lens of the electronic device and the motion blur parameter required for shooting; the motion blur parameter is used to characterize the motion blur degree of the captured image.
13. The device according to claim 12, characterized in that, The processing module is specifically configured to adjust the brightness value of the flash from a second brightness value to the first brightness value when the first brightness value is less than or equal to the maximum brightness value of the flash; After the processing module adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the device further includes: a shooting module, configured to capture an image or a video according to the adjusted shooting exposure time and the first brightness value.
14. The device according to claim 12, wherein, The processing module is specifically configured to, when the first brightness value is greater than the maximum brightness value of the flash, adjust the brightness value of the flash from the second brightness value to the maximum brightness value; After the processing module adjusts the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the apparatus further includes: a shooting module; The processing module is further configured to determine an exposure gain value based on the maximum brightness value and the second moving speed, where one exposure gain value corresponds to a set of exposure parameters, and different exposure gain values correspond to different sets of exposure parameters; each set of exposure parameters includes an exposure time; The shooting module is configured to determine a set of exposure parameters corresponding to the exposure gain value as the shooting exposure parameters, and capture an image or video according to the shooting exposure parameters.
15. The device according to claim 11, wherein The processing module is specifically configured to: Determine a first exposure time by dividing the motion blur parameter required for shooting by the second moving speed, where the motion blur parameter is used to characterize the motion blur degree of the captured image; Adjust the shooting exposure time from the second exposure time to the first exposure time.
16. The device according to claim 11, characterized in that, The apparatus further includes: a shooting module; The processing module is further configured to set the shooting frame rate to a first frame rate in response to a user's selection input; The processing module is further configured to determine a reference ambient brightness range based on the first frame rate; The shooting module is configured to capture an image or video at the first frame rate when the ambient brightness value of the environment where the electronic device is located is within the reference ambient brightness range; Alternatively, the shooting module is configured to perform shooting at a second frame rate when the ambient brightness value of the environment where the electronic device is located is outside the reference ambient brightness range, and the reference ambient brightness range corresponding to the second frame rate includes the ambient brightness value of the environment where the electronic device is located.
17. The device according to claim 11, characterized in that, The processing module is specifically configured to, during the video recording process of the electronic device, when the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the video recording exposure time according to the second moving speed.
18. The device according to claim 17, wherein After adjusting the brightness value of the flash of the electronic device based on the second moving speed or the adjusted shooting exposure time, the processing module is further configured to perform video recording according to the adjusted video recording exposure time and the brightness value of the flash, and output a video.
19. The device according to claim 11, characterized in that, The processing module is specifically configured to, when the electronic device receives a photographing input and the moving speed of the electronic device changes from a first moving speed to a second moving speed, adjust the photographing exposure time based on the second moving speed; wherein the photographing input is used to control the capturing of an image.
20. The device according to claim 19, characterized in that, After adjusting the brightness value of the flash of the electronic device according to the second moving speed or the adjusted exposure time, the processing module is further configured to capture an image according to the adjusted photographing exposure time and the brightness value of the flash, and output an image.
21. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores programs or instructions that can run on the processor. When the programs or instructions are executed by the processor, the steps of the shooting parameter adjustment method according to any one of claims 1 to 10 are implemented.