WO2017177407A1 - Method and apparatus for setting exposure duration, and photographic device - Google Patents

Method and apparatus for setting exposure duration, and photographic device Download PDF

Info

Publication number
WO2017177407A1
WO2017177407A1 PCT/CN2016/079215 CN2016079215W WO2017177407A1 WO 2017177407 A1 WO2017177407 A1 WO 2017177407A1 CN 2016079215 W CN2016079215 W CN 2016079215W WO 2017177407 A1 WO2017177407 A1 WO 2017177407A1
Authority
WO
WIPO (PCT)
Prior art keywords
suppression
blur angle
blur
exposure time
angle
Prior art date
Application number
PCT/CN2016/079215
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 CN201680009557.9A priority Critical patent/CN107493686B/en
Priority to PCT/CN2016/079215 priority patent/WO2017177407A1/en
Publication of WO2017177407A1 publication Critical patent/WO2017177407A1/en

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B7/00Control of exposure by setting shutters, diaphragms or filters, separately or conjointly
    • G03B7/08Control effected solely on the basis of the response, to the intensity of the light received by the camera, of a built-in light-sensitive device
    • G03B7/091Digital circuits
    • G03B7/093Digital circuits for control of exposure time

Definitions

  • the invention relates to the field of electronic products, and in particular to a method, a device and a photographic apparatus for setting an exposure time.
  • optical image stabilizer English full name: Optical Image Stabilization (English abbreviation: OIS) performs jitter compensation to suppress the effects of jitter on imaging.
  • the information about the jitter condition of the mobile phone is sampled by the gyroscope, and the amount of jitter compensation is calculated according to the information, and then the camera lens or the photosensitive element in the camera is driven to perform the shake compensation according to the compensation amount, or both are driven to perform the shake compensation.
  • Jitter compensation can improve the clarity of photos to some extent.
  • the amount of jitter compensation is different, and the sharpness of the photograph is different.
  • the sharpness of the photo is not only affected by the amount of jitter compensation, but also by the length of exposure. In the case where the amount of jitter compensation is constant, if the exposure duration is different, the sharpness of the photo will be different.
  • Existing camera devices such as smart phones and digital cameras, usually provide different camera modes, such as night scene mode, portrait mode, etc. Each camera mode corresponds to a fixed exposure time. Alternatively, the user manually sets the exposure duration based on personal experience in the custom mode. Therefore, in the prior art photographic apparatus, in the case where the shooting mode is determined, regardless of the actual jitter during the photographing process, a fixed exposure time is used, which often results in poor definition of the photograph.
  • the present application provides a method, a device and a camera device for setting an exposure time length, which can It is enough to set the optimum exposure time position according to the actual shaking condition of the camera equipment during the photography process, thereby improving the sharpness of the photograph.
  • a method for setting an exposure duration for setting a target exposure time slot of a camera device, the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure duration, wherein N is An integer greater than 1, specifically including:
  • the jitter parameter is determined according to the jitter state of the camera device during the photographing process, and the theoretical blur angle corresponding to each of the N exposure time slots is predicted, and then N is predicted according to the respective suppression ratios of the N exposure time slots in the current jitter state.
  • Each of the exposure time slots has a corresponding suppression blur angle, and the target suppression blur angle is selected according to the allowable blur angle, and the exposure time slot corresponding to the target suppression blur angle is set as the optimum exposure time slot.
  • the camera device predicts the blur angle in the case where the shake compensation function is turned on according to the actual shake condition, that is, suppresses the blur angle, and according to the allowable blur angle from the suppression blur angle corresponding to each of the N exposure time slots Select one as the target to suppress the blur angle, and finally set the target exposure time slot to achieve the purpose of setting the optimum exposure time slot according to the actual jitter condition.
  • a suppression ratio list is stored in the camera device, and after the jitter parameter is acquired in the photographing process, the suppression ratio list is obtained according to the jitter parameter, and N exposure time slots are obtained.
  • the respective suppression ratios In actual production, a list of suppression ratios of a camera device can be obtained by experimental measurement, and a list of suppression ratios is input to the camera device.
  • the jitter amplitude and the jitter period are used as the jitter parameters.
  • the value of the theoretical blur angle varies with the exposure start time point t and the exposure time length ⁇ t, thus constructing a blur angle function, that is, a blur angle Regarding the functions of t, ⁇ t, A, and ⁇ , and calculating the theoretical blur angle according to the blur angle function, not only the actual jitter condition is considered, but also the influence of the exposure start time point t and the exposure time length ⁇ t on the blur angle is further considered. .
  • one The theoretical blur angle corresponding to the exposure time slot is: when the exposure time length ⁇ t is the exposure time corresponding to the exposure time slot, the integration and jitter of the blur angle function in the one jitter period ⁇ with respect to the exposure start time point t The ratio of the period ⁇ . Since the fuzzy angle function is a periodic function, the ratio of the integral of the blur angle function within one jitter period ⁇ to the jitter period ⁇ reflects the average level of the theoretical blur angle.
  • the theoretical blur angle corresponding to an exposure time slot is when the exposure time length ⁇ t is the exposure duration corresponding to the exposure time slot, the blur The average of the P sample values of the angular function within one jitter period ⁇ . Since the fuzzy angle function is a periodic function, the average value of the sampled values of the fuzzy angle function in one jitter period ⁇ also reflects the average level of the theoretical blur angle.
  • a device for setting an exposure duration for implementing the method of setting an exposure duration provided by the first aspect.
  • a third aspect there is provided another apparatus for setting an exposure duration for implementing the method of setting the exposure duration provided by the first aspect.
  • a computer readable storage medium stores program code, and when the program code is executed, implements a method for setting an exposure duration provided by the first aspect.
  • a photographic apparatus comprising the apparatus for setting an exposure duration provided by the second aspect or the third aspect.
  • FIG. 1 is a schematic flow chart of a method for setting an exposure time length according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing changes in jitter angle with time in an embodiment of the present invention
  • 3 is a schematic view showing the blur angle in the embodiment of the present invention.
  • FIG. 4 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 5 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 6 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 7 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 8 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 9 is a schematic view showing the blur angle in the embodiment of the present invention.
  • Figure 10 is a schematic view showing the blur angle in the embodiment of the present invention.
  • FIG. 11 is a schematic diagram showing the blur distance in the embodiment of the present invention.
  • Figure 12 is a schematic illustration of the minimum resolvable angle of the human eye in the embodiment of the present invention.
  • Figure 13 is a schematic illustration of the diameter of a blurring range that is least perceptible to a human eye when viewing a picture in an embodiment of the present invention
  • FIG. 14 is a schematic diagram showing the calculation of the allowable blur angle in the embodiment of the present invention.
  • FIG. 15 is a schematic diagram showing another calculation manner of the allowable blur angle in the embodiment of the present invention.
  • FIG. 16 is a schematic diagram showing a variation of an experimental value of a suppression blur angle according to an exposure time length according to an embodiment of the present invention.
  • Figure 17 is a schematic illustration of the target suppression blur angle in the embodiment of the present invention.
  • FIG. 18 is another schematic diagram showing the suppression of the blur angle of the target in the embodiment of the present invention.
  • Figure 19 is a schematic illustration of an exposure start time point in an embodiment of the present invention.
  • 20 is a schematic structural diagram of an apparatus for setting an exposure duration according to an embodiment of the present invention.
  • FIG. 21 is a schematic structural diagram of another apparatus for setting an exposure duration according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method, apparatus, and photographing for setting an exposure duration
  • the device and the camera device can be a camera-enabled device such as a mobile phone, a tablet computer, or a digital camera.
  • the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
  • N is an integer greater than one.
  • the number of exposure time slots is 8, and the corresponding exposure time is from 1/2 second to 1/32 second.
  • the camera device sets one of the N exposure time slots as the target exposure time slot according to its actual jitter condition, and then starts the exposure process.
  • the exposure duration is the exposure duration corresponding to the target exposure time slot.
  • the camera can set the target exposure time slot according to its actual jitter condition to obtain a better-resolution photo.
  • Embodiments of the present invention provide a method for setting an exposure duration for setting a target exposure time slot of a camera device, a camera device providing N exposure time slots, and an exposure time slot corresponding to an exposure duration, wherein N For an integer greater than 1, as shown in Figure 1, the following steps are included:
  • the jitter parameter is used to indicate the jitter state of the camera device during the photographing process.
  • the jitter parameter may specifically include parameters for indicating the degree of acceleration, tilt of the camera device in different directions, which may be sampled by the motion sensor.
  • Motion sensor can pack At least one of a three-axis gyroscope, a six-axis gyroscope, an accelerometer, and the like.
  • the jitter parameter includes jitter amplitude and jitter period of the photographic device during photography.
  • the jitter amplitude refers to the maximum value of the lens shake angle during the shaking of the camera.
  • the angle of jitter is a function of time, as shown in Figure 2, the angle of jitter Where A is the jitter amplitude, ⁇ is the jitter period, and t is the time.
  • the function of the dither angle y with respect to the time t is referred to as a dithering wave function, and the dithering wave function may further include an initial phase of t, which is illustrated in the embodiment of the present invention with an initial phase of 0 for ease of calculation.
  • the jitter wave function may also be other forms, such as a cosine function or the like.
  • the present invention is not limited to its specific form, and only the case of a sine function is taken as an example.
  • the angle of jitter of the camera device may be the result of a superposition of multiple jitter wave functions.
  • the jitter of different jitter periods (jitter frequency) has different effects on the sharpness of the photo.
  • the original signal sensed by the motion sensor is usually an analog signal, and after being converted by a digital converter, the digital signal is Fourier transformed to obtain a set of digital signals of different jitter periods.
  • the Fourier-transformed digital signal is filtered by a band-pass filter to filter out signals at frequencies that have less influence on sharpness, and to retain signals at frequencies that have a greater influence on sharpness.
  • the jitter amplitude and jitter period are determined based on the bandpass filtered digital signal.
  • the photographing instruction is used to instruct the photographing device to start the photographing process.
  • the camera command can be triggered when the user presses the camera button, and the camera button can be a physical button or a virtual button.
  • step 101 is in the previous step 102. is behind.
  • the camera device is a smartphone, and when the user opens the camera application, the camera device begins sampling the jitter parameters.
  • step 102 is preceded by the previous step 101.
  • the camera device does not sample the jitter parameter at the moment, and when the user presses the camera button, the sampling jitter parameter is started.
  • 3 is a schematic diagram showing the blur angle, the exposure time is ⁇ t, and the exposure start time points are t_0, t_1 and t_2, respectively.
  • the widths of the rectangle 301, the rectangle 302, and the rectangle 303 are both ⁇ t, and the portion of the dithering wave function within the respective widths of the three rectangles represents the trajectory of the lens shake angle during the exposure, and the variation of the jitter angle is always positive, that is, The value is always positive.
  • the jitter angle y monotonically increases during the exposure process.
  • the size of the rectangle is 301,
  • the jitter angle y is not a monotonic function during the exposure process, and needs to be calculated separately in each monotonic interval. The value is added and the cumulative change in jitter angle during the entire exposure process is summed.
  • the lens shake angle reaches a maximum value (jitter amplitude) at time t_3, and (t_3-t_2) ⁇ ⁇ t.
  • the amount of change in the lens shake angle is the height of the rectangle 302.
  • the amount of change in the lens shake angle is also the height of the rectangle 302. therefore The size is 2 times the height of the rectangle 302.
  • the lens shake angle reaches the maximum value first during the exposure process, then decreases, decreases to the same level as the t_2 time point at the time point t_4, and further decreases until the end of the exposure. .
  • the amount of change in the lens shake angle from the time t_2 to the time t_4 is calculated in the same manner as when the exposure start time is t_1, and will not be described here.
  • the amount of change in the lens shake angle is the height of the rectangle 303.
  • the size is the sum of the change from the time t_2 to the time t_4, and the change from the time t_4 to the end of the exposure.
  • Figure 4 shows the case where the blur angle reaches the maximum.
  • the trajectory of the lens shake angle during the exposure may sweep the maximum twice.
  • the value is 2A.
  • the width of the rectangle 401 in FIG. 4 is larger than the jitter period ⁇ and the height is 2A.
  • the embodiment of the present invention expresses the relationship of the blur angle with the jitter amplitude, the jitter period, the exposure start time point, and the exposure duration by the blur angle function, that is, the blur angle function is a multivariate function with respect to the above four physical quantities.
  • constructing a blur angle function according to the jitter amplitude and the jitter period Represents the fuzzy angle function, For the blur angle, t is the exposure start time point, and ⁇ t is the exposure time length.
  • a and ⁇ are the current acquisition jitter parameters (jitter amplitude and jitter period) of the camera device, which is a constant, that is to say, after the jitter parameter is determined, the blur angle is only related to the exposure start time point and the exposure time length, so the blur angle function can also Abbreviated as
  • the exposure duration is constant
  • the blur angle when the t_0 time point is the exposure start time point is equal to the blur angle when t_0+ ⁇ is the exposure start time point. That is, the height of the rectangle 504 is equal to the height of the rectangle 501.
  • Blurring angle It is also a periodic function with respect to the exposure start time point t.
  • the blur angle It is used to measure the amount of change in the jitter angle, and its value is always positive.
  • the blur angle when the t_0 time point is the exposure start time point is equal to the blur angle when t_0+ ⁇ /2 is the exposure start time point.
  • the blur angle function is a periodic function with respect to t in the period of ⁇ /2
  • an embodiment of the present invention will be described with one cycle. Specifically, taking the case of the interval t ⁇ [0, ⁇ /2] as an example, the specific expression of the jitter wave function is explained:
  • the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 602.
  • the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 603.
  • the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 604.
  • the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 702.
  • the change track of the lens shake angle during the exposure is a portion within the width of the rectangle 703.
  • the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 803.
  • the change track of the lens shake angle during the exposure is a portion within the width of the rectangle 901.
  • the theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is turned off, that is, the theoretical blur angle is the expected value of the blur angle corresponding to a certain exposure time length, assuming that there is no jitter compensation function, which is calculated by calculation. Predictive value.
  • the embodiment of the present invention expresses the relationship between the theoretical blur angle and the jitter amplitude, the jitter period, the exposure start time point, and the exposure duration by the theoretical blur angle function, that is, the theoretical blur angle function is a multivariate function with respect to the above four physical quantities.
  • the theoretical blur angle is the expected value of the blur angle, so the theoretical blur angle can be calculated according to the blur angle.
  • the fuzzy angle function For a periodic function with respect to t with a period of ⁇ /2, the expected value of the blur angle may be an average value of the blur angle in one cycle.
  • the blur angle function is a periodic function
  • its expected value in one cycle is equal to its expected value in multiple cycles.
  • the embodiment of the present invention will be described by taking an example in which the expected value in two periods is calculated as the theoretical blur angle.
  • the embodiment of the present invention provides two specific calculation manners, which are respectively described as follows:
  • the theoretical blur angle function is the quotient of the integral of the fuzzy angle function in the interval t ⁇ [k ⁇ ,(k+1) ⁇ ] and the length ⁇ of the integral interval, and k is an integer greater than or equal to 0.
  • the integral interval length ⁇ is twice the period of the blur angle function ⁇ /2, so the theoretical blur angle is the expected value of the blur angle in two periods.
  • the theoretical blur angle corresponding to each of the N exposure time slots is calculated by the first formula, and the first formula is:
  • the sampling interval is [k ⁇ , (k+1) ⁇ ), and k is an integer greater than or equal to 0.
  • the theoretical fuzzy angle function is the mean of the P sample values of the fuzzy angle function in the interval [k ⁇ , (k+1) ⁇ ).
  • the length ⁇ of the sampling interval is twice the period of the blur angle function ⁇ /2, so the theoretical blur angle is the expected value of the blur angle in two periods.
  • the theoretical blur angle corresponding to each of the N exposure time slots is calculated by the second formula, and the second formula is:
  • each of the N exposure time slots corresponds to a theoretical blur angle.
  • the suppression ratio is used to indicate the ability of the photographic device to suppress the jitter. Under certain jitter parameters, the photographic device has a stronger ability to suppress the jitter, and the resolution of the photo is higher.
  • the suppression ratio is expressed by a function of a theoretical blur angle and a suppression blur angle, wherein the suppression blur angle is an expected value of the blur angle in the case where the shake compensation function is turned on.
  • the suppression ratio is a function of a theoretical blur angle and a suppression blur angle:
  • DB is the suppression ratio
  • is the theoretical blur angle
  • ⁇ _ON is the suppression blur angle.
  • the suppression ratio is positively correlated with the theoretical blur angle and negatively correlated with the suppression blur angle. The greater the suppression ratio, the stronger the ability of the camera device to suppress jitter.
  • the suppression ratio reflects the anti-shake property of the camera device, and the experiment can be calculated based on the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle.
  • the following describes the process of obtaining the theoretical fuzzy angle and the experimental value of suppressing the blur angle.
  • the camera unit is mounted on a dithering station that provides a certain jitter amplitude and jitter period.
  • the theoretical blur angle ⁇ corresponding to each exposure time length is determined according to the jitter amplitude and the jitter period. The calculation process is shown in step 103 and will not be described here.
  • the blur angle and the magnitude of the theoretical blur angle are proportional to the jitter amplitude under the same jitter period.
  • the experimental value of the theoretical blur angle ⁇ as shown in Table 3 is measured at a jitter amplitude of 1°:
  • the jitter period is 1/8 second, and when the exposure time is 1/16 second, the experimental value of the corresponding theoretical blur angle is 1.41°.
  • the jitter amplitude is 2°
  • the experimental value of the corresponding theoretical blur angle is 1.41° times 2.
  • the suppression of blur angle can be calculated by the amount of blur.
  • the method of calculating the amount of blur is specified in the Camera & Imaging Products Association (English name: Camera & Imaging Products Association, English abbreviation: CIPA) standard, and will not be described again.
  • CIPA Camera & Imaging Products Association
  • O is the object to be photographed, and the distance between the position of the O point and the lens 1101 of the photographic apparatus is the object distance, and the object distance is represented by U.
  • the distance between the lens 1101 and the photosensitive element 1102 is the image distance
  • the image distance is represented by V
  • the focal length of the lens 1101 is represented by F.
  • the blur distance is the length value of the blur range calculated from the blur amount in the case where the camera device shake compensation function is turned on, and the blur distance is represented by M.
  • the blur amount is usually expressed by the number of pixels, and the blur distance is the product of the blur amount and the pixel diameter, and the blur distance can be considered as the diameter of the blur amount range.
  • the angle between the two end points of the diameter of the blurring amount range and the line connecting the focus of the lens 1101 is to suppress the blur angle ⁇ ON, and its size is:
  • the image distance V is replaced by the algebraic equation about the focal length F and the object distance U, and the final calculation formula for suppressing the blur angle ⁇ _ON is obtained:
  • the experimental value of the suppression blur angle ⁇ _ON is calculated according to the final calculation formula of the suppression blur angle ⁇ _ON. For example, when the jitter amplitude is 1°, the suppression of the blur angle ⁇ as shown in Table 4 is measured. Experimental value:
  • multiple sets of experimental values can be measured multiple times, and the experimental values of the final suppressed blur angle ⁇ are obtained by averaging the multiple sets of experimental values.
  • the suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters.
  • the value of the suppression ratio in the suppression ratio list is calculated from the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle.
  • the inhibition ratio list is input to the photographic apparatus, and the photographic apparatus stores the suppression ratio list, so that the photographic apparatus can apply the suppression ratio list during the photographic process.
  • the suppression ratio list can be entered before the camera device is shipped from the factory, or it can be entered by software update after shipment.
  • the actual storage suppression ratio list of the camera device can be various, that is, the camera device can use various data structures to store the data in the suppression ratio list, not just in the form of a table.
  • Embodiments of the present invention do not limit a specific data storage structure.
  • the suppression ratio set includes the suppression ratios corresponding to the respective N exposure time slots under the currently acquired jitter parameters.
  • the specific value of DB_i can be obtained by querying the suppression ratio list according to the jitter parameter. For example, after the camera device acquires the jitter parameter during photography, it is determined that the current jitter amplitude is 1° and the jitter period is 1/8 second. Combined with Table 5, the camera device query suppression ratio In the list, it is determined that the suppression ratio corresponding to the 1/16 second exposure time slot is 18.7, and the suppression ratio corresponding to the 1/32 second exposure time slot is 15.89.
  • Steps 104 and 103 do not have a sequence. That is, after the camera device obtains the jitter parameter, the set of suppression ratios may be determined after predicting the theoretical blur angle set, or the set of prediction angles may be determined first after the suppression ratio set, or may be performed simultaneously in two steps.
  • the suppression of the blur angle set includes the suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter.
  • the experimental value of the fuzzy angle ⁇ ON is the experimental value obtained from the experiment.
  • the function of the theoretical blur angle and the suppression blur angle: ⁇ _ON_i can be derived by ⁇ _i and DB_i by the above function relation.
  • the allowable blur angle ⁇ _max is used to indicate an acceptable maximum suppression blur angle, which may be a preset value or a value actually calculated by the camera during the photographing process.
  • an acceptable maximum suppression blur angle which may be a preset value or a value actually calculated by the camera during the photographing process.
  • the angle of the two object points that can be resolved by the human eye to the eye is called the minimum resolvable angle ⁇ of the human eye.
  • the minimum resolvable angle ⁇ of the human eye when the viewing distance is s, the angle 1201 between the object point W1 and the object point W2 and the line connecting the eyeball is the minimum resolvable angle ⁇ of the human eye.
  • the size of the minimum resolvable angle ⁇ of the human eye depends on the structure of the human eye itself. In the embodiment of the present invention, the minimum resolvable angle ⁇ of the human eye is a preset value, and is usually 1/60°.
  • the minimum resolvable angle ⁇ of the human eye it is possible to calculate the diameter a of the blurring range that the human eye can perceive when viewing the picture with a certain viewing distance. Specifically, as shown in FIG. 13, when the viewing distance is s, there are:
  • the viewing distance can be a preset value or manually selected by the user.
  • the preset viewing distance can be 30 cm. Or provide the user with several viewing distances, which are useful for selection.
  • the diameter a of the blurring range that can be perceived by the human eye on the photograph corresponds to the maximum blur distance b allowed on the photosensitive element 1102.
  • the allowable blur angle can be further calculated.
  • the imaging positions of the subject O on the photosensitive element 1102 are different, the calculation manner of the allowable blur angle ⁇ _max is different, and the following describes different imaging positions.
  • Equation 1 Equation 2, and Equation 3.1, we get:
  • Equation 1 Equation 2, and Equation 3.2, we get:
  • the photosensitive element When the object O is imaged on the photosensitive element 1102, the photosensitive element When the center position and the edge position of 1102 are between, the calculation method is similar to that of the imaging described in ⁇ 4.2> at the edge position, and will not be described again.
  • the photograph taken actually by the camera device has a measured suppression blur angle larger than the allowable blur angle ⁇ _max, indicating that the user can observe that the photograph (partial) is unclear. If the measured suppression blur angle is not greater than the allowable blur angle ⁇ _max, it means that the sharpness of the photograph is within the acceptable range of the human eye.
  • FIG. 16 a graph showing the variation of the experimental value of the blur angle ⁇ _ON with the exposure time length ⁇ t under a certain jitter parameter.
  • ⁇ t_a to ⁇ t_i are sequentially increased.
  • the suppression blur angle ⁇ ON is first decreased and then increased, and the change trend is U-shaped.
  • the target suppression blur angle ⁇ opt is less than or close to the allowable blur angle ⁇ _max.
  • the suppression blur angle ⁇ _ON corresponding to ⁇ t_c to ⁇ t_g is not greater than the allowable blur angle ⁇ _max, in which case ⁇ t_c to ⁇ t_g
  • the suppression blur angle ⁇ _ON corresponding to any exposure duration can be used as the target suppression blur angle ⁇ _opt.
  • the exposure time is extended as much as possible to increase the exposure amount while ensuring the sharpness of the photograph.
  • the suppression blur is never greater than the allowable blur angle.
  • the exposure time corresponding to ⁇ t_g in ⁇ t_c to ⁇ t_g is the largest as indicated by the arrow in Fig. 17, in which case the corresponding suppression blur angle ⁇ _ON corresponding to ⁇ t_g is selected as the target suppression blur angle.
  • the suppression blur corresponding to the N exposure time slots are larger than the allowable blur angle ⁇ _max, the suppression blur corresponding to each of the N exposure time slots Selecting the smallest suppression blur angle in the angle is the target suppression blur angle ⁇ opt.
  • the respective suppression blur angles of ⁇ t_a to ⁇ t_i are larger than the allowable blur angle ⁇ _max, and the suppression blur angle corresponding to ⁇ t_d is the smallest, that is, the closest allowable blur angle ⁇ _max.
  • the corresponding suppression blur angle ⁇ _ON corresponding to ⁇ t_d is selected as the target suppression blur angle ⁇ _opt.
  • the target exposure time slot is the exposure time slot corresponding to the target suppression blur angle ⁇ opt.
  • the target suppression blur angle ⁇ opt is the corresponding suppression blur angle ⁇ _ON corresponding to ⁇ t_g
  • the target exposure time shift position is the exposure time shift position corresponding to ⁇ t_g.
  • the target suppression blur angle ⁇ opt is the corresponding suppression blur angle ⁇ _ON corresponding to ⁇ t_d, and then the target exposure time slot is the exposure time slot corresponding to ⁇ t_d.
  • Step 109 is a subsequent step after the exposure time shift position is set, and is a step of completing the photographing process by applying the set exposure time shift position.
  • the fuzzy angle function For a periodic function with respect to t with a period of ⁇ /2, there are minimum and maximum values in one cycle.
  • the camera device acquires the jitter amplitude A and the jitter period ⁇ according to the actual jitter condition, and determines the blur angle function.
  • the value of t0 depends on when the camera device acquires the jitter parameter.
  • the camera device starts sampling jitter parameters at time 0 (origin position in FIG. 19) and processes the sampled signals, including Fourier transform bandpass filtering.
  • the value of t0 is the starting time point of the sampling jitter parameter, plus the sum of delays caused by signal transmission and signal processing.
  • t1 The value of t1 depends on the time the camera device sets the exposure time.
  • a series of calculations are performed according to the jitter parameter to determine the target suppression blur angle ⁇ _opt, and finally the time required for the target exposure time slot is set, and t0 is obtained to obtain the value of t1.
  • the camera equipment may still need to do other signal processing or data calculation to complete For other functions, you only need to add these time overheads to determine the value of t1.
  • t_0 depends on the blur angle function The nature of itself.
  • Fuzzy angle function It goes through its minimum point every cycle. After the camera device sets the target exposure time slot, as long as the blur angle function The point at which the minimum value is reached can be used as the t_0 time point. Preferably, after setting the target exposure time slot position, the blur angle function is used. The time point at which the minimum value is reached for the first time is taken as the t_0 time point.
  • the method for setting the exposure duration obtained by the embodiment of the present invention obtains a theoretical blur angle set according to the jitter parameter prediction, and then obtains a set of suppression blur angles according to the suppression ratio set prediction, and selects the suppression blur angle set according to the allowable blur angle.
  • the target suppresses the blur angle, and sets the exposure duration to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time shift position according to the actual shake condition of the photographing device during the photographing process, thereby improving the sharpness of the photograph.
  • the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
  • the step of acquiring a photographing instruction of the user may be performed by the user.
  • the trigger acquisition may also be performed when a certain trigger condition set by the software is satisfied.
  • the photographic process described in this embodiment should be considered as an example and not an exhaustive.
  • an embodiment of the present invention further provides a device for setting an exposure duration for setting a target exposure time slot of a camera device.
  • the device for setting the exposure duration can be installed in the camera device, or It is also possible to connect to a camera device via a communication line or a communication network.
  • the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
  • the apparatus 20 for setting the exposure duration includes:
  • the obtaining unit 201 is configured to acquire a jitter parameter, and the jitter parameter is used to indicate a jitter state of the camera device during the photographing process.
  • the processing unit 202 is configured to predict a theoretical blur angle set according to the jitter parameter currently acquired by the acquiring unit 201.
  • the theoretical blur angle set includes the theoretical blur angle corresponding to each of the N exposure time slots, the theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is off, and the blur angle is the cumulative change amount of the lens shake angle during the exposure process. .
  • the processing unit 202 is further configured to determine a suppression ratio set according to the jitter parameter currently acquired by the obtaining unit 201.
  • the suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and the suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the blur angle is suppressed when the jitter compensation function is turned on. The expected value of the blur angle.
  • the processing unit 202 is further configured to predict the suppression blur angle set according to a function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle according to the theoretical blur angle set and the suppression ratio set.
  • the suppression blur angle set includes a suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter.
  • the obtaining unit 201 is further configured to obtain an allowable blur angle.
  • the processing unit 202 is further configured to select one of the suppression blur angles as the target suppression blur angle from the set of suppression blur angles according to the allowable blur angle acquired by the acquisition unit 201.
  • the allowable blur angle is used to indicate an acceptable maximum suppression blur angle.
  • the setting unit 203 is further configured to set a target exposure time slot according to the target suppression blur angle determined by the processing unit 202, and the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
  • the obtaining unit 201 is further configured to obtain a suppression ratio list.
  • the suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters.
  • the value of the suppression ratio in the suppression ratio list is the theoretical blur angle and the suppression mode according to the suppression ratio.
  • the function of the paste angle is calculated based on the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle.
  • the processing unit 202 is further configured to determine, according to the jitter parameter query acquisition unit 201, the suppression ratio list, and determine a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, to obtain a suppression ratio set.
  • the apparatus 20 that suppresses the ratio of the exposure time set is input and saved before shipment from the factory, or may be input and saved by software update after shipment.
  • the processing unit 202 obtains a suppression ratio set by querying the saved suppression ratio list.
  • the device 20 for setting the exposure duration may have various forms of the actual storage suppression ratio list, that is, the device 20 for setting the exposure duration may use various data structures to store the data in the suppression ratio list, not just the data. Store in the form of a table.
  • Embodiments of the present invention do not limit a specific data storage structure.
  • the obtaining unit 201 is specifically configured to acquire a jitter amplitude and a jitter period of the camera device during the photographing process.
  • the processing unit 202 is configured to construct a blur angle function according to the jitter amplitude and the jitter period.
  • t is the exposure start time point
  • ⁇ t is the exposure time length
  • A is the jitter amplitude
  • is the jitter period.
  • the theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, and a theoretical blur angle set is obtained.
  • the processing unit 202 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
  • the processing unit 202 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
  • k is an integer greater than or equal to
  • P is an integer greater than 1.
  • the processing unit 202 is specifically configured to select, as the target suppression blur angle, a suppression blur angle that is less than or close to the allowable blur angle from the set of suppression blur angles.
  • the processing unit 202 is further configured to select a corresponding exposure duration from the suppression blur angles that are not greater than the allowable blur angle. The longest one suppresses the blur angle as the target suppresses the blur angle.
  • the processing unit 202 is further configured to select the minimum suppression blur angle from the respective suppression blur angles of the N exposure time slots as the target suppression. Blur angle.
  • the processing unit 202 is specifically configured to predict a set of suppression blur angles according to a function of a blur angle:
  • DB is the suppression ratio
  • is the theoretical blur angle
  • ⁇ _ON is the suppression blur angle
  • the obtaining unit 201 is further configured to acquire a photographing instruction of the user.
  • the processing unit 202 is further configured to: after setting the target exposure time slot position, according to the time point when the camera instruction is received, and the blur angle function
  • the apparatus for setting the exposure duration described in the embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment of the software and hardware.
  • the present invention may be embodied in one or more computer usable storage media (including but not limited to disk storage, semiconductor memory, optical storage, etc.) having computer usable program code embodied therein.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the apparatus for setting the exposure duration obtained by the embodiment of the present invention obtains a theoretical blur angle set according to the jitter parameter prediction, and then obtains a suppression blur angle set according to the suppression ratio set prediction, and selects the suppression blur angle set according to the allowable blur angle.
  • the target suppresses the blur angle, and sets the exposure duration to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time shift position according to the actual shake condition of the photographing device during the photographing process, thereby improving the sharpness of the photograph.
  • the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
  • an embodiment of the present invention further provides another means for setting the exposure duration for setting the target exposure time slot of the camera device.
  • the means for setting the exposure duration may be installed in the photographic apparatus, or may be connected to the photographic apparatus via a communication line or a communication network.
  • the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
  • the apparatus 21 for setting the exposure duration includes a processor 211, a memory 212, a bus 213, and a receiver 214.
  • the processor 211, the memory 212, and the receiver 214 are connected to one another via a bus 213.
  • the bus 213 can be an industry standard architecture (English name: Industry Standard Architecture, English abbreviation: ISA) bus 213, external device interconnection (English full name: Peripheral Component Interconnect, English abbreviation: PCI) or extended industry standard architecture (English full name :Extended Industry Standard Architecture, English abbreviation: EISA) Bus 213 and so on.
  • the bus 213 can be divided into an address bus 213, a data bus 213, a control bus 213, and the like. For ease of representation, only one thick line is shown in FIG. 21, but this does not mean that there is only one bus 213 or one type of bus 213.
  • Program code for carrying out the inventive arrangements is stored in memory 212 and controlled by processor 211 for execution.
  • the memory 212 may include a volatile memory (English name: volatile memory), for example, a random access memory (English name: random-access memory, English abbreviation: RAM).
  • the memory 212 may also include a non-volatile memory (English name: non-volatile memory), for example, a read-only memory (English name: read-only memory, English abbreviation: ROM), including an electrically erasable programmable read only memory ( English full name: Electrically Erasable Programmable Read-Only Memory, English abbreviation: EEPROM).
  • non-volatile memory can also be a flash memory (English full name: flash memory), a hard disk (English full name: hard disk drive, English abbreviation: HDD) or a solid state hard disk (English full name: solid-state drive, English abbreviation: SSD )Wait.
  • the memory 212 may also include a combination of the above types of memories.
  • the processor 211 may be a central processing unit 211 (Central Processing Unit, abbreviated as: CPU), or a combination of a CPU and a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (English name: ASIC), a programmable logic device (English full name: programmable logic device, English abbreviation: PLD) or any combination thereof.
  • the PLD may be a complex programmable logic device (English full name: complex programmable logic device, English abbreviation: CPLD), field programmable logic gate array (English name: field-programmable gate array, English abbreviation: FPGA), universal Array logic (English full name: generic array logic, English abbreviation: GAL) or any combination thereof.
  • CPLD complex programmable logic device
  • FPGA field-programmable gate array
  • GAL universal Array logic
  • the receiver 214 is configured to acquire a jitter parameter, and the jitter parameter is used to indicate a jitter state of the camera device during the photographing process.
  • the processor 211 is configured to predict a theoretical blur angle set according to the jitter parameter currently acquired by the receiver 214.
  • the theoretical blur angle set includes N exposure time slots corresponding to each The theoretical blur angle, the theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is turned off, and the blur angle is the cumulative change amount of the shake angle of the lens during the exposure process.
  • the processor 211 is further configured to determine a suppression ratio set according to the jitter parameter currently acquired by the receiver 214.
  • the suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and the suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the blur angle is suppressed when the jitter compensation function is turned on. The expected value of the blur angle.
  • the processor 211 is further configured to predict the suppression blur angle set according to a function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle according to the theoretical blur angle set and the suppression ratio set.
  • the suppression blur angle set includes a suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter.
  • the receiver 214 is also used to obtain an allowable blur angle.
  • the processor 211 is further configured to select one of the suppression blur angles as the target suppression blur angle from the set of suppression blur angles according to the allowable blur angle acquired by the receiver 214.
  • the allowable blur angle is used to indicate an acceptable maximum suppression blur angle.
  • the processor 211 is further configured to set a target exposure time slot according to the target suppression blur angle, and the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
  • the receiver 214 is further configured to obtain a suppression ratio list.
  • the suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters.
  • the value of the suppression ratio in the suppression ratio list is calculated from the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle.
  • the processor 211 is further configured to query the suppression ratio list acquired by the receiver 214 according to the jitter parameter, determine a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and obtain a suppression ratio set.
  • the device 21 of the suppression ratio list is set to be stored in the memory 212 before shipment from the factory, or may be input and saved in the memory 212 by software update after shipment. in.
  • the processor 211 reads the suppression ratio list from the memory 212 and suppresses it by the query. Than the list, get the suppression ratio set.
  • the memory 212 may have a variety of forms of the suppression ratio list, that is, the memory 212 may use a plurality of data structures to store the data in the suppression ratio list, not just in the form of a table. Embodiments of the present invention do not limit a specific data storage structure.
  • the receiving unit is specifically configured to obtain a jitter amplitude and a jitter period of the camera device during the photographing process.
  • the processor 211 is configured to construct a blur angle function according to the jitter amplitude and the jitter period. among them, For the blur angle, t is the exposure start time point, ⁇ t is the exposure time length, A is the jitter amplitude, and ⁇ is the jitter period.
  • the theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, and a theoretical blur angle set is obtained.
  • the processor 211 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
  • the processor 211 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
  • k is an integer greater than or equal to
  • P is an integer greater than 1.
  • the processor 211 is specifically configured to select, as the target suppression blur angle, a suppression blur angle that is less than or close to the allowable blur angle from the set of suppression blur angles.
  • the processor 211 is further configured to select a corresponding exposure duration from the suppression blur angles that are not greater than the allowable blur angle. The longest one suppresses the blur angle The mark suppresses the blur angle.
  • the processor 211 is further configured to select the minimum suppression blur angle from the respective suppression blur angles of the N exposure time slots as the target suppression. Blur angle.
  • the processor 211 is specifically configured to predict a set of suppression blur angles according to a function of a blur angle.
  • DB is the suppression ratio
  • is the theoretical blur angle
  • ⁇ _ON is the suppression blur angle
  • the receiver 214 is further configured to acquire a photographing instruction of the user.
  • the processor 211 is further configured to: after setting the target exposure time slot position, according to the time point when the camera instruction is received, and the blur angle function
  • an embodiment of the present invention further provides a photographic apparatus for implementing the method of setting the exposure duration described in the embodiment of the present invention.
  • the camera device may specifically be a digital camera, a smartphone with a camera function, a tablet computer, a drone, and the like.
  • the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
  • the camera device includes the means for setting the exposure duration as described in the embodiment corresponding to FIG.
  • the photographic apparatus includes means for setting the exposure duration described in the embodiment corresponding to FIG.
  • a device for setting an exposure time and a camera device provided by an embodiment of the present invention
  • the theoretical blur angle set is obtained according to the jitter parameter prediction
  • the suppression blur angle set is obtained according to the suppression ratio set prediction
  • the target suppression blur angle is selected from the suppression blur angle set according to the allowable blur angle
  • the exposure duration is set as the target suppression blur angle.
  • the corresponding exposure time is long, thereby setting an optimum exposure time slot according to the actual jitter condition of the camera device during the photographing process, thereby improving the sharpness of the photograph.
  • the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
  • the embodiment of the present invention further provides a computer readable storage medium based on the method of setting the exposure time and the photographic apparatus provided by the embodiments of the present invention.
  • the computer readable storage medium stores program code that, when executed, implements a method of setting an exposure duration as described in an embodiment of the present invention.
  • the method for setting the exposure duration when the method for setting the exposure duration provided by the embodiment of the present invention is implemented by software, or by a combination of software and hardware, the method for setting the exposure duration can be implemented.
  • the program code is stored in a computer readable storage medium.
  • the above program code can also be transmitted and stored as one or more instructions, code on a computer readable storage medium.
  • Computer readable storage media can include computer storage media and communication media.
  • a storage medium may be any available media that can be accessed by a computer. Including but not limited to: random access memory (English full name: Random Access Memory, English abbreviation: RAM), read-only memory (English full name: Read Only Memory, English abbreviation: ROM), electrically erasable programmable read-only memory (English full name: Electrically Erasable Programmable Read Only Memory (English abbreviation: EEPROM), CD-ROM (English full name: Compact Disc Read Only Memory, English abbreviation: CD-ROM) or other optical disc storage, disk storage media or other magnetic storage devices, or can be used Any other medium that carries, stores, and can be accessed by a computer in the form of an instruction or data structure.
  • Communication media includes any medium that facilitates the transfer of a computer program from one location to another.
  • Various connections for transferring data can be appropriately readable as a computer Storage medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (English full name: Digital Subscriber Line, English abbreviation: DSL) or wireless technologies such as infrared, radio and microwave from the website, server or Other remote source transmissions
  • coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave, also include definitions of computer readable storage media referred to in embodiments of the present invention. in.
  • the camera device is specifically a smart phone.
  • the method for setting the exposure duration provided by the embodiment of the present invention is stored in the server in the form of an application program (English full name: Application, English abbreviation: APP) installation package, and the smartphone downloads and installs the application installation package by accessing the server.
  • APP application program
  • a method of setting an exposure time length provided by an embodiment of the present invention is achieved.
  • the storage medium used by the server for storing the application installation package the transmission medium for transferring the application installation package between the smart phone and the server, and the storage medium for storing and running the application installation package of the smart phone itself are included in the above application scenario.
  • the computer readable storage medium includes a secure digital card (English full name: Secure Digital Card, English abbreviation: SD) card, eMMC (English full name: Embedded Multi Media Card, English abbreviation: embedded multimedia card), RAM and more.
  • a computer readable storage medium for setting an exposure duration stores and transmits program code or instructions for implementing a method of setting an exposure duration.
  • the program code or instruction is run or called, the theoretical blur angle set is obtained according to the jitter parameter prediction, and then the suppression blur angle set is obtained according to the suppression ratio set prediction, and the target suppression blur angle is selected from the suppression blur angle set according to the allowable blur angle.
  • the exposure duration is set to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time slot according to the actual jitter condition of the camera during the photographing process, thereby improving the sharpness of the photograph.
  • the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
  • embodiments of the invention may be provided as a method, apparatus (device), or 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 computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • 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 device is implemented in a block of a flow or a flow and/or a block diagram of the flowchart Or the function specified in multiple boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.

Abstract

A method and apparatus for setting an exposure duration, and a photographic device, these relating to the field of electronic products and being capable of improving the sharpness of a picture. The specific solution is: acquiring a jitter parameter (101); predicting a set of theoretical fuzzy angles according to the currently acquired jitter parameter (103); determining a set of rejection ratios according to the currently acquired jitter parameter (104); according to the set of theoretical fuzzy angles and the set of rejection ratios, predicting a set of rejection fuzzy angles based on functions of a rejection ratio with regard to a theoretical fuzzy angle and a rejection fuzzy angle (105); acquiring an allowable fuzzy angle (106), selecting, according to the allowable fuzzy angle and from the set of rejection fuzzy angles, one rejection fuzzy angle as a target rejection fuzzy angle (107); and setting a target exposure duration level (108), wherein the target exposure duration level is one of at least two exposure duration levels provided by a photographic device.

Description

一种设定曝光时长的方法、装置以及照相设备Method, device and camera device for setting exposure time 技术领域Technical field
本发明涉以及电子产品领域,尤其涉以及一种设定曝光时长的方法、装置以及照相设备。The invention relates to the field of electronic products, and in particular to a method, a device and a photographic apparatus for setting an exposure time.
背景技术Background technique
目前市场上的各种手机通常都具有照相的功能,在照相过程中,用户手持手机时的抖动会对照片的清晰度造成影响,现有的解决办法是通过光学图像稳定器(英文全称:Optical Image Stabilization,英文简称:OIS)进行抖动补偿,以抑制由于抖动对成像造成的影响。At present, various mobile phones on the market usually have a camera function. During the camera process, the jitter of the user when holding the mobile phone affects the definition of the photo. The existing solution is through an optical image stabilizer (English full name: Optical Image Stabilization (English abbreviation: OIS) performs jitter compensation to suppress the effects of jitter on imaging.
例如,通过陀螺仪采样关于手机抖动情况的信息,并根据这些信息计算确定抖动补偿量,然后按照补偿量驱动摄像头镜片或者摄像头内感光元件移动进行抖动补偿,或者驱动两者同时移动进行抖动补偿。For example, the information about the jitter condition of the mobile phone is sampled by the gyroscope, and the amount of jitter compensation is calculated according to the information, and then the camera lens or the photosensitive element in the camera is driven to perform the shake compensation according to the compensation amount, or both are driven to perform the shake compensation.
抖动补偿能够在一定程度上提高照片的清晰度。照相过程中,在抖动频率和抖动振幅一定的情况下,抖动补偿量不同,照片的清晰度不同。然而照片的清晰度不仅仅受抖动补偿量的影响,也受到曝光时长的影响。在抖动补偿量一定的情况下,如果曝光时长不同,照片的清晰度也会不同。Jitter compensation can improve the clarity of photos to some extent. In the photographic process, when the jitter frequency and the jitter amplitude are constant, the amount of jitter compensation is different, and the sharpness of the photograph is different. However, the sharpness of the photo is not only affected by the amount of jitter compensation, but also by the length of exposure. In the case where the amount of jitter compensation is constant, if the exposure duration is different, the sharpness of the photo will be different.
现有的智能手机、数码相机等照相设备,通常提供不同的拍照模式,例如夜景模式、人像模式等,每种拍照模式对应固定的曝光时长。或者,用户在自定义模式下,根据个人经验手动设定曝光时长。因此现有技术中的照相设备,在拍摄模式确定的情况下,不论照相过程中实际的抖动情况如何,均采用固定的曝光时长,往往导致照片的清晰度欠佳。Existing camera devices, such as smart phones and digital cameras, usually provide different camera modes, such as night scene mode, portrait mode, etc. Each camera mode corresponds to a fixed exposure time. Alternatively, the user manually sets the exposure duration based on personal experience in the custom mode. Therefore, in the prior art photographic apparatus, in the case where the shooting mode is determined, regardless of the actual jitter during the photographing process, a fixed exposure time is used, which often results in poor definition of the photograph.
发明内容Summary of the invention
本申请提供一种设定曝光时长的方法、装置以及照相设备,能 够根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。The present application provides a method, a device and a camera device for setting an exposure time length, which can It is enough to set the optimum exposure time position according to the actual shaking condition of the camera equipment during the photography process, thereby improving the sharpness of the photograph.
为达到上述目的,本申请采用如下技术方案:To achieve the above objectives, the present application adopts the following technical solutions:
第一方面,提供一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,具体包括:In a first aspect, a method for setting an exposure duration is provided for setting a target exposure time slot of a camera device, the camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure duration, wherein N is An integer greater than 1, specifically including:
首先根据照相设备在照相过程中的抖动状态确定抖动参数,并预测N个曝光时长档位各自对应的理论模糊角,然后根据当前抖动状态下N个曝光时长档位各自对应的抑制比,预测N个曝光时长档位各自对应的抑制模糊角,并根据容许模糊角从中选择目标抑制模糊角,设定目标抑制模糊角对应的曝光时长档位为最适的曝光时长档位。在照相过程中,照相设备根据实际的抖动情况对抖动补偿功能开启的情况下的模糊角,即抑制模糊角进行预测,并按照容许模糊角从N个曝光时长档位各自对应的抑制模糊角中选择其一作为目标抑制模糊角,最终设定目标曝光时长档位,达到根据实际的抖动情况设定最适的曝光时长档位的目的。Firstly, the jitter parameter is determined according to the jitter state of the camera device during the photographing process, and the theoretical blur angle corresponding to each of the N exposure time slots is predicted, and then N is predicted according to the respective suppression ratios of the N exposure time slots in the current jitter state. Each of the exposure time slots has a corresponding suppression blur angle, and the target suppression blur angle is selected according to the allowable blur angle, and the exposure time slot corresponding to the target suppression blur angle is set as the optimum exposure time slot. In the photographic process, the camera device predicts the blur angle in the case where the shake compensation function is turned on according to the actual shake condition, that is, suppresses the blur angle, and according to the allowable blur angle from the suppression blur angle corresponding to each of the N exposure time slots Select one as the target to suppress the blur angle, and finally set the target exposure time slot to achieve the purpose of setting the optimum exposure time slot according to the actual jitter condition.
结合第一方面,在第一种可能的实现方式中,在照相设备中存储一个抑制比列表,照相过程中,在获取抖动参数后,根据抖动参数查询抑制比列表,得到N个曝光时长档位各自对应的抑制比。实际生产中,可以通过实验测量得到一款照相设备的抑制比列表,并将抑制比列表输入到该款照相设备。In combination with the first aspect, in a first possible implementation, a suppression ratio list is stored in the camera device, and after the jitter parameter is acquired in the photographing process, the suppression ratio list is obtained according to the jitter parameter, and N exposure time slots are obtained. The respective suppression ratios. In actual production, a list of suppression ratios of a camera device can be obtained by experimental measurement, and a list of suppression ratios is input to the camera device.
结合第一方面,在第二种可能的实现方式中,由于抑制模糊角主要受抖动振幅和抖动周期影响,因此以抖动振幅和抖动周期作为抖动参数。在抖动振幅A、抖动周期λ一定时,理论模糊角的取值随曝光起始时间点t、曝光时长Δt不同而变化,因此构建模糊角函数,即模糊角
Figure PCTCN2016079215-appb-000001
关于t、Δt、A以及λ的函数,并根据模糊角函数计算理论模糊角,由此不仅考虑到了实际的抖动情况,还进一步考虑到了曝光起始时间点t以及曝光时长Δt对模糊角的影响。
In combination with the first aspect, in the second possible implementation, since the suppression blur angle is mainly affected by the jitter amplitude and the jitter period, the jitter amplitude and the jitter period are used as the jitter parameters. When the jitter amplitude A and the jitter period λ are constant, the value of the theoretical blur angle varies with the exposure start time point t and the exposure time length Δt, thus constructing a blur angle function, that is, a blur angle
Figure PCTCN2016079215-appb-000001
Regarding the functions of t, Δt, A, and λ, and calculating the theoretical blur angle according to the blur angle function, not only the actual jitter condition is considered, but also the influence of the exposure start time point t and the exposure time length Δt on the blur angle is further considered. .
结合第二种可能的实现方式,在第三种可能的实现方式中,一 个曝光时长档位所对应的理论模糊角为,当曝光时长Δt为该曝光时长档位所对应的曝光时长时,模糊角函数在一个抖动周期λ内关于曝光起始时间点t的积分与抖动周期λ之比。由于模糊角函数为周期函数,模糊角函数在一个抖动周期λ内的积分与抖动周期λ的比值反映了理论模糊角的平均水平。In combination with the second possible implementation, in a third possible implementation, one The theoretical blur angle corresponding to the exposure time slot is: when the exposure time length Δt is the exposure time corresponding to the exposure time slot, the integration and jitter of the blur angle function in the one jitter period λ with respect to the exposure start time point t The ratio of the period λ. Since the fuzzy angle function is a periodic function, the ratio of the integral of the blur angle function within one jitter period λ to the jitter period λ reflects the average level of the theoretical blur angle.
结合第二种可能的实现方式,在第四种可能的实现方式中,一个曝光时长档位所对应的理论模糊角为,当曝光时长Δt为该曝光时长档位所对应的曝光时长时,模糊角函数在一个抖动周期λ内的P个采样值的平均值。由于模糊角函数为周期函数,模糊角函数在一个抖动周期λ内采样值的平均值,也反映了理论模糊角的平均水平。In combination with the second possible implementation manner, in the fourth possible implementation manner, the theoretical blur angle corresponding to an exposure time slot is when the exposure time length Δt is the exposure duration corresponding to the exposure time slot, the blur The average of the P sample values of the angular function within one jitter period λ. Since the fuzzy angle function is a periodic function, the average value of the sampled values of the fuzzy angle function in one jitter period λ also reflects the average level of the theoretical blur angle.
第二方面,提供一种设定曝光时长的装置,用于实现第一方面所提供的设定曝光时长的方法。In a second aspect, there is provided a device for setting an exposure duration for implementing the method of setting an exposure duration provided by the first aspect.
第三方面,提供另一种设定曝光时长的装置,用于实现第一方面所提供的设定曝光时长的方法。In a third aspect, there is provided another apparatus for setting an exposure duration for implementing the method of setting the exposure duration provided by the first aspect.
第四方面,提供一种计算机可读存储介质,计算机可读存储介质存储有程序代码,当程序代码被执行时,实现第一方面所提供的设定曝光时长的方法。In a fourth aspect, a computer readable storage medium is provided. The computer readable storage medium stores program code, and when the program code is executed, implements a method for setting an exposure duration provided by the first aspect.
第五方面,提供一种照相设备,包括第二方面或者第三方面所提供的设定曝光时长的装置。In a fifth aspect, a photographic apparatus is provided, comprising the apparatus for setting an exposure duration provided by the second aspect or the third aspect.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或者现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图1为本发明的实施例所提供的设定曝光时长的方法流程示意图;1 is a schematic flow chart of a method for setting an exposure time length according to an embodiment of the present invention;
图2为本发明的实施例中抖动角度随时间变化示意图; 2 is a schematic diagram showing changes in jitter angle with time in an embodiment of the present invention;
图3为本发明的实施例中对模糊角的说明示意图;3 is a schematic view showing the blur angle in the embodiment of the present invention;
图4为本发明的实施例中对模糊角的说明示意图;4 is a schematic view showing the blur angle in the embodiment of the present invention;
图5为本发明的实施例中对模糊角的说明示意图;Figure 5 is a schematic view showing the blur angle in the embodiment of the present invention;
图6为本发明的实施例中对模糊角的说明示意图;Figure 6 is a schematic view showing the blur angle in the embodiment of the present invention;
图7为本发明的实施例中对模糊角的说明示意图;Figure 7 is a schematic view showing the blur angle in the embodiment of the present invention;
图8为本发明的实施例中对模糊角的说明示意图;Figure 8 is a schematic view showing the blur angle in the embodiment of the present invention;
图9为本发明的实施例中对模糊角的说明示意图;Figure 9 is a schematic view showing the blur angle in the embodiment of the present invention;
图10为本发明的实施例中对模糊角的说明示意图;Figure 10 is a schematic view showing the blur angle in the embodiment of the present invention;
图11为本发明的实施例中对模糊距离的说明示意图;FIG. 11 is a schematic diagram showing the blur distance in the embodiment of the present invention; FIG.
图12为本发明的实施例中对人眼最小可分辨角的说明示意图;Figure 12 is a schematic illustration of the minimum resolvable angle of the human eye in the embodiment of the present invention;
图13为本发明的实施例中对人眼在观察图片时最小能察觉到的模糊范围的直径的说明示意图;Figure 13 is a schematic illustration of the diameter of a blurring range that is least perceptible to a human eye when viewing a picture in an embodiment of the present invention;
图14为本发明的实施例中对容许模糊角的计算方式的说明示意图;FIG. 14 is a schematic diagram showing the calculation of the allowable blur angle in the embodiment of the present invention; FIG.
图15为本发明的实施例中对容许模糊角的另一计算方式的说明示意图;FIG. 15 is a schematic diagram showing another calculation manner of the allowable blur angle in the embodiment of the present invention; FIG.
图16为本发明的实施例所提供的抑制模糊角的实验值随曝光时长的变化曲线示意图;FIG. 16 is a schematic diagram showing a variation of an experimental value of a suppression blur angle according to an exposure time length according to an embodiment of the present invention; FIG.
图17为本发明的实施例中对目标抑制模糊角的说明示意图;Figure 17 is a schematic illustration of the target suppression blur angle in the embodiment of the present invention;
图18为本发明的实施例中对目标抑制模糊角的另一说明示意图;FIG. 18 is another schematic diagram showing the suppression of the blur angle of the target in the embodiment of the present invention; FIG.
图19为本发明的实施例中对曝光起始时间点的说明示意图;Figure 19 is a schematic illustration of an exposure start time point in an embodiment of the present invention;
图20为本发明的实施例所提供的一种设定曝光时长的装置结构示意图;20 is a schematic structural diagram of an apparatus for setting an exposure duration according to an embodiment of the present invention;
图21为本发明的实施例所提供的另一种设定曝光时长的装置结构示意图。FIG. 21 is a schematic structural diagram of another apparatus for setting an exposure duration according to an embodiment of the present invention.
具体实施方式detailed description
本发明的实施例提供一种设定曝光时长的方法、装置以及照相 设备,照相设备可以是手机、平板电脑、数码相机等具有照相功能的设备。Embodiments of the present invention provide a method, apparatus, and photographing for setting an exposure duration The device and the camera device can be a camera-enabled device such as a mobile phone, a tablet computer, or a digital camera.
照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。例如,结合表一所示,曝光时长档位的数量为8,对应的曝光时长从1/2秒到1/32秒。The camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one. For example, as shown in Table 1, the number of exposure time slots is 8, and the corresponding exposure time is from 1/2 second to 1/32 second.
表一Table I
曝光时长档位 Exposure time 11 22 33 44 55 66 77 88
曝光时长(秒)Exposure time (seconds) 1/21/2 1/41/4 1/81/8 1/101/10 1/121/12 1/161/16 1/201/20 1/321/32
照相过程中,照相设备根据其实际抖动情况,设定N个曝光时长档位中的一个档位作为目标曝光时长档位,然后开始曝光过程。曝光时长为目标曝光时长档位所对应的曝光时长。每次照相过程中,照相设备均可根据其实际的抖动情况设定目标曝光时长档位,以获得清晰度更好的照片。During the photography process, the camera device sets one of the N exposure time slots as the target exposure time slot according to its actual jitter condition, and then starts the exposure process. The exposure duration is the exposure duration corresponding to the target exposure time slot. During each camera, the camera can set the target exposure time slot according to its actual jitter condition to obtain a better-resolution photo.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例Example
本发明的实施例提供一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,参照图1所示,包括以下步骤:Embodiments of the present invention provide a method for setting an exposure duration for setting a target exposure time slot of a camera device, a camera device providing N exposure time slots, and an exposure time slot corresponding to an exposure duration, wherein N For an integer greater than 1, as shown in Figure 1, the following steps are included:
101、获取抖动参数。101. Obtain a jitter parameter.
其中,抖动参数用于指示照相设备在照相过程中的抖动状态。抖动参数具体可以包括用于指示照相设备在不同方向上加速度、倾斜程度的参数,可以通过运动传感器进行采样。运动传感器可以包 括三轴陀螺仪、六轴陀螺仪、加速度计等器件中的至少一种。Wherein, the jitter parameter is used to indicate the jitter state of the camera device during the photographing process. The jitter parameter may specifically include parameters for indicating the degree of acceleration, tilt of the camera device in different directions, which may be sampled by the motion sensor. Motion sensor can pack At least one of a three-axis gyroscope, a six-axis gyroscope, an accelerometer, and the like.
可选的,抖动参数包括照相设备在照相过程中的抖动振幅和抖动周期。抖动振幅是指照相设备在抖动过程中,镜头抖动角度的最大值。Optionally, the jitter parameter includes jitter amplitude and jitter period of the photographic device during photography. The jitter amplitude refers to the maximum value of the lens shake angle during the shaking of the camera.
抖动角度为时间的函数,结合图2所示,抖动角度
Figure PCTCN2016079215-appb-000002
其中,A为抖动振幅,λ为抖动周期,t为时间。将抖动角度y关于时间t的函数称为抖动波函数,抖动波函数还可以包括t的初始相位,为便于计算,本发明的实施例中以初始相位为0的情况进行说明。
The angle of jitter is a function of time, as shown in Figure 2, the angle of jitter
Figure PCTCN2016079215-appb-000002
Where A is the jitter amplitude, λ is the jitter period, and t is the time. The function of the dither angle y with respect to the time t is referred to as a dithering wave function, and the dithering wave function may further include an initial phase of t, which is illustrated in the embodiment of the present invention with an initial phase of 0 for ease of calculation.
当然,抖动波函数还可以是其它形式,例如余弦函数或者其它,本发明对于其具体形式不做限定,仅以正弦函数的情况为例进行说明。Of course, the jitter wave function may also be other forms, such as a cosine function or the like. The present invention is not limited to its specific form, and only the case of a sine function is taken as an example.
实际情况下,照相设备的抖动角度可能是由多个抖动波函数叠加合成的结果。不同抖动周期(抖动频率)的抖动对于照片清晰度的影响有所不同,通过对运动传感器感测到的原始信号进行处理,可以从中筛选出对照片清晰度影响最大的抖动所对应的信号。In reality, the angle of jitter of the camera device may be the result of a superposition of multiple jitter wave functions. The jitter of different jitter periods (jitter frequency) has different effects on the sharpness of the photo. By processing the original signal sensed by the motion sensor, the signal corresponding to the jitter that has the greatest influence on the sharpness of the photo can be selected.
例如,运动传感器感测到的原始信号通常为模拟信号,经过数字转换器进行转换后,对数字信号进行傅里叶变换,得到不同抖动周期的一组数字信号。通过带通滤波器对经过傅里叶变换后的数字信号进行筛选,滤除对清晰度影响较小的频率的信号,保留对清晰度影响较大的频率的信号。最后,根据经过带通滤波后的数字信号,确定抖动振幅和抖动周期。For example, the original signal sensed by the motion sensor is usually an analog signal, and after being converted by a digital converter, the digital signal is Fourier transformed to obtain a set of digital signals of different jitter periods. The Fourier-transformed digital signal is filtered by a band-pass filter to filter out signals at frequencies that have less influence on sharpness, and to retain signals at frequencies that have a greater influence on sharpness. Finally, the jitter amplitude and jitter period are determined based on the bandpass filtered digital signal.
102、获取用户的拍照指令。102. Acquire a photo instruction of the user.
拍照指令用于指示照相设备启动照相过程。例如,拍照指令可以在用户按下拍照键的时候触发,拍照键可以是物理按键或者虚拟按键。The photographing instruction is used to instruct the photographing device to start the photographing process. For example, the camera command can be triggered when the user presses the camera button, and the camera button can be a physical button or a virtual button.
步骤101和步骤102的顺序可变。例如,步骤101在前步骤102 在后。例如,照相设备为智能手机,当用户打开照相应用程序时,照相设备就开始采样抖动参数。或者,步骤102在前步骤101在后。当用户打开照相应用程序时,照相设备暂不采样抖动参数,当用户按下拍照键时,在开始采样抖动参数。The order of steps 101 and 102 is variable. For example, step 101 is in the previous step 102. is behind. For example, the camera device is a smartphone, and when the user opens the camera application, the camera device begins sampling the jitter parameters. Alternatively, step 102 is preceded by the previous step 101. When the user opens the camera application, the camera device does not sample the jitter parameter at the moment, and when the user presses the camera button, the sampling jitter parameter is started.
103、根据当前获取的抖动参数预测理论模糊角集合。103. Predict a theoretical fuzzy angle set according to the currently obtained jitter parameter.
<1>、模糊角<1>, blur angle
表示模糊角,
Figure PCTCN2016079215-appb-000004
为镜头的抖动角度在曝光过程中的累积变化量,通常,模糊角越小,照片清晰度越好。图3为模糊角的说明示意图,曝光时长为Δt,曝光起始时间点分别为t_0,t_1以及t_2。矩形301、矩形302、以及矩形303的宽度均为Δt,抖动波函数在三个矩形各自宽度范围内的部分,表示曝光过程中镜头抖动角度的变化轨迹,抖动角度的变化量恒为正,即
Figure PCTCN2016079215-appb-000005
的取值恒为正。
use Indicates the blur angle,
Figure PCTCN2016079215-appb-000004
For the cumulative variation of the lens's jitter angle during exposure, usually, the smaller the blur angle, the better the picture sharpness. 3 is a schematic diagram showing the blur angle, the exposure time is Δt, and the exposure start time points are t_0, t_1 and t_2, respectively. The widths of the rectangle 301, the rectangle 302, and the rectangle 303 are both Δt, and the portion of the dithering wave function within the respective widths of the three rectangles represents the trajectory of the lens shake angle during the exposure, and the variation of the jitter angle is always positive, that is,
Figure PCTCN2016079215-appb-000005
The value is always positive.
当t_0时间点为曝光起始时间点时,在曝光过程中,抖动角度y单调递增,此时
Figure PCTCN2016079215-appb-000006
的大小为矩形301的高,
Figure PCTCN2016079215-appb-000007
Figure PCTCN2016079215-appb-000008
When the t_0 time point is the exposure start time point, the jitter angle y monotonically increases during the exposure process.
Figure PCTCN2016079215-appb-000006
The size of the rectangle is 301,
Figure PCTCN2016079215-appb-000007
Figure PCTCN2016079215-appb-000008
当t_1或者t_2时间点为曝光起始时间点时,在曝光过程中,抖动角度y非单调函数,需要在每个单调区间内分别计算
Figure PCTCN2016079215-appb-000009
的取值并将整个曝光过程中抖动角度的累积变化量加和。
When the time point of t_1 or t_2 is the exposure start time point, the jitter angle y is not a monotonic function during the exposure process, and needs to be calculated separately in each monotonic interval.
Figure PCTCN2016079215-appb-000009
The value is added and the cumulative change in jitter angle during the entire exposure process is summed.
具体的,当t_1时间点为曝光起始时间点时,镜头的抖动角度在t_3时间点达到最大值(抖动振幅),(t_3-t_2)<Δt。从t_1时间点到t_3时间点,镜头抖动角度的变化量大小为矩形302的高,从t_3时间点到曝光结束,镜头抖动角度的变化量大小也为矩形302的高。因此
Figure PCTCN2016079215-appb-000010
的大小为2倍的矩形302的高。
Specifically, when the t_1 time point is the exposure start time point, the lens shake angle reaches a maximum value (jitter amplitude) at time t_3, and (t_3-t_2) < Δt. From the t_1 time point to the t_3 time point, the amount of change in the lens shake angle is the height of the rectangle 302. From the time point t_3 to the end of the exposure, the amount of change in the lens shake angle is also the height of the rectangle 302. therefore
Figure PCTCN2016079215-appb-000010
The size is 2 times the height of the rectangle 302.
当t_2时间点为曝光起始时间点时,镜头的抖动角度在曝光过程中先达到最大值,然后减小,在t_4时间点减小到与t_2时间点相同水平,并进一步减小直到曝光结束。When the t_2 time point is the exposure start time point, the lens shake angle reaches the maximum value first during the exposure process, then decreases, decreases to the same level as the t_2 time point at the time point t_4, and further decreases until the end of the exposure. .
镜头抖动角度在t_2时间点到t_4时间点的变化量,计算方式与计算曝光起始时间点为t_1时间点时的情况相同,此处不再赘述。The amount of change in the lens shake angle from the time t_2 to the time t_4 is calculated in the same manner as when the exposure start time is t_1, and will not be described here.
从t_4时间点到曝光结束,镜头抖动角度的变化量为矩形303 的高。
Figure PCTCN2016079215-appb-000011
的大小为从t_2时间点到t_4时间点的变化量,与从t_4时间点到曝光结束时的变化量之和。
From the time point t_4 to the end of exposure, the amount of change in the lens shake angle is the height of the rectangle 303.
Figure PCTCN2016079215-appb-000011
The size is the sum of the change from the time t_2 to the time t_4, and the change from the time t_4 to the end of the exposure.
图4所示为模糊角达到最大的情况,当曝光时间大于或者等于抖动周期λ时,曝光过程中镜头抖动角度的轨迹可能两次扫过最大值,这种情况下
Figure PCTCN2016079215-appb-000012
的取值为2A。图4中矩形401的宽度大于抖动周期λ,高度为2A。
Figure 4 shows the case where the blur angle reaches the maximum. When the exposure time is greater than or equal to the jitter period λ, the trajectory of the lens shake angle during the exposure may sweep the maximum twice. In this case,
Figure PCTCN2016079215-appb-000012
The value is 2A. The width of the rectangle 401 in FIG. 4 is larger than the jitter period λ and the height is 2A.
<1.1>、模糊角函数<1.1>, fuzzy angle function
结合图3所示,在抖动波函数确定的情况下,当曝光时长不变时,曝光起始时间点如果不同,模糊角
Figure PCTCN2016079215-appb-000013
的大小不同。本发明的实施例通过模糊角函数来表示模糊角随抖动振幅、抖动周期、曝光起始时间点以及曝光时长的变化关系,即模糊角函数为关于上述4个物理量的多元函数。
As shown in FIG. 3, in the case where the jitter wave function is determined, when the exposure duration is constant, the exposure start time point is different, and the blur angle is
Figure PCTCN2016079215-appb-000013
The size is different. The embodiment of the present invention expresses the relationship of the blur angle with the jitter amplitude, the jitter period, the exposure start time point, and the exposure duration by the blur angle function, that is, the blur angle function is a multivariate function with respect to the above four physical quantities.
可选的,根据抖动振幅和抖动周期构建模糊角函数,以
Figure PCTCN2016079215-appb-000014
表示模糊角函数,
Figure PCTCN2016079215-appb-000015
为模糊角,t为曝光起始时间点,Δt为曝光时长。A和λ为照相设备当前获取抖动参数(抖动振幅和抖动周期),为常数,也就是说在抖动参数确定后,模糊角只与曝光起始时间点和曝光时长有关,因此模糊角函数也可以简写为
Figure PCTCN2016079215-appb-000016
Optionally, constructing a blur angle function according to the jitter amplitude and the jitter period,
Figure PCTCN2016079215-appb-000014
Represents the fuzzy angle function,
Figure PCTCN2016079215-appb-000015
For the blur angle, t is the exposure start time point, and Δt is the exposure time length. A and λ are the current acquisition jitter parameters (jitter amplitude and jitter period) of the camera device, which is a constant, that is to say, after the jitter parameter is determined, the blur angle is only related to the exposure start time point and the exposure time length, so the blur angle function can also Abbreviated as
Figure PCTCN2016079215-appb-000016
<1.1.1>、模糊角函数的周期性<1.1.1>, the periodicity of the fuzzy angle function
抖动波函数y为关于曝光起始时间点t的周期函数,结合图5所示,t_5=t_0+λ,则y(t=t_5)=y(t=t_0)。当曝光时长一定时,以t_0时间点为曝光起始时间点时的模糊角,与以t_0+λ为曝光起始时间点时的模糊角相等。即矩形504的高,与矩形501的高相等,
Figure PCTCN2016079215-appb-000017
因此模糊角
Figure PCTCN2016079215-appb-000018
也是关于曝光起始时间点t的周期函数。
The dithering wave function y is a periodic function with respect to the exposure start time point t, and as shown in Fig. 5, t_5 = t_0 + λ, then y(t = t_5) = y (t = t_0). When the exposure duration is constant, the blur angle when the t_0 time point is the exposure start time point is equal to the blur angle when t_0+λ is the exposure start time point. That is, the height of the rectangle 504 is equal to the height of the rectangle 501.
Figure PCTCN2016079215-appb-000017
Blurring angle
Figure PCTCN2016079215-appb-000018
It is also a periodic function with respect to the exposure start time point t.
进一步地,模糊角
Figure PCTCN2016079215-appb-000019
用于衡量抖动角度的变化量,其取值恒为正,以t_0时间点为曝光起始时间点时的模糊角,与以t_0+λ/2为曝光起始时间点时的模糊角相等。结合图5所示,t_6=t_0+λ/2,矩形305的高,与矩形301的高相等,
Figure PCTCN2016079215-appb-000020
因此模糊 角函数
Figure PCTCN2016079215-appb-000021
为关于t的以λ/2为周期的周期函数,其关于t的周期为抖动周期λ的一半。
Further, the blur angle
Figure PCTCN2016079215-appb-000019
It is used to measure the amount of change in the jitter angle, and its value is always positive. The blur angle when the t_0 time point is the exposure start time point is equal to the blur angle when t_0+λ/2 is the exposure start time point. As shown in FIG. 5, t_6=t_0+λ/2, the height of the rectangle 305 is equal to the height of the rectangle 301.
Figure PCTCN2016079215-appb-000020
Fuzzy angle function
Figure PCTCN2016079215-appb-000021
For a periodic function with respect to t with a period of λ/2, its period with respect to t is half of the jitter period λ.
<1.1.2>、模糊角函数的具体形式<1.1.2>, the specific form of the fuzzy angle function
由于模糊角函数为关于t的以λ/2为周期的周期函数,本发明的实施例取一个周期进行说明。具体的,以t∈[0,λ/2]区间的情况为例,对抖动波函数的具体表达形式进行说明:Since the blur angle function is a periodic function with respect to t in the period of λ/2, an embodiment of the present invention will be described with one cycle. Specifically, taking the case of the interval t∈[0,λ/2] as an example, the specific expression of the jitter wave function is explained:
<1.1.2.1>、
Figure PCTCN2016079215-appb-000022
时的模糊角函数
Figure PCTCN2016079215-appb-000023
<1.1.2.1>,
Figure PCTCN2016079215-appb-000022
Fuzzy angle function
Figure PCTCN2016079215-appb-000023
Figure PCTCN2016079215-appb-000024
Figure PCTCN2016079215-appb-000024
结合图6所示,当
Figure PCTCN2016079215-appb-000025
时,曝光过程中镜头抖动角度的变化轨迹为矩形601的宽度范围内的部分。
Combined with Figure 6, when
Figure PCTCN2016079215-appb-000025
The change track of the lens shake angle during the exposure is the portion within the width of the rectangle 601.
Figure PCTCN2016079215-appb-000026
时,曝光过程中镜头抖动角度的变化轨迹为矩形602的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000026
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 602.
Figure PCTCN2016079215-appb-000027
时,曝光过程中镜头抖动角度的变化轨迹为矩形603的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000027
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 603.
Figure PCTCN2016079215-appb-000028
时,曝光过程中镜头抖动角度的变化轨迹为矩形604的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000028
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 604.
<1.1.2.2>、
Figure PCTCN2016079215-appb-000029
时的模糊角函数
Figure PCTCN2016079215-appb-000030
<1.1.2.2>,
Figure PCTCN2016079215-appb-000029
Fuzzy angle function
Figure PCTCN2016079215-appb-000030
Figure PCTCN2016079215-appb-000031
Figure PCTCN2016079215-appb-000031
结合图7所示,当
Figure PCTCN2016079215-appb-000032
时,曝光过程中镜头抖动角度的变化轨迹为矩形701的宽度范围内的部分。
Combined with Figure 7, when
Figure PCTCN2016079215-appb-000032
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 701.
Figure PCTCN2016079215-appb-000033
时,曝光过程中镜头抖动角度的变化轨迹为矩形702的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000033
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 702.
Figure PCTCN2016079215-appb-000034
时,曝光过程中镜头抖动角度的变化轨迹为矩形703的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000034
At the time of the exposure, the change track of the lens shake angle during the exposure is a portion within the width of the rectangle 703.
<1.1.2.3>、
Figure PCTCN2016079215-appb-000035
时的模糊角函数
Figure PCTCN2016079215-appb-000036
<1.1.2.3>,
Figure PCTCN2016079215-appb-000035
Fuzzy angle function
Figure PCTCN2016079215-appb-000036
Figure PCTCN2016079215-appb-000037
Figure PCTCN2016079215-appb-000037
结合图8所示,当
Figure PCTCN2016079215-appb-000038
时,曝光过程中镜头抖动角度的变化轨迹为矩形801的宽度范围内的部分。
Combined with Figure 8, when
Figure PCTCN2016079215-appb-000038
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 801.
Figure PCTCN2016079215-appb-000039
时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下
Figure PCTCN2016079215-appb-000040
的取值为2A。
when
Figure PCTCN2016079215-appb-000039
When the exposure, the trajectory of the lens shake angle is swept twice, in this case
Figure PCTCN2016079215-appb-000040
The value is 2A.
Figure PCTCN2016079215-appb-000041
时,曝光过程中镜头抖动角度的变化轨迹为矩形802的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000041
The change track of the lens shake angle during the exposure is the portion within the width of the rectangle 802.
Figure PCTCN2016079215-appb-000042
时,曝光过程中镜头抖动角度的变化轨迹为矩形803的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000042
At the time of the exposure, the change angle of the lens shake angle during the exposure is a portion within the width of the rectangle 803.
<1.1.2.4>、
Figure PCTCN2016079215-appb-000043
时的模糊角函数
Figure PCTCN2016079215-appb-000044
<1.1.2.4>,
Figure PCTCN2016079215-appb-000043
Fuzzy angle function
Figure PCTCN2016079215-appb-000044
Figure PCTCN2016079215-appb-000045
Figure PCTCN2016079215-appb-000045
结合图9所示,当
Figure PCTCN2016079215-appb-000046
时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下
Figure PCTCN2016079215-appb-000047
的取值为2A。
Combined with Figure 9, when
Figure PCTCN2016079215-appb-000046
When the exposure, the trajectory of the lens shake angle is swept twice, in this case
Figure PCTCN2016079215-appb-000047
The value is 2A.
Figure PCTCN2016079215-appb-000048
时,曝光过程中镜头抖动角度的变化轨迹为矩形901的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000048
At the time of the exposure, the change track of the lens shake angle during the exposure is a portion within the width of the rectangle 901.
Figure PCTCN2016079215-appb-000049
时,曝光过程中镜头抖动角度的变化轨迹为矩形902的宽度范围内的部分。
when
Figure PCTCN2016079215-appb-000049
The change track of the lens shake angle during the exposure is the portion within the width of the rectangle 902.
Figure PCTCN2016079215-appb-000050
时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下
Figure PCTCN2016079215-appb-000051
的取值为2A。
when
Figure PCTCN2016079215-appb-000050
When the exposure, the trajectory of the lens shake angle is swept twice, in this case
Figure PCTCN2016079215-appb-000051
The value is 2A.
<1.1.2.5>、Δt∈(λ,+∞)时的模糊角函数
Figure PCTCN2016079215-appb-000052
Fuzzy angle function when <1.1.2.5>, Δt∈(λ, +∞)
Figure PCTCN2016079215-appb-000052
Figure PCTCN2016079215-appb-000053
Figure PCTCN2016079215-appb-000053
结合图10所示,当
Figure PCTCN2016079215-appb-000054
时,曝光过程中镜头抖动角度的变化轨迹为矩形1001的宽度范围内的部分,矩形1001的宽度为无穷大,曝光过程中镜头抖动角度的变化轨迹可能多次扫过最大值,这种情况下
Figure PCTCN2016079215-appb-000055
的取值为2A。
Combined with Figure 10, when
Figure PCTCN2016079215-appb-000054
When the exposure angle of the lens shake angle is within the width range of the rectangle 1001, the width of the rectangle 1001 is infinite, and the change track of the lens shake angle during the exposure may sweep the maximum value multiple times.
Figure PCTCN2016079215-appb-000055
The value is 2A.
<2>、理论模糊角<2>, theoretical blur angle
理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,也就是说,理论模糊角是假设没有抖动补偿功能的情况下,一定曝光时长所对应的模糊角的期望值,是通过计算得到的预测值。The theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is turned off, that is, the theoretical blur angle is the expected value of the blur angle corresponding to a certain exposure time length, assuming that there is no jitter compensation function, which is calculated by calculation. Predictive value.
<2.1>理论模糊角函数<2.1> Theoretical fuzzy angle function
本发明的实施例通过理论模糊角函数来表示理论模糊角随抖动振幅、抖动周期、曝光起始时间点以及曝光时长的变化关系,即理论模糊角函数为关于上述4个物理量的多元函数。以ψ=g(t,Δt,A,λ)表示理论模糊角函数,ψ为理论模糊角。照相设备获取抖动参数后,抖动振幅A和抖动周期λ常数,也就是说在抖动参数确定后,理论模糊角只与曝光起始时间点和曝光时长有关,因此理论模糊角函数也可以简写为ψ=g(t,Δt)。The embodiment of the present invention expresses the relationship between the theoretical blur angle and the jitter amplitude, the jitter period, the exposure start time point, and the exposure duration by the theoretical blur angle function, that is, the theoretical blur angle function is a multivariate function with respect to the above four physical quantities. The theoretical blur angle function is represented by ψ=g(t, Δt, A, λ), and ψ is the theoretical blur angle. After the camera device obtains the jitter parameter, the jitter amplitude A and the jitter period λ constant, that is, after the jitter parameter is determined, the theoretical blur angle is only related to the exposure start time point and the exposure duration, so the theoretical blur angle function can also be abbreviated as ψ =g(t, Δt).
根据理论模糊角的定义,理论模糊角为模糊角的期望值,因此可以根据模糊角计算得到理论模糊角。结合<1.1.1>,模糊角函数
Figure PCTCN2016079215-appb-000056
为关于t的以λ/2为周期的周期函数,模糊角的期望值,可以是模糊角在一个周期内的平均值。
According to the definition of the theoretical blur angle, the theoretical blur angle is the expected value of the blur angle, so the theoretical blur angle can be calculated according to the blur angle. Combined with <1.1.1>, the fuzzy angle function
Figure PCTCN2016079215-appb-000056
For a periodic function with respect to t with a period of λ/2, the expected value of the blur angle may be an average value of the blur angle in one cycle.
当然,由于模糊角函数为周期函数,其在一个周期内的期望值与其在多个周期内的期望值相等。本发明的实施例以计算其两个周期内的期望值作为理论模糊角的情况为例进行说明。Of course, since the blur angle function is a periodic function, its expected value in one cycle is equal to its expected value in multiple cycles. The embodiment of the present invention will be described by taking an example in which the expected value in two periods is calculated as the theoretical blur angle.
<2.1.1>、理论模糊角函数的具体形式<2.1.1>, the specific form of the theoretical fuzzy angle function
可选的,本发明的实施例提供两种具体的计算方式,分别说明如下:Optionally, the embodiment of the present invention provides two specific calculation manners, which are respectively described as follows:
<2.1.1.1>、理论模糊角函数的第一种形式: <2.1.1.1>, the first form of the theoretical fuzzy angle function:
Figure PCTCN2016079215-appb-000057
Figure PCTCN2016079215-appb-000057
理论模糊角函数为模糊角函数在t∈[kλ,(k+1)λ]区间内的积分与积分区间长度λ的商,k为大于或者等于0的整数。积分区间长度λ为模糊角函数周期λ/2的2倍,因此理论模糊角为模糊角在两个周期内的期望值。The theoretical blur angle function is the quotient of the integral of the fuzzy angle function in the interval t∈[kλ,(k+1)λ] and the length λ of the integral interval, and k is an integer greater than or equal to 0. The integral interval length λ is twice the period of the blur angle function λ/2, so the theoretical blur angle is the expected value of the blur angle in two periods.
曝光时长Δt=Δt_i(i=1,...N),Δt_i为照相设备第i个曝光时长档位所对应的曝光时长,参照表一,曝光时长档位所对应的曝光时长为已知的常数值。Exposure time Δt=Δt_i (i=1,...N), Δt_i is the exposure duration corresponding to the i-th exposure time slot of the camera device. Referring to Table 1, the exposure duration corresponding to the exposure time slot is known. Constant value.
N个曝光时长档位各自对应的理论模糊角,可以将N个曝光时长档位各自对应曝光时长Δt_i分别代入理论模糊角函数ψ=g(t,Δt)计算得到。The theoretical blur angle corresponding to each of the N exposure time slots can be calculated by substituting the respective exposure time lengths Δt_i of the N exposure time slots into the theoretical blur angle function ψ=g(t, Δt).
具体的,N个曝光时长档位各自对应的理论模糊角,通过第一公式计算得到,第一公式为:Specifically, the theoretical blur angle corresponding to each of the N exposure time slots is calculated by the first formula, and the first formula is:
Figure PCTCN2016079215-appb-000058
Figure PCTCN2016079215-appb-000058
其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,k=0。Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, k=0.
<2.1.1.2>、理论模糊角函数的第二种形式:<2.1.1.2>, the second form of the theoretical blur angle function:
Figure PCTCN2016079215-appb-000059
Figure PCTCN2016079215-appb-000059
其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,P为大于1的整数。采样区间为[kλ,(k+1)λ),k为大于或者等于0的整数,Where t_j(j=1, . . . P) is the P sample values of the exposure start time point t in one jitter period, and P is an integer greater than one. The sampling interval is [kλ, (k+1) λ), and k is an integer greater than or equal to 0.
理论模糊角函数为模糊角函数在[kλ,(k+1)λ)区间内的P个采样值的均值。采样区间的长度λ为模糊角函数周期λ/2的2倍,因此理论模糊角为模糊角在两个周期内的期望值。The theoretical fuzzy angle function is the mean of the P sample values of the fuzzy angle function in the interval [kλ, (k+1) λ). The length λ of the sampling interval is twice the period of the blur angle function λ/2, so the theoretical blur angle is the expected value of the blur angle in two periods.
曝光时长Δt=Δt_i(i=1,...N),N个曝光时长档位各自对应的理 论模糊角,可以将N个曝光时长档位各自对应曝光时长Δt_i分别代入理论模糊角函数ψ=g(t,Δt)计算得到。Exposure time Δt=Δt_i (i=1,...N), corresponding to the N exposure time slots On the fuzzy angle, the exposure time length Δt_i of each of the N exposure time slots can be calculated by substituting the theoretical blur angle function ψ=g(t, Δt).
具体的,N个曝光时长档位各自对应的理论模糊角,通过第二公式计算得到,第二公式为:Specifically, the theoretical blur angle corresponding to each of the N exposure time slots is calculated by the second formula, and the second formula is:
Figure PCTCN2016079215-appb-000060
Figure PCTCN2016079215-appb-000060
<3>、理论模糊角集合<3>, theoretical fuzzy angle set
结合<2.1.1.1>中的第一公式,以及<2.1.1.2>中的第二公式,N个曝光时长档位中,每个曝光时长档位均对应一个理论模糊角。理论模糊角集合包括,在当前的抖动参数(抖动振幅A和抖动周期λ)下,N个曝光时长档位各自对应的理论模糊角。参照表二,理论模糊角集合包括ψ_i(i=1,...N)。In combination with the first formula in <2.1.1.1> and the second formula in <2.1.1.2>, each of the N exposure time slots corresponds to a theoretical blur angle. The theoretical blur angle set includes the theoretical blur angle corresponding to each of the N exposure time slots under the current jitter parameters (jitter amplitude A and jitter period λ). Referring to Table 2, the theoretical blur angle set includes ψ_i (i = 1, ... N).
表二Table II
曝光时长档位 Exposure time 11 22 33 44 ……...... NN
曝光时长(Δt_i)Exposure time (Δt_i) Δt_1Δt_1 Δt_2Δt_2 Δt_3Δt_3 Δt_4Δt_4 ……...... Δt_NΔt_N
理论模糊角集合(ψ_i)Theoretical fuzzy angle set (ψ_i) ψ_1Ψ_1 ψ_2Ψ_2 ψ_3Ψ_3 ψ_4Ψ_4 ……...... ψ_Nψ_N
104、根据当前获取的抖动参数确定抑制比集合。104. Determine a suppression ratio set according to the currently obtained jitter parameter.
<3>抑制比<3> suppression ratio
抑制比用于指示照相设备对于抖动的抑制能力,在一定抖动参数下,照相设备对抖动的抑制能力越强,照片的清晰度越高。The suppression ratio is used to indicate the ability of the photographic device to suppress the jitter. Under certain jitter parameters, the photographic device has a stronger ability to suppress the jitter, and the resolution of the photo is higher.
可选的,本发明的实施例中通过理论模糊角和抑制模糊角的函数来表示抑制比,其中抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。具体的,抑制比关于理论模糊角和抑制模糊角的函数具体为:Alternatively, in the embodiment of the present invention, the suppression ratio is expressed by a function of a theoretical blur angle and a suppression blur angle, wherein the suppression blur angle is an expected value of the blur angle in the case where the shake compensation function is turned on. Specifically, the suppression ratio is a function of a theoretical blur angle and a suppression blur angle:
Figure PCTCN2016079215-appb-000061
Figure PCTCN2016079215-appb-000061
其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。抑制比与理论模糊角正相关,与抑制模糊角负相关。抑制比越大,表示照相设备对抖动的抑制能力越强。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. The suppression ratio is positively correlated with the theoretical blur angle and negatively correlated with the suppression blur angle. The greater the suppression ratio, the stronger the ability of the camera device to suppress jitter.
抑制比反映了照相设备的防抖属性,可以根据理论模糊角的实验值和抑制模糊角的实验值计算所得实验。以下对测量获取理论模糊角的实验值和抑制模糊角的实验值的过程分别进行说明The suppression ratio reflects the anti-shake property of the camera device, and the experiment can be calculated based on the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle. The following describes the process of obtaining the theoretical fuzzy angle and the experimental value of suppressing the blur angle.
<3.1>测量获取理论模糊角ψ的实验值<3.1>Measure the experimental value of the theoretical fuzzy angle 获取
将照相设备固定在抖动台上,抖动台提供一定的抖动振幅和抖动周期。根据抖动振幅和抖动周期计算确定不同曝光时长各自对应的理论模糊角ψ。计算过程见步骤103,此处不再赘述。The camera unit is mounted on a dithering station that provides a certain jitter amplitude and jitter period. The theoretical blur angle ψ corresponding to each exposure time length is determined according to the jitter amplitude and the jitter period. The calculation process is shown in step 103 and will not be described here.
另外,结合步骤103,在相同抖动周期下,模糊角以及理论模糊角的大小,与抖动振幅成正比。表示如下:In addition, in combination with step 103, the blur angle and the magnitude of the theoretical blur angle are proportional to the jitter amplitude under the same jitter period. Expressed as follows:
g(t,Δt,A=X,λ)=Xg(t,Δt,A=1,λ)g(t, Δt, A=X, λ)=Xg(t, Δt, A=1, λ)
f(t,Δt,A=X,λ)=Xf(t,Δt,A=1,λ)f(t, Δt, A=X, λ)=Xf(t, Δt, A=1, λ)
因此,在执行步骤103计算理论模糊角时,可以首先计算得到A=1时的理论模糊角g(t,Δt,A=1,λ),然后得到A=X时的理论模糊角为Xg(t,Δt,A=1,λ)。另外,在实验测量理论模糊角时,抖动台的抖动振幅只需要设为1°即可,抖动振幅为其它值时的理论模糊角均可以根据g(t,Δt,A=X,λ)=Xg(t,Δt,A=1,λ)计算得到。例如,在抖动振幅为1°时测得如表三所示的理论模糊角ψ的实验值:Therefore, when the theoretical blur angle is calculated in step 103, the theoretical blur angle g(t, Δt, A=1, λ) when A=1 is first calculated, and then the theoretical blur angle when A=X is obtained is Xg ( t, Δt, A = 1, λ). In addition, when experimentally measuring the theoretical blur angle, the jitter amplitude of the jitter stage only needs to be set to 1°, and the theoretical blur angle when the jitter amplitude is other values can be based on g(t, Δt, A=X, λ)= Xg(t, Δt, A = 1, λ) is calculated. For example, the experimental value of the theoretical blur angle 如 as shown in Table 3 is measured at a jitter amplitude of 1°:
表三Table 3
Figure PCTCN2016079215-appb-000062
Figure PCTCN2016079215-appb-000062
结合表三,抖动周期为1/8秒,曝光时长为1/16秒时,对应的理论模糊角的实验值为1.41°。在抖动振幅为2°的情况下,抖动周期为1/8秒、曝光时长为1/16秒时,对应的理论模糊角的实验值为1.41°乘以2。本实施的后续内容均以抖动振幅为1°的情况为例进行说明。In combination with Table 3, the jitter period is 1/8 second, and when the exposure time is 1/16 second, the experimental value of the corresponding theoretical blur angle is 1.41°. In the case where the jitter amplitude is 2°, when the jitter period is 1/8 second and the exposure time is 1/16 second, the experimental value of the corresponding theoretical blur angle is 1.41° times 2. The following content of the present embodiment will be described by taking a case where the jitter amplitude is 1°.
<3.2>测量获取抑制模糊角ψ_ON的实验值<3.2> Measurement to obtain the experimental value of the suppression blur angle ψ_ON
抑制模糊角可以通过模糊量计算得到,计算模糊量的方法在相机与影像产品协会(英文全称:Camera&Imaging Products Association,英文简称:CIPA)标准已有规定,不再赘述,此处只说明在模糊量的基础上计算模糊角的过程。The suppression of blur angle can be calculated by the amount of blur. The method of calculating the amount of blur is specified in the Camera & Imaging Products Association (English name: Camera & Imaging Products Association, English abbreviation: CIPA) standard, and will not be described again. The process of calculating the blur angle based on.
结合图11,O为被拍摄物体,O点的位置与照相设备的镜头1101之间的距离为物距,物距用U表示。Referring to Fig. 11, O is the object to be photographed, and the distance between the position of the O point and the lens 1101 of the photographic apparatus is the object distance, and the object distance is represented by U.
镜头1101与感光元件1102之间的距离为像距,像距用V表示,镜头1101的焦距用F表示。The distance between the lens 1101 and the photosensitive element 1102 is the image distance, the image distance is represented by V, and the focal length of the lens 1101 is represented by F.
模糊距离为在照相设备抖动补偿功能开启的情况下,根据模糊量计算所得的模糊范围的长度值,模糊距离用M表示。模糊量通常用像素数量表示,模糊距离为模糊量和像素直径之积,可以认为模糊距离为模糊量范围的直径。The blur distance is the length value of the blur range calculated from the blur amount in the case where the camera device shake compensation function is turned on, and the blur distance is represented by M. The blur amount is usually expressed by the number of pixels, and the blur distance is the product of the blur amount and the pixel diameter, and the blur distance can be considered as the diameter of the blur amount range.
模糊量范围的直径的两个端点,与镜头1101焦点的连线之间的夹角1103,为抑制模糊角ψ_ON,其大小为:The angle between the two end points of the diameter of the blurring amount range and the line connecting the focus of the lens 1101 is to suppress the blur angle ψON, and its size is:
Figure PCTCN2016079215-appb-000063
Figure PCTCN2016079215-appb-000063
根据凸透镜成像公式:
Figure PCTCN2016079215-appb-000064
According to the convex lens imaging formula:
Figure PCTCN2016079215-appb-000064
将像距V用关于焦距F和物距U的代数式替换,得到抑制模糊角ψ_ON的最终计算公式:The image distance V is replaced by the algebraic equation about the focal length F and the object distance U, and the final calculation formula for suppressing the blur angle ψ_ON is obtained:
Figure PCTCN2016079215-appb-000065
Figure PCTCN2016079215-appb-000065
在不同抖动周期和抖动振幅下,得到对应的模糊量之后,根据抑制模糊角ψ_ON的最终计算公式,计算得到抑制模糊角ψ_ON的实验值。例如,在抖动振幅为1°时测得如表四所示的抑制模糊角ψ的 实验值:After the corresponding blurring amount is obtained under different jitter periods and jitter amplitudes, the experimental value of the suppression blur angle ψ_ON is calculated according to the final calculation formula of the suppression blur angle ψ_ON. For example, when the jitter amplitude is 1°, the suppression of the blur angle 所示 as shown in Table 4 is measured. Experimental value:
表四Table 4
Figure PCTCN2016079215-appb-000066
Figure PCTCN2016079215-appb-000066
进一步地,可以多次测量得到多组实验值,并对多组实验值求平均得到最终的抑制模糊角ψ的实验值。Further, multiple sets of experimental values can be measured multiple times, and the experimental values of the final suppressed blur angle ψ are obtained by averaging the multiple sets of experimental values.
<3.3>抑制比列表<3.3> Suppression ratio list
抑制比列表包括在不同抖动参数下,N个曝光时长档位各自对应的抑制比。抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得。The suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters. The value of the suppression ratio in the suppression ratio list is calculated from the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle.
将表三中的理论模糊角的实验值,以及表四中的抑制模糊角的实验值,代入抑制比关于理论模糊角和抑制模糊角的函数
Figure PCTCN2016079215-appb-000067
计算得到抖动振幅为1°时抑制比的取值,抑制比列表所包括的数据如表五所示:
The experimental values of the theoretical blur angles in Table 3 and the experimental values of the suppression blur angles in Table 4 are substituted into the suppression ratios for the theoretical blur angle and the suppression blur angle.
Figure PCTCN2016079215-appb-000067
Calculate the value of the suppression ratio when the jitter amplitude is 1°. The data included in the suppression ratio list is shown in Table 5:
表五Table 5
Figure PCTCN2016079215-appb-000068
Figure PCTCN2016079215-appb-000068
得到抑制比列表之后,将抑制比列表输入照相设备,照相设备保存抑制比列表,这样照相设备在照相过程中就可以适用抑制比列表。抑制比列表可以在照相设备出厂之前输入,或者也可以在出厂之后通过软件更新的方式输入。After the suppression ratio list is obtained, the inhibition ratio list is input to the photographic apparatus, and the photographic apparatus stores the suppression ratio list, so that the photographic apparatus can apply the suppression ratio list during the photographic process. The suppression ratio list can be entered before the camera device is shipped from the factory, or it can be entered by software update after shipment.
需要指出的是,照相设备实际存储抑制比列表的形式可以有多种,即照相设备可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be noted that the actual storage suppression ratio list of the camera device can be various, that is, the camera device can use various data structures to store the data in the suppression ratio list, not just in the form of a table. Embodiments of the present invention do not limit a specific data storage structure.
<3.4>、抑制比集合。<3.4>, suppression ratio set.
结合表六所示,抑制比集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比。表六中的DB_i(i=1,...N)表示N个曝光时长档位所对应的N个抑制比。As shown in Table 6, the suppression ratio set includes the suppression ratios corresponding to the respective N exposure time slots under the currently acquired jitter parameters. DB_i (i = 1, ... N) in Table 6 represents the N suppression ratios corresponding to the N exposure time slots.
表六Table 6
曝光时长档位 Exposure time 11 22 33 44 ……...... NN
曝光时长(Δt_i)Exposure time (Δt_i) Δt_1Δt_1 Δt_2Δt_2 Δt_3Δt_3 Δt_4Δt_4 ……...... Δt_NΔt_N
抑制比集合(DB_i)Suppression ratio set (DB_i) DB_1DB_1 DB_2DB_2 DB_3DB_3 DB_4DB_4 ……...... DB_NDB_N
DB_i的具体取值可以根据抖动参数查询抑制比列表得到。例如,照相过程中,照相设备获取抖动参数之后,确定当前的抖动振幅为1°、抖动周期为1/8秒。结合表五所示,照相设备查询抑制比 列表,确定1/16秒的曝光时长档位所对应的抑制比为18.7,1/32秒的曝光时长档位所对应的抑制比为15.89。The specific value of DB_i can be obtained by querying the suppression ratio list according to the jitter parameter. For example, after the camera device acquires the jitter parameter during photography, it is determined that the current jitter amplitude is 1° and the jitter period is 1/8 second. Combined with Table 5, the camera device query suppression ratio In the list, it is determined that the suppression ratio corresponding to the 1/16 second exposure time slot is 18.7, and the suppression ratio corresponding to the 1/32 second exposure time slot is 15.89.
步骤104与步骤103没有先后顺序。即照相设备获取抖动参数之后,可以先预测理论模糊角集合后确定抑制比集合,也可以先确定抑制比集合后预测理论模糊角集合,或者也可以两个步骤同时执行。 Steps 104 and 103 do not have a sequence. That is, after the camera device obtains the jitter parameter, the set of suppression ratios may be determined after predicting the theoretical blur angle set, or the set of prediction angles may be determined first after the suppression ratio set, or may be performed simultaneously in two steps.
105、预测抑制模糊角集合。105. Predicting a set of suppression angles.
结合表七所示,抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。表七中的ψ_ON_i(i=1,...N)表示N个曝光时长档位所对应的N个抑制模糊角。As shown in Table 7, the suppression of the blur angle set includes the suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter. ψ_ON_i (i=1, . . . N) in Table 7 represents N suppression blur angles corresponding to N exposure time slots.
表七Table 7
Figure PCTCN2016079215-appb-000069
Figure PCTCN2016079215-appb-000069
结合<3.2>,在实验测试阶段,模糊角ψ_ON的实验值为实验所得的实测值。此处抑制模糊角集合中抑制模糊角ψ_ON_i(i=1,...N)的具体取值,是根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,计算所得的预测值。Combined with <3.2>, in the experimental test phase, the experimental value of the fuzzy angle ψON is the experimental value obtained from the experiment. Here, the specific value of the suppression blur angle ψON_i(i=1, . . . N) in the fuzzy angle set is suppressed according to the theoretical blur angle set and the suppression ratio set, according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle function. , calculate the predicted value.
结合表二所示的理论模糊角集合,以及表六所示的抑制比集合,根据抑制比关于理论模糊角和抑制模糊角的函数:
Figure PCTCN2016079215-appb-000070
ψ_ON_i可以根据ψ_i以及DB_i,通过上述函数关系式反推得到。
Combining the theoretical fuzzy angle set shown in Table 2, and the suppression ratio set shown in Table 6, according to the suppression ratio, the function of the theoretical blur angle and the suppression blur angle:
Figure PCTCN2016079215-appb-000070
ψ_ON_i can be derived by 上述_i and DB_i by the above function relation.
也就是说,在实验阶段,在一定抖动参数下,根据实测得到的理论模糊角ψ的实验值,和抑制模糊角ψ_ON的实验值,根据
Figure PCTCN2016079215-appb-000071
正向计算确定抑制比DB,最终得到抑制比列表。 简略表示为(ψ,ψ_ON)==>DB。
That is to say, in the experimental stage, under certain jitter parameters, according to the experimental value of the theoretical fuzzy angle 实 obtained by the actual measurement, and the experimental value of suppressing the blur angle ψ ON, according to
Figure PCTCN2016079215-appb-000071
The forward calculation determines the suppression ratio DB, and finally the suppression ratio list is obtained. Briefly expressed as (ψ, ψ_ON) ==> DB.
在实际的照相过程中,在获取抖动参数后,根据当前获取的抖动参数预测理论模糊角集合ψ_i,根据当前获取的抖动参数确定抑制比集合DB_i,然后根据
Figure PCTCN2016079215-appb-000072
反推得到ψ_ON_i。简略表示为(ψ,DB)==>ψ_ON。
In the actual photographic process, after acquiring the jitter parameter, predicting the theoretical blur angle set ψ_i according to the currently acquired jitter parameter, determining the suppression ratio set DB_i according to the currently obtained jitter parameter, and then according to
Figure PCTCN2016079215-appb-000072
The reverse push gets ψ_ON_i. Briefly expressed as (ψ, DB) ==> ψ _ON.
106、获取容许模糊角ψ_max106. Obtain an allowable blur angle ψ_max
容许模糊角ψ_max用于指示可接受的最大抑制模糊角,可以是一个预设的值,也可以是照相设备在照相过程中实际计算得到的值。此处对容许模糊角ψ_max的具体计算过程进行说明:The allowable blur angle ψ_max is used to indicate an acceptable maximum suppression blur angle, which may be a preset value or a value actually calculated by the camera during the photographing process. Here is a description of the specific calculation process of the allowable blur angle ψ_max:
<4>、容许模糊角ψ_max的计算<4>, calculation of allowable blur angle ψ_max
人眼最小能够分辨的两物点对眼的角度称为人眼最小可分辨角α。参照图12所示,当观看距离为s时,物点W1和物点W2各自与眼球的连线之间的夹角1201为人眼最小可分辨角α。人眼最小可分辨角α的大小取决于人眼本身的结构,在本发明的实施例中,人眼最小可分辨角α的取值为预设值,通常取值为1/60°。The angle of the two object points that can be resolved by the human eye to the eye is called the minimum resolvable angle α of the human eye. Referring to FIG. 12, when the viewing distance is s, the angle 1201 between the object point W1 and the object point W2 and the line connecting the eyeball is the minimum resolvable angle α of the human eye. The size of the minimum resolvable angle α of the human eye depends on the structure of the human eye itself. In the embodiment of the present invention, the minimum resolvable angle α of the human eye is a preset value, and is usually 1/60°.
根据人眼最小可分辨角α,可以计算出在观看距离一定的情况下,人眼在观察图片时最小能察觉到的模糊范围的直径a。具体的,结合图13所示,当观看距离为s时,有:According to the minimum resolvable angle α of the human eye, it is possible to calculate the diameter a of the blurring range that the human eye can perceive when viewing the picture with a certain viewing distance. Specifically, as shown in FIG. 13, when the viewing distance is s, there are:
Figure PCTCN2016079215-appb-000073
Figure PCTCN2016079215-appb-000073
其中观看距离可以为预设值,也可以由用户进行手动选择。例如,如果照相设备具体为手机时,可以预设观看距离为30厘米。或者为用户提供几个观看距离的档位,由有用进行选择。The viewing distance can be a preset value or manually selected by the user. For example, if the camera device is specifically a mobile phone, the preset viewing distance can be 30 cm. Or provide the user with several viewing distances, which are useful for selection.
结合图11所示感光元件1102上模糊距离M,在照片上人眼能察觉到的模糊范围的直径a,对应感光元件1102上容许的最大模糊距离b。以d表示感光元件长边的长度,以c表示照片长边的长度,则
Figure PCTCN2016079215-appb-000074
得到:
In conjunction with the blur distance M on the photosensitive element 1102 shown in Fig. 11, the diameter a of the blurring range that can be perceived by the human eye on the photograph corresponds to the maximum blur distance b allowed on the photosensitive element 1102. Let d denote the length of the long side of the photosensitive element, and c denote the length of the long side of the photo.
Figure PCTCN2016079215-appb-000074
get:
Figure PCTCN2016079215-appb-000075
Figure PCTCN2016079215-appb-000075
在容许的最大模糊距离b确定的情况下,可以进一步计算得到容许模糊角。当被拍摄物体O在感光元件1102上的成像位置不同时,容许模糊角ψ_max的计算方式不同,以下针对不同成像位置分别进行说明。In the case where the maximum allowable blur distance b is determined, the allowable blur angle can be further calculated. When the imaging positions of the subject O on the photosensitive element 1102 are different, the calculation manner of the allowable blur angle ψ_max is different, and the following describes different imaging positions.
<4.1>、成像在感光元件中心位置时ψ_max的计算<4.1> Calculation of ψ_max when imaging at the center of the photosensitive element
结合图14所示,当被拍摄物体O在感光元件1102上的成像位置在感光元件1102的中心位置时,有:As shown in Fig. 14, when the image forming position of the object O on the photosensitive member 1102 is at the center position of the photosensitive member 1102, there are:
Figure PCTCN2016079215-appb-000076
Figure PCTCN2016079215-appb-000076
根据方程1、方程2以及方程3.1,得到:According to Equation 1, Equation 2, and Equation 3.1, we get:
Figure PCTCN2016079215-appb-000077
Figure PCTCN2016079215-appb-000077
进一步,根据
Figure PCTCN2016079215-appb-000078
得到:
Further, according to
Figure PCTCN2016079215-appb-000078
get:
Figure PCTCN2016079215-appb-000079
Figure PCTCN2016079215-appb-000079
<4.2>、成像在感光元件边缘位置时ψ_max的计算<4.2> Calculation of ψ_max when imaging at the edge position of the photosensitive element
结合图15所示,当被拍摄物体O在感光元件1102上的成像位置在感光元件1102的边缘位置时,有:As shown in Fig. 15, when the image forming position of the object O on the photosensitive member 1102 is at the edge position of the photosensitive member 1102, there are:
Figure PCTCN2016079215-appb-000080
Figure PCTCN2016079215-appb-000080
根据方程1、方程2以及方程3.2,得到:According to Equation 1, Equation 2, and Equation 3.2, we get:
Figure PCTCN2016079215-appb-000081
Figure PCTCN2016079215-appb-000081
进一步,根据
Figure PCTCN2016079215-appb-000082
得到:
Further, according to
Figure PCTCN2016079215-appb-000082
get:
Figure PCTCN2016079215-appb-000083
Figure PCTCN2016079215-appb-000083
<4.3>、成像在感光元件其它位置时ψ_max的计算<4.3>, calculation of ψ_max when imaging other positions of the photosensitive element
当被拍摄物体O在感光元件1102上的成像位置,在感光元件 1102的中心位置和边缘位置之间时,计算方式与<4.2>中说明的成像在边缘位置时的计算方式类似,不再赘述。When the object O is imaged on the photosensitive element 1102, the photosensitive element When the center position and the edge position of 1102 are between, the calculation method is similar to that of the imaging described in <4.2> at the edge position, and will not be described again.
照相设备实际拍摄得到的照片,实测的抑制模糊角大于容许模糊角ψ_max,表示用户肉眼观察可以观察到照片(局部)不清晰。如果实测的抑制模糊角不大于容许模糊角ψ_max,表示照片的清晰度在人眼观察时的可接受范围内。The photograph taken actually by the camera device has a measured suppression blur angle larger than the allowable blur angle ψ_max, indicating that the user can observe that the photograph (partial) is unclear. If the measured suppression blur angle is not greater than the allowable blur angle ψ_max, it means that the sharpness of the photograph is within the acceptable range of the human eye.
107、确定目标抑制模糊角ψ_opt。107. Determine the target suppression blur angle ψ opt.
目标抑制模糊角ψ_opt是根据容许模糊角ψ_max,在抑制模糊角集合ψ_ON_i(i=1,...N)中选择出的一个抑制模糊角。The target suppression blur angle ψ opt is a suppression blur angle selected in the suppression blur angle set ψ_ON_i (i=1, . . . N) according to the allowable blur angle ψ_max.
结合图16所示,在一定抖动参数下,抑制模糊角ψ_ON的实验值随曝光时长Δt的变化曲线示意图。图16中,Δt_a到Δt_i依次增大。当曝光时长Δt增大时,抑制模糊角ψ_ON先降低后增大,变化趋势呈U型。Referring to FIG. 16 , a graph showing the variation of the experimental value of the blur angle ψ_ON with the exposure time length Δt under a certain jitter parameter. In Fig. 16, Δt_a to Δt_i are sequentially increased. When the exposure time length Δt is increased, the suppression blur angle ψON is first decreased and then increased, and the change trend is U-shaped.
目标抑制模糊角ψ_opt小于或者接近容许模糊角ψ_max。以下介绍确定目标抑制模糊角ψ_opt的两种具体方式。The target suppression blur angle ψ opt is less than or close to the allowable blur angle ψ_max. The following describes two specific ways to determine the target suppression blur angle ψ opt.
<5.1>、确定目标抑制模糊角ψ_opt的一种方式<5.1>, a way to determine the target suppression blur angle ψ opt
抑制模糊角集合ψ_ON_i(i=1,...N)中,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角ψ_max时,从不大于容许模糊角ψ_max的抑制模糊角中任选其一作为目标抑制模糊角ψ_opt。In the suppression blur angle set ψ_ON_i (i=1, . . . N), when at least one of the suppression blur angles corresponding to each of the N exposure time slots is not greater than the allowable blur angle ψ_max, it is never greater than the allowable blur angle ψ_max. Any one of the suppression blur angles is selected as the target suppression blur angle ψ opt.
结合图17所示,抑制模糊角集合ψ_ON_i(i=1,...N)中,Δt_c到Δt_g所对应的抑制模糊角ψ_ON均不大于容许模糊角ψ_max,这种情况下,Δt_c到Δt_g其中任一曝光时长所对应的抑制模糊角ψ_ON均可作为目标抑制模糊角ψ_opt。As shown in FIG. 17, in the suppression blur angle set ψ_ON_i (i=1, . . . N), the suppression blur angle ψ_ON corresponding to Δt_c to Δt_g is not greater than the allowable blur angle ψ_max, in which case Δt_c to Δt_g The suppression blur angle ψ_ON corresponding to any exposure duration can be used as the target suppression blur angle ψ_opt.
优选的,考虑到曝光量对照片质量的影响,在保证照片清晰度的前提下,尽量延长曝光时间以提高曝光量。抑制模糊角集合ψ_ON_i(i=1,...N)中,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角ψ_ON为目标抑制 模糊角。Preferably, considering the influence of the exposure amount on the quality of the photograph, the exposure time is extended as much as possible to increase the exposure amount while ensuring the sharpness of the photograph. In the suppression blur angle set ψ_ON_i (i=1, . . . N), when at least one of the suppression blur angles corresponding to each of the N exposure time slots is not greater than the allowable blur angle, the suppression blur is never greater than the allowable blur angle. Select one of the angles corresponding to the longest exposure time to suppress the blur angle ψ_ON as the target suppression Blur angle.
结合图17中箭头所指示,Δt_c到Δt_g中Δt_g对应的曝光时长最大,这种情况下选择Δt_g对应的对应的抑制模糊角ψ_ON为目标抑制模糊角。The exposure time corresponding to Δt_g in Δt_c to Δt_g is the largest as indicated by the arrow in Fig. 17, in which case the corresponding suppression blur angle ψ_ON corresponding to Δt_g is selected as the target suppression blur angle.
<5.2>、确定目标抑制模糊角ψ_opt的另一种方式<5.2>, another way to determine the target suppression blur angle ψ opt
抑制模糊角集合ψ_ON_i(i=1,...N)中,当N个曝光时长档位各自对应的抑制模糊角均大于容许模糊角ψ_max时,从N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角ψ_opt。In the suppression of the fuzzy angle set ψ_ON_i (i=1, . . . N), when the suppression blur angles corresponding to the N exposure time slots are larger than the allowable blur angle ψ_max, the suppression blur corresponding to each of the N exposure time slots Selecting the smallest suppression blur angle in the angle is the target suppression blur angle ψ opt.
结合图18所示,Δt_a到Δt_i各自对应的抑制模糊角均大于容许模糊角ψ_max,同时Δt_d所对应的抑制模糊角最小,即最接近容许模糊角ψ_max。这种情况下选择Δt_d对应的对应的抑制模糊角ψ_ON为目标抑制模糊角ψ_opt。As shown in FIG. 18, the respective suppression blur angles of Δt_a to Δt_i are larger than the allowable blur angle ψ_max, and the suppression blur angle corresponding to Δt_d is the smallest, that is, the closest allowable blur angle ψ_max. In this case, the corresponding suppression blur angle ψ_ON corresponding to Δt_d is selected as the target suppression blur angle ψ_opt.
108、设定目标曝光时长档位。108. Set the target exposure time slot.
目标曝光时长档位为目标抑制模糊角ψ_opt所对应的曝光时档位。The target exposure time slot is the exposure time slot corresponding to the target suppression blur angle ψ opt.
结合图17所示,目标抑制模糊角ψ_opt为Δt_g对应的对应的抑制模糊角ψ_ON,那么目标曝光时长档位为Δt_g所对应的曝光时长档位。As shown in FIG. 17, the target suppression blur angle ψ opt is the corresponding suppression blur angle ψ_ON corresponding to Δt_g, and then the target exposure time shift position is the exposure time shift position corresponding to Δt_g.
结合图18所示,目标抑制模糊角ψ_opt为Δt_d对应的对应的抑制模糊角ψ_ON,那么目标曝光时长档位为Δt_d所对应的曝光时长档位。As shown in FIG. 18, the target suppression blur angle ψ opt is the corresponding suppression blur angle ψ_ON corresponding to Δt_d, and then the target exposure time slot is the exposure time slot corresponding to Δt_d.
109、确定曝光起始时间点,并于确定的曝光时间点启动曝光过程。109. Determine an exposure start time point and initiate an exposure process at the determined exposure time point.
经过步骤108完成曝光时长档位设定。步骤109为曝光时长档位设定后的后续步骤,是应用设定的曝光时长档位完成照相过程的步骤。After step 108, the exposure time shift position setting is completed. Step 109 is a subsequent step after the exposure time shift position is set, and is a step of completing the photographing process by applying the set exposure time shift position.
结合<1.1>中对模糊角函数
Figure PCTCN2016079215-appb-000084
的说明,在曝光时长Δt、抖动振幅A和抖动周期λ确定的情况下,当模糊角函数
Figure PCTCN2016079215-appb-000085
的取值可能不同,因此合理选定曝光起始时间点t,有助于减小模糊角,获得清晰度高的照片。
Combine the fuzzy angle function in <1.1>
Figure PCTCN2016079215-appb-000084
Description, when the exposure duration Δt, the jitter amplitude A, and the jitter period λ are determined, when the blur angle function
Figure PCTCN2016079215-appb-000085
The value may be different, so a reasonable selection of the exposure start time point t helps to reduce the blur angle and obtain a high-definition photo.
另外,结合<1.1.1>到<1.1.2>,模糊角函数
Figure PCTCN2016079215-appb-000086
为关于t的以λ/2为周期的周期函数,在一个周期内有最小值和最大值。
In addition, combined with <1.1.1> to <1.1.2>, the fuzzy angle function
Figure PCTCN2016079215-appb-000086
For a periodic function with respect to t with a period of λ/2, there are minimum and maximum values in one cycle.
结合图19所示,t0时刻,照相设备根据实际抖动情况获取抖动振幅A和抖动周期λ,并确定模糊角函数
Figure PCTCN2016079215-appb-000087
Referring to FIG. 19, at time t0, the camera device acquires the jitter amplitude A and the jitter period λ according to the actual jitter condition, and determines the blur angle function.
Figure PCTCN2016079215-appb-000087
t1时刻,照相设备设定曝光时长Δt,此处以Δt_0表示目标曝光时长档位所对应的曝光时长,即Δt=Δt_0。也就是说,在t1时刻,抖动振幅A、抖动周期λ以及曝光时长Δt的取值均为已知,只需进一步确定曝光起始时间点t即可。At time t1, the camera sets the exposure duration Δt, where Δt_0 represents the exposure duration corresponding to the target exposure time slot, ie Δt=Δt_0. That is to say, at the time t1, the values of the jitter amplitude A, the jitter period λ, and the exposure time length Δt are all known, and it is only necessary to further determine the exposure start time point t.
照相设备根据模糊角函数
Figure PCTCN2016079215-appb-000088
以及确定的Δt、A和λ的取值,确定模糊角函数
Figure PCTCN2016079215-appb-000089
在t=t_0+k(λ/2)处有最小值,其中,t_0大于t1。也就是说,模糊角函数
Figure PCTCN2016079215-appb-000090
在(t=t_0,Δt=Δt_0,A,λ)点有最小值,因此照相设备可以在t=t_0+k(λ/2)时刻启动曝光过程,按照设定的曝光时长档位曝光,获得最佳的拍摄效果。
Camera device according to the blur angle function
Figure PCTCN2016079215-appb-000088
And determining the values of Δt, A, and λ to determine the blur angle function
Figure PCTCN2016079215-appb-000089
There is a minimum at t=t_0+k(λ/2), where t_0 is greater than t1. That is, the blur angle function
Figure PCTCN2016079215-appb-000090
There is a minimum at (t=t_0, Δt=Δt_0, A, λ), so the camera can start the exposure process at t=t_0+k(λ/2), and obtain the exposure according to the set exposure time. The best shooting results.
<6>、t0、t1以及t_0的取值Values of <6>, t0, t1, and t_0
<6.1>、t0的取值<6.1>, the value of t0
t0的取值取决于照相设备获取抖动参数的时间。The value of t0 depends on when the camera device acquires the jitter parameter.
例如,照相设备在0时刻(图19中的原点位置)开始采样抖动参数,并对采样得到的信号进行处理,包括傅里叶变换带通滤波等。t0的取值为,以采样抖动参数的起始时间点为起始时间点,加上信号传输、信号处理所造成的时延之和。For example, the camera device starts sampling jitter parameters at time 0 (origin position in FIG. 19) and processes the sampled signals, including Fourier transform bandpass filtering. The value of t0 is the starting time point of the sampling jitter parameter, plus the sum of delays caused by signal transmission and signal processing.
<6.2>、t1的取值<6.2>, the value of t1
t1的取值取决于照相设备设定曝光时长的时间。The value of t1 depends on the time the camera device sets the exposure time.
例如,照相设备获取抖动参数之后,根据抖动参数进行一系列计算确定目标抑制模糊角ψ_opt,最终设定目标曝光时长档位所需花费的时间,加上t0得到t1的取值。For example, after the camera device obtains the jitter parameter, a series of calculations are performed according to the jitter parameter to determine the target suppression blur angle ψ_opt, and finally the time required for the target exposure time slot is set, and t0 is obtained to obtain the value of t1.
当然,照相设备有可还需要做其它信号处理或者数据计算以完 成其它功能,只需要将这些时间开销加和即可确定t1的取值。Of course, the camera equipment may still need to do other signal processing or data calculation to complete For other functions, you only need to add these time overheads to determine the value of t1.
<6.3>、t_0的取值<6.3>, the value of t_0
t_0的取值取决于模糊角函数
Figure PCTCN2016079215-appb-000091
本身的性质。
The value of t_0 depends on the blur angle function
Figure PCTCN2016079215-appb-000091
The nature of itself.
模糊角函数
Figure PCTCN2016079215-appb-000092
在每个周期都会经过其最小值点。照相设备设定目标曝光时长档位之后,只要模糊角函数
Figure PCTCN2016079215-appb-000093
达到最小值的点,都可以作为t_0时间点。优选的,在设定目标曝光时长档位之后,以模糊角函数
Figure PCTCN2016079215-appb-000094
第一次达到最小值的时间点作为t_0时间点。
Fuzzy angle function
Figure PCTCN2016079215-appb-000092
It goes through its minimum point every cycle. After the camera device sets the target exposure time slot, as long as the blur angle function
Figure PCTCN2016079215-appb-000093
The point at which the minimum value is reached can be used as the t_0 time point. Preferably, after setting the target exposure time slot position, the blur angle function is used.
Figure PCTCN2016079215-appb-000094
The time point at which the minimum value is reached for the first time is taken as the t_0 time point.
本发明的实施例所提供的设定曝光时长的方法,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。The method for setting the exposure duration provided by the embodiment of the present invention obtains a theoretical blur angle set according to the jitter parameter prediction, and then obtains a set of suppression blur angles according to the suppression ratio set prediction, and selects the suppression blur angle set according to the allowable blur angle. The target suppresses the blur angle, and sets the exposure duration to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time shift position according to the actual shake condition of the photographing device during the photographing process, thereby improving the sharpness of the photograph. Further, the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
需要说明的是,对于图1所对应的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。It should be noted that the method embodiments corresponding to FIG. 1 are all described as a series of action combinations for the sake of simple description, but those skilled in the art should understand that the present invention is not subject to the described action sequence. Limitations, as certain steps may be performed in other sequences or concurrently in accordance with the present invention.
另外,本领域技术人员也应该知悉,说明书中所描述的实施例属于优选实施例,所涉以及的动作并不一定是本发明所必须的,例如获取用户的拍照指令的步骤,可以是由用户触发获取,也可以是通过软件设定的某种触发条件满足时,开始执行照相过程。本实施例中所描述的照相过程应当视为一个举例,而非穷举。In addition, those skilled in the art should also understand that the embodiments described in the specification belong to the preferred embodiment, and the actions involved are not necessarily required by the present invention. For example, the step of acquiring a photographing instruction of the user may be performed by the user. The trigger acquisition may also be performed when a certain trigger condition set by the software is satisfied. The photographic process described in this embodiment should be considered as an example and not an exhaustive.
基于本发明的实施例所提供的设定曝光时长的方法,本发明的实施例还提供一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位。设定曝光时长的装置可以安装于照相设备内,或者 也可以通过通信线路、或者通信网络与照相设备连接。照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。Based on the method for setting the exposure duration provided by the embodiment of the present invention, an embodiment of the present invention further provides a device for setting an exposure duration for setting a target exposure time slot of a camera device. The device for setting the exposure duration can be installed in the camera device, or It is also possible to connect to a camera device via a communication line or a communication network. The camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
参照图20所示,设定曝光时长的装置20包括:Referring to FIG. 20, the apparatus 20 for setting the exposure duration includes:
获取单元201,用于获取抖动参数,抖动参数用于指示照相设备在照相过程中的抖动状态。The obtaining unit 201 is configured to acquire a jitter parameter, and the jitter parameter is used to indicate a jitter state of the camera device during the photographing process.
处理单元202,用于根据获取单元201当前获取的抖动参数预测理论模糊角集合。理论模糊角集合包括N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量。The processing unit 202 is configured to predict a theoretical blur angle set according to the jitter parameter currently acquired by the acquiring unit 201. The theoretical blur angle set includes the theoretical blur angle corresponding to each of the N exposure time slots, the theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is off, and the blur angle is the cumulative change amount of the lens shake angle during the exposure process. .
处理单元202,还用于根据获取单元201当前获取的抖动参数确定抑制比集合。抑制比集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。The processing unit 202 is further configured to determine a suppression ratio set according to the jitter parameter currently acquired by the obtaining unit 201. The suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and the suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the blur angle is suppressed when the jitter compensation function is turned on. The expected value of the blur angle.
处理单元202,还用于根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合。抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。The processing unit 202 is further configured to predict the suppression blur angle set according to a function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle according to the theoretical blur angle set and the suppression ratio set. The suppression blur angle set includes a suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter.
获取单元201,还用于获取容许模糊角。The obtaining unit 201 is further configured to obtain an allowable blur angle.
处理单元202,还用于根据获取单元201获取的容许模糊角从抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角。容许模糊角用于指示可接受的最大抑制模糊角。The processing unit 202 is further configured to select one of the suppression blur angles as the target suppression blur angle from the set of suppression blur angles according to the allowable blur angle acquired by the acquisition unit 201. The allowable blur angle is used to indicate an acceptable maximum suppression blur angle.
设置单元203,还用于根据处理单元202确定的目标抑制模糊角设定目标曝光时长档位,目标曝光时长档位为目标抑制模糊角所对应的曝光时长档位。The setting unit 203 is further configured to set a target exposure time slot according to the target suppression blur angle determined by the processing unit 202, and the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
可选的,获取单元201,还用于获取抑制比列表。抑制比列表包括在不同抖动参数下,N个曝光时长档位各自对应的抑制比。抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模 糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得。Optionally, the obtaining unit 201 is further configured to obtain a suppression ratio list. The suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters. The value of the suppression ratio in the suppression ratio list is the theoretical blur angle and the suppression mode according to the suppression ratio. The function of the paste angle is calculated based on the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle.
处理单元202,还用于根据抖动参数查询获取单元201所获取的抑制比列表,确定在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,得到抑制比集合。The processing unit 202 is further configured to determine, according to the jitter parameter query acquisition unit 201, the suppression ratio list, and determine a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, to obtain a suppression ratio set.
例如,在一种具体的实施方式中,抑制比列表在设定曝光时长的装置20在出厂之前输入并保存,或者也可以在出厂之后通过软件更新的方式输入并保存。在拍照过程中,处理单元202通过查询保存的抑制比列表,得到抑制比集合。For example, in a specific embodiment, the apparatus 20 that suppresses the ratio of the exposure time set is input and saved before shipment from the factory, or may be input and saved by software update after shipment. During the photographing process, the processing unit 202 obtains a suppression ratio set by querying the saved suppression ratio list.
需要指出的是,设定曝光时长的装置20实际存储抑制比列表的形式可以有多种,即设定曝光时长的装置20可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be noted that the device 20 for setting the exposure duration may have various forms of the actual storage suppression ratio list, that is, the device 20 for setting the exposure duration may use various data structures to store the data in the suppression ratio list, not just the data. Store in the form of a table. Embodiments of the present invention do not limit a specific data storage structure.
可选的,获取单元201,具体用于获取照相设备在照相过程中的抖动振幅和抖动周期。Optionally, the obtaining unit 201 is specifically configured to acquire a jitter amplitude and a jitter period of the camera device during the photographing process.
可选的,处理单元202,具体用于根据抖动振幅和抖动周期构建模糊角函数
Figure PCTCN2016079215-appb-000095
Optionally, the processing unit 202 is configured to construct a blur angle function according to the jitter amplitude and the jitter period.
Figure PCTCN2016079215-appb-000095
其中,
Figure PCTCN2016079215-appb-000096
为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期。根据模糊角函数计算N个曝光时长档位各自对应的理论模糊角,得到理论模糊角集合。
among them,
Figure PCTCN2016079215-appb-000096
For the blur angle, t is the exposure start time point, Δt is the exposure time length, A is the jitter amplitude, and λ is the jitter period. The theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, and a theoretical blur angle set is obtained.
可选的,处理单元202,进一步用于根据第一公式计算N个曝光时长档位各自对应的理论模糊角,第一公式为:Optionally, the processing unit 202 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
Figure PCTCN2016079215-appb-000097
Figure PCTCN2016079215-appb-000097
其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,...N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期。Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, i=1,...N, Δt_i is the exposure duration corresponding to the i-th exposure time slot, and λ is the jitter period.
或者,处理单元202,进一步用于根据第二公式计算N个曝光时长档位各自对应的理论模糊角,第二公式为: Alternatively, the processing unit 202 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
Figure PCTCN2016079215-appb-000098
Figure PCTCN2016079215-appb-000098
其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Where t_j(j=1, . . . P) is a P sample value for the exposure start time point t in one jitter period, k is an integer greater than or equal to 0, and P is an integer greater than 1.
可选的,处理单元202,具体用于从抑制模糊角集合中选择小于或者接近容许模糊角的抑制模糊角作为目标抑制模糊角。Optionally, the processing unit 202 is specifically configured to select, as the target suppression blur angle, a suppression blur angle that is less than or close to the allowable blur angle from the set of suppression blur angles.
可选的,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,处理单元202,进一步用于从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角。Optionally, when at least one of the respective suppression blur angles of the N exposure time slots is not greater than the allowable blur angle, the processing unit 202 is further configured to select a corresponding exposure duration from the suppression blur angles that are not greater than the allowable blur angle. The longest one suppresses the blur angle as the target suppresses the blur angle.
当N个曝光时长档位各自对应的抑制模糊角均大于容许模糊角时,处理单元202,进一步用于从N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the respective suppression blur angles of the N exposure time slots are greater than the allowable blur angle, the processing unit 202 is further configured to select the minimum suppression blur angle from the respective suppression blur angles of the N exposure time slots as the target suppression. Blur angle.
可选的,处理单元202,具体用于按照以下模糊角的函数预测抑制模糊角集合:Optionally, the processing unit 202 is specifically configured to predict a set of suppression blur angles according to a function of a blur angle:
Figure PCTCN2016079215-appb-000099
Figure PCTCN2016079215-appb-000099
其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.
可选的,获取单元201,还用于获取用户的拍照指令。Optionally, the obtaining unit 201 is further configured to acquire a photographing instruction of the user.
处理单元202,还用于在设定目标曝光时长档位之后,根据接收到拍照指令的时间点,以及模糊角函数
Figure PCTCN2016079215-appb-000100
确定曝光起始时间点t的取值t_0。模糊角函数
Figure PCTCN2016079215-appb-000101
在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为目标曝光时长档位所对应的曝光时长。
The processing unit 202 is further configured to: after setting the target exposure time slot position, according to the time point when the camera instruction is received, and the blur angle function
Figure PCTCN2016079215-appb-000100
The value t_0 of the exposure start time point t is determined. Fuzzy angle function
Figure PCTCN2016079215-appb-000101
There is a minimum value at the point of (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure time slot.
本领域技术人员应明白,本发明的实施例所描述的设定曝光时长的装置,可采用完全硬件实施例、完全软件实施例、或者也可以结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或者多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、半导体存储器、光学存储器等)上实 施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或者作为硬件的一部分,也可以采用其他分布形式,如通过Internet或者其它有线或者无线电信系统。Those skilled in the art will appreciate that the apparatus for setting the exposure duration described in the embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment of the software and hardware. Moreover, the present invention may be embodied in one or more computer usable storage media (including but not limited to disk storage, semiconductor memory, optical storage, etc.) having computer usable program code embodied therein. The form of the computer program product. The computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
本发明的实施例所提供的设定曝光时长的装置,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。The apparatus for setting the exposure duration provided by the embodiment of the present invention obtains a theoretical blur angle set according to the jitter parameter prediction, and then obtains a suppression blur angle set according to the suppression ratio set prediction, and selects the suppression blur angle set according to the allowable blur angle. The target suppresses the blur angle, and sets the exposure duration to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time shift position according to the actual shake condition of the photographing device during the photographing process, thereby improving the sharpness of the photograph. Further, the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
基于本发明的实施例所提供的设定曝光时长的方法,本发明的实施例还提供另一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位。设定曝光时长的装置可以安装于照相设备内,或者也可以通过通信线路、或者通信网络与照相设备连接。照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。Based on the method for setting the exposure duration provided by the embodiment of the present invention, an embodiment of the present invention further provides another means for setting the exposure duration for setting the target exposure time slot of the camera device. The means for setting the exposure duration may be installed in the photographic apparatus, or may be connected to the photographic apparatus via a communication line or a communication network. The camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one.
参照图21所示,设定曝光时长的装置21包括:处理器211、存储器212、总线213以及接收器214。处理器211、存储器212,接收器214通过总线213相互连接。Referring to FIG. 21, the apparatus 21 for setting the exposure duration includes a processor 211, a memory 212, a bus 213, and a receiver 214. The processor 211, the memory 212, and the receiver 214 are connected to one another via a bus 213.
总线213可以是工业标准体系结构(英文全称:Industry Standard Architecture,英文简称:ISA)总线213、外部设备互连(英文全称:Peripheral Component Interconnect,英文简称:PCI)或者扩展工业标准体系结构(英文全称:Extended Industry Standard Architecture,英文简称:EISA)总线213等。总线213可以分为地址总线213、数据总线213以及控制总线213等。为便于表示,图21中仅用一条粗线表示,但这并不表示仅有一根总线213或者一种类型的总线213。 The bus 213 can be an industry standard architecture (English name: Industry Standard Architecture, English abbreviation: ISA) bus 213, external device interconnection (English full name: Peripheral Component Interconnect, English abbreviation: PCI) or extended industry standard architecture (English full name :Extended Industry Standard Architecture, English abbreviation: EISA) Bus 213 and so on. The bus 213 can be divided into an address bus 213, a data bus 213, a control bus 213, and the like. For ease of representation, only one thick line is shown in FIG. 21, but this does not mean that there is only one bus 213 or one type of bus 213.
用于执行本发明方案的程序代码保存在存储器212中,并由处理器211来控制执行。Program code for carrying out the inventive arrangements is stored in memory 212 and controlled by processor 211 for execution.
存储器212可以包括易失性存储器(英文全称:volatile memory),例如,随机存取存储器(英文全称:random-access memory,英文简称:RAM)。存储器212也可以包括非易失性存储器(英文全称:non-volatile memory),例如,只读存储器(英文全称:read-only memory,英文简称:ROM),包括电可擦可编程只读存储器(英文全称:Electrically Erasable Programmable Read-Only Memory,英文简称:EEPROM)等。The memory 212 may include a volatile memory (English name: volatile memory), for example, a random access memory (English name: random-access memory, English abbreviation: RAM). The memory 212 may also include a non-volatile memory (English name: non-volatile memory), for example, a read-only memory (English name: read-only memory, English abbreviation: ROM), including an electrically erasable programmable read only memory ( English full name: Electrically Erasable Programmable Read-Only Memory, English abbreviation: EEPROM).
另外非易失性存储器还可以是快闪存储器(英文全称:flash memory),硬盘(英文全称:hard disk drive,英文简称:HDD)或者固态硬盘(英文全称:solid-state drive,英文简称:SSD)等。当然,存储器212还可以包括上述种类的存储器的组合。In addition, the non-volatile memory can also be a flash memory (English full name: flash memory), a hard disk (English full name: hard disk drive, English abbreviation: HDD) or a solid state hard disk (English full name: solid-state drive, English abbreviation: SSD )Wait. Of course, the memory 212 may also include a combination of the above types of memories.
处理器211可以是中央处理器211(全称:Central Processing Unit,简称:CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(英文全称:application-specific integrated circuit,英文简称:ASIC),可编程逻辑器件(英文全称:programmable logic device,英文简称:PLD)或者其任意组合。The processor 211 may be a central processing unit 211 (Central Processing Unit, abbreviated as: CPU), or a combination of a CPU and a hardware chip. The hardware chip may be an application-specific integrated circuit (English name: ASIC), a programmable logic device (English full name: programmable logic device, English abbreviation: PLD) or any combination thereof.
进一步地,上述PLD可以是复杂可编程逻辑器件(英文全称:complex programmable logic device,英文简称:CPLD),现场可编程逻辑门阵列(英文全称:field-programmable gate array,英文简称:FPGA),通用阵列逻辑(英文全称:generic array logic,英文简称:GAL)或者其任意组合。Further, the PLD may be a complex programmable logic device (English full name: complex programmable logic device, English abbreviation: CPLD), field programmable logic gate array (English name: field-programmable gate array, English abbreviation: FPGA), universal Array logic (English full name: generic array logic, English abbreviation: GAL) or any combination thereof.
在一种可能的实施方式中,当上述程序被处理器211执行时,实现如下功能:In a possible implementation manner, when the above program is executed by the processor 211, the following functions are implemented:
接收器214,用于获取抖动参数,抖动参数用于指示照相设备在照相过程中的抖动状态。The receiver 214 is configured to acquire a jitter parameter, and the jitter parameter is used to indicate a jitter state of the camera device during the photographing process.
处理器211,用于根据接收器214当前获取的抖动参数预测理论模糊角集合。理论模糊角集合包括N个曝光时长档位各自对应的 理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量。The processor 211 is configured to predict a theoretical blur angle set according to the jitter parameter currently acquired by the receiver 214. The theoretical blur angle set includes N exposure time slots corresponding to each The theoretical blur angle, the theoretical blur angle is the expected value of the blur angle in the case where the shake compensation function is turned off, and the blur angle is the cumulative change amount of the shake angle of the lens during the exposure process.
处理器211,还用于根据接收器214当前获取的抖动参数确定抑制比集合。抑制比集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。The processor 211 is further configured to determine a suppression ratio set according to the jitter parameter currently acquired by the receiver 214. The suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and the suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the blur angle is suppressed when the jitter compensation function is turned on. The expected value of the blur angle.
处理器211,还用于根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合。抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。The processor 211 is further configured to predict the suppression blur angle set according to a function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle according to the theoretical blur angle set and the suppression ratio set. The suppression blur angle set includes a suppression blur angle corresponding to each of the N exposure time slots under the currently acquired jitter parameter.
接收器214,还用于获取容许模糊角。The receiver 214 is also used to obtain an allowable blur angle.
处理器211,还用于根据接收器214获取的容许模糊角从抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角。容许模糊角用于指示可接受的最大抑制模糊角。The processor 211 is further configured to select one of the suppression blur angles as the target suppression blur angle from the set of suppression blur angles according to the allowable blur angle acquired by the receiver 214. The allowable blur angle is used to indicate an acceptable maximum suppression blur angle.
处理器211,还用于根据目标抑制模糊角设定目标曝光时长档位,目标曝光时长档位为目标抑制模糊角所对应的曝光时长档位。The processor 211 is further configured to set a target exposure time slot according to the target suppression blur angle, and the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
可选的,接收器214,还用于获取抑制比列表。抑制比列表包括在不同抖动参数下,N个曝光时长档位各自对应的抑制比。抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得。Optionally, the receiver 214 is further configured to obtain a suppression ratio list. The suppression ratio list includes the suppression ratios corresponding to the respective exposure time slots of the N exposure time periods under different jitter parameters. The value of the suppression ratio in the suppression ratio list is calculated from the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle.
处理器211,还用于根据抖动参数查询接收器214所获取的抑制比列表,确定在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,得到抑制比集合。The processor 211 is further configured to query the suppression ratio list acquired by the receiver 214 according to the jitter parameter, determine a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and obtain a suppression ratio set.
例如,在一种具体的实施方式中,抑制比列表在设定曝光时长的装置21在出厂之前输入并保存在存储器212中,或者也可以在出厂之后通过软件更新的方式输入并保存在存储器212中。在拍照过程中,处理器211从存储器212读取抑制比列表,并通过查询抑制 比列表,得到抑制比集合。For example, in a specific embodiment, the device 21 of the suppression ratio list is set to be stored in the memory 212 before shipment from the factory, or may be input and saved in the memory 212 by software update after shipment. in. During the photographing process, the processor 211 reads the suppression ratio list from the memory 212 and suppresses it by the query. Than the list, get the suppression ratio set.
需要指出的是,存储器212实际存储抑制比列表的形式可以有多种,即存储器212可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be noted that the memory 212 may have a variety of forms of the suppression ratio list, that is, the memory 212 may use a plurality of data structures to store the data in the suppression ratio list, not just in the form of a table. Embodiments of the present invention do not limit a specific data storage structure.
可选的,接收单元,具体用于获取照相设备在照相过程中的抖动振幅和抖动周期。Optionally, the receiving unit is specifically configured to obtain a jitter amplitude and a jitter period of the camera device during the photographing process.
可选的,处理器211,具体用于根据抖动振幅和抖动周期构建模糊角函数
Figure PCTCN2016079215-appb-000102
其中,
Figure PCTCN2016079215-appb-000103
为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期。根据模糊角函数计算N个曝光时长档位各自对应的理论模糊角,得到理论模糊角集合。
Optionally, the processor 211 is configured to construct a blur angle function according to the jitter amplitude and the jitter period.
Figure PCTCN2016079215-appb-000102
among them,
Figure PCTCN2016079215-appb-000103
For the blur angle, t is the exposure start time point, Δt is the exposure time length, A is the jitter amplitude, and λ is the jitter period. The theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, and a theoretical blur angle set is obtained.
可选的,处理器211,进一步用于根据第一公式计算N个曝光时长档位各自对应的理论模糊角,第一公式为:Optionally, the processor 211 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
Figure PCTCN2016079215-appb-000104
Figure PCTCN2016079215-appb-000104
其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,...N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期。Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, i=1,...N, Δt_i is the exposure duration corresponding to the i-th exposure time slot, and λ is the jitter period.
或者,处理器211,进一步用于根据第二公式计算N个曝光时长档位各自对应的理论模糊角,第二公式为:Alternatively, the processor 211 is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
Figure PCTCN2016079215-appb-000105
Figure PCTCN2016079215-appb-000105
其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Where t_j(j=1, . . . P) is a P sample value for the exposure start time point t in one jitter period, k is an integer greater than or equal to 0, and P is an integer greater than 1.
可选的,处理器211,具体用于从抑制模糊角集合中选择小于或者接近容许模糊角的抑制模糊角作为目标抑制模糊角。Optionally, the processor 211 is specifically configured to select, as the target suppression blur angle, a suppression blur angle that is less than or close to the allowable blur angle from the set of suppression blur angles.
可选的,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,处理器211,进一步用于从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目 标抑制模糊角。Optionally, when at least one of the respective suppression blur angles of the N exposure time slots is not greater than the allowable blur angle, the processor 211 is further configured to select a corresponding exposure duration from the suppression blur angles that are not greater than the allowable blur angle. The longest one suppresses the blur angle The mark suppresses the blur angle.
当N个曝光时长档位各自对应的抑制模糊角均大于容许模糊角时,处理器211,进一步用于从N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the respective suppression blur angles of the N exposure time slots are greater than the allowable blur angle, the processor 211 is further configured to select the minimum suppression blur angle from the respective suppression blur angles of the N exposure time slots as the target suppression. Blur angle.
可选的,处理器211,具体用于按照以下模糊角的函数预测抑制模糊角集合。Optionally, the processor 211 is specifically configured to predict a set of suppression blur angles according to a function of a blur angle.
Figure PCTCN2016079215-appb-000106
Figure PCTCN2016079215-appb-000106
其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.
可选的,接收器214,还用于获取用户的拍照指令。Optionally, the receiver 214 is further configured to acquire a photographing instruction of the user.
处理器211,还用于在设定目标曝光时长档位之后,根据接收到拍照指令的时间点,以及模糊角函数
Figure PCTCN2016079215-appb-000107
确定曝光起始时间点t的取值t_0。模糊角函数
Figure PCTCN2016079215-appb-000108
在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为目标曝光时长档位所对应的曝光时长。
The processor 211 is further configured to: after setting the target exposure time slot position, according to the time point when the camera instruction is received, and the blur angle function
Figure PCTCN2016079215-appb-000107
The value t_0 of the exposure start time point t is determined. Fuzzy angle function
Figure PCTCN2016079215-appb-000108
There is a minimum value at the point of (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure time slot.
基于本发明的实施例所提供的设定曝光时长的装置,本发明的实施例还提供一种照相设备,用于实现本发明的实施例所描述的设定曝光时长的方法。Based on the apparatus for setting the exposure duration provided by the embodiment of the present invention, an embodiment of the present invention further provides a photographic apparatus for implementing the method of setting the exposure duration described in the embodiment of the present invention.
照相设备具体可以是数码相机、带有照相功能的智能手机、平板电脑、无人机等设备。The camera device may specifically be a digital camera, a smartphone with a camera function, a tablet computer, a drone, and the like.
照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。通过执行本发明的实施例所提供的设定曝光时长的方法,在照相过程中从N个曝光时长档位中选择其一,按照选定档位对应的曝光时长完成曝光过程。The camera device provides N exposure time slots, and an exposure time slot corresponds to an exposure time length, where N is an integer greater than one. By performing the method of setting the exposure duration provided by the embodiment of the present invention, one of the N exposure time slots is selected during the photographing process, and the exposure process is completed according to the exposure duration corresponding to the selected gear position.
在一种具体的应用场景中,照相设备包括图20所对应的实施例中所描述的设定曝光时长的装置。In a particular application scenario, the camera device includes the means for setting the exposure duration as described in the embodiment corresponding to FIG.
或者,照相设备包括图21所对应的实施例中所描述的设定曝光时长的装置。Alternatively, the photographic apparatus includes means for setting the exposure duration described in the embodiment corresponding to FIG.
本发明的实施例所提供的设定曝光时长的装置以及照相设备, 根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。A device for setting an exposure time and a camera device provided by an embodiment of the present invention, The theoretical blur angle set is obtained according to the jitter parameter prediction, then the suppression blur angle set is obtained according to the suppression ratio set prediction, and the target suppression blur angle is selected from the suppression blur angle set according to the allowable blur angle, and the exposure duration is set as the target suppression blur angle. The corresponding exposure time is long, thereby setting an optimum exposure time slot according to the actual jitter condition of the camera device during the photographing process, thereby improving the sharpness of the photograph. Further, the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
基于本发明的实施例所提供的设定曝光时长的方法以及照相设备,本发明的实施例还提供一种计算机可读存储介质。计算机可读存储介质存储有程序代码,当程序代码被执行时,实现本发明的实施例所描述的设定曝光时长的方法。The embodiment of the present invention further provides a computer readable storage medium based on the method of setting the exposure time and the photographic apparatus provided by the embodiments of the present invention. The computer readable storage medium stores program code that, when executed, implements a method of setting an exposure duration as described in an embodiment of the present invention.
例如,在一种具体的实施方式中,当通过软件实现、或者通过软件和硬件结合的方式实现本发明的实施例所提供的设定曝光时长的方法时,可以将实现设定曝光时长的方法的程序代码存储在计算机可读存储介质中。当然,上述程序代码还可以作为计算机可读存储介质上的一个或者多个指令、代码进行传输和存储。For example, in a specific implementation manner, when the method for setting the exposure duration provided by the embodiment of the present invention is implemented by software, or by a combination of software and hardware, the method for setting the exposure duration can be implemented. The program code is stored in a computer readable storage medium. Of course, the above program code can also be transmitted and stored as one or more instructions, code on a computer readable storage medium.
计算机可读存储介质可以包括计算机存储介质和通信介质。Computer readable storage media can include computer storage media and communication media.
存储介质可以是计算机能够存取的任何可用介质。包括但不限于:随机存储器(英文全称:Random Access Memory,英文简称:RAM)、只读存储器(英文全称:Read Only Memory,英文简称:ROM)、电可擦可编程只读存储器(英文全称:Electrically Erasable Programmable Read Only Memory,英文简称:EEPROM)、只读光盘(英文全称:Compact Disc Read Only Memory,英文简称:CD-ROM)或者其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带、存储具有指令或者数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。A storage medium may be any available media that can be accessed by a computer. Including but not limited to: random access memory (English full name: Random Access Memory, English abbreviation: RAM), read-only memory (English full name: Read Only Memory, English abbreviation: ROM), electrically erasable programmable read-only memory (English full name: Electrically Erasable Programmable Read Only Memory (English abbreviation: EEPROM), CD-ROM (English full name: Compact Disc Read Only Memory, English abbreviation: CD-ROM) or other optical disc storage, disk storage media or other magnetic storage devices, or can be used Any other medium that carries, stores, and can be accessed by a computer in the form of an instruction or data structure.
通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。用于传输数据的各种连接均可适当地成为计算机可读存 储介质。Communication media includes any medium that facilitates the transfer of a computer program from one location to another. Various connections for transferring data can be appropriately readable as a computer Storage medium.
例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户专线(英文全称:Digital Subscriber Line,英文简称:DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术也包括在本发明的实施例中所指的计算机可读存储介质的定义中。For example, if the software uses coaxial cable, fiber optic cable, twisted pair, digital subscriber line (English full name: Digital Subscriber Line, English abbreviation: DSL) or wireless technologies such as infrared, radio and microwave from the website, server or Other remote source transmissions, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave, also include definitions of computer readable storage media referred to in embodiments of the present invention. in.
在一种应用场景中,拍照设备具体为智能手机。本发明的实施例所提供的设定曝光时长的方法以应用程序(英文全称:Application,英文简称:APP)安装包的形式保存在服务器中,智能手机通过访问服务器下载并安装该应用程序安装包,实现本发明的实施例所提供的设定曝光时长的方法。In an application scenario, the camera device is specifically a smart phone. The method for setting the exposure duration provided by the embodiment of the present invention is stored in the server in the form of an application program (English full name: Application, English abbreviation: APP) installation package, and the smartphone downloads and installs the application installation package by accessing the server. A method of setting an exposure time length provided by an embodiment of the present invention is achieved.
在上述应用场景中,服务器用于存储应用程序安装包的存储介质、智能手机与服务器之间传输应用程序安装包的传输介质以及智能手机本身存储、运行应用程序安装包的存储介质,均包括在本发明的实施例中所指的计算机可读存储介质的定义中。就只能手机而言,计算机可读存储介质包括安全数码卡(英文全称:Secure Digital Card,英文简称:SD)卡、eMMC(英文全称:Embedded Multi Media Card,英文简称:嵌入式多媒体卡)、RAM等等。In the above application scenario, the storage medium used by the server for storing the application installation package, the transmission medium for transferring the application installation package between the smart phone and the server, and the storage medium for storing and running the application installation package of the smart phone itself are included in the above application scenario. The definition of a computer readable storage medium referred to in the embodiments of the present invention. In terms of only a mobile phone, the computer readable storage medium includes a secure digital card (English full name: Secure Digital Card, English abbreviation: SD) card, eMMC (English full name: Embedded Multi Media Card, English abbreviation: embedded multimedia card), RAM and more.
本发明的实施例所提供的设定曝光时长的计算机可读存储介质,存储、传输用于实现设定曝光时长的方法的程序代码或者指令。当程序代码或者指令被运行或者调用时,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。 A computer readable storage medium for setting an exposure duration provided by an embodiment of the present invention stores and transmits program code or instructions for implementing a method of setting an exposure duration. When the program code or instruction is run or called, the theoretical blur angle set is obtained according to the jitter parameter prediction, and then the suppression blur angle set is obtained according to the suppression ratio set prediction, and the target suppression blur angle is selected from the suppression blur angle set according to the allowable blur angle. The exposure duration is set to the exposure duration corresponding to the target suppression blur angle, thereby setting the optimum exposure time slot according to the actual jitter condition of the camera during the photographing process, thereby improving the sharpness of the photograph. Further, the exposure start time point is selected such that the actual blur angle is as close as possible to the minimum value of the blur angle function, thereby further improving the sharpness of the photograph.
需要说明的是,尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或者步骤。单个处理器或者其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。It is to be noted that, while the invention has been described herein in connection with the embodiments of the invention, Other variations of the disclosed embodiments can be understood and effected by the book. In the claims, the word "comprising" does not exclude other components or steps. A single processor or other unit may fulfill several of the functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that the measures are not combined to produce a good effect.
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或者计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或者结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或者多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或者作为硬件的一部分,也可以采用其他分布形式,如通过Internet或者其它有线或者无线电信系统。Those skilled in the art will appreciate that embodiments of the invention may be provided as a method, apparatus (device), or 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 computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解为可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或者其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或者其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或者多个流程和/或方框图的一个方框或者多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of the methods, apparatus, and computer program products of the 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. A device that implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of a flowchart.
这些计算机程序指令也可存储在能引导计算机或者其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图的一个方框 或者多个方框中指定的功能。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 device is implemented in a block of a flow or a flow and/or a block diagram of the flowchart Or the function specified in multiple boxes.
这些计算机程序指令也可装载到计算机或者其他可编程数据处理设备上,使得在计算机或者其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或者其他可编程设备上执行的指令提供用于实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
尽管结合具体特征以及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或者等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求以及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。While the invention has been described in connection with the specific embodiments and the embodiments thereof Accordingly, the description and drawings are to be regarded as 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 the modifications of the
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或者替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (29)

  1. 一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述方法包括:A method for setting an exposure duration for setting a target exposure time slot of a camera device, the camera device providing N exposure time slots, and an exposure time slot corresponding to an exposure duration, wherein N is greater than 1 An integer, characterized in that the method comprises:
    获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;Obtaining a jitter parameter for indicating a jitter state of the camera device during a photographing process;
    根据当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;And predicting a theoretical blur angle set according to the currently obtained jitter parameter; the theoretical blur angle set includes a theoretical blur angle corresponding to each of the N exposure time slots, and the theoretical blur angle is an expected value of the blur angle when the jitter compensation function is off. The blur angle is the cumulative change amount of the lens angle of the lens during the exposure process;
    根据当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;Determining a set of suppression ratios according to the currently obtained jitter parameter; the suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and the suppression ratio is about a theoretical blur angle and a suppression blur angle a function that suppresses the blur angle as the expected value of the blur angle in the case where the shake compensation function is turned on;
    根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;Determining a set of suppression blur angles according to a function of a suppression ratio with respect to a theoretical blur angle and a suppression blur angle according to the theoretical blur angle set and the suppression ratio set; the suppression blur angle set is included under the currently acquired jitter parameter Suppressing the blur angle corresponding to each of the N exposure time slots;
    获取容许模糊角,根据所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;Obtaining an allowable blur angle, selecting one of the suppression blur angles as the target suppression blur angle according to the allowable blur angle; the allowable blur angle is used to indicate an acceptable maximum suppression blur angle;
    设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。The target exposure time slot is set, and the target exposure time gear is the exposure time slot corresponding to the target suppression blur angle.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述根据当前获取的抖动参数确定抑制比集合之前,所述方法还包括;获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得; Before determining the suppression ratio set according to the currently acquired jitter parameter, the method further includes: acquiring a suppression ratio list; the suppression ratio list includes, under different jitter parameters, respective suppression ratios of the N exposure time slots The value of the suppression ratio in the suppression ratio list is calculated as a function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle, based on the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle;
    所述根据当前获取的抖动参数确定抑制比集合,包括:Determining the suppression ratio set according to the currently obtained jitter parameter, including:
    根据所述抖动参数查询所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,得到所述抑制比集合。Querying the suppression ratio list according to the jitter parameter, determining, according to the currently obtained jitter parameter, a suppression ratio corresponding to each of the N exposure time slots, and obtaining the suppression ratio set.
  3. 根据权利要求1或者2所述的方法,其特征在于,所述获取抖动参数,包括:获取所述照相设备在照相过程中的抖动振幅和抖动周期。The method according to claim 1 or 2, wherein said obtaining the jitter parameter comprises: obtaining a jitter amplitude and a jitter period of said camera device during photographing.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述抖动参数预测所述N个曝光时长档位各自对应的理论模糊角,包括:The method according to claim 3, wherein the predicting a theoretical blur angle corresponding to each of the N exposure time slots according to the jitter parameter comprises:
    根据抖动振幅和抖动周期构建模糊角函数
    Figure PCTCN2016079215-appb-100001
    其中,
    Figure PCTCN2016079215-appb-100002
    为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;
    Constructing a fuzzy angle function based on jitter amplitude and jitter period
    Figure PCTCN2016079215-appb-100001
    among them,
    Figure PCTCN2016079215-appb-100002
    For the blur angle, t is the exposure start time point, Δt is the exposure time length, A is the jitter amplitude, and λ is the jitter period;
    根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。Calculating a theoretical blur angle corresponding to each of the N exposure time slots according to the blur angle function, to obtain the theoretical blur angle set.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,包括:The method according to claim 4, wherein the calculating a theoretical blur angle corresponding to each of the N exposure time slots according to the blur angle function comprises:
    根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:Calculating a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, the first formula is:
    Figure PCTCN2016079215-appb-100003
    Figure PCTCN2016079215-appb-100003
    其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, i=1,...N, Δt_i is the exposure duration corresponding to the i-th exposure time slot, and λ is the jitter period;
    或者,根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Or calculating a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
    Figure PCTCN2016079215-appb-100004
    Figure PCTCN2016079215-appb-100004
    其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。 Where t_j(j=1, . . . P) is a P sample value for the exposure start time point t in one jitter period, k is an integer greater than or equal to 0, and P is an integer greater than 1.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述根据所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角,包括:The method according to any one of claims 1 to 5, wherein the selecting one of the suppression blur angles from the set of suppression blur angles as the target suppression blur angle according to the allowable blur angle comprises:
    从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。A suppression blur angle smaller than or close to the allowable blur angle is selected from the set of suppression blur angles as a target suppression blur angle.
  7. 根据权利要求6所述的方法,其特征在于,从所述抑制模糊角集合中选择小于或者接近容许模糊角抑制模糊角作为目标抑制模糊角,包括:The method according to claim 6, wherein selecting a less than or close to allowable blur angle suppression blur angle from the set of suppression blur angles as the target suppression blur angle comprises:
    当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the respective suppression blur angles of the N exposure time slots is not greater than the allowable blur angle, selecting one of the suppression exposure blur angles that is not longer than the allowable blur angle is the longest one. The blur angle is the target suppression blur angle;
    当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the respective suppression blur angles of the N exposure time slots are greater than the allowable blur angle, selecting the smallest suppression blur angle from the respective suppression blur angles of the N exposure time slots as the target suppression blur angle.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,Method according to any of claims 1-7, characterized in that
    抑制比关于理论模糊角和抑制模糊角的函数具体为:The suppression ratio is a function of the theoretical blur angle and the suppression blur angle:
    Figure PCTCN2016079215-appb-100005
    Figure PCTCN2016079215-appb-100005
    其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.
  9. 根据权利要求4-7任一项所述的方法,其特征在于,A method according to any one of claims 4-7, wherein
    所述方法还包括:获取用户的拍照指令;The method further includes: acquiring a photographing instruction of the user;
    所述设定目标曝光时长档位之后,所述方法还包括:根据接收到所述拍照指令的时间点,以及所述模糊角函数
    Figure PCTCN2016079215-appb-100006
    确定曝光起始时间点t的取值t_0;所述模糊角函数
    Figure PCTCN2016079215-appb-100007
    在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。
    After the target exposure time slot is set, the method further includes: according to a time point when the camera instruction is received, and the blur angle function
    Figure PCTCN2016079215-appb-100006
    Determining the value t_0 of the exposure start time point t; the blur angle function
    Figure PCTCN2016079215-appb-100007
    There is a minimum value at the point of (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure time slot.
  10. 一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述装置包括: A device for setting an exposure duration for setting a target exposure time slot of a camera device, the camera device providing N exposure time slots, and an exposure time slot corresponding to an exposure duration, wherein N is greater than 1 An integer, characterized in that the device comprises:
    获取单元,用于获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;An acquisition unit, configured to acquire a jitter parameter, the jitter parameter is used to indicate a jitter state of the camera device during a photographing process;
    处理单元,用于根据所述获取单元当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;a processing unit, configured to predict a theoretical blur angle set according to a jitter parameter currently acquired by the acquiring unit; the theoretical blur angle set includes a theoretical blur angle corresponding to each of the N exposure time slots, and the theoretical blur angle is a jitter compensation The expected value of the blur angle in the case where the function is turned off, and the blur angle is the cumulative change amount of the shake angle of the lens during the exposure process;
    所述处理单元,还用于根据所述获取单元当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;The processing unit is further configured to determine, according to the jitter parameter currently acquired by the acquiring unit, a suppression ratio set; the suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots according to the currently acquired jitter parameter The suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the suppression blur angle is an expected value of the blur angle in the case where the shake compensation function is turned on;
    所述处理单元,还用于根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;The processing unit is further configured to: according to the theoretical blur angle set and the suppression ratio set, predict a suppression blur angle set according to a suppression ratio function of a theoretical blur angle and a suppression blur angle; the suppression blur angle set is included in Under the currently obtained jitter parameter, each of the N exposure time slots has a corresponding suppression blur angle;
    所述获取单元,还用于获取容许模糊角;The obtaining unit is further configured to acquire an allowable blur angle;
    所述处理单元,还用于根据所述获取单元获取的所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;The processing unit is further configured to select one of the suppression blur angles as the target suppression blur angle according to the allowable blur angle acquired by the acquiring unit; the allowable blur angle is used to indicate that the blur angle is acceptable Maximum suppression of blur angles;
    设置单元,还用于根据所述处理单元确定的目标抑制模糊角设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。The setting unit is further configured to set a target exposure time slot according to the target suppression blur angle determined by the processing unit, where the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
  11. 根据权利要求10所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 10, wherein
    所述获取单元,还用于获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得;The obtaining unit is further configured to obtain a suppression ratio list, where the suppression ratio list includes respective suppression ratios of the N exposure time slots according to different jitter parameters; and the suppression ratio in the suppression ratio list Calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle;
    所述处理单元,还用于根据所述抖动参数查询所述获取单元所获 取的所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,得到所述抑制比集合。The processing unit is further configured to query, according to the jitter parameter, the obtained by the acquiring unit Taking the suppression ratio list, determining a suppression ratio corresponding to each of the N exposure time slots under the currently acquired jitter parameter, and obtaining the suppression ratio set.
  12. 根据权利要求10或者11所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 10 or 11, wherein
    所述获取单元,具体用于获取所述照相设备在照相过程中的抖动振幅和抖动周期。The acquiring unit is specifically configured to acquire a jitter amplitude and a jitter period of the camera device during photographing.
  13. 根据权利要求12所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 12, wherein
    所述处理单元,具体用于根据抖动振幅和抖动周期构建模糊角函数
    Figure PCTCN2016079215-appb-100008
    其中,
    Figure PCTCN2016079215-appb-100009
    为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。
    The processing unit is specifically configured to construct a blur angle function according to the jitter amplitude and the jitter period
    Figure PCTCN2016079215-appb-100008
    among them,
    Figure PCTCN2016079215-appb-100009
    For the blur angle, t is the exposure start time point, Δt is the exposure time length, A is the jitter amplitude, and λ is the jitter period; and the theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, The theoretical blur angle set.
  14. 根据权利要求13所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 13, wherein
    所述处理单元,进一步用于根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:The processing unit is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
    Figure PCTCN2016079215-appb-100010
    Figure PCTCN2016079215-appb-100010
    其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, i=1,...N, Δt_i is the exposure duration corresponding to the i-th exposure time slot, and λ is the jitter period;
    或者,所述处理单元,进一步用于根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Alternatively, the processing unit is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
    Figure PCTCN2016079215-appb-100011
    Figure PCTCN2016079215-appb-100011
    其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Where t_j(j=1, . . . P) is a P sample value for the exposure start time point t in one jitter period, k is an integer greater than or equal to 0, and P is an integer greater than 1.
  15. 根据权利要求10-14任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time length according to any one of claims 10 to 14, wherein
    所述处理单元,具体用于从所述抑制模糊角集合中选择小于或者 接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processing unit is specifically configured to select less than or from the set of suppression blur angles The suppression blur angle close to the allowable blur angle serves as a target suppression blur angle.
  16. 根据权利要求15所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 15, wherein
    当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理单元,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;The processing unit is further configured to select from a suppression blur angle that is not greater than the allowable blur angle when at least one of the respective suppression blur angles of the N exposure time slots is not greater than the allowable blur angle The suppression blur angle corresponding to the longest exposure time is the target suppression blur angle;
    当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理单元,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。The processing unit is further configured to select a minimum of each of the suppression blur angles corresponding to each of the N exposure time slots when the respective suppression blur angles of the N exposure time slots are greater than the allowable blur angle The suppression of the blur angle is the target suppression blur angle.
  17. 根据权利要求10-16任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to any one of claims 10 to 16, wherein
    所述处理单元,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processing unit is specifically configured to predict a set of suppression blur angles according to a function of a blur angle;
    Figure PCTCN2016079215-appb-100012
    Figure PCTCN2016079215-appb-100012
    其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.
  18. 根据权利要求13-16任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure duration according to any one of claims 13 to 16, characterized in that
    所述获取单元,还用于获取用户的拍照指令;The obtaining unit is further configured to acquire a photographing instruction of the user;
    所述处理单元,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数
    Figure PCTCN2016079215-appb-100013
    确定曝光起始时间点t的取值t_0;所述模糊角函数
    Figure PCTCN2016079215-appb-100014
    在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。
    The processing unit is further configured to, after setting a target exposure time slot position, according to a time point when the photographing instruction is received, and the blur angle function
    Figure PCTCN2016079215-appb-100013
    Determining the value t_0 of the exposure start time point t; the blur angle function
    Figure PCTCN2016079215-appb-100014
    There is a minimum value at the point of (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure time slot.
  19. 一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述装置包括:处理器、存储器、总线以及收发器;所述处理器、所述存储器,所述接收器通过所述总线相互连接; A device for setting an exposure duration for setting a target exposure time slot of a camera device, the camera device providing N exposure time slots, and an exposure time slot corresponding to an exposure duration, wherein N is greater than 1 An integer, characterized in that the apparatus comprises: a processor, a memory, a bus, and a transceiver; the processor, the memory, and the receiver are connected to each other through the bus;
    所述接收器,用于获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;The receiver is configured to acquire a jitter parameter, the jitter parameter is used to indicate a jitter state of the camera device during a photographing process;
    所述处理器,用于根据所述接收器当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;The processor is configured to predict a theoretical blur angle set according to the jitter parameter currently acquired by the receiver; the theoretical blur angle set includes a theoretical blur angle corresponding to each of the N exposure time slots, and the theoretical blur angle is The expected value of the blur angle in the case where the shake compensation function is turned off, and the blur angle is the cumulative change amount of the shake angle of the lens during the exposure process;
    所述处理器,还用于根据所述接收器当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;The processor is further configured to determine, according to the jitter parameter currently acquired by the receiver, a suppression ratio set; the suppression ratio set includes a suppression ratio corresponding to each of the N exposure time slots according to the currently acquired jitter parameter The suppression ratio is a function of the theoretical blur angle and the suppression blur angle, and the suppression blur angle is an expected value of the blur angle in the case where the shake compensation function is turned on;
    所述处理器,还用于根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;The processor is further configured to: according to the theoretical blur angle set and the suppression ratio set, predict a suppression blur angle set according to a suppression ratio function of a theoretical blur angle and a suppression blur angle; the suppression blur angle set is included in Under the currently obtained jitter parameter, each of the N exposure time slots has a corresponding suppression blur angle;
    所述接收器,还用于获取容许模糊角;The receiver is further configured to obtain an allowable blur angle;
    所述处理器,还用于根据所述接收器获取的所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;The processor is further configured to select one of the suppression blur angles as the target suppression blur angle according to the allowable blur angle acquired by the receiver; the allowable blur angle is used to indicate that the blur angle is acceptable Maximum suppression of blur angles;
    所述处理器,还用于根据所述目标抑制模糊角设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。The processor is further configured to set a target exposure time slot according to the target suppression blur angle, where the target exposure time gear is an exposure time slot corresponding to the target suppression blur angle.
  20. 根据权利要求19所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 19, wherein
    所述接收器,还用于获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得;The receiver is further configured to obtain a suppression ratio list; the suppression ratio list includes a suppression ratio corresponding to each of the N exposure time slots according to different jitter parameters; and a value of a suppression ratio in the suppression ratio list Calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the suppression ratio with respect to the theoretical blur angle and the suppression blur angle;
    所述处理器,还用于根据所述抖动参数查询所述接收器所获取的所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长 档位各自对应的抑制比,得到所述抑制比集合。The processor is further configured to query the suppression ratio list acquired by the receiver according to the jitter parameter, and determine, according to the currently obtained jitter parameter, the N exposure durations The respective suppression ratios of the gear positions are obtained, and the suppression ratio set is obtained.
  21. 根据权利要求19或者20所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 19 or 20, characterized in that
    所述接收器,具体用于获取所述照相设备在照相过程中的抖动振幅和抖动周期。The receiver is specifically configured to acquire a jitter amplitude and a jitter period of the camera device during photographing.
  22. 根据权利要求21所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 21, wherein
    所述处理器,具体用于根据抖动振幅和抖动周期构建模糊角函数
    Figure PCTCN2016079215-appb-100015
    其中,
    Figure PCTCN2016079215-appb-100016
    为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。
    The processor is specifically configured to construct a blur angle function according to the jitter amplitude and the jitter period
    Figure PCTCN2016079215-appb-100015
    among them,
    Figure PCTCN2016079215-appb-100016
    For the blur angle, t is the exposure start time point, Δt is the exposure time length, A is the jitter amplitude, and λ is the jitter period; and the theoretical blur angle corresponding to each of the N exposure time slots is calculated according to the blur angle function, The theoretical blur angle set.
  23. 根据权利要求22所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to claim 22, wherein
    所述处理器,进一步用于根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:The processor is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the first formula, where the first formula is:
    Figure PCTCN2016079215-appb-100017
    Figure PCTCN2016079215-appb-100017
    其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Where ψ_i is the theoretical blur angle corresponding to the i-th exposure time slot, i=1,...N, Δt_i is the exposure duration corresponding to the i-th exposure time slot, and λ is the jitter period;
    或者,所述处理器,进一步用于根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Alternatively, the processor is further configured to calculate a theoretical blur angle corresponding to each of the N exposure time slots according to the second formula, where the second formula is:
    Figure PCTCN2016079215-appb-100018
    Figure PCTCN2016079215-appb-100018
    其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Where t_j(j=1, . . . P) is a P sample value for the exposure start time point t in one jitter period, k is an integer greater than or equal to 0, and P is an integer greater than 1.
  24. 根据权利要求19-23任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to any one of claims 19 to 23, characterized in that
    所述处理器,具体用于从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processor is specifically configured to select, as the target suppression blur angle, a suppression blur angle that is less than or close to the allowable blur angle from the set of suppression blur angles.
  25. 根据权利要求24所述的设定曝光时长的装置,其特征在于, The apparatus for setting an exposure time period according to claim 24, wherein
    当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理器,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;The processor is further configured to select from a suppression blur angle that is not greater than the allowable blur angle when at least one of the respective suppression blur angles of the N exposure time slots is not greater than the allowable blur angle The suppression blur angle corresponding to the longest exposure time is the target suppression blur angle;
    当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理器,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。The processor is further configured to select a minimum of each of the suppression blur angles corresponding to each of the N exposure time slots when the respective suppression blur angles of the N exposure time slots are greater than the allowable blur angle The suppression of the blur angle is the target suppression blur angle.
  26. 根据权利要求19-25任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to any one of claims 19 to 25, characterized in that
    所述处理器,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processor is specifically configured to predict a set of suppression blur angles according to a function of a blur angle;
    Figure PCTCN2016079215-appb-100019
    Figure PCTCN2016079215-appb-100019
    其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.
  27. 根据权利要求22-25任一项所述的设定曝光时长的装置,其特征在于,The apparatus for setting an exposure time period according to any one of claims 22 to 25, characterized in that
    所述接收器,还用于获取用户的拍照指令;The receiver is further configured to acquire a photographing instruction of the user;
    所述处理器,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数
    Figure PCTCN2016079215-appb-100020
    确定曝光起始时间点t的取值t_0;所述模糊角函数
    Figure PCTCN2016079215-appb-100021
    在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。
    The processor is further configured to: after setting a target exposure time slot, according to a time point when the photographing instruction is received, and the blur angle function
    Figure PCTCN2016079215-appb-100020
    Determining the value t_0 of the exposure start time point t; the blur angle function
    Figure PCTCN2016079215-appb-100021
    There is a minimum value at the point of (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure time slot.
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序代码,当所述程序代码被执行时,实现权利要求1-9任一项所述的设定曝光时长的方法。A computer readable storage medium, characterized in that the computer readable storage medium stores program code, when the program code is executed, implementing the set exposure time length according to any one of claims 1-9 method.
  29. 一种照相设备,其特征在于,包括如权利要求10-27任一项所述的设定曝光时长的装置。 A photographic apparatus comprising the apparatus for setting an exposure time period according to any one of claims 10-27.
PCT/CN2016/079215 2016-04-13 2016-04-13 Method and apparatus for setting exposure duration, and photographic device WO2017177407A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680009557.9A CN107493686B (en) 2016-04-13 2016-04-13 A kind of method, apparatus and camera installation setting exposure time
PCT/CN2016/079215 WO2017177407A1 (en) 2016-04-13 2016-04-13 Method and apparatus for setting exposure duration, and photographic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/079215 WO2017177407A1 (en) 2016-04-13 2016-04-13 Method and apparatus for setting exposure duration, and photographic device

Publications (1)

Publication Number Publication Date
WO2017177407A1 true WO2017177407A1 (en) 2017-10-19

Family

ID=60042330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079215 WO2017177407A1 (en) 2016-04-13 2016-04-13 Method and apparatus for setting exposure duration, and photographic device

Country Status (2)

Country Link
CN (1) CN107493686B (en)
WO (1) WO2017177407A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449164A (en) * 2021-12-27 2022-05-06 广州极飞科技股份有限公司 Photographing method and device, unmanned equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09289612A (en) * 1996-02-20 1997-11-04 Canon Inc Image pickup device and control method therefor
JPH11284900A (en) * 1998-03-30 1999-10-15 Fuji Photo Optical Co Ltd Shake prevention device for television camera
CN1893558A (en) * 2005-06-30 2007-01-10 奥林巴斯映像株式会社 Electronic jitter correction device
US20090086040A1 (en) * 2007-08-24 2009-04-02 Takehide Ohno Imaging device and image blurring correction device
CN102694979A (en) * 2011-03-22 2012-09-26 佳能株式会社 Camera and control method of the same
CN103947185A (en) * 2011-11-22 2014-07-23 松下电器产业株式会社 Measuring method, measuring device, computer program and recording medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10245839A (en) * 1997-03-06 1998-09-14 Misawa Homes Co Ltd Method for estimating ground strength and its evaluating method
CN102346346A (en) * 2010-07-21 2012-02-08 佳能株式会社 Fuzzy correction equipment and image pickup equipment
CN102609924A (en) * 2012-03-12 2012-07-25 敦煌研究院 Digital high-fidelity image collecting and processing method of stone cave temple wall paintings
CN202584428U (en) * 2012-05-16 2012-12-05 江苏尤特斯新技术有限公司 Image evidence collecting device for behaviors of motor vehicle license plate shielding and staining
CN104760595A (en) * 2013-08-26 2015-07-08 刘健 Rail train of ultralong station and marshalling system thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09289612A (en) * 1996-02-20 1997-11-04 Canon Inc Image pickup device and control method therefor
JPH11284900A (en) * 1998-03-30 1999-10-15 Fuji Photo Optical Co Ltd Shake prevention device for television camera
CN1893558A (en) * 2005-06-30 2007-01-10 奥林巴斯映像株式会社 Electronic jitter correction device
US20090086040A1 (en) * 2007-08-24 2009-04-02 Takehide Ohno Imaging device and image blurring correction device
CN102694979A (en) * 2011-03-22 2012-09-26 佳能株式会社 Camera and control method of the same
CN103947185A (en) * 2011-11-22 2014-07-23 松下电器产业株式会社 Measuring method, measuring device, computer program and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449164A (en) * 2021-12-27 2022-05-06 广州极飞科技股份有限公司 Photographing method and device, unmanned equipment and storage medium
CN114449164B (en) * 2021-12-27 2023-07-18 广州极飞科技股份有限公司 Photographing method and device, unmanned equipment and storage medium

Also Published As

Publication number Publication date
CN107493686B (en) 2019-11-29
CN107493686A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US10785403B2 (en) Modifying image parameters using wearable device input
JP6439837B2 (en) Electronic device and display method
JP4708479B2 (en) System and method for realizing motion-driven multi-shot image stabilization
US20160191788A1 (en) Image processing apparatus and image pickup apparatus
JP6246246B2 (en) Device with adaptive camera array
US8422827B2 (en) Image correction apparatus and image correction method
US20150042839A1 (en) Distance measuring apparatus, imaging apparatus, and distance measuring method
JP2016134919A (en) Method for generating hdr image of scene based on tradeoff between brightness distribution and motion
WO2017075788A1 (en) Anti-jitter photographing method and apparatus, and camera device
JP2017118197A5 (en)
WO2019037781A1 (en) Terminal and anti-shaking photographing method therefor, and storage apparatus
CN111372000B (en) Video anti-shake method and apparatus, electronic device, and computer-readable storage medium
US10791340B2 (en) Method and system to refine coding of P-phase data
JP2011239157A5 (en)
WO2017177407A1 (en) Method and apparatus for setting exposure duration, and photographic device
US11069040B2 (en) Empirical exposure normalization
WO2016184060A1 (en) Photographing method and device for terminal
JP7131541B2 (en) Image processing device, image processing method and image processing program
JP5544848B2 (en) Image determination apparatus and image determination program
JP5230315B2 (en) Optical correction data registration program, optical correction data registration apparatus, and information processing apparatus
JP6645690B2 (en) Automatic focus adjustment device, imaging device, and automatic focus adjustment method
US20140307154A1 (en) Imaging apparatus, control method and program
WO2017033559A1 (en) Image capture device, image capture method, and program
JP6043381B2 (en) Imaging system, imaging apparatus, control method, and program
JP2024038744A (en) Evaluation system, evaluation method and program

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: 16898226

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16898226

Country of ref document: EP

Kind code of ref document: A1