WO2016026229A1 - Focusing control method and apparatus - Google Patents

Focusing control method and apparatus Download PDF

Info

Publication number
WO2016026229A1
WO2016026229A1 PCT/CN2014/091443 CN2014091443W WO2016026229A1 WO 2016026229 A1 WO2016026229 A1 WO 2016026229A1 CN 2014091443 W CN2014091443 W CN 2014091443W WO 2016026229 A1 WO2016026229 A1 WO 2016026229A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
orientation
shooting
motor
photographing
Prior art date
Application number
PCT/CN2014/091443
Other languages
French (fr)
Chinese (zh)
Inventor
张文娜
李黎国
成嘉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016026229A1 publication Critical patent/WO2016026229A1/en

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • G03B13/34Power focusing
    • G03B13/36Autofocus systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • the present invention relates to the field of image processing, and in particular to a focus control method and apparatus.
  • Focus plays a very important role in the technical fields of camera, photo and scanning.
  • the movement of the lens during focusing is driven by the voice coil motor.
  • the voice coil motor drives the lens to a different position to achieve the focusing process. Due to the influence of static friction, the motor will be driven only when the electromagnetic force generated by the drive current is greater than the static friction.
  • the current required to overcome this static friction is called the initial motor current.
  • the direction of the user's handheld device is constantly changing, and the static friction of the motor in the camera module changes, resulting in different starting currents required by the motor.
  • the motor starting current is set to a fixed value: (1) When the fixed current value is greater than the initial current value, the motor is subjected to an excessive driving force, resulting in blurring of the scene at infinity. (2) When the fixed current value is smaller than the initial current value, the motor receives a small driving force, causing it to take a long time out of the nonlinear region and lower the focusing speed.
  • a main object of the embodiments of the present invention is to provide a focus control method and apparatus for solving problems such as poor shooting performance and slow focus speed due to fixed initial current of the motor.
  • a focus control method includes: acquiring a current photographing orientation of a photographing device; determining whether the current photographing orientation is stable; determining the current shot When the photographing orientation is stable, a motor initial current corresponding to the current photographing orientation is acquired; and the motor is driven to perform focusing according to the motor initial current.
  • determining whether the current shooting orientation is stable comprises: obtaining a difference between the current shooting orientation and a shooting orientation of the first N shootings, where N is a natural number not less than 1; and an absolute value of the M difference is less than
  • N is a natural number not less than 1
  • M an absolute value of the M difference is less than
  • acquiring the initial motor current corresponding to the current photographing orientation comprises: comparing whether the current photographing orientation is consistent with one or more stable historical photographing orientations in the history record; when the judgment result indicates inconsistency, according to The stabilized current shooting orientation determines the initial motor current.
  • the motor initial current corresponding to the historical shooting direction is taken as the motor initial current corresponding to the current shooting direction.
  • determining whether the current shooting orientation is consistent with one or more stable historical shooting directions in the historical record comprises: obtaining an absolute value of the difference between the current shooting orientation and the historical shooting orientation; When the absolute value of the difference is less than the second preset threshold, determining that the current shooting direction is consistent with the historical shooting direction; otherwise, determining that the current shooting direction is consistent with the historical shooting direction.
  • acquiring the motor initial current corresponding to the current photographing orientation comprises one of: determining the motor initial current according to a preset correspondence relationship between the photographing orientation and the motor initial current; and a preset function according to the photographing orientation and the motor initial current. The relationship determines the initial motor current.
  • the photographing orientation includes: a placement position and/or an angle of the photographing device at the time of photographing.
  • a focus control apparatus includes: a first acquisition module configured to acquire a current photographing orientation of the photographing device; a determination module configured to determine whether the current photographing orientation is stable; The acquiring module is configured to acquire a motor initial current corresponding to the current photographing orientation when determining that the current photographing orientation is stable; and the control module is configured to perform focusing according to the motor initial current control motor driving.
  • the determining module includes: an acquiring unit configured to acquire a difference between the current shooting orientation and a shooting orientation of the first N shots, where N is a natural number not less than 1; and the determining unit is set to be M times When the absolute value of the difference is less than the first preset threshold, it is determined that the current photographing orientation is in a stable state; otherwise, it is determined that the current photographing orientation is in an unstable state, where M ⁇ N.
  • the second obtaining module includes: a comparing unit configured to compare whether the current photographing orientation is consistent with one or more stable historical photographing orientations in the history record; and the determining unit is configured to indicate in the judgment result
  • the initial motor current is determined based on the current shooting orientation after stabilization.
  • the determining unit is configured to set a motor initial current corresponding to the historical shooting direction as a motor initial current corresponding to the current shooting direction when the determination result indication is consistent.
  • the technical means for determining the initial motor current corresponding to the current shooting orientation according to the current shooting orientation after the stabilization is adopted, and the problem that the shooting effect is poor due to the fixed initial current of the motor and the focusing speed is slow is solved in the related art. , thus effectively improving the shooting effect and improving the focusing speed at the time of shooting.
  • FIG. 1 is a flow chart of a focus control method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a focus control apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing another structure of a focus control device according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a focus control method in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flow chart of a focus control method in accordance with an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step S102 acquiring a current photographing orientation of the photographing device
  • Step S104 determining whether the current shooting orientation is stable
  • Step S106 when it is determined that the current shooting orientation is stable, acquiring a motor initial current corresponding to the current shooting orientation;
  • step S108 the motor is driven to perform focusing according to the motor initial current.
  • the initial motor current can be determined according to the stabilized shooting orientation, and thus the motor driving for focusing is controlled, the shooting effect due to the initial value of the motor initial value can be fundamentally avoided, and Problems such as slower focusing speed.
  • step S104 may be expressed in the following form, but is not limited thereto:
  • N is a natural number not less than 1;
  • N and M may be set by the user or the manufacturer according to actual conditions, but are not limited thereto.
  • step S106 There are a plurality of implementations of the step S106.
  • the following process may be implemented: comparing whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the historical record; At the time, the initial motor current is determined based on the current shooting orientation after stabilization.
  • the motor initial current corresponding to the above-described history shooting direction may be used as the motor initial current corresponding to the current shooting direction. In this way, it is avoided to query the initial motor current every time and save the query time of the initial motor current.
  • whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the history may be determined by:
  • Step S106 can be implemented in various manners, for example, by one of the following methods: (1) determining the initial motor current according to a preset correspondence relationship between the shooting orientation and the initial motor current; (2) determining the initial current according to the shooting orientation and the motor.
  • the preset function relationship determines the initial motor current described above.
  • the above-mentioned photographing orientation may include, but is not limited to, a placement position and/or an angle of the photographing device at the time of photographing.
  • S201 Record device location information that is read N times before, and calculate an absolute value of a difference between each adjacent two location information;
  • S203 Compare the absolute value of the position information difference in S201 with the stable threshold set by S202. If the absolute value of the difference M times is less than or equal to the stability threshold, it is judged that the device position has stabilized, and the device position information is recorded; otherwise, the device position is still changed, and S1 and S2 are repeated.
  • the position information after the device is stabilized is compared with the position information when the device is stable last time, and it is determined whether the device position information changes. If the device location information is the same as the last device location information, proceed to S6 to directly complete the focus operation according to the previous focus information; if the device location information is different from the previous device location information, proceed to S4.
  • S303 Compare the last stable information in S301 with the current stable information, and calculate an absolute value of the difference. If the absolute value is less than or equal to the jitter threshold, it is determined that the device location information has not changed, and S6 is performed to directly complete the focus; if the absolute value is greater than the jitter threshold, the device position is determined to be changed, and the updata command and the current location information of the device are sent. .
  • S402. Calculate the initial motor current using the relationship table or the function relationship in S401 according to the current position information in S303.
  • the motor drives the feedback information to the focusing algorithm, and obtains a suitable focusing scheme, such as a focus step value and a step_num, and then performs a focusing operation through a focus drive.
  • a suitable focusing scheme such as a focus step value and a step_num
  • a focus control device is further provided for implementing the above method. As shown in FIG. 2, the device includes:
  • the first obtaining module 20 is configured to acquire a current photographing orientation of the photographing device
  • the determining module 22 is connected to the first obtaining module 20 and configured to determine whether the current shooting orientation is stable;
  • the second obtaining module 24 is connected to the determining module 22, and configured to acquire a motor initial current corresponding to the current shooting direction when determining that the current shooting orientation is stable;
  • the control module 26 is coupled to the second acquisition module 24 and is configured to control the motor drive for focusing in accordance with the motor initial current.
  • the determination module 22 can include the following processing units:
  • the obtaining unit 220 is configured to acquire a difference between the current shooting orientation and the shooting orientation of the previous N shootings, where N is a natural number not less than 1;
  • the determining unit 222 is connected to the obtaining unit 220, and is configured to determine that the current shooting direction is in a stable state when the absolute values of the M times difference values are all smaller than the first preset threshold, otherwise, determining that the current shooting direction is in an unstable state Where M ⁇ N.
  • the second obtaining module 24 includes: a comparing unit 240 configured to compare whether the current shooting orientation is consistent with one or more stable historical shooting directions in the history record; the determining unit 242 is configured to be When the judgment result indicates inconsistency, the motor initial current is determined based on the stabilized current photographing orientation.
  • the determining unit 242 is configured to set a motor initial current corresponding to the historical shooting direction as a motor initial current corresponding to the current shooting direction when the determination result indication is consistent
  • each of the above modules may be implemented by software or hardware.
  • the following forms may be implemented, but are not limited thereto: each of the above modules is located in the same processor, or each of the above modules is located Different processors.
  • this embodiment describes a focus control method for improving camera focus speed and accuracy, including the following steps:
  • Step S402. Turn on the camera and enter the camera preview mode to read the position information of the position sensor such as the gyroscope.
  • Step S404 By comparing the read location information with the previous N times, it is determined whether the location of the current user's handheld or fixed device has stabilized.
  • the stability threshold can be set according to the requirements. If the threshold is set too high, the probability of being judged to be stable is lowered, the time for stable judgment is increased, and the focus speed is slowed down. If the threshold is set too small, it is easy to judge that the position is stable, misjudgment is generated, and the judgment is continuously issued. Focus action.
  • the absolute value of the difference between each adjacent two values is used, and the absolute value is compared with the set stable threshold. If there is a continuous M-time difference absolute value less than or equal to the stability threshold, it is judged that the device position has been stabilized, and the current device position information is recorded. Otherwise, the device location is still being adjusted and continues to read the current location information of the device.
  • the value of M can be set according to user needs.
  • the M setting is too large, it is judged that the probability of the position is stable is small, the waiting time is long, and the focusing speed is slowed down; if the M setting is too small, the small amplitude jitter is easily judged as the positional stability, the number of focusing times is increased, and it is not conducive to Accurate focus.
  • Step S406. Determine whether the current device location information and the location information when the last device is stable are the same.
  • Step S408 Obtain a corresponding motor initial current according to the location information of the current device.
  • Step S410 Transfer the initial motor current information to the motor drive.
  • Step S412 The motor drive feeds back the initial motor current information to the focusing algorithm, and obtains a suitable focusing scheme by using an appropriate algorithm, such as a focus step value and a step_num, and then performs a focusing operation by focusing driving.
  • an appropriate algorithm such as a focus step value and a step_num
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the technical means for determining the initial motor current corresponding to the current shooting orientation according to the current shooting orientation after the stabilization is adopted, and the problem that the shooting effect is poor due to the fixed initial current of the motor and the focusing speed is slow is solved in the related art. , thus effectively improving the shooting effect and improving the focusing speed at the time of shooting.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • Lens Barrels (AREA)

