Video shooting method, computer readable storage medium and electronic equipment

By obtaining the light metering value in electronic devices such as smartphones and calculating the exposure time, the exposure offset process is performed to ensure the centering operation of the anti-shake lens, the problem that the optical image stabilization method cannot be correctly implemented when shooting videos at night is solved, and high-quality video shooting effects are achieved.

CN119968858APending Publication Date: 2025-05-09GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280100433.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

When shooting videos with electronic devices such as smartphones while walking at night, optical image stabilization methods may not be performed correctly, resulting in a degradation in video quality, such as light source flow or ghosting.

Method used

By obtaining the metering value in the captured image, the exposure start time and exposure end time are calculated, and the exposure offset process is performed to ensure that the centering operation of the anti-shake lens is completed before the exposure start time.

Benefits of technology

It effectively improves the image stability when shooting videos under low light conditions, avoids the problem of degradation in video quality, and ensures high-quality video shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119968858A_ABST
    Figure CN119968858A_ABST
Patent Text Reader

Abstract

The invention discloses a method for shooting a video. The method comprises the following steps: acquiring a photometric value in a captured image; calculating an exposure start time and an exposure end time based on the photometric value; and performing an exposure shift process that delays the exposure start time and the exposure end time so as to ensure a centering time of an anti-shake lens before the exposure start time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of electronic technology, and more specifically, to a method for shooting a video, a computer-readable storage medium, and an electronic device. Background Art

[0002] Camera shake is corrected by optical correction, which is physically adjusting the optical axis by moving the lens, and by electronic correction, which is correcting the image data captured by the image sensor. The lens shift method, which is one of the optical correction methods, moves the correction lens or the anti-shake lens to offset camera shake. The advantage of optical correction is that since the captured image is not corrected, the image quality does not deteriorate.

[0003] However, when users shoot videos with electronic devices such as smartphones while walking at night, optical correction may not be performed correctly. One reason is that, despite the large amount of movement of the anti-shake lens, the centering operation cannot be fully performed to return the anti-shake lens due to the long exposure time required.

[0004] Failure to adequately perform optical correction can result in degraded video quality, such as light source bleeding or ghosting. Summary of the invention

[0005] The present application discloses a method for shooting a video, a computer-readable storage medium, and an electronic device, which perform a centering operation at a high frequency.

[0006] According to the present application, a method for shooting a video is provided, the method comprising:

[0007] Get the metering value in the captured image;

[0008] Calculating an exposure start time and an exposure end time based on the light metering value; and

[0009] An exposure shift process of delaying the exposure start time and the exposure end time is performed so that a centering time of the anti-shake lens is ensured before the exposure start time.

[0010] According to the present application, a computer-readable storage medium is provided, on which a computer program is stored. The computer program is executed by a computer to implement the method of the present application.

[0011] According to the present application, an electronic device is provided, the device comprising:

[0012] an acquisition module configured to acquire a light metering value in a captured image;

[0013] A calculation module, configured to calculate an exposure start time and an exposure end time based on the light metering value; and

[0014] The delay module is configured to delay the exposure start time and the exposure end time so as to ensure the centering time of the anti-shake lens before the exposure start time. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] These and / or other aspects and advantages of the embodiments of the present application will become apparent and more easily understood from the following description in conjunction with the accompanying drawings, in which:

[0016] Figure 1 is a functional block diagram of the configuration of an electronic device according to an embodiment of the present application;

[0017] Figure 2 is a functional block diagram of a configuration of a camera unit according to an embodiment of the present application;

[0018] Figure 3 is a schematic diagram for explaining the centering operation of an anti-shake lens of an OIS (optical image stabilization) unit;

[0019] Figure 4 is a schematic diagram used to explain the exposure time in a series of frames;

[0020] Figure 5 is a functional block diagram of an application processor of an electronic device according to an embodiment of the present application;

