Dynamic selection of optical-image stabilization modes
Systems and techniques are described herein for capturing image data. For instance, a method for capturing image data is provided. The method may include obtaining image-capture information, wherein the image-capture information relates to at least one of image-capture settings of the apparatus, image-processing settings of the apparatus, or image-capture conditions; determining an optical image stabilization (OIS) mode based on the image-capture information; and enabling the determined OIS mode for capturing an image.
1 . An apparatus for capturing image data, the apparatus comprising:
at least one memory; and
at least one processor coupled to the at least one memory and configured to:
obtain image-capture information, wherein the image-capture information relates to at least one of image-capture settings of the apparatus, image-processing settings of the apparatus, or image-capture conditions, and wherein the image-capture information includes an electronic image stabilization (EIS) margin;
determine, based on the image-capture information, including the EIS margin, an optical image stabilization (OIS) mode from among a plurality of OIS modes; and
enable the determined OIS mode for capturing an image.
2 . The apparatus of claim 1 , wherein the image-capture information comprises at least one of:
motion data indicative of motion of the apparatus;
an indication of OIS capabilities of the apparatus;
a focal length;
a zoom factor;
an indication of lens distortion;
an exposure duration;
a readout duration;
a frame-capture rate;
an indication of a transition between sensors of the apparatus; or
an indication of post-processing capabilities of the apparatus.
3 . The apparatus of claim 1 , wherein the image-capture information comprises at least one of:
an exposure duration; or
motion data indicative of motion of the apparatus.
4 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin exceeding an EIS-margin threshold and the exposure duration exceeding an exposure-duration threshold, determine a recentering OIS mode as the determined OIS mode.
5 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin exceeding an EIS-margin threshold and the exposure duration not exceeding an exposure-duration threshold, determine a centered OIS mode as the determined OIS mode.
6 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin not exceeding an EIS-margin threshold, the exposure duration exceeding an exposure-duration threshold, and the motion data exceeding a motion-data threshold, determine a full-range OIS mode as the determined OIS mode.
7 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin not exceeding an EIS-margin threshold, the exposure duration exceeding an exposure-duration threshold, and the motion data not exceeding a motion-data threshold, determine a recentering OIS mode as the determined OIS mode.
8 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin not exceeding an EIS-margin threshold, and the exposure duration exceeding an exposure-duration threshold,
determine a partially-recentering OIS mode as the determined OIS mode; and
determine a motion factor for the partially-recentering OIS mode.
9 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin not exceeding an EIS-margin threshold, the exposure duration not exceeding an exposure-duration threshold, and the motion data exceeding a motion-data threshold, determine a full-range OIS mode as the determined OIS mode.
10 . The apparatus of claim 3 , wherein the at least one processor is further configured to, based on the EIS margin not exceeding an EIS-margin threshold, the exposure duration not exceeding an exposure-duration threshold, and the motion data not exceeding a motion-data threshold, determine a centered OIS mode as the determined OIS mode.
11 . The apparatus of claim 1 , wherein the plurality of OIS modes comprise:
a centered OIS mode;
a full-range OIS mode;
a recentering OIS mode; and
a partially-recentering OIS mode.
12 . The apparatus of claim 1 , wherein the at least one processor is further configured to adjust a frame-capture rate of the apparatus to allow for recentering duration between capturing of frames.
13 . The apparatus of claim 1 , wherein the at least one processor is further configured to adjust a readout duration of the apparatus to allow for recentering duration between capturing of frames.
14 . The apparatus of claim 1 , wherein the determined OIS mode comprises a partially-recentering OIS mode and the at least one processor is further configured to determine a recentering rate based on the image-capture information.
15 . The apparatus of claim 1 , wherein the at least one processor is further configured to provide an indication of the determined OIS mode to an electronic-image-stabilization (EIS) engine.
16 . The apparatus of claim 1 , wherein the at least one processor is further configured to adjust EIS parameters based on the determined OIS mode.
17 . The apparatus of claim 1 , wherein the image-capture information comprises first image-capture information related to a first time instance, wherein the determined OIS mode comprises a first determined OIS mode, and wherein the image comprises a first image, the at least one processor further configured to:
obtain second image-capture information related to a second time instance;
determine a second OIS mode based on the second image-capture information; and
enable the second determined OIS mode while a second image is captured.
18 . A method for capturing image data, the method comprising:
obtaining image-capture information, wherein the image-capture information relates to at least one of image-capture settings of a device, image-processing settings of the device, or image-capture conditions, and wherein the image-capture information includes an electronic image stabilization (EIS) margin;
determining, based on the image-capture information, including the EIS margin, an optical image stabilization (OIS) mode from among a plurality of OIS modes; and
enabling the determined OIS mode for capturing an image.
19 . The method of claim 18 , wherein the image-capture information comprises at least one of:
motion data indicative of motion of the device;
an indication of OIS capabilities of the device;
a focal length;
a zoom factor;
an indication of lens distortion;
an exposure duration;
a readout duration;
a frame-capture rate;
an indication of a transition between sensors of the device; or
an indication of post-processing capabilities of the device.
20 . The method of claim 18 , wherein the image-capture information comprises at least one of:
an exposure duration; or
motion data indicative of motion of the device.