CN115278077B - Optical anti-shake method, apparatus, electronic device, and readable storage medium - Google Patents

Optical anti-shake method, apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
CN115278077B
CN115278077B CN202210891606.3A CN202210891606A CN115278077B CN 115278077 B CN115278077 B CN 115278077B CN 202210891606 A CN202210891606 A CN 202210891606A CN 115278077 B CN115278077 B CN 115278077B
Authority
CN
China
Prior art keywords
optical anti
shake
module
light
shake module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210891606.3A
Other languages
Chinese (zh)
Other versions
CN115278077A (en
Inventor
陆威豪
文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210891606.3A priority Critical patent/CN115278077B/en
Publication of CN115278077A publication Critical patent/CN115278077A/en
Application granted granted Critical
Publication of CN115278077B publication Critical patent/CN115278077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Adjustment Of Camera Lenses (AREA)

Abstract

The application discloses an optical anti-shake method, an optical anti-shake device, electronic equipment and a readable storage medium, and belongs to the field of electronic products. The method comprises the following steps: receiving shooting input by a user; controlling the first optical anti-shake module and the second optical anti-shake module to switch to execute optical anti-shake operation in response to the shooting input; and displaying a preview screen shot based on the anti-shake operation.

Description

Optical anti-shake method, apparatus, electronic device, and readable storage medium
Technical Field
The application belongs to the technical field of electronic products, and particularly relates to an optical anti-shake method, an optical anti-shake device, electronic equipment and a readable storage medium.
Background
With the development of electronic products, electronic devices generally have a photographing function. Currently, an optical anti-shake module, such as an optical image stabilizer (Optical Image Stabilizer, OIS) module, is generally disposed in an electronic device, and the optical anti-shake module may generally perform an anti-shake operation and a centering operation during photographing. When the frame rate of shooting is large, the time of the centering restoration operation becomes very short, which may cause the centering operation to fail to achieve the full centering, and thus the anti-shake travel of the next frame image will be small. Therefore, the larger frame rate of shooting in the prior art can lead to poor anti-shake effect.
Disclosure of Invention
An object of the embodiment of the application is to provide an optical anti-shake method, an optical anti-shake device, an electronic device and a readable storage medium, which can solve the problem of poor anti-shake effect caused by larger shooting frame rate.
In a first aspect, an embodiment of the present application provides an optical anti-shake method, which is applied to an electronic device, where the electronic device includes a first optical anti-shake module and a second optical anti-shake module, and the method includes:
receiving shooting input of a user;
Controlling the first optical anti-shake module and the second optical anti-shake module to switch to execute optical anti-shake operation in response to the shooting input;
And displaying a preview screen shot based on the anti-shake operation.
In a second aspect, an embodiment of the present application provides an optical anti-shake apparatus, which is applied to an electronic device, where the electronic device includes a first optical anti-shake module and a second optical anti-shake module, and the optical anti-shake apparatus includes:
The receiving module is used for receiving shooting input of a user;
the control module is used for responding to the shooting input and controlling the first optical anti-shake module and the second optical anti-shake module to switch and execute optical anti-shake operation;
And the display module is used for displaying a preview picture shot based on the anti-shake operation.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
According to the embodiment of the application, the optical anti-shake operation is performed by controlling the switching of the first optical anti-shake module and the second optical anti-shake module, so that the time of the return operation can be prolonged. Therefore, the embodiment of the application improves the anti-shake effect and improves the shooting quality.
Drawings
Fig. 1 is a view of a photographing time distribution state of an OIS module;
FIG. 2 is a flow chart of an optical anti-shake method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a hardware implementation of an electronic device to which the optical anti-shake method according to an embodiment of the present application is applied;
FIG. 4 is a schematic diagram illustrating an operation state of the optical anti-shake method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating another working state of the optical anti-shake method according to the embodiment of the present application;
FIG. 6 is a schematic diagram of an optical anti-shake device according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The optical anti-shake method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
In the related art, a camera generally utilizes active OIS to realize optical anti-shake, where the camera generally includes an OIS module, the OIS module may include an OIS component and a lens, the lens is located in the OIS component, and the OIS component may control movement of the lens to realize optical anti-shake. Active OIS relies on 1 OIS component to control the lens to be pulled back to the central position during the idle time of exposure. As shown in fig. 1, the total time (total) for capturing one frame of image at the camera is T, for example, 30 frames per second (fps), and t=1/30≡33.3ms.
Optionally, one T includes: exposure time, readout time of rolling shutter (readout time), and idle time (vblank time). The idle time is understood as the time that the OIS module can control the lens to return to the middle, in other words, the time that the OIS module performs the return to the middle operation.
Based on fig. 1, it can be seen that, if the duration of T is equal to the sum of the exposure time, readout time and vblank time, and if the exposure time is readout time and is constant, when T is very short, the idle time is very short, the time for the OIS module to perform the centering operation is very short, the lens cannot be controlled to be fully centered, and the next frame (such as the n+1st frame) is about to start exposure, so that the available anti-shake stroke of the OIS module is very small, and the anti-shake effect is poor. In order to solve this problem, an optical anti-shake method of the present application is proposed.
Referring to fig. 2, an embodiment of the present application provides an optical anti-shake method, which is applied to an electronic device, where the electronic device includes a first optical anti-shake module and a second optical anti-shake module, as shown in fig. 2, and the optical anti-shake method includes:
step 201, the electronic device receives shooting input of a user;
in the embodiment of the application, the electronic equipment can provide an interactive interface for a user to carry out shooting input, and is used for sending a control command to the electronic equipment through other electronic equipment so as to realize shooting input, and in addition, shooting input can be realized through voice or gesture modes and the like. The specific input form is not further limited herein.
In step 202, the electronic device controls the first optical anti-shake module and the second optical anti-shake module to switch to execute the optical anti-shake operation in response to the photographing input.
Optionally, the first optical anti-shake module and the second optical anti-shake module may be OIS modules with the same model and parameters, or may be different, which is not limited herein.
In the embodiment of the present application, controlling the first optical anti-shake module and the second optical anti-shake module to switch and execute the optical anti-shake operation may be understood as controlling the first optical anti-shake module and the second optical anti-shake module to execute the optical anti-shake operation on the light passing through the light inlet channel at different times. Optionally, during the shooting process, the first optical anti-shake module and the second optical anti-shake module may be periodically switched to perform an optical anti-shake operation on the light passing through the light inlet channel. For example, the optical anti-shake operation is performed on the light passing through the light-incoming channel by the first optical anti-shake module in the odd-numbered periods, and the optical anti-shake operation is performed on the light passing through the light-incoming channel by the second optical anti-shake module in the even-numbered periods.
As shown in fig. 3, the light inlet channel 301 is located in front of the first optical anti-shake module 302 and the second optical anti-shake module 303, and external light can enter the first lens 3021 of the first optical anti-shake module 302 and/or the second lens 3031 of the second optical anti-shake module 303 through the light inlet channel 301 and reach the photosensitive chip 304 through the first lens 3021 of the first optical anti-shake module 302 and/or the second lens 3031 of the second optical anti-shake module 303.
It should be noted that, the positional relationship between the first optical anti-shake module 302 and the second optical anti-shake module 303 may be set according to actual needs. For example, in the first embodiment, the first optical anti-shake module 302 and the second optical anti-shake module 303 may be disposed in parallel, and a switching device 307 for controlling optical path switching may be disposed between the light-in path 301 and the first optical anti-shake module 302 and the second optical anti-shake module 303, and by this switching device 307, the light-in path 301 may be controlled to reach the photosensitive chip 304 only through the first lens 3021 of the first optical anti-shake module 302 or the second lens 3031 of the second optical anti-shake module 303. As shown in fig. 3, the first optical anti-shake module 302 and the second optical anti-shake module 303 may be disposed at different positions perpendicular to the plane of the light-incoming channel 301. It should be understood that, when the first optical anti-shake module and the second optical anti-shake module adopt the position structures corresponding to the first embodiment, in order to make the light emitted by the first optical anti-shake module and the second optical anti-shake module better incident on the photosensitive chip, a first light guide may be disposed between the first optical anti-shake module and the photosensitive chip, and a second light guide may be disposed between the second optical anti-shake module and the photosensitive chip. In the following examples, the first optical anti-shake module and the second optical anti-shake module are described using the position structures corresponding to the first embodiment.
In the second embodiment, the first optical anti-shake module 302 and the second optical anti-shake module 303 may be stacked, and at this time, the light in the light-incoming channel 301 can sequentially pass through the first lens 3021 of the first optical anti-shake module 302 and the second lens 3031 of the second optical anti-shake module 303 to reach the photosensitive chip 304. It should be understood that when the position structure corresponding to the second embodiment is adopted, a compensation component may be further disposed between the optical anti-shake module and the photosensitive chip, where the compensation component may adopt a structure similar to the OIS module, and is configured to eliminate the influence of one optical anti-shake module on light when the other optical anti-shake module performs the optical anti-shake operation.
Alternatively, in some embodiments, when shooting is started, the first optical anti-shake module may perform the optical anti-shake operation first, and after a period of time, the second optical anti-shake module performs the optical anti-shake operation, and then performs the reciprocating switching according to a certain period. In the shooting process, the first optical anti-shake module can execute the back-in operation in the process of executing the optical anti-shake operation by the second optical anti-shake module besides executing the back-in operation in the idle time; similarly, the second optical anti-shake module may perform the centering operation during the optical anti-shake operation of the first optical anti-shake module in addition to performing the centering operation during the idle time. Therefore, the anti-shake effect can be improved and the shooting quality can be improved due to the fact that the time for returning is prolonged.
In step 203, the electronic device displays a preview screen shot based on the anti-shake operation.
Optionally, the electronic device may provide a shooting preview interface, through which a shot preview image is displayed in real time during shooting, so as to show an effect of a shot video, and facilitate user viewing and subsequent shooting processing.
According to the embodiment of the application, the optical anti-shake operation is performed by controlling the switching of the first optical anti-shake module and the second optical anti-shake module, so that the time of the return operation can be prolonged. Therefore, the embodiment of the application improves the anti-shake effect and improves the shooting quality.
Optionally, in some embodiments, the controlling the first optical anti-shake module and the second optical anti-shake module to switch performs the optical anti-shake operation includes:
Controlling the first optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when an N frame image is shot;
controlling the second optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when shooting an n+1st frame image;
and the light in the light inlet channel can be incident to the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module and is incident to the photosensitive chip through the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module.
In the embodiment of the application, the second optical anti-shake module can execute the centering operation when the N-th frame image is shot, and the first optical anti-shake module can execute the centering operation when the N+1-th frame image is shot. Therefore, the optical anti-shake module is switched when each frame of image is shot, so that the anti-shake effect of each frame can be ensured, and the overall shooting effect is further improved.
It should be noted that, in some embodiments, when any frame of image is captured, the light passing through the light inlet channel may simultaneously pass through the first lens of the first optical anti-shake module and the second lens of the second optical anti-shake module to be incident on the photosensitive chip.
In some embodiments, when the nth frame of image is captured, the light passing through the light inlet channel may be incident on the photosensitive chip only through the first lens of the first optical anti-shake module; when shooting an n+1th frame of image, the light passing through the light inlet channel can only enter the photosensitive chip through the second lens of the second optical anti-shake module. For example, before controlling the first optical anti-shake module to perform an optical anti-shake operation on the light passing through the light inlet channel when the nth frame image is captured, the method further includes:
Light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to a first lens of the first optical anti-shake module and is incident to a light sensing chip after passing through the first lens of the first optical anti-shake module;
After controlling the first optical anti-shake module to perform an optical anti-shake operation on the light passing through the light inlet channel when the nth frame image is captured, the method further includes:
And switching optical paths of the light rays passing through the light inlet channel, so that the light rays passing through the light inlet channel are incident to the second lens of the second optical anti-shake module and are incident to the light sensing chip after passing through the second lens of the second optical anti-shake module.
In the embodiment of the present application, as shown in fig. 3, the first optical anti-shake module 302 is disposed on the first optical path 305, and the second optical anti-shake module 303 is disposed on the second optical path 306. In some embodiments, the first optical anti-shake module 302 and the second optical anti-shake module 303 may be controlled to move to achieve optical path switching. In some embodiments, a switching device 307 for controlling the light path switching may be further disposed between the light inlet channel 301 and the first optical anti-shake module 302 and the second optical anti-shake module 303, and the switching device 307 may change the direction of the light, so that the light passing through the light inlet channel 301 is incident to the first lens 3021 of the first optical anti-shake module 302 or the second lens 3031 of the second optical anti-shake module 303.
Because the light path is switched, the light passing through the light inlet channel is incident to the first lens of the first optical anti-shake module or the second lens of the second optical anti-shake module, namely, the light passing through the light inlet channel is incident to the photosensitive chip through only one optical anti-shake module, so that the processing difficulty of the light can be simplified, the structure of a product is simplified, and the industrial production is facilitated.
In the embodiment of the present application, the time for performing the optical path switching may be set according to actual needs. For example, in some embodiments, the shooting time of each frame of image includes an exposure time, a readout time of a shutter, and an idle time, and the optical path switching of the light passing through the light-entering channel includes:
And carrying out optical path switching on the light passing through the light inlet channel at a target moment, wherein the target moment is in the time range of the idle time.
In the embodiment of the present application, the target time may be a start time of the idle time, so that the idle time of the nth frame, the exposure time of the n+1th frame, and the readout time of the shutter of the n+1th frame may all control the first optical anti-shake module to perform the back-to-center operation; the first optical anti-shake module may be controlled to perform the back-in operation during the idle time of the n+1st frame, the exposure time of the n+2nd frame, and the readout time of the shutter of the n+2nd frame. At this time, the time for performing the back-in operation of the optical anti-shake module may be the total time of one frame, so that the embodiment of the application may extend the time for performing the back-in operation of the optical anti-shake module to the maximum extent, thereby further improving the anti-shake effect.
It should be noted that, in the embodiment of the present application, the operation of performing the centering operation of the optical anti-shake module may be specifically understood as controlling the corresponding lens centering operation of the optical anti-shake module. The optical anti-shake module performs an optical anti-shake operation, which can be understood as that the optical anti-shake module controls the corresponding lens to move up/down from the middle point to suppress or compensate motion blur, so that the image displayed on the sensing chip always maintains a stable state.
For example, as shown in fig. 4, at the start of operation, the light in the light-incoming channel 301 reaches the photosensitive chip through the first optical path 305 under the control of the switching device 307. At the exposure time, the first optical anti-shake module 302 controls the first lens 3021 of the first optical anti-shake module 302 to move upward/downward (i.e., the first optical anti-shake module 302 performs an optical anti-shake operation) to suppress and compensate for motion blur. After the exposure time and readout time are finished, when vblank time is reached, the first optical anti-shake module 302 controls the first lens 3021 of the first optical anti-shake module 302 to move from the upper/lower direction to the middle point (i.e., the first optical anti-shake module 302 performs a centering operation). In the case of vblank time having a short period of time, since the second lens in the first optical anti-shake module 302 is not completely retracted, the exposure of the next frame (e.g., the n+1st frame) is started, and then the optical path switching can be controlled. For example, as shown in fig. 5, the light in the light inlet channel 301 passes through the second light path 306 and reaches the photosensitive chip under the control of the switching device 307, at this time, the first optical anti-shake module 302 continues to control the first lens in the first optical anti-shake module 302 to move from the upper/lower direction to the middle point, and at the exposure time of the next frame, the second optical anti-shake module 303 controls the second lens 3031 in the second optical anti-shake module 303 to move to implement the anti-shake operation.
It should be understood that the bold dashed lines in fig. 4 and 5 indicate that the current optical path through which light can reach the light sensing chip is in a pass-through state.
Optionally, in some embodiments, before the controlling the first optical anti-shake module and the second optical anti-shake module to switch to perform the optical anti-shake operation, the method further includes:
Acquiring shooting parameters, wherein the shooting parameters comprise exposure time, readout time of a shutter and shooting frame rate;
Determining a target duration based on the exposure time, the readout time of the shutter and the shooting frame rate, wherein the target duration is used for representing the duration of executing the back-to-center operation of the first optical anti-shake module or the second optical anti-shake module;
determining an anti-shake working mode according to the target duration;
wherein the anti-shake operation mode satisfies at least one of:
When the target time length is greater than a preset threshold value, the anti-shake working mode is a first mode, in the first mode, optical anti-shake module switching is not performed, and any one of the first optical anti-shake module and the second optical anti-shake module executes optical anti-shake operation;
And when the target duration is smaller than or equal to the preset threshold value, the anti-shake working mode is a second mode, and in the second mode, the first optical anti-shake module and the second optical anti-shake module are switched to execute optical anti-shake operation.
In the embodiment of the application, different shooting parameters can be set based on different shooting scenes, the shooting parameters can be set actively by a user, and the shooting parameters can also be set automatically based on the shooting scenes, and the method is not limited further.
Alternatively, the above target period may be understood as an idle period, which is equal to the total time to take a frame of image minus the exposure time and the readout time of the shutter. The magnitude of the preset threshold may be set according to actual needs, for example, in some embodiments, the value range of the preset threshold may be 5ms to 8ms.
Because in the embodiment of the application, the target duration is determined first, and then the anti-shake working mode is determined based on the target duration, the first optical anti-shake module or the second optical anti-shake module can be used for executing the optical anti-shake operation under the condition that the target duration is longer, so that the loss of electric quantity can be reduced. Under the condition that the target duration is short, the first optical anti-shake module and the second optical anti-shake module are used for switching and executing the optical anti-shake operation, so that the overall shooting quality is improved.
It should be noted that, in the optical anti-shake method provided by the embodiment of the present application, the execution body may be an optical anti-shake device, or a control module for executing the optical anti-shake method in the optical anti-shake device. In the embodiment of the application, an optical anti-shake method performed by an optical anti-shake device is taken as an example, and the optical anti-shake device provided by the embodiment of the application is described.
Referring to fig. 6, an embodiment of the present application further provides an optical anti-shake apparatus 600, which is applied to an electronic device, where the electronic device includes a first optical anti-shake module and a second optical anti-shake module, and the optical anti-shake apparatus 600 includes:
A receiving module 601, configured to receive a shooting input of a user;
A control module 602, configured to control the first optical anti-shake module and the second optical anti-shake module to switch to perform an optical anti-shake operation in response to the photographing input;
and a display module 603 for displaying a preview screen photographed based on the anti-shake operation.
Optionally, the control module 602 is specifically configured to perform the following operations:
Controlling the first optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when an N frame image is shot;
controlling the second optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when shooting an n+1st frame image;
and the light in the light inlet channel can be incident to the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module and is incident to the photosensitive chip through the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module.
Optionally, the control module 602 is further configured to perform the following operations:
Before the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel when the N frame image is shot, the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to a first lens of the first optical anti-shake module and is incident to a light sensing chip after passing through the first lens of the first optical anti-shake module;
When the N-th frame of image is shot, the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel, and then the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to the second lens of the second optical anti-shake module and is incident to the light-sensitive chip after passing through the second lens of the second optical anti-shake module.
Optionally, the shooting time of each frame of image includes an exposure time, a readout time of a shutter, and an idle time, and the control module 602 is specifically configured to perform optical path switching on the light passing through the light-entering channel at a target time, where the target time is in a time range of the idle time.
Optionally, the optical anti-shake apparatus further comprises:
the acquisition module is used for acquiring shooting parameters, wherein the shooting parameters comprise exposure time, readout time of a shutter and shooting frame rate;
a first determining module, configured to determine a target duration based on the exposure time, a readout time of a shutter, and a frame rate of shooting, where the target duration is used to represent a duration of performing a back-to-back operation by the first optical anti-shake module or the second optical anti-shake module;
The second determining module is used for determining an anti-shake working mode according to the target duration;
wherein the anti-shake operation mode satisfies at least one of:
When the target time length is greater than a preset threshold value, the anti-shake working mode is a first mode, in the first mode, optical anti-shake module switching is not performed, and any one of the first optical anti-shake module and the second optical anti-shake module executes optical anti-shake operation;
And when the target duration is smaller than or equal to the preset threshold value, the anti-shake working mode is a second mode, and in the second mode, the first optical anti-shake module and the second optical anti-shake module are switched to execute optical anti-shake operation.
The optical anti-shake device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The optical anti-shake device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The optical anti-shake device provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 2 to 5, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction implements each process of the above-mentioned optical anti-shake method embodiment when executed by the processor 701, and the process can achieve the same technical effects, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
Those skilled in the art will appreciate that the electronic device 800 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 810 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the input unit 804 is configured to receive a shooting input of a user;
A processor 810 for controlling the first optical anti-shake module and the second optical anti-shake module to switch to perform an optical anti-shake operation in response to the photographing input;
and a display unit 806 for displaying a preview screen photographed based on the anti-shake operation.
According to the embodiment of the application, the optical anti-shake operation is performed by controlling the switching of the first optical anti-shake module and the second optical anti-shake module, so that the time of the return operation can be prolonged. Therefore, the embodiment of the application improves the anti-shake effect and improves the shooting quality.
Optionally, the processor 810 is specifically configured to perform the following operations:
Controlling the first optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when an N frame image is shot;
controlling the second optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when shooting an n+1st frame image;
and the light in the light inlet channel can be incident to the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module and is incident to the photosensitive chip through the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module.
Optionally, the processor 810 is further configured to:
Before the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel when the N frame image is shot, the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to a first lens of the first optical anti-shake module and is incident to a light sensing chip after passing through the first lens of the first optical anti-shake module;
When the N-th frame of image is shot, the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel, and then the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to the second lens of the second optical anti-shake module and is incident to the light-sensitive chip after passing through the second lens of the second optical anti-shake module.
Optionally, the shooting time of each frame of image includes an exposure time, a readout time of a shutter, and an idle time, and the processor 810 is specifically configured to perform optical path switching on the light passing through the light-entering channel at a target time, where the target time is in a time range of the idle time.
Optionally, the processor 810 is further configured to:
Acquiring shooting parameters, wherein the shooting parameters comprise exposure time, readout time of a shutter and shooting frame rate;
Determining a target duration based on the exposure time, the readout time of the shutter and the shooting frame rate, wherein the target duration is used for representing the duration of executing the back-to-center operation of the first optical anti-shake module or the second optical anti-shake module;
determining an anti-shake working mode according to the target duration;
wherein the anti-shake operation mode satisfies at least one of:
When the target time length is greater than a preset threshold value, the anti-shake working mode is a first mode, in the first mode, optical anti-shake module switching is not performed, and any one of the first optical anti-shake module and the second optical anti-shake module executes optical anti-shake operation;
And when the target duration is smaller than or equal to the preset threshold value, the anti-shake working mode is a second mode, and in the second mode, the first optical anti-shake module and the second optical anti-shake module are switched to execute optical anti-shake operation.
It should be appreciated that in embodiments of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, with the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. Touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 810 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned optical anti-shake method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the optical anti-shake method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., 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.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. An optical anti-shake method applied to an electronic device, wherein the electronic device comprises a first optical anti-shake module and a second optical anti-shake module, the method comprising:
receiving shooting input of a user;
Controlling the first optical anti-shake module and the second optical anti-shake module to switch to execute optical anti-shake operation in response to the shooting input;
Displaying a preview picture shot based on the anti-shake operation;
the controlling the first optical anti-shake module and the second optical anti-shake module to switch and execute the optical anti-shake operation includes:
Controlling the first optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when an N frame image is shot;
controlling the second optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when shooting an n+1st frame image;
and the light in the light inlet channel can be incident to the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module and is incident to the photosensitive chip through the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
Before controlling the first optical anti-shake module to perform an optical anti-shake operation on light passing through the light inlet channel when the nth frame image is captured, the method further includes:
Light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to a first lens of the first optical anti-shake module and is incident to a light sensing chip after passing through the first lens of the first optical anti-shake module;
After controlling the first optical anti-shake module to perform an optical anti-shake operation on the light passing through the light inlet channel when the nth frame image is captured, the method further includes:
And switching optical paths of the light rays passing through the light inlet channel, so that the light rays passing through the light inlet channel are incident to the second lens of the second optical anti-shake module and are incident to the light sensing chip after passing through the second lens of the second optical anti-shake module.
3. The method of claim 2, wherein the photographing time of each frame of image includes an exposure time, a readout time of a shutter, and an idle time, and wherein the optical path switching of the light passing through the light-entering channel includes:
And carrying out optical path switching on the light passing through the light inlet channel at a target moment, wherein the target moment is in the time range of the idle time.
4. A method according to any one of claims 1 to 3, wherein before the controlling the switching of the first optical anti-shake module and the second optical anti-shake module to perform the optical anti-shake operation, the method further comprises:
Acquiring shooting parameters, wherein the shooting parameters comprise exposure time, readout time of a shutter and shooting frame rate;
Determining a target duration based on the exposure time, the readout time of the shutter and the shooting frame rate, wherein the target duration is used for representing the duration of executing the back-to-center operation of the first optical anti-shake module or the second optical anti-shake module;
determining an anti-shake working mode according to the target duration;
wherein the anti-shake operation mode satisfies at least one of:
When the target time length is greater than a preset threshold value, the anti-shake working mode is a first mode, in the first mode, optical anti-shake module switching is not performed, and any one of the first optical anti-shake module and the second optical anti-shake module executes optical anti-shake operation;
And when the target duration is smaller than or equal to the preset threshold value, the anti-shake working mode is a second mode, and in the second mode, the first optical anti-shake module and the second optical anti-shake module are switched to execute optical anti-shake operation.
5. An optical anti-shake device is applied to electronic equipment, and is characterized in that the electronic equipment comprises a first optical anti-shake module and a second optical anti-shake module, and the optical anti-shake device comprises:
The receiving module is used for receiving shooting input of a user;
the control module is used for responding to the shooting input and controlling the first optical anti-shake module and the second optical anti-shake module to switch and execute optical anti-shake operation;
The display module is used for displaying a preview picture shot based on the anti-shake operation;
The control module is specifically configured to perform the following operations:
Controlling the first optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when an N frame image is shot;
controlling the second optical anti-shake module to execute optical anti-shake operation on light passing through the light inlet channel when shooting an n+1st frame image;
and the light in the light inlet channel can be incident to the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module and is incident to the photosensitive chip through the first lens of the first optical anti-shake module and/or the second lens of the second optical anti-shake module.
6. The apparatus of claim 5, wherein the control module is further configured to:
Before the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel when the N frame image is shot, the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to a first lens of the first optical anti-shake module and is incident to a light sensing chip after passing through the first lens of the first optical anti-shake module;
When the N-th frame of image is shot, the first optical anti-shake module is controlled to perform optical anti-shake operation on the light passing through the light inlet channel, and then the light passing through the light inlet channel is subjected to light path switching, so that the light passing through the light inlet channel is incident to the second lens of the second optical anti-shake module and is incident to the light-sensitive chip after passing through the second lens of the second optical anti-shake module.
7. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the optical anti-shake method according to any of claims 1-4.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the optical anti-shake method according to any of claims 1-4.
CN202210891606.3A 2022-07-27 2022-07-27 Optical anti-shake method, apparatus, electronic device, and readable storage medium Active CN115278077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210891606.3A CN115278077B (en) 2022-07-27 2022-07-27 Optical anti-shake method, apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210891606.3A CN115278077B (en) 2022-07-27 2022-07-27 Optical anti-shake method, apparatus, electronic device, and readable storage medium

Publications (2)

Publication Number Publication Date
CN115278077A CN115278077A (en) 2022-11-01
CN115278077B true CN115278077B (en) 2024-05-10

Family

ID=83770894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210891606.3A Active CN115278077B (en) 2022-07-27 2022-07-27 Optical anti-shake method, apparatus, electronic device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN115278077B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082914A (en) * 2009-11-30 2011-06-01 佳能株式会社 Image processing apparatus and image processing method
JP2011175128A (en) * 2010-02-25 2011-09-08 Panasonic Corp Camera system and camera body
CN108156362A (en) * 2016-12-02 2018-06-12 杭州海康威视数字技术股份有限公司 The anti-fluttering method and video camera of a kind of video camera
CN109302546A (en) * 2017-07-24 2019-02-01 北京小米移动软件有限公司 CCD camera assembly and electronic equipment
CN109842753A (en) * 2019-03-26 2019-06-04 Oppo广东移动通信有限公司 Camera stabilization system, method, electronic equipment and storage medium
CN111371997A (en) * 2020-03-16 2020-07-03 Oppo广东移动通信有限公司 Control method of mobile equipment and mobile equipment
WO2021101148A1 (en) * 2019-11-21 2021-05-27 Samsung Electronics Co., Ltd. Electronic device including tilt ois and method for capturing image and processing captured image
CN113132576A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Camera shooting method, camera shooting module and electronic equipment
CN113596294A (en) * 2021-07-08 2021-11-02 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN113660408A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Anti-shake method and device for video shooting
CN113873157A (en) * 2021-09-28 2021-12-31 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium
WO2022143509A1 (en) * 2020-12-28 2022-07-07 宁波舜宇光电信息有限公司 Photographic module, optical adjustment method therefor, and circuit board unit, driving apparatus and photosensitive assembly thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4789722B2 (en) * 2006-07-13 2011-10-12 Hoya株式会社 Image blur correction device
TWI488498B (en) * 2010-12-01 2015-06-11 Altek Corp Multiple anti-shake system and method thereof
KR102462711B1 (en) * 2016-01-08 2022-11-04 삼성전자주식회사 Method and apparatus for operating a sensor of electronic device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082914A (en) * 2009-11-30 2011-06-01 佳能株式会社 Image processing apparatus and image processing method
JP2011175128A (en) * 2010-02-25 2011-09-08 Panasonic Corp Camera system and camera body
CN108156362A (en) * 2016-12-02 2018-06-12 杭州海康威视数字技术股份有限公司 The anti-fluttering method and video camera of a kind of video camera
CN109302546A (en) * 2017-07-24 2019-02-01 北京小米移动软件有限公司 CCD camera assembly and electronic equipment
CN109842753A (en) * 2019-03-26 2019-06-04 Oppo广东移动通信有限公司 Camera stabilization system, method, electronic equipment and storage medium
WO2021101148A1 (en) * 2019-11-21 2021-05-27 Samsung Electronics Co., Ltd. Electronic device including tilt ois and method for capturing image and processing captured image
CN113132576A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Camera shooting method, camera shooting module and electronic equipment
CN111371997A (en) * 2020-03-16 2020-07-03 Oppo广东移动通信有限公司 Control method of mobile equipment and mobile equipment
CN113660408A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Anti-shake method and device for video shooting
WO2022143509A1 (en) * 2020-12-28 2022-07-07 宁波舜宇光电信息有限公司 Photographic module, optical adjustment method therefor, and circuit board unit, driving apparatus and photosensitive assembly thereof
CN113596294A (en) * 2021-07-08 2021-11-02 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN113873157A (en) * 2021-09-28 2021-12-31 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN115278077A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN112312017B (en) Shooting control method and electronic equipment
CN112565611B (en) Video recording method, video recording device, electronic equipment and medium
CN112153301A (en) Shooting method and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113099122A (en) Shooting method, shooting device, shooting equipment and storage medium
CN113596294A (en) Shooting method and device and electronic equipment
CN112954212B (en) Video generation method, device and equipment
CN112333382B (en) Shooting method and device and electronic equipment
CN112492215B (en) Shooting control method and device and electronic equipment
CN113747072B (en) Shooting processing method and electronic equipment
CN113866782A (en) Image processing method and device and electronic equipment
CN115278077B (en) Optical anti-shake method, apparatus, electronic device, and readable storage medium
CN115379118B (en) Camera switching method and device, electronic equipment and readable storage medium
CN114286011B (en) Focusing method and device
CN113873147A (en) Video recording method and device and electronic equipment
CN113891018A (en) Shooting method and device and electronic equipment
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
KR20230086770A (en) Shooting method, shooting device, electronic device and readable storage medium
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN114286003A (en) Shooting method, shooting device and electronic equipment
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
CN112399092A (en) Shooting method and device and electronic equipment
CN112291474A (en) Image acquisition method and device and electronic equipment
CN112165584A (en) Video recording method, video recording device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant