WO2017185265A1 - Method for determining image photography parameters and photographic apparatus - Google Patents

Method for determining image photography parameters and photographic apparatus Download PDF

Info

Publication number
WO2017185265A1
WO2017185265A1 PCT/CN2016/080379 CN2016080379W WO2017185265A1 WO 2017185265 A1 WO2017185265 A1 WO 2017185265A1 CN 2016080379 W CN2016080379 W CN 2016080379W WO 2017185265 A1 WO2017185265 A1 WO 2017185265A1
Authority
WO
WIPO (PCT)
Prior art keywords
amount
axis
exposure time
ambient brightness
jitter
Prior art date
Application number
PCT/CN2016/080379
Other languages
French (fr)
Chinese (zh)
Inventor
徐荣跃
王君
易彦
魏代玉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/080379 priority Critical patent/WO2017185265A1/en
Priority to CN201680009795.XA priority patent/CN107615744B/en
Publication of WO2017185265A1 publication Critical patent/WO2017185265A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • the present invention relates to the field of image pickup device control, and in particular, to a method for determining image capture parameters and an image capture device.
  • the prior art uses Optical Image Stabilization (OIS) for anti-shake to reduce the blurring of the image caused by the jitter, thereby improving the image sharpness.
  • OIS Optical Image Stabilization
  • the amount of blur of the image is related to the amount of jitter. The larger the amount of jitter, the larger the amount of blur, and the lower the sharpness of the captured image. It is known from daily experience that the amount of blur of the image is also related to the exposure time. In the case where the amount of jitter is constant, the longer the exposure time, the larger the amount of blurring of the image due to the amount of jitter. In order to reduce the amount of blur, it is necessary to minimize the exposure time.
  • the difference in exposure time may cause different noise on the image.
  • the exposure time is reduced, which may cause the internal sensitivity of the imaging device to rise, and the sensitivity may increase.
  • the noise of the image increases, which reduces image sharpness.
  • image capturing parameters such as exposure time are usually preset, and there is no balance between the amount of jitter and ambient brightness on the image sharpness. Therefore, it is urgent to determine the image capturing parameter.
  • the method and the camera device are used to determine better image capturing parameters, thereby balancing the amount of shaking and the ambient brightness, thereby improving the sharpness of the captured image.
  • Embodiments of the present invention provide a method for determining image capturing parameters and an image capturing device for determining better image capturing parameters, thereby balancing the amount of shake and ambient brightness, thereby improving the sharpness of the captured image.
  • An embodiment of the present invention provides a method for determining an image capturing parameter, including:
  • Obtaining a shake amount of the image capturing device determining an ambient brightness of an environment in which the image to be captured is located; and determining a target exposure time for capturing an image to be captured, at least according to the ambient brightness and the amount of shake.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • determining, according to at least the ambient brightness and the amount of jitter, the target exposure time for capturing the image to be captured including: calculating the first exposure time according to at least the ambient brightness and the amount of jitter; from the first exposure time and the second exposure time The minimum value is determined as the target exposure time; wherein, the second exposure time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
  • the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image.
  • the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered.
  • the influence of the image noise that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement,
  • the noise of the image is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
  • determining an application scenario of the camera device determining, according to at least a preset correspondence between the application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; and a blur amount corresponding to the ambient brightness
  • the amount of blur corresponding to the ambient brightness is determined in the range of values; the first exposure time is calculated according to the amount of blur and the amount of jitter corresponding to the ambient brightness. So that the first exposure can be made
  • the requirements are more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method can be sufficiently clear for the current application scenario of the user.
  • calculating the first exposure time according to the ambient brightness and the amount of jitter including: determining an application scenario of the camera device; determining the application scenario according to at least a preset relationship between the ambient brightness, the application scenario, and the blur amount.
  • the range of the blur amount corresponding to the ambient brightness is determined; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
  • calculating the first exposure time according to at least the ambient brightness and the amount of jitter including: determining, according to at least a corresponding relationship between the preset ambient brightness and the blur amount, a range of values of the blur amount corresponding to the ambient brightness; The blur amount corresponding to the ambient brightness is determined in the range of the blur amount value; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
  • the exposure time includes: determining a noise influence coefficient corresponding to the ambient brightness according to a preset relationship between the preset ambient brightness and the noise influence coefficient; wherein, the brighter the ambient brightness, the larger the noise influence coefficient; according to the noise influence coefficient and the shake amount, Calculate the first exposure time.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the target exposure time for capturing the image to be captured after determining the target exposure time for capturing the image to be captured, according to the ambient brightness and the amount of jitter, further comprising: calculating the first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, The sensitivity threshold is taken as the target sensitivity of the image to be captured; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention.
  • the time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the amount of jitter of the camera device is obtained according to the following formula:
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter about the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • R a is the focal distance Inverse ratio
  • Q 1 , Q 2 and Q 3 are constant terms
  • the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake
  • S is the amount of camera shake
  • the z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  • the coefficients of each item in the formula can be adjusted according to the specific anti-shake parameters of the camera device.
  • the formula can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating the corresponding camera devices.
  • the amount of jitter Moreover, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device.
  • the imaging device comprises a gyroscope
  • anti-shake is performed for the x-axis rotation and the y-axis rotation
  • Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3
  • determining that the imaging device includes the accelerometer and
  • Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
  • the formula can be better compatible with various anti-shake parameters of the camera device, such as two-axis anti-shake, four-axis anti-shake and five-axis anti-shake camera, etc., so as to more accurately calculate the corresponding camera device The amount of jitter.
  • An embodiment of the present invention provides an image capturing apparatus, comprising: a determining unit, configured to acquire a shaking amount of the image capturing device; determine an ambient brightness of an environment in which the image to be captured is located; and a processing unit configured to determine at least according to the ambient brightness and the amount of jitter The target exposure time for taking the image to be captured.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • the processing unit is configured to calculate a first exposure time according to at least the ambient brightness and the amount of jitter; determine a minimum value from the first exposure time and the second exposure time as the target exposure time; wherein, the second exposure time The exposure time calculated to assume that the amount of jitter is zero under ambient brightness.
  • the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image.
  • the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered.
  • the influence of the image noise that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement,
  • the noise of the image is also the minimum value in the case where the amount of blurring meets the requirements, and therefore, the embodiment of the present invention provides The method provided further enhances the sharpness of the image.
  • the processing unit is configured to determine an application scenario of the camera device; and determine, according to at least a preset relationship between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario;
  • the blur amount corresponding to the ambient brightness is determined in the range of the blur amount corresponding to the brightness;
  • the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method is for the current application scenario of the user. , can be clear enough.
  • the processing unit is configured to determine an application scenario of the camera device; and determine, according to the preset relationship between the ambient brightness, the application scenario, and the blur amount, the range of the blur amount corresponding to the ambient brightness in the application scenario.
  • the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
  • the processing unit is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness corresponding to the range of the blur quantity corresponding to the ambient brightness.
  • the amount of blur; the first exposure time is calculated based on the amount of blur and the amount of jitter corresponding to the ambient brightness.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • calculating the first exposure time according to the amount of blur and the amount of jitter including: dividing the amount of blur
  • the first exposure time is obtained in terms of the amount of jitter. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
  • the processing unit is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; according to the noise influence coefficient And the amount of jitter, calculate the first exposure time.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the processing unit is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the degree is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. . In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention.
  • the time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the determining unit is configured to obtain the amount of jitter of the camera according to the following formula:
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter about the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • R a is the focal distance Inverse ratio
  • Q 1 , Q 2 and Q 3 are constant terms
  • the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake
  • S is the amount of camera shake
  • the z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  • the imaging device comprises a gyroscope, and for anti-shake around the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed around the z-axis, Q2 is smaller than Q1, and Q2 is smaller than Q3.
  • the coefficients of each item in the formula can be adjusted according to the specific anti-shake parameters of the camera device.
  • the formula can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating the corresponding camera devices.
  • the amount of jitter Moreover, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device.
  • An embodiment of the present invention provides a camera device, including: a camera module for collecting a picture of an image to be captured; a display for displaying a picture captured by the camera module; and a memory for storing a picture captured by the camera module And one or more processors, wherein the processor is configured to acquire a shake amount of the image capturing device; determine an ambient brightness of an environment in which the image to be captured is located; and determine a target exposure time for capturing an image to be captured according to at least the ambient brightness and the amount of shake.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • the processor is configured to calculate a first exposure time according to at least the ambient brightness and the amount of jitter; determine a minimum value from the first exposure time and the second exposure time as the target exposure time; wherein, the second exposure time The exposure time calculated to assume that the amount of jitter is zero under ambient brightness.
  • the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image.
  • the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered.
  • Image noise The influence of the aspect, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements. Therefore, the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, and thus the image noise It is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
  • the processor is configured to determine an application scenario of the camera device; and at least determine a range of values of the blur amount corresponding to the ambient brightness in the application scenario according to a preset relationship between the preset application scenario and the blur amount;
  • the blur amount corresponding to the ambient brightness is determined in the range of the blur amount corresponding to the brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the processor is configured to determine an application scenario of the camera device; determining, according to at least a preset relationship between the ambient brightness, the application scenario, and the blur amount, the range of the blur amount corresponding to the ambient brightness in the application scenario.
  • the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the processor is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the fuzzy quantity corresponding to the ambient brightness; and determine, according to the range of the fuzzy quantity corresponding to the ambient brightness, the ambient brightness corresponding to the range
  • the amount of blur; the first exposure time is calculated based on the amount of blur and the amount of jitter corresponding to the ambient brightness.
  • calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • the processor is configured to determine, according to a preset relationship between the preset ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the noise influence coefficient The larger the time; the first exposure time is calculated based on the noise influence coefficient and the amount of jitter.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the processor is further configured to calculate the first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, using the sensitivity threshold as the target sensitivity of the image to be captured; When the degree is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention.
  • the time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the processor is configured to obtain the amount of jitter of the camera according to the following formula:
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter about the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • R a is the focal distance Inverse ratio
  • Q 1 , Q 2 and Q 3 are constant terms
  • the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake
  • S is the amount of camera shake
  • the z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  • the imaging device comprises a gyroscope
  • anti-shake is performed for the x-axis rotation and the y-axis rotation
  • Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3
  • determining that the imaging device includes the accelerometer and When anti-shake is performed about the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
  • the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time.
  • the effect is to comprehensively determine a target exposure time, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the blurring amount of the captured image due to the amount of jitter to be too high, and the other aspect The determined target exposure time does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure
  • FIG. 1a is a schematic structural diagram of a suitable system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention
  • 2a is a schematic diagram of a relationship between a jitter amount and an exposure time according to an embodiment of the present invention
  • 2b is a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention
  • 2c is a schematic diagram showing the relationship between the rotational jitter along the x-axis and/or the y-axis and the translational jitter along the x-axis and/or the y-axis and the amount of blurring of the image according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an image pickup apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present invention.
  • the method for determining image capturing parameters and the camera device provided by the embodiments of the present invention are applicable to various systems, such as a single camera system, an OIS system for a single camera, and an OIS system under a multi-camera.
  • the image capturing device in the embodiment of the present invention may be a device having a camera function, such as a mobile phone having a camera function, a computer, a tablet computer, or the like.
  • the camera coordinate system is introduced, and the coordinate of the camera coordinate system is centered on the camera device.
  • the optical axis of the imaging device is taken as the z-axis.
  • the embodiments of the present invention are also applicable to other coordinate systems, such as a world coordinate system, etc., in which case conversion between coordinate systems is required.
  • the world coordinate system can also be called the real or real world coordinate system, which is the absolute coordinate of the objective world.
  • FIG. 1 and FIG. 1a are a schematic diagram showing a suitable system architecture provided by an embodiment of the present invention.
  • the image capturing apparatus 101 captures an image in a current scene, and the image capturing apparatus 101 includes a lens 103. Also included is an image sensor 107 whose lens 103 faces the object 102 to be photographed.
  • the camera device can detect the amount of jitter of the camera device itself.
  • the three axes in the camera coordinate system defined by the embodiments of the present invention are the x-axis 104, the y-axis 105, and the z-axis 106, respectively.
  • the z-axis 106 is the horizontal direction shown in FIG.
  • the z-axis is the optical axis direction of the imaging device 101
  • the z-axis 106 is perpendicular to the circular plane of the lens in the lens 103 of the imaging device
  • the y-axis 105 is the one on FIG.
  • the vertical direction, i.e., the y-axis 105 is perpendicular to the z-axis 106
  • the x-axis 104 is an axis perpendicular to the y-axis 105 and perpendicular to the z-axis 106.
  • the center of the x-axis 104, the y-axis 105, and the z-axis 106 may be the center of the image sensor 107.
  • FIG. 2 exemplarily shows a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention.
  • the method may be performed by an image capturing apparatus, and the method includes:
  • Step 201 Acquire a jitter amount of the camera device.
  • Step 202 Determine an ambient brightness of an environment in which the image to be captured is located
  • Step 203 determining a target exposure time for capturing an image to be captured, at least according to the ambient brightness and the amount of shake.
  • the camera device calculates the amount of shake of the camera device, determines the ambient brightness, and determines the target exposure time for image capturing based on at least the ambient brightness and the amount of jitter.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • the imaging device first determines the ambient brightness before calculating the first exposure time based on at least the ambient brightness and the amount of jitter.
  • the ambient brightness There are a plurality of ways to determine the ambient brightness in the embodiment of the present invention. An optional implementation manner is provided in the embodiment of the present invention.
  • the camera device obtains the correspondence between the exposure time of the normal exposure mode and the ambient brightness in advance, and the camera device can adopt an ordinary exposure mode to determine the exposure time in the normal exposure mode under different ambient brightness, thereby obtaining the normal exposure mode.
  • the correspondence between exposure time and ambient brightness can be saved in the form of a correspondence table. After that, under the current ambient brightness, the exposure time of the normal exposure mode under the current ambient brightness is acquired, and then the ambient brightness corresponding to the exposure time of the normal exposure mode is determined according to the correspondence table, and the determined ambient brightness is determined. This is the current ambient brightness.
  • the normal exposure mode in the embodiment of the present invention is a conventional mode of exposing only according to the exposure time determined by the ambient brightness, and the target exposure time is determined according to at least the ambient brightness and the amount of jitter in the embodiment of the present invention, and The mode of exposure using the target exposure time is different.
  • the exposure time t of the normal exposure mode when the ambient brightness is low, the exposure time t of the normal exposure mode is greater than T2; when the ambient brightness is medium brightness, the exposure time t of the normal exposure mode is not greater than T2, and greater than T1.
  • the value of the exposure time t of the normal exposure mode is not greater than the value of T1 when the ambient brightness is high.
  • the low brightness brightness value of the ambient brightness is less than or equal to the medium brightness value; the medium brightness value is less than or equal to the high brightness value.
  • the low brightness, the medium brightness, and the high brightness are respectively three brightness levels of the ambient brightness, for example, determining that the current ambient brightness is less than the first brightness threshold, determining that the current ambient brightness is low brightness; determining the current ambient brightness is not The first brightness threshold is smaller than the second brightness threshold, and the second brightness threshold is greater than the first brightness threshold, determining that the current ambient brightness belongs to the medium brightness; determining that the current ambient brightness is not less than the second brightness threshold, determining the current The ambient brightness is high brightness.
  • T2 is greater than T1.
  • T2 is greater than T1.
  • f is the focal length of the lens of the camera;
  • x is the angular velocity of the hand shake, and the unit is radians per second (rad/s); alternatively, x is 0.03;
  • A is the first level of the fuzzy standard.
  • B is the fuzzy quantity corresponding to the second level of the fuzzy quantity standard.
  • the values of A and B in the embodiment of the present invention may be selected by themselves, or may be as follows.
  • the human has different requirements for the amount of blurring of the image in different application scenarios.
  • Table 1 exemplarily shows a fuzzy amount standard in different scenarios, as shown in Table 1.
  • the camera device includes a 24-inch display. When the user views the image captured by the camera device using the 24-inch display on the camera device, at least the image blur amount standard first level is required, and the blur amount standard corresponds to the first level.
  • the amount of blur is 0.06 degrees, and the amount of blur is 0.06 degrees, which is equivalent to a blur amount of 3 pixels (pixel), or a blur amount of 0.06 degrees can be equivalent to a blur amount of 4 micrometers ( ⁇ m).
  • the camera device includes a 6-inch display
  • the user zooms in and views the image captured by the camera device using the 6-inch display, for example, by zooming in on the image captured by the camera device twice by double-clicking the image displayed on the 6-inch display, at least the requirement is required.
  • the blur quantity standard of the image is the second level
  • the blur quantity corresponding to the second level of the blur quantity standard is 0.1 degree
  • the blur quantity is 0.1 degree
  • the blur quantity is 6 pixels (pixel), or the blur quantity is 0.1 degree.
  • the amount of blur is 9 micrometers ( ⁇ m).
  • the blur level of the image is required to be at the third level, and the blur amount corresponding to the third level of the blur amount standard is 0.15 degrees, and the amount of blur is 0.15 degrees can also be equivalent to a blur amount of 10 pixels (pixel), or a blur amount of 0.15 degrees can also be equivalent to a blur amount of 14 micrometers ( ⁇ m).
  • Table 1 A fuzzy amount standard in different application scenarios
  • Fuzzy quantity standard Application scenario Fuzzy quantity Third level Users look directly through the 6-inch display 0.15 degrees (10pixel, 14um) second level Users zoom in and out through a 6-inch display 0.1 degree (6pixel, 9um) First level Users watch through a 24-inch monitor 0.06 degrees (3pixel, 4um)
  • determining a range of values of the amount of blurring corresponding to the ambient brightness includes a plurality of manners, such as:
  • the corresponding relationship between the preset application scenario and the fuzzy amount is determined, and the value range of the fuzzy amount is determined;
  • the application scenario of the image to be captured is determined, and the range of the fuzzy amount corresponding to the ambient brightness is determined according to the preset relationship between the ambient brightness, the application scenario, and the blur amount. For example, if the brightness is medium, the user can zoom in and view the captured image through the 6-inch display. At this time, the blurring amount corresponding to the ambient brightness can be [0.06, 0.1]; in the case of medium brightness, the user The captured image is directly viewed through the 6-inch display, and the blurring amount corresponding to the ambient brightness may be in the range of [0.1, 0.15];
  • the range of the blur amount corresponding to the ambient brightness is determined.
  • the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness. Thereafter, the first exposure time is calculated based on the amount of blur and the amount of shake corresponding to the ambient brightness.
  • the imaging device calculates the first exposure time according to the ambient brightness and the amount of jitter, and includes: the imaging device determines a blur amount corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the blur amount corresponding to the ambient brightness The smaller the image pickup device calculates the first exposure time based on the amount of blur and the amount of shake.
  • the blur amount corresponding to the ambient brightness is a value within the range of the blur amount corresponding to the ambient brightness, or the blur amount corresponding to the ambient brightness is the maximum value within the range of the blur amount corresponding to the ambient brightness.
  • the imaging device determines the amount of blur corresponding to the ambient brightness.
  • the exposure time of the normal exposure mode under the current ambient brightness is obtained by the above manner, and then the blur amount corresponding to the ambient brightness is determined according to the correspondence between the exposure time and the blur amount of the normal exposure mode. Specifically, the higher the ambient brightness, the shorter the exposure time, and the smaller the value of the required blur amount at this time.
  • the amount of blur corresponding to the ambient brightness is a value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time t of the normal exposure mode is greater than the value of T2
  • the ambient brightness is low brightness
  • the range of the blur amount should be
  • the fuzzy quantity is a value not greater than A
  • A is the fuzzy quantity corresponding to the first level of the fuzzy quantity standard, for example, the range of the fuzzy quantity is not more than 0.06 degrees
  • the exposure time t of the normal exposure mode is not greater than T2, and is greater than the value of T1.
  • the ambient brightness is medium brightness
  • the value of the blur amount should be greater than A and not greater than B.
  • the amount of blur is a value greater than A and not greater than B
  • B is the blur amount corresponding to the second level of the blur amount standard
  • the exposure time t of the normal exposure mode is not greater than T1 Value
  • the ambient brightness is low brightness.
  • the value range of the blur quantity should be greater than B and not larger than the value range of C.
  • the blur quantity is a value greater than B and not greater than C, and C is the third standard of fuzzy quantity.
  • the values of A, B, and C can be as shown in Table 1.
  • the value of A is 0.06 degrees
  • the value of B is 0.1 degrees
  • the value of C is 0.15 degrees. It can also be determined according to the specific implementation. In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the camera device determines the amount of blur corresponding to the ambient brightness, which may be a value within the range of the blur amount corresponding to the ambient brightness, or may be the maximum value within the range of the blur amount corresponding to the ambient brightness. For example, after detection, under the current ambient brightness, the exposure time t of the normal exposure mode is greater than the value of T2, and the ambient brightness is low brightness, and the amount of blur should be A; after detection, under the current ambient brightness, The exposure time t of the normal exposure mode is not more than T2, and is greater than the value of T1.
  • the ambient brightness is medium brightness, and the blur amount should be B; after the detection, the current ambient brightness, the exposure time of the normal exposure mode t is a value not greater than T1, and the ambient brightness is low brightness at this time, and the amount of blur should be C.
  • the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • the imaging device calculates the first exposure time according to the amount of blur and the amount of jitter, including: the camera divides the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, proportional to the amount of blur, and can be more accurately obtained by dividing the amount of blur by the amount of jitter. By the first exposure time, the target exposure time is more accurately determined.
  • equation (2) the relationship between the amount of blur, the amount of jitter, and the exposure time is expressed by equation (2):
  • T is the start time of the exposure
  • ⁇ t is the exposure time
  • S x (t) is the total jitter speed along the x-axis at the time t
  • Indicates the moving distance of the lens on the x-axis from the start time T of the exposure Represents the maximum value that can be obtained for the value obtained after S x (t) is integrated over time, equal to the blur amount blur x of the x-axis
  • S y (t) is the total jitter velocity along the y-axis at time t
  • the 2a is a schematic diagram showing the relationship between the amount of jitter and the exposure time provided by the embodiment of the present invention.
  • the abscissa 2101 represents the amount of jitter
  • the ordinate 2102 represents the exposure time
  • the curve 2103 represents the imaging device including the OIS function.
  • the relationship between the amount of time jitter and the exposure time, and the curve 2104 indicates the relationship between the amount of jitter and the exposure time when the image pickup apparatus does not include the OIS function.
  • the larger the amount of jitter the shorter the exposure time.
  • the exposure time can be referred to as a safe shutter time.
  • the safety shutter time is slowed down as the amount of jitter increases; and for an imaging device not including the OIS function, the shutter time is safe. As the amount of jitter increases, the speed is reduced compared to the block.
  • the sharpness of the image is determined by two parameters, the amount of blur and the exposure time; the product of the exposure time and the amount of jitter is proportional to the amount of blur, that is, the longer the exposure time, the longer the exposure time is.
  • the amount of blur caused by the amount of jitter is larger.
  • the first exposure time determined by the process is: the longest exposure time when the image blur amount is satisfied. It can be seen that the first exposure time satisfies the image blur quantity requirement and also prolongs the time as much as possible; As the exposure time is longer, the sensitivity is lower, so the noise of the image is less. Therefore, it can be seen that the first exposure time in the embodiment of the present invention satisfies the requirements of the image blur amount and noise, and improves the image. Sharpness.
  • the imaging device determines, according to at least the ambient brightness and the amount of shaking, the target exposure time for capturing the image to be captured, including: calculating the first exposure time according to at least the ambient brightness and the amount of jitter; from the first exposure time and the second The minimum value is determined as the target exposure time in the exposure time; wherein, the second exposure time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
  • the imaging device calculates the second exposure time based on the current ambient brightness and the amount of jitter, that is, assuming that the amount of jitter is zero, before determining the target exposure time.
  • the calculation method of the second exposure time can be performed by using a calculation formula in the prior art, that is, determining the second exposure time based only on the current ambient brightness. Then, since the second exposure time is the exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is one.
  • the aspect meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so the image is not added with extra noise; secondly, the target exposure time is less than the first exposure time, so in the case of jitter Further reducing the amount of blurring of the image further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered.
  • the method provided by the embodiment of the present invention further enhances the sharpness of the image.
  • the imaging device calculates the first sensitivity according to the target exposure time.
  • the camera uses an Automatic Exposure (AE) algorithm to calculate the first sensitivity according to the target exposure time.
  • AE Automatic Exposure
  • the AE algorithm in the embodiment of the present invention is an algorithm commonly used by those skilled in the art.
  • the automatic exposure is that the camera automatically determines the exposure amount according to the lighting condition. It can be determined according to the actual situation.
  • the sensitivity threshold is used as the target sensitivity of the imaging device; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is used as the target sensitivity of the imaging device.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the sensitivity is the chemical reaction speed of the film to the light, and is also the standard for the photosensitive speed in the film industry.
  • the sensitivity of the film (film) to light the low sensitivity refers to the film (film) of 100 or less (International Standardization Organization photosensibility)
  • the medium sensitivity refers to the sensitivity of 200 to 800
  • the high sensitivity is the sensitivity of 800 or more.
  • sensitivity speed negatives depending on the brightness of the shooting environment.
  • the general cloudy environment can use ISO200, the darkness is like the stage, the concert environment can be ISO400 or higher, and the digital camera.
  • ISO400 the digital camera.
  • There is a similar function in it which changes the ISO value by changing the amplification factor of the signal amplifier in the sensor chip, but when the ISO value is raised, the amplifier also amplifies the noise in the signal to produce an image of coarse particles.
  • FIG. 2b is a schematic flow chart showing a method for determining image capturing parameters according to an embodiment of the present invention. As shown in FIG. 2b, the method includes:
  • Step 2201 The camera device calculates the amount of camera shake and the ambient brightness
  • Step 2202 the imaging device determines whether the ambient brightness belongs to low brightness, medium brightness or high brightness; if the ambient brightness belongs to high brightness, step 2203 is performed; if the ambient brightness belongs to medium brightness, step is performed Step 2204; If the ambient brightness is low brightness, step 2205 is performed;
  • Step 2203 determining that the amount of blur corresponding to the ambient brightness is A, and dividing A by the amount of jitter to obtain a first exposure time;
  • Step 2204 determining that the amount of blur corresponding to the ambient brightness is B, and dividing B by the amount of jitter to obtain a first exposure time;
  • Step 2205 determining that the amount of blur corresponding to the ambient brightness is C, and dividing C by the amount of jitter to obtain a first exposure time;
  • Step 2206 the camera determines a minimum value from the first exposure time and the preset second exposure time as the target exposure time
  • Step 2207 the imaging device calculates a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, the sensitivity threshold is used as the target sensitivity of the imaging device; and determining that the first sensitivity is not greater than the sensitivity threshold When the first sensitivity is used as the target sensitivity of the imaging device;
  • Step 2208 image capture is performed using the target exposure time and the target sensitivity.
  • the single-frame shooting and the multi-frame shooting may be performed when the image is taken, and the single-frame shooting or the multi-frame shooting may be determined according to the actual situation, which is not limited in the embodiment of the present invention.
  • the imaging device first determines the ambient brightness.
  • the manner of determining the ambient brightness in the embodiment of the present invention is various. The manner for determining the ambient brightness in the embodiment of the present invention is described in the embodiment, and details are not described herein again.
  • the sharpness of the image is affected by the amount of blur and noise, and the sharpness of the image is inversely proportional to the amount of blur and noise;
  • the noise is proportional to the sensitivity, and the sensitivity is inversely proportional to the exposure time;
  • the amount of blur is proportional to the exposure time.
  • quality is the image sharpness
  • blur is the blur amount
  • is the noise influence coefficient
  • ISO is the sensitivity
  • ⁇ t is the first exposure time
  • S is the jitter amount.
  • S x is the amount of jitter along the x-axis
  • S y is the amount of jitter along the y-axis.
  • the correspondence between the ambient brightness and the noise influence coefficient can be obtained in a plurality of manners.
  • the user can set a plurality of different ambient brightness in a fixed scene, and The images are taken under different ambient brightness, and then the effects of noise and denoising parameters on the image are compared under different brightness, and then the noise influence coefficients corresponding to different ambient brightness are determined.
  • the camera device may determine the noise influence coefficient corresponding to the ambient brightness according to the corresponding relationship between the preset ambient brightness and the noise influence coefficient; The brighter the ambient brightness, the larger the noise influence coefficient; the imaging device calculates the first exposure time according to the noise influence coefficient and the shake amount.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the first exposure time is calculated according to formula (4):
  • is the noise influence coefficient
  • ⁇ t is the first exposure time
  • S is the jitter amount
  • the imaging device calculates a first exposure time according to the ambient brightness and the amount of jitter; the imaging device determines a minimum value from the first exposure time and the preset second exposure time as the target exposure time; wherein, the second exposure The time is the exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero.
  • the imaging device calculates the first sensitivity according to the target exposure time; When it is determined that the first sensitivity is greater than the sensitivity threshold, the sensitivity threshold is used as the target sensitivity of the imaging device; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is used as the target sensitivity of the imaging device.
  • the first sensitivity is used as the target sensitivity of the imaging device.
  • the x-axis, the y-axis, and the z-axis in the embodiment of the present invention are the x-axis, the y-axis, and the z-axis in the camera coordinate system shown in FIG. 1, that is, the z-axis is the optical axis of the imaging device.
  • the amount of blurring of the image caused by the rotational jitter around the x-axis or the y-axis can be determined by equation (5):
  • is the jitter angle
  • b xyx is the amount of blurring of the image caused by the rotational jitter around the x-axis or the y-axis.
  • the angle of dither may be the angle between a line perpendicular to the plane defined by the x-axis and the y-axis.
  • the amount of blur of the image corresponding to the pixel of the image sensor from the center of the image sensor r by the rotation jitter about the z-axis can be determined by the formula (6):
  • is the shake angle
  • r is the distance of the pixel on the image sensor in the image pickup device from the center of the image sensor
  • b zx is the blur amount of the image caused by the rotational shake around the z-axis.
  • the amount of blurring of the image caused by translational jitter along the x-axis or y-axis can be determined by equation (7):
  • x is the amount of translational shake along the x-axis or y-axis
  • b xyp is the amount of blurring of the image caused by translational jitter along the x-axis or y-axis.
  • 2c is a schematic diagram showing the relationship between different types of jitter and the amount of blur of an image provided by an embodiment of the present invention.
  • the abscissa indicates the focus distance
  • the ordinate indicates the image sharpness
  • the curve 2301 indicates the x-axis.
  • the y-axis translational jitter and the amount of jitter is fixed
  • the curve 2302 indicates the relationship between the focus distance and the amount of blur when the rotation jitter along the x-axis and/or the y-axis is fixed and the amount of jitter is fixed. curve.
  • Curve 2301 shows that when the jitter is shifted along the x-axis and/or the y-axis, the focus distance is larger, that is, the smaller the amount of movement of the lens, the smaller the amount of blurring of the image; the curve 2302 can be seen along the x-axis.
  • the image sharpness is substantially unaffected by the focus distance.
  • is the jitter angle
  • x a is the x-axis coordinate of the speed sensor of the imaging device before the jitter
  • y a is the y-axis coordinate of the speed sensor of the imaging device before the jitter
  • x a ' is the imaging device
  • the speed sensor is the x-axis coordinate after shaking
  • y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking
  • is the jitter angle
  • x a is the x-axis coordinate of the speed sensor of the imaging device before the jitter
  • y a is the y-axis coordinate of the speed sensor of the imaging device before the jitter
  • x a ' is the imaging device
  • the speed sensor is the x-axis coordinate after shaking
  • y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking
  • ⁇ x is the amount of change of the x-axis coordinate of the speed sensor of the imaging device after shaking before and after shaking
  • ⁇ y is The amount of change in the y-axis coordinate of the speed sensor of the imaging device after shaking before and after shaking.
  • X r (q) is the effect of jitter along the x-axis on the amount of blur
  • q is the jitter frequency
  • H x (q) is the compensation coefficient of the x-axis at a frequency of q
  • Y r (q) The effect of jitter on the y-axis on the amount of blur
  • H y (q) is the compensation coefficient of the y-axis at a frequency of q
  • S qx is the total jitter velocity along the x-axis
  • S qy is the total jitter velocity along the y-axis.
  • the mechanical characteristics of the motor of the image pickup apparatus determine that H x (q) and H y (q) are related to the jitter frequency.
  • the jitter data may be detected by an angular velocity sensor and a speed sensor, and the jitter data may be subjected to spectrum analysis to obtain parameters related to the jitter, such as a jitter frequency.
  • X r (q) is the effect of jitter along the x-axis on the amount of blur
  • q is the jitter frequency
  • Y r (q) is the effect of jitter along the y-axis on the amount of blur
  • Q 1 is OIS Performance parameters
  • S qx is the total jitter speed along the x-axis
  • S qy is the total jitter speed along the y-axis.
  • X r (q) is the effect of jitter along the x-axis on the amount of blur
  • q is the jitter frequency
  • Y r (q) is the effect of jitter along the y-axis on the amount of blur
  • Q 1 is OIS Performance parameters
  • S qx is the total jitter speed along the x-axis
  • S qy is the total jitter speed along the y-axis.
  • the average jitter speed of the pixel at a distance r from the center of the image sensor of the imaging apparatus is calculated by the formula (13):
  • Z is the average jitter speed of the pixel at a distance r from the center of the image sensor of the image pickup apparatus;
  • Q 2 is a performance parameter of the OIS;
  • r is a distance between the pixel and the center of the image sensor of the image pickup apparatus;
  • is Jitter angle.
  • Q 2 is a performance parameter of the OIS; Res along the x-axis resolution x; y Res resolution along the y axis; S resx along the x-axis velocity total jitter; S resy along The total jitter speed of the y-axis.
  • the total jitter velocity along the x-axis and the y-axis is calculated by equation (16) for translation along the x-axis and the y-axis:
  • an embodiment of the present invention provides an optional implementation for determining the amount of jitter of the camera.
  • the camera device calculates the amount of camera shake by the formula (17):
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter about the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • 1 , Q 2 and Q 3 are constant terms.
  • the values of Q 1 , Q 2 , and Q 3 are determined according to the x-axis, the y-axis, and the z-axis of the anti-shake
  • S is the amount of camera shake
  • the x-axis, the y-axis, and the z-axis belong to the camera coordinate system of the camera.
  • the optical axis of the imaging device is the z-axis.
  • the coefficients of each item in the formula (17) can be adjusted according to the specific anti-shake parameters of the camera device.
  • the formula (17) can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating The amount of jitter corresponding to various imaging devices.
  • the imaging device comprises a gyroscope, and for anti-shake around the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed about the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
  • the above formula (17) can be better compatible with various anti-shake parameters of the camera device, such as two-axis anti-shake, four-axis anti-shake and five-axis anti-shake camera, etc., thereby more accurately calculating various The amount of jitter corresponding to the imaging device.
  • R a is inversely proportional to the focusing distance.
  • the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focusing distance, thereby more accurately calculating the jitter corresponding to the imaging device. the amount.
  • S x is the total jitter velocity along the x-axis
  • S y is the total jitter velocity along the y-axis
  • Q 1 , Q 2 and Q 3 are the performance parameters of OIS
  • X r (q) is The effect of jitter along the x-axis on the amount of blur
  • q is the jitter frequency
  • Y r (q) is the effect of jitter along the y-axis on the amount of blur
  • Res x is the resolution along the x-axis
  • Res y is along the y-axis Resolution
  • x a ' is the x-axis coordinate of the speed sensor of the imaging device after shaking
  • y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking
  • the amount of jitter of the image pickup apparatus in the embodiment of the present invention may be the total jitter speed in the embodiment of the present invention.
  • the jitter amount S in the formula (17) may include the total jitter speed S x along the x-axis in the formula (18) and The total jitter speed S y along the y-axis.
  • the jitter amount S satisfies the formula (19):
  • S is the amount of jitter in the embodiment of the invention, S may also be referred to as the jitter speed, S x is the total jitter speed along the x-axis; and S y is the total jitter speed along the y-axis.
  • R q in the formula (17) includes R qx and R qy in the formula (18);
  • R res in the formula (17) includes R resx and in the formula (18) R resy ;
  • R a in the formula (17) includes R ax and R ay in the formula (18). Comparing equation (17) with equation (18), you can get the following information:
  • Q 1 , Q 2 , and Q 3 may be determined according to a specific implementation scenario, and an embodiment of the present invention provides an optional value example.
  • the camera device determines that the anti-shake axis of the camera device is five-axis anti-shake, that is, the camera device includes rotation anti-shake along the x-axis and the y-axis, anti-shake along the z-axis, and translation along the x-axis and the y-axis.
  • the camera device can adaptively select a constant term parameter in the calculation formula of the jitter amount according to the actual anti-shake condition of the camera device, that is, the camera device can adaptively determine the jitter matched with itself.
  • the formula for calculating the amount is not limited to the actual anti-shake condition of the camera device.
  • the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • FIG. 3 is a schematic structural diagram of another image pickup apparatus according to an embodiment of the present invention.
  • an embodiment of the present invention provides an image capturing device, which includes a determining unit 301 and a processing unit. 302:
  • the embodiment of the present invention provides an image capturing apparatus 300, including: a determining unit 301, configured to acquire a shake amount of the image capturing apparatus 300; determine an ambient brightness of an environment in which the image to be captured is located; and a processing unit 302 configured to at least according to ambient brightness and jitter A quantity that determines a target exposure time for taking an image to be captured.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • the processing unit 302 is configured to calculate a first exposure time according to at least an ambient brightness and a shake amount; determine a minimum value from the first exposure time and the second exposure time as a target exposure time; wherein, the second exposure The time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
  • the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image.
  • the target exposure time is selected as the first exposure time, and the target exposure time meets the fuzzy amount requirement, and since the value of the blur amount has been discussed before, the influence of image noise has been considered, that is, the image is made
  • the maximum exposure time is obtained as much as possible. Therefore, the sensitivity of the image at this time is also the minimum value in the case where the amount of blur meets the requirements, so the noise of the image is also in the case where the amount of blur meets the requirements.
  • the minimum value therefore, the method provided by the embodiment of the present invention further improves the sharpness of the image.
  • the processing unit 302 is configured to determine an application scenario of the camera device 300; and determine, according to a preset correspondence between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario;
  • the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness;
  • the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method is for the current application scenario of the user. , can be clear enough.
  • the processing unit 302 is configured to determine an application scenario of the camera device 300; and determine, according to a preset relationship between the preset ambient brightness, the application scenario, and the blur amount, the blur amount corresponding to the ambient brightness in the application scenario.
  • the value range; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
  • the processing unit 302 is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness from the range of the blur quantity corresponding to the ambient brightness.
  • the corresponding blur amount; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
  • the processing unit 302 is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; The coefficient and the amount of jitter are used to calculate the first exposure time.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging apparatus 300 calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the processing unit 302 is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. . In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention.
  • the time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the determining unit 301 is configured to obtain the amount of jitter of the camera 300 according to the following formula:
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter that rotates around the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • R a is the focal distance Inverse ratio
  • Q 1 , Q 2 and Q 3 are constant terms
  • the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake
  • S is the amount of jitter of the imaging device 300
  • the axis and the z-axis belong to the camera coordinate system of the imaging apparatus 300, and the optical axis of the imaging apparatus 300 is the z-axis.
  • Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; in determining that the imaging apparatus 300 includes the accelerometer, And for anti-shake around the z-axis rotation, Q2 is smaller than Q1, and Q2 is smaller than Q3.
  • the coefficients of the respective items in the formula can be adjusted according to the specific anti-shake parameters of the camera 300.
  • the formula can be more compatible with the camera device 300 of various anti-shake parameters, thereby more accurately calculating various camera devices.
  • the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device 300.
  • the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • FIG. 4 is a schematic structural diagram of another image pickup apparatus according to an embodiment of the present invention.
  • an embodiment of the present invention provides an image capturing device.
  • the camera device 400 includes a camera module 401 and a display 402. , memory 403, one or more processors 404:
  • a camera module 401 for capturing a picture of an image to be captured
  • a display 402 for displaying a picture captured by the camera module 401
  • a memory 403 for storing a picture captured by the camera module 401
  • the processor 404 is configured to acquire the amount of jitter of the image capturing apparatus 400; determine the ambient brightness of the environment in which the image to be captured is located; and determine at least according to the ambient brightness and the amount of jitter.
  • the camera module 401 is connected to the display 402, the memory 403, and the processor 404, and the image of the image to be captured collected by the camera module 401 can be transmitted to the processor 404, so that the processor 404 performs some column processing.
  • the display 402 can be directly transmitted to the display 402, and the display 402 can directly display the acquired picture, or can be transferred to the memory 403, so that the memory 403 stores the collected picture.
  • the display 402 and the camera module 401, the memory 403 and the processor 404 are respectively connected.
  • the display 402 can directly display the screen collected by the camera module 401, and can also display the screen after being processed by the processor 404, or can be displayed in the memory 403. Stored current or historically acquired images.
  • the memory 403 is connected to the camera module 401, the display 402 and the processor 404, respectively.
  • the memory 403 can store the collected images transmitted by the received camera module 401, and can also process the processed images transmitted by the processor 404.
  • the corresponding program or code may also be stored in the memory 403 to cause the processor 404 to read the program or code stored in the memory 403 to perform the method provided in the embodiment of the present invention.
  • the processor 404 is respectively connected to the camera module 401, the display 402 and the memory 403.
  • the processor 404 can directly receive the image transmitted by the camera module 401, and then process the image, and then the processed image can be transmitted to the display 402. It is used for display or transferred to the memory 403 to cause the memory 403 to be stored.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • the processor 404 is configured to calculate a first exposure time according to at least an ambient brightness and a jitter amount; determine a minimum value from the first exposure time and the second exposure time as a target exposure time; wherein, the second exposure The time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
  • the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand Meets the noise requirements of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target The exposure time is less than the first exposure time, so the blur amount of the image can be further reduced in the case of jitter, thereby further improving the sharpness of the image.
  • the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered.
  • the influence of the image noise that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement,
  • the noise of the image is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
  • the processor 404 is configured to determine an application scenario of the camera device 400; and determine, according to a preset correspondence between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; The blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the processor 404 is configured to determine an application scenario of the camera device 400, and determine, according to a preset relationship between the preset ambient brightness, the application scenario, and the blur amount, the blur amount corresponding to the ambient brightness in the application scenario.
  • the value range; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • the processor 404 is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness from the range of the blur quantity corresponding to the ambient brightness.
  • the corresponding blur amount; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
  • calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time.
  • the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness.
  • the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
  • the processor 404 is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; The coefficient and the amount of jitter are used to calculate the first exposure time.
  • the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree.
  • the imaging apparatus 400 calculates the first exposure time based on the noise influence coefficient and the shake amount.
  • the processor 404 is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus.
  • the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention.
  • the time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
  • the processor 404 is configured to obtain the amount of jitter of the camera device 400 according to the following formula:
  • R q is the amount of jitter about the x-axis and about the y-axis
  • R reR is the amount of jitter about the z-axis
  • R a is the amount of jitter caused by translation along the x-axis and the y-axis
  • R a is the focal distance Inverse ratio
  • Q 1 , Q 2 and Q 3 are constant terms
  • the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake
  • S is the amount of jitter of the imaging device 400
  • the axis and the z-axis belong to the camera coordinate system of the imaging apparatus 400, and the optical axis of the imaging apparatus 400 is the z-axis.
  • Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; in determining that the imaging device 400 includes the accelerometer, And for anti-shake around the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
  • the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time.
  • a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken.
  • the amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
  • embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • a computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device. Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes and/or block diagrams in the flowchart. The steps of a function specified in a box or multiple boxes.