[0021] Figure 6 is a flowchart of a method for shooting a video according to an embodiment of the present application;

[0022] Figure 7 is a schematic diagram for explaining the timing at which the centering operation starts to be activated in a comparative example without an exposure shift process; and

[0023] Figure 8 It is a schematic diagram for explaining the time when the centering operation starts to be activated according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] Embodiments of the present application will be described in detail, and examples of the embodiments will be shown in the accompanying drawings. Throughout the description, identical or similar elements and elements having identical or similar functions are represented by identical reference numerals. The embodiments described herein with reference to the accompanying drawings are illustrative and intended to explain the present application, but should not be construed as limiting the present application.

[0025] <Electronic device 100>

[0026] Reference Figure 1 An electronic device 100 according to an embodiment of the present application is described. Figure 1 is a schematic diagram of a configuration example of the electronic device 100 .

[0027] In the present embodiment, the electronic device 100 is a mobile device such as a smartphone or a tablet computer, but the electronic device 100 may also be other types of electronic devices equipped with a camera unit.

[0028] like Figure 1 As shown, the electronic device 100 includes a camera unit 10, an application processor 20 for controlling the camera unit 10, a global navigation satellite system (GNSS) unit 31, a wireless communication unit 32, a codec (CODEC) 33, a speaker 34, a microphone 35, a display unit 36, an input unit 37, an inertial measurement unit (IMU) 38, a processor 40, and a memory 50. These elements are arranged in a housing 60 of the electronic device 100. The electronic device 100 may include a plurality of camera units 10, such as a main camera and an ultra-wide-angle camera.

[0029] like Figure 2 As shown, the camera unit 10 includes an OIS unit 11 , an OIS driver 12 , a CMOS image sensor (CIS) 13 , and a gyro sensor 14 .

[0030] The OIS unit 11 is configured to perform optical image stabilization using a lens shift method. The OIS unit 11 includes an anti-shake lens, a permanent magnet associated with the anti-shake lens, a coil arranged near the magnet, and a Hall element for detecting the position of the anti-shake lens. The anti-shake lens can move within a moving area provided in the OIS unit 11. The OIS unit 11 also includes an auto focus (AF) mechanism.

[0031] By passing current through the coil, the repulsive force or attractive force generated between the coil and the magnet causes the anti-shake lens to move together with the magnet. The current is controlled to offset the shaking of the camera module 10 (housing 60). Thus, the OIS operation is performed.

[0032] The OIS driver 12 drives the OIS unit 11 in a direction to move the anti-shake lens to offset the shaking of the camera unit 10 (ie, the housing 60 ). The OIS driver 12 receives a signal from the gyro sensor 14 to sense the vibration of the housing 60 .

[0033] CIS13 is an image sensor that receives light emitted from an object and passes through an anti-shake lens, and converts the brightness of the light into an electrical signal. Each pixel of CIS13 has a photodiode and a transistor, and each photodiode and transistor amplifies the charge signal.

[0034] The gyro sensor 14 detects the shaking of the camera unit 10 (ie, the housing 60) and transmits the detection signal to the OIS driver 12. The OIS driver 12 transmits the gyro information to the application processor 20. The OIS driver 12 also transmits the position information of the anti-shake lens to the application processor 20.

[0035] CIS 13 sends a signal to OIS driver 12 to deactivate OIS operation and activate centering operation. Figure 3 As shown, the OIS driver 12 operates the OIS unit 11 to return the anti-shake lens to the center C of the moving area. It takes a certain amount of time to perform the centering operation. For example, if the anti-shake lens is located at the edge of the moving area, it takes 10 milliseconds to return the anti-shake lens to the center of the moving area.

[0036] The application processor 20 controls the camera unit 10. The application processor 20 performs an automatic exposure (AE) process to evaluate the brightness of the subject and automatically determine the exposure (AE: aperture and exposure). The application processor 20 sends the exposure start time, exposure end time, and ISO sensitivity of each frame to the CIS 13. The exposure start time indicates the time to start exposure, and the exposure end time indicates the time to end exposure. The details of the automatic exposure process of the embodiment of the present application will be described later.