Abstract

Provided are a focusing control method and apparatus. The focusing control method comprises: acquiring a current shooting position of a shooting apparatus; judging whether the current shooting position is stable or not; acquiring a motor initial current corresponding to the current shooting position when it is determined that the current shooting position is stable; and controlling a motor to drive for focusing according to the motor initial current.By adopting the technical scheme provided in the present invention, the problems that a shooting effect is poor and a focusing speed is relatively low due to a fixed motor initial current are solved, thereby effectively improving the shooting effect, and increasing the focusing speed during shooting.

Description

对焦控制方法及装置Focus control method and device 技术领域Technical field
本发明涉及图像处理领域,具体而言,涉及一种对焦控制方法及装置。The present invention relates to the field of image processing, and in particular to a focus control method and apparatus.
背景技术Background technique
随着摄像技术的快速发展以及用户对高质量图像的需求,照相机(camera)拍照技术面临着越来越高的要求,其中对焦技术成为不可忽视的重要领域。在图像拍摄过程中,拍摄装置和拍摄物体之间的位置是相对变化的;为了使预览和拍照图像保持清晰,取景过程中需要不断调整镜头的位置,这种调整镜头位置获得准确焦点的方式称为对焦。With the rapid development of camera technology and the demand for high-quality images, camera technology is facing increasing demands, and focus technology has become an important area that cannot be ignored. During image capture, the position between the camera and the subject is relatively variable; in order to keep the preview and camera images clear, the position of the lens needs to be constantly adjusted during the framing process. For focusing.
对焦在摄像、拍照以及扫描等技术领域起着非常重要的作用。对焦过程中镜头的移动是通过音圈马达带动的。通过对音圈马达输入不同的电流值,音圈马达将镜头驱动到不同的位置,实现对焦过程。由于受静摩擦力的影响,只有当驱动电流产生的电磁力大于静摩擦力时,马达才会被驱动。克服该静摩擦力需要的电流称为马达初始电流。Focus plays a very important role in the technical fields of camera, photo and scanning. The movement of the lens during focusing is driven by the voice coil motor. By inputting different current values to the voice coil motor, the voice coil motor drives the lens to a different position to achieve the focusing process. Due to the influence of static friction, the motor will be driven only when the electromagnetic force generated by the drive current is greater than the static friction. The current required to overcome this static friction is called the initial motor current.
在拍摄过程中,用户手持设备的方向不断发生变化,camera模组中马达的静摩擦力随之变化,导致马达需要的起始电流不同。如果在对焦过程中,马达起始电流设置为固定的值:(1)当该固定电流值大于初始电流值时,马达受到过大的驱动力,导致无穷远处景物模糊。(2)当该固定电流值小于初始电流值时,马达受到较小的驱动力,导致其在走出非线性区的时间较长,降低对焦速度。During the shooting process, the direction of the user's handheld device is constantly changing, and the static friction of the motor in the camera module changes, resulting in different starting currents required by the motor. If during the focusing process, the motor starting current is set to a fixed value: (1) When the fixed current value is greater than the initial current value, the motor is subjected to an excessive driving force, resulting in blurring of the scene at infinity. (2) When the fixed current value is smaller than the initial current value, the motor receives a small driving force, causing it to take a long time out of the nonlinear region and lower the focusing speed.
针对现有技术中由于马达初始电流固定导致拍摄效果不佳以及对焦速度较慢等问题,目前尚未提出有效的解决方案。In view of the problems in the prior art that the initial effect of the motor is fixed, the shooting effect is poor, and the focusing speed is slow, etc., an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种对焦控制方法及装置,以解决由于马达初始电流固定导致拍摄效果不佳以及对焦速度较慢等问题。A main object of the embodiments of the present invention is to provide a focus control method and apparatus for solving problems such as poor shooting performance and slow focus speed due to fixed initial current of the motor.
为了实现上述目的,根据本发明的一个实施例,提供了一种对焦控制方法,包括:获取拍摄装置的当前拍摄方位;判断所述当前拍摄方位是否稳定;在判定所述当前拍 摄方位稳定时,获取与所述当前拍摄方位对应的马达初始电流;按照所述马达初始电流控制马达驱动进行对焦。In order to achieve the above object, according to an embodiment of the present invention, a focus control method includes: acquiring a current photographing orientation of a photographing device; determining whether the current photographing orientation is stable; determining the current shot When the photographing orientation is stable, a motor initial current corresponding to the current photographing orientation is acquired; and the motor is driven to perform focusing according to the motor initial current.
优选地,判断所述当前拍摄方位是否稳定包括:获取所述当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;在M次差值的绝对值均小于第一预设阈值时,则判定所述当前拍摄方位处于稳定状态,否则,判定所述当前拍摄方位处于不稳定状态,其中,M≤N。Preferably, determining whether the current shooting orientation is stable comprises: obtaining a difference between the current shooting orientation and a shooting orientation of the first N shootings, where N is a natural number not less than 1; and an absolute value of the M difference is less than When the first preset threshold is used, it is determined that the current shooting orientation is in a stable state; otherwise, it is determined that the current shooting orientation is in an unstable state, where M≤N.
优选地,获取与所述当前拍摄方位对应的马达初始电流,包括:比较所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;在判断结果指示不一致时,根据稳定后的当前拍摄方位确定所述马达初始电流。Preferably, acquiring the initial motor current corresponding to the current photographing orientation comprises: comparing whether the current photographing orientation is consistent with one or more stable historical photographing orientations in the history record; when the judgment result indicates inconsistency, according to The stabilized current shooting orientation determines the initial motor current.
优选地,在所述判断结果指示一致时,将与所述历史拍摄方位对应的马达初始电流作为与所述当前拍摄方位对应的马达初始电流。Preferably, when the determination result indicates the coincidence, the motor initial current corresponding to the historical shooting direction is taken as the motor initial current corresponding to the current shooting direction.
优选地,判断所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致,包括:获取所述当前拍摄方位与所述历史拍摄方位的差值绝对值;在所述差值绝对值小于第二预设阈值时,确定所述当前拍摄方位与所述历史拍摄方位一致,否则,确定所述当前拍摄方位与所述历史拍摄方位一致。Preferably, determining whether the current shooting orientation is consistent with one or more stable historical shooting directions in the historical record comprises: obtaining an absolute value of the difference between the current shooting orientation and the historical shooting orientation; When the absolute value of the difference is less than the second preset threshold, determining that the current shooting direction is consistent with the historical shooting direction; otherwise, determining that the current shooting direction is consistent with the historical shooting direction.
优选地,获取与所述当前拍摄方位对应的马达初始电流包括以下之一:根据拍摄方位与马达初始电流的预设对应关系确定所述马达初始电流;根据拍摄方位与马达初始电流的预设函数关系确定所述马达初始电流。Preferably, acquiring the motor initial current corresponding to the current photographing orientation comprises one of: determining the motor initial current according to a preset correspondence relationship between the photographing orientation and the motor initial current; and a preset function according to the photographing orientation and the motor initial current. The relationship determines the initial motor current.
优选地,所述拍摄方位包括:所述拍摄装置在拍摄时的摆放位置和/或角度。Preferably, the photographing orientation includes: a placement position and/or an angle of the photographing device at the time of photographing.
根据本发明的另一个实施例,提供了一种对焦控制装置,包括:第一获取模块,设置为获取拍摄装置的当前拍摄方位;判断模块,设置为判断所述当前拍摄方位是否稳定;第二获取模块,设置为在判定所述当前拍摄方位稳定时,获取与所述当前拍摄方位对应的马达初始电流;控制模块,设置为按照所述马达初始电流控制马达驱动进行对焦。According to another embodiment of the present invention, a focus control apparatus includes: a first acquisition module configured to acquire a current photographing orientation of the photographing device; a determination module configured to determine whether the current photographing orientation is stable; The acquiring module is configured to acquire a motor initial current corresponding to the current photographing orientation when determining that the current photographing orientation is stable; and the control module is configured to perform focusing according to the motor initial current control motor driving.
优选地,所述判断模块,包括:获取单元,设置为获取所述当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;判断单元,设置为在M次差值的绝对值均小于第一预设阈值时,则判定所述当前拍摄方位处于稳定状态,否则,判定所述当前拍摄方位处于不稳定状态,其中,M≤N。 Preferably, the determining module includes: an acquiring unit configured to acquire a difference between the current shooting orientation and a shooting orientation of the first N shots, where N is a natural number not less than 1; and the determining unit is set to be M times When the absolute value of the difference is less than the first preset threshold, it is determined that the current photographing orientation is in a stable state; otherwise, it is determined that the current photographing orientation is in an unstable state, where M≤N.
优选地,所述第二获取模块,包括:比较单元,设置为比较所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;确定单元,设置为在判断结果指示不一致时,根据稳定后的当前拍摄方位确定所述马达初始电流。Preferably, the second obtaining module includes: a comparing unit configured to compare whether the current photographing orientation is consistent with one or more stable historical photographing orientations in the history record; and the determining unit is configured to indicate in the judgment result In case of inconsistency, the initial motor current is determined based on the current shooting orientation after stabilization.
优选地,所述确定单元,设置为在所述判断结果指示一致时,将与所述历史拍摄方位对应的马达初始电流作为与所述当前拍摄方位对应的马达初始电流。Preferably, the determining unit is configured to set a motor initial current corresponding to the historical shooting direction as a motor initial current corresponding to the current shooting direction when the determination result indication is consistent.
通过本发明实施例,采用根据稳定后的当前拍摄方位确定与当前拍摄方位对应的马达初始电流的技术手段,解决了相关技术中由于马达初始电流固定导致拍摄效果不佳以及对焦速度较慢等问题,从而有效改善了拍摄效果,提高了拍摄时的对焦速度。According to the embodiment of the present invention, the technical means for determining the initial motor current corresponding to the current shooting orientation according to the current shooting orientation after the stabilization is adopted, and the problem that the shooting effect is poor due to the fixed initial current of the motor and the focusing speed is slow is solved in the related art. , thus effectively improving the shooting effect and improving the focusing speed at the time of shooting.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为根据本发明实施例的对焦控制方法的流程图;1 is a flow chart of a focus control method according to an embodiment of the present invention;
图2为根据本发明实施例的对焦控制装置的结构框图;2 is a block diagram showing the structure of a focus control apparatus according to an embodiment of the present invention;
图3为根据本发明实施例的对焦控制装置的另一结构框图;3 is a block diagram showing another structure of a focus control device according to an embodiment of the present invention;
图4为根据本发明优选实施例的对焦控制方法的流程图。4 is a flow chart of a focus control method in accordance with a preferred embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
图1为根据本发明实施例的对焦控制方法的流程图。如图1所示,该方法包括:1 is a flow chart of a focus control method in accordance with an embodiment of the present invention. As shown in Figure 1, the method includes:
步骤S102,获取拍摄装置的当前拍摄方位;Step S102, acquiring a current photographing orientation of the photographing device;
步骤S104,判断上述当前拍摄方位是否稳定;Step S104, determining whether the current shooting orientation is stable;
步骤S106,在判定上述当前拍摄方位稳定时,获取与上述当前拍摄方位对应的马达初始电流;Step S106, when it is determined that the current shooting orientation is stable, acquiring a motor initial current corresponding to the current shooting orientation;
步骤S108,按照上述马达初始电流控制马达驱动进行对焦。 In step S108, the motor is driven to perform focusing according to the motor initial current.
通过上述各个处理步骤,由于可以根据稳定后的拍摄方位确定马达初始电流,进而控制用于对焦的马达驱动,因此,可以从根本上避免由于马达初始电流为固定值导致的拍摄效果不佳,以及对焦速度较慢等问题。Through the above various processing steps, since the initial motor current can be determined according to the stabilized shooting orientation, and thus the motor driving for focusing is controlled, the shooting effect due to the initial value of the motor initial value can be fundamentally avoided, and Problems such as slower focusing speed.
在一个优选实施例中,步骤S104中判断过程可以表现为以下形式,但不限于此:In a preferred embodiment, the determining process in step S104 may be expressed in the following form, but is not limited thereto:
获取当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;Obtain the difference between the current shooting orientation and the shooting orientation of the previous N shots, and N is a natural number not less than 1;
在M次差值的绝对值均小于第一预设阈值时,则判定上述当前拍摄方位处于稳定状态,否则,判定上述当前拍摄方位处于不稳定状态,其中,M≤N。其中,N和M的取值可以根据实际情况由用户或者厂商自行设定,但不限于此。When the absolute value of the M times difference is less than the first preset threshold, it is determined that the current shooting direction is in a stable state; otherwise, it is determined that the current shooting direction is in an unstable state, where M≤N. The values of N and M may be set by the user or the manufacturer according to actual conditions, but are not limited thereto.
步骤S106的实现方式有多种,在一个优选实施方式中,可以采用以下过程实现:比较上述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;在判断结果指示不一致时,根据稳定后的当前拍摄方位确定上述马达初始电流。There are a plurality of implementations of the step S106. In a preferred embodiment, the following process may be implemented: comparing whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the historical record; At the time, the initial motor current is determined based on the current shooting orientation after stabilization.
为了提高拍摄过程中的对焦速度,在上述判断结果指示一致时,可以将与上述历史拍摄方位对应的马达初始电流作为与上述当前拍摄方位对应的马达初始电流。这样,避免了每次均要查询马达初始电流,节省马达初始电流的查询时间。In order to improve the focusing speed during shooting, when the determination result indications match, the motor initial current corresponding to the above-described history shooting direction may be used as the motor initial current corresponding to the current shooting direction. In this way, it is avoided to query the initial motor current every time and save the query time of the initial motor current.
在一个优选实施过程中,可以通过以下方式判断上述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致:In a preferred implementation, whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the history may be determined by:
获取上述当前拍摄方位与上述历史拍摄方位的差值绝对值;在上述差值绝对值小于第二预设阈值时,确定上述当前拍摄方位与上述历史拍摄方位一致,否则,确定上述当前拍摄方位与上述历史拍摄方位一致。Obtaining an absolute value of the difference between the current shooting orientation and the historical shooting orientation; determining that the current shooting orientation is consistent with the historical shooting orientation when the absolute value of the difference is less than the second preset threshold; otherwise, determining the current shooting orientation and The above historical shooting directions are the same.
步骤S106的实现方式有多种,例如可以通过以下之一方式确定:(1)根据拍摄方位与马达初始电流的预设对应关系确定上述马达初始电流;(2)根据拍摄方位与马达初始电流的预设函数关系确定上述马达初始电流。Step S106 can be implemented in various manners, for example, by one of the following methods: (1) determining the initial motor current according to a preset correspondence relationship between the shooting orientation and the initial motor current; (2) determining the initial current according to the shooting orientation and the motor. The preset function relationship determines the initial motor current described above.
优选地,上述拍摄方位可以包括但不限于,拍摄装置在拍摄时的摆放位置和/或角度。Preferably, the above-mentioned photographing orientation may include, but is not limited to, a placement position and/or an angle of the photographing device at the time of photographing.
上述方法实施例的一个优选实施过程如下:A preferred implementation of the above method embodiment is as follows:
S1、开启摄像头,进入相机预览模式后,读取陀螺仪等位置传感器的位置信息。 S1. Turn on the camera and enter the camera preview mode to read the position information of the position sensor such as the gyroscope.
S2、通过读取的位置信息,与前N次位置进行对比,判断当前用户手持或者固定设备的位置是否已经稳定;如果设备的位置不稳定,回到S1,继续读取位置信息;如果当前设备位置稳定,则进行S3。S2, comparing the position information with the previous N times to determine whether the position of the current user's handheld or fixed device has stabilized; if the position of the device is unstable, return to S1 and continue to read the location information; if the current device If the position is stable, proceed to S3.
S201、记录前N次读取的设备位置信息,计算每相邻两个位置信息之间差值的绝对值;S201: Record device location information that is read N times before, and calculate an absolute value of a difference between each adjacent two location information;
S202、设置稳定阈值;S202. Set a stability threshold.
S203、用S201中的位置信息差值的绝对值与S202设置的稳定阈值进行对比。如果连续M次差值绝对值小于或者等于稳定阈值,则判断设备位置已经稳定,记录该设备位置信息;否则判断设备位置仍在变化,重复S1和S2。S203. Compare the absolute value of the position information difference in S201 with the stable threshold set by S202. If the absolute value of the difference M times is less than or equal to the stability threshold, it is judged that the device position has stabilized, and the device position information is recorded; otherwise, the device position is still changed, and S1 and S2 are repeated.
S3、设备稳定之后的位置信息与上次设备稳定时的位置信息进行对比,判断设备位置信息是否发生变化。如果设备位置信息与上次设备位置信息相同,则进行S6,直接根据上次的对焦信息完成对焦动作;如果设备位置信息与上次设备位置信息不同,则进行S4。S3. The position information after the device is stabilized is compared with the position information when the device is stable last time, and it is determined whether the device position information changes. If the device location information is the same as the last device location information, proceed to S6 to directly complete the focus operation according to the previous focus information; if the device location information is different from the previous device location information, proceed to S4.
S301、记录上次设备稳定位置信息;S301. Record last device stable position information;
S302、设置抖动阈值;S302. Set a jitter threshold.
S303、将S301中上次稳定信息与本次稳定信息进行对比,计算得到差值的绝对值。如果该绝对值小于或者等于抖动阈值,则判断设备位置信息没有发生变化,进行S6,直接完成对焦;如果该绝对值大于抖动阈值,则判断设备位置发生变化,下发updata命令和设备当前位置信息。S303. Compare the last stable information in S301 with the current stable information, and calculate an absolute value of the difference. If the absolute value is less than or equal to the jitter threshold, it is determined that the device location information has not changed, and S6 is performed to directly complete the focus; if the absolute value is greater than the jitter threshold, the device position is determined to be changed, and the updata command and the current location information of the device are sent. .
S4、通过查表法(位置信息与马达初始电流之间的关系表)或者函数计算(位置信息与马达初始电流之间的函数关系),根据当前设备的位置信息获得对应的马达初始电流。S4, obtaining a corresponding initial motor current according to the position information of the current device by a table lookup method (a table of relationship between position information and initial motor current) or a function calculation (a functional relationship between position information and initial motor current).
S401、设置位置信息和马达初始电流之间的关系表,或者位置信息与马达初始电流之间的函数关系;S401. Set a relationship table between the position information and the initial current of the motor, or a function relationship between the position information and the initial current of the motor;
S402、根据S303中的当前位置信息,使用S401中的关系表或者函数关系计算得到马达初始电流。S402. Calculate the initial motor current using the relationship table or the function relationship in S401 according to the current position information in S303.
S5、将马达初始电流信息传递给马达驱动。 S5. Transfer the initial motor current information to the motor drive.
S6、马达驱动反馈信息到对焦算法,获得合适的对焦方案,例如对焦step值和step_num等,再通过对焦驱动完成对焦动作。S6, the motor drives the feedback information to the focusing algorithm, and obtains a suitable focusing scheme, such as a focus step value and a step_num, and then performs a focusing operation through a focus drive.
在本实施例中,还提供了一种对焦控制装置,用于实现上述方法,如图2所示,该装置包括:In this embodiment, a focus control device is further provided for implementing the above method. As shown in FIG. 2, the device includes:
第一获取模块20,设置为获取拍摄装置的当前拍摄方位;The first obtaining module 20 is configured to acquire a current photographing orientation of the photographing device;
判断模块22,连接至第一获取模块20,设置为判断上述当前拍摄方位是否稳定;The determining module 22 is connected to the first obtaining module 20 and configured to determine whether the current shooting orientation is stable;
第二获取模块24,连接至判断模块22,设置为在判定上述当前拍摄方位稳定时,获取与上述当前拍摄方位对应的马达初始电流;The second obtaining module 24 is connected to the determining module 22, and configured to acquire a motor initial current corresponding to the current shooting direction when determining that the current shooting orientation is stable;
控制模块26,连接至第二获取模块24,设置为按照上述马达初始电流控制马达驱动进行对焦。The control module 26 is coupled to the second acquisition module 24 and is configured to control the motor drive for focusing in accordance with the motor initial current.
在一个优选实施例中,如图3所示,判断模块22可以包括以下处理单元:In a preferred embodiment, as shown in FIG. 3, the determination module 22 can include the following processing units:
获取单元220,设置为获取上述当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;The obtaining unit 220 is configured to acquire a difference between the current shooting orientation and the shooting orientation of the previous N shootings, where N is a natural number not less than 1;
判断单元222,连接至获取单元220,设置为在M次差值的绝对值均小于第一预设阈值时,则判定上述当前拍摄方位处于稳定状态,否则,判定上述当前拍摄方位处于不稳定状态,其中,M≤N。The determining unit 222 is connected to the obtaining unit 220, and is configured to determine that the current shooting direction is in a stable state when the absolute values of the M times difference values are all smaller than the first preset threshold, otherwise, determining that the current shooting direction is in an unstable state Where M ≤ N.
在本实施例中,第二获取模块24,包括:比较单元240,设置为比较上述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;确定单元242,设置为在判断结果指示不一致时,根据稳定后的当前拍摄方位确定上述马达初始电流。In this embodiment, the second obtaining module 24 includes: a comparing unit 240 configured to compare whether the current shooting orientation is consistent with one or more stable historical shooting directions in the history record; the determining unit 242 is configured to be When the judgment result indicates inconsistency, the motor initial current is determined based on the stabilized current photographing orientation.
上述确定单元242,设置为在上述判断结果指示一致时,将与上述历史拍摄方位对应的马达初始电流作为与上述当前拍摄方位对应的马达初始电流The determining unit 242 is configured to set a motor initial current corresponding to the historical shooting direction as a motor initial current corresponding to the current shooting direction when the determination result indication is consistent
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下形式实现,但不限于此:上述各个模块均位于同一处理器中,或者,上述各个模块分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the following forms may be implemented, but are not limited thereto: each of the above modules is located in the same processor, or each of the above modules is located Different processors.
为了更好地理解上述实施例,以下结合优选实施例详细说明。 In order to better understand the above embodiments, the following detailed description will be given in conjunction with the preferred embodiments.
如图4所示,本实施例描述了一种提升camera对焦速度和精度的对焦控制方法,包括下述步骤:As shown in FIG. 4, this embodiment describes a focus control method for improving camera focus speed and accuracy, including the following steps:
步骤S402.开启摄像头,进入相机预览模式后,读取陀螺仪等位置传感器的位置信息。Step S402. Turn on the camera and enter the camera preview mode to read the position information of the position sensor such as the gyroscope.
步骤S404.通过读取的位置信息,与前N次位置进行对比,判断当前用户手持或者固定设备的位置是否已经稳定。Step S404. By comparing the read location information with the previous N times, it is determined whether the location of the current user's handheld or fixed device has stabilized.
(1)记录连续N次读取的位置信息,计算每相邻两次位置信息差值的绝对值,其中N可以根据需求设定。(1) Recording the position information of the N consecutive readings, and calculating the absolute value of the difference of the position information of each adjacent two times, wherein N can be set according to the demand.
(2)设定稳定阈值。稳定阈值可以根据需求设定,阈值设置过大会降低判断为稳定的概率,增加稳定判断的时间,减慢对焦速度;阈值设置过小会很容易判为位置稳定,产生误判断,不断的下发对焦动作。(2) Set the stability threshold. The stability threshold can be set according to the requirements. If the threshold is set too high, the probability of being judged to be stable is lowered, the time for stable judgment is increased, and the focus speed is slowed down. If the threshold is set too small, it is easy to judge that the position is stable, misjudgment is generated, and the judgment is continuously issued. Focus action.
(3)用N次读取的位置,每相邻两个值之间取差值的绝对值,并用改绝对值和设定的稳定阈值进行对比。如果有连续的M次差值绝对值小于或者等于稳定阈值,则判断设备位置已经稳定,记录本次设备位置信息。否则设备位置仍在调整,继续读取设备当前位置信息。其中,M的值可以根据用户需求设定。如果M设置过大,判断为位置稳定的概率较小,等待时间较长,对焦速度减慢;如果M设置过小,小幅度的抖动也容易判为位置稳定,增加了对焦次数,并且不利于准确对焦。(3) With the position read N times, the absolute value of the difference between each adjacent two values is used, and the absolute value is compared with the set stable threshold. If there is a continuous M-time difference absolute value less than or equal to the stability threshold, it is judged that the device position has been stabilized, and the current device position information is recorded. Otherwise, the device location is still being adjusted and continues to read the current location information of the device. Among them, the value of M can be set according to user needs. If the M setting is too large, it is judged that the probability of the position is stable is small, the waiting time is long, and the focusing speed is slowed down; if the M setting is too small, the small amplitude jitter is easily judged as the positional stability, the number of focusing times is increased, and it is not conducive to Accurate focus.
步骤S406.判断本次设备位置信息和上次设备稳定时的位置信息是否相同。Step S406. Determine whether the current device location information and the location information when the last device is stable are the same.
(1)记录上次设备稳定时的位置信息,也可以记录多次设备稳定位置信息用作查询。(1) Record the position information when the device was stable last time, or record the device stable position information for multiple times as a query.
(2)设置抖动阈值,可以根据用户需求设置。抖动阈值设置过大,则小幅度的位置变化不会引起马达初始电流的变化,则对对焦速度和精度的提高效果不明显;如果抖动阈值设置过小,则很小幅度的位置变化都需要通过算法计算最新的马达初始电流,和变化马达对焦算法的参数,增加了对焦时间,减慢了对焦速度。(2) Set the jitter threshold, which can be set according to user requirements. If the jitter threshold is set too large, the small amplitude position change will not cause the initial current change of the motor, so the effect of improving the focus speed and accuracy is not obvious; if the jitter threshold is set too small, a small amplitude position change needs to pass. The algorithm calculates the latest motor initial current and changes the parameters of the motor focus algorithm, increasing the focus time and slowing down the focus speed.
(3)将上次或者前多次稳定信息与本次稳定信息进行对比,计算得到差值的绝对值。如果该绝对值小于或者等于抖动阈值,则判断设备位置信息没有发生变化,则使用上次计算得到的对焦参数完成对焦;如果该绝对值大于抖动阈值,则判断设备位置发生变化,下发更新(updata)命令和设备当前位置信息。 (3) Compare the last or previous multiple stable information with the current stable information, and calculate the absolute value of the difference. If the absolute value is less than or equal to the jitter threshold, if it is determined that the device location information has not changed, the focus is calculated using the last calculated focus parameter; if the absolute value is greater than the jitter threshold, it is determined that the device location changes, and the update is issued ( Updata) Command and device current location information.
步骤S408.根据当前设备的位置信息获得对应的马达初始电流。Step S408. Obtain a corresponding motor initial current according to the location information of the current device.
(1)设置位置信息和马达初始电流之间的关系表,或者位置信息与马达初始电流之间的函数关系。更精确的需要设置位置信息最大最小有效范围,同时设置有效范围之外的位置信息对应的马达初始电流,防止条件越界,算法混乱。(1) Set a relationship table between the position information and the initial motor current, or a function relationship between the position information and the initial current of the motor. More precisely, it is necessary to set the maximum and minimum effective range of position information, and set the initial motor current corresponding to the position information outside the effective range, to prevent the condition from crossing the boundary, and the algorithm is confusing.
(2)根据当前位置信息,使用设定的关系表或者函数关系计算得到马达初始电流。(2) Calculate the initial motor current using the set relationship table or function relationship based on the current position information.
步骤S410.将马达初始电流信息传递给马达驱动.Step S410. Transfer the initial motor current information to the motor drive.
步骤S412.马达驱动将马达初始电流信息反馈到对焦算法,通过适当的算法得到合适的对焦方案,例如对焦step值和step_num等,再通过对焦驱动完成对焦动作。Step S412. The motor drive feeds back the initial motor current information to the focusing algorithm, and obtains a suitable focusing scheme by using an appropriate algorithm, such as a focus step value and a step_num, and then performs a focusing operation by focusing driving.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
通过本发明实施例,采用根据稳定后的当前拍摄方位确定与当前拍摄方位对应的马达初始电流的技术手段,解决了相关技术中由于马达初始电流固定导致拍摄效果不佳以及对焦速度较慢等问题,从而有效改善了拍摄效果,提高了拍摄时的对焦速度。 According to the embodiment of the present invention, the technical means for determining the initial motor current corresponding to the current shooting orientation according to the current shooting orientation after the stabilization is adopted, and the problem that the shooting effect is poor due to the fixed initial current of the motor and the focusing speed is slow is solved in the related art. , thus effectively improving the shooting effect and improving the focusing speed at the time of shooting.