Abstract

A method for determining image photography parameters, comprising a photographic apparatus (101, 300, 400) acquiring the amount of jitter of the photographic apparatus (101, 300, 400) (201); determining the ambient brightness of the environment of the image to be photographed (202); at least on the basis of the ambient brightness and the amount of jitter, determining a target exposure time for photographing the image to be photographed (203). Thus, the target exposure time can be comprehensively determined on the basis of the impact of the amount of jitter and the ambient brightness; when using the target exposure time to perform image photography, the determined target exposure time will not allow the photographic image to be excessively blurry as a result of jitter, and will also not allow the image noise to be excessive, thereby improving image definition.

Description

一种图像拍摄参数的确定方法及摄像装置Method for determining image capturing parameters and camera device 技术领域Technical field
本发明涉及摄像设备控制领域,尤其涉及一种图像拍摄参数的确定方法及摄像装置。The present invention relates to the field of image pickup device control, and in particular, to a method for determining image capture parameters and an image capture device.
背景技术Background technique
用户使用摄像装置进行图像拍摄时,即使用户未意识到自己手抖,用户的手也可能在不断移动,在图像拍摄过程中手的抖动会引起图像模糊。为了克服因抖动所引起的图像模糊,现有技术中采用光学稳像(Optical Image Stabilization,简称OIS)进行防抖,以减轻因抖动所引起的图像的模糊量,从而提升图像清晰度。图像的模糊量与抖动量有关,抖动量越大,模糊量也越大,所拍摄图像的清晰度也越低。从日常经验可知,图像的模糊量还与曝光时间有关,在抖动量一定的情况下,曝光时间越长,因抖动量所产生的图像的模糊量越大。为了降低模糊量,需尽量减少曝光时间。When the user uses the camera to take an image, even if the user does not realize that he or she is shaking, the user's hand may move constantly, and the shaking of the hand may cause blurring of the image during image capturing. In order to overcome the image blur caused by the jitter, the prior art uses Optical Image Stabilization (OIS) for anti-shake to reduce the blurring of the image caused by the jitter, thereby improving the image sharpness. The amount of blur of the image is related to the amount of jitter. The larger the amount of jitter, the larger the amount of blur, and the lower the sharpness of the captured image. It is known from daily experience that the amount of blur of the image is also related to the exposure time. In the case where the amount of jitter is constant, the longer the exposure time, the larger the amount of blurring of the image due to the amount of jitter. In order to reduce the amount of blur, it is necessary to minimize the exposure time.
但是随着外界环境亮度的不同,曝光时间的不同会引起图像上的噪声的不同,比如环境亮度较低的情况下,曝光时间减少,会引起摄像设备内部感光度的上升,感光度上升会导致图像的噪声增加,从而降低图像清晰度。However, depending on the brightness of the external environment, the difference in exposure time may cause different noise on the image. For example, when the ambient brightness is low, the exposure time is reduced, which may cause the internal sensitivity of the imaging device to rise, and the sensitivity may increase. The noise of the image increases, which reduces image sharpness.
现有技术中,曝光时间等图像拍摄参数通常为预设的,并没有对抖动量和环境亮度两个因素对图像清晰度所造成的影响进行平衡,因此,亟需一种图像拍摄参数的确定方法及摄像装置,用于确定更优的图像拍摄参数,从而平衡抖动量和环境亮度,进而提升所拍摄图像的清晰度。In the prior art, image capturing parameters such as exposure time are usually preset, and there is no balance between the amount of jitter and ambient brightness on the image sharpness. Therefore, it is urgent to determine the image capturing parameter. The method and the camera device are used to determine better image capturing parameters, thereby balancing the amount of shaking and the ambient brightness, thereby improving the sharpness of the captured image.
发明内容Summary of the invention
本发明实施例提供一种图像拍摄参数的确定方法及摄像装置,用于确定更优的图像拍摄参数,从而平衡抖动量和环境亮度,进而提升所拍摄图像的清晰度。 Embodiments of the present invention provide a method for determining image capturing parameters and an image capturing device for determining better image capturing parameters, thereby balancing the amount of shake and ambient brightness, thereby improving the sharpness of the captured image.
本发明实施例提供一种图像拍摄参数的确定方法,包括:An embodiment of the present invention provides a method for determining an image capturing parameter, including:
获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。Obtaining a shake amount of the image capturing device; determining an ambient brightness of an environment in which the image to be captured is located; and determining a target exposure time for capturing an image to be captured, at least according to the ambient brightness and the amount of shake. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
可选地,至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间,包括:至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。Optionally, determining, according to at least the ambient brightness and the amount of jitter, the target exposure time for capturing the image to be captured, including: calculating the first exposure time according to at least the ambient brightness and the amount of jitter; from the first exposure time and the second exposure time The minimum value is determined as the target exposure time; wherein, the second exposure time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间,此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提供的方法更进一步的提升了图像的清晰度。Since the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered. The influence of the image noise, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, The noise of the image is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
可选地,确定出摄像装置的应用场景;至少根据预设的应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时 间更加符合当前的应用场景,由于用户在不同的应用场景下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, determining an application scenario of the camera device; determining, according to at least a preset correspondence between the application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; and a blur amount corresponding to the ambient brightness The amount of blur corresponding to the ambient brightness is determined in the range of values; the first exposure time is calculated according to the amount of blur and the amount of jitter corresponding to the ambient brightness. So that the first exposure can be made The requirements are more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method can be sufficiently clear for the current application scenario of the user.
可选地,至少根据环境亮度和抖动量计算出第一曝光时间,包括:确定出摄像装置的应用场景;至少根据预设的环境亮度、应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时间更加符合当前的应用场景,且也符合当前的环境亮度的条件,由于用户在不同的应用场景下,且不同的环境亮度条件下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, calculating the first exposure time according to the ambient brightness and the amount of jitter, including: determining an application scenario of the camera device; determining the application scenario according to at least a preset relationship between the ambient brightness, the application scenario, and the blur amount. The range of the blur amount corresponding to the ambient brightness is determined; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
可选地,至少根据环境亮度和抖动量计算出第一曝光时间,包括:至少根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下,调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。Optionally, calculating the first exposure time according to at least the ambient brightness and the amount of jitter, including: determining, according to at least a corresponding relationship between the preset ambient brightness and the blur amount, a range of values of the blur amount corresponding to the ambient brightness; The blur amount corresponding to the ambient brightness is determined in the range of the blur amount value; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,根据模糊量和抖动量计算出第一曝光时间,包括:将模糊量除以抖动量,得到第一曝光时间。可见第一曝光时间与抖动量成反比,与模糊量成正比,且通过将模糊量除以抖动量,可更加准确的得到第一曝光时间,进而更加准确的确定出目标曝光时间。Optionally, calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
可选地,至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标 曝光时间,包括:根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数越大;根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置根据噪声影响系数和抖动量,计算出第一曝光时间。Optionally, determining a target for capturing an image to be captured, at least according to ambient brightness and amount of jitter The exposure time includes: determining a noise influence coefficient corresponding to the ambient brightness according to a preset relationship between the preset ambient brightness and the noise influence coefficient; wherein, the brighter the ambient brightness, the larger the noise influence coefficient; according to the noise influence coefficient and the shake amount, Calculate the first exposure time. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间之后,还包括:根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为待拍摄图像的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为待拍摄图像的目标感光度。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。Optionally, after determining the target exposure time for capturing the image to be captured, according to the ambient brightness and the amount of jitter, further comprising: calculating the first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, The sensitivity threshold is taken as the target sensitivity of the image to be captured; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
可选地,根据如下公式获取摄像装置的抖动量:Optionally, the amount of jitter of the camera device is obtained according to the following formula:
S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于摄像装置的摄像机坐标系,且摄像装置的光轴为z轴。可见,公式中的各个项的系数可以根据摄像装置的具体防抖参数进行调整,如此,公式可以更好的兼容各种防抖参数的摄像装置,从而更加准确的计算出各种摄像装置所对应的抖动量。且,沿x轴和y轴平移所引起的抖动量Ra可集合对焦距离更加准确的进行计算,从而更加准确的计算出 摄像装置所对应的抖动量。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis The z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis. It can be seen that the coefficients of each item in the formula can be adjusted according to the specific anti-shake parameters of the camera device. Thus, the formula can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating the corresponding camera devices. The amount of jitter. Moreover, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device.
可选地,在确定摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3。如此,可使公式更好的兼容各种防抖参数的摄像装置,比如两轴防抖、四轴防抖和五轴防抖的摄像装置等,从而更加准确的计算出各种摄像装置所对应的抖动量。Optionally, when it is determined that the imaging device comprises a gyroscope, and anti-shake is performed for the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed about the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 . In this way, the formula can be better compatible with various anti-shake parameters of the camera device, such as two-axis anti-shake, four-axis anti-shake and five-axis anti-shake camera, etc., so as to more accurately calculate the corresponding camera device The amount of jitter.
本发明实施例提供一种摄像装置,包括:确定单元,用于获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;处理单元,用于至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。An embodiment of the present invention provides an image capturing apparatus, comprising: a determining unit, configured to acquire a shaking amount of the image capturing device; determine an ambient brightness of an environment in which the image to be captured is located; and a processing unit configured to determine at least according to the ambient brightness and the amount of jitter The target exposure time for taking the image to be captured. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
可选地,处理单元,用于至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间,此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提 供的方法更进一步的提升了图像的清晰度。Optionally, the processing unit is configured to calculate a first exposure time according to at least the ambient brightness and the amount of jitter; determine a minimum value from the first exposure time and the second exposure time as the target exposure time; wherein, the second exposure time The exposure time calculated to assume that the amount of jitter is zero under ambient brightness. Since the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered. The influence of the image noise, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, The noise of the image is also the minimum value in the case where the amount of blurring meets the requirements, and therefore, the embodiment of the present invention provides The method provided further enhances the sharpness of the image.
可选地,处理单元,用于确定出摄像装置的应用场景;至少根据预设的应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时间更加符合当前的应用场景,由于用户在不同的应用场景下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, the processing unit is configured to determine an application scenario of the camera device; and determine, according to at least a preset relationship between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; The blur amount corresponding to the ambient brightness is determined in the range of the blur amount corresponding to the brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method is for the current application scenario of the user. , can be clear enough.
可选地,处理单元,用于确定出摄像装置的应用场景;至少根据预设的环境亮度、应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时间更加符合当前的应用场景,且也符合当前的环境亮度的条件,由于用户在不同的应用场景下,且不同的环境亮度条件下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, the processing unit is configured to determine an application scenario of the camera device; and determine, according to the preset relationship between the ambient brightness, the application scenario, and the blur amount, the range of the blur amount corresponding to the ambient brightness in the application scenario. The blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
可选地,处理单元,用于根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下,调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。Optionally, the processing unit is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness corresponding to the range of the blur quantity corresponding to the ambient brightness. The amount of blur; the first exposure time is calculated based on the amount of blur and the amount of jitter corresponding to the ambient brightness. In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,根据模糊量和抖动量计算出第一曝光时间,包括:将模糊量除 以抖动量,得到第一曝光时间。可见第一曝光时间与抖动量成反比,与模糊量成正比,且通过将模糊量除以抖动量,可更加准确的得到第一曝光时间,进而更加准确的确定出目标曝光时间。Optionally, calculating the first exposure time according to the amount of blur and the amount of jitter, including: dividing the amount of blur The first exposure time is obtained in terms of the amount of jitter. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
可选地,处理单元,用于根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数越大;根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置根据噪声影响系数和抖动量,计算出第一曝光时间。Optionally, the processing unit is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; according to the noise influence coefficient And the amount of jitter, calculate the first exposure time. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,处理单元,还用于根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为待拍摄图像的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为待拍摄图像的目标感光度。。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。Optionally, the processing unit is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the degree is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. . In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
可选地,确定单元,用于根据如下公式获取摄像装置的抖动量:Optionally, the determining unit is configured to obtain the amount of jitter of the camera according to the following formula:
S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于摄像装置的摄像机坐标系,且摄像装置的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis The z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
可选地,在确定摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进 行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3。Optionally, when it is determined that the imaging device comprises a gyroscope, and for anti-shake around the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed around the z-axis, Q2 is smaller than Q1, and Q2 is smaller than Q3.
可见,公式中的各个项的系数可以根据摄像装置的具体防抖参数进行调整,如此,公式可以更好的兼容各种防抖参数的摄像装置,从而更加准确的计算出各种摄像装置所对应的抖动量。且,沿x轴和y轴平移所引起的抖动量Ra可集合对焦距离更加准确的进行计算,从而更加准确的计算出摄像装置所对应的抖动量。It can be seen that the coefficients of each item in the formula can be adjusted according to the specific anti-shake parameters of the camera device. Thus, the formula can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating the corresponding camera devices. The amount of jitter. Moreover, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device.
本发明实施例提供一种摄像装置,包括:摄像头模组,用于采集待拍摄图像的画面;显示器,用于显示摄像头模组采集到的画面;存储器,用于存储摄像头模组采集到的画面;一个或多个处理器,处理器用于获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。An embodiment of the present invention provides a camera device, including: a camera module for collecting a picture of an image to be captured; a display for displaying a picture captured by the camera module; and a memory for storing a picture captured by the camera module And one or more processors, wherein the processor is configured to acquire a shake amount of the image capturing device; determine an ambient brightness of an environment in which the image to be captured is located; and determine a target exposure time for capturing an image to be captured according to at least the ambient brightness and the amount of shake. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
可选地,处理器,用于至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。Optionally, the processor is configured to calculate a first exposure time according to at least the ambient brightness and the amount of jitter; determine a minimum value from the first exposure time and the second exposure time as the target exposure time; wherein, the second exposure time The exposure time calculated to assume that the amount of jitter is zero under ambient brightness.
由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间,此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声 方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提供的方法更进一步的提升了图像的清晰度。Since the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered. Image noise The influence of the aspect, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements. Therefore, the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, and thus the image noise It is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
可选地,处理器,用于确定出摄像装置的应用场景;至少根据预设的应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor is configured to determine an application scenario of the camera device; and at least determine a range of values of the blur amount corresponding to the ambient brightness in the application scenario according to a preset relationship between the preset application scenario and the blur amount; The blur amount corresponding to the ambient brightness is determined in the range of the blur amount corresponding to the brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
可选地,处理器,用于确定出摄像装置的应用场景;至少根据预设的环境亮度、应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor is configured to determine an application scenario of the camera device; determining, according to at least a preset relationship between the ambient brightness, the application scenario, and the blur amount, the range of the blur amount corresponding to the ambient brightness in the application scenario. The blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
可选地,处理器,用于根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the fuzzy quantity corresponding to the ambient brightness; and determine, according to the range of the fuzzy quantity corresponding to the ambient brightness, the ambient brightness corresponding to the range The amount of blur; the first exposure time is calculated based on the amount of blur and the amount of jitter corresponding to the ambient brightness.
如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下,调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
可选地,根据模糊量和抖动量计算出第一曝光时间,包括:将模糊量除以抖动量,得到第一曝光时间。Optionally, calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,处理器,用于根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数 越大;根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置根据噪声影响系数和抖动量,计算出第一曝光时间。Optionally, the processor is configured to determine, according to a preset relationship between the preset ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the noise influence coefficient The larger the time; the first exposure time is calculated based on the noise influence coefficient and the amount of jitter. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,处理器,还用于根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为待拍摄图像的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为待拍摄图像的目标感光度。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。Optionally, the processor is further configured to calculate the first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, using the sensitivity threshold as the target sensitivity of the image to be captured; When the degree is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
可选地,处理器,用于根据如下公式获取摄像装置的抖动量:Optionally, the processor is configured to obtain the amount of jitter of the camera according to the following formula:
S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于摄像装置的摄像机坐标系,且摄像装置的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis The z-axis and the z-axis belong to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
可选地,在确定摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3Optionally, when it is determined that the imaging device comprises a gyroscope, and anti-shake is performed for the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed about the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
从上述内容可看出,本发明实施例中,摄像装置获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的 影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。As can be seen from the above, in the embodiment of the present invention, the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time. In this way, depending on the amount of jitter and the brightness of the environment The effect is to comprehensively determine a target exposure time, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the blurring amount of the captured image due to the amount of jitter to be too high, and the other aspect The determined target exposure time does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below.
图1为本发明实施例提供的一种适用的系统架构示意图;FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure;
图1a为本发明实施例提供的一种适用的系统架构示意图;FIG. 1a is a schematic structural diagram of a suitable system according to an embodiment of the present invention;
图2为本发明实施例提供的一种图像拍摄参数的确定方法的流程示意图;2 is a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention;
图2a为本发明实施例提供的抖动量和曝光时间的关系的示意图;2a is a schematic diagram of a relationship between a jitter amount and an exposure time according to an embodiment of the present invention;
图2b为本发明实施例提供的一种图像拍摄参数的确定方法的流程示意图;2b is a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention;
图2c为本发明实施例提供的沿x轴和/或y轴的旋转抖动与沿x轴和/或y轴的平移抖动与图像的模糊量的关系示意图;2c is a schematic diagram showing the relationship between the rotational jitter along the x-axis and/or the y-axis and the translational jitter along the x-axis and/or the y-axis and the amount of blurring of the image according to an embodiment of the present invention;
图3为本发明实施例提供的一种摄像装置的结构示意图;3 is a schematic structural diagram of an image pickup apparatus according to an embodiment of the present invention;
图4为本发明实施例提供的另一种摄像装置的结构示意图。FIG. 4 is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供的图像拍摄参数的确定方法及摄像装置适用于多种系统,比如单摄影机(camera)系统、单摄影机(camera)的OIS系统,及多摄影机(camera)下的OIS系统。本发明实施例中的摄像设备可为具有摄像功能的设备,比如具有摄像功能的手机、电脑、平板电脑等等。本发明实施例中基于摄像机坐标系进行介绍,摄像机坐标系以摄像装置为中心制定的坐标 系统,取摄像装置的光轴为z轴。具体实施中,本发明实施例也可适用于于其它几种坐标系,比如世界坐标系等等,此时需要进行坐标系之间的转换。世界坐标系也可称为真实或现实世界坐标系,是客观世界的绝对坐标。The method for determining image capturing parameters and the camera device provided by the embodiments of the present invention are applicable to various systems, such as a single camera system, an OIS system for a single camera, and an OIS system under a multi-camera. The image capturing device in the embodiment of the present invention may be a device having a camera function, such as a mobile phone having a camera function, a computer, a tablet computer, or the like. In the embodiment of the present invention, the camera coordinate system is introduced, and the coordinate of the camera coordinate system is centered on the camera device. In the system, the optical axis of the imaging device is taken as the z-axis. In the specific implementation, the embodiments of the present invention are also applicable to other coordinate systems, such as a world coordinate system, etc., in which case conversion between coordinate systems is required. The world coordinate system can also be called the real or real world coordinate system, which is the absolute coordinate of the objective world.
图1和图1a示例性示出了本发明实施例提供的一种适用的系统架构示意图,如图1和图1a所示,摄像装置101在当前场景下拍摄图像,摄像装置101包括镜头103,还包括图像传感器107,摄像装置101的镜头103朝向被拍摄物体102。本发明实施例中摄像装置可检测到摄像装置本身的抖动量,针对摄像装置,本发明实施例所定义的摄像机坐标系中的三个轴,分别为x轴104、y轴105和z轴106;z轴106为图1所示的水平方向,即z轴为摄像装置101的光轴方向,z轴106垂直于摄像装置的镜头103中透镜的圆形平面;y轴105为图1上的垂直方向,即y轴105垂直于z轴106;x轴104为垂直于y轴105,且垂直于z轴106的轴。x轴104、y轴105和z轴106的圆心可为图像传感器107的中心。FIG. 1 and FIG. 1a are a schematic diagram showing a suitable system architecture provided by an embodiment of the present invention. As shown in FIG. 1 and FIG. 1a, the image capturing apparatus 101 captures an image in a current scene, and the image capturing apparatus 101 includes a lens 103. Also included is an image sensor 107 whose lens 103 faces the object 102 to be photographed. In the embodiment of the present invention, the camera device can detect the amount of jitter of the camera device itself. For the camera device, the three axes in the camera coordinate system defined by the embodiments of the present invention are the x-axis 104, the y-axis 105, and the z-axis 106, respectively. The z-axis 106 is the horizontal direction shown in FIG. 1, that is, the z-axis is the optical axis direction of the imaging device 101, the z-axis 106 is perpendicular to the circular plane of the lens in the lens 103 of the imaging device; the y-axis 105 is the one on FIG. The vertical direction, i.e., the y-axis 105 is perpendicular to the z-axis 106; the x-axis 104 is an axis perpendicular to the y-axis 105 and perpendicular to the z-axis 106. The center of the x-axis 104, the y-axis 105, and the z-axis 106 may be the center of the image sensor 107.
基于上述内容,图2示例性示出了本发明实施例提供的一种图像拍摄参数的确定方法的流程示意图,如图2所示,该方法可由摄像装置执行,该方法包括:Based on the above, FIG. 2 exemplarily shows a schematic flowchart of a method for determining image capturing parameters according to an embodiment of the present invention. As shown in FIG. 2, the method may be performed by an image capturing apparatus, and the method includes:
步骤201,获取摄像装置的抖动量;Step 201: Acquire a jitter amount of the camera device.
步骤202,确定待拍摄图像所处环境的环境亮度;Step 202: Determine an ambient brightness of an environment in which the image to be captured is located;
步骤203,至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。 Step 203, determining a target exposure time for capturing an image to be captured, at least according to the ambient brightness and the amount of shake.
本发明实施例中,摄像装置计算摄像装置抖动量,确定环境亮度,至少根据环境亮度和抖动量,确定出用于图像拍摄的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。In the embodiment of the present invention, the camera device calculates the amount of shake of the camera device, determines the ambient brightness, and determines the target exposure time for image capturing based on at least the ambient brightness and the amount of jitter. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
具体来说,可通过多种方式综合考虑环境亮度和抖动量的因素来确定用 于图像拍摄的目标曝光时间,本发明实施例中提供以下两种可选地的实施方式一和实施方式二两种实施方式。Specifically, it can be determined by a combination of factors such as ambient brightness and jitter. The following two optional embodiments 1 and 2 are provided in the embodiment of the present invention.
实施方式一Embodiment 1
具体来说,摄像装置至少根据环境亮度和抖动量计算出第一曝光时间之前,摄像装置先确定出环境亮度。本发明实施例中确定出环境亮度的方式有多种,本发明实施例中提供一种可选地的实施方式。Specifically, the imaging device first determines the ambient brightness before calculating the first exposure time based on at least the ambient brightness and the amount of jitter. There are a plurality of ways to determine the ambient brightness in the embodiment of the present invention. An optional implementation manner is provided in the embodiment of the present invention.
摄像装置预先获取普通曝光模式的曝光时间和环境亮度之间的对应关系,摄像装置可采用普通的曝光模式,在不同的环境亮度下确定普通的曝光模式下的曝光时间,从而获取普通曝光模式的曝光时间和环境亮度之间的对应关系。比如,可通过对应关系表的形式保存普通曝光模式的曝光时间和环境亮度之间的对应关系。之后,在当前的环境亮度之下,获取当前的环境亮度下的普通曝光模式的曝光时间,进而根据对应关系表确定出该普通曝光模式的曝光时间对应的环境亮度,该被确定出的环境亮度即为当前的环境亮度。本发明实施例中的普通曝光模式即为常规的仅仅根据环境亮度所确定的曝光时间进行曝光的一种模式,与本发明实施例中的至少根据环境亮度和抖动量确定出目标曝光时间,并使用目标曝光时间进行曝光的模式是不同的。The camera device obtains the correspondence between the exposure time of the normal exposure mode and the ambient brightness in advance, and the camera device can adopt an ordinary exposure mode to determine the exposure time in the normal exposure mode under different ambient brightness, thereby obtaining the normal exposure mode. The correspondence between exposure time and ambient brightness. For example, the correspondence between the exposure time of the normal exposure mode and the ambient brightness can be saved in the form of a correspondence table. After that, under the current ambient brightness, the exposure time of the normal exposure mode under the current ambient brightness is acquired, and then the ambient brightness corresponding to the exposure time of the normal exposure mode is determined according to the correspondence table, and the determined ambient brightness is determined. This is the current ambient brightness. The normal exposure mode in the embodiment of the present invention is a conventional mode of exposing only according to the exposure time determined by the ambient brightness, and the target exposure time is determined according to at least the ambient brightness and the amount of jitter in the embodiment of the present invention, and The mode of exposure using the target exposure time is different.
举个例子,在外界环境亮度为低亮度时,普通曝光模式的曝光时间t为大于T2的值;在外界环境亮度为中亮度时,普通曝光模式的曝光时间t为不大于T2,且大于T1的值;在外界环境亮度为高亮度时,普通曝光模式的曝光时间t为不大于T1的值。其中环境亮度的低亮度的亮度值小于或等于中亮度的值;中亮度的值小于或等于高亮度的值。可选地,低亮度、中亮度和高亮度分别为环境亮度的三个亮度等级,比如测定当前的环境亮度小于第一亮度阈值,则确定当前的环境亮度属于低亮度;测定当前的环境亮度不小于第一亮度阈值,且小于第二亮度阈值,其中第二亮度阈值大于第一亮度阈值,则确定当前的环境亮度属于中亮度;测定当前的环境亮度不小于第二亮度阈值,则确定当前的环境亮度属于高亮度。For example, when the ambient brightness is low, the exposure time t of the normal exposure mode is greater than T2; when the ambient brightness is medium brightness, the exposure time t of the normal exposure mode is not greater than T2, and greater than T1. The value of the exposure time t of the normal exposure mode is not greater than the value of T1 when the ambient brightness is high. The low brightness brightness value of the ambient brightness is less than or equal to the medium brightness value; the medium brightness value is less than or equal to the high brightness value. Optionally, the low brightness, the medium brightness, and the high brightness are respectively three brightness levels of the ambient brightness, for example, determining that the current ambient brightness is less than the first brightness threshold, determining that the current ambient brightness is low brightness; determining the current ambient brightness is not The first brightness threshold is smaller than the second brightness threshold, and the second brightness threshold is greater than the first brightness threshold, determining that the current ambient brightness belongs to the medium brightness; determining that the current ambient brightness is not less than the second brightness threshold, determining the current The ambient brightness is high brightness.
其中,T2大于T1。具体来说,可通过公式(1)确定: Where T2 is greater than T1. Specifically, it can be determined by formula (1):
f×tan(T1×x)≤A;f×tan(T2×x)≤B……公式(1)f × tan (T1 × x) ≤ A; f × tan (T2 × x) ≤ B ... formula (1)
在公式(1)中,f为摄像装置的镜头焦距;x为人手抖的角速度,单位为弧度每秒(rad/s);可选地,可取x为0.03;A为模糊量标准第一级对应的模糊量;B为模糊量标准第二级对应的模糊量。In formula (1), f is the focal length of the lens of the camera; x is the angular velocity of the hand shake, and the unit is radians per second (rad/s); alternatively, x is 0.03; A is the first level of the fuzzy standard. Corresponding fuzzy quantity; B is the fuzzy quantity corresponding to the second level of the fuzzy quantity standard.
可选地,本发明实施例中A和B的值可自己选择,也可如下述内容中。具体实施中,可选地,人类在不同的应用场景下对图像的模糊量有不同的要求,表1中示例性示出了一种在不同的场景下的模糊量标准的,如表1所示,摄像装置包括24寸的显示器,用户在使用该摄像装置上的24寸显示器观看摄像设备所拍摄的图像时,则至少要求图像的模糊量标准第一级,模糊量标准第一级对应的模糊量为0.06度,模糊量为0.06度也可等同于模糊量为3像素(pixel),或者模糊量为0.06度也可等同于模糊量为4微米(μm)。摄像装置包括6寸显示器时,用户在使用6寸显示器放大观看摄像设备所拍摄的图像时,比如通过对6寸显示器上显示的图像2次双击的方式放大摄像设备所拍摄的图像,则至少要求图像的模糊量标准第二级,模糊量标准第二级对应的模糊量为0.1度,模糊量为0.1度也可等同于模糊量为6像素(pixel),或者模糊量为0.1度也可等同于模糊量为9微米(μm)。用户在使用6寸显示器直接观看,而非放大观看摄像设备所拍摄的图像时,则至少要求图像的模糊量标准第三级,模糊量标准第三级对应的模糊量为0.15度,模糊量为0.15度也可等同于模糊量为10像素(pixel),或者模糊量为0.15度也可等同于模糊量为14微米(μm)。Optionally, the values of A and B in the embodiment of the present invention may be selected by themselves, or may be as follows. In a specific implementation, the human has different requirements for the amount of blurring of the image in different application scenarios. Table 1 exemplarily shows a fuzzy amount standard in different scenarios, as shown in Table 1. The camera device includes a 24-inch display. When the user views the image captured by the camera device using the 24-inch display on the camera device, at least the image blur amount standard first level is required, and the blur amount standard corresponds to the first level. The amount of blur is 0.06 degrees, and the amount of blur is 0.06 degrees, which is equivalent to a blur amount of 3 pixels (pixel), or a blur amount of 0.06 degrees can be equivalent to a blur amount of 4 micrometers (μm). When the camera device includes a 6-inch display, when the user zooms in and views the image captured by the camera device using the 6-inch display, for example, by zooming in on the image captured by the camera device twice by double-clicking the image displayed on the 6-inch display, at least the requirement is required. The blur quantity standard of the image is the second level, the blur quantity corresponding to the second level of the blur quantity standard is 0.1 degree, the blur quantity is 0.1 degree, and the blur quantity is 6 pixels (pixel), or the blur quantity is 0.1 degree. The amount of blur is 9 micrometers (μm). When the user directly views the image using the 6-inch display instead of zooming in on the image taken by the camera device, at least the blur level of the image is required to be at the third level, and the blur amount corresponding to the third level of the blur amount standard is 0.15 degrees, and the amount of blur is 0.15 degrees can also be equivalent to a blur amount of 10 pixels (pixel), or a blur amount of 0.15 degrees can also be equivalent to a blur amount of 14 micrometers (μm).
表1一种在不同的应用场景下的模糊量标准Table 1 A fuzzy amount standard in different application scenarios
模糊量标准Fuzzy quantity standard 应用场景Application scenario 模糊量Fuzzy quantity
第三级Third level 用户通过6寸显示器直接看Users look directly through the 6-inch display 0.15度(10pixel,14um)0.15 degrees (10pixel, 14um)
第二级second level 用户通过6寸显示器放大观看Users zoom in and out through a 6-inch display 0.1度(6pixel,9um)0.1 degree (6pixel, 9um)
第一级First level 用户通过24寸显示器观看Users watch through a 24-inch monitor 0.06度(3pixel,4um)0.06 degrees (3pixel, 4um)
可选地,确定出环境亮度对应的模糊量取值范围,包括多种方式,比如: Optionally, determining a range of values of the amount of blurring corresponding to the ambient brightness includes a plurality of manners, such as:
方式一,结合表1所示,根据待拍摄图像的应用场景,预设的应用场景与模糊量的对应关系,确定模糊量取值范围;In the first mode, according to the application scenario of the image to be captured, the corresponding relationship between the preset application scenario and the fuzzy amount is determined, and the value range of the fuzzy amount is determined;
方式二,确定待拍摄图像的应用场景,根据预设的环境亮度、应用场景与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围。举个例子,比如亮度中等的情况下,用户通过6寸显示器放大观看所拍摄的图像,此时环境亮度对应的模糊量的取值范围可为[0.06,0.1];亮度中等的情况下,用户通过6寸显示器直接观看所拍摄的图像,此时环境亮度对应的模糊量的取值范围可为[0.1,0.15];In the second manner, the application scenario of the image to be captured is determined, and the range of the fuzzy amount corresponding to the ambient brightness is determined according to the preset relationship between the ambient brightness, the application scenario, and the blur amount. For example, if the brightness is medium, the user can zoom in and view the captured image through the 6-inch display. At this time, the blurring amount corresponding to the ambient brightness can be [0.06, 0.1]; in the case of medium brightness, the user The captured image is directly viewed through the 6-inch display, and the blurring amount corresponding to the ambient brightness may be in the range of [0.1, 0.15];
方式三,根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围。In the third manner, according to the corresponding relationship between the preset ambient brightness and the blur amount, the range of the blur amount corresponding to the ambient brightness is determined.
通过上述三种方式确定出环境亮度对应的模糊量取值范围之后,从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量。之后,根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。After determining the range of the blur amount corresponding to the ambient brightness by the above three methods, the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness. Thereafter, the first exposure time is calculated based on the amount of blur and the amount of shake corresponding to the ambient brightness.
具体来说,上述方式三中,摄像装置根据环境亮度和抖动量计算出第一曝光时间,包括:摄像装置确定出环境亮度对应的模糊量;其中,环境亮度越亮,环境亮度对应的模糊量越小;摄像装置根据模糊量和抖动量,计算出第一曝光时间。其中,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的一个值,或者环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。Specifically, in the third method, the imaging device calculates the first exposure time according to the ambient brightness and the amount of jitter, and includes: the imaging device determines a blur amount corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the blur amount corresponding to the ambient brightness The smaller the image pickup device calculates the first exposure time based on the amount of blur and the amount of shake. The blur amount corresponding to the ambient brightness is a value within the range of the blur amount corresponding to the ambient brightness, or the blur amount corresponding to the ambient brightness is the maximum value within the range of the blur amount corresponding to the ambient brightness.
本发明实施例中,获取环境亮度之后,摄像装置确定出环境亮度对应的模糊量。可选地,通过上述方式获取当前的环境亮度下的普通曝光模式的曝光时间,进而根据普通曝光模式的曝光时间与模糊量之间的对应关系,确定出环境亮度对应的模糊量。具体来说,环境亮度越高,则曝光时间越短,此时要求的模糊量的值越小。In the embodiment of the present invention, after acquiring the ambient brightness, the imaging device determines the amount of blur corresponding to the ambient brightness. Optionally, the exposure time of the normal exposure mode under the current ambient brightness is obtained by the above manner, and then the blur amount corresponding to the ambient brightness is determined according to the correspondence between the exposure time and the blur amount of the normal exposure mode. Specifically, the higher the ambient brightness, the shorter the exposure time, and the smaller the value of the required blur amount at this time.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的一个值。举个例子,比如经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为大于T2的值,此时环境亮度为低亮度,此时模糊量取值范围应 为不大于A的取值范围,模糊量为一个不大于A的值,A为模糊量标准第一级对应的模糊量,比如模糊量取值范围为不大于0.06度的范围;经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为不大于T2,且大于T1的值,此时环境亮度为中亮度,此时模糊量取值范围应为大于A且不大于B的取值范围,模糊量为一个大于A且不大于B的值,B为模糊量标准第二级对应的模糊量;经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为不大于T1的值,此时环境亮度为低亮度,此时模糊量取值范围应为大于B且不大于C的取值范围,模糊量为一个大于B且不大于C的值,C为模糊量标准第三级对应的模糊量。可选地,A、B和C的值可以参照表1中所示的,A取值为0.06度,B取值为0.1度,C取值为0.15度,也可根据具体实施情况确定。如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下,调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。Optionally, the amount of blur corresponding to the ambient brightness is a value within a range of values of the blur amount corresponding to the ambient brightness. For example, after detection, under the current ambient brightness, the exposure time t of the normal exposure mode is greater than the value of T2, and the ambient brightness is low brightness, and the range of the blur amount should be For the value range not greater than A, the fuzzy quantity is a value not greater than A, and A is the fuzzy quantity corresponding to the first level of the fuzzy quantity standard, for example, the range of the fuzzy quantity is not more than 0.06 degrees; after detection, the current Under the ambient brightness, the exposure time t of the normal exposure mode is not greater than T2, and is greater than the value of T1. At this time, the ambient brightness is medium brightness, and the value of the blur amount should be greater than A and not greater than B. Range, the amount of blur is a value greater than A and not greater than B, and B is the blur amount corresponding to the second level of the blur amount standard; after detection, under the current ambient brightness, the exposure time t of the normal exposure mode is not greater than T1 Value, at this time, the ambient brightness is low brightness. At this time, the value range of the blur quantity should be greater than B and not larger than the value range of C. The blur quantity is a value greater than B and not greater than C, and C is the third standard of fuzzy quantity. The amount of blur corresponding to the level. Optionally, the values of A, B, and C can be as shown in Table 1. The value of A is 0.06 degrees, the value of B is 0.1 degrees, and the value of C is 0.15 degrees. It can also be determined according to the specific implementation. In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。摄像装置确定出环境亮度对应的模糊量,具体可为环境亮度对应的模糊量所属范围内的一个取值;也可为环境亮度对应的模糊量所属范围内的最大取值。比如经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为大于T2的值,此时环境亮度为低亮度,此时模糊量应为A;经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为不大于T2,且大于T1的值,此时环境亮度为中亮度,此时模糊量应为B;经过探测,当前的环境亮度之下,普通曝光模式的曝光时间t为不大于T1的值,此时环境亮度为低亮度,此时模糊量应为C。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. The camera device determines the amount of blur corresponding to the ambient brightness, which may be a value within the range of the blur amount corresponding to the ambient brightness, or may be the maximum value within the range of the blur amount corresponding to the ambient brightness. For example, after detection, under the current ambient brightness, the exposure time t of the normal exposure mode is greater than the value of T2, and the ambient brightness is low brightness, and the amount of blur should be A; after detection, under the current ambient brightness, The exposure time t of the normal exposure mode is not more than T2, and is greater than the value of T1. At this time, the ambient brightness is medium brightness, and the blur amount should be B; after the detection, the current ambient brightness, the exposure time of the normal exposure mode t is a value not greater than T1, and the ambient brightness is low brightness at this time, and the amount of blur should be C. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,摄像装置根据模糊量和抖动量计算出第一曝光时间,包括:摄像装置将模糊量除以抖动量,得到第一曝光时间。可见第一曝光时间与抖动量成反比,与模糊量成正比,且通过将模糊量除以抖动量,可更加准确的得 到第一曝光时间,进而更加准确的确定出目标曝光时间。Optionally, the imaging device calculates the first exposure time according to the amount of blur and the amount of jitter, including: the camera divides the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, proportional to the amount of blur, and can be more accurately obtained by dividing the amount of blur by the amount of jitter. By the first exposure time, the target exposure time is more accurately determined.
具体来说,可选地,不考虑噪声及去噪时,用公式(2)表示模糊量、抖动量和曝光时间之间的关系:Specifically, optionally, when noise and denoising are not considered, the relationship between the amount of blur, the amount of jitter, and the exposure time is expressed by equation (2):
Figure PCTCN2016080379-appb-000001
Figure PCTCN2016080379-appb-000001
在公式(2)中,T为曝光的开始时刻,Δt为曝光时间;Sx(t)为时刻t沿x轴的总抖动速度;其中,
Figure PCTCN2016080379-appb-000002
表示从曝光的开始时刻T起,镜头在x轴上的移动距离,
Figure PCTCN2016080379-appb-000003
表示对Sx(t)在时间上积分之后所得到值中所能取到的最大值,等于x轴的模糊量blurx
Figure PCTCN2016080379-appb-000004
为Sx的预期均值;Sy(t)为时刻t沿y轴的总抖动速度;
Figure PCTCN2016080379-appb-000005
表示从曝光的开始时刻T起,镜头在y轴上的移动距离;
Figure PCTCN2016080379-appb-000006
表示对Sy(t)在时间上积分之后所得到值的最大值,等价于y轴的模糊量blury
Figure PCTCN2016080379-appb-000007
为Sy的预期均值。
In the formula (2), T is the start time of the exposure, Δt is the exposure time; S x (t) is the total jitter speed along the x-axis at the time t;
Figure PCTCN2016080379-appb-000002
Indicates the moving distance of the lens on the x-axis from the start time T of the exposure,
Figure PCTCN2016080379-appb-000003
Represents the maximum value that can be obtained for the value obtained after S x (t) is integrated over time, equal to the blur amount blur x of the x-axis;
Figure PCTCN2016080379-appb-000004
Is the expected mean of S x ; S y (t) is the total jitter velocity along the y-axis at time t;
Figure PCTCN2016080379-appb-000005
Indicates the moving distance of the lens on the y-axis from the start time T of the exposure;
Figure PCTCN2016080379-appb-000006
Represents the maximum value of the value obtained after integrating S y (t) over time, equivalent to the blur amount blur y of the y-axis;
Figure PCTCN2016080379-appb-000007
Is the expected mean of S y .
图2a示例性示出本发明实施例提供的抖动量和曝光时间的关系的示意图,如图2a所示,横坐标2101表示抖动量,纵坐标2102表示曝光时间,曲线2103表示摄像设备包括OIS功能时抖动量与曝光时间之间的关系,曲线2104表示摄像设备不包括OIS功能时抖动量与曝光时间之间的关系。从曲线2103和曲线2104可看出,抖动量越大,曝光时间越短。该曝光时间可称为安全快门时间,对于包括OIS功能的摄像设备而言,安全快门时间随着抖动量的增加降低的速度较慢;而对于不包括OIS功能的摄像设备而言,安全快门时间随着抖动量的增加降低的速度较块。2a is a schematic diagram showing the relationship between the amount of jitter and the exposure time provided by the embodiment of the present invention. As shown in FIG. 2a, the abscissa 2101 represents the amount of jitter, the ordinate 2102 represents the exposure time, and the curve 2103 represents the imaging device including the OIS function. The relationship between the amount of time jitter and the exposure time, and the curve 2104 indicates the relationship between the amount of jitter and the exposure time when the image pickup apparatus does not include the OIS function. As can be seen from the curve 2103 and the curve 2104, the larger the amount of jitter, the shorter the exposure time. The exposure time can be referred to as a safe shutter time. For an imaging device including an OIS function, the safety shutter time is slowed down as the amount of jitter increases; and for an imaging device not including the OIS function, the shutter time is safe. As the amount of jitter increases, the speed is reduced compared to the block.
本发明实施例中,图像的清晰度由两个参数决定,模糊量和曝光时间;曝光时间与抖动量的乘积与模糊量成正比,也就是说,抖动量一定的情况下,曝光时间越长,因抖动量引起的模糊量越大。而本发明实施例中通过上述方 法流程所确定出的第一曝光时间为:满足图像模糊量的要求时的最长的曝光时间,可见,第一曝光时间即满足了图像的模糊量要求,也尽量延长了时间;另一方面,由于曝光时间越长,感光度越低,因此图像的噪声也会越少,因此,可见,本发明实施例中第一曝光时间同时满足了图像的模糊量和噪声的要求,提高了图像的清晰度。In the embodiment of the present invention, the sharpness of the image is determined by two parameters, the amount of blur and the exposure time; the product of the exposure time and the amount of jitter is proportional to the amount of blur, that is, the longer the exposure time, the longer the exposure time is. The amount of blur caused by the amount of jitter is larger. In the embodiment of the present invention, the above-mentioned side is adopted. The first exposure time determined by the process is: the longest exposure time when the image blur amount is satisfied. It can be seen that the first exposure time satisfies the image blur quantity requirement and also prolongs the time as much as possible; As the exposure time is longer, the sensitivity is lower, so the noise of the image is less. Therefore, it can be seen that the first exposure time in the embodiment of the present invention satisfies the requirements of the image blur amount and noise, and improves the image. Sharpness.
可选地,摄像装置至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间,包括:至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。Optionally, the imaging device determines, according to at least the ambient brightness and the amount of shaking, the target exposure time for capturing the image to be captured, including: calculating the first exposure time according to at least the ambient brightness and the amount of jitter; from the first exposure time and the second The minimum value is determined as the target exposure time in the exposure time; wherein, the second exposure time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
具体来说,摄像装置在确定目标曝光时间之前,会根据当前的环境亮度,以及忽略抖动量,即假设抖动量为零的情况下,计算出第二曝光时间。该第二曝光时间的计算方法可用现有技术中的计算公式即可,即仅仅根据当前的环境亮度确定第二曝光时间。之后由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间,此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提供的方法更进一步的提升了图像的清晰度。Specifically, the imaging device calculates the second exposure time based on the current ambient brightness and the amount of jitter, that is, assuming that the amount of jitter is zero, before determining the target exposure time. The calculation method of the second exposure time can be performed by using a calculation formula in the prior art, that is, determining the second exposure time based only on the current ambient brightness. Then, since the second exposure time is the exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is one. The aspect meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so the image is not added with extra noise; secondly, the target exposure time is less than the first exposure time, so in the case of jitter Further reducing the amount of blurring of the image further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered. The influence of the image noise, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, The noise of the image is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
本发明实施例中,可选地,摄像装置根据环境亮度和抖动量,确定出摄像装置的目标曝光时间之后,摄像装置根据目标曝光时间计算第一感光度。 可选地,摄像装置使用自动曝光(Automatic Exposure,简称AE)算法,根据目标曝光时间计算第一感光度。本发明实施例中的AE算法为本领域技术人员常用的一种算法,具体来说自动曝光就是相机根据光线条件自动确定曝光量。可根据实际情况自行确定。In the embodiment of the present invention, optionally, after the imaging device determines the target exposure time of the imaging device according to the ambient brightness and the amount of jitter, the imaging device calculates the first sensitivity according to the target exposure time. Optionally, the camera uses an Automatic Exposure (AE) algorithm to calculate the first sensitivity according to the target exposure time. The AE algorithm in the embodiment of the present invention is an algorithm commonly used by those skilled in the art. Specifically, the automatic exposure is that the camera automatically determines the exposure amount according to the lighting condition. It can be determined according to the actual situation.
在确定第一感光度大于感光度阈值时,将感光度阈值作为摄像装置的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为摄像装置的目标感光度。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。When it is determined that the first sensitivity is greater than the sensitivity threshold, the sensitivity threshold is used as the target sensitivity of the imaging device; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is used as the target sensitivity of the imaging device. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
本发明实施例中,感光度是胶片对光线的化学反应速度,也是制造胶片行业中感光速度的标准。软片(胶片)对光的敏感度;低感光度指(International Standardization Organization photosensibility,简称感光度)100以下的软片(胶片),中感光度指感光度200~800,高感光度为感光度800以上。用传统相机时,我们可因应拍摄环境的亮度来选购不同感光度(速度)的底片,例如一般阴天的环境可用ISO200,黑暗如舞台,演唱会的环境可用ISO400或更高,而数码相机内也有类似的功能,它借着改变感光芯片里讯号放大器的放大倍数来改变ISO值,但当提升ISO值时,放大器也会把讯号中的噪声放大,产生粗微粒的影像。In the embodiment of the present invention, the sensitivity is the chemical reaction speed of the film to the light, and is also the standard for the photosensitive speed in the film industry. The sensitivity of the film (film) to light; the low sensitivity refers to the film (film) of 100 or less (International Standardization Organization photosensibility), the medium sensitivity refers to the sensitivity of 200 to 800, and the high sensitivity is the sensitivity of 800 or more. . When using a conventional camera, we can purchase different sensitivity (speed) negatives depending on the brightness of the shooting environment. For example, the general cloudy environment can use ISO200, the darkness is like the stage, the concert environment can be ISO400 or higher, and the digital camera. There is a similar function in it, which changes the ISO value by changing the amplification factor of the signal amplifier in the sensor chip, but when the ISO value is raised, the amplifier also amplifies the noise in the signal to produce an image of coarse particles.
图2b示例性示出了本发明实施例提供的一种图像拍摄参数的确定方法的流程示意图,如图2b所示,该方法包括:FIG. 2b is a schematic flow chart showing a method for determining image capturing parameters according to an embodiment of the present invention. As shown in FIG. 2b, the method includes:
步骤2201,摄像装置计算摄像装置抖动量和环境亮度;Step 2201: The camera device calculates the amount of camera shake and the ambient brightness;
步骤2202,摄像装置判断环境亮度属于低亮度、中亮度还是高亮度;若环境亮度属于高亮度,则执行步骤2203;若环境亮度属于中亮度,则执行步 骤2204;若环境亮度属于低亮度,则执行步骤2205; Step 2202, the imaging device determines whether the ambient brightness belongs to low brightness, medium brightness or high brightness; if the ambient brightness belongs to high brightness, step 2203 is performed; if the ambient brightness belongs to medium brightness, step is performed Step 2204; If the ambient brightness is low brightness, step 2205 is performed;
步骤2203,确定环境亮度对应的模糊量为A,将A除以抖动量,得到第一曝光时间; Step 2203, determining that the amount of blur corresponding to the ambient brightness is A, and dividing A by the amount of jitter to obtain a first exposure time;
步骤2204,确定环境亮度对应的模糊量为B,将B除以抖动量,得到第一曝光时间; Step 2204, determining that the amount of blur corresponding to the ambient brightness is B, and dividing B by the amount of jitter to obtain a first exposure time;
步骤2205,确定环境亮度对应的模糊量为C,将C除以抖动量,得到第一曝光时间; Step 2205, determining that the amount of blur corresponding to the ambient brightness is C, and dividing C by the amount of jitter to obtain a first exposure time;
步骤2206,摄像装置从第一曝光时间和预设的第二曝光时间中确定出最小值,作为目标曝光时间; Step 2206, the camera determines a minimum value from the first exposure time and the preset second exposure time as the target exposure time;
步骤2207,摄像装置根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为摄像装置的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为摄像装置的目标感光度; Step 2207, the imaging device calculates a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, the sensitivity threshold is used as the target sensitivity of the imaging device; and determining that the first sensitivity is not greater than the sensitivity threshold When the first sensitivity is used as the target sensitivity of the imaging device;
步骤2208,使用目标曝光时间和目标感光度进行图像拍摄。 Step 2208, image capture is performed using the target exposure time and the target sensitivity.
本发明实施例中进行图像拍摄时可进入单帧拍摄和多帧拍摄,具体使用单帧拍摄还是多帧拍摄可根据实际情况进行确定,本发明实施例不做限制。In the embodiment of the present invention, the single-frame shooting and the multi-frame shooting may be performed when the image is taken, and the single-frame shooting or the multi-frame shooting may be determined according to the actual situation, which is not limited in the embodiment of the present invention.
实施方式二Embodiment 2
具体来说,摄像装置根据环境亮度和抖动量计算出第一曝光时间之前,摄像装置先确定出环境亮度。本发明实施例中确定出环境亮度的方式有多种,本发明实施例中提供用于确定出环境亮度的方式参见实施方式一种,在此不再赘述。Specifically, before the imaging device calculates the first exposure time based on the ambient brightness and the amount of jitter, the imaging device first determines the ambient brightness. The manner of determining the ambient brightness in the embodiment of the present invention is various. The manner for determining the ambient brightness in the embodiment of the present invention is described in the embodiment, and details are not described herein again.
本发明实施例中,图像的清晰度受模糊量和噪声的影响,图像的清晰度与模糊量和噪声均成反比;噪声与感光度成正比,感光度与曝光时间成反比;在抖动一定的情况下,模糊量与曝光时间成正比。可选地,该关系可通过公式(3)了描述:In the embodiment of the present invention, the sharpness of the image is affected by the amount of blur and noise, and the sharpness of the image is inversely proportional to the amount of blur and noise; the noise is proportional to the sensitivity, and the sensitivity is inversely proportional to the exposure time; In the case, the amount of blur is proportional to the exposure time. Alternatively, the relationship can be described by equation (3):
Figure PCTCN2016080379-appb-000008
Figure PCTCN2016080379-appb-000008
在公式(3)中,quality为图像清晰度,blur为模糊量;λ为噪声影响系 数;ISO为感光度;Δt为第一曝光时间;S为抖动量。可选地,
Figure PCTCN2016080379-appb-000009
Sx为沿x轴的抖动量,Sy为沿y轴的抖动量。
In equation (3), quality is the image sharpness, blur is the blur amount; λ is the noise influence coefficient; ISO is the sensitivity; Δt is the first exposure time; S is the jitter amount. Optionally,
Figure PCTCN2016080379-appb-000009
S x is the amount of jitter along the x-axis, and S y is the amount of jitter along the y-axis.
通过公式(3)以及相关论述可知,理论上,存在一个曝光时间,以使图像最清晰。From equation (3) and related discussion, theoretically, there is an exposure time to make the image clearest.
本发明实施例中,可通过多种方式获取环境亮度与噪声影响系数的对应关系,一种可选地实施方式为,可使用户在一个固定的场景中,设置多个不同的环境亮度,并在不同的环境亮度下拍摄图像,之后比较不同亮度下噪声及及去噪参数对图像的影响,之后确定出不同的环境亮度对应的噪声影响系数。In the embodiment of the present invention, the correspondence between the ambient brightness and the noise influence coefficient can be obtained in a plurality of manners. In an optional implementation manner, the user can set a plurality of different ambient brightness in a fixed scene, and The images are taken under different ambient brightness, and then the effects of noise and denoising parameters on the image are compared under different brightness, and then the noise influence coefficients corresponding to different ambient brightness are determined.
本发明实施例中,在获取环境亮度与噪声影响系数的对应关系之后,可选地,摄像装置根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数越大;摄像装置根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置根据噪声影响系数和抖动量,计算出第一曝光时间。In the embodiment of the present invention, after acquiring the correspondence between the ambient brightness and the noise influence coefficient, the camera device may determine the noise influence coefficient corresponding to the ambient brightness according to the corresponding relationship between the preset ambient brightness and the noise influence coefficient; The brighter the ambient brightness, the larger the noise influence coefficient; the imaging device calculates the first exposure time according to the noise influence coefficient and the shake amount. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging device calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,根据公式(4)计算第一曝光时间:Optionally, the first exposure time is calculated according to formula (4):
Figure PCTCN2016080379-appb-000010
Figure PCTCN2016080379-appb-000010
在公式(4)中,λ为噪声影响系数;Δt为第一曝光时间;S为抖动量。In the formula (4), λ is the noise influence coefficient; Δt is the first exposure time; and S is the jitter amount.
可选地,摄像装置根据环境亮度和抖动量计算出第一曝光时间;摄像装置从第一曝光时间和预设的第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间。具体论述参见实施方式一种,在此不再赘述。Optionally, the imaging device calculates a first exposure time according to the ambient brightness and the amount of jitter; the imaging device determines a minimum value from the first exposure time and the preset second exposure time as the target exposure time; wherein, the second exposure The time is the exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero. For specific discussion, refer to one embodiment, and details are not described herein again.
本发明实施例中,可选地,摄像装置根据环境亮度和抖动量,确定出摄像装置的目标曝光时间之后,摄像装置根据目标曝光时间计算第一感光度; 在确定第一感光度大于感光度阈值时,将感光度阈值作为摄像装置的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为摄像装置的目标感光度。具体论述参见实施方式一种,在此不再赘述。In the embodiment of the present invention, optionally, after the imaging device determines the target exposure time of the imaging device according to the ambient brightness and the amount of jitter, the imaging device calculates the first sensitivity according to the target exposure time; When it is determined that the first sensitivity is greater than the sensitivity threshold, the sensitivity threshold is used as the target sensitivity of the imaging device; when it is determined that the first sensitivity is not greater than the sensitivity threshold, the first sensitivity is used as the target sensitivity of the imaging device. For specific discussion, refer to one embodiment, and details are not described herein again.
上述实施方式一和实施方式二中,均需要计算抖动量。本发明实施例中提供一种可选地的抖动量的计算方式,如下述内容所示。本发明实施例中的x轴、y轴和z轴均为图1中所示的摄像机坐标系下的x轴、y轴和z轴,即z轴为摄像装置的光轴。In the first embodiment and the second embodiment described above, it is necessary to calculate the amount of jitter. An embodiment of the method for calculating the amount of jitter is provided in the embodiment of the present invention, as shown in the following. The x-axis, the y-axis, and the z-axis in the embodiment of the present invention are the x-axis, the y-axis, and the z-axis in the camera coordinate system shown in FIG. 1, that is, the z-axis is the optical axis of the imaging device.
本发明实施例中对抖动速度的计算如下:The calculation of the jitter speed in the embodiment of the present invention is as follows:
第一,针对绕x轴或y轴的旋转抖动,绕x轴或y轴的旋转抖动所造成的图像的模糊量可通过公式(5)确定:First, for the rotational jitter around the x-axis or the y-axis, the amount of blurring of the image caused by the rotational jitter around the x-axis or the y-axis can be determined by equation (5):
bxyx=v×tan(θ)……公式(5)b xyx =v×tan(θ)...Formula (5)
在公式(5)中,θ为抖动角度;v为像距,即v为摄像设备的焦平面到镜头的距离;其中,v=f+offset;f为摄像设备的焦距;offset为对焦距离,即offset为摄像设备在对焦过程中摄像设备的马达的可移动的距离;bxyx为绕x轴或y轴的旋转抖动所造成的图像的模糊量。In formula (5), θ is the jitter angle; v is the image distance, that is, v is the distance from the focal plane of the imaging device to the lens; wherein v=f+offset; f is the focal length of the imaging device; offset is the focusing distance, That is, offset is the movable distance of the motor of the imaging apparatus during the focusing process of the imaging apparatus; b xyx is the amount of blurring of the image caused by the rotational jitter around the x-axis or the y-axis.
本发明实施例中,抖动角度可为与x轴和y轴确定的平面所垂直的直线之间的角度。In an embodiment of the invention, the angle of dither may be the angle between a line perpendicular to the plane defined by the x-axis and the y-axis.
第二,针对绕z轴的旋转抖动,因绕z轴的旋转抖动,与摄像设备的图像传感器的中心相距r的像素对应的图像的模糊量可通过公式(6)确定:Second, for the rotational jitter around the z-axis, the amount of blur of the image corresponding to the pixel of the image sensor from the center of the image sensor r by the rotation jitter about the z-axis can be determined by the formula (6):
bzx=r×cos(θ)……公式(6)b zx =r×cos(θ)...Formula (6)
在公式(6)中,θ为抖动角度;r为摄像设备中的图像传感器上的像素距离图像传感器中心的距离;bzx为绕z轴的旋转抖动所造成的图像的模糊量。In the formula (6), θ is the shake angle; r is the distance of the pixel on the image sensor in the image pickup device from the center of the image sensor; b zx is the blur amount of the image caused by the rotational shake around the z-axis.
第三,针对沿x轴或y轴的平移抖动,沿x轴或y轴的平移抖动所造成的图像的模糊量可通过公式(7)确定:Third, for translational jitter along the x-axis or y-axis, the amount of blurring of the image caused by translational jitter along the x-axis or y-axis can be determined by equation (7):
bxyp=x*v/u……公式(7)b xyp =x*v/u...Formula (7)
在公式(7)中,x为沿x轴或y轴的平移抖动量;v为像距,即v为摄像设备的焦平面到镜头的距离;其中,v=f+offset;f为摄像设备的焦距;offset 为对焦距离,即offset为摄像设备在对焦过程中摄像设备的马达的可移动的距离;u满足
Figure PCTCN2016080379-appb-000011
bxyp为沿x轴或y轴的平移抖动所造成的图像的模糊量。
In formula (7), x is the amount of translational shake along the x-axis or y-axis; v is the image distance, ie, v is the focal plane-to-lens distance of the imaging device; where v=f+offset; f is the imaging device The focal length; offset is the focusing distance, that is, the offset is the movable distance of the motor of the imaging device during the focusing process of the imaging device;
Figure PCTCN2016080379-appb-000011
b xyp is the amount of blurring of the image caused by translational jitter along the x-axis or y-axis.
图2c示例性示出了本发明实施例提供的不同抖动类型与图像的模糊量的关系示意图,如图2c所示,横坐标表示对焦距离,纵坐标表示图像清晰度,曲线2301表示沿x轴和/或y轴的平移抖动且抖动量固定时,对焦距离与模糊量的关系曲线,曲线2302表示沿x轴和/或y轴的旋转抖动且抖动量固定时,对焦距离与模糊量的关系曲线。曲线2301可以看出,沿x轴和/或y轴平移抖动时,对焦距离越大,即镜头(lens)的移动量越小,图像的模糊量越小;曲线2302可以看出,沿x轴和/或y轴旋转抖动时,图像清晰度基本不受对焦距离的影响。2c is a schematic diagram showing the relationship between different types of jitter and the amount of blur of an image provided by an embodiment of the present invention. As shown in FIG. 2c, the abscissa indicates the focus distance, the ordinate indicates the image sharpness, and the curve 2301 indicates the x-axis. And/or the y-axis translational jitter and the amount of jitter is fixed, the relationship between the focus distance and the amount of blur, and the curve 2302 indicates the relationship between the focus distance and the amount of blur when the rotation jitter along the x-axis and/or the y-axis is fixed and the amount of jitter is fixed. curve. Curve 2301 shows that when the jitter is shifted along the x-axis and/or the y-axis, the focus distance is larger, that is, the smaller the amount of movement of the lens, the smaller the amount of blurring of the image; the curve 2302 can be seen along the x-axis. When and/or the y-axis is rotated, the image sharpness is substantially unaffected by the focus distance.
第四,针对沿z轴旋转所引起的平移抖动,假设以当前摄像设备的镜头(lens)的中心为原点,沿z轴旋转角度之后。摄像设备的速度传感器(a-sensor)的坐标通过公式(8)确定:Fourth, for the translational shake caused by the rotation along the z-axis, it is assumed that the center of the lens of the current imaging device is taken as the origin and after the angle is rotated along the z-axis. The coordinates of the speed sensor (a-sensor) of the imaging device are determined by the formula (8):
Figure PCTCN2016080379-appb-000012
Figure PCTCN2016080379-appb-000013
Figure PCTCN2016080379-appb-000012
which is
Figure PCTCN2016080379-appb-000013
在公式(8)中,θ为抖动角度;xa为摄像设备的速度传感器在抖动前的x轴坐标;ya为摄像设备的速度传感器在抖动前的y轴坐标;xa’为摄像设备的速度传感器在抖动后的x轴坐标;ya’为摄像设备的速度传感器在抖动后的y轴坐标;当角度θ较小时,cosθ趋近于1,sinθ趋近于θ,因此公式(8)简化为公式(9):In equation (8), θ is the jitter angle; x a is the x-axis coordinate of the speed sensor of the imaging device before the jitter; y a is the y-axis coordinate of the speed sensor of the imaging device before the jitter; x a 'is the imaging device The speed sensor is the x-axis coordinate after shaking; y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking; when the angle θ is small, cos θ approaches 1 and sin θ approaches θ, so the formula (8) ) simplified to equation (9):
Figure PCTCN2016080379-appb-000014
Figure PCTCN2016080379-appb-000015
Figure PCTCN2016080379-appb-000014
which is
Figure PCTCN2016080379-appb-000015
在公式(9)中,θ为抖动角度;xa为摄像设备的速度传感器在抖动前的x轴坐标;ya为摄像设备的速度传感器在抖动前的y轴坐标;xa’为摄像设备的速度传感器在抖动后的x轴坐标;ya’为摄像设备的速度传感器在抖动后的y轴坐标;Δx为摄像设备的速度传感器在抖动前后抖动后的x轴坐标的变化量; Δy为摄像设备的速度传感器在抖动前后抖动后的y轴坐标的变化量。In equation (9), θ is the jitter angle; x a is the x-axis coordinate of the speed sensor of the imaging device before the jitter; y a is the y-axis coordinate of the speed sensor of the imaging device before the jitter; x a 'is the imaging device The speed sensor is the x-axis coordinate after shaking; y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking; Δx is the amount of change of the x-axis coordinate of the speed sensor of the imaging device after shaking before and after shaking; Δy is The amount of change in the y-axis coordinate of the speed sensor of the imaging device after shaking before and after shaking.
通过公式(8)和公式(9)可知,沿z轴旋转的抖动量会带来沿x轴和/或y轴的平移方向的抖动。It can be seen from equations (8) and (9) that the amount of jitter rotating along the z-axis causes jitter in the translational direction along the x-axis and/or the y-axis.
本发明实施例中通过上述论述,得到以下可选地的抖动量的计算方法:Through the above discussion, in the embodiment of the present invention, the following optional calculation method of the jitter amount is obtained:
第五,针对沿x轴和/或y轴的旋转,通过公式(10)计算x轴和y轴的总抖动速度:Fifth, for the rotation along the x-axis and / or y-axis, the total jitter speed of the x-axis and the y-axis is calculated by equation (10):
Figure PCTCN2016080379-appb-000016
Figure PCTCN2016080379-appb-000016
在公式(10)中,Xr(q)为沿x轴的抖动对模糊量的影响;q为抖动频率;Hx(q)为频率为q时x轴的补偿系数;Yr(q)为沿y轴的抖动对模糊量的影响;Hy(q)为频率为q时y轴的补偿系数;Sqx为沿x轴的总抖动速度;Sqy为沿y轴的总抖动速度。In equation (10), X r (q) is the effect of jitter along the x-axis on the amount of blur; q is the jitter frequency; H x (q) is the compensation coefficient of the x-axis at a frequency of q; Y r (q) The effect of jitter on the y-axis on the amount of blur; H y (q) is the compensation coefficient of the y-axis at a frequency of q; S qx is the total jitter velocity along the x-axis; and S qy is the total jitter velocity along the y-axis.
本发明实施例中,可选地,摄像设备的马达的机械特性决定了Hx(q)和Hy(q)与抖动频率相关。可选地,可通过角速度传感器和速度传感器检测抖动数据,并对抖动数据进行频谱分析,得到抖动的相关参数,比如抖动频率等。In the embodiment of the present invention, optionally, the mechanical characteristics of the motor of the image pickup apparatus determine that H x (q) and H y (q) are related to the jitter frequency. Optionally, the jitter data may be detected by an angular velocity sensor and a speed sensor, and the jitter data may be subjected to spectrum analysis to obtain parameters related to the jitter, such as a jitter frequency.
由于人手抖动时的抖动频率主要集中于2Hz至10Hz的频率范围内,且OIS在2Hz至10Hz的频率范围内的性能参数通常稳定为一个值,基于此,可将公式(10)近似为公式(11):Since the jitter frequency when the hand is shaken is mainly concentrated in the frequency range of 2 Hz to 10 Hz, and the performance parameter of the OIS in the frequency range of 2 Hz to 10 Hz is generally stabilized to a value, based on this, the formula (10) can be approximated as a formula ( 11):
Figure PCTCN2016080379-appb-000017
Figure PCTCN2016080379-appb-000017
在公式(11)中,Xr(q)为沿x轴的抖动对模糊量的影响;q为抖动频率;Yr(q)为沿y轴的抖动对模糊量的影响;Q1为OIS的性能参数;Sqx为沿x轴的总抖动速度;Sqy为沿y轴的总抖动速度。In equation (11), X r (q) is the effect of jitter along the x-axis on the amount of blur; q is the jitter frequency; Y r (q) is the effect of jitter along the y-axis on the amount of blur; Q 1 is OIS Performance parameters; S qx is the total jitter speed along the x-axis; S qy is the total jitter speed along the y-axis.
进一步将公式(11)简化为公式(12) Further simplify equation (11) to equation (12)
Figure PCTCN2016080379-appb-000018
Figure PCTCN2016080379-appb-000018
在公式(12)中,Xr(q)为沿x轴的抖动对模糊量的影响;q为抖动频率;Yr(q)为沿y轴的抖动对模糊量的影响;Q1为OIS的性能参数;Sqx为沿x轴的总抖动速度;Sqy为沿y轴的总抖动速度。In equation (12), X r (q) is the effect of jitter along the x-axis on the amount of blur; q is the jitter frequency; Y r (q) is the effect of jitter along the y-axis on the amount of blur; Q 1 is OIS Performance parameters; S qx is the total jitter speed along the x-axis; S qy is the total jitter speed along the y-axis.
第六,针对绕z轴的旋转抖动,通过公式(13)计算与摄像设备的图像传感器的中心相距r的像素的平均抖动速度:Sixth, for the rotational jitter around the z-axis, the average jitter speed of the pixel at a distance r from the center of the image sensor of the imaging apparatus is calculated by the formula (13):
Z=Q2*r*cos(θ)……公式(13)Z=Q 2 *r*cos(θ)...Formula (13)
在公式(13)中,Z为与摄像设备的图像传感器的中心相距r的像素的平均抖动速度;Q2为OIS的性能参数;r为像素与摄像设备的图像传感器的中心的距离;θ为抖动角度。In the formula (13), Z is the average jitter speed of the pixel at a distance r from the center of the image sensor of the image pickup apparatus; Q 2 is a performance parameter of the OIS; r is a distance between the pixel and the center of the image sensor of the image pickup apparatus; θ is Jitter angle.
针对绕z轴的旋转抖动,通过公式(14)计算因绕z轴抖动带来的沿x轴和y轴的总抖动速度:For the rotational jitter around the z-axis, the total jitter velocity along the x-axis and the y-axis due to the z-axis jitter is calculated by equation (14):
Figure PCTCN2016080379-appb-000019
Figure PCTCN2016080379-appb-000019
在公式(14)中,Q2为OIS的性能参数;Resx为沿x轴的分辨率;Resy为沿y轴的分辨率;Sresx为沿x轴的总抖动速度;Sresy为沿y轴的总抖动速度。In equation (14), Q 2 is a performance parameter of the OIS; Res along the x-axis resolution x; y Res resolution along the y axis; S resx along the x-axis velocity total jitter; S resy along The total jitter speed of the y-axis.
第七,针对摄像设备中为两轴OIS时,针对沿x轴和y轴的平移,通过公式(15)计算沿x轴和y轴的总抖动速度:Seventh, for the two-axis OIS in the imaging device, for the translation along the x-axis and the y-axis, the total jitter velocity along the x-axis and the y-axis is calculated by equation (15):
Figure PCTCN2016080379-appb-000020
Figure PCTCN2016080379-appb-000020
在公式(15)中,xa’为摄像设备的速度传感器在抖动后的x轴坐标;ya’为摄像设备的速度传感器在抖动后的y轴坐标;v为像距,即v为摄像设备的焦平面到镜头的距离;其中,v=f+offset;f为摄像设备的焦距;offset为对焦 距离,即offset为摄像设备在对焦过程中摄像设备的马达的可移动的距离;u满足
Figure PCTCN2016080379-appb-000021
Sax为沿x轴的总抖动速度;Say为沿y轴的总抖动速度。
In formula (15), x a ' is the x-axis coordinate of the speed sensor of the imaging device after shaking; y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking; v is the image distance, that is, v is the camera The focal plane to the lens distance of the device; wherein, v=f+offset; f is the focal length of the imaging device; offset is the focusing distance, that is, the offset is the movable distance of the motor of the imaging device during the focusing process of the imaging device;
Figure PCTCN2016080379-appb-000021
S ax is the total jitter speed along the x-axis; Say is the total jitter speed along the y-axis.
针对摄像设备中为四轴OIS时,针对沿x轴和y轴的平移,通过公式(16)计算沿x轴和y轴的总抖动速度:For the four-axis OIS in the imaging device, the total jitter velocity along the x-axis and the y-axis is calculated by equation (16) for translation along the x-axis and the y-axis:
Figure PCTCN2016080379-appb-000022
Figure PCTCN2016080379-appb-000022
在公式(16)中,xa’为摄像设备的速度传感器在抖动后的x轴坐标;ya’为摄像设备的速度传感器在抖动后的y轴坐标;v为像距,即v为摄像设备的焦平面到镜头的距离;其中,v=f+offset;f为摄像设备的焦距;offset为对焦距离,即offset为摄像设备在对焦过程中摄像设备的马达的可移动的距离;u满足
Figure PCTCN2016080379-appb-000023
Sax为沿x轴的总抖动速度;Say为沿y轴的总抖动速度;Q3为OIS的性能参数。
In formula (16), x a ' is the x-axis coordinate of the speed sensor of the imaging device after shaking; y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking; v is the image distance, that is, v is the camera The focal plane to the lens distance of the device; wherein, v=f+offset; f is the focal length of the imaging device; offset is the focusing distance, that is, the offset is the movable distance of the motor of the imaging device during the focusing process of the imaging device;
Figure PCTCN2016080379-appb-000023
S ax is the total jitter speed along the x-axis; Say is the total jitter speed along the y-axis; Q 3 is the performance parameter of the OIS.
综上,可选地,本发明实施例提供一种可选地实施方式,用于确定摄像装置的抖动量。In summary, an embodiment of the present invention provides an optional implementation for determining the amount of jitter of the camera.
可选地,摄像装置计算摄像装置抖动量通过公式(17)计算:Optionally, the camera device calculates the amount of camera shake by the formula (17):
S=Q1×Rq+Q2×Rres+Q3×Ra……公式(17)S=Q 1 ×R q +Q 2 ×R res +Q 3 ×R a ......Formula (17)
在公式(17)中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量;Q1、Q2和Q3为常数项。可选地,Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于摄像装置的摄像机坐标系,且摄像装置的光轴为z轴。In equation (17), R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; and R a is the amount of jitter caused by translation along the x-axis and the y-axis; 1 , Q 2 and Q 3 are constant terms. Optionally, the values of Q 1 , Q 2 , and Q 3 are determined according to the x-axis, the y-axis, and the z-axis of the anti-shake; S is the amount of camera shake; the x-axis, the y-axis, and the z-axis belong to the camera coordinate system of the camera. And the optical axis of the imaging device is the z-axis.
可见,公式(17)中的各个项的系数可以根据摄像装置的具体防抖参数进行调整,如此,公式(17)可以更好的兼容各种防抖参数的摄像装置,从而更加准确的计算出各种摄像装置所对应的抖动量。It can be seen that the coefficients of each item in the formula (17) can be adjusted according to the specific anti-shake parameters of the camera device. Thus, the formula (17) can be more compatible with various anti-shake parameters of the camera device, thereby more accurately calculating The amount of jitter corresponding to various imaging devices.
可选地,在确定摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进 行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3。如此,可使上述公式(17)更好的兼容各种防抖参数的摄像装置,比如两轴防抖、四轴防抖和五轴防抖的摄像装置等,从而更加准确的计算出各种摄像装置所对应的抖动量。可选地,Ra与对焦距离成反比,如此,沿x轴和y轴平移所引起的抖动量Ra可集合对焦距离更加准确的进行计算,从而更加准确的计算出摄像装置所对应的抖动量。Optionally, when it is determined that the imaging device comprises a gyroscope, and for anti-shake around the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; determining that the imaging device includes the accelerometer, and When anti-shake is performed about the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 . In this way, the above formula (17) can be better compatible with various anti-shake parameters of the camera device, such as two-axis anti-shake, four-axis anti-shake and five-axis anti-shake camera, etc., thereby more accurately calculating various The amount of jitter corresponding to the imaging device. Optionally, R a is inversely proportional to the focusing distance. Thus, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focusing distance, thereby more accurately calculating the jitter corresponding to the imaging device. the amount.
可选地,上述公式(17)可详细写为公式(18)的形式:Alternatively, the above formula (17) can be written in the form of the formula (18) in detail:
Figure PCTCN2016080379-appb-000024
Figure PCTCN2016080379-appb-000024
在公式(18)中,Sx为沿x轴的总抖动速度;Sy为沿y轴的总抖动速度;Q1、Q2和Q3均为OIS的性能参数;Xr(q)为沿x轴的抖动对模糊量的影响;q为抖动频率;Yr(q)为沿y轴的抖动对模糊量的影响;Resx为沿x轴的分辨率;Resy为沿y轴的分辨率;xa’为摄像设备的速度传感器在抖动后的x轴坐标;ya’为摄像设备的速度传感器在抖动后的y轴坐标;v为像距,即v为摄像设备的焦平面到镜头的距离;其中,v=f+offset;f为摄像设备的焦距;offset为对焦距离,即offset为摄像设备在对焦过程中摄像设备的马达的可移动的距离;u满足
Figure PCTCN2016080379-appb-000025
*表示乘法。
In equation (18), S x is the total jitter velocity along the x-axis; S y is the total jitter velocity along the y-axis; Q 1 , Q 2 and Q 3 are the performance parameters of OIS; X r (q) is The effect of jitter along the x-axis on the amount of blur; q is the jitter frequency; Y r (q) is the effect of jitter along the y-axis on the amount of blur; Res x is the resolution along the x-axis; and Res y is along the y-axis Resolution; x a ' is the x-axis coordinate of the speed sensor of the imaging device after shaking; y a ' is the y-axis coordinate of the speed sensor of the imaging device after shaking; v is the image distance, that is, v is the focal plane of the imaging device The distance to the lens; wherein, v=f+offset; f is the focal length of the imaging device; offset is the focusing distance, that is, the offset is the movable distance of the motor of the imaging device during the focusing process of the imaging device;
Figure PCTCN2016080379-appb-000025
* indicates multiplication.
本发明实施例中摄像装置的抖动量可为本发明实施例中的总抖动速度,比如公式(17)中的抖动量S可包括公式(18)中的沿x轴的总抖动速度Sx和沿y轴的总抖动速度Sy。本发明实施例可选地,抖动量S满足公式(19):The amount of jitter of the image pickup apparatus in the embodiment of the present invention may be the total jitter speed in the embodiment of the present invention. For example, the jitter amount S in the formula (17) may include the total jitter speed S x along the x-axis in the formula (18) and The total jitter speed S y along the y-axis. In an embodiment of the invention, optionally, the jitter amount S satisfies the formula (19):
Figure PCTCN2016080379-appb-000026
Figure PCTCN2016080379-appb-000026
在公式(19)中,S为本发明实施例中的抖动量,S也可称为抖动速度,Sx为沿x轴的总抖动速度;Sy为沿y轴的总抖动速度。In the formula (19), S is the amount of jitter in the embodiment of the invention, S may also be referred to as the jitter speed, S x is the total jitter speed along the x-axis; and S y is the total jitter speed along the y-axis.
在公式(17)和公式(18)中,且公式(17)中Rq包括公式(18)中的 Rqx和Rqy;公式(17)中Rres包括公式(18)中的Rresx和Rresy;公式(17)中Ra包括公式(18)中的Rax和Ray。对比公式(17)和公式(18),可得到以下信息:In the formula (17) and the formula (18), and R q in the formula (17) includes R qx and R qy in the formula (18); R res in the formula (17) includes R resx and in the formula (18) R resy ; R a in the formula (17) includes R ax and R ay in the formula (18). Comparing equation (17) with equation (18), you can get the following information:
Figure PCTCN2016080379-appb-000027
Figure PCTCN2016080379-appb-000027
Figure PCTCN2016080379-appb-000028
Figure PCTCN2016080379-appb-000028
Figure PCTCN2016080379-appb-000029
Figure PCTCN2016080379-appb-000029
本发明实施例中Q1、Q2和Q3可根据具体实施场景确定,本发明实施例提供一种可选地的取值示例。可选地,在公式(18)中:In the embodiment of the present invention, Q 1 , Q 2 , and Q 3 may be determined according to a specific implementation scenario, and an embodiment of the present invention provides an optional value example. Alternatively, in equation (18):
摄像装置在确定摄像设备不包括OIS功能时,则可令Q1=1,Q2=1,Q3=1;When the camera device determines that the camera device does not include the OIS function, it can make Q 1 =1, Q 2 =1, and Q 3 =1;
摄像装置在确定摄像设备仅仅不包括沿z轴的旋转防抖时,即该摄像装置包括沿x轴和y轴的旋转防抖,以及沿x轴和y轴的平移防抖,则Q2==1;The imaging device determines that the imaging device only includes rotational anti-shake along the z-axis, that is, the imaging device includes rotational anti-shake along the x-axis and the y-axis, and translational anti-shake along the x-axis and the y-axis, then Q 2 = =1;
摄像装置在确定摄像装置防抖的轴为基于陀螺仪的两轴防抖时,即该摄像装置包括沿x轴和y轴的旋转防抖,则可令Q2=Q3=1,Q1==0.05;The imaging device determines that the anti-shake axis of the camera is two-axis anti-shake based on the gyroscope, that is, the camera includes rotation anti-shake along the x-axis and the y-axis, so that Q 2 = Q 3 =1, Q 1 ==0.05;
摄像装置在确定摄像装置防抖的轴为基于加速度器的两轴防抖时,即该摄像装置包括沿沿z轴的旋转防抖,则可令Q1=Q3=1,Q2=0.05;When the camera determines that the anti-shake axis of the camera is an accelerometer-based two-axis anti-shake, that is, the camera includes anti-shake along the z-axis, Q 1 = Q 3 =1, Q 2 = 0.05 ;
摄像装置在确定摄像装置防抖的轴为五轴防抖时,即该摄像装置包括沿x轴和y轴的旋转防抖,沿z轴的旋转防抖,以及沿x轴和y轴的平移防抖,则可令Q1=Q2=Q3=0.05。The camera device determines that the anti-shake axis of the camera device is five-axis anti-shake, that is, the camera device includes rotation anti-shake along the x-axis and the y-axis, anti-shake along the z-axis, and translation along the x-axis and the y-axis. For anti-shake, Q 1 = Q 2 = Q 3 = 0.05.
可选地,本发明实施例中摄像装置可根据摄像装置实际的防抖情况,自适应的选择抖动量的计算公式中的常数项参数,即摄像装置可自适应的确定与自身相匹配的抖动量计算公式。 Optionally, in the embodiment of the present invention, the camera device can adaptively select a constant term parameter in the calculation formula of the jitter amount according to the actual anti-shake condition of the camera device, that is, the camera device can adaptively determine the jitter matched with itself. The formula for calculating the amount.
从上述内容可看出,本发明实施例中,摄像装置获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。As can be seen from the above, in the embodiment of the present invention, the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
图3示例性示出了本发明实施例提供的另一种摄像装置的结构示意图。FIG. 3 is a schematic structural diagram of another image pickup apparatus according to an embodiment of the present invention.
基于相同构思,本发明实施例提供的另一种摄像装置,用于执行上述方法流程,如图3所示,本发明实施例提供一种摄像装置,该摄像装置300包括确定单元301和处理单元302:Based on the same concept, another camera device provided by an embodiment of the present invention is configured to perform the above method. As shown in FIG. 3, an embodiment of the present invention provides an image capturing device, which includes a determining unit 301 and a processing unit. 302:
本发明实施例提供一种摄像装置300,包括:确定单元301,用于获取摄像装置300的抖动量;确定待拍摄图像所处环境的环境亮度;处理单元302,用于至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。The embodiment of the present invention provides an image capturing apparatus 300, including: a determining unit 301, configured to acquire a shake amount of the image capturing apparatus 300; determine an ambient brightness of an environment in which the image to be captured is located; and a processing unit 302 configured to at least according to ambient brightness and jitter A quantity that determines a target exposure time for taking an image to be captured. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
可选地,处理单元302,用于至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间, 此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提供的方法更进一步的提升了图像的清晰度。Optionally, the processing unit 302 is configured to calculate a first exposure time according to at least an ambient brightness and a shake amount; determine a minimum value from the first exposure time and the second exposure time as a target exposure time; wherein, the second exposure The time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness. Since the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand It meets the noise requirement of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target exposure time is less than the first exposure time, so it can be further in the case of jitter Reduce the amount of blurring of the image, which further enhances the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, At this time, the target exposure time is selected as the first exposure time, and the target exposure time meets the fuzzy amount requirement, and since the value of the blur amount has been discussed before, the influence of image noise has been considered, that is, the image is made When the amount of blur meets the requirements, the maximum exposure time is obtained as much as possible. Therefore, the sensitivity of the image at this time is also the minimum value in the case where the amount of blur meets the requirements, so the noise of the image is also in the case where the amount of blur meets the requirements. The minimum value, therefore, the method provided by the embodiment of the present invention further improves the sharpness of the image.
可选地,处理单元302,用于确定出摄像装置300的应用场景;至少根据预设的应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时间更加符合当前的应用场景,由于用户在不同的应用场景下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, the processing unit 302 is configured to determine an application scenario of the camera device 300; and determine, according to a preset correspondence between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; The blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario. Since the user has different requirements for the amount of blur in different application scenarios, the amount of blur determined by the method is for the current application scenario of the user. , can be clear enough.
可选地,处理单元302,用于确定出摄像装置300的应用场景;至少根据预设的环境亮度、应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,可使第一曝光时间更加符合当前的应用场景,且也符合当前的环境亮度的条件,由于用户在不同的应用场景下,且不同的环境亮度条件下,对模糊量有不同的需求,因此,通过该方式确定出的模糊量对于用户当前的应用场景来说,可以足够清晰。Optionally, the processing unit 302 is configured to determine an application scenario of the camera device 300; and determine, according to a preset relationship between the preset ambient brightness, the application scenario, and the blur amount, the blur amount corresponding to the ambient brightness in the application scenario. The value range; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, the first exposure time can be more consistent with the current application scenario, and also meets the current ambient brightness condition. Since the user has different requirements for the amount of blur under different application scenarios and different ambient brightness conditions, Therefore, the amount of blur determined by this method can be sufficiently clear for the current application scenario of the user.
可选地,处理单元302,用于根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下, 调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。Optionally, the processing unit 302 is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness from the range of the blur quantity corresponding to the ambient brightness. The corresponding blur amount; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness. In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, Adjust the exposure time to coordinate the noise effects of the image to improve the sharpness of the image.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,根据模糊量和抖动量计算出第一曝光时间,包括:将模糊量除以抖动量,得到第一曝光时间。可见第一曝光时间与抖动量成反比,与模糊量成正比,且通过将模糊量除以抖动量,可更加准确的得到第一曝光时间,进而更加准确的确定出目标曝光时间。Optionally, calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time. It can be seen that the first exposure time is inversely proportional to the amount of jitter, and is proportional to the amount of blur, and by dividing the amount of blur by the amount of jitter, the first exposure time can be more accurately obtained, thereby more accurately determining the target exposure time.
可选地,处理单元302,用于根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数越大;根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置300根据噪声影响系数和抖动量,计算出第一曝光时间。Optionally, the processing unit 302 is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; The coefficient and the amount of jitter are used to calculate the first exposure time. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging apparatus 300 calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,处理单元302,还用于根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为待拍摄图像的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为待拍摄图像的目标感光度。。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。Optionally, the processing unit 302 is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. . In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
可选地,确定单元301,用于根据如下公式获取摄像装置300的抖动量:Optionally, the determining unit 301 is configured to obtain the amount of jitter of the camera 300 according to the following formula:
S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量; Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置300抖动量;x轴、y轴和z轴属于摄像装置300的摄像机坐标系,且摄像装置300的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter that rotates around the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of jitter of the imaging device 300; x-axis, y The axis and the z-axis belong to the camera coordinate system of the imaging apparatus 300, and the optical axis of the imaging apparatus 300 is the z-axis.
可选地,在确定摄像装置300包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置300包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3。Optionally, when it is determined that the imaging apparatus 300 includes the gyroscope, and the anti-shake is performed for the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; in determining that the imaging apparatus 300 includes the accelerometer, And for anti-shake around the z-axis rotation, Q2 is smaller than Q1, and Q2 is smaller than Q3.
可见,公式中的各个项的系数可以根据摄像装置300的具体防抖参数进行调整,如此,公式可以更好的兼容各种防抖参数的摄像装置300,从而更加准确的计算出各种摄像装置300所对应的抖动量。且,沿x轴和y轴平移所引起的抖动量Ra可集合对焦距离更加准确的进行计算,从而更加准确的计算出摄像装置300所对应的抖动量。It can be seen that the coefficients of the respective items in the formula can be adjusted according to the specific anti-shake parameters of the camera 300. Thus, the formula can be more compatible with the camera device 300 of various anti-shake parameters, thereby more accurately calculating various camera devices. The amount of jitter corresponding to 300. Moreover, the amount of jitter R a caused by the translation along the x-axis and the y-axis can be calculated more accurately by the focus distance, thereby more accurately calculating the amount of jitter corresponding to the imaging device 300.
从上述内容可看出,本发明实施例中,摄像装置获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。As can be seen from the above, in the embodiment of the present invention, the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
图4示例性示出了本发明实施例提供的另一种摄像装置的结构示意图。FIG. 4 is a schematic structural diagram of another image pickup apparatus according to an embodiment of the present invention.
基于相同构思,本发明实施例提供的另一种摄像装置,用于执行上述方法流程,如图4所示,本发明实施例提供一种摄像装置,摄像装置400包括摄像头模组401、显示器402、存储器403、一个或多个处理器404:Based on the same concept, another camera device provided by an embodiment of the present invention is configured to perform the above method. As shown in FIG. 4, an embodiment of the present invention provides an image capturing device. The camera device 400 includes a camera module 401 and a display 402. , memory 403, one or more processors 404:
摄像头模组401,用于采集待拍摄图像的画面;显示器402,用于显示摄像头模组401采集到的画面;存储器403,用于存储摄像头模组401采集到的画面;一个或多个处理器404,处理器404用于获取摄像装置400的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用 于拍摄待拍摄图像的目标曝光时间。a camera module 401 for capturing a picture of an image to be captured; a display 402 for displaying a picture captured by the camera module 401; a memory 403 for storing a picture captured by the camera module 401; and one or more processors 404, the processor 404 is configured to acquire the amount of jitter of the image capturing apparatus 400; determine the ambient brightness of the environment in which the image to be captured is located; and determine at least according to the ambient brightness and the amount of jitter. The target exposure time for taking the image to be captured.
可选地,摄像头模组401与显示器402、存储器403和处理器404分别连接,摄像头模组401所采集的待拍摄图像的画面可以传输至处理器404,使处理器404进行一些列处理,也可直接传输给显示器402,使显示器402直接显示该采集到的画面,也可传输至存储器403,以使存储器403对该采集到的画面进行存储。显示器402和摄像头模组401、存储器403和处理器404分别连接,显示器402可以直接显示摄像头模组401采集到的画面,也可显示经过处理器404进行处理之后的画面,也可显示存储器403中存储的当前或者历史采集到的画面。存储器403和摄像头模组401、显示器402和处理器404分别连接,存储器403可以将接收到的摄像头模组401传输的所采集到的画面进行存储,也可将处理器404传输的经过处理的画面进行存储,存储器403中也可存储相应程序或代码,以使处理器404读取存储器403中存储的程序或代码,进而执行本发明实施例中所提供的方法。处理器404分别与摄像头模组401、显示器402和存储器403分别连接,处理器404可直接接收到摄像头模组401传输的画面,进而对画面进行处理,之后可将处理后的画面传输给显示器402用于显示,或者传输给存储器403,以使存储器403进行存储。Optionally, the camera module 401 is connected to the display 402, the memory 403, and the processor 404, and the image of the image to be captured collected by the camera module 401 can be transmitted to the processor 404, so that the processor 404 performs some column processing. The display 402 can be directly transmitted to the display 402, and the display 402 can directly display the acquired picture, or can be transferred to the memory 403, so that the memory 403 stores the collected picture. The display 402 and the camera module 401, the memory 403 and the processor 404 are respectively connected. The display 402 can directly display the screen collected by the camera module 401, and can also display the screen after being processed by the processor 404, or can be displayed in the memory 403. Stored current or historically acquired images. The memory 403 is connected to the camera module 401, the display 402 and the processor 404, respectively. The memory 403 can store the collected images transmitted by the received camera module 401, and can also process the processed images transmitted by the processor 404. For storage, the corresponding program or code may also be stored in the memory 403 to cause the processor 404 to read the program or code stored in the memory 403 to perform the method provided in the embodiment of the present invention. The processor 404 is respectively connected to the camera module 401, the display 402 and the memory 403. The processor 404 can directly receive the image transmitted by the camera module 401, and then process the image, and then the processed image can be transmitted to the display 402. It is used for display or transferred to the memory 403 to cause the memory 403 to be stored.
如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
可选地,处理器404,用于至少根据环境亮度和抖动量计算出第一曝光时间;从第一曝光时间和第二曝光时间中确定出最小值,作为目标曝光时间;其中,第二曝光时间为在环境亮度下假设抖动量为零时所计算出的曝光时间。Optionally, the processor 404 is configured to calculate a first exposure time according to at least an ambient brightness and a jitter amount; determine a minimum value from the first exposure time and the second exposure time as a target exposure time; wherein, the second exposure The time is the exposure time calculated when the amount of jitter is assumed to be zero under ambient brightness.
由于第二曝光时间为抖动量为零的情况下环境亮度对应的曝光时间,因此假设第二曝光时间小于第一曝光时间,此时选择目标曝光时间为第二曝光时间,则目标曝光时间一方面符合图像的噪声要求,即目标曝光时间并未因为抖动量的影响而缩短,因此不会使图像增加额外多余的噪声;其次,目标 曝光时间小于第一曝光时间,因此可在抖动的情况下进一步降低图像的模糊量,进而更进一步的提升了图像的清晰度。假设第二曝光时间不小于第一曝光时间,此时选择目标曝光时间为第一曝光时间,则目标曝光时间符合模糊量要求,且由于该模糊量的取值在之前已经论述过,已经考虑过了图像噪声方面的影响,即在使图像的模糊量符合要求的情况下,尽可能的取得最大的曝光时间,因此此时图像的感光度也是在模糊量符合要求的情况下的最小值,因此图像的噪声也是在模糊量符合要求的情况下的最小值,因此,本发明实施例所提供的方法更进一步的提升了图像的清晰度。Since the second exposure time is an exposure time corresponding to the ambient brightness in the case where the amount of jitter is zero, it is assumed that the second exposure time is less than the first exposure time, and at this time, the target exposure time is selected as the second exposure time, and the target exposure time is on the one hand Meets the noise requirements of the image, that is, the target exposure time is not shortened due to the amount of jitter, so it does not add extra noise to the image; secondly, the target The exposure time is less than the first exposure time, so the blur amount of the image can be further reduced in the case of jitter, thereby further improving the sharpness of the image. Assuming that the second exposure time is not less than the first exposure time, and the target exposure time is selected as the first exposure time, the target exposure time meets the blur quantity requirement, and since the value of the blur amount has been discussed before, it has been considered. The influence of the image noise, that is, the maximum exposure time is obtained as much as possible when the blur amount of the image meets the requirements, so the sensitivity of the image at this time is also the minimum value in the case where the blur amount satisfies the requirement, The noise of the image is also the minimum value in the case where the amount of blurring meets the requirements. Therefore, the method provided by the embodiment of the present invention further enhances the sharpness of the image.
可选地,处理器404,用于确定出摄像装置400的应用场景;至少根据预设的应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor 404 is configured to determine an application scenario of the camera device 400; and determine, according to a preset correspondence between the preset application scenario and the blur amount, a range of values of the blur amount corresponding to the ambient brightness in the application scenario; The blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
可选地,处理器404,用于确定出摄像装置400的应用场景;至少根据预设的环境亮度、应用场景与模糊量的对应关系,确定出在应用场景下,环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor 404 is configured to determine an application scenario of the camera device 400, and determine, according to a preset relationship between the preset ambient brightness, the application scenario, and the blur amount, the blur amount corresponding to the ambient brightness in the application scenario. The value range; the blur amount corresponding to the ambient brightness is determined from the range of the blur amount corresponding to the ambient brightness; and the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
可选地,处理器404,用于根据预设的环境亮度与模糊量的对应关系,确定出环境亮度对应的模糊量取值范围;从环境亮度对应的模糊量取值范围中确定出环境亮度对应的模糊量;根据环境亮度对应的模糊量和抖动量,计算出第一曝光时间。Optionally, the processor 404 is configured to determine, according to a preset correspondence between the ambient brightness and the blur quantity, a range of the blur quantity corresponding to the ambient brightness; and determine an ambient brightness from the range of the blur quantity corresponding to the ambient brightness. The corresponding blur amount; the first exposure time is calculated according to the blur amount and the shake amount corresponding to the ambient brightness.
如此,由于为每个环境亮度对应设置了一个可以接受的模糊量取值范围,因此,可以不必任何场景下都要求模糊量最小,可以灵活的根据环境亮度选择适当的模糊量,进而可在保证模糊量满足要求的情况下,调整曝光时间,进而协调图像的噪声影响,从而提高图像的清晰度。In this way, since an acceptable range of blurring values is set for each environment brightness, it is not necessary to require the minimum amount of blurring in any scene, and the flexible amount can be flexibly selected according to the ambient brightness, thereby ensuring When the amount of blur meets the requirements, the exposure time is adjusted to coordinate the noise influence of the image, thereby improving the sharpness of the image.
可选地,根据模糊量和抖动量计算出第一曝光时间,包括:将模糊量除以抖动量,得到第一曝光时间。 Optionally, calculating the first exposure time according to the amount of blur and the amount of jitter includes: dividing the amount of blur by the amount of jitter to obtain a first exposure time.
可选地,环境亮度对应的模糊量为环境亮度对应的模糊量取值范围内的最大值。如此,由于模糊量越大,曝光时间越长,因此可在模糊量满足要求的情况下,尽可能的延长曝光时间,从而降低图像的噪声。Optionally, the amount of blur corresponding to the ambient brightness is a maximum value within a range of values of the blur amount corresponding to the ambient brightness. Thus, since the amount of blur is larger, the exposure time is longer, so that the exposure time can be extended as much as possible while the amount of blurring is satisfactory, thereby reducing the noise of the image.
可选地,处理器404,用于根据预设的环境亮度与噪声影响系数的对应关系,确定出环境亮度对应的噪声影响系数;其中,环境亮度越亮,噪声影响系数越大;根据噪声影响系数和抖动量,计算出第一曝光时间。由于根据环境亮度与噪声影响系数的对应关系,确定出的环境亮度对应的噪声影响系数已经为最优值,该噪声影响系数可平衡模糊量和ISO对图像清晰度的影响,从而可使图像清晰度最大。之后,摄像装置400根据噪声影响系数和抖动量,计算出第一曝光时间。Optionally, the processor 404 is configured to determine, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient; The coefficient and the amount of jitter are used to calculate the first exposure time. According to the correspondence between the ambient brightness and the noise influence coefficient, the noise influence coefficient corresponding to the determined ambient brightness is already an optimal value, and the noise influence coefficient can balance the influence of the blur amount and the ISO on the image sharpness, thereby making the image clear. The greatest degree. Thereafter, the imaging apparatus 400 calculates the first exposure time based on the noise influence coefficient and the shake amount.
可选地,处理器404,还用于根据目标曝光时间计算第一感光度;在确定第一感光度大于感光度阈值时,将感光度阈值作为待拍摄图像的目标感光度;在确定第一感光度不大于感光度阈值时,将第一感光度作为待拍摄图像的目标感光度。如此,可保证在确定出的目标曝光时间非常短时,不会使感光度过大而超出摄像设备本身的能力范围之外,即不会超过感光度阈值之外,从而保证了摄像设备的感光度这一参数的合理性,本发明实施例所确定出的目标感光度在摄像设备的能力范围之内,因此即使摄像设备受到剧烈抖动的情况下,本发明实施例中也不会因为目标曝光时间过短而使目标感光度超过感光度阈值,从而保证了摄像设备在受到剧烈抖动的情况下,也可正常工作。Optionally, the processor 404 is further configured to calculate a first sensitivity according to the target exposure time; when determining that the first sensitivity is greater than the sensitivity threshold, use the sensitivity threshold as the target sensitivity of the image to be captured; When the sensitivity is not greater than the sensitivity threshold, the first sensitivity is taken as the target sensitivity of the image to be captured. In this way, it is ensured that when the determined target exposure time is very short, the sensitivity is not excessively large and beyond the capability range of the image pickup device itself, that is, the sensitivity threshold is not exceeded, thereby ensuring the sensitivity of the image pickup apparatus. The rationality of this parameter is that the target sensitivity determined by the embodiment of the present invention is within the capability range of the imaging device, so even if the imaging device is subjected to severe jitter, the target exposure is not in the embodiment of the present invention. The time is too short and the target sensitivity exceeds the sensitivity threshold, thus ensuring that the imaging device can work normally even under severe jitter.
可选地,处理器404,用于根据如下公式获取摄像装置400的抖动量:Optionally, the processor 404 is configured to obtain the amount of jitter of the camera device 400 according to the following formula:
S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置400抖动量;x轴、y轴和z轴属于摄像装置400的摄像机坐标系,且摄像装置400的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of jitter of the imaging device 400; x-axis, y The axis and the z-axis belong to the camera coordinate system of the imaging apparatus 400, and the optical axis of the imaging apparatus 400 is the z-axis.
可选地,在确定摄像装置400包括陀螺仪,且针对绕x轴旋转和y轴旋 转进行防抖时,Q1小于Q2,且Q1小于Q3;在确定摄像装置400包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3Optionally, when it is determined that the camera device 400 includes a gyroscope, and for anti-shake around the x-axis rotation and the y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ; in determining that the imaging device 400 includes the accelerometer, And for anti-shake around the z-axis rotation, Q 2 is smaller than Q 1 and Q 2 is smaller than Q 3 .
从上述内容可看出,本发明实施例中,摄像装置获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;至少根据环境亮度和抖动量,确定用于拍摄待拍摄图像的目标曝光时间。如此,则可依据抖动量以及环境亮度的影响,综合确定出一个目标曝光时间,从而使用该目标曝光时间进行图像拍摄时,一方面所确定的目标曝光时间不会使所拍摄的图像因抖动量所产生的模糊量过高,另外一方面所确定的目标曝光时间也不会使图像的噪声过高,从而提高了图像的清晰度。As can be seen from the above, in the embodiment of the present invention, the image capturing device acquires the amount of shake of the image capturing device; determines the ambient brightness of the environment in which the image to be captured is located; and determines the target for capturing the image to be captured according to at least the ambient brightness and the amount of jitter. Exposure time. In this way, according to the influence of the amount of jitter and the brightness of the environment, a target exposure time can be comprehensively determined, so that when the target exposure time is used for image capturing, the target exposure time determined on the one hand does not cause the captured image to be shaken. The amount of blur generated is too high, and the target exposure time determined on the other hand does not cause the noise of the image to be too high, thereby improving the sharpness of the image.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包括有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device. Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes and/or block diagrams in the flowchart. The steps of a function specified in a box or multiple boxes.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of the invention as claimed.