[0037] like Figure 4 As shown, the frames used to acquire the image are counted at a predetermined period T p Repeat. p Determined by the frame rate of the video. Specifically, T p Equal to 1 / F r , where F r is the frame rate. When the frame rate is 30fps, T p About 33 milliseconds

[0038] CIS13 is exposed in each of frames 1, 2 and 3. Parameter t 11 ,t 21 and t 31 is the exposure start time of the first line of CIS13. Similarly, t 12 ,t 22 and t 32 is the exposure start time of the last line of CIS13, t 13 ,t 23 and t 33 is the exposure end time of the first row, t 14 ,t 24 and t 34 is the exposure end time of the last row. The exposure time of frame 1 is T e1 t 14 -t 12 , the exposure time T of frame 2 e2 t 24 -t 22 , the exposure time T of frame 3 e3 t 34 -t 32 .

[0039] T s is the rolling shutter time of CIS13. r is the readout time of CIS13. s and T r is a value determined by the CIS13 specification. Therefore, T s and T r are the same. (t 13 -t 11 ) is equal to (t 14 -t 12 ). Similarly, (t 23 –t 21 ) is equal to (t 24 –t 22 ), (t 33 –t 31 ) is equal to (t 34 –t 32 ).

[0040] T b1 、T b2 and T b3 are the blank time of frame 1, frame 2 and frame 3 respectively. Blank time T b1 It is given by the following formula (1):

[0041] T b1 =T p –(T e1 +T s ) (1)

[0042] Similarly, the blanking times Tb2 and Tb3 are given by the following formulas (2) and (3), respectively:

[0043] T b2 =T p –(T e2 +T s ) (2)

[0044] T b3 =T p –(T e3 +T s ) (3)

[0045] The centering operation is performed during the blanking time. The centering time is the time required to perform the centering operation. For example, if the blanking time is greater than 10 milliseconds, the required centering time may be ensured before the next frame exposure image.

[0046] The centering time is defined as the predetermined constant time required to return the image stabilization lens from the edge of the moving area to the center of the moving area.

[0047] Optionally, the centering time can be defined as a variable time based on the position of the anti-shake lens. When the anti-shake lens is located near the center of the moving area, the centering time is shorter than 10 milliseconds.

[0048] The application processor 20 also performs an electronic image stabilization (EIS) process that compensates for blur by digitally processing and cropping a portion of the captured image.

[0049] The GNSS module 31 measures the current position of the electronic device 100. The wireless communication module 32 performs wireless communication through the Internet. The CODEC 33 performs encoding and decoding in both directions using a predetermined encoding / decoding method. The speaker 34 outputs sound according to the sound data decoded by the CODEC 33. The microphone 35 inputs sound and outputs sound data to the CODEC 33 based on the input sound.

[0050] The display unit 36 ​​is provided on the front side of the housing 60. The display unit 36 ​​can display the video captured by the camera unit 10. The input unit 37 inputs information through the user's operation. For example, the input unit 37 inputs a user command to start or end video shooting. The input unit 37 may be a touch panel.

[0051] The processor 40 controls the GNSS module 31, the wireless communication module 32, the CODEC 33, the speaker 34, the microphone 35, the display unit 36, and the input unit 37. The processor 40 may perform an AE process and / or an EIS process.

[0052] The memory 50 stores image data captured by the camera unit 10. In addition, the memory 50 stores programs that run on processors such as the application processor 20 and the processor 40.

[0053] The above describes a schematic diagram of the configuration of the electronic device 100. It should be noted that the configuration of the electronic device 100 is not limited to the above description. For example, in addition to the camera unit 10, the electronic device 100 may also include one or more camera units. The electronic device 100 may include a ranging sensor unit for measuring the distance between the electronic device 100 and the subject. In addition to the application processor 20 and the processor 40, the electronic device 100 may also include one or more processors.