Claims (11)

  1. 一种对焦控制方法,包括:A focus control method comprising:
    获取拍摄装置的当前拍摄方位;Obtaining the current shooting orientation of the camera;
    判断所述当前拍摄方位是否稳定;Determining whether the current shooting orientation is stable;
    在判定所述当前拍摄方位稳定时,获取与所述当前拍摄方位对应的马达初始电流;Obtaining a motor initial current corresponding to the current photographing orientation when determining that the current photographing orientation is stable;
    按照所述马达初始电流控制马达驱动进行对焦。Focusing is performed in accordance with the motor initial current control motor drive.
  2. 根据权利要求1所述的方法,其中,判断所述当前拍摄方位是否稳定包括:The method of claim 1, wherein determining whether the current shooting orientation is stable comprises:
    获取所述当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;Obtaining a difference between the current shooting orientation and a shooting orientation of the first N shots, where N is a natural number not less than 1;
    在M次差值的绝对值均小于第一预设阈值时,则判定所述当前拍摄方位处于稳定状态,否则,判定所述当前拍摄方位处于不稳定状态,其中,M≤N。When the absolute values of the M times difference are less than the first preset threshold, it is determined that the current shooting direction is in a stable state; otherwise, the current shooting direction is determined to be in an unstable state, where M≤N.
  3. 根据权利要求1所述的方法,其中,获取与所述当前拍摄方位对应的马达初始电流,包括:The method of claim 1, wherein acquiring a motor initial current corresponding to the current photographing orientation comprises:
    比较所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;Comparing whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the history record;
    在判断结果指示不一致时,根据稳定后的当前拍摄方位确定所述马达初始电流。When the judgment result indicates inconsistency, the motor initial current is determined according to the stabilized current photographing orientation.
  4. 根据权利要求3所述的方法,其中,在所述判断结果指示一致时,将与所述历史拍摄方位对应的马达初始电流作为与所述当前拍摄方位对应的马达初始电流。The method according to claim 3, wherein, when the determination result indicates coincidence, a motor initial current corresponding to the history-capturing orientation is taken as a motor initial current corresponding to the current photographing orientation.
  5. 根据权利要求3所述的方法,其中,判断所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致,包括:The method of claim 3, wherein determining whether the current shooting orientation is consistent with one or more stabilized historical shooting orientations in the history comprises:
    获取所述当前拍摄方位与所述历史拍摄方位的差值绝对值;Obtaining an absolute value of a difference between the current shooting orientation and the historical shooting orientation;
    在所述差值绝对值小于第二预设阈值时,确定所述当前拍摄方位与所述历史拍摄方位一致,否则,确定所述当前拍摄方位与所述历史拍摄方位一致。 When the absolute value of the difference is less than the second preset threshold, determining that the current shooting orientation is consistent with the historical shooting orientation; otherwise, determining that the current shooting orientation is consistent with the historical shooting orientation.
  6. 根据权利要求1至5中任一项所述的方法,其中,获取与所述当前拍摄方位对应的马达初始电流包括以下之一:The method according to any one of claims 1 to 5, wherein acquiring a motor initial current corresponding to the current photographing orientation comprises one of the following:
    根据拍摄方位与马达初始电流的预设对应关系确定所述马达初始电流;Determining the initial motor current according to a preset correspondence relationship between the shooting orientation and the initial current of the motor;
    根据拍摄方位与马达初始电流的预设函数关系确定所述马达初始电流。The motor initial current is determined based on a preset functional relationship between the photographing orientation and the initial motor current.
  7. 根据权利要求1至5中任一项所述的方法,其中,所述拍摄方位包括:The method according to any one of claims 1 to 5, wherein the photographing orientation comprises:
    所述拍摄装置在拍摄时的摆放位置和/或角度。The placement position and/or angle of the photographing device at the time of photographing.
  8. 一种对焦控制装置,包括:A focus control device comprising:
    第一获取模块,设置为获取拍摄装置的当前拍摄方位;a first acquiring module configured to acquire a current photographing orientation of the photographing device;
    判断模块,设置为判断所述当前拍摄方位是否稳定;a determining module, configured to determine whether the current shooting orientation is stable;
    第二获取模块,设置为在判定所述当前拍摄方位稳定时,获取与所述当前拍摄方位对应的马达初始电流;a second acquiring module, configured to acquire a motor initial current corresponding to the current shooting orientation when determining that the current shooting orientation is stable;
    控制模块,设置为按照所述马达初始电流控制马达驱动进行对焦。The control module is configured to control the motor drive to perform focusing according to the motor initial current.
  9. 根据权利要求8所述的装置,其中,所述判断模块,包括:The device of claim 8, wherein the determining module comprises:
    获取单元,设置为获取所述当前拍摄方位与前N次拍摄时的拍摄方位的差值,N为不小于1的自然数;The acquiring unit is configured to obtain a difference between the current shooting orientation and the shooting orientation of the previous N shootings, where N is a natural number not less than 1;
    判断单元,设置为在M次差值的绝对值均小于第一预设阈值时,则判定所述当前拍摄方位处于稳定状态,否则,判定所述当前拍摄方位处于不稳定状态,其中,M≤N。The determining unit is configured to determine that the current shooting direction is in a stable state when the absolute value of the M times difference is less than the first preset threshold, otherwise, determining that the current shooting direction is in an unstable state, wherein M≤ N.
  10. 根据权利要求8所述的装置,其中,所述第二获取模块,包括:The device according to claim 8, wherein the second obtaining module comprises:
    比较单元,设置为比较所述当前拍摄方位与历史记录中的一个或多个稳定后的历史拍摄方位是否一致;a comparison unit configured to compare whether the current shooting orientation is consistent with one or more stable historical shooting orientations in the history record;
    确定单元,设置为在判断结果指示不一致时,根据稳定后的当前拍摄方位确定所述马达初始电流。The determining unit is configured to determine the initial motor current according to the stabilized current shooting direction when the determination result indicates inconsistency.
  11. 根据权利要求10所述的装置,其中,所述确定单元,设置为在所述判断结果指示一致时,将与所述历史拍摄方位对应的马达初始电流作为与所述当前拍摄方位对应的马达初始电流。 The apparatus according to claim 10, wherein said determining unit is configured to set a motor initial current corresponding to said history-capturing orientation as a motor initial corresponding to said current photographing orientation when said judgment result indication coincides Current.