Claims (24)

  1. 一种图像拍摄参数的确定方法,其特征在于,包括:A method for determining image capturing parameters, comprising:
    获取摄像装置的抖动量;Obtaining the amount of jitter of the camera device;
    确定待拍摄图像所处环境的环境亮度;Determining the ambient brightness of the environment in which the image to be captured is located;
    至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间。A target exposure time for capturing the image to be captured is determined based at least on the ambient brightness and the amount of shake.
  2. 如权利要求1所述的方法,其特征在于,所述至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间,包括:The method according to claim 1, wherein the determining a target exposure time for capturing the image to be captured based on at least the ambient brightness and the amount of jitter comprises:
    至少根据所述环境亮度和所述抖动量计算出第一曝光时间;Calculating a first exposure time according to at least the ambient brightness and the amount of jitter;
    从所述第一曝光时间和第二曝光时间中确定出最小值,作为所述目标曝光时间;Determining a minimum value from the first exposure time and the second exposure time as the target exposure time;
    其中,所述第二曝光时间为在所述环境亮度下假设抖动量为零时所计算出的曝光时间。The second exposure time is an exposure time calculated when the amount of jitter is assumed to be zero under the ambient brightness.
  3. 如权利要求2所述的方法,其特征在于,所述至少根据所述环境亮度和所述抖动量计算出第一曝光时间,包括:The method of claim 2, wherein the calculating the first exposure time based on at least the ambient brightness and the amount of jitter comprises:
    至少根据预设的环境亮度与模糊量的对应关系,确定出所述环境亮度对应的模糊量取值范围;从所述环境亮度对应的模糊量取值范围中确定出所述环境亮度对应的模糊量;Determining, according to a preset correspondence between the ambient brightness and the blur amount, a range of the blur amount corresponding to the ambient brightness; determining a blur corresponding to the ambient brightness from the range of the blur amount corresponding to the ambient brightness the amount;
    根据所述环境亮度对应的模糊量和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated according to the amount of blur corresponding to the ambient brightness and the amount of jitter.
  4. 如权利要求3所述的方法,其特征在于,所述环境亮度对应的模糊量为所述环境亮度对应的所述模糊量取值范围内的最大值。The method according to claim 3, wherein the blur amount corresponding to the ambient brightness is a maximum value within the range of the blur amount corresponding to the ambient brightness.
  5. 如权利要求2所述的方法,其特征在于,所述至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间,包括:The method according to claim 2, wherein the determining a target exposure time for capturing the image to be captured based on the ambient brightness and the amount of jitter comprises:
    根据预设的环境亮度与噪声影响系数的对应关系,确定出所述环境亮度对应的噪声影响系数;其中,所述环境亮度越亮,所述噪声影响系数越大; Determining, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient;
    根据所述噪声影响系数和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated based on the noise influence coefficient and the amount of jitter.
  6. 如权利要求1至5任一权利要求所述的方法,其特征在于,所述至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间之后,还包括:The method according to any one of claims 1 to 5, wherein the determining, after determining the target exposure time for capturing the image to be captured, at least according to the ambient brightness and the amount of shake, further includes :
    根据所述目标曝光时间计算第一感光度;Calculating a first sensitivity according to the target exposure time;
    在确定所述第一感光度大于感光度阈值时,将所述感光度阈值作为所述待拍摄图像的目标感光度;When determining that the first sensitivity is greater than a sensitivity threshold, the sensitivity threshold is used as a target sensitivity of the image to be captured;
    在确定所述第一感光度不大于感光度阈值时,将所述第一感光度作为所述待拍摄图像的目标感光度。When it is determined that the first sensitivity is not greater than a sensitivity threshold, the first sensitivity is used as a target sensitivity of the image to be captured.
  7. 如权利要求1至6任一权利要求所述的方法,其特征在于,根据如下公式获取所述摄像装置的抖动量:The method according to any one of claims 1 to 6, wherein the amount of jitter of the camera device is obtained according to the following formula:
    S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
    其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于所述摄像装置的摄像机坐标系,且所述摄像装置的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis And the z-axis belongs to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  8. 如权利要求7所述的方法,其特征在于,在确定所述摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3The method according to claim 7, wherein when it is determined that said image pickup device comprises a gyroscope, and for anti-shake around x-axis rotation and y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ;
    在确定所述摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3In determining that the camera device includes an accelerometer, and for anti-shake for rotation about the z-axis, Q 2 is less than Q 1 and Q 2 is less than Q 3 .
  9. 一种摄像装置,其特征在于,包括:A camera device, comprising:
    确定单元,用于获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;a determining unit, configured to acquire a shaking amount of the image capturing device; and determine an ambient brightness of an environment in which the image to be captured is located;
    处理单元,用于至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间。And a processing unit, configured to determine, according to the ambient brightness and the amount of jitter, a target exposure time for capturing the image to be captured.
  10. 如权利要求9所述的摄像装置,其特征在于,所述处理单元,用于: The image pickup apparatus according to claim 9, wherein the processing unit is configured to:
    至少根据所述环境亮度和所述抖动量计算出第一曝光时间;Calculating a first exposure time according to at least the ambient brightness and the amount of jitter;
    从所述第一曝光时间和第二曝光时间中确定出最小值,作为所述目标曝光时间;Determining a minimum value from the first exposure time and the second exposure time as the target exposure time;
    其中,所述第二曝光时间为在所述环境亮度下假设抖动量为零时所计算出的曝光时间。The second exposure time is an exposure time calculated when the amount of jitter is assumed to be zero under the ambient brightness.
  11. 如权利要求10所述的摄像装置,其特征在于,所述处理单元,用于:The image pickup apparatus according to claim 10, wherein the processing unit is configured to:
    根据预设的环境亮度与模糊量的对应关系,确定出所述环境亮度对应的模糊量取值范围;从所述环境亮度对应的模糊量取值范围中确定出所述环境亮度对应的模糊量;Determining, according to a preset correspondence between the ambient brightness and the blur amount, a range of the blur amount corresponding to the ambient brightness; determining a blur amount corresponding to the ambient brightness from the range of the blur amount corresponding to the ambient brightness ;
    根据所述环境亮度对应的模糊量和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated according to the amount of blur corresponding to the ambient brightness and the amount of jitter.
  12. 如权利要求11所述的摄像装置,其特征在于,所述环境亮度对应的模糊量为所述环境亮度对应的所述模糊量取值范围内的最大值。The image pickup apparatus according to claim 11, wherein the blur amount corresponding to the ambient brightness is a maximum value within a range of the blur amount corresponding to the ambient brightness.
  13. 如权利要求10所述的摄像装置,其特征在于,所述处理单元,用于:The image pickup apparatus according to claim 10, wherein the processing unit is configured to:
    根据预设的环境亮度与噪声影响系数的对应关系,确定出所述环境亮度对应的噪声影响系数;其中,所述环境亮度越亮,所述噪声影响系数越大;Determining, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient;
    根据所述噪声影响系数和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated based on the noise influence coefficient and the amount of jitter.
  14. 如权利要求9至13任一权利要求所述的摄像装置,其特征在于,所述处理单元,还用于:The image pickup apparatus according to any one of claims 9 to 13, wherein the processing unit is further configured to:
    根据所述目标曝光时间计算第一感光度;Calculating a first sensitivity according to the target exposure time;
    在确定所述第一感光度大于感光度阈值时,将所述感光度阈值作为所述待拍摄图像的目标感光度;When determining that the first sensitivity is greater than a sensitivity threshold, the sensitivity threshold is used as a target sensitivity of the image to be captured;
    在确定所述第一感光度不大于感光度阈值时,将所述第一感光度作为所述待拍摄图像的目标感光度。When it is determined that the first sensitivity is not greater than a sensitivity threshold, the first sensitivity is used as a target sensitivity of the image to be captured.
  15. 如权利要求9至14任一权利要求所述的摄像装置,其特征在于,所述确定单元,用于:The image pickup apparatus according to any one of claims 9 to 14, wherein the determining unit is configured to:
    根据如下公式获取所述摄像装置的抖动量: Obtain the amount of jitter of the camera device according to the following formula:
    S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
    其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于所述摄像装置的摄像机坐标系,且所述摄像装置的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis And the z-axis belongs to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  16. 如权利要求15所述的摄像装置,其特征在于,在确定所述摄像装置包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3The image pickup apparatus according to claim 15, wherein when it is determined that said image pickup apparatus includes a gyroscope, and for anti-shake around x-axis rotation and y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ;
    在确定所述摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3。When it is determined that the camera device includes an accelerometer and anti-shake is performed for rotation about the z-axis, Q2 is smaller than Q1, and Q2 is smaller than Q3.
  17. 一种摄像装置,其特征在于,包括:A camera device, comprising:
    摄像头模组,用于采集待拍摄图像的画面;a camera module for collecting a picture of an image to be captured;
    显示器,用于显示所述摄像头模组采集到的画面;a display for displaying a picture collected by the camera module;
    存储器,用于存储所述摄像头模组采集到的画面;a memory for storing a picture collected by the camera module;
    一个或多个处理器,所述处理器用于:One or more processors for:
    获取摄像装置的抖动量;确定待拍摄图像所处环境的环境亮度;Obtaining a jitter amount of the camera device; determining an ambient brightness of an environment in which the image to be captured is located;
    至少根据所述环境亮度和所述抖动量,确定用于拍摄所述待拍摄图像的目标曝光时间。A target exposure time for capturing the image to be captured is determined based at least on the ambient brightness and the amount of shake.
  18. 如权利要求17所述的摄像装置,其特征在于,所述处理器,用于:The image pickup apparatus according to claim 17, wherein said processor is configured to:
    至少根据所述环境亮度和所述抖动量计算出第一曝光时间;Calculating a first exposure time according to at least the ambient brightness and the amount of jitter;
    从所述第一曝光时间和第二曝光时间中确定出最小值,作为所述目标曝光时间;Determining a minimum value from the first exposure time and the second exposure time as the target exposure time;
    其中,所述第二曝光时间为在所述环境亮度下假设抖动量为零时所计算出的曝光时间。The second exposure time is an exposure time calculated when the amount of jitter is assumed to be zero under the ambient brightness.
  19. 如权利要求18所述的摄像装置,其特征在于,所述处理器,用于:The image pickup apparatus according to claim 18, wherein said processor is configured to:
    根据预设的环境亮度与模糊量的对应关系,确定出所述环境亮度对应的 模糊量取值范围;从所述环境亮度对应的模糊量取值范围中确定出所述环境亮度对应的模糊量;Determining the corresponding brightness of the environment according to a preset relationship between the ambient brightness and the blur amount a range of values of the fuzzy amount; determining a blur amount corresponding to the brightness of the environment from a range of values of the amount of blur corresponding to the brightness of the environment;
    根据所述环境亮度对应的模糊量和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated according to the amount of blur corresponding to the ambient brightness and the amount of jitter.
  20. 如权利要求19所述的摄像装置,其特征在于,所述环境亮度对应的模糊量为所述环境亮度对应的所述模糊量取值范围内的最大值。The image pickup apparatus according to claim 19, wherein the blur amount corresponding to the ambient brightness is a maximum value within a range of the blur amount corresponding to the ambient brightness.
  21. 如权利要求18所述的摄像装置,其特征在于,所述处理器,用于:The image pickup apparatus according to claim 18, wherein said processor is configured to:
    根据预设的环境亮度与噪声影响系数的对应关系,确定出所述环境亮度对应的噪声影响系数;其中,所述环境亮度越亮,所述噪声影响系数越大;Determining, according to a preset correspondence between the ambient brightness and the noise influence coefficient, a noise influence coefficient corresponding to the ambient brightness; wherein, the brighter the ambient brightness, the greater the noise influence coefficient;
    根据所述噪声影响系数和所述抖动量,计算出所述第一曝光时间。The first exposure time is calculated based on the noise influence coefficient and the amount of jitter.
  22. 如权利要求17至21任一权利要求所述的摄像装置,其特征在于,所述处理器,还用于:The image pickup apparatus according to any one of claims 17 to 21, wherein the processor is further configured to:
    根据所述目标曝光时间计算第一感光度;Calculating a first sensitivity according to the target exposure time;
    在确定所述第一感光度大于感光度阈值时,将所述感光度阈值作为所述待拍摄图像的目标感光度;When determining that the first sensitivity is greater than a sensitivity threshold, the sensitivity threshold is used as a target sensitivity of the image to be captured;
    在确定所述第一感光度不大于感光度阈值时,将所述第一感光度作为所述待拍摄图像的目标感光度。When it is determined that the first sensitivity is not greater than a sensitivity threshold, the first sensitivity is used as a target sensitivity of the image to be captured.
  23. 如权利要求17至22任一权利要求所述的摄像装置,其特征在于,所述处理器,用于:The image pickup apparatus according to any one of claims 17 to 22, wherein the processor is configured to:
    根据如下公式获取所述摄像装置的抖动量:Obtain the amount of jitter of the camera device according to the following formula:
    S=Q1×Rq+Q2×RreR+Q3×Ra S=Q 1 ×R q +Q 2 ×R reR +Q 3 ×R a
    其中,Rq为绕x轴和绕y轴旋转的抖动量;RreR为绕z轴旋转的抖动量;Ra为沿x轴和y轴平移所引起的抖动量,Ra与对焦距离成反比;Q1、Q2和Q3为常数项;Q1、Q2和Q3的值根据防抖的x轴、y轴和z轴确定;S为摄像装置抖动量;x轴、y轴和z轴属于所述摄像装置的摄像机坐标系,且所述摄像装置的光轴为z轴。Where R q is the amount of jitter about the x-axis and about the y-axis; R reR is the amount of jitter about the z-axis; R a is the amount of jitter caused by translation along the x-axis and the y-axis, and R a is the focal distance Inverse ratio ; Q 1 , Q 2 and Q 3 are constant terms; the values of Q 1 , Q 2 and Q 3 are determined according to the x-axis, y-axis and z-axis of anti-shake; S is the amount of camera shake; x-axis, y-axis And the z-axis belongs to the camera coordinate system of the imaging device, and the optical axis of the imaging device is the z-axis.
  24. 如权利要求23所述的摄像装置,其特征在于,在确定所述摄像装置 包括陀螺仪,且针对绕x轴旋转和y轴旋转进行防抖时,Q1小于Q2,且Q1小于Q3The image pickup apparatus according to claim 23, wherein when it is determined that said image pickup apparatus includes a gyroscope, and for anti-shake around x-axis rotation and y-axis rotation, Q 1 is smaller than Q 2 and Q 1 is smaller than Q 3 ;
    在确定所述摄像装置包括加速度器,且针对绕z轴旋转进行防抖时,Q2小于Q1,且Q2小于Q3In determining that the camera device includes an accelerometer, and for anti-shake for rotation about the z-axis, Q 2 is less than Q 1 and Q 2 is less than Q 3 .