[0054] Next, the function of the application processor 20 according to one embodiment is described in detail.

[0055] like Figure 5 As shown, the application processor 20 includes an acquisition module 21 , a calculation module 22 and a delay module 23 .

[0056] The acquisition module 21 is configured to acquire a light metering value in a captured image. The light metering value represents the brightness of a subject. Figure 4In the example, the acquisition unit 21 acquires the light metering value of the captured image of frame 1 when the frame 2 is exposed.

[0057] The calculation module 22 is configured to calculate the exposure start time and the exposure end time based on the light metering value. Figure 4 In the example, when the calculation module 22 exposes the image in frame 2, it calculates the exposure start time t of the exposure in frame 3 based on the light metering value of frame 1. 31 and the exposure end time t 33 Alternatively, the calculation module 22 may calculate the exposure start time t 32 and the exposure end time t 34 .

[0058] The calculation module 22 calculates the exposure end time t 33 Subtract the exposure start time t from 31 To calculate the exposure time T e3 Alternatively, the exposure time T e3 It can be calculated by the delay module 23. The exposure time varies according to the brightness of the environment (ie, the light measurement value).

[0059] Alternatively, the calculation module 22 can increase the ISO sensitivity to shorten the exposure time. This can make it easier to ensure the centering time.

[0060] The delay module 23 is configured to perform an exposure shift process. That is, when the exposure time determined by the exposure start time and the exposure end time is greater than the threshold time, the delay module 23 delays the exposure start time and the exposure end time. By delaying the exposure start time and the exposure end time, the centering time can be ensured before the exposure start time.

[0061] exist Figure 4 When the exposure time T e3 When the time is greater than the threshold, the delay module 23 delays the exposure start time t 31 (t 32 ) and exposure end time t 33 (t 34 ). The delay process is performed when the frame 2 exposure image is taken.

[0062] The threshold time is based on the frame rate F r 、CIS13 readout time T r and the centering time T of the OIS unit 11 c Specifically, the threshold time T h It is given by the following equation (4).

[0063] T h =1 / F r –(T r +T c ) (4)

[0064] If F r , T r and T c If they are 30fps, 5ms, and 10ms respectively, then T h It is about 18 milliseconds. When the exposure time is greater than the threshold time, the blank time is less than the centering time. Therefore, it is necessary to delay the exposure start time and the exposure end time to ensure the centering time.

[0065] Optionally, the delay module 23 may perform the exposure shift process every predetermined number of frames. For example, the predetermined number of frames is 3.

[0066] Modules 21, 22 and 23 may be implemented by software, hardware, firmware or a combination thereof. The modules may be implemented by using circuits, one or more application specific integrated circuits (ASICs), one or more general purpose integrated circuits, one or more microprocessors, one or more programmable logic devices or a combination of the above circuits or devices, or other appropriate circuits or devices to perform the steps of the method according to the present application.

[0067] <How to shoot a video>

[0068] Reference Figure 6 The flowchart shown describes a method for shooting a video using a CMOS image sensor according to an embodiment of the present application.

[0069] In step S1 , the acquisition module 21 acquires the light metering value in the captured image.

[0070] In step S2, the calculation module 22 calculates the exposure start time and exposure end time of the next frame based on the light metering value acquired in step S1. The calculation module 22 calculates the exposure time by subtracting the exposure start time from the exposure end time.

[0071] In step S2 , the calculation module 22 may shorten the exposure time by increasing the ISO sensitivity.

[0072] In step S3, the delay module 23 determines whether the exposure time is greater than a threshold time. The threshold time can be given by equation (4). If the exposure time is greater than the threshold time (S3: Yes), the process proceeds to step S4. On the contrary, if the exposure time is equal to or less than the threshold time (S3: No), the process proceeds to step S7.