PCT/CN2014/091443 2014-08-18 2014-11-18 Focusing control method and apparatus WO2016026229A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410410195.7A CN105357429A (en) 2014-08-18 2014-08-18 Focusing control method and device
CN201410410195.7 2014-08-18

Publications (1)

Publication Number Publication Date
WO2016026229A1 true WO2016026229A1 (en) 2016-02-25

Family

ID=55333282

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091443 WO2016026229A1 (en) 2014-08-18 2014-11-18 Focusing control method and apparatus

Country Status (2)

Country Link
CN (1) CN105357429A (en)
WO (1) WO2016026229A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197152B (en) * 2017-06-16 2020-01-14 Oppo广东移动通信有限公司 Focusing method, focusing device, computer readable storage medium and mobile terminal
CN109510936B (en) * 2017-09-14 2021-03-19 展讯通信(上海)有限公司 Continuous automatic focusing method and system
CN107566741B (en) * 2017-10-26 2020-04-14 Oppo广东移动通信有限公司 Focusing method, focusing device, computer readable storage medium and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895783A (en) * 2009-05-18 2010-11-24 华晶科技股份有限公司 Detection device for stability of digital video camera and digital video camera
CN102547124A (en) * 2012-01-16 2012-07-04 华为终端有限公司 Method and device for photographic processing and mobile equipment
CN103064231A (en) * 2013-02-01 2013-04-24 信利光电(汕尾)有限公司 Mobile equipment focusing method and device and mobile equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895783A (en) * 2009-05-18 2010-11-24 华晶科技股份有限公司 Detection device for stability of digital video camera and digital video camera
CN102547124A (en) * 2012-01-16 2012-07-04 华为终端有限公司 Method and device for photographic processing and mobile equipment
CN103064231A (en) * 2013-02-01 2013-04-24 信利光电(汕尾)有限公司 Mobile equipment focusing method and device and mobile equipment