PCT/CN2016/080379 2016-04-27 2016-04-27 Method for determining image photography parameters and photographic apparatus WO2017185265A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/080379 WO2017185265A1 (en) 2016-04-27 2016-04-27 Method for determining image photography parameters and photographic apparatus
CN201680009795.XA CN107615744B (en) 2016-04-27 2016-04-27 Image shooting parameter determining method and camera device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/080379 WO2017185265A1 (en) 2016-04-27 2016-04-27 Method for determining image photography parameters and photographic apparatus

Publications (1)

Publication Number Publication Date
WO2017185265A1 true WO2017185265A1 (en) 2017-11-02

Family

ID=60160623

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080379 WO2017185265A1 (en) 2016-04-27 2016-04-27 Method for determining image photography parameters and photographic apparatus

Country Status (2)

Country Link
CN (1) CN107615744B (en)
WO (1) WO2017185265A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587397A (en) * 2018-12-03 2019-04-05 深圳市优炫智科科技有限公司 Children's camera and its dynamic chart pasting method based on Face datection dynamic textures
WO2019105305A1 (en) * 2017-11-28 2019-06-06 Oppo广东移动通信有限公司 Image brightness processing method, computer readable storage medium and electronic device
CN114765663A (en) * 2021-01-14 2022-07-19 北京小米移动软件有限公司 Anti-shake processing method and device, mobile device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753178B (en) * 2018-07-24 2021-03-12 杭州海康威视数字技术股份有限公司 Exposure time adjusting method and device and camera
CN109151333B (en) 2018-08-22 2020-07-03 Oppo广东移动通信有限公司 Exposure control method, exposure control device and electronic equipment
CN110519513B (en) * 2019-08-26 2022-01-25 Oppo广东移动通信有限公司 Anti-shake method and apparatus, electronic device, computer-readable storage medium
CN111200708B (en) * 2020-01-15 2022-04-01 上海摩象网络科技有限公司 Long exposure shooting control method, system, equipment and computer storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR940003043B1 (en) * 1991-11-21 1994-04-11 주식회사 금성사 Camcorder
JP2001157110A (en) * 1999-11-30 2001-06-08 Olympus Optical Co Ltd Electronic camera device
JP2007036654A (en) * 2005-07-27 2007-02-08 Sharp Corp Imaging apparatus
CN101031033A (en) * 2006-03-03 2007-09-05 奥林巴斯映像株式会社 Imaging apparatus and imaging method
CN101277393A (en) * 2007-03-30 2008-10-01 富士胶片株式会社 Image taking apparatus
CN101968596A (en) * 2009-07-27 2011-02-09 松下电器产业株式会社 Imaging apparatus
CN102420944A (en) * 2011-04-25 2012-04-18 展讯通信(上海)有限公司 High dynamic-range image synthesis method and device
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN102714699A (en) * 2010-11-18 2012-10-03 松下电器产业株式会社 Image capture device, image capture method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0317695A (en) * 1989-06-15 1991-01-25 Omron Corp Brightness adjusting device for crt
TW200740210A (en) * 2006-04-06 2007-10-16 Winbond Electronics Corp A method of image blurring reduction and a camera
KR101442610B1 (en) * 2008-02-18 2014-09-19 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
WO2011157245A2 (en) * 2011-08-29 2011-12-22 华为终端有限公司 Auto exposure method and device, and imaging device
KR101933454B1 (en) * 2012-09-25 2018-12-31 삼성전자주식회사 Photograph image generating method, apparatus therof, and medium storing program source thereof
CN104601884B (en) * 2014-12-30 2017-09-29 广东欧珀移动通信有限公司 A kind of camera control method and terminal
CN105306788B (en) * 2015-10-27 2018-05-15 广东欧珀移动通信有限公司 A kind of noise-reduction method and device of image of taking pictures
CN105430267A (en) * 2015-12-01 2016-03-23 厦门瑞为信息技术有限公司 Method for adaptively adjusting camera parameters based on face image illumination parameters

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR940003043B1 (en) * 1991-11-21 1994-04-11 주식회사 금성사 Camcorder
JP2001157110A (en) * 1999-11-30 2001-06-08 Olympus Optical Co Ltd Electronic camera device
JP2007036654A (en) * 2005-07-27 2007-02-08 Sharp Corp Imaging apparatus
CN101031033A (en) * 2006-03-03 2007-09-05 奥林巴斯映像株式会社 Imaging apparatus and imaging method
CN101277393A (en) * 2007-03-30 2008-10-01 富士胶片株式会社 Image taking apparatus
CN101968596A (en) * 2009-07-27 2011-02-09 松下电器产业株式会社 Imaging apparatus
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN102714699A (en) * 2010-11-18 2012-10-03 松下电器产业株式会社 Image capture device, image capture method
CN102420944A (en) * 2011-04-25 2012-04-18 展讯通信(上海)有限公司 High dynamic-range image synthesis method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019105305A1 (en) * 2017-11-28 2019-06-06 Oppo广东移动通信有限公司 Image brightness processing method, computer readable storage medium and electronic device
CN109587397A (en) * 2018-12-03 2019-04-05 深圳市优炫智科科技有限公司 Children's camera and its dynamic chart pasting method based on Face datection dynamic textures
CN114765663A (en) * 2021-01-14 2022-07-19 北京小米移动软件有限公司 Anti-shake processing method and device, mobile device and storage medium