[0073] In step S4, the delay module 23 determines whether the current frame number is a multiple of 3. If the current frame number is a multiple of 3 (S4: Yes), the process proceeds to step S5. On the contrary, if the current frame number is not a multiple of 3 (S4: No), the process proceeds to step S7.

[0074] A multiple of 3 is one example. The delay module 23 may determine whether the current frame number is a multiple other than 3.

[0075] In step S5, the delay module 23 delays the exposure start time and the exposure end time calculated in step S2 to ensure the center time before the exposure start time. Figure 8 As shown, when the current frame number is 3, the delay module 23 delays the exposure start time and the exposure end time by 6 milliseconds, because Figure 7 As shown, the blank time in frame 3 is 4 milliseconds. Therefore, 10 milliseconds are ensured as the blank time.

[0076] As another example, when the current frame number is 6, the delay module 23 delays the exposure start time and the exposure end time by 2 milliseconds as shown, because the blank time in frame 6 is 8 milliseconds.

[0077] In step S6, the application processor 20 sends the delayed exposure start time and the delayed exposure end time to the CIS 13. The CIS 13 sends a signal to activate the centering operation (ie, OIS_EN=low) to the OIS driver 12 based on the delayed exposure start time.

[0078] In step S7, the application processor 20 sends the exposure start time and the exposure end time to the CIS 13. When the exposure time is equal to or less than the threshold time (ie, S3: No), the CIS 13 sends a signal to activate the centering operation to the OIS driver 12 (ie, OIS_EN=Low).

[0079] By comparison Figure 7 and Figure 8 It can be seen that according to the present application, the centering operation can be ensured regularly and periodically, so that the centering operation can be performed at a high frequency. Therefore, even if a video is taken with a smartphone while walking at night, a high-quality video can be taken.

[0080] According to one aspect of the present application, the centering operation can be performed without shortening the exposure time, that is, without reducing the signal-to-noise ratio.

[0081] Optionally, in step S5, when the delay between the exposure start time and the exposure end time is greater than the upper limit, the delay module 23 may not delay the exposure start time and the exposure end time. This can avoid shooting a video that is not smooth and attractive.

[0082] The upper limit value may be determined based on the frame rate of the video. For example, the higher the frame rate, the higher the upper limit.

[0083] Optionally, in step S5, when the exposure time is greater than the second threshold time, the delay module 23 may not delay the exposure start time and the exposure end time, and the second threshold time is greater than the threshold time. Specifically, the second threshold time Th2 It is given by equation (5).

[0084] T h2 =1 / F r –1 / 2*(T r +T c ) (5)

[0085] Where T h2 is the second threshold time, F r is the frame rate, T r is the readout time, T c It is the center time.

[0086] If F r 、T r and T c If they are 30fps, 5ms, and 10ms respectively, then T h2 If the exposure time is longer than the second threshold time, sufficient blanking time cannot be ensured even if the exposure start time is delayed.

[0087] Optionally, in step S5, when the deviation between the anti-shake lens and the center of the moving area is less than a predetermined value, the delay module 23 may not delay the exposure start time and the exposure end time. For example, the predetermined value is one third of the distance between the center and the edge of the moving area. The position of the anti-shake lens can be detected by the Hall element in the OIS unit 11.

[0088] Optionally, in step S5 , when the value indicating the vibration of the housing 60 is less than a predetermined value, the delay module 23 may not delay the exposure start time and the exposure end time. The vibration of the housing 60 may be detected by the gyro sensor 14 .

[0089] This is because centering is less important when the displacement of the image stabilization lens and the vibration of the housing are smaller.

[0090] In the description of the embodiments of the present application, it should be understood that terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise" and "counterclockwise" should be interpreted as referring to the directions or positions described or shown in the figures discussed. These terms are only used to simplify the description of the present application and do not indicate or imply that the device or element referred to must have a specific direction, or be constructed or operated in a specific direction. Therefore, these terms cannot be understood as limiting the present application.