Also Published As

Publication number Publication date
CN105357429A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
JP5483953B2 (en) Focus adjustment device, focus adjustment method and program
JP5328384B2 (en) LENS CONTROL DEVICE, OPTICAL DEVICE, AND LENS CONTROL METHOD
JP4697810B2 (en) Automatic tracking device and automatic tracking method
US9531938B2 (en) Image-capturing apparatus
TWI515470B (en) Auto-focus system for multiple lens and method thereof
CN103728813B (en) A kind of method of synchronizing focus during zoom
CN105763795A (en) Focusing method and apparatus, cameras and camera system
JP5984349B2 (en) Imaging apparatus and control method thereof
CN103986877A (en) Image acquiring terminal and image acquiring method
US9565356B2 (en) Optimizing capture of focus stacks
WO2019104569A1 (en) Focusing method and device, and readable storage medium
JP2018517165A (en) Method and apparatus for defocus reduction using laser autofocus
JP2016201626A (en) Shift element controller, shift element control program and optical apparatus
WO2016026229A1 (en) Focusing control method and apparatus
CN105629428A (en) Optical instrument and control method for lens
CN107272139B (en) Lens control apparatus and control method
TWI515471B (en) Auto-focus system for multiple lens and method thereof
US20120155844A1 (en) Lens apparatus and camera system including the same
JP2016200702A5 (en)
JP2009017302A (en) Imaging apparatus, control method of imaging apparatus, and program
JP2014215476A (en) Imaging apparatus and method for controlling the same
JP2007011054A (en) Imaging apparatus, control method for imaging apparatus and computer program
JP6702737B2 (en) Image blur correction apparatus and method for controlling image blur correction apparatus
JP4721394B2 (en) LENS CONTROL DEVICE, OPTICAL DEVICE, AND LENS CONTROL METHOD
JP2014174441A (en) Image capturing device and control method therefor

Legal Events

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

Ref document number: 14900035

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14900035

Country of ref document: EP

Kind code of ref document: A1