Also Published As

Publication number Publication date
CN107615744B (en) 2020-07-24
CN107615744A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2017185265A1 (en) Method for determining image photography parameters and photographic apparatus
US7619656B2 (en) Systems and methods for de-blurring motion blurred images
Karpenko et al. Digital video stabilization and rolling shutter correction using gyroscopes
JP5820257B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP6128389B2 (en) Imaging device
WO2011145296A1 (en) Image capturing apparatus, image processing apparatus, image processing method, and image processing program
US20140210999A1 (en) Image processing apparatus and image pickup apparatus
KR20180101466A (en) Depth information acquisition method and apparatus, and image acquisition device
US8433185B2 (en) Multiple anti-shake system and method thereof
US8723965B2 (en) Image processing device, imaging device, and image processing method for performing blur correction on an input picture
CN109194877A (en) Image compensation method and device, computer readable storage medium and electronic equipment
US20070098383A1 (en) Motion blur reduction and compensation
JP5766077B2 (en) Image processing apparatus and image processing method for noise reduction
TW201836345A (en) Camera device and method for camera device
JP2020095069A (en) Imaging device
CN113875219A (en) Image processing method and device, electronic equipment and computer readable storage medium
JP2015194686A (en) Imaging apparatus
JP6250446B2 (en) Image processing system, image processing apparatus, image processing method, and program
JP2006203504A (en) Image pickup device
JP2007306436A (en) Imaging apparatus
WO2021035525A1 (en) Image processing method and apparatus, and electronic device and computer-readable storage medium
JP2014131188A (en) Imaging apparatus, control method of the same, and control program
WO2022000974A1 (en) Infrared image processing method, apparatus and device, and storage medium
JP2020095071A (en) Interchangeable lens and image capturing device
JP2017212636A (en) Image processing apparatus, imaging apparatus, and image processing method

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16899778

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16899778

Country of ref document: EP

Kind code of ref document: A1