[0091] In addition, terms such as "first" and "second" are intended to be used for descriptive purposes and are not intended to indicate or imply relative importance or significance, or to imply the number of technical features indicated. Therefore, features defined with "first" and "second" may include one or more of such features. In the description of this application, "plurality" means two or more, unless otherwise specified.

[0092] In the description of the embodiments of the present application, unless otherwise specified or limited, terms such as "installation", "connection", and "coupling" are used in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can also be a mechanical or electrical connection; it can also be a direct connection or an indirect connection through an intermediate structure; it can also be an internal communication between two elements, which can be understood by those skilled in the art according to the specific circumstances.

[0093] In the embodiments of the present application, unless otherwise specified or limited, the structure of the first feature being "on" or "below" the second feature may include an embodiment in which the first feature is in direct contact with the second feature, and may also include an embodiment in which the first feature is not in direct contact with the second feature but is in contact with the second feature through an additional feature formed therebetween. In addition, the first feature being "on", "above" or "top" of the second feature may include an embodiment in which the first feature is exactly or obliquely "on", "above" or "top" of the second feature, or may simply mean that the height of the first feature is higher than the height of the second feature; and the first feature being "below", "below" or "bottom" of the second feature may include an embodiment in which the first feature is exactly or obliquely "below", "below" or "bottom" of the second feature, or may simply mean that the height of the first feature is lower than the height of the second feature.

[0094] Various embodiments and examples are provided in the above description to realize different structures of the present application. In order to simplify the present application, some elements and settings are described above. However, these elements and settings are only used as examples and do not limit the present application. In addition, reference numbers and / or reference letters may be repeated in different examples of the present application. This repetition is only for simplification and clarity and does not involve the relationship between different embodiments and / or settings. In addition, the present application provides examples of different processes and materials, but it should be understood by those skilled in the art that other processes and / or materials may also be applied.

[0095] The references to "one embodiment", "some embodiments", "exemplary embodiments", "an example" or "some examples" in this specification mean that a particular feature, structure, material or characteristic in the description associated with the embodiment or example is included in at least one embodiment or example. Therefore, the appearance of "one embodiment", "some embodiments", "exemplary embodiments", "an example" or "some examples" in this specification does not necessarily refer to the same embodiment or example. In addition, the particular features, structures, materials or characteristics described in this application may be combined in any suitable manner in one or more embodiments or examples.

[0096] Any process or method described in a flowchart or otherwise described may be understood as a module, segment or portion of executable instruction code including specific logical functions or steps in the process. The scope of the preferred embodiments of the present application includes other embodiments, in which those skilled in the art will appreciate that these functions may be implemented in a sequence different from that shown or discussed, including substantially the same sequence or in reverse sequence.

[0097] The logic and / or steps described in other ways herein or shown in the flowchart, for example, a specific instruction sequence list for implementing the logical function, can be implemented by any computer-readable medium for use by an instruction execution system, device or equipment (e.g., a computer-based system, a system containing a processor, or other system capable of obtaining instructions from and executing instructions to an instruction execution system, device and equipment), or in combination with an instruction execution system, device and equipment. With respect to this specification, a "computer-readable medium" can be any device suitable for containing, storing, communicating, propagating or transmitting a program for use by or in combination with an instruction execution system, device or equipment. More specific examples of computer-readable media include, but are not limited to: an electronic connection with one or more wires (electronic device), a portable computer case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium can even be a paper or other suitable medium on which the program can be printed, for example, the paper or other suitable medium can be optically scanned, and then the program can be electronically obtained by editing, decrypting or other appropriate methods when necessary, and then the program can be stored in a computer memory. .

