CN105657273B - Setting method, device and the mobile terminal of safety shutter time - Google Patents
Setting method, device and the mobile terminal of safety shutter time Download PDFInfo
- Publication number
- CN105657273B CN105657273B CN201610094674.1A CN201610094674A CN105657273B CN 105657273 B CN105657273 B CN 105657273B CN 201610094674 A CN201610094674 A CN 201610094674A CN 105657273 B CN105657273 B CN 105657273B
- Authority
- CN
- China
- Prior art keywords
- time
- mobile terminal
- shaking
- speed
- data
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
Abstract
本发明公开了一种安全快门时间的设定方法、装置及移动终端。该方法包括:在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据;根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度;根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间;将所述抖动时间设置为安全快门时间。本发明实现了根据用户的使用习惯形成的抖动数据设置安全快门时间,通过该安全快门时间拍得的照片不会拍糊,照片比较清晰。
The invention discloses a method, a device and a mobile terminal for setting a safe shutter time. The method includes: when it is detected that the camera function is turned on, acquiring and recording the shaking data of the mobile terminal at intervals of the first set time; according to the shaking data, counting the average movement speed of the mobile terminal within the second set time; according to the set time Calculate the shaking time of the mobile terminal according to the average motion speed and set offset; set the shaking time as the safe shutter time. The invention realizes the setting of the safe shutter time according to the jitter data formed by the user's usage habits, and the photos taken by the safe shutter time will not be blurred and the photos are relatively clear.
Description
技术领域technical field
本发明实施例涉及摄像技术,尤其涉及一种安全快门时间的设定方法、装置及移动终端。Embodiments of the present invention relate to imaging technology, and in particular to a method, device and mobile terminal for setting a safe shutter time.
背景技术Background technique
现有技术中,移动终端在安全快门时间的设定上,固定一个系统的安全快门时间作为系统的最高安全快门时间值,不论光线如何,曝光的时长是不会超过这个快门时间长度的,这种方法从理论上去保证大多数用户拍照的时候不容易拍糊。In the prior art, in the setting of the safe shutter time, the mobile terminal fixes a system safe shutter time as the highest safe shutter time value of the system. No matter what the light is, the exposure time will not exceed this shutter time length. This method theoretically ensures that most users are not easy to blur when taking pictures.
在摄影界,手稳定的摄影师往往被称为铁手,因为他们摄影时握持移动终端等具有摄像头的移动设备比较稳定。但是实际上,大部分用户不是专业的摄影师,这些用户握持移动终端时难免会有抖动的情况,而且每个人身体的控制能力不一样,使用固定的系统安全快门时间在拍照的时候就容易拍糊,不适合每个用户的使用习惯。In the photography world, photographers with stable hands are often called iron hands, because they hold mobile terminals and other mobile devices with cameras more stably when taking pictures. But in fact, most users are not professional photographers. These users will inevitably shake when holding mobile terminals, and each person's body control ability is different. It is easy to use a fixed system security shutter time when taking pictures. It is not suitable for every user's usage habits.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种安全快门时间的设定方法、装置及移动终端,以实现根据用户的使用习惯设定安全快门时间。In view of this, embodiments of the present invention provide a method, device, and mobile terminal for setting a safe shutter time, so as to set the safe shutter time according to the user's usage habits.
第一方面,本发明实施例提供了一种安全快门时间的设定方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for setting a safe shutter time, the method comprising:
在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据;When it is detected that the camera function is turned on, the shake data of the mobile terminal is acquired and recorded at intervals of the first set time;
根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度;According to the jitter data, count the average movement speed of the mobile terminal within the second set time;
根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间;Calculate the shaking time of the mobile terminal according to the average motion speed and the set offset;
将所述抖动时间设置为安全快门时间。The shaking time is set as a safe shutter time.
第二方面,本发明实施例还提供了一种安全快门时间的设定装置,所述装置包括:In the second aspect, the embodiment of the present invention also provides a safety shutter time setting device, the device comprising:
抖动数据获取模块,用于在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据;The shaking data acquisition module is used to acquire and record the shaking data of the mobile terminal at intervals of the first set time when it is detected that the camera function is turned on;
平均速度统计模块,用于根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度;An average speed statistics module, configured to count the average movement speed of the mobile terminal within the second set time according to the jitter data;
抖动时间计算模块,用于根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间;A shaking time calculation module, used to calculate the shaking time of the mobile terminal according to the average motion speed and the set offset;
快门时间设置模块,用于将所述抖动时间设置为安全快门时间。A shutter time setting module, configured to set the shaking time as a safe shutter time.
本发明实施例的技术方案,通过在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度,根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间,将所述抖动时间设置为安全快门时间,实现了根据用户的使用习惯形成的抖动数据设置安全快门时间,通过该安全快门时间拍得的照片不会拍糊,照片比较清晰。In the technical solution of the embodiment of the present invention, when it is detected that the camera function is turned on, the jitter data of the mobile terminal is acquired and recorded at intervals of the first set time, and according to the jitter data, the average Motion speed, calculate the shaking time of the mobile terminal according to the average moving speed and the set offset, set the shaking time as the safe shutter time, realize the setting of the safe shutter time according to the shaking data formed by the user's usage habits, The photos taken with this safe shutter time will not be blurred, and the photos will be clearer.
附图说明Description of drawings
图1是本发明实施例一提供的一种安全快门时间的设定方法的流程图;FIG. 1 is a flow chart of a method for setting a safety shutter time provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种安全快门时间的设定方法的流程图;Fig. 2 is a flow chart of a method for setting a safety shutter time provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种安全快门时间的设定装置的结构示意图。FIG. 3 is a schematic structural diagram of a safety shutter time setting device provided by Embodiment 3 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.
实施例一Embodiment one
图1是本发明实施例一提供的一种安全快门时间的设定方法的流程图,本实施例可适用于根据用户的习惯操作设置安全快门时间,该方法可以由移动终端来执行,具体包括如下步骤:Figure 1 is a flow chart of a method for setting a safe shutter time provided by Embodiment 1 of the present invention. This embodiment is applicable to setting the safe shutter time according to the user's habitual operation. This method can be executed by a mobile terminal, specifically including Follow the steps below:
步骤110,在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据。Step 110, when it is detected that the camera function is turned on, acquiring and recording the shaking data of the mobile terminal at intervals of a first set time.
用户握持移动终端进行拍照时,握持移动终端的手都会有一定的抖动,使得移动终端也有相应的抖动,由于每个人的操作习惯不同,导致每个人在拍照时,移动终端的抖动幅度也不同,这就会导致使用同一系统安全快门时间会不适合每一个用户,本发明实施例就是根据移动终端的抖动数据设定相应的安全快门时间,使得与用户的操作习惯相符。When a user holds a mobile terminal to take a photo, the hand holding the mobile terminal will shake to a certain extent, causing the mobile terminal to shake accordingly. Due to the different operating habits of each person, when each person takes a photo, the shaking amplitude of the mobile terminal also varies. Different, this will lead to the use of the same system security shutter time is not suitable for every user, the embodiment of the present invention is to set the corresponding security shutter time according to the shake data of the mobile terminal, so as to conform to the user's operating habits.
当移动终端检测到拍照功能开启时,获取一次移动终端的抖动数据并记录该抖动数据,然后,每间隔第一设定时间获取一次移动终端的抖动数据并记录获取到的抖动数据,即在一次拍照过程中,获取并记录多个抖动数据,同时记录抖动数据的获取时间,每相邻两个抖动数据的获取时间之间的时间间隔为第一设定时间。在获取到移动终端的抖动数据后,将该抖动数据记录下来,便于后续根据该抖动数据统计移动终端的平均速度。所述抖动数据包括抖动的时间及相应的幅度,所述抖动的时间和抖动数据的获取时间相同。在获取抖动数据时,可以通过陀螺仪或者OIS(Optical Image Stabilizer,光学图像稳定器)等可以获取运动情况的传感器来获取。When the mobile terminal detects that the camera function is turned on, it acquires the jitter data of the mobile terminal once and records the jitter data, and then acquires the jitter data of the mobile terminal every first set time and records the acquired jitter data, that is, once During the photographing process, a plurality of jitter data is acquired and recorded, and the acquisition time of the jitter data is recorded at the same time, and the time interval between the acquisition times of every two adjacent jitter data is the first set time. After the jitter data of the mobile terminal is acquired, the jitter data is recorded, so as to facilitate subsequent statistics of the average speed of the mobile terminal based on the jitter data. The jitter data includes jitter time and corresponding amplitude, and the jitter time is the same as the acquisition time of the jitter data. When acquiring the shake data, it may be acquired through a sensor capable of acquiring motion conditions such as a gyroscope or an OIS (Optical Image Stabilizer, optical image stabilizer).
其中,所述第一设定时间优选不大于系统安全快门时间,使得移动终端能够获取到抖动时的最大幅度,即能够记录下来移动终端完整的抖动运动。Wherein, the first set time is preferably not greater than the system safety shutter time, so that the mobile terminal can obtain the maximum amplitude of shaking, that is, the complete shaking motion of the mobile terminal can be recorded.
步骤120,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度。Step 120, according to the jitter data, calculate the average movement speed of the mobile terminal within the second set time.
根据在第二设定时间内记录的多次拍照过程中的抖动数据,在到达第二设定时间时,统计移动终端在该第二设定时间内的平均运动速度,即根据抖动数据中的抖动的时间及相应的幅度统计出移动终端的平均运动速度。所述第二设定时间可以根据需要设置,如为一天、一周或一个月等。According to the jitter data recorded during the multiple photographing processes within the second set time, when the second set time is reached, the average movement speed of the mobile terminal within the second set time is counted, that is, according to the jitter data in the jitter data The average moving speed of the mobile terminal can be calculated from the shaking time and corresponding amplitude. The second set time can be set as required, such as one day, one week or one month.
步骤130,根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间。Step 130, calculating the shaking time of the mobile terminal according to the average moving speed and the set offset.
其中,所述设定偏移量可以根据一张照片中允许偏移的像素数得到,即在该设定偏移量内,拍摄的照片看起来是清楚的,没有拍糊的。Wherein, the set offset can be obtained according to the number of pixels allowed to be offset in a photo, that is, within the set offset, the captured photo looks clear and not blurred.
根据所述平均运动速度及设定偏移量,计算移动终端从原点抖动到设定偏移量时所需的时间,该时间即为抖动时间。According to the average moving speed and the set offset, the time required for the mobile terminal to shake from the origin to the set offset is calculated, and this time is the shake time.
步骤140,将所述抖动时间设置为安全快门时间。Step 140, setting the shaking time as a safe shutter time.
将所述抖动时间设置为安全快门时间,即将抖动时间替换移动终端当前的系统安全快门时间或者当前的安全快门时间,设置为新的安全快门时间。当环境光线差的时候,通过延长曝光时长到设置的安全快门时间,这样移动终端的抖动的最大幅度为设定偏移量,当抖动的幅度在设定偏移量内时,照片从开始曝光到曝光结束偏移的像素数,人眼不能直接看出来,即拍得的照片是清楚的,没有拍糊。The shaking time is set as the safe shutter time, that is, the shaking time replaces the current system safe shutter time of the mobile terminal or the current safe shutter time, and is set as a new safe shutter time. When the ambient light is poor, by extending the exposure time to the set safe shutter time, the maximum shake of the mobile terminal is the set offset. When the shake is within the set offset, the photo will be exposed from the beginning. The number of pixels shifted by the end of the exposure cannot be directly seen by the human eye, that is, the photos taken are clear and not blurred.
其中,将所述抖动时间设置为安全快门时间优选包括:Wherein, setting the shaking time as the safe shutter time preferably includes:
当所述抖动时间与系统安全快门时间之差的绝对值不大于设定阀值时,将所述抖动时间设置为安全快门时间。When the absolute value of the difference between the shaking time and the system safety shutter time is not greater than the set threshold, the shaking time is set as the safety shutter time.
当所述抖动时间在一定可以容许的时间范围内,即所述抖动时间与系统安全快门时间之差的绝对值不大于设定阀值时,才将所述抖动时间设置为安全快门时间,这样避免了将与系统安全快门时间相差较大的抖动时间设置为安全快门时间,从而避免了出现拍得的照片拍糊的情况。When the jittering time is within a certain allowable time range, that is, the absolute value of the difference between the jittering time and the system safety shutter time is not greater than the set threshold, the jittering time is set as the safety shutter time, so It avoids setting the jitter time that is greatly different from the system safe shutter time as the safe shutter time, thereby avoiding the blurring of the captured photos.
本实施例的技术方案,通过在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度,根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间,将所述抖动时间设置为安全快门时间,实现了根据用户的使用习惯形成的抖动数据设置安全快门时间,通过该安全快门时间拍得的照片不会拍糊,照片比较清晰。In the technical solution of this embodiment, when it is detected that the camera function is turned on, the jitter data of the mobile terminal is acquired and recorded at intervals of the first set time, and according to the jitter data, the average movement of the mobile terminal within the second set time is counted Speed, calculate the shaking time of the mobile terminal according to the average motion speed and the set offset, and set the shaking time as the safe shutter time, which realizes setting the safe shutter time according to the shaking data formed by the user's usage habits, through The photos taken at this safe shutter time will not be blurred, and the photos will be clearer.
在上述技术方案的基础上,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度优选包括:On the basis of the above technical solution, according to the jitter data, counting the average movement speed of the mobile terminal within the second set time preferably includes:
根据所述抖动数据,总结移动终端在拍照过程中的运动规律;According to the shake data, summarize the movement rules of the mobile terminal during the photographing process;
根据所述运动规律,计算移动终端在拍照过程中的运动速度;According to the law of motion, calculate the motion speed of the mobile terminal during the photographing process;
根据所述运动速度,统计移动终端在第二设定时间内的平均运动速度。According to the moving speed, the average moving speed of the mobile terminal within the second set time is counted.
对移动终端在第二设定时间的抖动数据进行统计,总结出移动终端在一次拍照过程中的运动规律,即可以根据抖动数据中的抖动幅度和抖动时间总结运动规律,绘制出抖动曲线;根据该抖动曲线,计算移动终端在一次拍照过程中的运动速度;根据在第二设定时间内的每次拍照过程中的运动速度,计算移动终端在第二设定时间内的平均运动速度。这样统计得到的平均运动速度比较准确。Perform statistics on the jitter data of the mobile terminal at the second set time, and summarize the motion law of the mobile terminal during a photographing process, that is, the motion law can be summarized according to the jitter amplitude and jitter time in the jitter data, and the jitter curve can be drawn; The jitter curve calculates the moving speed of the mobile terminal during a photographing process; calculates the average moving speed of the mobile terminal within the second set time according to the moving speed during each photographing process within the second set time. The average movement speed obtained by such statistics is more accurate.
在上述技术方案的基础上,计算移动终端在拍照过程中的运动速度优选包括:On the basis of the above technical solution, calculating the movement speed of the mobile terminal during the photographing process preferably includes:
根据所述运动规律,统计移动终端在拍照过程中的运动位移量及运动时间;According to the law of motion, the movement displacement and movement time of the mobile terminal during the photographing process are counted;
根据所述运动位移量和运动时间,计算移动终端在拍照过程中的运动速度。According to the movement displacement amount and the movement time, the movement speed of the mobile terminal during the photographing process is calculated.
根据所述运动规律,统计移动终端在一次拍照过程中运动位移量(即总的运动路程)及运动时间,当所述运动规律是绘制的抖动曲线时,可以明确看出运动时间,运动位移量根据抖动曲线计算得到;根据所述运动位移量和运动时间,可以计算出移动终端在该次拍照过程中的运动速度(这里的运动速度也是平均速度)。通过这样的计算方法计算得到运动速度需要的时间较短,计算速度较快。According to the law of motion, the movement displacement (i.e. the total distance of movement) and the movement time of the mobile terminal during a photographing process are counted. When the law of movement is a drawn shaking curve, the movement time, movement displacement Calculated according to the shaking curve; according to the movement displacement and movement time, the movement speed of the mobile terminal during the photographing process (the movement speed here is also the average speed) can be calculated. The time required to calculate the motion speed by such a calculation method is relatively short, and the calculation speed is relatively fast.
实施例二Embodiment two
图2是本发明实施例二提供的一种安全快门时间的设定方法的流程图,本实施例对实施例一进行了优化,将实施例一中的间隔第一设定时间获取并记录移动终端的抖动数据优化为间隔第一设定时间获取移动终端的抖动数据,当所述抖动数据中的抖动幅度在设定范围内时,记录所述抖动数据。具体包括如下步骤:Fig. 2 is a flow chart of a method for setting a safe shutter time provided by Embodiment 2 of the present invention. This embodiment optimizes Embodiment 1, and acquires and records the first interval setting time in Embodiment 1. The optimization of the jitter data of the terminal is to acquire the jitter data of the mobile terminal at intervals of a first set time, and record the jitter data when the jitter amplitude in the jitter data is within a set range. Specifically include the following steps:
步骤210,在检测到拍照功能开启时,间隔第一设定时间获取移动终端的抖动数据。Step 210, when it is detected that the camera function is turned on, acquiring shaking data of the mobile terminal at intervals of a first set time.
当移动终端检测到拍照功能开启时,获取一次移动终端的抖动数据并记录该抖动数据,然后,每间隔第一设定时间获取一次移动终端的抖动数据并记录获取到的抖动数据。所述抖动数据包括抖动的时间及相应的幅度。When the mobile terminal detects that the camera function is turned on, the shake data of the mobile terminal is acquired once and recorded, and then the shake data of the mobile terminal is acquired once every first set time and the acquired shake data is recorded. The jitter data includes jitter time and corresponding amplitude.
步骤220,当所述抖动数据中的抖动幅度在设定范围内时,记录所述抖动数据。Step 220, when the jitter amplitude in the jitter data is within a set range, record the jitter data.
当所述抖动数据中的抖动幅度超出了设定范围时,省略该抖动数据,即不记录该抖动数据,即对于抖动数据中的抖动幅度大于设定范围的最大值或者小于设定范围的最小值时,就省略,只记录抖动数据中的抖动幅度在设定范围内的抖动数据。因为抖动数据中的抖动幅度过大时,有可能是用户移动移动终端到另一位置,这并不是用户拍照时自然的抖动,因此这样的抖动数据没有意义,省略不计;抖动数据中的抖动幅度过小时,有可能是用户使用三脚架来支撑移动终端,这不符合用户自身的使用习惯,因此没有必要记录该抖动数据。When the jitter amplitude in the jitter data exceeds the set range, the jitter data is omitted, that is, the jitter data is not recorded, that is, if the jitter amplitude in the jitter data is greater than the maximum value of the set range or less than the minimum value of the set range When the value is set, it is omitted, and only the jitter data whose jitter amplitude is within the set range in the jitter data is recorded. Because when the jitter amplitude in the jitter data is too large, the user may move the mobile terminal to another location, which is not the natural jitter when the user takes a photo, so such jitter data is meaningless and omitted; the jitter amplitude in the jitter data If it is too small, the user may use a tripod to support the mobile terminal, which does not conform to the user's own usage habits, so there is no need to record the jitter data.
当记录抖动数据时,也可以统计一段时间内的抖动数据的平均幅度,如果平均幅度小于设定值,则认为移动终端相对静止,省略这段数据,不记录这段数据。When recording the jitter data, it is also possible to count the average amplitude of the jitter data within a period of time. If the average amplitude is less than the set value, the mobile terminal is considered to be relatively static, and this section of data is omitted, and this section of data is not recorded.
步骤230,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度。Step 230, according to the jitter data, calculate the average movement speed of the mobile terminal within the second set time.
步骤240,根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间。Step 240, calculating the shaking time of the mobile terminal according to the average moving speed and the set offset.
步骤250,将所述抖动时间设置为安全快门时间。Step 250, setting the shaking time as a safe shutter time.
本实施例的技术方案,通过在检测到拍照功能开启时,间隔第一设定时间获取移动终端的抖动数据,当所述抖动数据中的抖动幅度在设定范围内时,记录所述抖动数据,根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度,根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间,将所述抖动时间设置为安全快门时间,实现了根据用户的使用习惯形成的抖动数据设置安全快门时间,通过该安全快门时间拍得的照片不会拍糊,与实施例一相比,本实施例通过根据抖动幅度在设定范围内的抖动数据来设置安全快门时间,使得设置的安全快门时间更加符合用户的使用习惯,拍得的照片更加清楚。In the technical solution of this embodiment, when it is detected that the camera function is turned on, the jitter data of the mobile terminal is acquired at intervals of the first set time, and when the jitter amplitude in the jitter data is within a set range, the jitter data is recorded , according to the jitter data, count the average movement speed of the mobile terminal within the second set time, calculate the jitter time of the mobile terminal according to the average movement speed and the set offset, and set the jitter time to be safe The shutter time realizes the setting of the safe shutter time based on the shake data formed by the user's usage habits, and the photos taken through the safe shutter time will not be blurred. Compared with Embodiment 1, this embodiment sets The jitter data within the range is used to set the safe shutter time, so that the set safe shutter time is more in line with the user's usage habits, and the photos taken are clearer.
实施例三Embodiment three
图3是本发明实施例三提供的一种安全快门时间的设定装置的结构示意图,如图3所示,本实施例所述的安全快门时间的设定装置包括:抖动数据获取模块310、平均速度计算模块320、抖动时间计算模块330和快门时间设置模块340.FIG. 3 is a schematic structural diagram of a safety shutter time setting device provided in Embodiment 3 of the present invention. As shown in FIG. 3 , the safety shutter time setting device in this embodiment includes: a shaking data acquisition module 310, Average speed calculation module 320, shaking time calculation module 330 and shutter time setting module 340.
其中,抖动数据获取模块310用于在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据;Wherein, the jitter data acquisition module 310 is used to acquire and record the jitter data of the mobile terminal at intervals of the first set time when it is detected that the camera function is turned on;
平均速度统计模块320用于根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度;The average speed statistics module 320 is used to count the average movement speed of the mobile terminal within the second set time according to the jitter data;
抖动时间计算模块330用于根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间;The shaking time calculation module 330 is used to calculate the shaking time of the mobile terminal according to the average motion speed and the set offset;
快门时间设置模块340用于将所述抖动时间设置为安全快门时间。The shutter time setting module 340 is used to set the shaking time as a safe shutter time.
优选的,所述抖动数据获取模块310包括:Preferably, the jitter data acquisition module 310 includes:
抖动数据获取单元,用于在检测到拍照功能开启时,间隔第一设定时间获取移动终端的抖动数据;The shaking data acquisition unit is used to acquire the shaking data of the mobile terminal at intervals of the first set time when it is detected that the camera function is turned on;
抖动数据记录单元,用于当所述抖动数据中的抖动幅度在设定范围内时,记录所述抖动数据。The jitter data recording unit is configured to record the jitter data when the jitter amplitude in the jitter data is within a set range.
优选的,所述平均速度统计模块320包括:Preferably, the average speed statistics module 320 includes:
运动规律总结单元,用于根据所述抖动数据,总结移动终端在拍照过程中的运动规律;A motion rule summary unit, configured to summarize the motion rule of the mobile terminal during the photographing process according to the jitter data;
运动速度计算单元,用于根据所述运动规律,计算移动终端在拍照过程中的运动速度;A motion speed calculation unit, configured to calculate the motion speed of the mobile terminal during the photographing process according to the motion law;
平均速度统计单元,用于根据所述运动速度,统计移动终端在第二设定时间内的平均运动速度。The average speed statistics unit is configured to count the average movement speed of the mobile terminal within the second set time according to the movement speed.
优选的,所述运动速度计算单元具体用于:Preferably, the movement speed calculation unit is specifically used for:
根据所述运动规律,统计移动终端在拍照过程中的运动位移量及运动时间;According to the law of motion, the movement displacement and movement time of the mobile terminal during the photographing process are counted;
根据所述运动位移量和运动时间,计算移动终端在拍照过程中的运动速度。According to the movement displacement amount and the movement time, the movement speed of the mobile terminal during the photographing process is calculated.
优选的,所述快门时间设置模块330具体用于:Preferably, the shutter time setting module 330 is specifically used for:
当所述抖动时间与系统安全快门时间之差的绝对值不大于设定阀值时,将所述抖动时间设置为安全快门时间。When the absolute value of the difference between the shaking time and the system safety shutter time is not greater than the set threshold, the shaking time is set as the safety shutter time.
优选的,所述第一设定时间不大于系统安全快门时间。Preferably, the first set time is not greater than the system safety shutter time.
本实施例的技术方案,通过抖动数据获取模块在检测到拍照功能开启时,间隔第一设定时间获取并记录移动终端的抖动数据,平均速度计算模块根据所述抖动数据,统计移动终端在第二设定时间内的平均运动速度,抖动时间计算模块根据所述平均运动速度及设定偏移量,计算移动终端的抖动时间,快门时间设置模块将所述抖动时间设置为安全快门时间,实现了根据用户的使用习惯形成的抖动数据设置安全快门时间,通过该安全快门时间拍得的照片不会拍糊。In the technical solution of this embodiment, when the jitter data acquisition module detects that the camera function is turned on, the jitter data of the mobile terminal is acquired and recorded at intervals of the first set time, and the average speed calculation module counts the jitter data of the mobile terminal according to the jitter data. 2. The average motion speed within the set time, the shaking time calculation module calculates the shaking time of the mobile terminal according to the average moving speed and the set offset, and the shutter time setting module sets the shaking time as a safe shutter time to realize In order to set the safe shutter time according to the jitter data formed by the user's usage habits, the photos taken through the safe shutter time will not be blurred.
实施例四Embodiment four
本发明实施例四提供了一种移动终端,所述移动终端包括摄像头,还包括本发明任一实施例提供的安全快门时间的设定装置。Embodiment 4 of the present invention provides a mobile terminal, the mobile terminal includes a camera, and also includes the safety shutter time setting device provided in any embodiment of the present invention.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned product can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610094674.1A CN105657273B (en) | 2016-02-19 | 2016-02-19 | Setting method, device and the mobile terminal of safety shutter time |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610094674.1A CN105657273B (en) | 2016-02-19 | 2016-02-19 | Setting method, device and the mobile terminal of safety shutter time |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105657273A CN105657273A (en) | 2016-06-08 |
| CN105657273B true CN105657273B (en) | 2018-09-04 |
Family
ID=56489693
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610094674.1A Expired - Fee Related CN105657273B (en) | 2016-02-19 | 2016-02-19 | Setting method, device and the mobile terminal of safety shutter time |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105657273B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107852455B (en) * | 2016-06-17 | 2019-07-19 | 华为技术有限公司 | A method and terminal for taking pictures |
| CN108989688B (en) * | 2018-09-14 | 2019-05-31 | 成都数字天空科技有限公司 | Virtual camera anti-fluttering method, device, electronic equipment and readable storage medium storing program for executing |
| CN109998448A (en) * | 2019-04-16 | 2019-07-12 | 深圳开立生物医疗科技股份有限公司 | A kind of endoscope and its camera control method and system |
| CN110266966A (en) * | 2019-06-28 | 2019-09-20 | Oppo广东移动通信有限公司 | Image generation method and device, electronic equipment and computer readable storage medium |
| CN112189334A (en) * | 2019-09-18 | 2021-01-05 | 深圳市大疆创新科技有限公司 | Shutter speed adjusting method, safety shutter calibrating method, portable equipment and unmanned aerial vehicle |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5237365A (en) * | 1990-10-15 | 1993-08-17 | Olympus Optical Co., Ltd. | Exposure control apparatus for camera with shake countermeasure |
| CN101729665A (en) * | 2009-12-11 | 2010-06-09 | 惠州Tcl移动通信有限公司 | Camera cellphone with tremble prevention function and tremble prevention method in photographing process thereof |
| CN102055899A (en) * | 2009-11-11 | 2011-05-11 | 华晶科技股份有限公司 | Digital image device and personalized safe shutter value setting method thereof |
| CN102694979A (en) * | 2011-03-22 | 2012-09-26 | 佳能株式会社 | Camera and control method of the same |
| CN103051841A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for controlling exposure time |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7509038B2 (en) * | 2005-09-29 | 2009-03-24 | Seiko Epson Corporation | Determining maximum exposure time to limit motion blur during image capture |
| US7734161B2 (en) * | 2007-04-19 | 2010-06-08 | Avago Technologies Ecbu Ip (Singapore) Pte. Ltd. | Image stabilization with adaptive shutter control |
| JP2009194820A (en) * | 2008-02-18 | 2009-08-27 | Nikon Corp | Camera |
-
2016
- 2016-02-19 CN CN201610094674.1A patent/CN105657273B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5237365A (en) * | 1990-10-15 | 1993-08-17 | Olympus Optical Co., Ltd. | Exposure control apparatus for camera with shake countermeasure |
| CN102055899A (en) * | 2009-11-11 | 2011-05-11 | 华晶科技股份有限公司 | Digital image device and personalized safe shutter value setting method thereof |
| CN101729665A (en) * | 2009-12-11 | 2010-06-09 | 惠州Tcl移动通信有限公司 | Camera cellphone with tremble prevention function and tremble prevention method in photographing process thereof |
| CN102694979A (en) * | 2011-03-22 | 2012-09-26 | 佳能株式会社 | Camera and control method of the same |
| CN103051841A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for controlling exposure time |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105657273A (en) | 2016-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105657273B (en) | Setting method, device and the mobile terminal of safety shutter time | |
| EP3443736B1 (en) | Method and apparatus for video content stabilization | |
| US7643062B2 (en) | Method and system for deblurring an image based on motion tracking | |
| CN108632596B (en) | Photographic device and method of operating the photographic device | |
| CN104104870B (en) | Filming control method, imaging control device and capture apparatus | |
| CN106331464B (en) | Filming control method, imaging control device and user equipment | |
| CN103733131B (en) | Shake amount detection device, imaging device and shake amount detection method | |
| JP6276644B2 (en) | Image blur correction apparatus, image blur correction method, program, and storage medium | |
| CN110493522A (en) | Anti-fluttering method and device, electronic equipment, computer readable storage medium | |
| CN104159027A (en) | Method and device for automatically taking pictures according to image changing speed | |
| CN204859339U (en) | A front auto-focus camera and electronic equipment | |
| CN107613190B (en) | Photographing method and terminal | |
| CN105635559A (en) | Terminal shooting control method and device | |
| US20120092514A1 (en) | Image-capture device, a method of correcting images, and a non-transitory computer-readable storage medium | |
| CN108260360A (en) | Scene depth computational methods, device and terminal | |
| CN107231522A (en) | A mobile terminal, photographing method thereof, and computer-readable storage medium | |
| US20140118606A1 (en) | Smart cameras | |
| CN104660915B (en) | Panorama is taken pictures the control method and device of exposure | |
| CN108476286B (en) | Image output method and electronic equipment | |
| TW201437965A (en) | Image blurring avoiding method and image processing chip thereof | |
| US20090040318A1 (en) | Image stabilization with user feedback | |
| US20160373648A1 (en) | Methods and systems for capturing frames based on device information | |
| TWI413003B (en) | Face recognition of the automatic camera method | |
| JP2014206662A5 (en) | ||
| TWI424739B (en) | Electronic apparatus, image capturing apparatus and control method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180904 |