[go: up one dir, main page]

CN107493686B - A kind of method, apparatus and camera installation setting exposure time - Google Patents

A kind of method, apparatus and camera installation setting exposure time Download PDF

Info

Publication number
CN107493686B
CN107493686B CN201680009557.9A CN201680009557A CN107493686B CN 107493686 B CN107493686 B CN 107493686B CN 201680009557 A CN201680009557 A CN 201680009557A CN 107493686 B CN107493686 B CN 107493686B
Authority
CN
China
Prior art keywords
blur
angle
suppression
exposure time
angles
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680009557.9A
Other languages
Chinese (zh)
Other versions
CN107493686A (en
Inventor
李付生
胡毅超
贾飞
徐荣跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107493686A publication Critical patent/CN107493686A/en
Application granted granted Critical
Publication of CN107493686B publication Critical patent/CN107493686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

A kind of method, apparatus and camera installation setting exposure time, is related to electronics field, can be improved the clarity of photo.The specific scheme is that obtaining jitter parameter (101);Angle set (103) is obscured according to the jitter parameter prediction theory currently obtained;It is determined and is inhibited than set (104) according to the jitter parameter currently obtained;According to the fuzzy angle set of theory and inhibit than set, according to inhibiting than about theoretical fuzzy angle and inhibiting the function at fuzzy angle, prediction inhibits fuzzy angle set (105);Fuzzy angle (106) are allowed in acquisition, according to allow fuzzy angle from inhibiting select in fuzzy angle set one of fuzzy angle to be inhibited to obscure angle (107) as target inhibition;It sets target light exposure duration gear (108), target light exposure duration gear is one of at least two exposure time gears that camera installation provides.

Description

一种设定曝光时长的方法、装置以及照相设备A method, device and photographic equipment for setting exposure time

技术领域technical field

本发明涉以及电子产品领域,尤其涉以及一种设定曝光时长的方法、装置以及照相设备。The invention relates to the field of electronic products, in particular to a method, device and photographic equipment for setting exposure time.

背景技术Background technique

目前市场上的各种手机通常都具有照相的功能,在照相过程中,用户手持手机时的抖动会对照片的清晰度造成影响,现有的解决办法是通过光学图像稳定器(英文全称:Optical Image Stabilization,英文简称:OIS)进行抖动补偿,以抑制由于抖动对成像造成的影响。Various mobile phones currently on the market usually have the function of taking pictures. In the process of taking pictures, the shaking when the user holds the mobile phone will affect the clarity of the photos. The existing solution is to use an optical image stabilizer (full name in English: Optical Image Stabilization (English abbreviation: OIS) performs jitter compensation to suppress the impact of jitter on imaging.

例如,通过陀螺仪采样关于手机抖动情况的信息,并根据这些信息计算确定抖动补偿量,然后按照补偿量驱动摄像头镜片或者摄像头内感光元件移动进行抖动补偿,或者驱动两者同时移动进行抖动补偿。For example, use the gyroscope to sample information about the shaking of the mobile phone, calculate and determine the amount of shake compensation based on the information, and then drive the camera lens or the photosensitive element in the camera to move according to the compensation amount for shake compensation, or drive both to move simultaneously for shake compensation.

抖动补偿能够在一定程度上提高照片的清晰度。照相过程中,在抖动频率和抖动振幅一定的情况下,抖动补偿量不同,照片的清晰度不同。然而照片的清晰度不仅仅受抖动补偿量的影响,也受到曝光时长的影响。在抖动补偿量一定的情况下,如果曝光时长不同,照片的清晰度也会不同。Shake compensation can improve the clarity of photos to a certain extent. During the photographing process, when the shaking frequency and shaking amplitude are fixed, the sharpness of the photo is different due to the different amount of shaking compensation. However, the sharpness of the photo is not only affected by the amount of shake compensation, but also by the exposure time. In the case of a certain amount of shake compensation, if the exposure time is different, the sharpness of the photo will also be different.

现有的智能手机、数码相机等照相设备,通常提供不同的拍照模式,例如夜景模式、人像模式等,每种拍照模式对应固定的曝光时长。或者,用户在自定义模式下,根据个人经验手动设定曝光时长。因此现有技术中的照相设备,在拍摄模式确定的情况下,不论照相过程中实际的抖动情况如何,均采用固定的曝光时长,往往导致照片的清晰度欠佳。Existing photographic devices such as smartphones and digital cameras usually provide different photographing modes, such as night scene mode, portrait mode, etc., and each photographing mode corresponds to a fixed exposure time. Alternatively, the user manually sets the exposure time according to personal experience in the custom mode. Therefore, in the photographic equipment in the prior art, when the photographing mode is determined, regardless of the actual shaking during the photographing process, a fixed exposure time is used, which often leads to poor clarity of the photograph.

发明内容Contents of the invention

本申请提供一种设定曝光时长的方法、装置以及照相设备,能够根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。The present application provides a method, device and photographic equipment for setting exposure time, which can set the most appropriate exposure time gear according to the actual shaking of the photographic equipment during the photographing process, thereby improving the clarity of photos.

为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:

第一方面,提供一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,具体包括:In the first aspect, a method for setting the exposure time is provided, which is used to set the target exposure time gear of the camera equipment. The camera equipment provides N exposure time gears, and one exposure time gear corresponds to one exposure time, where N is An integer greater than 1, specifically including:

首先根据照相设备在照相过程中的抖动状态确定抖动参数,并预测N个曝光时长档位各自对应的理论模糊角,然后根据当前抖动状态下N个曝光时长档位各自对应的抑制比,预测N个曝光时长档位各自对应的抑制模糊角,并根据容许模糊角从中选择目标抑制模糊角,设定目标抑制模糊角对应的曝光时长档位为最适的曝光时长档位。在照相过程中,照相设备根据实际的抖动情况对抖动补偿功能开启的情况下的模糊角,即抑制模糊角进行预测,并按照容许模糊角从N个曝光时长档位各自对应的抑制模糊角中选择其一作为目标抑制模糊角,最终设定目标曝光时长档位,达到根据实际的抖动情况设定最适的曝光时长档位的目的。First, determine the shake parameters according to the shake state of the photographic equipment during the photographing process, and predict the theoretical blur angles corresponding to each of the N exposure time gears, and then predict the N The blur suppression angle corresponding to each exposure time length gear, and select the target blur suppression angle according to the allowable blur angle, and set the exposure time length gear corresponding to the target blur suppression angle as the most suitable exposure time length gear. During the photographing process, the camera equipment predicts the blur angle when the shake compensation function is turned on, that is, the blur suppression angle according to the actual shake situation, and selects from the corresponding blur angle suppression angles of the N exposure time levels according to the allowable blur angle. Choose one of them as the target blur suppression angle, and finally set the target exposure time gear, so as to achieve the purpose of setting the most appropriate exposure time gear according to the actual shaking situation.

结合第一方面,在第一种可能的实现方式中,在照相设备中存储一个抑制比列表,照相过程中,在获取抖动参数后,根据抖动参数查询抑制比列表,得到N个曝光时长档位各自对应的抑制比。实际生产中,可以通过实验测量得到一款照相设备的抑制比列表,并将抑制比列表输入到该款照相设备。In combination with the first aspect, in the first possible implementation mode, a suppression ratio list is stored in the photographing device. During the photographing process, after obtaining the shaking parameters, query the suppression ratio list according to the shaking parameters, and obtain N exposure time long gears The respective suppression ratios. In actual production, the suppression ratio list of a photographic device can be obtained through experimental measurement, and the suppression ratio list can be input into the photographic device.

结合第一方面,在第二种可能的实现方式中,由于抑制模糊角主要受抖动振幅和抖动周期影响,因此以抖动振幅和抖动周期作为抖动参数。在抖动振幅A、抖动周期λ一定时,理论模糊角的取值随曝光起始时间点t、曝光时长Δt不同而变化,因此构建模糊角函数,即模糊角关于t、Δt、A以及λ的函数,并根据模糊角函数计算理论模糊角,由此不仅考虑到了实际的抖动情况,还进一步考虑到了曝光起始时间点t以及曝光时长Δt对模糊角的影响。With reference to the first aspect, in a second possible implementation manner, since the blur suppression angle is mainly affected by the vibration amplitude and the vibration period, the vibration amplitude and the vibration period are used as the vibration 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 Δt, so the blur angle function is constructed, that is, the 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 situation is considered, but also the influence of the exposure start time point t and the exposure duration Δt on the blur angle .

结合第二种可能的实现方式,在第三种可能的实现方式中,一个曝光时长档位所对应的理论模糊角为,当曝光时长Δt为该曝光时长档位所对应的曝光时长时,模糊角函数在一个抖动周期λ内关于曝光起始时间点t的积分与抖动周期λ之比。由于模糊角函数为周期函数,模糊角函数在一个抖动周期λ内的积分与抖动周期λ的比值反映了理论模糊角的平均水平。In combination with the second possible implementation, in the third possible implementation, the theoretical blur angle corresponding to an exposure time gear is, when the exposure time Δt is the exposure time corresponding to the exposure time gear, the blur The ratio of the integral of the angular function within a dithering period λ with respect to the exposure start time point t to the dithering period λ. Since the fuzzy angle function is a periodic function, the ratio of the integral of the fuzzy angle function within a dithering period λ to the dithering period λ reflects the average level of the theoretical fuzzy angle.

结合第二种可能的实现方式,在第四种可能的实现方式中,一个曝光时长档位所对应的理论模糊角为,当曝光时长Δt为该曝光时长档位所对应的曝光时长时,模糊角函数在一个抖动周期λ内的P个采样值的平均值。由于模糊角函数为周期函数,模糊角函数在一个抖动周期λ内采样值的平均值,也反映了理论模糊角的平均水平。Combined with the second possible implementation, in the fourth possible implementation, the theoretical blur angle corresponding to an exposure time gear is, when the exposure time Δt is the exposure time corresponding to the exposure time gear, the blur The average value of P sampling values of the angle function in a jitter period λ. Since the fuzzy angle function is a periodic function, the average value of the sampled values of the fuzzy angle function within a jitter period λ also reflects the average level of the theoretical fuzzy angle.

第二方面,提供一种设定曝光时长的装置,用于实现第一方面所提供的设定曝光时长的方法。In the second aspect, a device for setting the exposure time is provided, which is used to implement the method for setting the exposure time provided in the first aspect.

第三方面,提供另一种设定曝光时长的装置,用于实现第一方面所提供的设定曝光时长的方法。In the third aspect, another device for setting the exposure time is provided, which is used to implement the method for setting the exposure time provided in the first aspect.

第四方面,提供一种计算机可读存储介质,计算机可读存储介质存储有程序代码,当程序代码被执行时,实现第一方面所提供的设定曝光时长的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores program codes. When the program codes are executed, the method for setting the exposure duration provided in the first aspect is realized.

第五方面,提供一种照相设备,包括第二方面或者第三方面所提供的设定曝光时长的装置。The fifth aspect provides a photographic device, including the device for setting the exposure time provided in the second aspect or the third aspect.

附图说明Description of drawings

为了更清楚地说明本发明实施例或者现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only illustrations of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明的实施例所提供的设定曝光时长的方法流程示意图;FIG. 1 is a schematic flow chart of a method for setting exposure duration provided by an embodiment of the present invention;

图2为本发明的实施例中抖动角度随时间变化示意图;Fig. 2 is a schematic diagram of the variation of the shaking angle with time in an embodiment of the present invention;

图3为本发明的实施例中对模糊角的说明示意图;Fig. 3 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图4为本发明的实施例中对模糊角的说明示意图;Fig. 4 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图5为本发明的实施例中对模糊角的说明示意图;Fig. 5 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图6为本发明的实施例中对模糊角的说明示意图;Fig. 6 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图7为本发明的实施例中对模糊角的说明示意图;Fig. 7 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图8为本发明的实施例中对模糊角的说明示意图;Fig. 8 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图9为本发明的实施例中对模糊角的说明示意图;FIG. 9 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图10为本发明的实施例中对模糊角的说明示意图;Fig. 10 is a schematic diagram illustrating the blur angle in an embodiment of the present invention;

图11为本发明的实施例中对模糊距离的说明示意图;Fig. 11 is a schematic diagram illustrating the fuzzy distance in the embodiment of the present invention;

图12为本发明的实施例中对人眼最小可分辨角的说明示意图;Fig. 12 is a schematic illustration of the minimum resolvable angle of the human eye in an embodiment of the present invention;

图13为本发明的实施例中对人眼在观察图片时最小能察觉到的模糊范围的直径的说明示意图;Fig. 13 is a schematic illustration of the diameter of the minimum detectable blur range when the human eye observes a picture in an embodiment of the present invention;

图14为本发明的实施例中对容许模糊角的计算方式的说明示意图;Fig. 14 is a schematic diagram illustrating the calculation method of the allowable blur angle in the embodiment of the present invention;

图15为本发明的实施例中对容许模糊角的另一计算方式的说明示意图;FIG. 15 is a schematic diagram illustrating another calculation method of the allowable blur angle in an embodiment of the present invention;

图16为本发明的实施例所提供的抑制模糊角的实验值随曝光时长的变化曲线示意图;Fig. 16 is a schematic diagram of the variation curve of the experimental value of the blur suppression angle with the exposure time provided by the embodiment of the present invention;

图17为本发明的实施例中对目标抑制模糊角的说明示意图;Fig. 17 is a schematic diagram illustrating the target suppression blur angle in an embodiment of the present invention;

图18为本发明的实施例中对目标抑制模糊角的另一说明示意图;FIG. 18 is another schematic diagram illustrating the target suppression blur angle in an embodiment of the present invention;

图19为本发明的实施例中对曝光起始时间点的说明示意图;FIG. 19 is a schematic diagram illustrating the exposure start time point in an embodiment of the present invention;

图20为本发明的实施例所提供的一种设定曝光时长的装置结构示意图;Fig. 20 is a schematic structural diagram of a device for setting exposure time provided by an embodiment of the present invention;

图21为本发明的实施例所提供的另一种设定曝光时长的装置结构示意图。FIG. 21 is a schematic structural diagram of another device for setting the exposure time provided by the embodiment of the present invention.

具体实施方式Detailed ways

本发明的实施例提供一种设定曝光时长的方法、装置以及照相设备,照相设备可以是手机、平板电脑、数码相机等具有照相功能的设备。Embodiments of the present invention provide a method and device for setting the exposure time, and a camera device. The camera device may be a device with a camera function such as a mobile phone, a tablet computer, or a digital camera.

照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。例如,结合表一所示,曝光时长档位的数量为8,对应的曝光时长从1/2秒到1/32秒。The photographic device provides N exposure time gears, one exposure time gear corresponds to one exposure time, where N is an integer greater than 1. For example, as shown in Table 1, the number of exposure duration levels is 8, and the corresponding exposure duration ranges from 1/2 second to 1/32 second.

表一Table I

曝光时长档位Exposure time gear 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 photographing process, the photographic device sets one of the N exposure time gears as the target exposure time gear according to its actual shaking condition, and then starts the exposure process. The exposure duration is the exposure duration corresponding to the target exposure duration gear. During each photographing process, the photographic equipment can set the target exposure time gear according to the actual shaking situation, so as to obtain photos with better clarity.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例Example

本发明的实施例提供一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,参照图1所示,包括以下步骤:An embodiment of the present invention provides a method for setting the exposure time, which is used to set the target exposure time gear of the photographic equipment. The photographic equipment provides N exposure time gears, and one exposure time gear corresponds to one exposure time, where N It is an integer greater than 1, as shown in Figure 1, including the following steps:

101、获取抖动参数。101. Acquire a jitter parameter.

其中,抖动参数用于指示照相设备在照相过程中的抖动状态。抖动参数具体可以包括用于指示照相设备在不同方向上加速度、倾斜程度的参数,可以通过运动传感器进行采样。运动传感器可以包括三轴陀螺仪、六轴陀螺仪、加速度计等器件中的至少一种。Wherein, the shaking parameter is used to indicate the shaking state of the photographing device during the photographing process. The shaking parameters may specifically include parameters indicating the acceleration and inclination of the camera in different directions, which may be sampled by a motion sensor. The motion sensor may include at least one of devices such as a three-axis gyroscope, a six-axis gyroscope, and an accelerometer.

可选的,抖动参数包括照相设备在照相过程中的抖动振幅和抖动周期。抖动振幅是指照相设备在抖动过程中,镜头抖动角度的最大值。Optionally, the shaking parameters include the shaking amplitude and shaking period of the photographing device during the photographing process. Shake amplitude refers to the maximum value of lens shake angle during the shake process of camera equipment.

抖动角度为时间的函数,结合图2所示,抖动角度其中,A为抖动振幅,λ为抖动周期,t为时间。将抖动角度y关于时间t的函数称为抖动波函数,抖动波函数还可以包括t的初始相位,为便于计算,本发明的实施例中以初始相位为0的情况进行说明。The jitter angle is a function of time, as shown in Figure 2, the jitter angle Among them, A is the shaking amplitude, λ is the shaking period, and t is the time. The function of the jitter angle y with respect to time t is called a jitter wave function, and the jitter wave function may also include the initial phase of t. For the convenience of calculation, the embodiment of the present invention takes the case where the initial phase is 0 for illustration.

当然,抖动波函数还可以是其它形式,例如余弦函数或者其它,本发明对于其具体形式不做限定,仅以正弦函数的情况为例进行说明。Certainly, the jitter wave function may also be in other forms, such as a cosine function or others. The present invention does not limit the specific form, and only uses the sine function as an example for illustration.

实际情况下,照相设备的抖动角度可能是由多个抖动波函数叠加合成的结果。不同抖动周期(抖动频率)的抖动对于照片清晰度的影响有所不同,通过对运动传感器感测到的原始信号进行处理,可以从中筛选出对照片清晰度影响最大的抖动所对应的信号。In actual situations, the jitter angle of the photographic equipment may be the result of the superposition and synthesis of multiple jitter wave functions. Different shake periods (jitter frequencies) have different effects on the clarity of the photo. By processing the original signal sensed by the motion sensor, the signal corresponding to the shake that has the greatest impact on the clarity of the photo can be screened out.

例如,运动传感器感测到的原始信号通常为模拟信号,经过数字转换器进行转换后,对数字信号进行傅里叶变换,得到不同抖动周期的一组数字信号。通过带通滤波器对经过傅里叶变换后的数字信号进行筛选,滤除对清晰度影响较小的频率的信号,保留对清晰度影响较大的频率的信号。最后,根据经过带通滤波后的数字信号,确定抖动振幅和抖动周期。For example, the original signal sensed by the motion sensor is usually an analog signal. After being converted by a digital converter, the digital signal is Fourier transformed to obtain a set of digital signals with different jitter periods. The digital signal after Fourier transform is screened through a band-pass filter to filter out the frequency signal that has little influence on the definition, and keep the frequency signal that has a great influence on the definition. Finally, according to the digital signal after band-pass filtering, determine the jitter amplitude and jitter period.

102、获取用户的拍照指令。102. Obtain a photographing instruction of the user.

拍照指令用于指示照相设备启动照相过程。例如,拍照指令可以在用户按下拍照键的时候触发,拍照键可以是物理按键或者虚拟按键。The photographing instruction is used to instruct the photographing device to start the photographing process. For example, the camera instruction 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 step 101 and step 102 is variable. For example, step 101 precedes step 102. For example, the camera device is a smart phone, and when the user opens the camera application program, the camera device starts to sample shake parameters. Alternatively, step 102 precedes step 101. When the user opens the camera application program, the camera device does not sample the shaking parameters temporarily, and when the user presses the camera key, it begins to sample the shaking parameters.

103、根据当前获取的抖动参数预测理论模糊角集合。103. Predict a set of theoretical blur angles according to the currently acquired jitter parameters.

<1>、模糊角<1>, fuzzy angle

表示模糊角,为镜头的抖动角度在曝光过程中的累积变化量,通常,模糊角越小,照片清晰度越好。图3为模糊角的说明示意图,曝光时长为Δt,曝光起始时间点分别为t_0,t_1以及t_2。矩形301、矩形302、以及矩形303的宽度均为Δt,抖动波函数在三个矩形各自宽度范围内的部分,表示曝光过程中镜头抖动角度的变化轨迹,抖动角度的变化量恒为正,即的取值恒为正。use represents the blur angle, is the cumulative change of the lens shake angle during the exposure process. Generally, the smaller the blur angle, the better the clarity of the photo. FIG. 3 is a schematic diagram illustrating 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 rectangle 301, rectangle 302, and rectangle 303 are all Δt, and the part of the shake wave function within the respective width ranges of the three rectangles represents the change track of the lens shake angle during the exposure process, and the change amount of the shake angle is always positive, namely The value of is always positive.

当t_0时间点为曝光起始时间点时,在曝光过程中,抖动角度y单调递增,此时的大小为矩形301的高, When the time point t_0 is the exposure start time point, during the exposure process, the shaking angle y increases monotonously, at this time The size is the height of the rectangle 301,

当t_1或者t_2时间点为曝光起始时间点时,在曝光过程中,抖动角度y非单调函数,需要在每个单调区间内分别计算的取值并将整个曝光过程中抖动角度的累积变化量加和。When the t_1 or t_2 time point is the exposure start time point, during the exposure process, the jitter angle y is a non-monotonic function, which needs to be calculated separately in each monotone interval and sum the cumulative change of the shake angle during the whole exposure process.

具体的,当t_1时间点为曝光起始时间点时,镜头的抖动角度在t_3时间点达到最大值(抖动振幅),(t_3-t_2)<Δt。从t_1时间点到t_3时间点,镜头抖动角度的变化量大小为矩形302的高,从t_3时间点到曝光结束,镜头抖动角度的变化量大小也为矩形302的高。因此的大小为2倍的矩形302的高。Specifically, when the time point t_1 is the exposure start time point, the shake angle of the lens reaches the maximum value (shake amplitude) at the time point t_3, and (t_3-t_2)<Δt. From the time point t_1 to the time point t_3, the change amount of the lens shake angle is equal to the height of the rectangle 302 , and from the time point t_3 to the end of the exposure, the change amount of the lens shake angle is also equal to the height of the rectangle 302 . therefore The size of is twice 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 first reaches the maximum value during the exposure process, then decreases, and decreases to the same level as the t_2 time point at the t_4 time point, and further decreases until the end of the exposure .

镜头抖动角度在t_2时间点到t_4时间点的变化量,计算方式与计算曝光起始时间点为t_1时间点时的情况相同,此处不再赘述。The change amount of the lens shake angle from the time point t_2 to the time point t_4 is calculated in the same way as when the exposure start time point is the time point t_1, and will not be repeated here.

从t_4时间点到曝光结束,镜头抖动角度的变化量为矩形303的高。的大小为从t_2时间点到t_4时间点的变化量,与从t_4时间点到曝光结束时的变化量之和。From the time point t_4 to the end of the exposure, the change amount of the lens shake angle is the height of the rectangle 303 . The magnitude of is the sum of the variation from time t_2 to time t_4 and the variation from time t_4 to the end of exposure.

图4所示为模糊角达到最大的情况,当曝光时间大于或者等于抖动周期λ时,曝光过程中镜头抖动角度的轨迹可能两次扫过最大值,这种情况下的取值为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 jitter angle may sweep the maximum value twice during the exposure process. In this case The value of is 2A. The width of the rectangle 401 in FIG. 4 is greater than the shaking period λ, and the height is 2A.

<1.1>、模糊角函数<1.1>, fuzzy angle function

结合图3所示,在抖动波函数确定的情况下,当曝光时长不变时,曝光起始时间点如果不同,模糊角的大小不同。本发明的实施例通过模糊角函数来表示模糊角随抖动振幅、抖动周期、曝光起始时间点以及曝光时长的变化关系,即模糊角函数为关于上述4个物理量的多元函数。As shown in Figure 3, when the dithering wave function is determined, when the exposure time is constant, if the exposure start time point is different, the blur angle of different sizes. The embodiments of the present invention use the blur angle function to express the relationship between the blur angle and the shaking amplitude, shaking period, exposure start time point, and exposure duration, that is, the blur angle function is a multivariate function related to the above four physical quantities.

可选的,根据抖动振幅和抖动周期构建模糊角函数,以表示模糊角函数,为模糊角,t为曝光起始时间点,Δt为曝光时长。A和λ为照相设备当前获取抖动参数(抖动振幅和抖动周期),为常数,也就是说在抖动参数确定后,模糊角只与曝光起始时间点和曝光时长有关,因此模糊角函数也可以简写为 Optionally, a fuzzy angle function is constructed from the dither amplitude and dither period to represents the fuzzy angle function, is the blur angle, t is the exposure start time point, and Δt is the exposure time. A and λ are the shaking parameters (shaking amplitude and shaking period) currently obtained by the camera equipment, which are constants, that is to say, after the shaking parameters are determined, the blur angle is only related to the exposure start time point and the exposure duration, so the blur angle function can also be abbreviated as

<1.1.1>、模糊角函数的周期性<1.1.1>, periodicity of fuzzy angle function

抖动波函数y为关于曝光起始时间点t的周期函数,结合图5所示,t_5=t_0+λ,则y(t=t_5)=y(t=t_0)。当曝光时长一定时,以t_0时间点为曝光起始时间点时的模糊角,与以t_0+λ为曝光起始时间点时的模糊角相等。即矩形504的高,与矩形501的高相等,因此模糊角也是关于曝光起始时间点t的周期函数。The jitter wave function y is a periodic function about the exposure start time point t. As shown in FIG. 5 , t_5=t_0+λ, then y(t=t_5)=y(t=t_0). When the exposure time is constant, the blur angle when t_0 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, Therefore the blur angle It is also a periodic function about the exposure start time point t.

进一步地,模糊角用于衡量抖动角度的变化量,其取值恒为正,以t_0时间点为曝光起始时间点时的模糊角,与以t_0+λ/2为曝光起始时间点时的模糊角相等。结合图5所示,t_6=t_0+λ/2,矩形305的高,与矩形301的高相等,因此模糊角函数为关于t的以λ/2为周期的周期函数,其关于t的周期为抖动周期λ的一半。Furthermore, the blur angle It is used to measure the variation of the shaking angle, and its value is always positive. The blur angle when the exposure start time point is t_0 is equal to the blur angle when the exposure start time point is t_0+λ/2. 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, Therefore the blur angle function is a periodic function with a period of λ/2 with respect to t, and its period with respect to t is half of the jitter period λ.

<1.1.2>、模糊角函数的具体形式<1.1.2>, specific form of fuzzy angle function

由于模糊角函数为关于t的以λ/2为周期的周期函数,本发明的实施例取一个周期进行说明。具体的,以t∈[0,λ/2]区间的情况为例,对抖动波函数的具体表达形式进行说明:Since the blur angle function is a periodic function with respect to t with a period of λ/2, the embodiments of the present invention take one period for description. Specifically, taking the case of the interval t∈[0,λ/2] as an example, the specific expression form of the dithering wave function is explained:

<1.1.2.1>、时的模糊角函数 <1.1.2.1>, The fuzzy angle function when

结合图6所示,当时,曝光过程中镜头抖动角度的变化轨迹为矩形601的宽度范围内的部分。Combined with Figure 6, when , the change track of the lens shake angle during the exposure process is the part within the width range of the rectangle 601 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形602的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 602 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形603的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 603 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形604的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 604 .

<1.1.2.2>、时的模糊角函数 <1.1.2.2>, The fuzzy angle function when

结合图7所示,当时,曝光过程中镜头抖动角度的变化轨迹为矩形701的宽度范围内的部分。Combined with Figure 7, when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 701 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形702的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 702 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形703的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 703 .

<1.1.2.3>、时的模糊角函数 <1.1.2.3>, The fuzzy angle function when

结合图8所示,当时,曝光过程中镜头抖动角度的变化轨迹为矩形801的宽度范围内的部分。Combined with Figure 8, when , the change track of the lens shake angle during the exposure process is the part within the width range of the rectangle 801 .

时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下的取值为2A。when When , the locus of the lens shake angle sweeps the maximum value twice during the exposure process, in this case The value of is 2A.

时,曝光过程中镜头抖动角度的变化轨迹为矩形802的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is the part within the width range of the rectangle 802 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形803的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is the part within the width range of the rectangle 803 .

<1.1.2.4>、时的模糊角函数 <1.1.2.4>, The fuzzy angle function when

结合图9所示,当时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下的取值为2A。Combined with Figure 9, when When , the locus of the lens shake angle sweeps the maximum value twice during the exposure process, in this case The value of is 2A.

时,曝光过程中镜头抖动角度的变化轨迹为矩形901的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is a part within the width range of the rectangle 901 .

时,曝光过程中镜头抖动角度的变化轨迹为矩形902的宽度范围内的部分。when , the change track of the lens shake angle during the exposure process is the part within the width range of the rectangle 902 .

时,曝光过程中镜头抖动角度的轨迹两次扫过最大值,这种情况下的取值为2A。when When , the locus of the lens shake angle sweeps the maximum value twice during the exposure process, in this case The value of is 2A.

<1.1.2.5>、Δt∈(λ,+∞)时的模糊角函数 <1.1.2.5>, ambiguity angle function when Δt∈(λ, +∞)

结合图10所示,当时,曝光过程中镜头抖动角度的变化轨迹为矩形1001的宽度范围内的部分,矩形1001的宽度为无穷大,曝光过程中镜头抖动角度的变化轨迹可能多次扫过最大值,这种情况下的取值为2A。Combined with Figure 10, when When , the change trajectory of the lens shake angle during the exposure process is the part within the width of the rectangle 1001, and the width of the rectangle 1001 is infinite, and the change trajectory of the lens shake angle during the exposure process may sweep through the maximum value many times. In this case The value of is 2A.

<2>、理论模糊角<2>, theoretical blur angle

理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,也就是说,理论模糊角是假设没有抖动补偿功能的情况下,一定曝光时长所对应的模糊角的期望值,是通过计算得到的预测值。The theoretical blur angle is the expected value of the blur angle when the shake compensation function is turned off, that is to say, the theoretical blur angle is the expected value of the blur angle corresponding to a certain exposure time assuming that there is no shake compensation function, which is obtained by calculation Predictive value.

<2.1>理论模糊角函数<2.1> Theoretical fuzzy angle function

本发明的实施例通过理论模糊角函数来表示理论模糊角随抖动振幅、抖动周期、曝光起始时间点以及曝光时长的变化关系,即理论模糊角函数为关于上述4个物理量的多元函数。以ψ=g(t,Δt,A,λ)表示理论模糊角函数,ψ为理论模糊角。照相设备获取抖动参数后,抖动振幅A和抖动周期λ常数,也就是说在抖动参数确定后,理论模糊角只与曝光起始时间点和曝光时长有关,因此理论模糊角函数也可以简写为ψ=g(t,Δt)。The embodiments of the present invention use the theoretical blur angle function to represent the relationship between the theoretical blur angle and the shaking amplitude, shaking period, exposure start time point, and exposure duration, that is, the theoretical blur angle function is a multivariate function about 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 equipment obtains the shaking parameters, the shaking amplitude A and the shaking cycle λ constant, that is to say, after the shaking parameters are 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>,模糊角函数为关于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 blur angle function is a periodic function with respect to t with a period of λ/2, and the expected value of the blur angle can be the average value of the blur angle in one cycle.

当然,由于模糊角函数为周期函数,其在一个周期内的期望值与其在多个周期内的期望值相等。本发明的实施例以计算其两个周期内的期望值作为理论模糊角的情况为例进行说明。Of course, since the fuzzy 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 is described by taking the case of calculating the expected value in two periods as the theoretical blur angle as an example.

<2.1.1>、理论模糊角函数的具体形式<2.1.1>, the specific form of theoretical fuzzy angle function

可选的,本发明的实施例提供两种具体的计算方式,分别说明如下:Optionally, the embodiment of the present invention provides two specific calculation methods, which are described as follows:

<2.1.1.1>、理论模糊角函数的第一种形式:<2.1.1.1>, the first form of theoretical fuzzy angle function:

理论模糊角函数为模糊角函数在t∈[kλ,(k+1)λ]区间内的积分与积分区间长度λ的商,k为大于或者等于0的整数。积分区间长度λ为模糊角函数周期λ/2的2倍,因此理论模糊角为模糊角在两个周期内的期望值。The theoretical fuzzy 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 length of the integral interval λ is twice the period λ/2 of the fuzzy angle function, so the theoretical fuzzy angle is the expected value of the fuzzy angle within two cycles.

曝光时长Δt=Δt_i(i=1,...N),Δt_i为照相设备第i个曝光时长档位所对应的曝光时长,参照表一,曝光时长档位所对应的曝光时长为已知的常数值。Exposure time length Δt=Δt_i (i=1,...N), Δt_i is the exposure time length corresponding to the i-th exposure time length gear of the photographic equipment, referring to Table 1, the exposure time length corresponding to the exposure time length gear is known constant value.

N个曝光时长档位各自对应的理论模糊角,可以将N个曝光时长档位各自对应曝光时长Δt_i分别代入理论模糊角函数ψ=g(t,Δt)计算得到。The theoretical blur angles corresponding to each of the N exposure time length gears can be calculated by substituting the corresponding exposure time length Δt_i of each of the N exposure time length gears into the theoretical blur angle function ψ=g(t, Δt).

具体的,N个曝光时长档位各自对应的理论模糊角,通过第一公式计算得到,第一公式为:Specifically, the theoretical blur angles corresponding to each of the N exposure time gears are calculated by the first formula, and the first formula is:

其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,k=0。Wherein, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, and k=0.

<2.1.1.2>、理论模糊角函数的第二种形式:<2.1.1.2>, the second form of theoretical fuzzy angle function:

其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,P为大于1的整数。采样区间为[kλ,(k+1)λ),k为大于或者等于0的整数,Wherein, t_j (j=1, . . . P) is the P sampling values of the exposure start time point t within one dithering period, and P is an integer greater than 1. The sampling interval is [kλ, (k+1)λ), k is an integer greater than or equal to 0,

理论模糊角函数为模糊角函数在[kλ,(k+1)λ)区间内的P个采样值的均值。采样区间的长度λ为模糊角函数周期λ/2的2倍,因此理论模糊角为模糊角在两个周期内的期望值。The theoretical fuzzy angle function is the mean value of P sampling values of the fuzzy angle function in the interval [kλ, (k+1)λ). The length λ of the sampling interval is twice the period λ/2 of the fuzzy angle function, so the theoretical fuzzy angle is the expected value of the fuzzy angle within two cycles.

曝光时长Δt=Δt_i(i=1,...N),N个曝光时长档位各自对应的理论模糊角,可以将N个曝光时长档位各自对应曝光时长Δt_i分别代入理论模糊角函数ψ=g(t,Δt)计算得到。Exposure time length Δt=Δt_i (i=1,...N), the theoretical blur angle corresponding to each of N exposure time gears, the corresponding exposure time length Δt_i of N exposure time gears can be substituted into the theoretical blur angle function ψ= g(t, Δt) is calculated.

具体的,N个曝光时长档位各自对应的理论模糊角,通过第二公式计算得到,第二公式为:Specifically, the theoretical blur angles corresponding to each of the N exposure time gears are calculated by the second formula, and the second formula is:

<3>、理论模糊角集合<3>, theoretical fuzzy angle set

结合<2.1.1.1>中的第一公式,以及<2.1.1.2>中的第二公式,N个曝光时长档位中,每个曝光时长档位均对应一个理论模糊角。理论模糊角集合包括,在当前的抖动参数(抖动振幅A和抖动周期λ)下,N个曝光时长档位各自对应的理论模糊角。参照表二,理论模糊角集合包括ψ_i(i=1,...N)。Combining the first formula in <2.1.1.1> and the second formula in <2.1.1.2>, among the N exposure time levels, each exposure time level corresponds to a theoretical blur angle. The set of theoretical blur angles includes, under the current jitter parameters (jitter amplitude A and jitter period λ), theoretical blur angles corresponding to each of the N exposure time length gears. Referring to Table 2, the set of theoretical blur angles includes ψ_i (i=1, . . . N).

表二Table II

曝光时长档位Exposure time gear 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)Set of theoretical blur angles (ψ_i) ψ_1ψ_1 ψ_2ψ_2 ψ_3ψ_3 ψ_4ψ_4 ...... … ψ_Nψ_N

104、根据当前获取的抖动参数确定抑制比集合。104. Determine a set of suppression ratios according to the currently acquired jitter parameters.

<3>抑制比<3>Suppression ratio

抑制比用于指示照相设备对于抖动的抑制能力,在一定抖动参数下,照相设备对抖动的抑制能力越强,照片的清晰度越高。The suppression ratio is used to indicate the ability of the camera to suppress the shake. Under a certain shake parameter, the stronger the ability of the camera to suppress the shake, the higher the clarity of the photo.

可选的,本发明的实施例中通过理论模糊角和抑制模糊角的函数来表示抑制比,其中抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。具体的,抑制比关于理论模糊角和抑制模糊角的函数具体为:Optionally, in the embodiments of the present invention, the suppression ratio is represented by a function of a theoretical blur angle and a suppressed blur angle, where the suppressed blur angle is an expected value of the blur angle when the shake compensation function is turned on. Specifically, the function of the suppression ratio with respect to the theoretical ambiguity angle and the suppression ambiguity angle is specifically:

其中,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 suppressed blur angle. The larger the suppression ratio, the stronger the camera equipment's ability to suppress shaking.

抑制比反映了照相设备的防抖属性,可以根据理论模糊角的实验值和抑制模糊角的实验值计算所得实验。以下对测量获取理论模糊角的实验值和抑制模糊角的实验值的过程分别进行说明The suppression ratio reflects the anti-shake property of the photographic equipment, and can be calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle. The following describes the process of measuring and obtaining the experimental value of the theoretical blur angle and the experimental value of the suppressed blur angle

<3.1>测量获取理论模糊角ψ的实验值<3.1> Measure and obtain the experimental value of the theoretical blur angle ψ

将照相设备固定在抖动台上,抖动台提供一定的抖动振幅和抖动周期。根据抖动振幅和抖动周期计算确定不同曝光时长各自对应的理论模糊角ψ。计算过程见步骤103,此处不再赘述。The photographic equipment is fixed on the shaking table, and the shaking table provides certain shaking amplitude and shaking period. Theoretical blur angles ψ corresponding to different exposure durations are calculated and determined according to the shaking amplitude and shaking period. See step 103 for the calculation process, which will not be repeated here.

另外,结合步骤103,在相同抖动周期下,模糊角以及理论模糊角的大小,与抖动振幅成正比。表示如下:In addition, in conjunction with step 103, under the same shaking period, the size of the blur angle and the theoretical blur angle are directly proportional to the shaking amplitude. 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 performing step 103 to calculate the theoretical blur angle, the theoretical blur angle g(t, Δt, A=1, λ) when A=1 can be calculated first, and then the theoretical blur angle when A=X is Xg( t, Δt, A=1, λ). In addition, when measuring the theoretical blur angle experimentally, the shaking amplitude of the shaking table only needs to be set to 1°, and the theoretical blur angle when the shaking amplitude is other values can be calculated according to g(t, Δt, A=X, λ)= Xg(t, Δt, A=1, λ) is calculated. For example, when the jitter amplitude is 1°, the experimental value of the theoretical blur angle ψ is measured as shown in Table 3:

表三Table three

结合表三,抖动周期为1/8秒,曝光时长为1/16秒时,对应的理论模糊角的实验值为1.41°。在抖动振幅为2°的情况下,抖动周期为1/8秒、曝光时长为1/16秒时,对应的理论模糊角的实验值为1.41°乘以2。本实施的后续内容均以抖动振幅为1°的情况为例进行说明。Combined with Table 3, when the dithering 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°. When the shaking amplitude is 2°, the shaking 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° multiplied by 2. Subsequent content of this implementation is described by taking the case where the dithering amplitude is 1° as an example.

<3.2>测量获取抑制模糊角ψ_ON的实验值<3.2> Measure and obtain the experimental value of suppression blur angle ψ_ON

抑制模糊角可以通过模糊量计算得到,计算模糊量的方法在相机与影像产品协会(英文全称:Camera & Imaging Products Association,英文简称:CIPA)标准已有规定,不再赘述,此处只说明在模糊量的基础上计算模糊角的过程。The blur suppression angle can be obtained by calculating the blur amount. The method of calculating the blur amount has been stipulated in the Camera & Imaging Products Association (English abbreviation: CIPA) standard, so I won’t go into details here. The process of calculating the blur angle based on the blur amount.

结合图11,O为被拍摄物体,O点的位置与照相设备的镜头1101之间的距离为物距,物距用U表示。Referring to FIG. 11 , O is the object to be photographed, and the distance between the position of point O and the lens 1101 of the photographing device is the object distance, and the object distance is denoted 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 denoted by V, and the focal length of the lens 1101 is denoted by F.

模糊距离为在照相设备抖动补偿功能开启的情况下,根据模糊量计算所得的模糊范围的长度值,模糊距离用M表示。模糊量通常用像素数量表示,模糊距离为模糊量和像素直径之积,可以认为模糊距离为模糊量范围的直径。The blur distance is the length value of the blur range calculated according to the blur amount when the camera shake compensation function is turned on, and the blur distance is denoted by M. The amount of blur is usually represented by the number of pixels, and the blur distance is the product of the blur amount and the pixel diameter. It can be considered that the blur distance is the diameter of the range of the blur amount.

模糊量范围的直径的两个端点,与镜头1101焦点的连线之间的夹角1103,为抑制模糊角ψ_ON,其大小为:The included angle 1103 between the two end points of the diameter of the range of the blur amount and the line connecting the focal point of the lens 1101 is the suppression blur angle ψ_ON, and its size is:

根据凸透镜成像公式: According to the convex lens imaging formula:

将像距V用关于焦距F和物距U的代数式替换,得到抑制模糊角ψ_ON的最终计算公式:The image distance V is replaced by the algebraic formula about the focal length F and the object distance U, and the final calculation formula of the suppression blur angle ψ_ON is obtained:

在不同抖动周期和抖动振幅下,得到对应的模糊量之后,根据抑制模糊角ψ_ON的最终计算公式,计算得到抑制模糊角ψ_ON的实验值。例如,在抖动振幅为1°时测得如表四所示的抑制模糊角ψ的实验值:Under different jitter periods and jitter amplitudes, after obtaining the corresponding amount of blur, according to the final calculation formula of the suppressed blur angle ψ_ON, the experimental value of the suppressed blur angle ψ_ON is calculated. For example, when the jitter amplitude is 1°, the experimental value of the suppression blur angle ψ is measured as shown in Table 4:

表四Table four

进一步地,可以多次测量得到多组实验值,并对多组实验值求平均得到最终的抑制模糊角ψ的实验值。Further, multiple sets of experimental values can be obtained through multiple measurements, and the final experimental value of the blur suppression angle ψ can be 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 each of the N exposure time long gears under different dithering parameters. The value of the suppression ratio in the suppression ratio list is calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the function of the suppression ratio on the theoretical blur angle and the suppression blur angle.

将表三中的理论模糊角的实验值,以及表四中的抑制模糊角的实验值,代入抑制比关于理论模糊角和抑制模糊角的函数计算得到抖动振幅为1°时抑制比的取值,抑制比列表所包括的数据如表五所示:Substitute the experimental value of the theoretical blur angle in Table 3 and the experimental value of the suppressed blur angle in Table 4 into the function of the suppression ratio with respect to the theoretical blur angle and the suppressed blur angle Calculate the value of the suppression ratio when the jitter amplitude is 1°, and the data included in the suppression ratio list are shown in Table 5:

表五Table five

得到抑制比列表之后,将抑制比列表输入照相设备,照相设备保存抑制比列表,这样照相设备在照相过程中就可以适用抑制比列表。抑制比列表可以在照相设备出厂之前输入,或者也可以在出厂之后通过软件更新的方式输入。After obtaining the suppression ratio list, input the suppression ratio list into the camera device, and the camera device saves the suppression ratio list, so that the camera device can apply the suppression ratio list during the photographing process. The suppression ratio list may be input before the camera is shipped, or it may be input by software update after the camera is shipped.

需要指出的是,照相设备实际存储抑制比列表的形式可以有多种,即照相设备可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be pointed out that the camera device can actually store the suppression ratio list in various forms, 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. The embodiment of the present invention does not limit the 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 set of suppression ratios includes the suppression ratios corresponding to each of the N exposure time levels under the currently acquired jitter parameters. DB_i (i=1, . . . N) in Table 6 represents N suppression ratios corresponding to N exposure time long gears.

表六Table six

曝光时长档位Exposure time gear 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, during the photographing process, the photographing device determines that the current shaking amplitude is 1° and the shaking period is 1/8 second after acquiring the shaking parameters. Combined with Table 5, the photographic equipment queries the suppression ratio list, and determines that the suppression ratio corresponding to the exposure time range of 1/16 second is 18.7, and the suppression ratio corresponding to the exposure time range of 1/32 second is 15.89.

步骤104与步骤103没有先后顺序。即照相设备获取抖动参数之后,可以先预测理论模糊角集合后确定抑制比集合,也可以先确定抑制比集合后预测理论模糊角集合,或者也可以两个步骤同时执行。There is no sequence between step 104 and step 103 . That is, after the camera device obtains the shaking parameters, it may first predict the set of theoretical blur angles and then determine the set of suppression ratios, or determine the set of suppression ratios first and then predict the set of theoretical blur angles, or both steps may be performed simultaneously.

105、预测抑制模糊角集合。105. Predicting and suppressing a set of fuzzy angles.

结合表七所示,抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。表七中的ψ_ON_i(i=1,...N)表示N个曝光时长档位所对应的N个抑制模糊角。As shown in Table 7, the set of suppressed blur angles includes the suppressed blur angles corresponding to each of the N exposure time levels under the currently obtained shake parameters. ψ_ON_i (i=1, . . . N) in Table 7 represents N blur suppression angles corresponding to N exposure time long gears.

表七Table Seven

结合<3.2>,在实验测试阶段,模糊角ψ_ON的实验值为实验所得的实测值。此处抑制模糊角集合中抑制模糊角ψ_ON_i(i=1,...N)的具体取值,是根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,计算所得的预测值。Combined with <3.2>, in the experimental testing stage, the experimental value of the blur angle ψ_ON is the measured value obtained from the experiment. Here, the specific value of the suppression fuzzy angle ψ_ON_i (i=1,...N) in the suppression fuzzy angle set is based on the theoretical fuzzy angle set and the suppression ratio set, according to the function of the theoretical fuzzy angle and the suppression fuzzy angle according to the suppression ratio , to calculate the resulting predicted value.

结合表二所示的理论模糊角集合,以及表六所示的抑制比集合,根据抑制比关于理论模糊角和抑制模糊角的函数:ψ_ON_i可以根据ψ_i以及DB_i,通过上述函数关系式反推得到。Combined with the set of theoretical blur angles shown in Table 2 and the set of suppression ratios shown in Table 6, according to the function of the suppression ratio on the theoretical blur angle and the suppression blur angle: ψ_ON_i can be inversely obtained through the above functional relationship according to ψ_i and DB_i.

也就是说,在实验阶段,在一定抖动参数下,根据实测得到的理论模糊角ψ的实验值,和抑制模糊角ψ_ON的实验值,根据正向计算确定抑制比DB,最终得到抑制比列表。简略表示为(ψ,ψ_ON)==>DB。That is to say, in the experimental stage, under a certain jitter parameter, according to the experimental value of the theoretical blur angle ψ obtained by actual measurement, and the experimental value of the suppression blur angle ψ_ON, according to Forward calculation determines the suppression ratio DB, and finally obtains the suppression ratio list. It is briefly expressed as (ψ, ψ_ON)==>DB.

在实际的照相过程中,在获取抖动参数后,根据当前获取的抖动参数预测理论模糊角集合ψ_i,根据当前获取的抖动参数确定抑制比集合DB_i,然后根据反推得到ψ_ON_i。简略表示为(ψ,DB)==>ψ_ON。In the actual photographing process, after the shake parameters are obtained, the theoretical blur angle set ψ_i is predicted according to the currently obtained shake parameters, the suppression ratio set DB_i is determined according to the currently obtained shake parameters, and then according to Reverse deduction to get ψ_ON_i. It is briefly expressed as (ψ, DB)==>ψ_ON.

106、获取容许模糊角ψ_max106. Obtain the allowable blur angle ψ_max

容许模糊角ψ_max用于指示可接受的最大抑制模糊角,可以是一个预设的值,也可以是照相设备在照相过程中实际计算得到的值。此处对容许模糊角ψ_max的具体计算过程进行说明:The allowable blur angle ψ_max is used to indicate an acceptable maximum suppressed blur angle, and may be a preset value, or a value actually calculated by the photographing device 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 between two object points that can be distinguished by the human 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 line connecting the object point W1 and the object point W2 to the eyeball is the minimum resolvable angle α of the human eye. 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, usually 1/60°.

根据人眼最小可分辨角α,可以计算出在观看距离一定的情况下,人眼在观察图片时最小能察觉到的模糊范围的直径a。具体的,结合图13所示,当观看距离为s时,有:According to the minimum resolvable angle α of the human eye, the diameter a of the minimum blur range that the human eye can perceive when observing a picture can be calculated at a certain viewing distance. Specifically, as shown in Figure 13, when the viewing distance is s, there are:

其中观看距离可以为预设值,也可以由用户进行手动选择。例如,如果照相设备具体为手机时,可以预设观看距离为30厘米。或者为用户提供几个观看距离的档位,由有用进行选择。The viewing distance may be a preset value, or may be manually selected by the user. For example, if the camera device is specifically a mobile phone, the preset viewing distance may be 30 centimeters. Or provide users with several viewing distance gears, which can be selected by the user.

结合图11所示感光元件1102上模糊距离M,在照片上人眼能察觉到的模糊范围的直径a,对应感光元件1102上容许的最大模糊距离b。以d表示感光元件长边的长度,以c表示照片长边的长度,则得到:Combining with the blur distance M on the photosensitive element 1102 shown in FIG. 11 , the diameter a of the blur range that the human eye can perceive in the photo corresponds to the maximum allowable blur distance b on the photosensitive element 1102 . Use d to represent the length of the long side of the photosensitive element, and c to represent the length of the long side of the photo, then get:

在容许的最大模糊距离b确定的情况下,可以进一步计算得到容许模糊角。当被拍摄物体O在感光元件1102上的成像位置不同时,容许模糊角ψ_max的计算方式不同,以下针对不同成像位置分别进行说明。When the allowable maximum blur distance b is determined, the allowable blur angle can be obtained by further calculation. When the imaging position of the object O on the photosensitive element 1102 is different, the calculation method of the allowable blur angle ψ_max is different, and the following description will be given for different imaging positions.

<4.1>、成像在感光元件中心位置时ψ_max的计算<4.1>, the calculation of ψ_max when the imaging is at the center of the photosensitive element

结合图14所示,当被拍摄物体O在感光元件1102上的成像位置在感光元件1102的中心位置时,有:As shown in FIG. 14, when the imaging position of the object O on the photosensitive element 1102 is at the center of the photosensitive element 1102, there are:

根据方程1、方程2以及方程3.1,得到:According to Equation 1, Equation 2, and Equation 3.1, we get:

进一步,根据得到:Further, according to get:

<4.2>、成像在感光元件边缘位置时ψ_max的计算<4.2>, the calculation of ψ_max when imaging at the edge of the photosensitive element

结合图15所示,当被拍摄物体O在感光元件1102上的成像位置在感光元件1102的边缘位置时,有:As shown in FIG. 15, when the imaging position of the object O on the photosensitive element 1102 is at the edge of the photosensitive element 1102, there are:

根据方程1、方程2以及方程3.2,得到:According to Equation 1, Equation 2, and Equation 3.2, we get:

进一步,根据得到:Further, according to get:

<4.3>、成像在感光元件其它位置时ψ_max的计算<4.3>, the calculation of ψ_max when imaging at other positions of the photosensitive element

当被拍摄物体O在感光元件1102上的成像位置,在感光元件1102的中心位置和边缘位置之间时,计算方式与<4.2>中说明的成像在边缘位置时的计算方式类似,不再赘述。When the imaging position of the object O on the photosensitive element 1102 is between the center position and the edge position of the photosensitive element 1102, the calculation method is similar to the calculation method described in <4.2> when the image is at the edge position, and will not be repeated here. .

照相设备实际拍摄得到的照片,实测的抑制模糊角大于容许模糊角ψ_max,表示用户肉眼观察可以观察到照片(局部)不清晰。如果实测的抑制模糊角不大于容许模糊角ψ_max,表示照片的清晰度在人眼观察时的可接受范围内。In the photos actually taken by the camera equipment, the measured blur suppression angle is greater than the allowable blur angle ψ_max, which means that the user can observe (partial) blur in the photos with naked eyes. If the measured blur suppression angle is not greater than the allowable blur angle ψ_max, it means that the sharpness of the photo is within the acceptable range when observed by human eyes.

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 from 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型。As shown in FIG. 16 , under a certain jitter parameter, the experimental value of the blur suppression angle ψ_ON varies with the exposure time Δt. In FIG. 16 , Δt_a to Δt_i increase sequentially. When the exposure time Δt increases, the blur suppression angle ψ_ON first decreases and then increases, and the change trend is U-shaped.

目标抑制模糊角ψ_opt小于或者接近容许模糊角ψ_max。以下介绍确定目标抑制模糊角ψ_opt的两种具体方式。The target suppression blur angle ψ_opt is smaller than or close to the allowable blur angle ψ_max. Two specific ways of determining the target suppression blur angle ψ_opt are introduced below.

<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 set of suppressed blur angles ψ_ON_i (i=1,...N), when at least one of the suppressed blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle ψ_max, it is never greater than the allowable blur angle ψ_max Choose one of the suppressed blur angles as the target suppressed blur angle ψ_opt.

结合图17所示,抑制模糊角集合ψ_ON_i(i=1,...N)中,Δt_c到Δt_g所对应的抑制模糊角ψ_ON均不大于容许模糊角ψ_max,这种情况下,Δt_c到Δt_g其中任一曝光时长所对应的抑制模糊角ψ_ON均可作为目标抑制模糊角ψ_opt。As shown in Figure 17, in the suppression blur angle set ψ_ON_i (i=1,...N), the suppression blur angles ψ_ON corresponding to Δt_c to Δt_g are not greater than the allowable blur angle ψ_max, in this case, Δt_c to Δt_g where The blur suppression angle ψ_ON corresponding to any exposure duration can be used as the target blur suppression angle ψ_opt.

优选的,考虑到曝光量对照片质量的影响,在保证照片清晰度的前提下,尽量延长曝光时间以提高曝光量。抑制模糊角集合ψ_ON_i(i=1,...N)中,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角ψ_ON为目标抑制模糊角。Preferably, considering the influence of the exposure amount on the photo quality, the exposure time should be extended as much as possible to increase the exposure amount under the premise of ensuring the clarity of the photo. In the set of blur suppression angles ψ_ON_i (i=1,...N), when at least one of the corresponding blur suppression angles of the N exposure time long gears is not greater than the allowable blur angle, the blur suppression that is never larger than the allowable blur angle Among the angles, the blur suppression angle ψ_ON corresponding to the longest exposure time is selected as the target blur suppression angle.

结合图17中箭头所指示,Δt_c到Δt_g中Δt_g对应的曝光时长最大,这种情况下选择Δt_g对应的对应的抑制模糊角ψ_ON为目标抑制模糊角。As indicated by the arrow in FIG. 17 , the exposure duration corresponding to Δt_g among Δt_c to Δt_g is the largest. In this case, the corresponding blur suppression angle ψ_ON corresponding to Δt_g is selected as the target blur suppression 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 blur suppression angle set ψ_ON_i (i=1,...N), when the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle ψ_max, the blur suppression corresponding to each of the N exposure time long gears Select the smallest suppression blur angle among the angles as 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 suppressed blur angles corresponding to Δt_a to Δt_i are all larger than the allowable blur angle ψ_max, and the suppressed blur angles corresponding to Δt_d are the smallest, that is, the closest to the 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 gear.

目标曝光时长档位为目标抑制模糊角ψ_opt所对应的曝光时档位。The target exposure time gear is the exposure time gear corresponding to the target blur suppression angle ψ_opt.

结合图17所示,目标抑制模糊角ψ_opt为Δt_g对应的对应的抑制模糊角ψ_ON,那么目标曝光时长档位为Δt_g所对应的曝光时长档位。As shown in FIG. 17 , the target blur suppression angle ψ_opt is the corresponding suppression blur angle ψ_ON corresponding to Δt_g, then the target exposure time scale is the exposure time scale corresponding to Δt_g.

结合图18所示,目标抑制模糊角ψ_opt为Δt_d对应的对应的抑制模糊角ψ_ON,那么目标曝光时长档位为Δt_d所对应的曝光时长档位。As shown in FIG. 18 , the target blur suppression angle ψ_opt is the corresponding suppression blur angle ψ_ON corresponding to Δt_d, then the target exposure time scale is the exposure time scale corresponding to Δt_d.

109、确定曝光起始时间点,并于确定的曝光时间点启动曝光过程。109. Determine an exposure start time point, and start an exposure process at the determined exposure time point.

经过步骤108完成曝光时长档位设定。步骤109为曝光时长档位设定后的后续步骤,是应用设定的曝光时长档位完成照相过程的步骤。After step 108, the exposure duration gear setting is completed. Step 109 is a subsequent step after the exposure time gear is set, and is a step of completing the photographing process by applying the set exposure time gear.

结合<1.1>中对模糊角函数的说明,在曝光时长Δt、抖动振幅A和抖动周期λ确定的情况下,当模糊角函数的取值可能不同,因此合理选定曝光起始时间点t,有助于减小模糊角,获得清晰度高的照片。Combining <1.1> with the fuzzy angle function Explanation of , when the exposure time Δt, the shaking amplitude A and the shaking period λ are determined, when the blur angle function The value of may be different, so a reasonable selection of the exposure start time point t will help reduce the blur angle and obtain a high-definition photo.

另外,结合<1.1.1>到<1.1.2>,模糊角函数为关于t的以λ/2为周期的周期函数,在一个周期内有最小值和最大值。Also, combining <1.1.1> to <1.1.2>, the blur angle function is a periodic function with respect to t with a period of λ/2, and has minimum and maximum values in a period.

结合图19所示,t0时刻,照相设备根据实际抖动情况获取抖动振幅A和抖动周期λ,并确定模糊角函数 As shown in Figure 19, at time t0, the photographic device obtains the shake amplitude A and shake period λ according to the actual shake situation, and determines the blur angle function

t1时刻,照相设备设定曝光时长Δt,此处以Δt_0表示目标曝光时长档位所对应的曝光时长,即Δt=Δt_0。也就是说,在t1时刻,抖动振幅A、抖动周期λ以及曝光时长Δt的取值均为已知,只需进一步确定曝光起始时间点t即可。At time t1, the camera equipment sets the exposure time Δt, where Δt_0 represents the exposure time corresponding to the target exposure time gear, ie Δt=Δt_0. That is to say, at the time t1, the values of the shaking amplitude A, the shaking period λ, and the exposure duration Δt are all known, and it is only necessary to further determine the exposure start time point t.

照相设备根据模糊角函数以及确定的Δt、A和λ的取值,确定模糊角函数在t=t_0+k(λ/2)处有最小值,其中,t_0大于t1。也就是说,模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,因此照相设备可以在t=t_0+k(λ/2)时刻启动曝光过程,按照设定的曝光时长档位曝光,获得最佳的拍摄效果。Camera equipment according to blur angle function As well as the determined values of Δt, A and λ, determine the fuzzy angle function There is a minimum at t=t_0+k(λ/2), where t_0 is greater than t1. That is, the blur angle function There is a minimum value at (t=t_0, Δt=Δt_0, A, λ), so the photographic equipment can start the exposure process at the moment t=t_0+k(λ/2), and expose according to the set exposure time and long gear, and obtain Best shot.

<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 the time when the camera equipment obtains the shake parameters.

例如,照相设备在0时刻(图19中的原点位置)开始采样抖动参数,并对采样得到的信号进行处理,包括傅里叶变换带通滤波等。t0的取值为,以采样抖动参数的起始时间点为起始时间点,加上信号传输、信号处理所造成的时延之和。For example, the camera starts to sample the dithering parameters at time 0 (the origin position in FIG. 19 ), and processes the sampled signal, including Fourier transform bandpass filtering and the like. The value of t0 is the sum of the time delay caused by signal transmission and signal processing, taking the start time point of sampling the jitter parameter as the start time point.

<6.2>、t1的取值<6.2>, the value of t1

t1的取值取决于照相设备设定曝光时长的时间。The value of t1 depends on the exposure time set by the photographic equipment.

例如,照相设备获取抖动参数之后,根据抖动参数进行一系列计算确定目标抑制模糊角ψ_opt,最终设定目标曝光时长档位所需花费的时间,加上t0得到t1的取值。For example, after the camera device obtains the shake parameters, it performs a series of calculations based on the shake parameters to determine the target blur suppression angle ψ_opt, and finally sets the time required for the target exposure time long gear, and adds t0 to obtain the value of t1.

当然,照相设备有可还需要做其它信号处理或者数据计算以完成其它功能,只需要将这些时间开销加和即可确定t1的取值。Of course, the camera device may also need to do other signal processing or data calculation to complete other functions, and the value of t1 can be determined only by summing up these time costs.

<6.3>、t_0的取值<6.3>, the value of t_0

t_0的取值取决于模糊角函数本身的性质。The value of t_0 depends on the blur angle function the nature of itself.

模糊角函数在每个周期都会经过其最小值点。照相设备设定目标曝光时长档位之后,只要模糊角函数达到最小值的点,都可以作为t_0时间点。优选的,在设定目标曝光时长档位之后,以模糊角函数第一次达到最小值的时间点作为t_0时间点。blur angle function It passes through its minimum point every cycle. After the camera equipment has set the target exposure time gear, 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 gear, the blur angle function The time point when the minimum value is reached for the first time is taken as the t_0 time point.

本发明的实施例所提供的设定曝光时长的方法,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。In the method for setting the exposure time provided by the embodiments of the present invention, 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 selected from the suppression blur angle set according to the allowable blur angle The target suppression blur angle, set the exposure time as the exposure time corresponding to the target suppression blur angle, so as to set the most appropriate exposure time gear according to the actual shaking of the camera equipment during the shooting process, so as to improve the clarity of the photo. Further, the exposure start time point is selected so 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 photo.

需要说明的是,对于图1所对应的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。It should be noted that, for the method embodiment corresponding to Fig. 1, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. limitations because certain steps may be performed in other orders or simultaneously in accordance with the invention.

另外,本领域技术人员也应该知悉,说明书中所描述的实施例属于优选实施例,所涉以及的动作并不一定是本发明所必须的,例如获取用户的拍照指令的步骤,可以是由用户触发获取,也可以是通过软件设定的某种触发条件满足时,开始执行照相过程。本实施例中所描述的照相过程应当视为一个举例,而非穷举。In addition, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily necessary for the present invention. The trigger acquisition can also be when a certain trigger condition set by the software is met, and the photographing process is started. The photographing process described in this embodiment should be regarded as an example rather than exhaustive.

基于本发明的实施例所提供的设定曝光时长的方法,本发明的实施例还提供一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位。设定曝光时长的装置可以安装于照相设备内,或者也可以通过通信线路、或者通信网络与照相设备连接。照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。Based on the method for setting the exposure time provided by the embodiment of the present invention, the embodiment of the present invention also provides a device for setting the exposure time, which is used for setting the target exposure time gear of the photographic equipment. The device for setting the exposure time can be installed in the photographic equipment, or can also be connected with the photographic equipment through a communication line or a communication network. The photographic device provides N exposure time gears, one exposure time gear corresponds to one exposure time, where N is an integer greater than 1.

参照图20所示,设定曝光时长的装置20包括:Referring to Figure 20, the device 20 for setting the exposure time includes:

获取单元201,用于获取抖动参数,抖动参数用于指示照相设备在照相过程中的抖动状态。The acquisition unit 201 is configured to acquire a shake parameter, which is used to indicate the shake state of the photographing device during the photographing process.

处理单元202,用于根据获取单元201当前获取的抖动参数预测理论模糊角集合。理论模糊角集合包括N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量。The processing unit 202 is configured to predict a set of theoretical blur angles according to the shaking parameters 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 gears. The theoretical blur angle is the expected value of the blur angle when the shake compensation function is turned off. The blur angle is the cumulative change of the lens shake angle during the exposure process. .

处理单元202,还用于根据获取单元201当前获取的抖动参数确定抑制比集合。抑制比集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。The processing unit 202 is further configured to determine a set of suppression ratios according to the jitter parameters currently acquired by the acquiring unit 201 . The suppression ratio set includes the suppression ratios corresponding to each of the N exposure time gears under the currently obtained shake parameters. The suppression ratio is a function of the theoretical blur angle and the suppressed blur angle. The suppressed blur angle is when the shake compensation function is turned on. The expected value of the blur angle.

处理单元202,还用于根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合。抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。The processing unit 202 is further configured to predict the set of suppression blur angles according to the set of theoretical blur angles and the set of suppression ratios, according to the function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle. The set of suppressed blur angles includes the suppressed blur angles corresponding to each of the N exposure time length gears under the currently acquired jitter parameters.

获取单元201,还用于获取容许模糊角。The acquiring unit 201 is further configured to acquire an allowable blur angle.

处理单元202,还用于根据获取单元201获取的容许模糊角从抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角。容许模糊角用于指示可接受的最大抑制模糊角。The processing unit 202 is further configured to select one of the suppressed blur angles from the set of suppressed blur angles as the target suppressed blur angle according to the allowable blur angle obtained by the obtaining unit 201 . Allowable Blur Angle is used to indicate the maximum acceptable suppressed blur angle.

设置单元203,还用于根据处理单元202确定的目标抑制模糊角设定目标曝光时长档位,目标曝光时长档位为目标抑制模糊角所对应的曝光时长档位。The setting unit 203 is further configured to set the target exposure time gear according to the target blur suppression angle determined by the processing unit 202, and the target exposure time gear is the exposure time gear corresponding to the target blur suppression angle.

可选的,获取单元201,还用于获取抑制比列表。抑制比列表包括在不同抖动参数下,N个曝光时长档位各自对应的抑制比。抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得。Optionally, the acquiring unit 201 is also configured to acquire a suppression ratio list. The suppression ratio list includes the suppression ratios corresponding to each of the N exposure time long gears under different dithering parameters. The value of the suppression ratio in the suppression ratio list is calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the function of the suppression ratio on the theoretical blur angle and the suppression blur angle.

处理单元202,还用于根据抖动参数查询获取单元201所获取的抑制比列表,确定在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,得到抑制比集合。The processing unit 202 is further configured to query the suppression ratio list acquired by the acquisition unit 201 according to the shaking parameters, determine the suppression ratios corresponding to each of the N exposure time length gears under the currently obtained shaking parameters, and obtain a suppression ratio set.

例如,在一种具体的实施方式中,抑制比列表在设定曝光时长的装置20在出厂之前输入并保存,或者也可以在出厂之后通过软件更新的方式输入并保存。在拍照过程中,处理单元202通过查询保存的抑制比列表,得到抑制比集合。For example, in a specific implementation manner, the device 20 that suppresses the set exposure time longer than the list is input and saved before leaving the factory, or may also be input and saved through software update after leaving the factory. During the photographing process, the processing unit 202 obtains a set of suppression ratios by querying the stored suppression ratio list.

需要指出的是,设定曝光时长的装置20实际存储抑制比列表的形式可以有多种,即设定曝光时长的装置20可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be pointed out that the device 20 for setting the exposure time length can actually store the suppression ratio list in various forms, that is, the device 20 for setting the exposure time length can use various data structures to store the data in the suppression ratio list, not just Stored in the form of a table. The embodiment of the present invention does not limit the specific data storage structure.

可选的,获取单元201,具体用于获取照相设备在照相过程中的抖动振幅和抖动周期。Optionally, the acquiring unit 201 is specifically configured to acquire the shaking amplitude and shaking period of the photographing device during the photographing process.

可选的,处理单元202,具体用于根据抖动振幅和抖动周期构建模糊角函数 Optionally, the processing unit 202 is specifically configured to construct a blur angle function according to the jitter amplitude and the jitter period

其中,为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期。根据模糊角函数计算N个曝光时长档位各自对应的理论模糊角,得到理论模糊角集合。in, is the blur angle, t is the exposure start time point, Δt is the exposure time, A is the shaking amplitude, and λ is the shaking period. According to the blur angle function, the theoretical blur angles corresponding to each of the N exposure time length gears are calculated to obtain a set of theoretical blur angles.

可选的,处理单元202,进一步用于根据第一公式计算N个曝光时长档位各自对应的理论模糊角,第一公式为:Optionally, the processing unit 202 is further configured to calculate theoretical blur angles corresponding to each of the N exposure time length gears according to the first formula, and the first formula is:

其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,...N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期。Wherein, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, i=1,...N, Δt_i is the exposure time corresponding to the i-th exposure time gear, and λ is the jitter cycle.

或者,处理单元202,进一步用于根据第二公式计算N个曝光时长档位各自对应的理论模糊角,第二公式为:Alternatively, the processing unit 202 is further configured to calculate theoretical blur angles corresponding to each of the N exposure time length gears according to a second formula, and the second formula is:

其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Wherein, t_j (j=1, . . . P) is P sampling values of the exposure start time point t within one dithering 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 a suppressed blur angle that is smaller than or close to the allowable blur angle from the set of suppressed blur angles as the target suppressed blur angle.

可选的,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,处理单元202,进一步用于从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角。Optionally, when at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processing unit 202 is further configured to select the corresponding exposure duration from the suppression blur angles not greater than the allowable blur angle The longest suppression blur angle is the target suppression blur angle.

当N个曝光时长档位各自对应的抑制模糊角均大于容许模糊角时,处理单元202,进一步用于从N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the suppression blur angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processing unit 202 is further configured to select the smallest suppression blur angle from the respective suppression blur angles corresponding to the N exposure time long gears as the target suppression Blurred corners.

可选的,处理单元202,具体用于按照以下模糊角的函数预测抑制模糊角集合:Optionally, the processing unit 202 is specifically configured to predict and suppress a blur angle set according to the following function of the blur angle:

其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle.

可选的,获取单元201,还用于获取用户的拍照指令。Optionally, the acquiring unit 201 is also configured to acquire a user's photographing instruction.

处理单元202,还用于在设定目标曝光时长档位之后,根据接收到拍照指令的时间点,以及模糊角函数确定曝光起始时间点t的取值t_0。模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为目标曝光时长档位所对应的曝光时长。The processing unit 202 is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t. blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear.

本领域技术人员应明白,本发明的实施例所描述的设定曝光时长的装置,可采用完全硬件实施例、完全软件实施例、或者也可以结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或者多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、半导体存储器、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或者作为硬件的一部分,也可以采用其他分布形式,如通过Internet或者其它有线或者无线电信系统。Those skilled in the art should understand that the device for setting the exposure time described in the embodiments of the present invention can be in the form of a complete hardware embodiment, a complete software embodiment, or a combination of software and hardware. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, semiconductor storage, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed on suitable media, provided with or as part of other hardware, and may also take other forms of distribution, such as via the Internet or other wired or wireless telecommunication systems.

本发明的实施例所提供的设定曝光时长的装置,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。The device for setting the exposure time provided by the embodiment of the present invention obtains the theoretical blur angle set according to the prediction of the shaking parameters, and then obtains the suppression blur angle set according to the prediction of the suppression ratio set, and selects from the suppression blur angle set according to the allowable blur angle. The target suppression blur angle, set the exposure time as the exposure time corresponding to the target suppression blur angle, so as to set the most appropriate exposure time gear according to the actual shaking of the camera equipment during the shooting process, so as to improve the clarity of the photo. Further, the exposure start time point is selected so 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 photo.

基于本发明的实施例所提供的设定曝光时长的方法,本发明的实施例还提供另一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位。设定曝光时长的装置可以安装于照相设备内,或者也可以通过通信线路、或者通信网络与照相设备连接。照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。Based on the method for setting the exposure time provided by the embodiment of the present invention, the embodiment of the present invention also provides another device for setting the exposure time, which is used for setting the target exposure time gear of the photographic equipment. The device for setting the exposure time can be installed in the photographic equipment, or can also be connected with the photographic equipment through a communication line or a communication network. The photographic device provides N exposure time gears, one exposure time gear corresponds to one exposure time, where N is an integer greater than 1.

参照图21所示,设定曝光时长的装置21包括:处理器211、存储器212、总线213以及接收器214。处理器211、存储器212,接收器214通过总线213相互连接。Referring to FIG. 21 , the device 21 for setting the exposure time 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 each other through the bus 213 .

总线213可以是工业标准体系结构(英文全称:Industry StandardArchitecture,英文简称:ISA)总线213、外部设备互连(英文全称:Peripheral ComponentInterconnect,英文简称:PCI)或者扩展工业标准体系结构(英文全称:Extended IndustryStandard Architecture,英文简称:EISA)总线213等。总线213可以分为地址总线213、数据总线213以及控制总线213等。为便于表示,图21中仅用一条粗线表示,但这并不表示仅有一根总线213或者一种类型的总线213。The bus 213 can be an industry standard architecture (English full name: Industry Standard Architecture, English abbreviation: ISA) bus 213, a peripheral device interconnection (English full name: Peripheral Component Interconnect, English abbreviation: PCI) or an extended industry standard architecture (English full name: Extended Industry Standard Architecture, English abbreviation: EISA) bus 213, etc. The bus 213 can be divided into an address bus 213, a data bus 213, a control bus 213 and so on. For ease of representation, only one thick line is used in FIG. 21 , but this does not mean that there is only one bus 213 or one type of bus 213 .

用于执行本发明方案的程序代码保存在存储器212中,并由处理器211来控制执行。Program codes for implementing the solutions of the present invention are stored in the memory 212 and executed under the control of the processor 211 .

存储器212可以包括易失性存储器(英文全称:volatile memory),例如,随机存取存储器(英文全称:random-access memory,英文简称:RAM)。存储器212也可以包括非易失性存储器(英文全称:non-volatile memory),例如,只读存储器(英文全称:read-onlymemory,英文简称:ROM),包括电可擦可编程只读存储器(英文全称:ElectricallyErasable Programmable Read-Only Memory,英文简称:EEPROM)等。The memory 212 may include a volatile memory (English full name: volatile memory), for example, a random access memory (English full name: random-access memory, English abbreviation: RAM). The memory 212 may also include a non-volatile memory (English full name: non-volatile memory), for example, a read-only memory (English full 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), etc.

另外非易失性存储器还可以是快闪存储器(英文全称: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 drive (English full name: solid-state drive, English abbreviation: SSD). )Wait. Of course, the storage 212 may also include a combination of the above-mentioned types of storage.

处理器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 (full name: Central Processing Unit, CPU for short), or a combination of a CPU and a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (full English name: application-specific integrated circuit, English abbreviation: ASIC), a programmable logic device (English full name: programmable logic device, English abbreviation: PLD), or any combination thereof.

进一步地,上述PLD可以是复杂可编程逻辑器件(英文全称:complexprogrammable logic device,英文简称:CPLD),现场可编程逻辑门阵列(英文全称:field-programmable gate array,英文简称:FPGA),通用阵列逻辑(英文全称:generic arraylogic,英文简称:GAL)或者其任意组合。Further, the above-mentioned PLD can be a complex programmable logic device (English full name: complexprogrammable logic device, English abbreviation: CPLD), field programmable logic gate array (English full name: field-programmable gate array, English abbreviation: FPGA), a general-purpose array Logic (English full name: generic arraylogic, 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 realized:

接收器214,用于获取抖动参数,抖动参数用于指示照相设备在照相过程中的抖动状态。The receiver 214 is configured to acquire a shake parameter, and the shake parameter is used to indicate the shake state of the photographing device during the photographing process.

处理器211,用于根据接收器214当前获取的抖动参数预测理论模糊角集合。理论模糊角集合包括N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量。The processor 211 is configured to predict a set of theoretical blur angles according to the shake parameters currently acquired by the receiver 214 . The theoretical blur angle set includes the theoretical blur angle corresponding to each of the N exposure time gears. The theoretical blur angle is the expected value of the blur angle when the shake compensation function is turned off. The blur angle is the cumulative change of the lens shake angle during the exposure process. .

处理器211,还用于根据接收器214当前获取的抖动参数确定抑制比集合。抑制比集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值。The processor 211 is further configured to determine a suppression ratio set according to the jitter parameters currently acquired by the receiver 214 . The suppression ratio set includes the suppression ratios corresponding to each of the N exposure time gears under the currently obtained shake parameters. The suppression ratio is a function of the theoretical blur angle and the suppressed blur angle. The suppressed blur angle is when the shake compensation function is turned on. The expected value of the blur angle.

处理器211,还用于根据理论模糊角集合以及抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合。抑制模糊角集合包括在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制模糊角。The processor 211 is further configured to predict the set of suppression blur angles according to the set of theoretical blur angles and the set of suppression ratios, according to the function of the suppression ratio with respect to the theoretical blur angle and the suppression blur angle. The set of suppressed blur angles includes the suppressed blur angles corresponding to each of the N exposure time length gears under the currently acquired jitter parameters.

接收器214,还用于获取容许模糊角。The receiver 214 is also used to obtain the allowable blur angle.

处理器211,还用于根据接收器214获取的容许模糊角从抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角。容许模糊角用于指示可接受的最大抑制模糊角。The processor 211 is further configured to select one of the suppressed blur angles from the set of suppressed blur angles as the target suppressed blur angle according to the allowable blur angle acquired by the receiver 214 . Allowable Blur Angle is used to indicate the maximum acceptable suppressed blur angle.

处理器211,还用于根据目标抑制模糊角设定目标曝光时长档位,目标曝光时长档位为目标抑制模糊角所对应的曝光时长档位。The processor 211 is further configured to set a target exposure time gear according to the target blur suppression angle, where the target exposure time gear is the exposure time gear corresponding to the target blur suppression angle.

可选的,接收器214,还用于获取抑制比列表。抑制比列表包括在不同抖动参数下,N个曝光时长档位各自对应的抑制比。抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得。Optionally, the receiver 214 is also configured to acquire a suppression ratio list. The suppression ratio list includes the suppression ratios corresponding to each of the N exposure time long gears under different dithering parameters. The value of the suppression ratio in the suppression ratio list is calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppression blur angle according to the function of the suppression ratio on the theoretical blur angle and the suppression blur angle.

处理器211,还用于根据抖动参数查询接收器214所获取的抑制比列表,确定在当前获取的抖动参数下,N个曝光时长档位各自对应的抑制比,得到抑制比集合。The processor 211 is further configured to query the suppression ratio list obtained by the receiver 214 according to the jitter parameters, determine the suppression ratios corresponding to each of the N exposure time length gears under the currently obtained jitter parameters, and obtain a suppression ratio set.

例如,在一种具体的实施方式中,抑制比列表在设定曝光时长的装置21在出厂之前输入并保存在存储器212中,或者也可以在出厂之后通过软件更新的方式输入并保存在存储器212中。在拍照过程中,处理器211从存储器212读取抑制比列表,并通过查询抑制比列表,得到抑制比集合。For example, in a specific implementation manner, the device 21 that suppresses the set exposure time longer than the list is input and stored in the memory 212 before leaving the factory, or it can also be input and stored in the memory 212 by means of software update after leaving the factory. middle. During the photographing process, the processor 211 reads the suppression ratio list from the memory 212, and obtains a suppression ratio set by querying the suppression ratio list.

需要指出的是,存储器212实际存储抑制比列表的形式可以有多种,即存储器212可以采用多种数据结构来存储抑制比列表中的数据,而不仅仅以表的形式进行存储。本发明的实施例对于具体的数据存储结构不做限定。It should be pointed out that the memory 212 may actually store the suppression ratio list in various forms, that is, the memory 212 may use various data structures to store the data in the suppression ratio list, not just in the form of a table. The embodiment of the present invention does not limit the specific data storage structure.

可选的,接收单元,具体用于获取照相设备在照相过程中的抖动振幅和抖动周期。Optionally, the receiving unit is specifically configured to acquire the shaking amplitude and shaking period of the photographing device during the photographing process.

可选的,处理器211,具体用于根据抖动振幅和抖动周期构建模糊角函数其中,为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期。根据模糊角函数计算N个曝光时长档位各自对应的理论模糊角,得到理论模糊角集合。Optionally, the processor 211 is specifically configured to construct a fuzzy angle function according to the jitter amplitude and the jitter period in, is the blur angle, t is the exposure start time point, Δt is the exposure time, A is the shaking amplitude, and λ is the shaking period. According to the blur angle function, the theoretical blur angles corresponding to each of the N exposure time length gears are calculated to obtain a set of theoretical blur angles.

可选的,处理器211,进一步用于根据第一公式计算N个曝光时长档位各自对应的理论模糊角,第一公式为:Optionally, the processor 211 is further configured to calculate theoretical blur angles corresponding to each of the N exposure time length gears according to the first formula, and the first formula is:

其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,...N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期。Wherein, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, i=1,...N, Δt_i is the exposure time corresponding to the i-th exposure time gear, and λ is the jitter cycle.

或者,处理器211,进一步用于根据第二公式计算N个曝光时长档位各自对应的理论模糊角,第二公式为:Alternatively, the processor 211 is further configured to calculate the theoretical blur angles corresponding to each of the N exposure time length gears according to the second formula, and the second formula is:

其中,t_j(j=1,...P)为在一个抖动周期内对曝光起始时间点t的P个采样值,k为大于或者等于0的整数,P为大于1的整数。Wherein, t_j (j=1, . . . P) is P sampling values of the exposure start time point t within one dithering 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 a suppressed blur angle that is smaller than or close to the allowable blur angle from the set of suppressed blur angles as the target suppressed blur angle.

可选的,当N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于容许模糊角时,处理器211,进一步用于从不大于容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角。Optionally, when at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processor 211 is further configured to select the corresponding exposure duration from the suppression blur angles not greater than the allowable blur angle The longest suppression blur angle is the target suppression blur angle.

当N个曝光时长档位各自对应的抑制模糊角均大于容许模糊角时,处理器211,进一步用于从N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the suppression blur angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processor 211 is further configured to select the smallest suppression blur angle from the respective suppression blur angles corresponding to the N exposure time long gears as the target suppression blurred corners.

可选的,处理器211,具体用于按照以下模糊角的函数预测抑制模糊角集合。Optionally, the processor 211 is specifically configured to predict the suppression blur angle set according to the following function of the blur angle.

其中,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 also used to acquire a user's instruction to take pictures.

处理器211,还用于在设定目标曝光时长档位之后,根据接收到拍照指令的时间点,以及模糊角函数确定曝光起始时间点t的取值t_0。模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为目标曝光时长档位所对应的曝光时长。The processor 211 is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t. blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear.

基于本发明的实施例所提供的设定曝光时长的装置,本发明的实施例还提供一种照相设备,用于实现本发明的实施例所描述的设定曝光时长的方法。Based on the apparatus for setting the exposure time provided by the embodiment of the present invention, the embodiment of the present invention also provides a photographic device for implementing the method for setting the exposure time described in the embodiment of the present invention.

照相设备具体可以是数码相机、带有照相功能的智能手机、平板电脑、无人机等设备。The photographic device may specifically be a digital camera, a smart phone with a photographic function, a tablet computer, an unmanned aerial vehicle, and the like.

照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数。通过执行本发明的实施例所提供的设定曝光时长的方法,在照相过程中从N个曝光时长档位中选择其一,按照选定档位对应的曝光时长完成曝光过程。The photographic device provides N exposure time gears, one exposure time gear corresponds to one exposure time, where N is an integer greater than 1. By implementing the method for setting the exposure time provided by the embodiment of the present invention, one of the N exposure time gears is selected during the photographing process, and the exposure process is completed according to the exposure time corresponding to the selected gear.

在一种具体的应用场景中,照相设备包括图20所对应的实施例中所描述的设定曝光时长的装置。In a specific application scenario, the photographic equipment includes the device for setting the exposure time described in the embodiment corresponding to FIG. 20 .

或者,照相设备包括图21所对应的实施例中所描述的设定曝光时长的装置。Alternatively, the camera equipment includes the device for setting the exposure time described in the embodiment corresponding to FIG. 21 .

本发明的实施例所提供的设定曝光时长的装置以及照相设备,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。The device for setting the exposure time and the photographic equipment provided by the embodiments of the present invention obtain the set of theoretical blur angles according to the prediction of the shake parameters, and then obtain the set of suppressed blur angles according to the set of suppression ratios, and obtain the set of suppressed blur angles according to the allowable blur angles. Select the target blur suppression angle, and set the exposure time as the exposure time corresponding to the target blur suppression angle, so as to set the most appropriate exposure time gear according to the actual shaking of the camera equipment during the shooting process, thereby improving the image quality. clarity. Further, the exposure start time point is selected so 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 photo.

基于本发明的实施例所提供的设定曝光时长的方法以及照相设备,本发明的实施例还提供一种计算机可读存储介质。计算机可读存储介质存储有程序代码,当程序代码被执行时,实现本发明的实施例所描述的设定曝光时长的方法。Based on the method for setting the exposure duration and the photographic device provided by the embodiments of the present invention, the embodiments of the present invention further provide a computer-readable storage medium. The computer-readable storage medium stores program codes, and when the program codes are executed, the method for setting the exposure duration described in the embodiments of the present invention is realized.

例如,在一种具体的实施方式中,当通过软件实现、或者通过软件和硬件结合的方式实现本发明的实施例所提供的设定曝光时长的方法时,可以将实现设定曝光时长的方法的程序代码存储在计算机可读存储介质中。当然,上述程序代码还可以作为计算机可读存储介质上的一个或者多个指令、代码进行传输和存储。For example, in a specific implementation manner, when the method for setting the exposure duration provided by the embodiments of the present invention is implemented by software, or by combining software and hardware, the method for setting the exposure duration can be realized 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 and codes on a computer-readable storage medium.

计算机可读存储介质可以包括计算机存储介质和通信介质。Computer readable storage media may include computer storage media and communication media.

存储介质可以是计算机能够存取的任何可用介质。包括但不限于:随机存储器(英文全称:Random Access Memory,英文简称:RAM)、只读存储器(英文全称:Read OnlyMemory,英文简称:ROM)、电可擦可编程只读存储器(英文全称:Electrically ErasableProgrammable Read Only Memory,英文简称:EEPROM)、只读光盘(英文全称:Compact DiscRead Only Memory,英文简称:CD-ROM)或者其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带、存储具有指令或者数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。A storage media 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 OnlyMemory, English abbreviation: ROM), electrically erasable programmable read-only memory (English full name: Electrically Erasable Programmable Read Only Memory, English abbreviation: EEPROM), CD-ROM (English abbreviation: Compact DiscRead Only Memory, English abbreviation: CD-ROM) or other optical disc storage, magnetic disk storage medium or other magnetic storage devices, or can be used for portable, Any other medium that stores desired program code in the form of instructions or data structures and that can be accessed by a computer.

通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。用于传输数据的各种连接均可适当地成为计算机可读存储介质。Communication media includes any medium that facilitates transfer of a computer program from one place to another. The various connections used for transferring data may suitably be computer-readable storage media.

例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户专线(英文全称:Digital Subscriber Line,英文简称:DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术也包括在本发明的实施例中所指的计算机可读存储介质的定义中。For example, if the software is downloaded from a website, server or Transmission by other remote sources, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are also included in the definition of computer-readable storage medium referred to in the embodiments of the present invention middle.

在一种应用场景中,拍照设备具体为智能手机。本发明的实施例所提供的设定曝光时长的方法以应用程序(英文全称:Application,英文简称:APP)安装包的形式保存在服务器中,智能手机通过访问服务器下载并安装该应用程序安装包,实现本发明的实施例所提供的设定曝光时长的方法。In an application scenario, the photographing device is specifically a smart phone. The method for setting the exposure duration provided by the embodiments 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 smart phone downloads and installs the application program installation package by accessing the server , implementing the method for setting the exposure duration provided by the embodiment of the present invention.

在上述应用场景中,服务器用于存储应用程序安装包的存储介质、智能手机与服务器之间传输应用程序安装包的传输介质以及智能手机本身存储、运行应用程序安装包的存储介质,均包括在本发明的实施例中所指的计算机可读存储介质的定义中。就只能手机而言,计算机可读存储介质包括安全数码卡(英文全称:Secure Digital Card,英文简称:SD)卡、eMMC(英文全称:Embedded Multi Media Card,英文简称:嵌入式多媒体卡)、RAM等等。In the above application scenarios, the storage medium used by the server to store the application installation package, the transmission medium for transmitting the application installation package between the smartphone and the server, and the storage medium for storing and running the application installation package on the smartphone itself are all included in the In the definition of the computer-readable storage medium referred to in the embodiments of the present invention. As far as smartphones are concerned, computer-readable storage media include Secure Digital Card (English full name: Secure Digital Card, English abbreviation: SD) card, eMMC (English full name: Embedded Multi Media Card, English abbreviation: Embedded Multi Media Card), RAM and so on.

本发明的实施例所提供的设定曝光时长的计算机可读存储介质,存储、传输用于实现设定曝光时长的方法的程序代码或者指令。当程序代码或者指令被运行或者调用时,根据抖动参数预测得到理论模糊角集合,然后根据抑制比集合预测得到抑制模糊角集合,并按照容许模糊角从抑制模糊角集合中选择出目标抑制模糊角,将曝光时长设定为目标抑制模糊角对应的曝光时长,由此根据照相设备在照相过程中实际的抖动情况设定最适的曝光时长档位,从而提高照片的清晰度。进一步地,对曝光起始时间点进行选择,以使得实际的模糊角尽可能地靠近模糊角函数的最小值,从而进一步提高照片的清晰度。The computer-readable storage medium for setting the exposure time provided by the embodiments of the present invention stores and transmits program codes or instructions for implementing the method for setting the exposure time. When the program code or instruction is run or invoked, the theoretical blur angle set is obtained according to the prediction of the jitter parameters, and then the suppression blur angle set is obtained according to the prediction of the suppression ratio set, and the target suppression blur angle is selected from the suppression blur angle set according to the allowable blur angle , set the exposure time as the exposure time corresponding to the target blur suppression angle, so as to set the most appropriate exposure time gear according to the actual shaking of the camera equipment during the shooting process, thereby improving the clarity of the photo. Further, the exposure start time point is selected so 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 photo.

需要说明的是,尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或者步骤。单个处理器或者其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。It should be noted that although the present invention has been described in conjunction with various embodiments herein, however, in the process of implementing the claimed invention, those skilled in the art will other variations of the disclosed embodiments can be understood and effected by reading this book. In the claims, the word "comprising" does not exclude other elements or steps. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或者计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或者结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或者多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或者作为硬件的一部分,也可以采用其他分布形式,如通过Internet或者其它有线或者无线电信系统。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices (devices), or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may 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.) having computer-usable program code embodied therein. The computer program is stored/distributed on suitable media, provided with or as part of other hardware, and may also take other forms of distribution, such as via the Internet or other wired or wireless telecommunication systems.

本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解为可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或者其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或者其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或者多个流程和/或方框图的一个方框或者多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, apparatus (device) and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and a combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或者其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图的一个方框或者多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或者其他可编程数据处理设备上,使得在计算机或者其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或者其他可编程设备上执行的指令提供用于实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so that The instructions provide steps for implementing the functions specified in the flowchart or procedures and/or the block or blocks in the block diagrams.

尽管结合具体特征以及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或者等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求以及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and examples thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或者替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (43)

1.一种设定曝光时长的方法,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述方法包括:1. A method for setting the exposure time, which is used to set the target exposure time gear of the photographic equipment, and the photographic equipment provides N exposure time gears, and one exposure time gear corresponds to one exposure time, wherein N is greater than Integer of 1, it is characterized in that, described method comprises: 获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;Obtaining a shaking parameter, the shaking parameter is used to indicate the shaking state of the photographing device during the photographing process; 根据当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;Predict a set of theoretical blur angles according to the currently acquired shake parameters; the set of theoretical blur angles includes the theoretical blur angles corresponding to the N exposure time gears, and the theoretical blur angle is the expected value of the blur angle when the shake compensation function is turned off. , the blur angle is the cumulative change of the lens shake angle during the exposure process; 根据当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;Determine the set of suppression ratios according to the currently acquired jitter parameters; the set of suppression ratios includes the suppression ratios corresponding to each of the N exposure time length gears under the currently acquired jitter parameters, and the suppression ratios are about the theoretical blur angle and the suppression blur angle The function of , the suppression blur angle is the expected value of the blur angle when the shake compensation function is turned on; 根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;According to the set of theoretical blur angles and the set of suppression ratios, predict the set of suppression blur angles according to the function of the suppression ratio on the theoretical blur angle and the suppressed blur angle; the set of suppressed blur angles is included under the currently acquired jitter parameters, The blur suppression angles corresponding to each of the N exposure time gears; 获取容许模糊角,根据所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;Obtain an allowable blur angle, and select one of the suppressed blur angles from the set of suppressed blur angles as a target suppressed blur angle according to the allowable blur angle; the allowable blur angle is used to indicate an acceptable maximum suppressed blur angle; 设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。A target exposure time gear is set, and the target exposure time gear is an exposure time gear corresponding to the target blur suppression angle. 2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein, 所述根据当前获取的抖动参数确定抑制比集合之前,所述方法还包括:获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得;Before the determination of the suppression ratio set according to the currently acquired jitter parameters, the method further includes: obtaining a suppression ratio list; the suppression ratio list includes the suppression ratios corresponding to the N exposure time gears under different jitter parameters The value of the suppression ratio in the suppression ratio list is calculated according to the function of the suppression ratio on the theoretical fuzzy angle and the suppressed fuzzy angle, based on the experimental value of the theoretical fuzzy angle and the experimental value of the suppressed fuzzy angle; 所述根据当前获取的抖动参数确定抑制比集合,包括:The determining the suppression ratio set according to the currently acquired jitter parameters includes: 根据所述抖动参数查询所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,得到所述抑制比集合。Query the list of suppression ratios according to the shake parameters, determine the suppression ratios corresponding to the N exposure time length gears under the currently acquired shake parameters, and obtain the set of suppression ratios. 3.根据权利要求1或者2所述的方法,其特征在于,所述获取抖动参数,包括:获取所述照相设备在照相过程中的抖动振幅和抖动周期。3. The method according to claim 1 or 2, characterized in that the acquiring the shaking parameters comprises: acquiring the shaking amplitude and shaking period of the photographing device during the photographing process. 4.根据权利要求3所述的方法,其特征在于,根据所述抖动参数预测所述N个曝光时长档位各自对应的理论模糊角,包括:4. The method according to claim 3, wherein predicting the theoretical blur angles corresponding to each of the N exposure duration gears according to the jitter parameters includes: 根据抖动振幅和抖动周期构建模糊角函数其中,为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;Construct blur angle function from dither amplitude and dither period in, is the blur angle, t is the exposure start time point, Δt is the exposure duration, A is the shaking amplitude, and λ is the shaking period; 根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。Theoretical blur angles corresponding to the N exposure time length gears are calculated according to the blur angle function to obtain the set of theoretical blur angles. 5.根据权利要求4所述的方法,其特征在于,所述根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,包括:5. The method according to claim 4, wherein the calculation of the corresponding theoretical blur angles of the N exposure duration gears according to the blur angle function comprises: 根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:The theoretical blur angles corresponding to each of the N exposure time gears are calculated according to the first formula, and the first formula is: 其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Among them, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, i=1,...N, Δt_i is the exposure time corresponding to the i-th exposure time gear, and λ is the jitter cycle; 或者,根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Alternatively, the theoretical blur angles corresponding to each of the N exposure time levels are calculated according to the second formula, and the second formula is: 其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,P为大于1的整数。Wherein, t_j (j=1, . . . P) is P sampling values of the exposure start time point t within one dithering period, and P is an integer greater than 1. 6.根据权利要求1-2、4-5任一项所述的方法,其特征在于,所述根据所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角,包括:6. The method according to any one of claims 1-2, 4-5, characterized in that, according to the allowable blur angle, one of the suppression blur angles is selected from the set of suppression blur angles as the target suppression blur angle angle, including: 从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。A suppressed blur angle smaller than or close to the allowable blur angle is selected from the set of suppressed blur angles as a target suppressed blur angle. 7.根据权利要求3所述的方法,其特征在于,所述根据所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角,包括:7. The method according to claim 3, wherein the selecting one of the suppressed blur angles from the set of suppressed blur angles as the target suppressed blur angle according to the allowable blur angles comprises: 从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。A suppressed blur angle smaller than or close to the allowable blur angle is selected from the set of suppressed blur angles as a target suppressed blur angle. 8.根据权利要求6所述的方法,其特征在于,从所述抑制模糊角集合中选择小于或者接近容许模糊角抑制模糊角作为目标抑制模糊角,包括:8. The method according to claim 6, wherein selecting the suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as the target suppressed blur angle includes: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, select the one with the longest corresponding exposure time from the suppression blur angles that are not greater than the allowable blur angle. The blur angle is the target suppression blur angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, select the minimum blur suppression angle as the target blur suppression angle from the respective blur suppression angles corresponding to the N long exposure time gears horn. 9.根据权利要求7所述的方法,其特征在于,从所述抑制模糊角集合中选择小于或者接近容许模糊角抑制模糊角作为目标抑制模糊角,包括:9. The method according to claim 7, wherein selecting the suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as the target suppressed blur angle includes: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, select the one with the longest corresponding exposure time from the suppression blur angles that are not greater than the allowable blur angle. The blur angle is the target suppression blur angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, select the minimum blur suppression angle as the target blur suppression angle from the respective blur suppression angles corresponding to the N long exposure time gears horn. 10.根据权利要求1-2、4-5、7-9任一项所述的方法,其特征在于,10. The method according to any one of claims 1-2, 4-5, 7-9, characterized in that, 抑制比关于理论模糊角和抑制模糊角的函数具体为:The function of the suppression ratio with respect to the theoretical ambiguity angle and the suppression ambiguity angle is specifically: 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 11.根据权利要求3所述的方法,其特征在于,11. The method of claim 3, wherein, 抑制比关于理论模糊角和抑制模糊角的函数具体为:The function of the suppression ratio with respect to the theoretical ambiguity angle and the suppression ambiguity angle is specifically: 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 12.根据权利要求6所述的方法,其特征在于,12. The method of claim 6, wherein, 抑制比关于理论模糊角和抑制模糊角的函数具体为:The function of the suppression ratio with respect to the theoretical ambiguity angle and the suppression ambiguity angle is specifically: 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 13.根据权利要求4-5、7-9任一项所述的方法,其特征在于,13. The method according to any one of claims 4-5, 7-9, characterized in that, 所述方法还包括:获取用户的拍照指令;The method also includes: acquiring a user's photographing instruction; 所述设定目标曝光时长档位之后,所述方法还包括:根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。After the target exposure time gear is set, the method further includes: according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 14.根据权利要求6所述的方法,其特征在于,14. The method of claim 6, wherein, 所述方法还包括:获取用户的拍照指令;The method also includes: acquiring a user's photographing instruction; 所述设定目标曝光时长档位之后,所述方法还包括:根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。After the target exposure time gear is set, the method further includes: according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 15.一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述装置包括:15. A device for setting the exposure time, which is used to set the target exposure time gear of the photographic equipment. The photographic equipment provides N exposure time gears, and one exposure time gear corresponds to one exposure time, wherein N is greater than An integer of 1, characterized in that the device comprises: 获取单元,用于获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;an acquisition unit, configured to acquire a shaking parameter, the shaking parameter is used to indicate the shaking state of the photographing device during the photographing process; 处理单元,用于根据所述获取单元当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;A processing unit, configured to predict a set of theoretical blur angles according to the shake parameters currently acquired by the acquisition unit; the set of theoretical blur angles includes theoretical blur angles corresponding to each of the N exposure time length gears, and the theoretical blur angles are The expected value of the blur angle when the function is turned off, and the blur angle is the cumulative change of the lens shake angle during the exposure process; 所述处理单元,还用于根据所述获取单元当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;The processing unit is further configured to determine a set of suppression ratios according to the jitter parameters currently acquired by the acquisition unit; the set of suppression ratios includes the suppression ratios corresponding to each of the N exposure time gears under the currently acquired jitter parameters , the suppression ratio is a function of the theoretical blur angle and the suppressed blur angle, and the suppressed blur angle is the expected value of the blur angle when the shake compensation function is turned on; 所述处理单元,还用于根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;The processing unit is further configured to predict a set of suppressed blur angles according to the set of theoretical blur angles and the set of suppression ratios according to the function of the suppression ratio with respect to the theoretical blur angle and the suppressed blur angle; the set of suppressed blur angles is included in Under the currently acquired jitter parameters, the blur suppression angles corresponding to each of the N exposure duration gears; 所述获取单元,还用于获取容许模糊角;The obtaining unit is also used to obtain the allowable blur angle; 所述处理单元,还用于根据所述获取单元获取的所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;The processing unit is further configured to select one of the suppressed blur angles from the set of suppressed blur angles according to the allowable blur angle obtained by the acquiring unit as a target suppressed blur angle; the allowable blur angle is used to indicate acceptable The maximum suppression blur angle of ; 设置单元,还用于根据所述处理单元确定的目标抑制模糊角设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。The setting unit is further configured to set a target exposure time gear according to the target blur suppression angle determined by the processing unit, the target exposure time gear being the exposure time gear corresponding to the target blur suppression angle. 16.根据权利要求15所述的设定曝光时长的装置,其特征在于,16. The device for setting exposure duration according to claim 15, characterized in that: 所述获取单元,还用于获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得;The acquiring unit is also used to acquire a list of suppression ratios; the list of suppression ratios includes the suppression ratios corresponding to each of the N exposure time length gears under different jitter parameters; the values of the suppression ratios in the list of suppression ratios , is a function of the theoretical blur angle and the suppressed blur angle according to the suppression ratio, and is calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppressed blur angle; 所述处理单元,还用于根据所述抖动参数查询所述获取单元所获取的所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,得到所述抑制比集合。The processing unit is further configured to query the list of suppression ratios acquired by the acquisition unit according to the jitter parameters, and determine the suppression ratios corresponding to each of the N exposure duration gears under the currently acquired jitter parameters, The set of suppression ratios is obtained. 17.根据权利要求15或者16所述的设定曝光时长的装置,其特征在于,17. The device for setting exposure duration according to claim 15 or 16, characterized in that, 所述获取单元,具体用于获取所述照相设备在照相过程中的抖动振幅和抖动周期。The acquiring unit is specifically configured to acquire the shaking amplitude and shaking period of the photographing device during the photographing process. 18.根据权利要求17所述的设定曝光时长的装置,其特征在于,18. The device for setting exposure duration according to claim 17, characterized in that: 所述处理单元,具体用于根据抖动振幅和抖动周期构建模糊角函数其中,为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。The processing unit is specifically configured to construct a fuzzy angle function according to the jitter amplitude and jitter period in, is the blur angle, t is the exposure start time point, Δt is the exposure duration, A is the jitter amplitude, and λ is the jitter cycle; according to the blur angle function, calculate the theoretical blur angle corresponding to each of the N exposure time gears, and get The set of theoretical blur angles. 19.根据权利要求18所述的设定曝光时长的装置,其特征在于,19. The device for setting exposure duration according to claim 18, characterized in that: 所述处理单元,进一步用于根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:The processing unit is further configured to calculate theoretical blur angles corresponding to each of the N exposure time length gears according to a first formula, and the first formula is: 其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Among them, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, i=1,...N, Δt_i is the exposure time corresponding to the i-th exposure time gear, and λ is the jitter cycle; 或者,所述处理单元,进一步用于根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Alternatively, the processing unit is further configured to calculate theoretical blur angles corresponding to each of the N exposure time length gears according to a second formula, and the second formula is: 其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,P为大于1的整数。Wherein, t_j (j=1, . . . P) is P sampling values of the exposure start time point t within one dithering period, and P is an integer greater than 1. 20.根据权利要求15-16、18-19任一项所述的设定曝光时长的装置,其特征在于,20. The device for setting exposure duration according to any one of claims 15-16, 18-19, characterized in that, 所述处理单元,具体用于从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processing unit is specifically configured to select a suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as a target suppressed blur angle. 21.根据权利要求17所述的设定曝光时长的装置,其特征在于,21. The device for setting exposure duration according to claim 17, characterized in that: 所述处理单元,具体用于从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processing unit is specifically configured to select a suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as a target suppressed blur angle. 22.根据权利要求20所述的设定曝光时长的装置,其特征在于,22. The device for setting exposure duration according to claim 20, characterized in that: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理单元,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processing unit is further configured to select from the suppression blur angles not greater than the allowable blur angle The blur suppression angle corresponding to the longest exposure time is the target blur suppression angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理单元,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processing unit is further configured to select the minimum blur angle from the respective corresponding blur suppression angles of the N exposure time long gears. The suppression blur angle of is the target suppression blur angle. 23.根据权利要求21所述的设定曝光时长的装置,其特征在于,23. The device for setting exposure duration according to claim 21, characterized in that: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理单元,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processing unit is further configured to select from the suppression blur angles not greater than the allowable blur angle The blur suppression angle corresponding to the longest exposure time is the target blur suppression angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理单元,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processing unit is further configured to select the minimum blur angle from the respective corresponding blur suppression angles of the N exposure time long gears. The suppression blur angle of is the target suppression blur angle. 24.根据权利要求15-16、18-19、21-23任一项所述的设定曝光时长的装置,其特征在于,24. The device for setting exposure duration according to any one of claims 15-16, 18-19, 21-23, characterized in that, 所述处理单元,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processing unit is specifically configured to predict and suppress a blur angle set according to the following function of the blur angle; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 25.根据权利要求17所述的设定曝光时长的装置,其特征在于,25. The device for setting exposure duration according to claim 17, characterized in that: 所述处理单元,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processing unit is specifically configured to predict and suppress a blur angle set according to the following function of the blur angle; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 26.根据权利要求20所述的设定曝光时长的装置,其特征在于,26. The device for setting exposure duration according to claim 20, characterized in that: 所述处理单元,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processing unit is specifically configured to predict and suppress a blur angle set according to the following function of the blur angle; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 27.根据权利要求18-19、21-23任一项所述的设定曝光时长的装置,其特征在于,27. The device for setting exposure duration according to any one of claims 18-19, 21-23, characterized in that, 所述获取单元,还用于获取用户的拍照指令;The obtaining unit is also used to obtain a user's photographing instruction; 所述处理单元,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。The processing unit is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 28.根据权利要求20所述的设定曝光时长的装置,其特征在于,28. The device for setting exposure duration according to claim 20, characterized in that: 所述获取单元,还用于获取用户的拍照指令;The obtaining unit is also used to obtain a user's photographing instruction; 所述处理单元,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。The processing unit is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 29.一种设定曝光时长的装置,用于设定照相设备的目标曝光时长档位,所述照相设备提供N个曝光时长档位,一个曝光时长档位对应一个曝光时长,其中N为大于1的整数,其特征在于,所述装置包括:处理器、存储器、总线以及接收器;所述处理器、所述存储器,所述接收器通过所述总线相互连接;29. A device for setting the exposure time, which is used to set the target exposure time gear of the photographic equipment. The photographic equipment provides N exposure time gears, and one exposure time gear corresponds to one exposure time, where N is greater than An integer of 1, characterized in that the device includes: a processor, a memory, a bus, and a receiver; the processor, the memory, and the receiver are connected to each other through the bus; 所述接收器,用于获取抖动参数,所述抖动参数用于指示所述照相设备在照相过程中的抖动状态;The receiver is used to acquire a shaking parameter, and the shaking parameter is used to indicate the shaking state of the photographing device during the photographing process; 所述处理器,用于根据所述接收器当前获取的抖动参数预测理论模糊角集合;所述理论模糊角集合包括所述N个曝光时长档位各自对应的理论模糊角,理论模糊角为在抖动补偿功能关闭的情况下模糊角的期望值,模糊角为镜头的抖动角度在曝光过程中的累积变化量;The processor is configured to predict a set of theoretical blur angles according to the jitter parameters currently acquired by the receiver; the set of theoretical blur angles includes theoretical blur angles corresponding to each of the N exposure time length gears, and the theoretical blur angles are in The expected value of the blur angle when the shake compensation function is turned off, and the blur angle is the cumulative change of the lens shake angle during the exposure process; 所述处理器,还用于根据所述接收器当前获取的抖动参数确定抑制比集合;所述抑制比集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,抑制比为关于理论模糊角和抑制模糊角的函数,抑制模糊角为在抖动补偿功能开启的情况下模糊角的期望值;The processor is further configured to determine a set of suppression ratios according to the jitter parameters currently acquired by the receiver; the set of suppression ratios includes the suppression ratios corresponding to each of the N exposure time gears under the currently acquired jitter parameters , the suppression ratio is a function of the theoretical blur angle and the suppressed blur angle, and the suppressed blur angle is the expected value of the blur angle when the shake compensation function is turned on; 所述处理器,还用于根据所述理论模糊角集合以及所述抑制比集合,按照抑制比关于理论模糊角和抑制模糊角的函数,预测抑制模糊角集合;所述抑制模糊角集合包括在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制模糊角;The processor is further configured to predict a set of suppressed blur angles according to the set of theoretical blur angles and the set of suppression ratios according to the function of the suppression ratio with respect to the theoretical blur angle and the suppressed blur angle; the set of suppressed blur angles is included in Under the currently acquired jitter parameters, the blur suppression angles corresponding to each of the N exposure duration gears; 所述接收器,还用于获取容许模糊角;The receiver is also used to obtain the allowable blur angle; 所述处理器,还用于根据所述接收器获取的所述容许模糊角从所述抑制模糊角集合中选择其中一个抑制模糊角作为目标抑制模糊角;所述容许模糊角用于指示可接受的最大抑制模糊角;The processor is further configured to select one of the suppressed blur angles from the set of suppressed blur angles as a target suppressed blur angle according to the allowable blur angle obtained by the receiver; the allowable blur angle is used to indicate acceptable The maximum suppression blur angle of ; 所述处理器,还用于根据所述目标抑制模糊角设定目标曝光时长档位,所述目标曝光时长档位为所述目标抑制模糊角所对应的曝光时长档位。The processor is further configured to set a target exposure time gear according to the target blur suppression angle, and the target exposure time gear is an exposure time gear corresponding to the target blur suppression angle. 30.根据权利要求29所述的设定曝光时长的装置,其特征在于,30. The device for setting exposure duration according to claim 29, characterized in that: 所述接收器,还用于获取抑制比列表;所述抑制比列表包括在不同抖动参数下,所述N个曝光时长档位各自对应的抑制比;所述抑制比列表中抑制比的取值,为按照抑制比关于理论模糊角和抑制模糊角的函数,根据理论模糊角的实验值和抑制模糊角的实验值计算所得;The receiver is also used to obtain a list of suppression ratios; the list of suppression ratios includes the suppression ratios corresponding to each of the N exposure time length gears under different jitter parameters; the values of the suppression ratios in the list of suppression ratios , is a function of the theoretical blur angle and the suppressed blur angle according to the suppression ratio, and is calculated according to the experimental value of the theoretical blur angle and the experimental value of the suppressed blur angle; 所述处理器,还用于根据所述抖动参数查询所述接收器所获取的所述抑制比列表,确定在当前获取的抖动参数下,所述N个曝光时长档位各自对应的抑制比,得到所述抑制比集合。The processor is further configured to query the list of suppression ratios acquired by the receiver according to the jitter parameters, and determine the suppression ratios corresponding to each of the N exposure duration gears under the currently acquired jitter parameters, The set of suppression ratios is obtained. 31.根据权利要求29或者30所述的设定曝光时长的装置,其特征在于,31. The device for setting exposure duration according to claim 29 or 30, characterized in that: 所述接收器,具体用于获取所述照相设备在照相过程中的抖动振幅和抖动周期。The receiver is specifically used to acquire the shaking amplitude and shaking period of the photographing device during the photographing process. 32.根据权利要求31所述的设定曝光时长的装置,其特征在于,32. The device for setting exposure duration according to claim 31, characterized in that: 所述处理器,具体用于根据抖动振幅和抖动周期构建模糊角函数其中,为模糊角,t为曝光起始时间点,Δt为曝光时长,A为抖动振幅,λ为抖动周期;根据所述模糊角函数计算所述N个曝光时长档位各自对应的理论模糊角,得到所述理论模糊角集合。The processor is specifically configured to construct a fuzzy angle function according to the jitter amplitude and the jitter period in, is the blur angle, t is the exposure start time point, Δt is the exposure duration, A is the jitter amplitude, and λ is the jitter cycle; according to the blur angle function, calculate the theoretical blur angle corresponding to each of the N exposure time gears, and get The set of theoretical blur angles. 33.根据权利要求32所述的设定曝光时长的装置,其特征在于,33. The device for setting exposure duration according to claim 32, characterized in that: 所述处理器,进一步用于根据第一公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第一公式为:The processor is further configured to calculate theoretical blur angles corresponding to each of the N exposure duration gears according to a first formula, and the first formula is: 其中,ψ_i为第i个曝光时长档位所对应的理论模糊角,i=1,…N,Δt_i为第i个曝光时长档位所对应的曝光时长,λ为抖动周期;Among them, ψ_i is the theoretical blur angle corresponding to the i-th exposure time gear, i=1,...N, Δt_i is the exposure time corresponding to the i-th exposure time gear, and λ is the jitter cycle; 或者,所述处理器,进一步用于根据第二公式计算所述N个曝光时长档位各自对应的理论模糊角,所述第二公式为:Alternatively, the processor is further configured to calculate theoretical blur angles corresponding to each of the N exposure duration gears according to a second formula, and the second formula is: 其中,t_j(j=1,…P)为在一个抖动周期内对曝光起始时间点t的P个采样值,P为大于1的整数。Wherein, t_j (j=1, . . . P) is P sampling values of the exposure start time point t within one dithering period, and P is an integer greater than 1. 34.根据权利要求29-30、32-33任一项所述的设定曝光时长的装置,其特征在于,34. The device for setting exposure duration according to any one of claims 29-30, 32-33, characterized in that, 所述处理器,具体用于从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processor is specifically configured to select a suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as a target suppressed blur angle. 35.根据权利要求31所述的设定曝光时长的装置,其特征在于,35. The device for setting exposure duration according to claim 31, characterized in that: 所述处理器,具体用于从所述抑制模糊角集合中选择小于或者接近所述容许模糊角的抑制模糊角作为目标抑制模糊角。The processor is specifically configured to select a suppressed blur angle smaller than or close to the allowable blur angle from the set of suppressed blur angles as a target suppressed blur angle. 36.根据权利要求34所述的设定曝光时长的装置,其特征在于,36. The device for setting exposure duration according to claim 34, characterized in that: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理器,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processor is further configured to select from the suppression blur angles that are not greater than the allowable blur angle The blur suppression angle corresponding to the longest exposure time is the target blur suppression angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理器,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processor is further configured to select the minimum blur angle from the respective corresponding blur suppression angles of the N exposure time long gears. The suppression blur angle of is the target suppression blur angle. 37.根据权利要求35所述的设定曝光时长的装置,其特征在于,37. The device for setting exposure duration according to claim 35, characterized in that: 当所述N个曝光时长档位各自对应的抑制模糊角中的至少一个不大于所述容许模糊角时,所述处理器,进一步用于从不大于所述容许模糊角的抑制模糊角中选择对应曝光时长最长的一个抑制模糊角为目标抑制模糊角;When at least one of the suppression blur angles corresponding to each of the N exposure time long gears is not greater than the allowable blur angle, the processor is further configured to select from the suppression blur angles that are not greater than the allowable blur angle The blur suppression angle corresponding to the longest exposure time is the target blur suppression angle; 当所述N个曝光时长档位各自对应的抑制模糊角均大于所述容许模糊角时,所述处理器,进一步用于从所述N个曝光时长档位各自对应的抑制模糊角中选择最小的抑制模糊角为目标抑制模糊角。When the blur suppression angles corresponding to each of the N exposure time long gears are greater than the allowable blur angle, the processor is further configured to select the minimum blur angle from the respective corresponding blur suppression angles of the N exposure time long gears. The suppression blur angle of is the target suppression blur angle. 38.根据权利要求29-30、32-33、35-37任一项所述的设定曝光时长的装置,其特征在于,38. The device for setting exposure duration according to any one of claims 29-30, 32-33, 35-37, characterized in that, 所述处理器,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processor is specifically configured to predict and suppress a set of blur angles according to the function of the following blur angles; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 39.根据权利要求31所述的设定曝光时长的装置,其特征在于,39. The device for setting exposure duration according to claim 31, characterized in that: 所述处理器,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processor is specifically configured to predict and suppress a set of blur angles according to the function of the following blur angles; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 40.根据权利要求34所述的设定曝光时长的装置,其特征在于,40. The device for setting exposure duration according to claim 34, characterized in that: 所述处理器,具体用于按照以下模糊角的函数预测抑制模糊角集合;The processor is specifically configured to predict and suppress a set of blur angles according to the function of the following blur angles; 其中,DB为抑制比,ψ为理论模糊角,ψ_ON为抑制模糊角。Among them, DB is the suppression ratio, ψ is the theoretical blur angle, and ψ_ON is the suppression blur angle. 41.根据权利要求32-33、35-37任一项所述的设定曝光时长的装置,其特征在于,41. The device for setting exposure duration according to any one of claims 32-33, 35-37, characterized in that, 所述接收器,还用于获取用户的拍照指令;The receiver is also used to obtain the user's camera instruction; 所述处理器,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。The processor is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 42.根据权利要求34所述的设定曝光时长的装置,其特征在于,42. The device for setting exposure duration according to claim 34, characterized in that: 所述接收器,还用于获取用户的拍照指令;The receiver is also used to obtain the user's camera instruction; 所述处理器,还用于在设定目标曝光时长档位之后,根据接收到所述拍照指令的时间点,以及所述模糊角函数确定曝光起始时间点t的取值t_0;所述模糊角函数在(t=t_0,Δt=Δt_0,A,λ)点有最小值,其中,Δt_0为所述目标曝光时长档位所对应的曝光时长。The processor is further configured to, after setting the target exposure time gear, according to the time point when the photographing instruction is received, and the blur angle function Determine the value t_0 of the exposure start time point t; the blur angle function There is a minimum value at point (t=t_0, Δt=Δt_0, A, λ), where Δt_0 is the exposure duration corresponding to the target exposure duration gear. 43.一种照相设备,其特征在于,包括如权利要求15-42任一项所述的设定曝光时长的装置。43. A camera, characterized by comprising the device for setting the exposure time according to any one of claims 15-42.
CN201680009557.9A 2016-04-13 2016-04-13 A kind of method, apparatus and camera installation setting exposure time Active CN107493686B (en)

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 (2)

Publication Number Publication Date
CN107493686A CN107493686A (en) 2017-12-19
CN107493686B true CN107493686B (en) 2019-11-29

Family

ID=60042330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680009557.9A Active CN107493686B (en) 2016-04-13 2016-04-13 A kind of method, apparatus and camera installation setting exposure time

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449164B (en) * 2021-12-27 2023-07-18 广州极飞科技股份有限公司 Photographing method, device, unmanned equipment and storage medium
CN117857781B (en) * 2024-03-07 2024-06-04 深圳市强瑞精密技术股份有限公司 Camera anti-shake test method and system based on image processing

Citations (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
WO2015027666A1 (en) * 2013-08-26 2015-03-05 Liu Jian Railway train with length exceeding that of platform and configuration system therefor

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3745067B2 (en) * 1996-02-20 2006-02-15 キヤノン株式会社 Imaging apparatus and control method thereof
JP4038627B2 (en) * 1998-03-30 2008-01-30 フジノン株式会社 Vibration isolator for TV camera
JP4530961B2 (en) * 2005-06-30 2010-08-25 オリンパスイメージング株式会社 Electronic image stabilization device
US8077211B2 (en) * 2007-08-24 2011-12-13 Ricoh Company, Ltd. Image blurring correction device and imaging device using the same with a high pass filter
JP5249377B2 (en) * 2011-03-22 2013-07-31 キヤノン株式会社 Imaging apparatus, control method therefor, and program
WO2013076963A1 (en) * 2011-11-22 2013-05-30 パナソニック株式会社 Measuring method, measuring device, computer program and recording medium

Patent Citations (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
WO2015027666A1 (en) * 2013-08-26 2015-03-05 Liu Jian Railway train with length exceeding that of platform and configuration system therefor

Also Published As

Publication number Publication date
WO2017177407A1 (en) 2017-10-19
CN107493686A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
EP3342153B1 (en) Apparatus and method for generating time lapse image
RU2634323C2 (en) Image shooting method and device
US9338348B2 (en) Real time assessment of picture quality
US20150042839A1 (en) Distance measuring apparatus, imaging apparatus, and distance measuring method
US20140210999A1 (en) Image processing apparatus and image pickup apparatus
CN109951639A (en) Camera anti-shake system, camera anti-shake method, electronic device, and computer-readable storage medium
US9621796B2 (en) Method, apparatus and computer program for capturing images with multiple image capture and image modification
CN107079085B (en) Anti-shake photographing method and device and photographing equipment
US9332195B2 (en) Image processing apparatus, imaging apparatus, and image processing method
CN107483825B (en) Method and device for automatically adjusting focal length
WO2018210318A1 (en) Blurring method and apparatus for image, storage medium, and electronic device
CN111372000B (en) Video anti-shake method and apparatus, electronic device and computer-readable storage medium
CN107704798A (en) Image blurring method, device, computer readable storage medium and computer equipment
WO2017185265A1 (en) Method for determining image photography parameters and photographic apparatus
CN107493686B (en) A kind of method, apparatus and camera installation setting exposure time
CN113438409B (en) Delay calibration method, delay calibration device, computer equipment and storage medium
CN109559352B (en) Camera calibration method, apparatus, electronic device and computer-readable storage medium
WO2018227580A1 (en) Camera calibration method and terminal
CN116156321B (en) A focusing method, device, equipment and storage medium
CN110233969B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN110278372B (en) Anti-shake method and apparatus, electronic device, computer-readable storage medium
CN109584311B (en) Camera calibration method, apparatus, electronic device and computer-readable storage medium
CN104935815B (en) Method, device and the camera and mobile terminal taken pictures
WO2016184060A1 (en) Photographing method and device for terminal
CN116934654B (en) Method for determining image blur and related device

Legal Events

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