[0098] It should be understood that each part of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by an appropriate instruction execution system. For example, if implemented by hardware, in another embodiment, these steps or methods can be implemented by one or a combination of the following technologies, which are known in the art: discrete logic circuits with logic gate circuits for implementing data signal logic functions, application specific integrated circuits (ASICs) with appropriate combinational logic circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0099] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned exemplary method of the present application can be completed by controlling the relevant hardware through a program. The program can be stored in a computer-readable storage medium. When running on a computer, the program includes one or a combination of steps in the method embodiment of the present application.

[0100] In addition, each functional unit in the embodiment of the present application can be integrated into a processing module, or each unit can exist as a separate physical unit, or two or more units can be integrated into a processing module. The integrated module can be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, the integrated module can be stored in a computer-readable storage medium.

[0101] The storage medium may be a read-only memory, a disk, a CD, etc. The storage medium may be temporary or non-temporary.

[0102] Although the embodiments of the present application have been shown and described, those skilled in the art should understand that these embodiments are for illustration only and are not to be construed as limitations on the present application. The embodiments may be changed, modified, substituted and varied without departing from the scope of the present application.

Claims

1. A method for shooting a video, comprising: Get the metering value in the captured image; Calculate the exposure start time and exposure end time based on the light metering value; as well as An exposure shift process of delaying the exposure start time and the exposure end time is performed so that a centering time of the anti-shake lens is ensured before the exposure start time.

2. The method according to claim 1, characterized in that When the exposure time determined by the exposure start time and the exposure end time is greater than a threshold time, the exposure shift process is performed.

3. The method according to claim 2, characterized in that The threshold time is a time determined based on a frame rate of a video, a readout time of a CMOS image sensor, and the centering time.

4. The method according to claim 3, characterized in that The threshold time is given by formula (1): T h =1 / F r –(T r +T c ) (1) Among them, T h is the threshold time, F r is the frame rate, T r is the read time and T c is the centering time.

5. The method according to any one of claims 1 to 4, characterized in that The exposure shift process is performed every a predetermined number of frames.

6. The method according to claim 5, characterized in that The predetermined number of frames is three.

7. The method according to claim 5, characterized in that When calculating the exposure start time and the exposure end time, the ISO sensitivity is increased to shorten the exposure time.

8. The method according to any one of claims 1 to 7, characterized in that The centering time is the time required for the anti-shake lens to return from the edge of the moving area to the center of the moving area.

9. The method according to any one of claims 1 to 7, characterized in that The centering time is a time determined based on the position of the anti-shake lens.

10. The method according to any one of claims 1 to 9, characterized in that When the delay amount between the exposure start time and the exposure end time is greater than an upper limit value, the exposure shift process is not performed.

11. The method according to claim 10, characterized in that The upper limit value is determined based on a frame rate of the video.

12. The method according to any one of claims 1 to 11, characterized in that When the exposure time is greater than a second threshold time, the exposure shift process is not performed, and the second threshold time is greater than the threshold time.

13. The method according to claim 12, characterized in that The second threshold time is given by formula (2): T h2 =1 / F r –1 / 2*(T r +T c ) (2) Among them, T h2 is the second threshold time, Fr is the frame rate, T r is the read time and T c The center time.

14. The method according to any one of claims 1 to 13, characterized in that When the deviation between the anti-shake lens and the center of the moving area is less than a predetermined value, the exposure shift process is not performed.

15. The method according to any one of claims 1 to 14, characterized in that When the value indicating vibration of the housing in which the OIS unit is located is smaller than a predetermined value, the exposure shift process is not performed.

16. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a computer to implement the method according to any one of claims 1 to 15.

17. An electronic device comprising: an acquisition module configured to acquire a light metering value in a captured image; A calculation module, configured to calculate an exposure start time and an exposure end time based on the light metering value; as well as The delay module is configured to delay the exposure start time and the exposure end time so as to ensure the centering time of the anti-shake lens before the exposure start time.